@oh-my-pi/omp-stats 18.16.0 → 18.17.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 (77) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/client/index.css +1 -1
  3. package/dist/client/index.js +102 -99
  4. package/dist/types/client/api.d.ts +4 -1
  5. package/dist/types/client/app/nav.d.ts +1 -1
  6. package/dist/types/client/charts/Chart.d.ts +16 -8
  7. package/dist/types/client/charts/DotWhisker.d.ts +50 -0
  8. package/dist/types/client/charts/Sparkline.d.ts +1 -1
  9. package/dist/types/client/charts/Waterfall.d.ts +26 -0
  10. package/dist/types/client/charts/index.d.ts +2 -0
  11. package/dist/types/client/charts/types.d.ts +8 -2
  12. package/dist/types/client/routes/SpotlightRoute.d.ts +7 -0
  13. package/dist/types/client/routes/index.d.ts +1 -0
  14. package/dist/types/client/spotlight/Compounding.d.ts +8 -0
  15. package/dist/types/client/spotlight/Coverage.d.ts +6 -0
  16. package/dist/types/client/spotlight/Economics.d.ts +10 -0
  17. package/dist/types/client/spotlight/FetchBack.d.ts +9 -0
  18. package/dist/types/client/spotlight/Hero.d.ts +12 -0
  19. package/dist/types/client/spotlight/Overhead.d.ts +6 -0
  20. package/dist/types/client/spotlight/Ranking.d.ts +6 -0
  21. package/dist/types/client/spotlight/ResultsFeed.d.ts +6 -0
  22. package/dist/types/client/spotlight/Savings.d.ts +10 -0
  23. package/dist/types/client/spotlight/ShareTrend.d.ts +8 -0
  24. package/dist/types/client/spotlight/Steps.d.ts +6 -0
  25. package/dist/types/client/spotlight/TimeCost.d.ts +6 -0
  26. package/dist/types/client/spotlight/chips.d.ts +16 -0
  27. package/dist/types/client/spotlight/meta.d.ts +64 -0
  28. package/dist/types/db.d.ts +26 -0
  29. package/dist/types/index.d.ts +2 -1
  30. package/dist/types/parser.d.ts +4 -0
  31. package/dist/types/rollup.d.ts +22 -1
  32. package/dist/types/shared-types.d.ts +419 -0
  33. package/dist/types/spotlight-aggregator.d.ts +189 -0
  34. package/dist/types/spotlight-bootstrap.d.ts +32 -0
  35. package/dist/types/spotlight-ingest.d.ts +258 -0
  36. package/dist/types/spotlight-measures.d.ts +51 -0
  37. package/package.json +5 -5
  38. package/src/aggregator.ts +3 -1
  39. package/src/client/App.tsx +3 -0
  40. package/src/client/api.ts +21 -0
  41. package/src/client/app/nav.ts +4 -1
  42. package/src/client/charts/Chart.tsx +105 -22
  43. package/src/client/charts/DotWhisker.tsx +149 -0
  44. package/src/client/charts/Sparkline.tsx +3 -2
  45. package/src/client/charts/Waterfall.tsx +86 -0
  46. package/src/client/charts/index.ts +2 -0
  47. package/src/client/charts/types.ts +9 -2
  48. package/src/client/react-css.d.ts +1 -1
  49. package/src/client/routes/SpotlightRoute.tsx +138 -0
  50. package/src/client/routes/index.ts +1 -0
  51. package/src/client/spotlight/Compounding.tsx +222 -0
  52. package/src/client/spotlight/Coverage.tsx +96 -0
  53. package/src/client/spotlight/Economics.tsx +167 -0
  54. package/src/client/spotlight/FetchBack.tsx +222 -0
  55. package/src/client/spotlight/Hero.tsx +177 -0
  56. package/src/client/spotlight/Overhead.tsx +135 -0
  57. package/src/client/spotlight/Ranking.tsx +248 -0
  58. package/src/client/spotlight/ResultsFeed.tsx +354 -0
  59. package/src/client/spotlight/Savings.tsx +355 -0
  60. package/src/client/spotlight/ShareTrend.tsx +103 -0
  61. package/src/client/spotlight/Steps.tsx +225 -0
  62. package/src/client/spotlight/TimeCost.tsx +64 -0
  63. package/src/client/spotlight/chips.tsx +63 -0
  64. package/src/client/spotlight/meta.ts +206 -0
  65. package/src/client/spotlight/spotlight.css +1387 -0
  66. package/src/client/styles.css +289 -1
  67. package/src/db.ts +480 -2
  68. package/src/index.ts +10 -1
  69. package/src/live.ts +21 -9
  70. package/src/parser.ts +44 -8
  71. package/src/rollup.ts +203 -10
  72. package/src/server.ts +42 -0
  73. package/src/shared-types.ts +453 -0
  74. package/src/spotlight-aggregator.ts +1738 -0
  75. package/src/spotlight-bootstrap.ts +110 -0
  76. package/src/spotlight-ingest.ts +981 -0
  77. package/src/spotlight-measures.ts +667 -0
@@ -1,76 +1,76 @@
1
- var gA=Object.create;var{getPrototypeOf:yA,defineProperty:P1,getOwnPropertyNames:bA}=Object;var z1=Object.prototype.hasOwnProperty;function vA(r){return this[r]}var SA,xA,X=(r,i,u)=>{var d=r!=null&&typeof r==="object";if(d){var f=i?SA??=new WeakMap:xA??=new WeakMap,y=f.get(r);if(y)return y}u=r!=null?gA(yA(r)):{};let m=i||!r||!r.__esModule||!z1.call(r,"default")?P1(u,"default",{value:r,enumerable:!0}):u;if(r&&typeof r==="object"||typeof r==="function"){for(let v of bA(r))if(!z1.call(m,v))P1(m,v,{get:vA.bind(r,v),enumerable:!0})}if(d)f.set(r,m);return m};var Vs=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var _1=Vs(function(ci){(function(){function r(){if(_=!1,Q){var te=ci.unstable_now();ce=te;var me=!0;try{e:{B=!1,V&&(V=!1,W(H),H=-1),U=!0;var Ce=D;try{t:{y(te);for(M=u(k);M!==null&&!(M.expirationTime>te&&v());){var We=M.callback;if(typeof We==="function"){M.callback=null,D=M.priorityLevel;var bt=We(M.expirationTime<=te);if(te=ci.unstable_now(),typeof bt==="function"){M.callback=bt,y(te),me=!0;break t}M===u(k)&&d(k),y(te)}else d(k);M=u(k)}if(M!==null)me=!0;else{var J=u(T);J!==null&&S(m,J.startTime-te),me=!1}}break e}finally{M=null,D=Ce,U=!1}me=void 0}}finally{me?ye():Q=!1}}}function i(te,me){var Ce=te.length;te.push(me);e:for(;0<Ce;){var We=Ce-1>>>1,bt=te[We];if(0<f(bt,me))te[We]=me,te[Ce]=bt,Ce=We;else break e}}function u(te){return te.length===0?null:te[0]}function d(te){if(te.length===0)return null;var me=te[0],Ce=te.pop();if(Ce!==me){te[0]=Ce;e:for(var We=0,bt=te.length,J=bt>>>1;We<J;){var Ne=2*(We+1)-1,vt=te[Ne],St=Ne+1,re=te[St];if(0>f(vt,Ce))St<bt&&0>f(re,vt)?(te[We]=re,te[St]=Ce,We=St):(te[We]=vt,te[Ne]=Ce,We=Ne);else if(St<bt&&0>f(re,Ce))te[We]=re,te[St]=Ce,We=St;else break e}}return me}function f(te,me){var Ce=te.sortIndex-me.sortIndex;return Ce!==0?Ce:te.id-me.id}function y(te){for(var me=u(T);me!==null;){if(me.callback===null)d(T);else if(me.startTime<=te)d(T),me.sortIndex=me.expirationTime,i(k,me);else break;me=u(T)}}function m(te){if(V=!1,y(te),!B)if(u(k)!==null)B=!0,Q||(Q=!0,ye());else{var me=u(T);me!==null&&S(m,me.startTime-te)}}function v(){return _?!0:ci.unstable_now()-ce<F?!1:!0}function S(te,me){H=pe(function(){te(ci.unstable_now())},me)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ci.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var x=performance;ci.unstable_now=function(){return x.now()}}else{var h=Date,C=h.now();ci.unstable_now=function(){return h.now()-C}}var k=[],T=[],L=1,M=null,D=3,U=!1,B=!1,V=!1,_=!1,pe=typeof setTimeout==="function"?setTimeout:null,W=typeof clearTimeout==="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null,Q=!1,H=-1,F=5,ce=-1;if(typeof oe==="function")var ye=function(){oe(r)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,we=xe.port2;xe.port1.onmessage=r,ye=function(){we.postMessage(null)}}else ye=function(){pe(r,0)};ci.unstable_IdlePriority=5,ci.unstable_ImmediatePriority=1,ci.unstable_LowPriority=4,ci.unstable_NormalPriority=3,ci.unstable_Profiling=null,ci.unstable_UserBlockingPriority=2,ci.unstable_cancelCallback=function(te){te.callback=null},ci.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<te?Math.floor(1000/te):5},ci.unstable_getCurrentPriorityLevel=function(){return D},ci.unstable_next=function(te){switch(D){case 1:case 2:case 3:var me=3;break;default:me=D}var Ce=D;D=me;try{return te()}finally{D=Ce}},ci.unstable_requestPaint=function(){_=!0},ci.unstable_runWithPriority=function(te,me){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var Ce=D;D=te;try{return me()}finally{D=Ce}},ci.unstable_scheduleCallback=function(te,me,Ce){var We=ci.unstable_now();switch(typeof Ce==="object"&&Ce!==null?(Ce=Ce.delay,Ce=typeof Ce==="number"&&0<Ce?We+Ce:We):Ce=We,te){case 1:var bt=-1;break;case 2:bt=250;break;case 5:bt=1073741823;break;case 4:bt=1e4;break;default:bt=5000}return bt=Ce+bt,te={id:L++,callback:me,priorityLevel:te,startTime:Ce,expirationTime:bt,sortIndex:-1},Ce>We?(te.sortIndex=Ce,i(T,te),u(k)===null&&te===u(T)&&(V?(W(H),H=-1):V=!0,S(m,Ce-We))):(te.sortIndex=bt,i(k,te),B||U||(B=!0,Q||(Q=!0,ye()))),te},ci.unstable_shouldYield=v,ci.unstable_wrapCallback=function(te){var me=D;return function(){var Ce=D;D=me;try{return te.apply(this,arguments)}finally{D=Ce}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ct=Vs(function(CA,cm){(function(){function r(b,q){Object.defineProperty(d.prototype,b,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})}function i(b){if(b===null||typeof b!=="object")return null;return b=ne&&b[ne]||b["@@iterator"],typeof b==="function"?b:null}function u(b,q){b=(b=b.constructor)&&(b.displayName||b.name)||"ReactClass";var le=b+"."+q;j[le]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",q,b),j[le]=!0)}function d(b,q,le){this.props=b,this.context=q,this.refs=je,this.updater=le||be}function f(){}function y(b,q,le){this.props=b,this.context=q,this.refs=je,this.updater=le||be}function m(){}function v(b){return""+b}function S(b){try{v(b);var q=!1}catch(Te){q=!0}if(q){q=console;var le=q.error,de=typeof Symbol==="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return le.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",de),v(b)}}function x(b){if(b==null)return null;if(typeof b==="function")return b.$$typeof===ht?null:b.displayName||b.name||null;if(typeof b==="string")return b;switch(b){case bt:return"Fragment";case Ne:return"Profiler";case J:return"StrictMode";case Pe:return"Suspense";case ze:return"SuspenseList";case lt:return"Activity"}if(typeof b==="object")switch(typeof b.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case We:return"Portal";case St:return b.displayName||"Context";case vt:return(b._context.displayName||"Context")+".Consumer";case re:var q=b.render;return b=b.displayName,b||(b=q.displayName||q.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case K:return q=b.displayName||null,q!==null?q:x(b.type)||"Memo";case Me:q=b._payload,b=b._init;try{return x(b(q))}catch(le){}}return null}function h(b){if(b===bt)return"<>";if(typeof b==="object"&&b!==null&&b.$$typeof===Me)return"<...>";try{var q=x(b);return q?"<"+q+">":"<...>"}catch(le){return"<...>"}}function C(){var b=Se.A;return b===null?null:b.getOwner()}function k(){return Error("react-stack-top-frame")}function T(b){if(sn.call(b,"key")){var q=Object.getOwnPropertyDescriptor(b,"key").get;if(q&&q.isReactWarning)return!1}return b.key!==void 0}function L(b,q){function le(){Xd||(Xd=!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)",q))}le.isReactWarning=!0,Object.defineProperty(b,"key",{get:le,configurable:!0})}function M(){var b=x(this.type);return es[b]||(es[b]=!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.")),b=this.props.ref,b!==void 0?b:null}function D(b,q,le,de,Te,Ke){var Je=le.ref;return b={$$typeof:Ce,type:b,key:q,props:le,_owner:de},(Je!==void 0?Je:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:M}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Te}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ke}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function U(b,q){return q=D(b.type,q,b.props,b._owner,b._debugStack,b._debugTask),b._store&&(q._store.validated=b._store.validated),q}function B(b){V(b)?b._store&&(b._store.validated=1):typeof b==="object"&&b!==null&&b.$$typeof===Me&&(b._payload.status==="fulfilled"?V(b._payload.value)&&b._payload.value._store&&(b._payload.value._store.validated=1):b._store&&(b._store.validated=1))}function V(b){return typeof b==="object"&&b!==null&&b.$$typeof===Ce}function _(b){var q={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(le){return q[le]})}function pe(b,q){return typeof b==="object"&&b!==null&&b.key!=null?(S(b.key),_(""+b.key)):q.toString(36)}function W(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status==="string"?b.then(m,m):(b.status="pending",b.then(function(q){b.status==="pending"&&(b.status="fulfilled",b.value=q)},function(q){b.status==="pending"&&(b.status="rejected",b.reason=q)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function oe(b,q,le,de,Te){var Ke=typeof b;if(Ke==="undefined"||Ke==="boolean")b=null;var Je=!1;if(b===null)Je=!0;else switch(Ke){case"bigint":case"string":case"number":Je=!0;break;case"object":switch(b.$$typeof){case Ce:case We:Je=!0;break;case Me:return Je=b._init,oe(Je(b._payload),q,le,de,Te)}}if(Je){Je=b,Te=Te(Je);var wt=de===""?"."+pe(Je,0):de;return Ge(Te)?(le="",wt!=null&&(le=wt.replace(uu,"$&/")+"/"),oe(Te,q,le,"",function(Za){return Za})):Te!=null&&(V(Te)&&(Te.key!=null&&(Je&&Je.key===Te.key||S(Te.key)),le=U(Te,le+(Te.key==null||Je&&Je.key===Te.key?"":(""+Te.key).replace(uu,"$&/")+"/")+wt),de!==""&&Je!=null&&V(Je)&&Je.key==null&&Je._store&&!Je._store.validated&&(le._store.validated=2),Te=le),q.push(Te)),1}if(Je=0,wt=de===""?".":de+":",Ge(b))for(var Oe=0;Oe<b.length;Oe++)de=b[Oe],Ke=wt+pe(de,Oe),Je+=oe(de,q,le,Ke,Te);else if(Oe=i(b),typeof Oe==="function")for(Oe===b.entries&&(su||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),su=!0),b=Oe.call(b),Oe=0;!(de=b.next()).done;)de=de.value,Ke=wt+pe(de,Oe++),Je+=oe(de,q,le,Ke,Te);else if(Ke==="object"){if(typeof b.then==="function")return oe(W(b),q,le,de,Te);throw q=String(b),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Je}function Q(b,q,le){if(b==null)return b;var de=[],Te=0;return oe(b,de,"","",function(Ke){return q.call(le,Ke,Te++)}),de}function H(b){if(b._status===-1){var q=b._ioInfo;q!=null&&(q.start=q.end=performance.now()),q=b._result;var le=q();if(le.then(function(Te){if(b._status===0||b._status===-1){b._status=1,b._result=Te;var Ke=b._ioInfo;Ke!=null&&(Ke.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Te)}},function(Te){if(b._status===0||b._status===-1){b._status=2,b._result=Te;var Ke=b._ioInfo;Ke!=null&&(Ke.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Te)}}),q=b._ioInfo,q!=null){q.value=le;var de=le.displayName;typeof de==="string"&&(q.name=de)}b._status===-1&&(b._status=0,b._result=le)}if(b._status===1)return q=b._result,q===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var wD=Object.create;var{getPrototypeOf:TD,defineProperty:QL,getOwnPropertyNames:ID}=Object;var WL=Object.prototype.hasOwnProperty;function RD(n){return this[n]}var MD,AD,U=(n,i,s)=>{var d=n!=null&&typeof n==="object";if(d){var c=i?MD??=new WeakMap:AD??=new WeakMap,g=c.get(n);if(g)return g}s=n!=null?wD(TD(n)):{};let h=i||!n||!n.__esModule||!WL.call(n,"default")?QL(s,"default",{value:n,enumerable:!0}):s;if(n&&typeof n==="object"||typeof n==="function"){for(let y of ID(n))if(!WL.call(h,y))QL(h,y,{get:RD.bind(n,y),enumerable:!0})}if(d)c.set(n,h);return h};var Li=(n,i)=>()=>(i||n((i={exports:{}}).exports,i),i.exports);var ZL=Li(function(ju){(function(){function n(){if(X=!1,J){var oe=ju.unstable_now();ke=oe;var be=!0;try{e:{B=!1,F&&(F=!1,Q(P),P=-1),O=!0;var Me=I;try{t:{g(oe);for(T=s(L);T!==null&&!(T.expirationTime>oe&&y());){var Ze=T.callback;if(typeof Ze==="function"){T.callback=null,I=T.priorityLevel;var pt=Ze(T.expirationTime<=oe);if(oe=ju.unstable_now(),typeof pt==="function"){T.callback=pt,g(oe),be=!0;break t}T===s(L)&&d(L),g(oe)}else d(L);T=s(L)}if(T!==null)be=!0;else{var W=s(w);W!==null&&m(h,W.startTime-oe),be=!1}}break e}finally{T=null,I=Me,O=!1}be=void 0}}finally{be?pe():J=!1}}}function i(oe,be){var Me=oe.length;oe.push(be);e:for(;0<Me;){var Ze=Me-1>>>1,pt=oe[Ze];if(0<c(pt,be))oe[Ze]=be,oe[Me]=pt,Me=Ze;else break e}}function s(oe){return oe.length===0?null:oe[0]}function d(oe){if(oe.length===0)return null;var be=oe[0],Me=oe.pop();if(Me!==be){oe[0]=Me;e:for(var Ze=0,pt=oe.length,W=pt>>>1;Ze<W;){var Pe=2*(Ze+1)-1,kt=oe[Pe],Ct=Pe+1,me=oe[Ct];if(0>c(kt,Me))Ct<pt&&0>c(me,kt)?(oe[Ze]=me,oe[Ct]=Me,Ze=Ct):(oe[Ze]=kt,oe[Pe]=Me,Ze=Pe);else if(Ct<pt&&0>c(me,Me))oe[Ze]=me,oe[Ct]=Me,Ze=Ct;else break e}}return be}function c(oe,be){var Me=oe.sortIndex-be.sortIndex;return Me!==0?Me:oe.id-be.id}function g(oe){for(var be=s(w);be!==null;){if(be.callback===null)d(w);else if(be.startTime<=oe)d(w),be.sortIndex=be.expirationTime,i(L,be);else break;be=s(w)}}function h(oe){if(F=!1,g(oe),!B)if(s(L)!==null)B=!0,J||(J=!0,pe());else{var be=s(w);be!==null&&m(h,be.startTime-oe)}}function y(){return X?!0:ju.unstable_now()-ke<V?!1:!0}function m(oe,be){P=ie(function(){oe(ju.unstable_now())},be)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ju.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var b=performance;ju.unstable_now=function(){return b.now()}}else{var p=Date,x=p.now();ju.unstable_now=function(){return p.now()-x}}var L=[],w=[],C=1,T=null,I=3,O=!1,B=!1,F=!1,X=!1,ie=typeof setTimeout==="function"?setTimeout:null,Q=typeof clearTimeout==="function"?clearTimeout:null,de=typeof setImmediate<"u"?setImmediate:null,J=!1,P=-1,V=5,ke=-1;if(typeof de==="function")var pe=function(){de(n)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Le=Oe.port2;Oe.port1.onmessage=n,pe=function(){Le.postMessage(null)}}else pe=function(){ie(n,0)};ju.unstable_IdlePriority=5,ju.unstable_ImmediatePriority=1,ju.unstable_LowPriority=4,ju.unstable_NormalPriority=3,ju.unstable_Profiling=null,ju.unstable_UserBlockingPriority=2,ju.unstable_cancelCallback=function(oe){oe.callback=null},ju.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},ju.unstable_getCurrentPriorityLevel=function(){return I},ju.unstable_next=function(oe){switch(I){case 1:case 2:case 3:var be=3;break;default:be=I}var Me=I;I=be;try{return oe()}finally{I=Me}},ju.unstable_requestPaint=function(){X=!0},ju.unstable_runWithPriority=function(oe,be){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var Me=I;I=oe;try{return be()}finally{I=Me}},ju.unstable_scheduleCallback=function(oe,be,Me){var Ze=ju.unstable_now();switch(typeof Me==="object"&&Me!==null?(Me=Me.delay,Me=typeof Me==="number"&&0<Me?Ze+Me:Ze):Me=Ze,oe){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5000}return pt=Me+pt,oe={id:C++,callback:be,priorityLevel:oe,startTime:Me,expirationTime:pt,sortIndex:-1},Me>Ze?(oe.sortIndex=Me,i(w,oe),s(L)===null&&oe===s(w)&&(F?(Q(P),P=-1):F=!0,m(h,Me-Ze))):(oe.sortIndex=pt,i(L,oe),B||O||(B=!0,J||(J=!0,pe()))),oe},ju.unstable_shouldYield=y,ju.unstable_wrapCallback=function(oe){var be=I;return function(){var Me=I;I=be;try{return oe.apply(this,arguments)}finally{I=Me}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var et=Li(function(DD,dh){(function(){function n(k,z){Object.defineProperty(d.prototype,k,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",z[0],z[1])}})}function i(k){if(k===null||typeof k!=="object")return null;return k=ee&&k[ee]||k["@@iterator"],typeof k==="function"?k:null}function s(k,z){k=(k=k.constructor)&&(k.displayName||k.name)||"ReactClass";var se=k+"."+z;Y[se]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",z,k),Y[se]=!0)}function d(k,z,se){this.props=k,this.context=z,this.refs=rt,this.updater=se||Se}function c(){}function g(k,z,se){this.props=k,this.context=z,this.refs=rt,this.updater=se||Se}function h(){}function y(k){return""+k}function m(k){try{y(k);var z=!1}catch(Ie){z=!0}if(z){z=console;var se=z.error,he=typeof Symbol==="function"&&Symbol.toStringTag&&k[Symbol.toStringTag]||k.constructor.name||"Object";return se.call(z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",he),y(k)}}function b(k){if(k==null)return null;if(typeof k==="function")return k.$$typeof===ya?null:k.displayName||k.name||null;if(typeof k==="string")return k;switch(k){case pt:return"Fragment";case Pe:return"Profiler";case W:return"StrictMode";case je:return"Suspense";case _e:return"SuspenseList";case H:return"Activity"}if(typeof k==="object")switch(typeof k.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),k.$$typeof){case Ze:return"Portal";case Ct:return k.displayName||"Context";case kt:return(k._context.displayName||"Context")+".Consumer";case me:var z=k.render;return k=k.displayName,k||(k=z.displayName||z.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case ia:return z=k.displayName||null,z!==null?z:b(k.type)||"Memo";case oa:z=k._payload,k=k._init;try{return b(k(z))}catch(se){}}return null}function p(k){if(k===pt)return"<>";if(typeof k==="object"&&k!==null&&k.$$typeof===oa)return"<...>";try{var z=b(k);return z?"<"+z+">":"<...>"}catch(se){return"<...>"}}function x(){var k=Ee.A;return k===null?null:k.getOwner()}function L(){return Error("react-stack-top-frame")}function w(k){if(Un.call(k,"key")){var z=Object.getOwnPropertyDescriptor(k,"key").get;if(z&&z.isReactWarning)return!1}return k.key!==void 0}function C(k,z){function se(){Fi||(Fi=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",z))}se.isReactWarning=!0,Object.defineProperty(k,"key",{get:se,configurable:!0})}function T(){var k=b(this.type);return ua[k]||(ua[k]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),k=this.props.ref,k!==void 0?k:null}function I(k,z,se,he,Ie,tt){var at=se.ref;return k={$$typeof:Me,type:k,key:z,props:se,_owner:he},(at!==void 0?at:null)!==null?Object.defineProperty(k,"ref",{enumerable:!1,get:T}):Object.defineProperty(k,"ref",{enumerable:!1,value:null}),k._store={},Object.defineProperty(k._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(k,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(k,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.defineProperty(k,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:tt}),Object.freeze&&(Object.freeze(k.props),Object.freeze(k)),k}function O(k,z){return z=I(k.type,z,k.props,k._owner,k._debugStack,k._debugTask),k._store&&(z._store.validated=k._store.validated),z}function B(k){F(k)?k._store&&(k._store.validated=1):typeof k==="object"&&k!==null&&k.$$typeof===oa&&(k._payload.status==="fulfilled"?F(k._payload.value)&&k._payload.value._store&&(k._payload.value._store.validated=1):k._store&&(k._store.validated=1))}function F(k){return typeof k==="object"&&k!==null&&k.$$typeof===Me}function X(k){var z={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(se){return z[se]})}function ie(k,z){return typeof k==="object"&&k!==null&&k.key!=null?(m(k.key),X(""+k.key)):z.toString(36)}function Q(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status==="string"?k.then(h,h):(k.status="pending",k.then(function(z){k.status==="pending"&&(k.status="fulfilled",k.value=z)},function(z){k.status==="pending"&&(k.status="rejected",k.reason=z)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function de(k,z,se,he,Ie){var tt=typeof k;if(tt==="undefined"||tt==="boolean")k=null;var at=!1;if(k===null)at=!0;else switch(tt){case"bigint":case"string":case"number":at=!0;break;case"object":switch(k.$$typeof){case Me:case Ze:at=!0;break;case oa:return at=k._init,de(at(k._payload),z,se,he,Ie)}}if(at){at=k,Ie=Ie(at);var qt=he===""?"."+ie(at,0):he;return we(Ie)?(se="",qt!=null&&(se=qt.replace(Vi,"$&/")+"/"),de(Ie,z,se,"",function(yo){return yo})):Ie!=null&&(F(Ie)&&(Ie.key!=null&&(at&&at.key===Ie.key||m(Ie.key)),se=O(Ie,se+(Ie.key==null||at&&at.key===Ie.key?"":(""+Ie.key).replace(Vi,"$&/")+"/")+qt),he!==""&&at!=null&&F(at)&&at.key==null&&at._store&&!at._store.validated&&(se._store.validated=2),Ie=se),z.push(Ie)),1}if(at=0,qt=he===""?".":he+":",we(k))for(var Be=0;Be<k.length;Be++)he=k[Be],tt=qt+ie(he,Be),at+=de(he,z,se,tt,Ie);else if(Be=i(k),typeof Be==="function")for(Be===k.entries&&(Gi||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Gi=!0),k=Be.call(k),Be=0;!(he=k.next()).done;)he=he.value,tt=qt+ie(he,Be++),at+=de(he,z,se,tt,Ie);else if(tt==="object"){if(typeof k.then==="function")return de(Q(k),z,se,he,Ie);throw z=String(k),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return at}function J(k,z,se){if(k==null)return k;var he=[],Ie=0;return de(k,he,"","",function(tt){return z.call(se,tt,Ie++)}),he}function P(k){if(k._status===-1){var z=k._ioInfo;z!=null&&(z.start=z.end=performance.now()),z=k._result;var se=z();if(se.then(function(Ie){if(k._status===0||k._status===-1){k._status=1,k._result=Ie;var tt=k._ioInfo;tt!=null&&(tt.end=performance.now()),se.status===void 0&&(se.status="fulfilled",se.value=Ie)}},function(Ie){if(k._status===0||k._status===-1){k._status=2,k._result=Ie;var tt=k._ioInfo;tt!=null&&(tt.end=performance.now()),se.status===void 0&&(se.status="rejected",se.reason=Ie)}}),z=k._ioInfo,z!=null){z.value=se;var he=se.displayName;typeof he==="string"&&(z.name=he)}k._status===-1&&(k._status=0,k._result=se)}if(k._status===1)return z=k._result,z===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
5
5
 
6
- Did you accidentally put curly braces around the import?`,q),"default"in q||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
6
+ Did you accidentally put curly braces around the import?`,z),"default"in z||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
7
 
8
8
  Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,q),q.default;throw b._result}function F(){var b=Se.H;return b===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'))`,z),z.default;throw k._result}function V(){var k=Ee.H;return k===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.`),b}function ce(){Se.asyncTransitions--}function ye(b){if(as===null)try{var q=("require"+Math.random()).slice(0,7);as=(cm&&cm[q]).call(cm,"timers").setImmediate}catch(le){as=function(de){Yd===!1&&(Yd=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Te=new MessageChannel;Te.port1.onmessage=de,Te.port2.postMessage(void 0)}}return as(b)}function xe(b){return 1<b.length&&typeof AggregateError==="function"?AggregateError(b):b[0]}function we(b,q){q!==os-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. "),os=q}function te(b,q,le){var de=Se.actQueue;if(de!==null)if(de.length!==0)try{me(de),ye(function(){return te(b,q,le)});return}catch(Te){Se.thrownErrors.push(Te)}else Se.actQueue=null;0<Se.thrownErrors.length?(de=xe(Se.thrownErrors),Se.thrownErrors.length=0,le(de)):q(b)}function me(b){if(!ls){ls=!0;var q=0;try{for(;q<b.length;q++){var le=b[q];do{Se.didUsePromise=!1;var de=le(!1);if(de!==null){if(Se.didUsePromise){b[q]=le,b.splice(0,q);return}le=de}else break}while(1)}b.length=0}catch(Te){b.splice(0,q+1),Se.thrownErrors.push(Te)}finally{ls=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ce=Symbol.for("react.transitional.element"),We=Symbol.for("react.portal"),bt=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),vt=Symbol.for("react.consumer"),St=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),Pe=Symbol.for("react.suspense"),ze=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Me=Symbol.for("react.lazy"),lt=Symbol.for("react.activity"),ne=Symbol.iterator,j={},be={isMounted:function(){return!1},enqueueForceUpdate:function(b){u(b,"forceUpdate")},enqueueReplaceState:function(b){u(b,"replaceState")},enqueueSetState:function(b){u(b,"setState")}},_e=Object.assign,je={};Object.freeze(je),d.prototype.isReactComponent={},d.prototype.setState=function(b,q){if(typeof b!=="object"&&typeof b!=="function"&&b!=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,b,q,"setState")},d.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};var Xe={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(Jl in Xe)Xe.hasOwnProperty(Jl)&&r(Jl,Xe[Jl]);f.prototype=d.prototype,Xe=y.prototype=new f,Xe.constructor=y,_e(Xe,d.prototype),Xe.isPureReactComponent=!0;var Ge=Array.isArray,ht=Symbol.for("react.client.reference"),Se={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},sn=Object.prototype.hasOwnProperty,jt=console.createTask?console.createTask:function(){return null};Xe={react_stack_bottom_frame:function(b){return b()}};var Xd,An,es={},ts=Xe.react_stack_bottom_frame.bind(Xe,k)(),Fm=jt(h(k)),su=!1,uu=/\/+/g,Kl=typeof reportError==="function"?reportError:function(b){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(q))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",b);return}console.error(b)},Yd=!1,as=null,os=0,ns=!1,ls=!1,Ai=typeof queueMicrotask==="function"?function(b){queueMicrotask(function(){return queueMicrotask(b)})}:ye;Xe=Object.freeze({__proto__:null,c:function(b){return F().useMemoCache(b)}});var Jl={map:Q,forEach:function(b,q,le){Q(b,function(){q.apply(this,arguments)},le)},count:function(b){var q=0;return Q(b,function(){q++}),q},toArray:function(b){return Q(b,function(q){return q})||[]},only:function(b){if(!V(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};CA.Activity=lt,CA.Children=Jl,CA.Component=d,CA.Fragment=bt,CA.Profiler=Ne,CA.PureComponent=y,CA.StrictMode=J,CA.Suspense=Pe,CA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Se,CA.__COMPILER_RUNTIME=Xe,CA.act=function(b){var q=Se.actQueue,le=os;os++;var de=Se.actQueue=q!==null?q:[],Te=!1;try{var Ke=b()}catch(Oe){Se.thrownErrors.push(Oe)}if(0<Se.thrownErrors.length)throw we(q,le),b=xe(Se.thrownErrors),Se.thrownErrors.length=0,b;if(Ke!==null&&typeof Ke==="object"&&typeof Ke.then==="function"){var Je=Ke;return Ai(function(){Te||ns||(ns=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Oe,Za){Te=!0,Je.then(function(Lo){if(we(q,le),le===0){try{me(de),ye(function(){return te(Lo,Oe,Za)})}catch(Di){Se.thrownErrors.push(Di)}if(0<Se.thrownErrors.length){var er=xe(Se.thrownErrors);Se.thrownErrors.length=0,Za(er)}}else Oe(Lo)},function(Lo){we(q,le),0<Se.thrownErrors.length?(Lo=xe(Se.thrownErrors),Se.thrownErrors.length=0,Za(Lo)):Za(Lo)})}}}var wt=Ke;if(we(q,le),le===0&&(me(de),de.length!==0&&Ai(function(){Te||ns||(ns=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Se.actQueue=null),0<Se.thrownErrors.length)throw b=xe(Se.thrownErrors),Se.thrownErrors.length=0,b;return{then:function(Oe,Za){Te=!0,le===0?(Se.actQueue=de,ye(function(){return te(wt,Oe,Za)})):Oe(wt)}}},CA.cache=function(b){return function(){return b.apply(null,arguments)}},CA.cacheSignal=function(){return null},CA.captureOwnerStack=function(){var b=Se.getCurrentStack;return b===null?null:b()},CA.cloneElement=function(b,q,le){if(b===null||b===void 0)throw Error("The argument must be a React element, but you passed "+b+".");var de=_e({},b.props),{key:Te,_owner:Ke}=b;if(q!=null){var Je;e:{if(sn.call(q,"ref")&&(Je=Object.getOwnPropertyDescriptor(q,"ref").get)&&Je.isReactWarning){Je=!1;break e}Je=q.ref!==void 0}Je&&(Ke=C()),T(q)&&(S(q.key),Te=""+q.key);for(wt in q)!sn.call(q,wt)||wt==="key"||wt==="__self"||wt==="__source"||wt==="ref"&&q.ref===void 0||(de[wt]=q[wt])}var wt=arguments.length-2;if(wt===1)de.children=le;else if(1<wt){Je=Array(wt);for(var Oe=0;Oe<wt;Oe++)Je[Oe]=arguments[Oe+2];de.children=Je}de=D(b.type,Te,de,Ke,b._debugStack,b._debugTask);for(Te=2;Te<arguments.length;Te++)B(arguments[Te]);return de},CA.createContext=function(b){return b={$$typeof:St,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:vt,_context:b},b._currentRenderer=null,b._currentRenderer2=null,b},CA.createElement=function(b,q,le){for(var de=2;de<arguments.length;de++)B(arguments[de]);de={};var Te=null;if(q!=null)for(Oe in An||!("__self"in q)||"key"in q||(An=!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(q)&&(S(q.key),Te=""+q.key),q)sn.call(q,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(de[Oe]=q[Oe]);var Ke=arguments.length-2;if(Ke===1)de.children=le;else if(1<Ke){for(var Je=Array(Ke),wt=0;wt<Ke;wt++)Je[wt]=arguments[wt+2];Object.freeze&&Object.freeze(Je),de.children=Je}if(b&&b.defaultProps)for(Oe in Ke=b.defaultProps,Ke)de[Oe]===void 0&&(de[Oe]=Ke[Oe]);Te&&L(de,typeof b==="function"?b.displayName||b.name||"Unknown":b);var Oe=1e4>Se.recentlyCreatedOwnerStacks++;return D(b,Te,de,C(),Oe?Error("react-stack-top-frame"):ts,Oe?jt(h(b)):Fm)},CA.createRef=function(){var b={current:null};return Object.seal(b),b},CA.forwardRef=function(b){b!=null&&b.$$typeof===K?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof b!=="function"?console.error("forwardRef requires a render function but was given %s.",b===null?"null":typeof b):b.length!==0&&b.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",b.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),b!=null&&b.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var q={$$typeof:re,render:b},le;return Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(de){le=de,b.name||b.displayName||(Object.defineProperty(b,"name",{value:de}),b.displayName=de)}}),q},CA.isValidElement=V,CA.lazy=function(b){b={_status:-1,_result:b};var q={$$typeof:Me,_payload:b,_init:H},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 b._ioInfo=le,q._debugInfo=[{awaited:le}],q},CA.memo=function(b,q){b==null&&console.error("memo: The first argument must be a component. Instead received: %s",b===null?"null":typeof b),q={$$typeof:K,type:b,compare:q===void 0?null:q};var le;return Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(de){le=de,b.name||b.displayName||(Object.defineProperty(b,"name",{value:de}),b.displayName=de)}}),q},CA.startTransition=function(b){var q=Se.T,le={};le._updatedFibers=new Set,Se.T=le;try{var de=b(),Te=Se.S;Te!==null&&Te(le,de),typeof de==="object"&&de!==null&&typeof de.then==="function"&&(Se.asyncTransitions++,de.then(ce,ce),de.then(m,Kl))}catch(Ke){Kl(Ke)}finally{q===null&&le._updatedFibers&&(b=le._updatedFibers.size,le._updatedFibers.clear(),10<b&&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.")),q!==null&&le.types!==null&&(q.types!==null&&q.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."),q.types=le.types),Se.T=q}},CA.unstable_useCacheRefresh=function(){return F().useCacheRefresh()},CA.use=function(b){return F().use(b)},CA.useActionState=function(b,q,le){return F().useActionState(b,q,le)},CA.useCallback=function(b,q){return F().useCallback(b,q)},CA.useContext=function(b){var q=F();return b.$$typeof===vt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),q.useContext(b)},CA.useDebugValue=function(b,q){return F().useDebugValue(b,q)},CA.useDeferredValue=function(b,q){return F().useDeferredValue(b,q)},CA.useEffect=function(b,q){return b==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useEffect(b,q)},CA.useEffectEvent=function(b){return F().useEffectEvent(b)},CA.useId=function(){return F().useId()},CA.useImperativeHandle=function(b,q,le){return F().useImperativeHandle(b,q,le)},CA.useInsertionEffect=function(b,q){return b==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useInsertionEffect(b,q)},CA.useLayoutEffect=function(b,q){return b==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),F().useLayoutEffect(b,q)},CA.useMemo=function(b,q){return F().useMemo(b,q)},CA.useOptimistic=function(b,q){return F().useOptimistic(b,q)},CA.useReducer=function(b,q,le){return F().useReducer(b,q,le)},CA.useRef=function(b){return F().useRef(b)},CA.useState=function(b){return F().useState(b)},CA.useSyncExternalStore=function(b,q,le){return F().useSyncExternalStore(b,q,le)},CA.useTransition=function(){return F().useTransition()},CA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var H1=Vs(function(LA){var Cb=X(ct());(function(){function r(){}function i(h){return""+h}function u(h,C,k){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(T);var L=!1}catch(M){L=!0}return L&&(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:S,key:T==null?null:""+T,children:h,containerInfo:C,implementation:k}}function d(h,C){if(h==="font")return"";if(typeof C==="string")return C==="use-credentials"?C:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function y(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function m(){var h=x.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),k}function ke(){Ee.asyncTransitions--}function pe(k){if(Bs===null)try{var z=("require"+Math.random()).slice(0,7);Bs=(dh&&dh[z]).call(dh,"timers").setImmediate}catch(se){Bs=function(he){Qf===!1&&(Qf=!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 Ie=new MessageChannel;Ie.port1.onmessage=he,Ie.port2.postMessage(void 0)}}return Bs(k)}function Oe(k){return 1<k.length&&typeof AggregateError==="function"?AggregateError(k):k[0]}function Le(k,z){z!==zs-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. "),zs=z}function oe(k,z,se){var he=Ee.actQueue;if(he!==null)if(he.length!==0)try{be(he),pe(function(){return oe(k,z,se)});return}catch(Ie){Ee.thrownErrors.push(Ie)}else Ee.actQueue=null;0<Ee.thrownErrors.length?(he=Oe(Ee.thrownErrors),Ee.thrownErrors.length=0,se(he)):z(k)}function be(k){if(!Ps){Ps=!0;var z=0;try{for(;z<k.length;z++){var se=k[z];do{Ee.didUsePromise=!1;var he=se(!1);if(he!==null){if(Ee.didUsePromise){k[z]=se,k.splice(0,z);return}se=he}else break}while(1)}k.length=0}catch(Ie){k.splice(0,z+1),Ee.thrownErrors.push(Ie)}finally{Ps=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Me=Symbol.for("react.transitional.element"),Ze=Symbol.for("react.portal"),pt=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),Pe=Symbol.for("react.profiler"),kt=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),_e=Symbol.for("react.suspense_list"),ia=Symbol.for("react.memo"),oa=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),ee=Symbol.iterator,Y={},Se={isMounted:function(){return!1},enqueueForceUpdate:function(k){s(k,"forceUpdate")},enqueueReplaceState:function(k){s(k,"replaceState")},enqueueSetState:function(k){s(k,"setState")}},Ae=Object.assign,rt={};Object.freeze(rt),d.prototype.isReactComponent={},d.prototype.setState=function(k,z){if(typeof k!=="object"&&typeof k!=="function"&&k!=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,k,z,"setState")},d.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"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(Ar in Ue)Ue.hasOwnProperty(Ar)&&n(Ar,Ue[Ar]);c.prototype=d.prototype,Ue=g.prototype=new c,Ue.constructor=g,Ae(Ue,d.prototype),Ue.isPureReactComponent=!0;var we=Array.isArray,ya=Symbol.for("react.client.reference"),Ee={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Un=Object.prototype.hasOwnProperty,$t=console.createTask?console.createTask:function(){return null};Ue={react_stack_bottom_frame:function(k){return k()}};var Fi,Dt,ua={},so=Ue.react_stack_bottom_frame.bind(Ue,L)(),qs=$t(p(L)),Gi=!1,Vi=/\/+/g,Mr=typeof reportError==="function"?reportError:function(k){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k==="object"&&k!==null&&typeof k.message==="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(z))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",k);return}console.error(k)},Qf=!1,Bs=null,zs=0,Us=!1,Ps=!1,hd=typeof queueMicrotask==="function"?function(k){queueMicrotask(function(){return queueMicrotask(k)})}:pe;Ue=Object.freeze({__proto__:null,c:function(k){return V().useMemoCache(k)}});var Ar={map:J,forEach:function(k,z,se){J(k,function(){z.apply(this,arguments)},se)},count:function(k){var z=0;return J(k,function(){z++}),z},toArray:function(k){return J(k,function(z){return z})||[]},only:function(k){if(!F(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};DD.Activity=H,DD.Children=Ar,DD.Component=d,DD.Fragment=pt,DD.Profiler=Pe,DD.PureComponent=g,DD.StrictMode=W,DD.Suspense=je,DD.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,DD.__COMPILER_RUNTIME=Ue,DD.act=function(k){var z=Ee.actQueue,se=zs;zs++;var he=Ee.actQueue=z!==null?z:[],Ie=!1;try{var tt=k()}catch(Be){Ee.thrownErrors.push(Be)}if(0<Ee.thrownErrors.length)throw Le(z,se),k=Oe(Ee.thrownErrors),Ee.thrownErrors.length=0,k;if(tt!==null&&typeof tt==="object"&&typeof tt.then==="function"){var at=tt;return hd(function(){Ie||Us||(Us=!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(Be,yo){Ie=!0,at.then(function(jo){if(Le(z,se),se===0){try{be(he),pe(function(){return oe(jo,Be,yo)})}catch(gd){Ee.thrownErrors.push(gd)}if(0<Ee.thrownErrors.length){var Dr=Oe(Ee.thrownErrors);Ee.thrownErrors.length=0,yo(Dr)}}else Be(jo)},function(jo){Le(z,se),0<Ee.thrownErrors.length?(jo=Oe(Ee.thrownErrors),Ee.thrownErrors.length=0,yo(jo)):yo(jo)})}}}var qt=tt;if(Le(z,se),se===0&&(be(he),he.length!==0&&hd(function(){Ie||Us||(Us=!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(() => ...)"))}),Ee.actQueue=null),0<Ee.thrownErrors.length)throw k=Oe(Ee.thrownErrors),Ee.thrownErrors.length=0,k;return{then:function(Be,yo){Ie=!0,se===0?(Ee.actQueue=he,pe(function(){return oe(qt,Be,yo)})):Be(qt)}}},DD.cache=function(k){return function(){return k.apply(null,arguments)}},DD.cacheSignal=function(){return null},DD.captureOwnerStack=function(){var k=Ee.getCurrentStack;return k===null?null:k()},DD.cloneElement=function(k,z,se){if(k===null||k===void 0)throw Error("The argument must be a React element, but you passed "+k+".");var he=Ae({},k.props),{key:Ie,_owner:tt}=k;if(z!=null){var at;e:{if(Un.call(z,"ref")&&(at=Object.getOwnPropertyDescriptor(z,"ref").get)&&at.isReactWarning){at=!1;break e}at=z.ref!==void 0}at&&(tt=x()),w(z)&&(m(z.key),Ie=""+z.key);for(qt in z)!Un.call(z,qt)||qt==="key"||qt==="__self"||qt==="__source"||qt==="ref"&&z.ref===void 0||(he[qt]=z[qt])}var qt=arguments.length-2;if(qt===1)he.children=se;else if(1<qt){at=Array(qt);for(var Be=0;Be<qt;Be++)at[Be]=arguments[Be+2];he.children=at}he=I(k.type,Ie,he,tt,k._debugStack,k._debugTask);for(Ie=2;Ie<arguments.length;Ie++)B(arguments[Ie]);return he},DD.createContext=function(k){return k={$$typeof:Ct,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:kt,_context:k},k._currentRenderer=null,k._currentRenderer2=null,k},DD.createElement=function(k,z,se){for(var he=2;he<arguments.length;he++)B(arguments[he]);he={};var Ie=null;if(z!=null)for(Be in Dt||!("__self"in z)||"key"in z||(Dt=!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")),w(z)&&(m(z.key),Ie=""+z.key),z)Un.call(z,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(he[Be]=z[Be]);var tt=arguments.length-2;if(tt===1)he.children=se;else if(1<tt){for(var at=Array(tt),qt=0;qt<tt;qt++)at[qt]=arguments[qt+2];Object.freeze&&Object.freeze(at),he.children=at}if(k&&k.defaultProps)for(Be in tt=k.defaultProps,tt)he[Be]===void 0&&(he[Be]=tt[Be]);Ie&&C(he,typeof k==="function"?k.displayName||k.name||"Unknown":k);var Be=1e4>Ee.recentlyCreatedOwnerStacks++;return I(k,Ie,he,x(),Be?Error("react-stack-top-frame"):so,Be?$t(p(k)):qs)},DD.createRef=function(){var k={current:null};return Object.seal(k),k},DD.forwardRef=function(k){k!=null&&k.$$typeof===ia?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof k!=="function"?console.error("forwardRef requires a render function but was given %s.",k===null?"null":typeof k):k.length!==0&&k.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",k.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),k!=null&&k.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var z={$$typeof:me,render:k},se;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return se},set:function(he){se=he,k.name||k.displayName||(Object.defineProperty(k,"name",{value:he}),k.displayName=he)}}),z},DD.isValidElement=F,DD.lazy=function(k){k={_status:-1,_result:k};var z={$$typeof:oa,_payload:k,_init:P},se={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return k._ioInfo=se,z._debugInfo=[{awaited:se}],z},DD.memo=function(k,z){k==null&&console.error("memo: The first argument must be a component. Instead received: %s",k===null?"null":typeof k),z={$$typeof:ia,type:k,compare:z===void 0?null:z};var se;return Object.defineProperty(z,"displayName",{enumerable:!1,configurable:!0,get:function(){return se},set:function(he){se=he,k.name||k.displayName||(Object.defineProperty(k,"name",{value:he}),k.displayName=he)}}),z},DD.startTransition=function(k){var z=Ee.T,se={};se._updatedFibers=new Set,Ee.T=se;try{var he=k(),Ie=Ee.S;Ie!==null&&Ie(se,he),typeof he==="object"&&he!==null&&typeof he.then==="function"&&(Ee.asyncTransitions++,he.then(ke,ke),he.then(h,Mr))}catch(tt){Mr(tt)}finally{z===null&&se._updatedFibers&&(k=se._updatedFibers.size,se._updatedFibers.clear(),10<k&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),z!==null&&se.types!==null&&(z.types!==null&&z.types!==se.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),z.types=se.types),Ee.T=z}},DD.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},DD.use=function(k){return V().use(k)},DD.useActionState=function(k,z,se){return V().useActionState(k,z,se)},DD.useCallback=function(k,z){return V().useCallback(k,z)},DD.useContext=function(k){var z=V();return k.$$typeof===kt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),z.useContext(k)},DD.useDebugValue=function(k,z){return V().useDebugValue(k,z)},DD.useDeferredValue=function(k,z){return V().useDeferredValue(k,z)},DD.useEffect=function(k,z){return k==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(k,z)},DD.useEffectEvent=function(k){return V().useEffectEvent(k)},DD.useId=function(){return V().useId()},DD.useImperativeHandle=function(k,z,se){return V().useImperativeHandle(k,z,se)},DD.useInsertionEffect=function(k,z){return k==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(k,z)},DD.useLayoutEffect=function(k,z){return k==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(k,z)},DD.useMemo=function(k,z){return V().useMemo(k,z)},DD.useOptimistic=function(k,z){return V().useOptimistic(k,z)},DD.useReducer=function(k,z,se){return V().useReducer(k,z,se)},DD.useRef=function(k){return V().useRef(k)},DD.useState=function(k){return V().useState(k)},DD.useSyncExternalStore=function(k,z,se){return V().useSyncExternalStore(k,z,se)},DD.useTransition=function(){return V().useTransition()},DD.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var KL=Li(function(ED){var Mb=U(et());(function(){function n(){}function i(p){return""+p}function s(p,x,L){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(w);var C=!1}catch(T){C=!0}return C&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),i(w)),{$$typeof:m,key:w==null?null:""+w,children:p,containerInfo:x,implementation:L}}function d(p,x){if(p==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function c(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":'something with type "'+typeof p+'"'}function g(p){return p===null?"`null`":p===void 0?"`undefined`":p===""?"an empty string":typeof p==="string"?JSON.stringify(p):typeof p==="number"?"`"+p+"`":'something with type "'+typeof p+'"'}function h(){var p=b.H;return p===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var v={d:{f: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},S=Symbol.for("react.portal"),x=Cb.__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"),LA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,LA.createPortal=function(h,C){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error("Target container is not a DOM element.");return u(h,C,null,k)},LA.flushSync=function(h){var C=x.T,k=v.p;try{if(x.T=null,v.p=2,h)return h()}finally{x.T=C,v.p=k,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.")}},LA.preconnect=function(h,C){typeof h==="string"&&h?C!=null&&typeof C!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",y(C)):C!=null&&typeof C.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(C.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&(C?(C=C.crossOrigin,C=typeof C==="string"?C==="use-credentials"?C:"":void 0):C=null,v.d.C(h,C))},LA.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h));else if(1<arguments.length){var C=arguments[1];typeof C==="object"&&C.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",y(C)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",y(C))}typeof h==="string"&&v.d.D(h)},LA.preinit=function(h,C){if(typeof h==="string"&&h?C==null||typeof C!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",y(C)):C.as!=="style"&&C.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',y(C.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&C&&typeof C.as==="string"){var k=C.as,T=d(k,C.crossOrigin),L=typeof C.integrity==="string"?C.integrity:void 0,M=typeof C.fetchPriority==="string"?C.fetchPriority:void 0;k==="style"?v.d.S(h,typeof C.precedence==="string"?C.precedence:void 0,{crossOrigin:T,integrity:L,fetchPriority:M}):k==="script"&&v.d.X(h,{crossOrigin:T,integrity:L,fetchPriority:M,nonce:typeof C.nonce==="string"?C.nonce:void 0})}},LA.preinitModule=function(h,C){var k="";if(typeof h==="string"&&h||(k+=" The `href` argument encountered was "+f(h)+"."),C!==void 0&&typeof C!=="object"?k+=" The `options` argument encountered was "+f(C)+".":C&&("as"in C)&&C.as!=="script"&&(k+=" The `as` option encountered was "+y(C.as)+"."),k)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",k);else switch(k=C&&typeof C.as==="string"?C.as:"script",k){case"script":break;default:k=y(k),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)',k,h)}if(typeof h==="string")if(typeof C==="object"&&C!==null){if(C.as==null||C.as==="script")k=d(C.as,C.crossOrigin),v.d.M(h,{crossOrigin:k,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0})}else C==null&&v.d.M(h)},LA.preload=function(h,C){var k="";if(typeof h==="string"&&h||(k+=" The `href` argument encountered was "+f(h)+"."),C==null||typeof C!=="object"?k+=" The `options` argument encountered was "+f(C)+".":typeof C.as==="string"&&C.as||(k+=" The `as` option encountered was "+f(C.as)+"."),k&&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',k),typeof h==="string"&&typeof C==="object"&&C!==null&&typeof C.as==="string"){k=C.as;var T=d(k,C.crossOrigin);v.d.L(h,k,{crossOrigin:T,integrity:typeof C.integrity==="string"?C.integrity:void 0,nonce:typeof C.nonce==="string"?C.nonce:void 0,type:typeof C.type==="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority==="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy==="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet==="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes==="string"?C.imageSizes:void 0,media:typeof C.media==="string"?C.media:void 0})}},LA.preloadModule=function(h,C){var k="";typeof h==="string"&&h||(k+=" The `href` argument encountered was "+f(h)+"."),C!==void 0&&typeof C!=="object"?k+=" The `options` argument encountered was "+f(C)+".":C&&("as"in C)&&typeof C.as!=="string"&&(k+=" The `as` option encountered was "+f(C.as)+"."),k&&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',k),typeof h==="string"&&(C?(k=d(C.as,C.crossOrigin),v.d.m(h,{as:typeof C.as==="string"&&C.as!=="script"?C.as:void 0,crossOrigin:k,integrity:typeof C.integrity==="string"?C.integrity:void 0})):v.d.m(h))},LA.requestFormReset=function(h){v.d.r(h)},LA.unstable_batchedUpdates=function(h,C){return h(C)},LA.useFormState=function(h,C,k){return m().useFormState(h,C,k)},LA.useFormStatus=function(){return m().useHostTransitionStatus()},LA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ud=Vs(function(kA,dm){dm.exports=X(H1())});var F1=Vs(function(wA){var Tt=X(_1()),di=X(ct()),Lb=X(ud());(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],l=Aa(e)?e.slice():ft({},e);return l[n]=i(e[n],t,a+1,o),l}function u(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,a,0)}}function d(e,t,a,o){var n=t[o],l=Aa(e)?e.slice():ft({},e);return o+1===t.length?(l[a[o]]=l[n],Aa(l)?l.splice(n,1):delete l[n]):l[n]=d(e[n],t,a,o+1),l}function f(e,t,a){var o=t[a],n=Aa(e)?e.slice():ft({},e);if(a+1===t.length)return Aa(n)?n.splice(o,1):delete n[o],n;return n[o]=f(e[o],t,a+1),n}function y(){return!1}function m(){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 S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function x(){}function h(){}function C(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function k(e,t,a,o){return new lI(e,t,a,o)}function T(e,t){e.context===Sr&&(Fg(e.current,2,t,e,null,null),xu())}function L(e,t){if(Yo!==null){var a=t.staleFamilies;t=t.updatedFamilies,oc(),Vv(e.current,t,a),xu()}}function M(e){Yo=e}function D(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function B(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 _(e){if(U(e)!==e)throw Error("Unable to find node on an unmounted component.")}function pe(e){var t=e.alternate;if(!t){if(t=U(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var n=a.return;if(n===null)break;var l=n.alternate;if(l===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===l.child){for(l=n.child;l;){if(l===a)return _(n),e;if(l===o)return _(n),t;l=l.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=l;else{for(var s=!1,c=n.child;c;){if(c===a){s=!0,a=n,o=l;break}if(c===o){s=!0,o=n,a=l;break}c=c.sibling}if(!s){for(c=l.child;c;){if(c===a){s=!0,a=l,o=n;break}if(c===o){s=!0,o=l,a=n;break}c=c.sibling}if(!s)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 oe(e){if(e===null||typeof e!=="object")return null;return e=Wx&&e[Wx]||e["@@iterator"],typeof e==="function"?e:null}function Q(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===TR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Ru:return"Fragment";case Yg:return"Profiler";case np:return"StrictMode";case Zg:return"Suspense";case Wg:return"SuspenseList";case Kg: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 Iu:return"Portal";case Yn:return e.displayName||"Context";case Qg:return(e._context.displayName||"Context")+".Consumer";case pc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Eo:t=e._payload,e=e._init;try{return Q(e(t))}catch(a){}}return null}function H(e){return typeof e.tag==="number"?F(e):typeof e.name==="string"?e.name:null}function F(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 Q(t);case 8:return t===np?"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 F(e.return)}return null}function ce(e){return{current:e}}function ye(e,t){0>Rl?console.error("Unexpected pop."):(t!==ey[Rl]&&console.error("Unexpected Fiber popped."),e.current=Jg[Rl],Jg[Rl]=null,ey[Rl]=null,Rl--)}function xe(e,t,a){Rl++,Jg[Rl]=e.current,ey[Rl]=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 te(e,t){xe(mr,t,e),xe(mc,e,e),xe(pr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?xx(t):Fl:Fl;break;default:if(a=t.tagName,t=t.namespaceURI)t=xx(t),t=Cx(t,a);else switch(a){case"svg":t=ui;break;case"math":t=om;break;default:t=Fl}}a=a.toLowerCase(),a=hv(null,a),a={context:t,ancestorInfo:a},ye(pr,e),xe(pr,a,e)}function me(e){ye(pr,e),ye(mc,e),ye(mr,e)}function Ce(){return we(pr.current)}function We(e){e.memoizedState!==null&&xe(rp,e,e);var t=we(pr.current),a=e.type,o=Cx(t.context,a);a=hv(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(xe(mc,e,e),xe(pr,o,e))}function bt(e){mc.current===e&&(ye(pr,e),ye(mc,e)),rp.current===e&&(ye(rp,e),ld._currentValue=Gs)}function J(){}function Ne(){if(hc===0){Kx=console.log,Jx=console.info,eC=console.warn,tC=console.error,aC=console.group,oC=console.groupCollapsed,nC=console.groupEnd;var e={configurable:!0,enumerable:!0,value:J,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}hc++}function vt(){if(hc--,hc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ft({},e,{value:Kx}),info:ft({},e,{value:Jx}),warn:ft({},e,{value:eC}),error:ft({},e,{value:tC}),group:ft({},e,{value:aC}),groupCollapsed:ft({},e,{value:oC}),groupEnd:ft({},e,{value:nC})})}0>hc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function St(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.`),p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var y={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},m=Symbol.for("react.portal"),b=Mb.__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"),ED.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,ED.createPortal=function(p,x){var L=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return s(p,x,null,L)},ED.flushSync=function(p){var x=b.T,L=y.p;try{if(b.T=null,y.p=2,p)return p()}finally{b.T=x,y.p=L,y.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.")}},ED.preconnect=function(p,x){typeof p==="string"&&p?x!=null&&typeof x!=="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.",g(x)):x!=null&&typeof x.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.",c(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(p)),typeof p==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,y.d.C(p,x))},ED.prefetchDNS=function(p){if(typeof p!=="string"||!p)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(p));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.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`.",g(x)):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`.",g(x))}typeof p==="string"&&y.d.D(p)},ED.preinit=function(p,x){if(typeof p==="string"&&p?x==null||typeof x!=="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.",g(x)):x.as!=="style"&&x.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".',g(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(p)),typeof p==="string"&&x&&typeof x.as==="string"){var L=x.as,w=d(L,x.crossOrigin),C=typeof x.integrity==="string"?x.integrity:void 0,T=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;L==="style"?y.d.S(p,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:w,integrity:C,fetchPriority:T}):L==="script"&&y.d.X(p,{crossOrigin:w,integrity:C,fetchPriority:T,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},ED.preinitModule=function(p,x){var L="";if(typeof p==="string"&&p||(L+=" The `href` argument encountered was "+c(p)+"."),x!==void 0&&typeof x!=="object"?L+=" The `options` argument encountered was "+c(x)+".":x&&("as"in x)&&x.as!=="script"&&(L+=" The `as` option encountered was "+g(x.as)+"."),L)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",L);else switch(L=x&&typeof x.as==="string"?x.as:"script",L){case"script":break;default:L=g(L),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',L,p)}if(typeof p==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")L=d(x.as,x.crossOrigin),y.d.M(p,{crossOrigin:L,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&y.d.M(p)},ED.preload=function(p,x){var L="";if(typeof p==="string"&&p||(L+=" The `href` argument encountered was "+c(p)+"."),x==null||typeof x!=="object"?L+=" The `options` argument encountered was "+c(x)+".":typeof x.as==="string"&&x.as||(L+=" The `as` option encountered was "+c(x.as)+"."),L&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',L),typeof p==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){L=x.as;var w=d(L,x.crossOrigin);y.d.L(p,L,{crossOrigin:w,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},ED.preloadModule=function(p,x){var L="";typeof p==="string"&&p||(L+=" The `href` argument encountered was "+c(p)+"."),x!==void 0&&typeof x!=="object"?L+=" The `options` argument encountered was "+c(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(L+=" The `as` option encountered was "+c(x.as)+"."),L&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',L),typeof p==="string"&&(x?(L=d(x.as,x.crossOrigin),y.d.m(p,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:L,integrity:typeof x.integrity==="string"?x.integrity:void 0})):y.d.m(p))},ED.requestFormReset=function(p){y.d.r(p)},ED.unstable_batchedUpdates=function(p,x){return p(x)},ED.useFormState=function(p,x,L){return h().useFormState(p,x,L)},ED.useFormStatus=function(){return h().useHostTransitionStatus()},ED.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Xc=Li(function(ND,ch){ch.exports=U(KL())});var JL=Li(function(OD){var Bt=U(ZL()),Xu=U(et()),Ab=U(Xc());(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 l=t[a],r=Ya(e)?e.slice():bt({},e);return r[l]=i(e[l],t,a+1,o),r}function s(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,t,a,0)}}function d(e,t,a,o){var l=t[o],r=Ya(e)?e.slice():bt({},e);return o+1===t.length?(r[a[o]]=r[l],Ya(r)?r.splice(l,1):delete r[l]):r[l]=d(e[l],t,a,o+1),r}function c(e,t,a){var o=t[a],l=Ya(e)?e.slice():bt({},e);if(a+1===t.length)return Ya(l)?l.splice(o,1):delete l[o],l;return l[o]=c(e[o],t,a+1),l}function g(){return!1}function h(){return null}function y(){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 m(){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 b(){}function p(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function L(e,t,a,o){return new mR(e,t,a,o)}function w(e,t){e.context===Zr&&(Qy(e.current,2,t,e,null,null),ou())}function C(e,t){if(kn!==null){var a=t.staleFamilies;t=t.updatedFamilies,Fd(),tx(e.current,t,a),ou()}}function T(e){kn=e}function I(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 B(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 F(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 X(e){if(O(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ie(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 l=a.return;if(l===null)break;var r=l.alternate;if(r===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===a)return X(l),e;if(r===o)return X(l),t;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=r;else{for(var u=!1,f=l.child;f;){if(f===a){u=!0,a=l,o=r;break}if(f===o){u=!0,o=l,a=r;break}f=f.sibling}if(!u){for(f=r.child;f;){if(f===a){u=!0,a=r,o=l;break}if(f===o){u=!0,o=r,a=l;break}f=f.sibling}if(!u)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function Q(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Q(e),t!==null)return t;e=e.sibling}return null}function de(e){if(e===null||typeof e!=="object")return null;return e=ik&&e[ik]||e["@@iterator"],typeof e==="function"?e:null}function J(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===qM?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case du:return"Fragment";case tv:return"Profiler";case nm:return"StrictMode";case ov:return"Suspense";case nv:return"SuspenseList";case lv: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 uu:return"Portal";case Cl:return e.displayName||"Context";case av:return(e._context.displayName||"Context")+".Consumer";case Kd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lm:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case tn:t=e._payload,e=e._init;try{return J(e(t))}catch(a){}}return null}function P(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 J(t);case 8:return t===nm?"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 ke(e){return{current:e}}function pe(e,t){0>ar?console.error("Unexpected pop."):(t!==sv[ar]&&console.error("Unexpected Fiber popped."),e.current=rv[ar],rv[ar]=null,sv[ar]=null,ar--)}function Oe(e,t,a){ar++,rv[ar]=e.current,sv[ar]=a,e.current=t}function Le(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){Oe($r,t,e),Oe(Jd,e,e),Oe(Vr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?E1(t):gr:gr;break;default:if(a=t.tagName,t=t.namespaceURI)t=E1(t),t=N1(t,a);else switch(a){case"svg":t=Vu;break;case"math":t=oh;break;default:t=gr}}a=a.toLowerCase(),a=T0(null,a),a={context:t,ancestorInfo:a},pe(Vr,e),Oe(Vr,a,e)}function be(e){pe(Vr,e),pe(Jd,e),pe($r,e)}function Me(){return Le(Vr.current)}function Ze(e){e.memoizedState!==null&&Oe(rm,e,e);var t=Le(Vr.current),a=e.type,o=N1(t.context,a);a=T0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Oe(Jd,e,e),Oe(Vr,o,e))}function pt(e){Jd.current===e&&(pe(Vr,e),pe(Jd,e)),rm.current===e&&(pe(rm,e),Vc._currentValue=Ci)}function W(){}function Pe(){if(ec===0){uk=console.log,dk=console.info,ck=console.warn,fk=console.error,pk=console.group,mk=console.groupCollapsed,hk=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})}ec++}function kt(){if(ec--,ec===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:bt({},e,{value:uk}),info:bt({},e,{value:dk}),warn:bt({},e,{value:ck}),error:bt({},e,{value:fk}),group:bt({},e,{value:pk}),groupCollapsed:bt({},e,{value:mk}),groupEnd:bt({},e,{value:hk})})}0>ec&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ct(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(e=e.slice(29)),t=e.indexOf(`
19
19
  `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
20
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function re(e){if(ty===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ty=t&&t[1]||"",lC=-1<a.stack.indexOf(`
20
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function me(e){if(iv===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);iv=t&&t[1]||"",gk=-1<a.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+ty+e+lC}function Pe(e,t){if(!e||ay)return"";var a=oy.get(e);if(a!==void 0)return a;ay=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=G.H,G.H=null,Ne();try{var n={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(se){var P=se}Reflect.construct(e,[],I)}else{try{I.call()}catch(se){P=se}e.call(I.prototype)}}else{try{throw Error()}catch(se){P=se}(I=e())&&typeof I.catch==="function"&&I.catch(function(){})}}catch(se){if(se&&P&&typeof se.stack==="string")return[se.stack,P.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),c=s[0],p=s[1];if(c&&p){var g=c.split(`
23
- `),E=p.split(`
24
- `);for(s=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;s<E.length&&!E[s].includes("DetermineComponentFrameRoot");)s++;if(l===g.length||s===E.length)for(l=g.length-1,s=E.length-1;1<=l&&0<=s&&g[l]!==E[s];)s--;for(;1<=l&&0<=s;l--,s--)if(g[l]!==E[s]){if(l!==1||s!==1)do if(l--,s--,0>s||g[l]!==E[s]){var O=`
25
- `+g[l].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e==="function"&&oy.set(e,O),O}while(1<=l&&0<=s);break}}}finally{ay=!1,G.H=o,vt(),Error.prepareStackTrace=a}return g=(g=e?e.displayName||e.name:"")?re(g):"",typeof e==="function"&&oy.set(e,g),g}function ze(e,t){switch(e.tag){case 26:case 27:case 5:return re(e.type);case 16:return re("Lazy");case 13:return e.child!==t&&t!==null?re("Suspense Fallback"):re("Suspense");case 19:return re("SuspenseList");case 0:case 15:return Pe(e.type,!1);case 11:return Pe(e.type.render,!1);case 1:return Pe(e.type,!0);case 31:return re("Activity");default:return""}}function K(e){try{var t="",a=null;do{t+=ze(e,a);var o=e._debugInfo;if(o)for(var n=o.length-1;0<=n;n--){var l=o[n];if(typeof l.name==="string"){var s=t;e:{var{name:c,env:p,debugLocation:g}=l;if(g!=null){var E=St(g),O=E.lastIndexOf(`
26
- `),I=O===-1?E:E.slice(O+1);if(I.indexOf(c)!==-1){var P=`
27
- `+I;break e}}P=re(c+(p?" ["+p+"]":""))}t=s+P}}a=e,e=e.return}while(e);return t}catch(se){return`
28
- Error generating stack: `+se.message+`
29
- `+se.stack}}function Me(e){return(e=e?e.displayName||e.name:"")?re(e):""}function lt(){if(Oo===null)return null;var e=Oo._debugOwner;return e!=null?H(e):null}function ne(){if(Oo===null)return"";var e=Oo;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=re(e.type);break;case 13:t+=re("Suspense");break;case 19:t+=re("SuspenseList");break;case 31:t+=re("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Me(e.type));break;case 11:e._debugOwner||t!==""||(t+=Me(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var n=St(o);n!==""&&(t+=`
30
- `+n)}}else if(e.debugStack!=null){var l=e.debugStack;(e=e.owner)&&l&&(t+=`
31
- `+St(l))}else break;var s=t}catch(c){s=`
32
- Error generating stack: `+c.message+`
33
- `+c.stack}return s}function j(e,t,a,o,n,l,s){var c=Oo;be(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,l,s)):t(a,o,n,l,s)}finally{be(c)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function be(e){G.getCurrentStack=e===null?null:ne,Qn=!1,Oo=e}function _e(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function je(e){try{return Xe(e),!1}catch(t){return!0}}function Xe(e){return""+e}function Ge(e,t){if(je(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,_e(e)),Xe(e)}function ht(e,t){if(je(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,_e(e)),Xe(e)}function Se(e){if(je(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.",_e(e)),Xe(e)}function sn(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{Au=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function jt(e){if(typeof OR==="function"&&qR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Au,e)}catch(t){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Xd(e){return e>>>=0,e===0?32:31-(NR(e)/BR|0)|0}function An(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 es(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,l=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var c=o&134217727;return c!==0?(o=c&~l,o!==0?n=An(o):(s&=c,s!==0?n=An(s):a||(a=c&~e,a!==0&&(n=An(a))))):(c=o&~l,c!==0?n=An(c):s!==0?n=An(s):a||(a=o&~e,a!==0&&(n=An(a)))),n===0?0:t!==0&&t!==n&&(t&l)===0&&(l=n&-n,a=t&-t,l>=a||l===32&&(a&4194048)!==0)?t:n}function ts(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fm(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 su(){var e=ip;return ip<<=1,(ip&62914560)===0&&(ip=4194304),e}function uu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yd(e,t,a,o,n,l){var s=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:c,expirationTimes:p,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var E=31-no(a),O=1<<E;c[E]=0,p[E]=-1;var I=g[E];if(I!==null)for(g[E]=null,E=0;E<I.length;E++){var P=I[E];P!==null&&(P.lane&=-536870913)}a&=~O}o!==0&&as(e,o,0),l!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=l&~(s&~t))}function as(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-no(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function os(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-no(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function ns(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ai(e,t,a){if(Wn)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-no(a),n=1<<o;e[o].add(t),a&=~n}}function Jl(e,t){if(Wn)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-no(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(l){var s=l.alternate;s!==null&&o.has(s)||o.add(l)}),n.clear()),t&=~e}}function b(e){return e&=-e,qo!==0&&qo<e?pn!==0&&pn<e?(e&134217727)!==0?Kn:cp:pn:qo}function q(){var e=qt.p;if(e!==0)return e;return e=window.event,e===void 0?Kn:Vx(e.type)}function le(e,t){var a=qt.p;try{return qt.p=e,t()}finally{qt.p=a}}function de(e){delete e[ja],delete e[lo],delete e[uy],delete e[UR],delete e[PR]}function Te(e){var t=e[ja];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gr]||a[ja]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ax(e);e!==null;){if(a=e[ja])return a;e=Ax(e)}return t}e=a,a=e.parentNode}return null}function Ke(e){if(e=e[ja]||e[gr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Je(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function wt(e){var t=e[rC];return t||(t=e[rC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[gc]=!0}function Za(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){xs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),xs[e]=t;var a=e.toLowerCase();iy[a]=e,e==="onDoubleClick"&&(iy.ondblclick=e);for(e=0;e<t.length;e++)sC.add(t[e])}function er(e,t){zR[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 Di(e){if(fn.call(iC,e))return!0;if(fn.call(uC,e))return!1;if(_R.test(e))return iC[e]=!0;return uC[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function ev(e,t,a){if(Di(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 Ge(a,t),e===""+a?a:e}}function Qd(e,t,a){if(Di(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}}Ge(a,t),e.setAttribute(t,""+a)}}function Zd(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Ge(a,t),e.setAttribute(t,""+a)}}function vl(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}Ge(o,a),e.setAttributeNS(t,a,""+o)}}function Go(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Se(e),e;default:return""}}function tv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function BT(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:l}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){Se(s),a=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){Se(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gm(e){if(!e._valueTracker){var t=tv(e)?"checked":"value";e._valueTracker=BT(e,t,""+e[t])}}function av(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=tv(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Wd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Vo(e){return e.replace(HR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ov(e,t){t.checked===void 0||t.defaultChecked===void 0||dC||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",lt()||"A component",t.type),dC=!0),t.value===void 0||t.defaultValue===void 0||cC||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",lt()||"A component",t.type),cC=!0)}function Vm(e,t,a,o,n,l,s,c){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(Ge(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Go(t)}else e.value!==""+Go(t)&&(e.value=""+Go(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?$m(e,s,Go(t)):a!=null?$m(e,s,Go(a)):o!=null&&e.removeAttribute("value"),n==null&&l!=null&&(e.defaultChecked=!!l),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"?(Ge(c,"name"),e.name=""+Go(c)):e.removeAttribute("name")}function nv(e,t,a,o,n,l,s,c){if(l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"&&(Ge(l,"type"),e.type=l),t!=null||a!=null){if(!(l!=="submit"&&l!=="reset"||t!==void 0&&t!==null)){Gm(e);return}a=a!=null?""+Go(a):"",t=t!=null?""+Go(t):a,c||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=c?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(Ge(s,"name"),e.name=s),Gm(e)}function $m(e,t,a){t==="number"&&Wd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function lv(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?di.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||pC||(pC=!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||mC||(mC=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||fC||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),fC=!0)}function rv(){var e=lt();return e?`
34
-
35
- Check the render method of \``+e+"`.":""}function iu(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=""+Go(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 sv(e,t){for(e=0;e<gC.length;e++){var a=gC[e];if(t[a]!=null){var o=Aa(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,rv()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,rv())}}t.value===void 0||t.defaultValue===void 0||hC||(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"),hC=!0)}function uv(e,t){t.value===void 0||t.defaultValue===void 0||yC||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",lt()||"A component"),yC=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function iv(e,t,a){if(t!=null&&(t=""+Go(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Go(a):""}function cv(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(Aa(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=Go(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Gm(e)}function dv(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?dv(e.children[0],t):e}function ko(e){return" "+" ".repeat(e)}function cu(e){return"+ "+" ".repeat(e)}function rs(e){return"- "+" ".repeat(e)}function fv(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 Ei(e,t){return bC.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 Kd(e,t,a){var o=120-2*a;if(t===null)return cu(a)+Ei(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)),cu(a)+Ei(e,o)+`
37
- `+rs(a)+Ei(t,o)+`
38
- `}return ko(a)+Ei(e,o)+`
39
- `}function jm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Oi(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(Aa(e))return"[...]";if(e.$$typeof===Xn)return(t=Q(e.type))?"<"+t+">":"<...>";var a=jm(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=Oi(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 du(e,t){return typeof e!=="string"||bC.test(e)?"{"+Oi(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Xm(e,t,a){var o=120-a.length-e.length,n=[],l;for(l in t)if(t.hasOwnProperty(l)&&l!=="children"){var s=du(t[l],120-a.length-l.length-1);o-=l.length+s.length+2,n.push(l+"="+s)}return n.length===0?a+"<"+e+`>
40
- `:0<o?a+"<"+e+" "+n.join(" ")+`>
22
+ `+iv+e+gk}function je(e,t){if(!e||uv)return"";var a=dv.get(e);if(a!==void 0)return a;uv=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=j.H,j.H=null,Pe();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(fe){var _=fe}Reflect.construct(e,[],A)}else{try{A.call()}catch(fe){_=fe}e.call(A.prototype)}}else{try{throw Error()}catch(fe){_=fe}(A=e())&&typeof A.catch==="function"&&A.catch(function(){})}}catch(fe){if(fe&&_&&typeof fe.stack==="string")return[fe.stack,_.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],v=u[1];if(f&&v){var S=f.split(`
23
+ `),N=v.split(`
24
+ `);for(u=r=0;r<S.length&&!S[r].includes("DetermineComponentFrameRoot");)r++;for(;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;if(r===S.length||u===N.length)for(r=S.length-1,u=N.length-1;1<=r&&0<=u&&S[r]!==N[u];)u--;for(;1<=r&&0<=u;r--,u--)if(S[r]!==N[u]){if(r!==1||u!==1)do if(r--,u--,0>u||S[r]!==N[u]){var q=`
25
+ `+S[r].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),typeof e==="function"&&dv.set(e,q),q}while(1<=r&&0<=u);break}}}finally{uv=!1,j.H=o,kt(),Error.prepareStackTrace=a}return S=(S=e?e.displayName||e.name:"")?me(S):"",typeof e==="function"&&dv.set(e,S),S}function _e(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me("Lazy");case 13:return e.child!==t&&t!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return je(e.type,!1);case 11:return je(e.type.render,!1);case 1:return je(e.type,!0);case 31:return me("Activity");default:return""}}function ia(e){try{var t="",a=null;do{t+=_e(e,a);var o=e._debugInfo;if(o)for(var l=o.length-1;0<=l;l--){var r=o[l];if(typeof r.name==="string"){var u=t;e:{var{name:f,env:v,debugLocation:S}=r;if(S!=null){var N=Ct(S),q=N.lastIndexOf(`
26
+ `),A=q===-1?N:N.slice(q+1);if(A.indexOf(f)!==-1){var _=`
27
+ `+A;break e}}_=me(f+(v?" ["+v+"]":""))}t=u+_}}a=e,e=e.return}while(e);return t}catch(fe){return`
28
+ Error generating stack: `+fe.message+`
29
+ `+fe.stack}}function oa(e){return(e=e?e.displayName||e.name:"")?me(e):""}function H(){if(an===null)return null;var e=an._debugOwner;return e!=null?P(e):null}function ee(){if(an===null)return"";var e=an;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=me(e.type);break;case 13:t+=me("Suspense");break;case 19:t+=me("SuspenseList");break;case 31:t+=me("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=oa(e.type));break;case 11:e._debugOwner||t!==""||(t+=oa(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var l=Ct(o);l!==""&&(t+=`
30
+ `+l)}}else if(e.debugStack!=null){var r=e.debugStack;(e=e.owner)&&r&&(t+=`
31
+ `+Ct(r))}else break;var u=t}catch(f){u=`
32
+ Error generating stack: `+f.message+`
33
+ `+f.stack}return u}function Y(e,t,a,o,l,r,u){var f=an;Se(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,r,u)):t(a,o,l,r,u)}finally{Se(f)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Se(e){j.getCurrentStack=e===null?null:ee,Ll=!1,an=e}function Ae(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function rt(e){try{return Ue(e),!1}catch(t){return!0}}function Ue(e){return""+e}function we(e,t){if(rt(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,Ae(e)),Ue(e)}function ya(e,t){if(rt(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,Ae(e)),Ue(e)}function Ee(e){if(rt(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.",Ae(e)),Ue(e)}function Un(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{fu=t.inject(e),bo=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function $t(e){if(typeof FM==="function"&&GM(e),bo&&typeof bo.setStrictMode==="function")try{bo.setStrictMode(fu,e)}catch(t){wl||(wl=!0,console.error("React instrumentation encountered an error: %o",t))}}function Fi(e){return e>>>=0,e===0?32:31-(VM(e)/$M|0)|0}function Dt(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 ua(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,r=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var f=o&134217727;return f!==0?(o=f&~r,o!==0?l=Dt(o):(u&=f,u!==0?l=Dt(u):a||(a=f&~e,a!==0&&(l=Dt(a))))):(f=o&~r,f!==0?l=Dt(f):u!==0?l=Dt(u):a||(a=o&~e,a!==0&&(l=Dt(a)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:l}function so(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qs(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 Gi(){var e=um;return um<<=1,(um&62914560)===0&&(um=4194304),e}function Vi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Mr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qf(e,t,a,o,l,r){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:f,expirationTimes:v,hiddenUpdates:S}=e;for(a=u&~a;0<a;){var N=31-wo(a),q=1<<N;f[N]=0,v[N]=-1;var A=S[N];if(A!==null)for(S[N]=null,N=0;N<A.length;N++){var _=A[N];_!==null&&(_.lane&=-536870913)}a&=~q}o!==0&&Bs(e,o,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(u&~t))}function Bs(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-wo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function zs(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-wo(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function Us(e,t){var a=t&-t;return a=(a&42)!==0?1:Ps(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ps(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 hd(e,t,a){if(Tl)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-wo(a),l=1<<o;e[o].add(t),a&=~l}}function Ar(e,t){if(Tl)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-wo(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(r){var u=r.alternate;u!==null&&o.has(u)||o.add(r)}),l.clear()),t&=~e}}function k(e){return e&=-e,on!==0&&on<e?Gn!==0&&Gn<e?(e&134217727)!==0?Il:dm:Gn:on}function z(){var e=Xt.p;if(e!==0)return e;return e=window.event,e===void 0?Il:tk(e.type)}function se(e,t){var a=Xt.p;try{return Xt.p=e,t()}finally{Xt.p=a}}function he(e){delete e[fo],delete e[To],delete e[hv],delete e[jM],delete e[XM]}function Ie(e){var t=e[fo];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xr]||a[fo]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=H1(e);e!==null;){if(a=e[fo])return a;e=H1(e)}return t}e=a,a=e.parentNode}return null}function tt(e){if(e=e[fo]||e[Xr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function at(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function qt(e){var t=e[yk];return t||(t=e[yk]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[tc]=!0}function yo(e,t){jo(e,t),jo(e+"Capture",t)}function jo(e,t){ti[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ti[e]=t;var a=e.toLowerCase();gv[a]=e,e==="onDoubleClick"&&(gv.ondblclick=e);for(e=0;e<t.length;e++)vk.add(t[e])}function Dr(e,t){YM[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 gd(e){if(Fn.call(xk,e))return!0;if(Fn.call(bk,e))return!1;if(QM.test(e))return xk[e]=!0;return bk[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function c0(e,t,a){if(gd(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 we(a,t),e===""+a?a:e}}function Wf(e,t,a){if(gd(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}}we(a,t),e.setAttribute(t,""+a)}}function Zf(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}we(a,t),e.setAttribute(t,""+a)}}function Xl(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}we(o,a),e.setAttributeNS(t,a,""+o)}}function yn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ee(e),e;default:return""}}function f0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $2(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:l,set:r}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(u){Ee(u),a=""+u,r.call(this,u)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(u){Ee(u),a=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wh(e){if(!e._valueTracker){var t=f0(e)?"checked":"value";e._valueTracker=$2(e,t,""+e[t])}}function p0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=f0(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Kf(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 vn(e){return e.replace(WM,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function m0(e,t){t.checked===void 0||t.defaultChecked===void 0||kk||(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",H()||"A component",t.type),kk=!0),t.value===void 0||t.defaultValue===void 0||Sk||(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",H()||"A component",t.type),Sk=!0)}function Zh(e,t,a,o,l,r,u,f){if(e.name="",u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"?(we(u,"type"),e.type=u):e.removeAttribute("type"),t!=null)if(u==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+yn(t)}else e.value!==""+yn(t)&&(e.value=""+yn(t));else u!=="submit"&&u!=="reset"||e.removeAttribute("value");t!=null?Kh(e,u,yn(t)):a!=null?Kh(e,u,yn(a)):o!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!=="function"&&typeof l!=="symbol"),f!=null&&typeof f!=="function"&&typeof f!=="symbol"&&typeof f!=="boolean"?(we(f,"name"),e.name=""+yn(f)):e.removeAttribute("name")}function h0(e,t,a,o,l,r,u,f){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(we(r,"type"),e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!==void 0&&t!==null)){Wh(e);return}a=a!=null?""+yn(a):"",t=t!=null?""+yn(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:l,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=f?e.checked:!!o,e.defaultChecked=!!o,u!=null&&typeof u!=="function"&&typeof u!=="symbol"&&typeof u!=="boolean"&&(we(u,"name"),e.name=u),Wh(e)}function Kh(e,t,a){t==="number"&&Kf(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function g0(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?Xu.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Lk||(Lk=!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||wk||(wk=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Ck||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ck=!0)}function y0(){var e=H();return e?`
34
+
35
+ Check the render method of \``+e+"`.":""}function $i(e,t,a,o){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&o&&(e[a].defaultSelected=!0)}else{a=""+yn(a),t=null;for(l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function v0(e,t){for(e=0;e<Ik.length;e++){var a=Ik[e];if(t[a]!=null){var o=Ya(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,y0()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,y0())}}t.value===void 0||t.defaultValue===void 0||Tk||(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"),Tk=!0)}function b0(e,t){t.value===void 0||t.defaultValue===void 0||Rk||(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",H()||"A component"),Rk=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function x0(e,t,a){if(t!=null&&(t=""+yn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+yn(a):""}function S0(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(Ya(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=yn(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Wh(e)}function k0(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?k0(e.children[0],t):e}function Xo(e){return" "+" ".repeat(e)}function ji(e){return"+ "+" ".repeat(e)}function _s(e){return"- "+" ".repeat(e)}function C0(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 yd(e,t){return Mk.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 Jf(e,t,a){var o=120-2*a;if(t===null)return ji(a)+yd(e,o)+`
36
+ `;if(typeof t==="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>o-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),ji(a)+yd(e,o)+`
37
+ `+_s(a)+yd(t,o)+`
38
+ `}return Xo(a)+yd(e,o)+`
39
+ `}function Jh(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function vd(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(Ya(e))return"[...]";if(e.$$typeof===kl)return(t=J(e.type))?"<"+t+">":"<...>";var a=Jh(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var l=JSON.stringify(o);if(l!=='"'+o+'"'&&(o=l),t-=o.length-2,l=vd(e[o],15>t?t:15),t-=l.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+l}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function Xi(e,t){return typeof e!=="string"||Mk.test(e)?"{"+vd(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function eg(e,t,a){var o=120-a.length-e.length,l=[],r;for(r in t)if(t.hasOwnProperty(r)&&r!=="children"){var u=Xi(t[r],120-a.length-r.length-1);o-=r.length+u.length+2,l.push(r+"="+u)}return l.length===0?a+"<"+e+`>
40
+ `:0<o?a+"<"+e+" "+l.join(" ")+`>
41
41
  `:a+"<"+e+`
42
- `+a+" "+n.join(`
42
+ `+a+" "+l.join(`
43
43
  `+a+" ")+`
44
44
  `+a+`>
45
- `}function UT(e,t,a){var o="",n=ft({},t),l;for(l in e)if(e.hasOwnProperty(l)){delete n[l];var s=120-2*a-l.length-2,c=Oi(e[l],s);t.hasOwnProperty(l)?(s=Oi(t[l],s),o+=cu(a)+l+": "+c+`
46
- `,o+=rs(a)+l+": "+s+`
47
- `):o+=cu(a)+l+": "+c+`
48
- `}for(var p in n)n.hasOwnProperty(p)&&(e=Oi(n[p],120-2*a-p.length-2),o+=rs(a)+p+": "+e+`
49
- `);return o}function PT(e,t,a,o){var n="",l=new Map;for(g in a)a.hasOwnProperty(g)&&l.set(g.toLowerCase(),g);if(l.size===1&&l.has("children"))n+=Xm(e,t,ko(o));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var c=120-2*(o+1)-s.length-1,p=l.get(s.toLowerCase());if(p!==void 0){l.delete(s.toLowerCase());var g=t[s];p=a[p];var E=du(g,c);c=du(p,c),typeof g==="object"&&g!==null&&typeof p==="object"&&p!==null&&jm(g)==="Object"&&jm(p)==="Object"&&(2<Object.keys(g).length||2<Object.keys(p).length||-1<E.indexOf("...")||-1<c.indexOf("..."))?n+=ko(o+1)+s+`={{
50
- `+UT(g,p,o+2)+ko(o+1)+`}}
51
- `:(n+=cu(o+1)+s+"="+E+`
52
- `,n+=rs(o+1)+s+"="+c+`
53
- `)}else n+=ko(o+1)+s+"="+du(t[s],c)+`
54
- `}l.forEach(function(O){if(O!=="children"){var I=120-2*(o+1)-O.length-1;n+=rs(o+1)+O+"="+du(a[O],I)+`
55
- `}}),n=n===""?ko(o)+"<"+e+`>
56
- `:ko(o)+"<"+e+`
57
- `+n+ko(o)+`>
58
- `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(l="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=""+t;n+=Kd(l,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=e==null?n+Kd(""+t,null,o+1):n+Kd(""+t,void 0,o+1);return n}function pv(e,t){var a=fv(e);if(a===null){a="";for(e=e.child;e;)a+=pv(e,t),e=e.sibling;return a}return ko(t)+"<"+a+`>
59
- `}function Ym(e,t){var a=dv(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return ko(t)+`...
60
- `+Ym(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var n=0;n<o.length;n++){var l=o[n].name;typeof l==="string"&&(a+=ko(t)+"<"+l+`>
61
- `,t++)}if(o="",n=e.fiber.pendingProps,e.fiber.tag===6)o=Kd(n,e.serverProps,t),t++;else if(l=fv(e.fiber),l!==null)if(e.serverProps===void 0){o=t;var s=120-2*o-l.length-2,c="";for(g in n)if(n.hasOwnProperty(g)&&g!=="children"){var p=du(n[g],15);if(s-=g.length+p.length+2,0>s){c+=" ...";break}c+=" "+g+"="+p}o=ko(o)+"<"+l+c+`>
62
- `,t++}else e.serverProps===null?(o=Xm(l,n,cu(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=PT(l,n,e.serverProps,t),t++);var g="";n=e.fiber.child;for(l=0;n&&l<e.children.length;)s=e.children[l],s.fiber===n?(g+=Ym(s,t),l++):g+=pv(n,t),n=n.sibling;n&&0<e.children.length&&(g+=ko(t)+`...
63
- `),n=e.serverTail,e.serverProps===null&&t--;for(e=0;e<n.length;e++)l=n[e],g=typeof l==="string"?g+(rs(t)+Ei(l,120-2*t)+`
64
- `):g+Xm(l.type,l.props,rs(t));return a+o+g}function Qm(e){try{return`
65
-
66
- `+Ym(e,0)}catch(t){return""}}function mv(e,t,a){for(var o=t,n=null,l=0;o;)o===e&&(l=0),n={fiber:o,children:n!==null?[n]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:l},l++,o=o.return;return n!==null?Qm(n).replaceAll(/^[+-]/gm,">"):""}function hv(e,t){var a=ft({},e||SC),o={tag:t};if(vC.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),GR.indexOf(t)!==-1&&(a.pTagInButtonScope=null),FR.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 gv(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 VR.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 zT(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 yv(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 Zm(e,t){t=t||SC;var a=t.current;if(t=(a=gv(e,a&&a.tag,t.implicitRootScope)?null:a)?null:zT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,dp[t])return!1;dp[t]=!0;var n=(t=Oo)?yv(t.return,o):null,l=t!==null&&n!==null?mv(n,t,null):"",s="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
- This will cause a hydration error.%s`,s,o,a,l)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
- This will cause a hydration error.%s`,s,o,l),t&&(e=t.return,n===null||e===null||n===e&&e._debugOwner===t._debugOwner||j(n,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,o,s)})),!1}function Jd(e,t,a){if(a||gv("#text",t,!1))return!0;if(a="#text|"+t,dp[a])return!1;dp[a]=!0;var o=(a=Oo)?yv(a,t):null;return a=a!==null&&o!==null?mv(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
45
+ `}function j2(e,t,a){var o="",l=bt({},t),r;for(r in e)if(e.hasOwnProperty(r)){delete l[r];var u=120-2*a-r.length-2,f=vd(e[r],u);t.hasOwnProperty(r)?(u=vd(t[r],u),o+=ji(a)+r+": "+f+`
46
+ `,o+=_s(a)+r+": "+u+`
47
+ `):o+=ji(a)+r+": "+f+`
48
+ `}for(var v in l)l.hasOwnProperty(v)&&(e=vd(l[v],120-2*a-v.length-2),o+=_s(a)+v+": "+e+`
49
+ `);return o}function X2(e,t,a,o){var l="",r=new Map;for(S in a)a.hasOwnProperty(S)&&r.set(S.toLowerCase(),S);if(r.size===1&&r.has("children"))l+=eg(e,t,Xo(o));else{for(var u in t)if(t.hasOwnProperty(u)&&u!=="children"){var f=120-2*(o+1)-u.length-1,v=r.get(u.toLowerCase());if(v!==void 0){r.delete(u.toLowerCase());var S=t[u];v=a[v];var N=Xi(S,f);f=Xi(v,f),typeof S==="object"&&S!==null&&typeof v==="object"&&v!==null&&Jh(S)==="Object"&&Jh(v)==="Object"&&(2<Object.keys(S).length||2<Object.keys(v).length||-1<N.indexOf("...")||-1<f.indexOf("..."))?l+=Xo(o+1)+u+`={{
50
+ `+j2(S,v,o+2)+Xo(o+1)+`}}
51
+ `:(l+=ji(o+1)+u+"="+N+`
52
+ `,l+=_s(o+1)+u+"="+f+`
53
+ `)}else l+=Xo(o+1)+u+"="+Xi(t[u],f)+`
54
+ `}r.forEach(function(q){if(q!=="children"){var A=120-2*(o+1)-q.length-1;l+=_s(o+1)+q+"="+Xi(a[q],A)+`
55
+ `}}),l=l===""?Xo(o)+"<"+e+`>
56
+ `:Xo(o)+"<"+e+`
57
+ `+l+Xo(o)+`>
58
+ `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(r="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")r=""+t;l+=Jf(r,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=e==null?l+Jf(""+t,null,o+1):l+Jf(""+t,void 0,o+1);return l}function L0(e,t){var a=C0(e);if(a===null){a="";for(e=e.child;e;)a+=L0(e,t),e=e.sibling;return a}return Xo(t)+"<"+a+`>
59
+ `}function tg(e,t){var a=k0(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Xo(t)+`...
60
+ `+tg(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var l=0;l<o.length;l++){var r=o[l].name;typeof r==="string"&&(a+=Xo(t)+"<"+r+`>
61
+ `,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=Jf(l,e.serverProps,t),t++;else if(r=C0(e.fiber),r!==null)if(e.serverProps===void 0){o=t;var u=120-2*o-r.length-2,f="";for(S in l)if(l.hasOwnProperty(S)&&S!=="children"){var v=Xi(l[S],15);if(u-=S.length+v.length+2,0>u){f+=" ...";break}f+=" "+S+"="+v}o=Xo(o)+"<"+r+f+`>
62
+ `,t++}else e.serverProps===null?(o=eg(r,l,ji(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=X2(r,l,e.serverProps,t),t++);var S="";l=e.fiber.child;for(r=0;l&&r<e.children.length;)u=e.children[r],u.fiber===l?(S+=tg(u,t),r++):S+=L0(l,t),l=l.sibling;l&&0<e.children.length&&(S+=Xo(t)+`...
63
+ `),l=e.serverTail,e.serverProps===null&&t--;for(e=0;e<l.length;e++)r=l[e],S=typeof r==="string"?S+(_s(t)+yd(r,120-2*t)+`
64
+ `):S+eg(r.type,r.props,_s(t));return a+o+S}function ag(e){try{return`
65
+
66
+ `+tg(e,0)}catch(t){return""}}function w0(e,t,a){for(var o=t,l=null,r=0;o;)o===e&&(r=0),l={fiber:o,children:l!==null?[l]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:r},r++,o=o.return;return l!==null?ag(l).replaceAll(/^[+-]/gm,">"):""}function T0(e,t){var a=bt({},e||Dk),o={tag:t};if(Ak.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),KM.indexOf(t)!==-1&&(a.pTagInButtonScope=null),ZM.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 I0(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 JM.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 Y2(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 R0(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 og(e,t){t=t||Dk;var a=t.current;if(t=(a=I0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:Y2(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,cm[t])return!1;cm[t]=!0;var l=(t=an)?R0(t.return,o):null,r=t!==null&&l!==null?w0(l,t,null):"",u="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,u,o,a,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,u,o,r),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||Y(l,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,o,u)})),!1}function ep(e,t,a){if(a||I0("#text",t,!1))return!0;if(a="#text|"+t,cm[a])return!1;cm[a]=!0;var o=(a=an)?R0(a,t):null;return a=a!==null&&o!==null?w0(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 qi(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function _T(e){return e.replace(XR,function(t,a){return a.toUpperCase()})}function bv(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Du.hasOwnProperty(t)&&Du[t]||(Du[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,_T(t.replace(jR,"ms-")))):$R.test(t)?Du.hasOwnProperty(t)&&Du[t]||(Du[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!LC.test(a)||dy.hasOwnProperty(a)&&dy[a]||(dy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(LC,""))),typeof a==="number"&&(isNaN(a)?kC||(kC=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||wC||(wC=!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||TC.has(t)?t==="float"?e.cssFloat=a:(ht(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function vv(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 l=cy[n]||[n],s=0;s<l.length;s++)o[l[s]]=n}for(var c in t)if(t.hasOwnProperty(c)&&(!a||a[c]!==t[c]))for(n=cy[c]||[c],l=0;l<n.length;l++)o[n[l]]=c;c={};for(var p in t)for(n=cy[p]||[p],l=0;l<n.length;l++)c[n[l]]=p;p={};for(var g in o)if(n=o[g],(l=c[g])&&n!==l&&(s=n+","+l,!p[s])){p[s]=!0,s=console;var E=t[n];s.error.call(s,"%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.",E==null||typeof E==="boolean"||E===""?"Removing":"Updating",n,l)}}for(var O in a)!a.hasOwnProperty(O)||t!=null&&t.hasOwnProperty(O)||(O.indexOf("--")===0?e.setProperty(O,""):O==="float"?e.cssFloat="":e[O]="");for(var I in t)g=t[I],t.hasOwnProperty(I)&&a[I]!==g&&bv(e,I,g)}else for(o in t)t.hasOwnProperty(o)&&bv(e,o,t[o])}function Ni(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 Sv(e){return YR.get(e)||e}function HT(e,t){if(fn.call(Ou,t)&&Ou[t])return!0;if(ZR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=IC.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ou[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ou[t]=!0}if(QR.test(t)){if(e=t.toLowerCase(),e=IC.hasOwnProperty(e)?e:null,e==null)return Ou[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ou[t]=!0)}return!0}function FT(e,t){var a=[],o;for(o in t)HT(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 GT(e,t,a,o){if(fn.call(ro,t)&&ro[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."),ro[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),ro[t]=!0;if(MC.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),ro[t]=!0}else if(MC.test(t))return WR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ro[t]=!0;if(KR.test(t)||JR.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ro[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ro[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),ro[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),ro[t]=!0;if(pp.hasOwnProperty(n)){if(n=pp[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),ro[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),ro[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),ro[t]=!0}case"function":case"symbol":return ro[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),ro[t]=!0}}return!0}function VT(e,t,a){var o=[],n;for(n in t)GT(e,n,t[n],a)||o.push(n);t=o.map(function(l){return"`"+l+"`"}).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 Bi(e){return eM.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sl(){}function Wm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function xv(e){var t=Ke(e);if(t&&(e=t.stateNode)){var a=e[lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vm(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;Ge(t,"name"),a=a.querySelectorAll('input[name="'+Vo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[lo]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Vm(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&&av(o)}break e;case"textarea":iv(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&iu(e,!!a.multiple,t,!1)}}}function Cv(e,t,a){if(fy)return e(t,a);fy=!0;try{var o=e(t);return o}finally{if(fy=!1,qu!==null||Nu!==null){if(xu(),qu&&(t=qu,e=Nu,Nu=qu=null,xv(t),e))for(t=0;t<e.length;t++)xv(e[t])}}}function Ui(e,t){var a=e.stateNode;if(a===null)return null;var o=a[lo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function Lv(){if(mp)return mp;var e,t=my,a=t.length,o,n="value"in yr?yr.value:yr.textContent,l=n.length;for(e=0;e<a&&t[e]===n[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===n[l-o];o++);return mp=n.slice(e,1<o?1-o:void 0)}function ef(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 tf(){return!0}function kv(){return!1}function mo(e){function t(a,o,n,l,s){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(a=e[c],this[c]=a?a(l):l[c]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?tf:kv,this.isPropagationStopped=kv,this}return ft(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=tf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=tf)},persist:function(){},isPersistent:tf}),t}function $T(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=pM[e])?!!t[e]:!1}function Km(){return $T}function wv(e,t){switch(e){case"keyup":return wM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==OC;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tv(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function jT(e,t){switch(e){case"compositionend":return Tv(t);case"keypress":if(t.which!==NC)return null;return UC=!0,BC;case"textInput":return e=t.data,e===BC&&UC?null:e;default:return null}}function XT(e,t){if(Bu)return e==="compositionend"||!by&&wv(e,t)?(e=Lv(),mp=my=yr=null,Bu=!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 qC&&t.locale!=="ko"?null:t.data;default:return null}}function Iv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IM[e.type]:t==="textarea"?!0:!1}function YT(e){if(!Jn)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 Rv(e,t,a,o){qu?Nu?Nu.push(o):Nu=[o]:qu=o,t=Yf(t,"onChange"),0<t.length&&(a=new hp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function QT(e){cx(e,0)}function af(e){var t=Je(e);if(av(t))return e}function Mv(e,t){if(e==="change")return t}function Av(){Cc&&(Cc.detachEvent("onpropertychange",Dv),Lc=Cc=null)}function Dv(e){if(e.propertyName==="value"&&af(Lc)){var t=[];Rv(t,Lc,e,Wm(e)),Cv(QT,t)}}function ZT(e,t,a){e==="focusin"?(Av(),Cc=t,Lc=a,Cc.attachEvent("onpropertychange",Dv)):e==="focusout"&&Av()}function WT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return af(Lc)}function KT(e,t){if(e==="click")return af(t)}function JT(e,t){if(e==="input"||e==="change")return af(t)}function eI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Pi(e,t){if(so(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(!fn.call(t,n)||!so(e[n],t[n]))return!1}return!0}function Ev(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ov(e,t){var a=Ev(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=Ev(a)}}function qv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qv(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wd(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Wd(e.document)}return t}function Jm(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 Bv(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Sy||Uu==null||Uu!==Wd(o)||(o=Uu,("selectionStart"in o)&&Jm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),kc&&Pi(kc,o)||(kc=o,o=Yf(vy,"onSelect"),0<o.length&&(t=new hp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Uu)))}function ss(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function us(e){if(xy[e])return xy[e];if(!Pu[e])return e;var t=Pu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in zC)return xy[e]=t[a];return e}function un(e,t){VC.set(e,t),Za(t,[e])}function tI(e){for(var t=yp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Aa(o)&&o.length===2&&typeof o[0]==="string"){if(t!==yp&&t!==Ty)return ky;t=Ty}else return ky;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==yp&&t!==wy)return ky;t=wy}}return t}function eh(e,t,a,o){for(var n in e)fn.call(e,n)&&n[0]!=="_"&&Dn(n,e[n],t,a,o)}function Dn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Xn){var l=Q(t.type)||"…",s=t.key;t=t.props;var c=Object.keys(t),p=c.length;if(s==null&&p===0){t="<"+l+" />";break}if(3>o||p===1&&c[0]==="children"&&s==null){t="<"+l+" … />";break}a.push([n+"  ".repeat(o)+e,"<"+l]),s!==null&&Dn("key",s,a,o+1,n),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Aa(t.children)||0<t.children.length)&&(e=!0):fn.call(t,g)&&g[0]!=="_"&&Dn(g,t[g],a,o+1,n);a.push(["",e?">…</"+l+">":"/>"]);return}if(l=Object.prototype.toString.call(t),l=l.slice(8,l.length-1),l==="Array"){if(g=tI(t),g===wy||g===yp){t=JSON.stringify(t);break}else if(g===Ty){a.push([n+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)l=t[e],Dn(l[0],l[1],a,o+1,n);return}}if(l==="Promise"){if(t.status==="fulfilled"){if(l=a.length,Dn(e,t.value,a,o,n),a.length>l){a=a[l],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(l=a.length,Dn(e,t.reason,a,o,n),a.length>l)){a=a[l],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}l==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(l=g.constructor.name),a.push([n+"  ".repeat(o)+e,l==="Object"?3>o?"":"…":l]),3>o&&eh(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===qM?"…":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 Uv(e,t,a,o){var n=!0;for(s in e)s in t||(a.push([bp+"  ".repeat(o)+s,"…"]),n=!1);for(var l in t)if(l in e){var s=e[l],c=t[l];if(s!==c){if(o===0&&l==="children")n="  ".repeat(o)+l,a.push([bp+n,"…"],[vp+n,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof c==="object"&&s!==null&&c!==null&&s.$$typeof===c.$$typeof)if(c.$$typeof===Xn){if(s.type===c.type&&s.key===c.key){s=Q(c.type)||"…",n="  ".repeat(o)+l,s="<"+s+" … />",a.push([bp+n,s],[vp+n,s]),n=!1;continue}}else{var p=Object.prototype.toString.call(s),g=Object.prototype.toString.call(c);if(p===g&&(g==="[object Object]"||g==="[object Array]")){p=[XC+"  ".repeat(o)+l,g==="[object Array]"?"Array":""],a.push(p),g=a.length,Uv(s,c,a,o+1)?g===a.length&&(p[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof s==="function"&&typeof c==="function"&&s.name===c.name&&s.length===c.length&&(p=Function.prototype.toString.call(s),g=Function.prototype.toString.call(c),p===g)){s=c.name===""?"() => {}":c.name+"() {}",a.push([XC+"  ".repeat(o)+l,s+" Referentially unequal function closure. Consider memoization."]);continue}}Dn(l,s,a,o,bp),Dn(l,c,a,o,vp)}n=!1}}else a.push([vp+"  ".repeat(o)+l,"…"]),n=!1;return n}function wo(e){mt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function En(e,t,a,o){Qt&&(vr.start=t,vr.end=a,Ml.color="warning",Ml.tooltipText=o,Ml.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,vr)):performance.measure(o,vr))}function of(e,t,a){En(e,t,a,"Reconnect")}function nf(e,t,a,o,n){var l=F(e);if(l!==null&&Qt){var{alternate:s,actualDuration:c}=e;if(s===null||s.child!==e.child)for(var p=e.child;p!==null;p=p.sibling)c-=p.actualDuration;o=0.5>c?o?"tertiary-light":"primary-light":10>c?o?"tertiary":"primary":100>c?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;c=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(p=[NM],g=Uv(s.memoizedProps,g,p,0),1<p.length&&(g&&!br&&(s.lanes&n)===0&&100<e.actualDuration?(br=!0,p[0]=BM,Ml.color="warning",Ml.tooltipText=YC):(Ml.color=o,Ml.tooltipText=l),Ml.properties=p,vr.start=t,vr.end=a,c!=null?c.run(performance.measure.bind(performance,"​"+l,vr)):performance.measure("​"+l,vr))):c!=null?c.run(console.timeStamp.bind(console,l,t,a,jo,void 0,o)):console.timeStamp(l,t,a,jo,void 0,o)}}function th(e,t,a,o){if(Qt){var n=F(e);if(n!==null){for(var l=null,s=[],c=0;c<o.length;c++){var p=o[c];l==null&&p.source!==null&&(l=p.source._debugTask),p=p.value,s.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e.key!==null&&Dn("key",e.key,s,0,""),e.memoizedProps!==null&&eh(e.memoizedProps,s,0,""),l==null&&(l=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:jo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},l?l.run(performance.measure.bind(performance,"​"+n,e)):performance.measure("​"+n,e)}}}function On(e,t,a,o,n){if(n!==null){if(Qt){var l=F(e);if(l!==null){o=[];for(var s=0;s<n.length;s++){var c=n[s].value;o.push(["Error",typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c)])}e.key!==null&&Dn("key",e.key,o,0,""),e.memoizedProps!==null&&eh(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:jo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+l,t)):performance.measure("​"+l,t)}}}else l=F(e),l!==null&&Qt&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,l,t,a,jo,void 0,n)):console.timeStamp(l,t,a,jo,void 0,n))}function aI(e,t,a,o){if(Qt&&!(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,mt,pt,n)):console.timeStamp(a,e,t,mt,pt,n)}}function Pv(e,t,a,o){!Qt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,mt,pt,a)):console.timeStamp("Prewarm",e,t,mt,pt,a))}function zv(e,t,a,o){!Qt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,mt,pt,a)):console.timeStamp("Suspended",e,t,mt,pt,a))}function oI(e,t,a,o,n,l){if(Qt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var c=o[s].value;a.push(["Recoverable Error",typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:mt,trackGroup:pt,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},l?l.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function ah(e,t,a,o){!Qt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,mt,pt,"error")):console.timeStamp("Errored",e,t,mt,pt,"error"))}function nI(e,t,a,o){!Qt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,mt,pt,"secondary-light")):console.timeStamp(a,e,t,mt,pt,"secondary-light"))}function _v(e,t,a,o,n){if(Qt&&!(t<=e)){for(var l=[],s=0;s<a.length;s++){var c=a[s].value;l.push(["Error",typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c)])}e={start:e,end:t,detail:{devtools:{color:"error",track:mt,trackGroup:pt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:l}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function zi(e,t,a){!Qt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,mt,pt,"secondary-dark")):console.timeStamp("Animating",e,t,mt,pt,"secondary-dark"))}function lf(){for(var e=zu,t=Iy=zu=0;t<e;){var a=Xo[t];Xo[t++]=null;var o=Xo[t];Xo[t++]=null;var n=Xo[t];Xo[t++]=null;var l=Xo[t];if(Xo[t++]=null,o!==null&&n!==null){var s=o.pending;s===null?n.next=n:(n.next=s.next,s.next=n),o.pending=n}l!==0&&Hv(a,n,l)}}function rf(e,t,a,o){Xo[zu++]=e,Xo[zu++]=t,Xo[zu++]=a,Xo[zu++]=o,Iy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function oh(e,t,a,o){return rf(e,t,a,o),sf(e)}function Wa(e,t){return rf(e,null,null,t),sf(e)}function Hv(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,l=e.return;l!==null;)l.childLanes|=a,o=l.alternate,o!==null&&(o.childLanes|=a),l.tag===22&&(e=l.stateNode,e===null||e._visibility&wc||(n=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,n&&t!==null&&(n=31-no(a),e=l.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),l):null}function sf(e){if(Kc>WM)throw Us=Kc=0,Jc=rb=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Us>KM&&(Us=0,Jc=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&&ox(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&ox(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function is(e){if(Yo===null)return e;var t=Yo(e);return t===void 0?e:t.current}function nh(e){if(Yo===null)return e;var t=Yo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=is(e.render),e.render!==t)?(t={$$typeof:pc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Fv(e,t){if(Yo===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===Eo&&(o=!0);break;case 11:n===pc?o=!0:n===Eo&&(o=!0);break;case 14:case 15:n===lp?o=!0:n===Eo&&(o=!0);break;default:return!1}return o&&(e=Yo(a),e!==void 0&&e===Yo(t))?!0:!1}function Gv(e){Yo!==null&&typeof WeakSet==="function"&&(_u===null&&(_u=new WeakSet),_u.add(e))}function Vv(e,t,a){do{var o=e,n=o.alternate,l=o.child,s=o.sibling,c=o.tag;o=o.type;var p=null;switch(c){case 0:case 15:case 1:p=o;break;case 11:p=o.render}if(Yo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,p!==null&&(p=Yo(p),p!==void 0&&(a.has(p)?o=!0:t.has(p)&&(c===1?o=!0:g=!0))),_u!==null&&(_u.has(e)||n!==null&&_u.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)n=Wa(e,2),n!==null&&ra(n,e,2);if(l===null||o||Vv(l,t,a),s===null)break;e=s}while(1)}function lI(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 lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xl(e,t){var a=e.alternate;switch(a===null?(a=k(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=is(e.type);break;case 1:a.type=is(e.type);break;case 11:a.type=nh(e.type)}return a}function $v(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function rh(e,t,a,o,n,l){var s=0,c=e;if(typeof e==="function")lh(e)&&(s=1),c=is(c);else if(typeof e==="string")s=Ce(),s=mR(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Kg:return t=k(31,a,t,n),t.elementType=Kg,t.lanes=l,t;case Ru:return cs(a.children,n,l,t);case np:s=8,n|=Ja,n|=mn;break;case Yg: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=k(12,e,t,o|rt),t.elementType=Yg,t.lanes=l,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Zg:return t=k(13,a,t,n),t.elementType=Zg,t.lanes=l,t;case Wg:return t=k(19,a,t,n),t.elementType=Wg,t.lanes=l,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Yn:s=10;break e;case Qg:s=9;break e;case pc:s=11,c=nh(c);break e;case lp:s=14;break e;case Eo:s=16,c=null;break e}if(c="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)c+=" 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":Aa(e)?a="array":e!==void 0&&e.$$typeof===Xn?(a="<"+(Q(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?H(o):null)&&(c+=`
71
+ This will cause a hydration error.%s`,t,a),!1}function bd(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function Q2(e){return e.replace(aA,function(t,a){return a.toUpperCase()})}function M0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?pu.hasOwnProperty(t)&&pu[t]||(pu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,Q2(t.replace(tA,"ms-")))):eA.test(t)?pu.hasOwnProperty(t)&&pu[t]||(pu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Ok.test(a)||vv.hasOwnProperty(a)&&vv[a]||(vv[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(Ok,""))),typeof a==="number"&&(isNaN(a)?qk||(qk=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||Bk||(Bk=!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||zk.has(t)?t==="float"?e.cssFloat=a:(ya(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function A0(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 l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var r=yv[l]||[l],u=0;u<r.length;u++)o[r[u]]=l}for(var f in t)if(t.hasOwnProperty(f)&&(!a||a[f]!==t[f]))for(l=yv[f]||[f],r=0;r<l.length;r++)o[l[r]]=f;f={};for(var v in t)for(l=yv[v]||[v],r=0;r<l.length;r++)f[l[r]]=v;v={};for(var S in o)if(l=o[S],(r=f[S])&&l!==r&&(u=l+","+r,!v[u])){v[u]=!0,u=console;var N=t[l];u.error.call(u,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",N==null||typeof N==="boolean"||N===""?"Removing":"Updating",l,r)}}for(var q in a)!a.hasOwnProperty(q)||t!=null&&t.hasOwnProperty(q)||(q.indexOf("--")===0?e.setProperty(q,""):q==="float"?e.cssFloat="":e[q]="");for(var A in t)S=t[A],t.hasOwnProperty(A)&&a[A]!==S&&M0(e,A,S)}else for(o in t)t.hasOwnProperty(o)&&M0(e,o,t[o])}function xd(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 D0(e){return oA.get(e)||e}function W2(e,t){if(Fn.call(hu,t)&&hu[t])return!0;if(lA.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=Uk.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),hu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),hu[t]=!0}if(nA.test(t)){if(e=t.toLowerCase(),e=Uk.hasOwnProperty(e)?e:null,e==null)return hu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),hu[t]=!0)}return!0}function Z2(e,t){var a=[],o;for(o in t)W2(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).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 K2(e,t,a,o){if(Fn.call(Io,t)&&Io[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="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."),Io[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(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),Io[t]=!0;if(_k.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Io[t]=!0}else if(_k.test(t))return rA.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Io[t]=!0;if(sA.test(t)||iA.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Io[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Io[t]=!0;if(l==="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),Io[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),Io[t]=!0;if(pm.hasOwnProperty(l)){if(l=pm[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),Io[t]=!0}else if(t!==l)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,l),Io[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(l=t.toLowerCase().slice(0,5),l==="data-"||l==="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),Io[t]=!0}case"function":case"symbol":return Io[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),Io[t]=!0}}return!0}function J2(e,t,a){var o=[],l;for(l in t)K2(e,l,t[l],a)||o.push(l);t=o.map(function(r){return"`"+r+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Sd(e){return uA.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Yl(){}function ng(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function E0(e){var t=tt(e);if(t&&(e=t.stateNode)){var a=e[To]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zh(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;we(t,"name"),a=a.querySelectorAll('input[name="'+vn(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[To]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Zh(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&p0(o)}break e;case"textarea":x0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&$i(e,!!a.multiple,t,!1)}}}function N0(e,t,a){if(bv)return e(t,a);bv=!0;try{var o=e(t);return o}finally{if(bv=!1,gu!==null||yu!==null){if(ou(),gu&&(t=gu,e=yu,yu=gu=null,E0(t),e))for(t=0;t<e.length;t++)E0(e[t])}}}function kd(e,t){var a=e.stateNode;if(a===null)return null;var o=a[To]||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 O0(){if(mm)return mm;var e,t=Sv,a=t.length,o,l="value"in Yr?Yr.value:Yr.textContent,r=l.length;for(e=0;e<a&&t[e]===l[e];e++);var u=a-e;for(o=1;o<=u&&t[a-o]===l[r-o];o++);return mm=l.slice(e,1<o?1-o:void 0)}function tp(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 ap(){return!0}function q0(){return!1}function Bo(e){function t(a,o,l,r,u){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=r,this.target=u,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(a=e[f],this[f]=a?a(r):r[f]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ap:q0,this.isPropagationStopped=q0,this}return bt(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=ap)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ap)},persist:function(){},isPersistent:ap}),t}function eR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=kA[e])?!!t[e]:!1}function lg(){return eR}function B0(e,t){switch(e){case"keyup":return OA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Vk;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function tR(e,t){switch(e){case"compositionend":return z0(t);case"keypress":if(t.which!==jk)return null;return Yk=!0,Xk;case"textInput":return e=t.data,e===Xk&&Yk?null:e;default:return null}}function aR(e,t){if(vu)return e==="compositionend"||!wv&&B0(e,t)?(e=O0(),mm=Sv=Yr=null,vu=!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 $k&&t.locale!=="ko"?null:t.data;default:return null}}function U0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BA[e.type]:t==="textarea"?!0:!1}function oR(e){if(!Rl)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){gu?yu?yu.push(o):yu=[o]:gu=o,t=Yp(t,"onChange"),0<t.length&&(a=new hm("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function nR(e){S1(e,0)}function op(e){var t=at(e);if(p0(t))return e}function _0(e,t){if(e==="change")return t}function H0(){sc&&(sc.detachEvent("onpropertychange",F0),ic=sc=null)}function F0(e){if(e.propertyName==="value"&&op(ic)){var t=[];P0(t,ic,e,ng(e)),N0(nR,t)}}function lR(e,t,a){e==="focusin"?(H0(),sc=t,ic=a,sc.attachEvent("onpropertychange",F0)):e==="focusout"&&H0()}function rR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return op(ic)}function sR(e,t){if(e==="click")return op(t)}function iR(e,t){if(e==="input"||e==="change")return op(t)}function uR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Cd(e,t){if(Ro(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 l=a[o];if(!Fn.call(t,l)||!Ro(e[l],t[l]))return!1}return!0}function G0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function V0(e,t){var a=G0(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=G0(a)}}function $0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Kf(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=Kf(e.document)}return t}function rg(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 X0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Iv||bu==null||bu!==Kf(o)||(o=bu,("selectionStart"in o)&&rg(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}),uc&&Cd(uc,o)||(uc=o,o=Yp(Tv,"onSelect"),0<o.length&&(t=new hm("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=bu)))}function Hs(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function Fs(e){if(Rv[e])return Rv[e];if(!xu[e])return e;var t=xu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Wk)return Rv[e]=t[a];return e}function Pn(e,t){tC.set(e,t),yo(t,[e])}function dR(e){for(var t=ym,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ya(o)&&o.length===2&&typeof o[0]==="string"){if(t!==ym&&t!==Nv)return Dv;t=Nv}else return Dv;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==ym&&t!==Ev)return Dv;t=Ev}}return t}function sg(e,t,a,o){for(var l in e)Fn.call(e,l)&&l[0]!=="_"&&rl(l,e[l],t,a,o)}function rl(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===kl){var r=J(t.type)||"…",u=t.key;t=t.props;var f=Object.keys(t),v=f.length;if(u==null&&v===0){t="<"+r+" />";break}if(3>o||v===1&&f[0]==="children"&&u==null){t="<"+r+" … />";break}a.push([l+"  ".repeat(o)+e,"<"+r]),u!==null&&rl("key",u,a,o+1,l),e=!1;for(var S in t)S==="children"?t.children!=null&&(!Ya(t.children)||0<t.children.length)&&(e=!0):Fn.call(t,S)&&S[0]!=="_"&&rl(S,t[S],a,o+1,l);a.push(["",e?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(t),r=r.slice(8,r.length-1),r==="Array"){if(S=dR(t),S===Ev||S===ym){t=JSON.stringify(t);break}else if(S===Nv){a.push([l+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)r=t[e],rl(r[0],r[1],a,o+1,l);return}}if(r==="Promise"){if(t.status==="fulfilled"){if(r=a.length,rl(e,t.value,a,o,l),a.length>r){a=a[r],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(r=a.length,rl(e,t.reason,a,o,l),a.length>r)){a=a[r],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}r==="Object"&&(S=Object.getPrototypeOf(t))&&typeof S.constructor==="function"&&(r=S.constructor.name),a.push([l+"  ".repeat(o)+e,r==="Object"?3>o?"":"…":r]),3>o&&sg(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===GA?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+"  ".repeat(o)+e,t])}function Y0(e,t,a,o){var l=!0;for(u in e)u in t||(a.push([vm+"  ".repeat(o)+u,"…"]),l=!1);for(var r in t)if(r in e){var u=e[r],f=t[r];if(u!==f){if(o===0&&r==="children")l="  ".repeat(o)+r,a.push([vm+l,"…"],[bm+l,"…"]);else{if(!(3<=o)){if(typeof u==="object"&&typeof f==="object"&&u!==null&&f!==null&&u.$$typeof===f.$$typeof)if(f.$$typeof===kl){if(u.type===f.type&&u.key===f.key){u=J(f.type)||"…",l="  ".repeat(o)+r,u="<"+u+" … />",a.push([vm+l,u],[bm+l,u]),l=!1;continue}}else{var v=Object.prototype.toString.call(u),S=Object.prototype.toString.call(f);if(v===S&&(S==="[object Object]"||S==="[object Array]")){v=[nC+"  ".repeat(o)+r,S==="[object Array]"?"Array":""],a.push(v),S=a.length,Y0(u,f,a,o+1)?S===a.length&&(v[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof u==="function"&&typeof f==="function"&&u.name===f.name&&u.length===f.length&&(v=Function.prototype.toString.call(u),S=Function.prototype.toString.call(f),v===S)){u=f.name===""?"() => {}":f.name+"() {}",a.push([nC+"  ".repeat(o)+r,u+" Referentially unequal function closure. Consider memoization."]);continue}}rl(r,u,a,o,vm),rl(r,f,a,o,bm)}l=!1}}else a.push([bm+"  ".repeat(o)+r,"…"]),l=!1;return l}function Yo(e){Lt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function sl(e,t,a,o){da&&(Wr.start=t,Wr.end=a,or.color="warning",or.tooltipText=o,or.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,Wr)):performance.measure(o,Wr))}function np(e,t,a){sl(e,t,a,"Reconnect")}function lp(e,t,a,o,l){var r=V(e);if(r!==null&&da){var{alternate:u,actualDuration:f}=e;if(u===null||u.child!==e.child)for(var v=e.child;v!==null;v=v.sibling)f-=v.actualDuration;o=0.5>f?o?"tertiary-light":"primary-light":10>f?o?"tertiary":"primary":100>f?o?"tertiary-dark":"primary-dark":"error";var S=e.memoizedProps;f=e._debugTask,S!==null&&u!==null&&u.memoizedProps!==S?(v=[VA],S=Y0(u.memoizedProps,S,v,0),1<v.length&&(S&&!Qr&&(u.lanes&l)===0&&100<e.actualDuration?(Qr=!0,v[0]=$A,or.color="warning",or.tooltipText=lC):(or.color=o,or.tooltipText=r),or.properties=v,Wr.start=t,Wr.end=a,f!=null?f.run(performance.measure.bind(performance,"​"+r,Wr)):performance.measure("​"+r,Wr))):f!=null?f.run(console.timeStamp.bind(console,r,t,a,xn,void 0,o)):console.timeStamp(r,t,a,xn,void 0,o)}}function ig(e,t,a,o){if(da){var l=V(e);if(l!==null){for(var r=null,u=[],f=0;f<o.length;f++){var v=o[f];r==null&&v.source!==null&&(r=v.source._debugTask),v=v.value,u.push(["Error",typeof v==="object"&&v!==null&&typeof v.message==="string"?String(v.message):String(v)])}e.key!==null&&rl("key",e.key,u,0,""),e.memoizedProps!==null&&sg(e.memoizedProps,u,0,""),r==null&&(r=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:xn,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:u}}},r?r.run(performance.measure.bind(performance,"​"+l,e)):performance.measure("​"+l,e)}}}function il(e,t,a,o,l){if(l!==null){if(da){var r=V(e);if(r!==null){o=[];for(var u=0;u<l.length;u++){var f=l[u].value;o.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e.key!==null&&rl("key",e.key,o,0,""),e.memoizedProps!==null&&sg(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:xn,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+r,t)):performance.measure("​"+r,t)}}}else r=V(e),r!==null&&da&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,r,t,a,xn,void 0,l)):console.timeStamp(r,t,a,xn,void 0,l))}function cR(e,t,a,o){if(da&&!(t<=e)){var l=(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,Lt,xt,l)):console.timeStamp(a,e,t,Lt,xt,l)}}function Q0(e,t,a,o){!da||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,Lt,xt,a)):console.timeStamp("Prewarm",e,t,Lt,xt,a))}function W0(e,t,a,o){!da||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,Lt,xt,a)):console.timeStamp("Suspended",e,t,Lt,xt,a))}function fR(e,t,a,o,l,r){if(da&&!(t<=e)){a=[];for(var u=0;u<o.length;u++){var f=o[u].value;a.push(["Recoverable Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Lt,trackGroup:xt,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:a}}},r?r.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function ug(e,t,a,o){!da||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,Lt,xt,"error")):console.timeStamp("Errored",e,t,Lt,xt,"error"))}function pR(e,t,a,o){!da||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,Lt,xt,"secondary-light")):console.timeStamp(a,e,t,Lt,xt,"secondary-light"))}function Z0(e,t,a,o,l){if(da&&!(t<=e)){for(var r=[],u=0;u<a.length;u++){var f=a[u].value;r.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Lt,trackGroup:xt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:r}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Ld(e,t,a){!da||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,Lt,xt,"secondary-dark")):console.timeStamp("Animating",e,t,Lt,xt,"secondary-dark"))}function rp(){for(var e=Su,t=Ov=Su=0;t<e;){var a=Sn[t];Sn[t++]=null;var o=Sn[t];Sn[t++]=null;var l=Sn[t];Sn[t++]=null;var r=Sn[t];if(Sn[t++]=null,o!==null&&l!==null){var u=o.pending;u===null?l.next=l:(l.next=u.next,u.next=l),o.pending=l}r!==0&&K0(a,l,r)}}function sp(e,t,a,o){Sn[Su++]=e,Sn[Su++]=t,Sn[Su++]=a,Sn[Su++]=o,Ov|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function dg(e,t,a,o){return sp(e,t,a,o),ip(e)}function vo(e,t){return sp(e,null,null,t),ip(e)}function K0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,r=e.return;r!==null;)r.childLanes|=a,o=r.alternate,o!==null&&(o.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&dc||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&t!==null&&(l=31-wo(a),e=r.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),r):null}function ip(e){if(zc>rD)throw yi=zc=0,Uc=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.");yi>sD&&(yi=0,Uc=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&&m1(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&m1(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function Gs(e){if(kn===null)return e;var t=kn(e);return t===void 0?e:t.current}function cg(e){if(kn===null)return e;var t=kn(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=Gs(e.render),e.render!==t)?(t={$$typeof:Kd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function J0(e,t){if(kn===null)return!1;var a=e.elementType;t=t.type;var o=!1,l=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:l===tn&&(o=!0);break;case 11:l===Kd?o=!0:l===tn&&(o=!0);break;case 14:case 15:l===lm?o=!0:l===tn&&(o=!0);break;default:return!1}return o&&(e=kn(a),e!==void 0&&e===kn(t))?!0:!1}function ex(e){kn!==null&&typeof WeakSet==="function"&&(ku===null&&(ku=new WeakSet),ku.add(e))}function tx(e,t,a){do{var o=e,l=o.alternate,r=o.child,u=o.sibling,f=o.tag;o=o.type;var v=null;switch(f){case 0:case 15:case 1:v=o;break;case 11:v=o.render}if(kn===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;if(o=!1,v!==null&&(v=kn(v),v!==void 0&&(a.has(v)?o=!0:t.has(v)&&(f===1?o=!0:S=!0))),ku!==null&&(ku.has(e)||l!==null&&ku.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||S)l=vo(e,2),l!==null&&La(l,e,2);if(r===null||o||tx(r,t,a),u===null)break;e=u}while(1)}function mR(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,rC||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function fg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ql(e,t){var a=e.alternate;switch(a===null?(a=L(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=Gs(e.type);break;case 1:a.type=Gs(e.type);break;case 11:a.type=cg(e.type)}return a}function ax(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,l,r){var u=0,f=e;if(typeof e==="function")fg(e)&&(u=1),f=Gs(f);else if(typeof e==="string")u=Me(),u=CM(e,a,u)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case lv:return t=L(31,a,t,l),t.elementType=lv,t.lanes=r,t;case du:return Vs(a.children,l,r,t);case nm:u=8,l|=xo,l|=Vn;break;case tv:return e=a,o=l,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=L(12,e,t,o|dt),t.elementType=tv,t.lanes=r,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case ov:return t=L(13,a,t,l),t.elementType=ov,t.lanes=r,t;case nv:return t=L(19,a,t,l),t.elementType=nv,t.lanes=r,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Cl:u=10;break e;case av:u=9;break e;case Kd:u=11,f=cg(f);break e;case lm:u=14;break e;case tn:u=16,f=null;break e}if(f="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)f+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ya(e)?a="array":e!==void 0&&e.$$typeof===kl?(a="<"+(J(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(u=o?P(o):null)&&(f+=`
72
72
 
73
- Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+c)),c=null}return t=k(s,a,t,n),t.elementType=e,t.type=c,t.lanes=l,t._debugOwner=o,t}function uf(e,t,a){return t=rh(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function cs(e,t,a,o){return e=k(7,e,o,t),e.lanes=a,e}function sh(e,t,a){return e=k(6,e,null,t),e.lanes=a,e}function jv(e){var t=k(18,null,null,He);return t.stateNode=e,t}function uh(e,t,a){return t=k(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function To(e,t){if(typeof e==="object"&&e!==null){var a=Ry.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:K(t)},Ry.set(e,t),t}return{value:e,source:t,stack:K(t)}}function Cl(e,t){tr(),Hu[Fu++]=Tc,Hu[Fu++]=Sp,Sp=e,Tc=t}function Xv(e,t,a){tr(),Qo[Zo++]=Dl,Qo[Zo++]=El,Qo[Zo++]=Ls,Ls=e;var o=Dl;e=El;var n=32-no(o)-1;o&=~(1<<n),a+=1;var l=32-no(t)+n;if(30<l){var s=n-n%5;l=(o&(1<<s)-1).toString(32),o>>=s,n-=s,Dl=1<<32-no(t)+n|a<<n|o,El=l+e}else Dl=1<<l|a<<n|o,El=e}function ih(e){tr(),e.return!==null&&(Cl(e,1),Xv(e,1,0))}function ch(e){for(;e===Sp;)Sp=Hu[--Fu],Hu[Fu]=null,Tc=Hu[--Fu],Hu[Fu]=null;for(;e===Ls;)Ls=Qo[--Zo],Qo[Zo]=null,El=Qo[--Zo],Qo[Zo]=null,Dl=Qo[--Zo],Qo[Zo]=null}function Yv(){return tr(),Ls!==null?{id:Dl,overflow:El}:null}function Qv(e,t){tr(),Qo[Zo++]=Dl,Qo[Zo++]=El,Qo[Zo++]=Ls,Dl=t.id,El=t.overflow,Ls=e}function tr(){gt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ds(e,t){if(e.return===null){if(No===null)No={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(No.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");No.distanceFromLeaf>t&&(No.distanceFromLeaf=t)}return No}var a=ds(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 Zv(){gt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function cf(e,t){el||(e=ds(e,0),e.serverProps=null,t!==null&&(t=Rx(t),e.serverTail.push(t)))}function ar(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=No;throw o!==null&&(No=null,a=Qm(o)),_i(To(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 \``+u+"`."),u=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+f)),f=null}return t=L(u,a,t,l),t.elementType=e,t.type=f,t.lanes=r,t._debugOwner=o,t}function up(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 Vs(e,t,a,o){return e=L(7,e,o,t),e.lanes=a,e}function mg(e,t,a){return e=L(6,e,null,t),e.lanes=a,e}function ox(e){var t=L(18,null,null,Ye);return t.stateNode=e,t}function hg(e,t,a){return t=L(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qo(e,t){if(typeof e==="object"&&e!==null){var a=qv.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:ia(t)},qv.set(e,t),t}return{value:e,source:t,stack:ia(t)}}function Wl(e,t){Er(),Cu[Lu++]=cc,Cu[Lu++]=xm,xm=e,cc=t}function nx(e,t,a){Er(),Cn[Ln++]=lr,Cn[Ln++]=rr,Cn[Ln++]=oi,oi=e;var o=lr;e=rr;var l=32-wo(o)-1;o&=~(1<<l),a+=1;var r=32-wo(t)+l;if(30<r){var u=l-l%5;r=(o&(1<<u)-1).toString(32),o>>=u,l-=u,lr=1<<32-wo(t)+l|a<<l|o,rr=r+e}else lr=1<<r|a<<l|o,rr=e}function gg(e){Er(),e.return!==null&&(Wl(e,1),nx(e,1,0))}function yg(e){for(;e===xm;)xm=Cu[--Lu],Cu[Lu]=null,cc=Cu[--Lu],Cu[Lu]=null;for(;e===oi;)oi=Cn[--Ln],Cn[Ln]=null,rr=Cn[--Ln],Cn[Ln]=null,lr=Cn[--Ln],Cn[Ln]=null}function lx(){return Er(),oi!==null?{id:lr,overflow:rr}:null}function rx(e,t){Er(),Cn[Ln++]=lr,Cn[Ln++]=rr,Cn[Ln++]=oi,lr=t.id,rr=t.overflow,oi=e}function Er(){Tt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function $s(e,t){if(e.return===null){if(nn===null)nn={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(nn.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");nn.distanceFromLeaf>t&&(nn.distanceFromLeaf=t)}return nn}var a=$s(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 sx(){Tt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function dp(e,t){Ml||(e=$s(e,0),e.serverProps=null,t!==null&&(t=P1(t),e.serverTail.push(t)))}function Nr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=nn;throw o!==null&&(nn=null,a=ag(o)),wd(Qo(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 \``+s+"`."),s=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)),My}function Wv(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[ja]=e,t[lo]=o,Ag(a,o),a){case"dialog":xt("cancel",t),xt("close",t);break;case"iframe":case"object":case"embed":xt("load",t);break;case"video":case"audio":for(a=0;a<ed.length;a++)xt(ed[a],t);break;case"source":xt("error",t);break;case"img":case"image":case"link":xt("error",t),xt("load",t);break;case"details":xt("toggle",t);break;case"input":er("input",o),xt("invalid",t),ov(t,o),nv(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":lv(t,o);break;case"select":er("select",o),xt("invalid",t),sv(t,o);break;case"textarea":er("textarea",o),xt("invalid",t),uv(t,o),cv(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||mx(t.textContent,a)?(o.popover!=null&&(xt("beforetoggle",t),xt("toggle",t)),o.onScroll!=null&&xt("scroll",t),o.onScrollEnd!=null&&xt("scrollend",t),o.onClick!=null&&(t.onclick=Sl),t=!0):t=!1,t||ar(e,!0)}function Kv(e){for(Xa=e.return;Xa;)switch(Xa.tag){case 5:case 31:case 13:Wo=!1;return;case 27:case 3:Wo=!0;return;default:Xa=Xa.return}}function fu(e){if(e!==Xa)return!1;if(!gt)return Kv(e),gt=!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")||Ng(e.type,e.memoizedProps);a=!a}if(a&&Zt){for(a=Zt;a;){var o=ds(e,0),n=Rx(a);o.serverTail.push(n),a=n.type==="Suspense"?zg(a):Do(a.nextSibling)}ar(e)}if(Kv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zt=zg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Zt=zg(e)}else t===27?(t=Zt,fr(e.type)?(e=bb,bb=null,Zt=e):Zt=t):Zt=Xa?Do(e.stateNode.nextSibling):null;return!0}function fs(){Zt=Xa=null,el=gt=!1}function dh(){var e=xr;return e!==null&&(fo===null?fo=e:fo.push.apply(fo,e),xr=null),e}function _i(e){xr===null?xr=[e]:xr.push(e)}function fh(){var e=No;if(e!==null){No=null;for(var t=Qm(e);0<e.children.length;)e=e.children[0];j(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)),Bv}function ix(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[fo]=e,t[To]=o,zy(a,o),a){case"dialog":Rt("cancel",t),Rt("close",t);break;case"iframe":case"object":case"embed":Rt("load",t);break;case"video":case"audio":for(a=0;a<Pc.length;a++)Rt(Pc[a],t);break;case"source":Rt("error",t);break;case"img":case"image":case"link":Rt("error",t),Rt("load",t);break;case"details":Rt("toggle",t);break;case"input":Dr("input",o),Rt("invalid",t),m0(t,o),h0(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":g0(t,o);break;case"select":Dr("select",o),Rt("invalid",t),v0(t,o);break;case"textarea":Dr("textarea",o),Rt("invalid",t),b0(t,o),S0(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||w1(t.textContent,a)?(o.popover!=null&&(Rt("beforetoggle",t),Rt("toggle",t)),o.onScroll!=null&&Rt("scroll",t),o.onScrollEnd!=null&&Rt("scrollend",t),o.onClick!=null&&(t.onclick=Yl),t=!0):t=!1,t||Nr(e,!0)}function ux(e){for(po=e.return;po;)switch(po.tag){case 5:case 31:case 13:wn=!1;return;case 27:case 3:wn=!0;return;default:po=po.return}}function Yi(e){if(e!==po)return!1;if(!Tt)return ux(e),Tt=!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")||Fy(e.type,e.memoizedProps);a=!a}if(a&&ca){for(a=ca;a;){var o=$s(e,0),l=P1(a);o.serverTail.push(l),a=l.type==="Suspense"?jy(a):en(a.nextSibling)}Nr(e)}if(ux(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.");ca=jy(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.");ca=jy(e)}else t===27?(t=ca,Gr(e.type)?(e=wb,wb=null,ca=e):ca=t):ca=po?en(e.stateNode.nextSibling):null;return!0}function js(){ca=po=null,Ml=Tt=!1}function vg(){var e=Kr;return e!==null&&(Eo===null?Eo=e:Eo.push.apply(Eo,e),Kr=null),e}function wd(e){Kr===null?Kr=[e]:Kr.push(e)}function bg(){var e=nn;if(e!==null){nn=null;for(var t=ag(e);0<e.children.length;)e=e.children[0];Y(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+a),e)),My}function Wv(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 df(){Gu=xp=null,Vu=!1}function or(e,t,a){xe(Ay,t._currentValue,e),t._currentValue=a,xe(Dy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==WC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=WC}function Ll(e,t){e._currentValue=Ay.current;var a=Dy.current;ye(Dy,t),e._currentRenderer=a,ye(Ay,t)}function ph(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 mh(e,t,a,o){var n=e.child;n!==null&&(n.return=e);for(;n!==null;){var l=n.dependencies;if(l!==null){var s=n.child;l=l.firstContext;e:for(;l!==null;){var c=l;l=n;for(var p=0;p<t.length;p++)if(c.context===t[p]){l.lanes|=a,c=l.alternate,c!==null&&(c.lanes|=a),ph(l.return,a,e),o||(s=null);break e}l=c.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");s.lanes|=a,l=s.alternate,l!==null&&(l.lanes|=a),ph(s,a,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function pu(e,t,a,o){e=null;for(var n=t,l=!1;n!==null;){if(!l){if((n.flags&524288)!==0)l=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var c=n.type;so(n.pendingProps.value,s.value)||(e!==null?e.push(c):e=[c])}}else if(n===rp.current){if(s=n.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ld):e=[ld])}n=n.return}e!==null&&mh(t,e,a,o),t.flags|=262144}function ff(e){for(e=e.firstContext;e!==null;){if(!so(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ps(e){xp=e,Gu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ea(e){return Vu&&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()."),Jv(xp,e)}function pf(e,t){return xp===null&&ps(e),Jv(e,t)}function Jv(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Gu===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().");Gu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Gu=Gu.next=t;return a}function hh(){return{controller:new zM,data:new Map,refCount:0}}function ms(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 Hi(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&&_M(HM,function(){e.controller.abort()})}function qn(e,t,a){if((e&127)!==0)0>tl&&(tl=Ca(),Rc=Cp(t),Ey=t,a!=null&&(Oy=F(a)),(kt&(Ea|Po))!==Pa&&(sa=!0,kr=Ic),e=uc(),t=sc(),e!==$u||t!==Mc?$u=-1.1:t!==null&&(kr=Ic),ws=e,Mc=t);else if((e&4194048)!==0&&0>Ko&&(Ko=Ca(),Ac=Cp(t),KC=t,a!=null&&(JC=F(a)),0>Nl)){if(e=uc(),t=sc(),e!==Tr||t!==Ts)Tr=-1.1;wr=e,Ts=t}}function rI(e){if(0>tl){tl=Ca(),Rc=e._debugTask!=null?e._debugTask:null,(kt&(Ea|Po))!==Pa&&(kr=Ic);var t=uc(),a=sc();t!==$u||a!==Mc?$u=-1.1:a!==null&&(kr=Ic),ws=t,Mc=a}if(0>Ko&&(Ko=Ca(),Ac=e._debugTask!=null?e._debugTask:null,0>Nl)){if(e=uc(),t=sc(),e!==Tr||t!==Ts)Tr=-1.1;wr=e,Ts=t}}function kl(){var e=ks;return ks=0,e}function mf(e){var t=ks;return ks=e,t}function Fi(e){var t=ks;return ks+=e,t}function hf(){Ue=qe=-1.1}function Io(){var e=qe;return qe=-1.1,e}function Ro(e){0<=e&&(qe=e)}function Nn(){var e=aa;return aa=-0,e}function Bn(e){0<=e&&(aa=e)}function Un(){var e=ta;return ta=null,e}function Pn(){var e=sa;return sa=!1,e}function gh(e){uo=Ca(),0>e.actualStartTime&&(e.actualStartTime=uo)}function yh(e){if(0<=uo){var t=Ca()-uo;e.actualDuration+=t,e.selfBaseDuration=t,uo=-1}}function e0(e){if(0<=uo){var t=Ca()-uo;e.actualDuration+=t,uo=-1}}function zn(){if(0<=uo){var e=Ca(),t=e-uo;uo=-1,ks+=t,aa+=t,Ue=e}}function t0(e){ta===null&&(ta=[]),ta.push(e),ql===null&&(ql=[]),ql.push(e)}function _n(){uo=Ca(),0>qe&&(qe=uo)}function Gi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function sI(e,t){if(Ec===null){var a=Ec=[];Ny=0,Is=Tg(),ju={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Ny++,t.then(a0,a0),t}function a0(){if(--Ny===0&&(-1<Ko||(Nl=-1.1),Ec!==null)){ju!==null&&(ju.status="fulfilled");var e=Ec;Ec=null,Is=0,ju=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uI(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 bh(){var e=Rs.current;return e!==null?e:Vt.pooledCache}function gf(e,t){t===null?xe(Rs,Rs.current,e):xe(Rs,t.pool,e)}function o0(){var e=bh();return e===null?null:{parent:xa._currentValue,pool:e}}function n0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function l0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function r0(e,t,a){G.actQueue!==null&&(G.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(Sl,Sl),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,u0(e),e;default:if(typeof t.status==="string")t.then(Sl,Sl);else{if(e=Vt,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(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,u0(e),e}throw As=t,zc=!0,Xu}}function nr(e){try{return $M(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw As=t,zc=!0,Xu;throw t}}function s0(){if(As===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=As;return As=null,zc=!1,e}function u0(e){if(e===Xu||e===Ap)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 Ga(e){var t=st;return e!=null&&(st=t===null?e:t.concat(e)),t}function vh(){var e=st;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 yf(e,t,a){for(var o=Object.keys(e.props),n=0;n<o.length;n++){var l=o[n];if(l!=="children"&&l!=="key"){t===null&&(t=uf(e,a.mode,0),t._debugInfo=st,t.return=a),j(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},l);break}}}function bf(e){var t=_c;return _c+=1,Yu===null&&(Yu=n0()),r0(Yu,e,t)}function Vi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function i0(e,t){if(t.$$typeof===kR)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 cp(){wu=Sm=null,Tu=!1}function Or(e,t,a){Oe(zv,t._currentValue,e),t._currentValue=a,Oe(Uv,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==iC&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=iC}function Zl(e,t){e._currentValue=zv.current;var a=Uv.current;pe(Uv,t),e._currentRenderer=a,pe(zv,t)}function xg(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 Sg(e,t,a,o){var l=e.child;l!==null&&(l.return=e);for(;l!==null;){var r=l.dependencies;if(r!==null){var u=l.child;r=r.firstContext;e:for(;r!==null;){var f=r;r=l;for(var v=0;v<t.length;v++)if(f.context===t[v]){r.lanes|=a,f=r.alternate,f!==null&&(f.lanes|=a),xg(r.return,a,e),o||(u=null);break e}r=f.next}}else if(l.tag===18){if(u=l.return,u===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");u.lanes|=a,r=u.alternate,r!==null&&(r.lanes|=a),xg(u,a,e),u=null}else u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===e){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}}function Qi(e,t,a,o){e=null;for(var l=t,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var u=l.alternate;if(u===null)throw Error("Should have a current fiber. This is a bug in React.");if(u=u.memoizedProps,u!==null){var f=l.type;Ro(l.pendingProps.value,u.value)||(e!==null?e.push(f):e=[f])}}else if(l===rm.current){if(u=l.alternate,u===null)throw Error("Should have a current fiber. This is a bug in React.");u.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Vc):e=[Vc])}l=l.return}e!==null&&Sg(t,e,a,o),t.flags|=262144}function fp(e){for(e=e.firstContext;e!==null;){if(!Ro(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xs(e){Sm=e,wu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function va(e){return Tu&&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()."),dx(Sm,e)}function pp(e,t){return Sm===null&&Xs(e),dx(e,t)}function dx(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},wu===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().");wu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else wu=wu.next=t;return a}function kg(){return{controller:new YA,data:new Map,refCount:0}}function Ys(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 Td(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&&QA(WA,function(){e.controller.abort()})}function ul(e,t,a){if((e&127)!==0)0>Al&&(Al=Ha(),pc=km(t),Pv=t,a!=null&&(_v=V(a)),(Nt&(Wa|sn))!==ao&&(wa=!0,ts=fc),e=Xd(),t=jd(),e!==Iu||t!==mc?Iu=-1.1:t!==null&&(ts=fc),li=e,mc=t);else if((e&4194048)!==0&&0>Tn&&(Tn=Ha(),hc=km(t),uC=t,a!=null&&(dC=V(a)),0>ur)){if(e=Xd(),t=jd(),e!==os||t!==ri)os=-1.1;as=e,ri=t}}function hR(e){if(0>Al){Al=Ha(),pc=e._debugTask!=null?e._debugTask:null,(Nt&(Wa|sn))!==ao&&(ts=fc);var t=Xd(),a=jd();t!==Iu||a!==mc?Iu=-1.1:a!==null&&(ts=fc),li=t,mc=a}if(0>Tn&&(Tn=Ha(),hc=e._debugTask!=null?e._debugTask:null,0>ur)){if(e=Xd(),t=jd(),e!==os||t!==ri)os=-1.1;as=e,ri=t}}function Kl(){var e=ni;return ni=0,e}function mp(e){var t=ni;return ni=e,t}function Id(e){var t=ni;return ni+=e,t}function hp(){Ve=ze=-1.1}function Wo(){var e=ze;return ze=-1.1,e}function Zo(e){0<=e&&(ze=e)}function dl(){var e=Sa;return Sa=-0,e}function cl(e){0<=e&&(Sa=e)}function fl(){var e=ba;return ba=null,e}function pl(){var e=wa;return wa=!1,e}function Cg(e){Mo=Ha(),0>e.actualStartTime&&(e.actualStartTime=Mo)}function Lg(e){if(0<=Mo){var t=Ha()-Mo;e.actualDuration+=t,e.selfBaseDuration=t,Mo=-1}}function cx(e){if(0<=Mo){var t=Ha()-Mo;e.actualDuration+=t,Mo=-1}}function ml(){if(0<=Mo){var e=Ha(),t=e-Mo;Mo=-1,ni+=t,Sa+=t,Ve=e}}function fx(e){ba===null&&(ba=[]),ba.push(e),ir===null&&(ir=[]),ir.push(e)}function hl(){Mo=Ha(),0>ze&&(ze=Mo)}function Rd(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function gR(e,t){if(yc===null){var a=yc=[];Fv=0,si=Ny(),Ru={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Fv++,t.then(px,px),t}function px(){if(--Fv===0&&(-1<Tn||(ur=-1.1),yc!==null)){Ru!==null&&(Ru.status="fulfilled");var e=yc;yc=null,si=0,Ru=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yR(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){o.status="rejected",o.reason=l;for(l=0;l<a.length;l++)(0,a[l])(void 0)}),o}function wg(){var e=ii.current;return e!==null?e:aa.pooledCache}function gp(e,t){t===null?Oe(ii,ii.current,e):Oe(ii,t.pool,e)}function mx(){var e=wg();return e===null?null:{parent:_a._currentValue,pool:e}}function hx(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function gx(e){return e=e.status,e==="fulfilled"||e==="rejected"}function yx(e,t,a){j.actQueue!==null&&(j.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(Yl,Yl),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var l={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bx(e),e;default:if(typeof t.status==="string")t.then(Yl,Yl);else{if(e=aa,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(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bx(e),e}throw di=t,Lc=!0,Mu}}function qr(e){try{return eD(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw di=t,Lc=!0,Mu;throw t}}function vx(){if(di===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=di;return di=null,Lc=!1,e}function bx(e){if(e===Mu||e===Am)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 io(e){var t=ct;return e!=null&&(ct=t===null?e:t.concat(e)),t}function Tg(){var e=ct;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 yp(e,t,a){for(var o=Object.keys(e.props),l=0;l<o.length;l++){var r=o[l];if(r!=="children"&&r!=="key"){t===null&&(t=up(e,a.mode,0),t._debugInfo=ct,t.return=a),Y(t,function(u){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u)},r);break}}}function vp(e){var t=wc;return wc+=1,Au===null&&(Au=hx()),yx(Au,e,t)}function Md(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xx(e,t){if(t.$$typeof===NM)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 vf(e,t){var a=vh();a!==null?a.run(i0.bind(null,e,t)):i0(e,t)}function c0(e,t){var a=F(e)||"Component";vL[a]||(vL[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 bp(e,t){var a=Tg();a!==null?a.run(xx.bind(null,e,t)):xx(e,t)}function Sx(e,t){var a=V(e)||"Component";AC[a]||(AC[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 Sf(e,t){var a=vh();a!==null?a.run(c0.bind(null,e,t)):c0(e,t)}function d0(e,t){var a=F(e)||"Component";SL[a]||(SL[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 xp(e,t){var a=Tg();a!==null?a.run(Sx.bind(null,e,t)):Sx(e,t)}function kx(e,t){var a=V(e)||"Component";DC[a]||(DC[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 xf(e,t){var a=vh();a!==null?a.run(d0.bind(null,e,t)):d0(e,t)}function f0(e){function t(w,R){if(e){var A=w.deletions;A===null?(w.deletions=[R],w.flags|=16):A.push(R)}}function a(w,R){if(!e)return null;for(;R!==null;)t(w,R),R=R.sibling;return null}function o(w){for(var R=new Map;w!==null;)w.key!==null?R.set(w.key,w):R.set(w.index,w),w=w.sibling;return R}function n(w,R){return w=xl(w,R),w.index=0,w.sibling=null,w}function l(w,R,A){if(w.index=A,!e)return w.flags|=1048576,R;if(A=w.alternate,A!==null)return A=A.index,A<R?(w.flags|=67108866,R):A;return w.flags|=67108866,R}function s(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function c(w,R,A,Z){if(R===null||R.tag!==6)return R=sh(A,w.mode,Z),R.return=w,R._debugOwner=w,R._debugTask=w._debugTask,R._debugInfo=st,R;return R=n(R,A),R.return=w,R._debugInfo=st,R}function p(w,R,A,Z){var fe=A.type;if(fe===Ru)return R=E(w,R,A.props.children,Z,A.key),yf(A,R,w),R;if(R!==null&&(R.elementType===fe||Fv(R,A)||typeof fe==="object"&&fe!==null&&fe.$$typeof===Eo&&nr(fe)===R.type))return R=n(R,A.props),Vi(R,A),R.return=w,R._debugOwner=A._owner,R._debugInfo=st,R;return R=uf(A,w.mode,Z),Vi(R,A),R.return=w,R._debugInfo=st,R}function g(w,R,A,Z){if(R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation)return R=uh(A,w.mode,Z),R.return=w,R._debugInfo=st,R;return R=n(R,A.children||[]),R.return=w,R._debugInfo=st,R}function E(w,R,A,Z,fe){if(R===null||R.tag!==7)return R=cs(A,w.mode,Z,fe),R.return=w,R._debugOwner=w,R._debugTask=w._debugTask,R._debugInfo=st,R;return R=n(R,A),R.return=w,R._debugInfo=st,R}function O(w,R,A){if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return R=sh(""+R,w.mode,A),R.return=w,R._debugOwner=w,R._debugTask=w._debugTask,R._debugInfo=st,R;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case Xn:return A=uf(R,w.mode,A),Vi(A,R),A.return=w,w=Ga(R._debugInfo),A._debugInfo=st,st=w,A;case Iu:return R=uh(R,w.mode,A),R.return=w,R._debugInfo=st,R;case Eo:var Z=Ga(R._debugInfo);return R=nr(R),w=O(w,R,A),st=Z,w}if(Aa(R)||oe(R))return A=cs(R,w.mode,A,null),A.return=w,A._debugOwner=w,A._debugTask=w._debugTask,w=Ga(R._debugInfo),A._debugInfo=st,st=w,A;if(typeof R.then==="function")return Z=Ga(R._debugInfo),w=O(w,bf(R),A),st=Z,w;if(R.$$typeof===Yn)return O(w,pf(w,R),A);vf(w,R)}return typeof R==="function"&&Sf(w,R),typeof R==="symbol"&&xf(w,R),null}function I(w,R,A,Z){var fe=R!==null?R.key:null;if(typeof A==="string"&&A!==""||typeof A==="number"||typeof A==="bigint")return fe!==null?null:c(w,R,""+A,Z);if(typeof A==="object"&&A!==null){switch(A.$$typeof){case Xn:return A.key===fe?(fe=Ga(A._debugInfo),w=p(w,R,A,Z),st=fe,w):null;case Iu:return A.key===fe?g(w,R,A,Z):null;case Eo:return fe=Ga(A._debugInfo),A=nr(A),w=I(w,R,A,Z),st=fe,w}if(Aa(A)||oe(A)){if(fe!==null)return null;return fe=Ga(A._debugInfo),w=E(w,R,A,Z,null),st=fe,w}if(typeof A.then==="function")return fe=Ga(A._debugInfo),w=I(w,R,bf(A),Z),st=fe,w;if(A.$$typeof===Yn)return I(w,R,pf(w,A),Z);vf(w,A)}return typeof A==="function"&&Sf(w,A),typeof A==="symbol"&&xf(w,A),null}function P(w,R,A,Z,fe){if(typeof Z==="string"&&Z!==""||typeof Z==="number"||typeof Z==="bigint")return w=w.get(A)||null,c(R,w,""+Z,fe);if(typeof Z==="object"&&Z!==null){switch(Z.$$typeof){case Xn:return A=w.get(Z.key===null?A:Z.key)||null,w=Ga(Z._debugInfo),R=p(R,A,Z,fe),st=w,R;case Iu:return w=w.get(Z.key===null?A:Z.key)||null,g(R,w,Z,fe);case Eo:var Qe=Ga(Z._debugInfo);return Z=nr(Z),R=P(w,R,A,Z,fe),st=Qe,R}if(Aa(Z)||oe(Z))return A=w.get(A)||null,w=Ga(Z._debugInfo),R=E(R,A,Z,fe,null),st=w,R;if(typeof Z.then==="function")return Qe=Ga(Z._debugInfo),R=P(w,R,A,bf(Z),fe),st=Qe,R;if(Z.$$typeof===Yn)return P(w,R,A,pf(R,Z),fe);vf(R,Z)}return typeof Z==="function"&&Sf(R,Z),typeof Z==="symbol"&&xf(R,Z),null}function se(w,R,A,Z){if(typeof A!=="object"||A===null)return Z;switch(A.$$typeof){case Xn:case Iu:h(w,R,A);var fe=A.key;if(typeof fe!=="string")break;if(Z===null){Z=new Set,Z.add(fe);break}if(!Z.has(fe)){Z.add(fe);break}j(R,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.",fe)});break;case Eo:A=nr(A),se(w,R,A,Z)}return Z}function he(w,R,A,Z){for(var fe=null,Qe=null,Ee=null,Ie=R,ot=R=0,Wt=null;Ie!==null&&ot<A.length;ot++){Ie.index>ot?(Wt=Ie,Ie=null):Wt=Ie.sibling;var ba=I(w,Ie,A[ot],Z);if(ba===null){Ie===null&&(Ie=Wt);break}fe=se(w,ba,A[ot],fe),e&&Ie&&ba.alternate===null&&t(w,Ie),R=l(ba,R,ot),Ee===null?Qe=ba:Ee.sibling=ba,Ee=ba,Ie=Wt}if(ot===A.length)return a(w,Ie),gt&&Cl(w,ot),Qe;if(Ie===null){for(;ot<A.length;ot++)Ie=O(w,A[ot],Z),Ie!==null&&(fe=se(w,Ie,A[ot],fe),R=l(Ie,R,ot),Ee===null?Qe=Ie:Ee.sibling=Ie,Ee=Ie);return gt&&Cl(w,ot),Qe}for(Ie=o(Ie);ot<A.length;ot++)Wt=P(Ie,w,ot,A[ot],Z),Wt!==null&&(fe=se(w,Wt,A[ot],fe),e&&Wt.alternate!==null&&Ie.delete(Wt.key===null?ot:Wt.key),R=l(Wt,R,ot),Ee===null?Qe=Wt:Ee.sibling=Wt,Ee=Wt);return e&&Ie.forEach(function(Vl){return t(w,Vl)}),gt&&Cl(w,ot),Qe}function Yt(w,R,A,Z){if(A==null)throw Error("An iterable object provided no iterator.");for(var fe=null,Qe=null,Ee=R,Ie=R=0,ot=null,Wt=null,ba=A.next();Ee!==null&&!ba.done;Ie++,ba=A.next()){Ee.index>Ie?(ot=Ee,Ee=null):ot=Ee.sibling;var Vl=I(w,Ee,ba.value,Z);if(Vl===null){Ee===null&&(Ee=ot);break}Wt=se(w,Vl,ba.value,Wt),e&&Ee&&Vl.alternate===null&&t(w,Ee),R=l(Vl,R,Ie),Qe===null?fe=Vl:Qe.sibling=Vl,Qe=Vl,Ee=ot}if(ba.done)return a(w,Ee),gt&&Cl(w,Ie),fe;if(Ee===null){for(;!ba.done;Ie++,ba=A.next())Ee=O(w,ba.value,Z),Ee!==null&&(Wt=se(w,Ee,ba.value,Wt),R=l(Ee,R,Ie),Qe===null?fe=Ee:Qe.sibling=Ee,Qe=Ee);return gt&&Cl(w,Ie),fe}for(Ee=o(Ee);!ba.done;Ie++,ba=A.next())ot=P(Ee,w,Ie,ba.value,Z),ot!==null&&(Wt=se(w,ot,ba.value,Wt),e&&ot.alternate!==null&&Ee.delete(ot.key===null?Ie:ot.key),R=l(ot,R,Ie),Qe===null?fe=ot:Qe.sibling=ot,Qe=ot);return e&&Ee.forEach(function(hA){return t(w,hA)}),gt&&Cl(w,Ie),fe}function Ct(w,R,A,Z){if(typeof A==="object"&&A!==null&&A.type===Ru&&A.key===null&&(yf(A,null,w),A=A.props.children),typeof A==="object"&&A!==null){switch(A.$$typeof){case Xn:var fe=Ga(A._debugInfo);e:{for(var Qe=A.key;R!==null;){if(R.key===Qe){if(Qe=A.type,Qe===Ru){if(R.tag===7){a(w,R.sibling),Z=n(R,A.props.children),Z.return=w,Z._debugOwner=A._owner,Z._debugInfo=st,yf(A,Z,w),w=Z;break e}}else if(R.elementType===Qe||Fv(R,A)||typeof Qe==="object"&&Qe!==null&&Qe.$$typeof===Eo&&nr(Qe)===R.type){a(w,R.sibling),Z=n(R,A.props),Vi(Z,A),Z.return=w,Z._debugOwner=A._owner,Z._debugInfo=st,w=Z;break e}a(w,R);break}else t(w,R);R=R.sibling}A.type===Ru?(Z=cs(A.props.children,w.mode,Z,A.key),Z.return=w,Z._debugOwner=w,Z._debugTask=w._debugTask,Z._debugInfo=st,yf(A,Z,w),w=Z):(Z=uf(A,w.mode,Z),Vi(Z,A),Z.return=w,Z._debugInfo=st,w=Z)}return w=s(w),st=fe,w;case Iu:e:{fe=A;for(A=fe.key;R!==null;){if(R.key===A)if(R.tag===4&&R.stateNode.containerInfo===fe.containerInfo&&R.stateNode.implementation===fe.implementation){a(w,R.sibling),Z=n(R,fe.children||[]),Z.return=w,w=Z;break e}else{a(w,R);break}else t(w,R);R=R.sibling}Z=uh(fe,w.mode,Z),Z.return=w,w=Z}return s(w);case Eo:return fe=Ga(A._debugInfo),A=nr(A),w=Ct(w,R,A,Z),st=fe,w}if(Aa(A))return fe=Ga(A._debugInfo),w=he(w,R,A,Z),st=fe,w;if(oe(A)){if(fe=Ga(A._debugInfo),Qe=oe(A),typeof Qe!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ee=Qe.call(A);if(Ee===A){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ee)!=="[object Generator]")yL||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."),yL=!0}else A.entries!==Qe||zy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zy=!0);return w=Yt(w,R,Ee,Z),st=fe,w}if(typeof A.then==="function")return fe=Ga(A._debugInfo),w=Ct(w,R,bf(A),Z),st=fe,w;if(A.$$typeof===Yn)return Ct(w,R,pf(w,A),Z);vf(w,A)}if(typeof A==="string"&&A!==""||typeof A==="number"||typeof A==="bigint")return fe=""+A,R!==null&&R.tag===6?(a(w,R.sibling),Z=n(R,fe),Z.return=w,w=Z):(a(w,R),Z=sh(fe,w.mode,Z),Z.return=w,Z._debugOwner=w,Z._debugTask=w._debugTask,Z._debugInfo=st,w=Z),s(w);return typeof A==="function"&&Sf(w,A),typeof A==="symbol"&&xf(w,A),a(w,R)}return function(w,R,A,Z){var fe=st;st=null;try{_c=0;var Qe=Ct(w,R,A,Z);return Yu=null,Qe}catch(Wt){if(Wt===Xu||Wt===Ap)throw Wt;var Ee=k(29,Wt,null,w.mode);Ee.lanes=Z,Ee.return=w;var Ie=Ee._debugInfo=st;if(Ee._debugOwner=w._debugOwner,Ee._debugTask=w._debugTask,Ie!=null){for(var ot=Ie.length-1;0<=ot;ot--)if(typeof Ie[ot].stack==="string"){Ee._debugOwner=Ie[ot],Ee._debugTask=Ie[ot].debugTask;break}}return Ee}finally{st=fe}}}function p0(e,t){var a=Aa(e);return e=!a&&typeof oe(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 Sh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xh(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 lr(e){return{lane:e,tag:CL,payload:null,callback:null,next:null}}function rr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Hy===o&&!wL){var n=F(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 Sp(e,t){var a=Tg();a!==null?a.run(kx.bind(null,e,t)):kx(e,t)}function Cx(e){function t(M,D){if(e){var E=M.deletions;E===null?(M.deletions=[D],M.flags|=16):E.push(D)}}function a(M,D){if(!e)return null;for(;D!==null;)t(M,D),D=D.sibling;return null}function o(M){for(var D=new Map;M!==null;)M.key!==null?D.set(M.key,M):D.set(M.index,M),M=M.sibling;return D}function l(M,D){return M=Ql(M,D),M.index=0,M.sibling=null,M}function r(M,D,E){if(M.index=E,!e)return M.flags|=1048576,D;if(E=M.alternate,E!==null)return E=E.index,E<D?(M.flags|=67108866,D):E;return M.flags|=67108866,D}function u(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function f(M,D,E,K){if(D===null||D.tag!==6)return D=mg(E,M.mode,K),D.return=M,D._debugOwner=M,D._debugTask=M._debugTask,D._debugInfo=ct,D;return D=l(D,E),D.return=M,D._debugInfo=ct,D}function v(M,D,E,K){var ge=E.type;if(ge===du)return D=N(M,D,E.props.children,K,E.key),yp(E,D,M),D;if(D!==null&&(D.elementType===ge||J0(D,E)||typeof ge==="object"&&ge!==null&&ge.$$typeof===tn&&qr(ge)===D.type))return D=l(D,E.props),Md(D,E),D.return=M,D._debugOwner=E._owner,D._debugInfo=ct,D;return D=up(E,M.mode,K),Md(D,E),D.return=M,D._debugInfo=ct,D}function S(M,D,E,K){if(D===null||D.tag!==4||D.stateNode.containerInfo!==E.containerInfo||D.stateNode.implementation!==E.implementation)return D=hg(E,M.mode,K),D.return=M,D._debugInfo=ct,D;return D=l(D,E.children||[]),D.return=M,D._debugInfo=ct,D}function N(M,D,E,K,ge){if(D===null||D.tag!==7)return D=Vs(E,M.mode,K,ge),D.return=M,D._debugOwner=M,D._debugTask=M._debugTask,D._debugInfo=ct,D;return D=l(D,E),D.return=M,D._debugInfo=ct,D}function q(M,D,E){if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return D=mg(""+D,M.mode,E),D.return=M,D._debugOwner=M,D._debugTask=M._debugTask,D._debugInfo=ct,D;if(typeof D==="object"&&D!==null){switch(D.$$typeof){case kl:return E=up(D,M.mode,E),Md(E,D),E.return=M,M=io(D._debugInfo),E._debugInfo=ct,ct=M,E;case uu:return D=hg(D,M.mode,E),D.return=M,D._debugInfo=ct,D;case tn:var K=io(D._debugInfo);return D=qr(D),M=q(M,D,E),ct=K,M}if(Ya(D)||de(D))return E=Vs(D,M.mode,E,null),E.return=M,E._debugOwner=M,E._debugTask=M._debugTask,M=io(D._debugInfo),E._debugInfo=ct,ct=M,E;if(typeof D.then==="function")return K=io(D._debugInfo),M=q(M,vp(D),E),ct=K,M;if(D.$$typeof===Cl)return q(M,pp(M,D),E);bp(M,D)}return typeof D==="function"&&xp(M,D),typeof D==="symbol"&&Sp(M,D),null}function A(M,D,E,K){var ge=D!==null?D.key:null;if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return ge!==null?null:f(M,D,""+E,K);if(typeof E==="object"&&E!==null){switch(E.$$typeof){case kl:return E.key===ge?(ge=io(E._debugInfo),M=v(M,D,E,K),ct=ge,M):null;case uu:return E.key===ge?S(M,D,E,K):null;case tn:return ge=io(E._debugInfo),E=qr(E),M=A(M,D,E,K),ct=ge,M}if(Ya(E)||de(E)){if(ge!==null)return null;return ge=io(E._debugInfo),M=N(M,D,E,K,null),ct=ge,M}if(typeof E.then==="function")return ge=io(E._debugInfo),M=A(M,D,vp(E),K),ct=ge,M;if(E.$$typeof===Cl)return A(M,D,pp(M,E),K);bp(M,E)}return typeof E==="function"&&xp(M,E),typeof E==="symbol"&&Sp(M,E),null}function _(M,D,E,K,ge){if(typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint")return M=M.get(E)||null,f(D,M,""+K,ge);if(typeof K==="object"&&K!==null){switch(K.$$typeof){case kl:return E=M.get(K.key===null?E:K.key)||null,M=io(K._debugInfo),D=v(D,E,K,ge),ct=M,D;case uu:return M=M.get(K.key===null?E:K.key)||null,S(D,M,K,ge);case tn:var Je=io(K._debugInfo);return K=qr(K),D=_(M,D,E,K,ge),ct=Je,D}if(Ya(K)||de(K))return E=M.get(E)||null,M=io(K._debugInfo),D=N(D,E,K,ge,null),ct=M,D;if(typeof K.then==="function")return Je=io(K._debugInfo),D=_(M,D,E,vp(K),ge),ct=Je,D;if(K.$$typeof===Cl)return _(M,D,E,pp(D,K),ge);bp(D,K)}return typeof K==="function"&&xp(D,K),typeof K==="symbol"&&Sp(D,K),null}function fe(M,D,E,K){if(typeof E!=="object"||E===null)return K;switch(E.$$typeof){case kl:case uu:p(M,D,E);var ge=E.key;if(typeof ge!=="string")break;if(K===null){K=new Set,K.add(ge);break}if(!K.has(ge)){K.add(ge);break}Y(D,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ge)});break;case tn:E=qr(E),fe(M,D,E,K)}return K}function ye(M,D,E,K){for(var ge=null,Je=null,qe=null,Re=D,st=D=0,fa=null;Re!==null&&st<E.length;st++){Re.index>st?(fa=Re,Re=null):fa=Re.sibling;var Ba=A(M,Re,E[st],K);if(Ba===null){Re===null&&(Re=fa);break}ge=fe(M,Ba,E[st],ge),e&&Re&&Ba.alternate===null&&t(M,Re),D=r(Ba,D,st),qe===null?Je=Ba:qe.sibling=Ba,qe=Ba,Re=fa}if(st===E.length)return a(M,Re),Tt&&Wl(M,st),Je;if(Re===null){for(;st<E.length;st++)Re=q(M,E[st],K),Re!==null&&(ge=fe(M,Re,E[st],ge),D=r(Re,D,st),qe===null?Je=Re:qe.sibling=Re,qe=Re);return Tt&&Wl(M,st),Je}for(Re=o(Re);st<E.length;st++)fa=_(Re,M,st,E[st],K),fa!==null&&(ge=fe(M,fa,E[st],ge),e&&fa.alternate!==null&&Re.delete(fa.key===null?st:fa.key),D=r(fa,D,st),qe===null?Je=fa:qe.sibling=fa,qe=fa);return e&&Re.forEach(function(vr){return t(M,vr)}),Tt&&Wl(M,st),Je}function la(M,D,E,K){if(E==null)throw Error("An iterable object provided no iterator.");for(var ge=null,Je=null,qe=D,Re=D=0,st=null,fa=null,Ba=E.next();qe!==null&&!Ba.done;Re++,Ba=E.next()){qe.index>Re?(st=qe,qe=null):st=qe.sibling;var vr=A(M,qe,Ba.value,K);if(vr===null){qe===null&&(qe=st);break}fa=fe(M,vr,Ba.value,fa),e&&qe&&vr.alternate===null&&t(M,qe),D=r(vr,D,Re),Je===null?ge=vr:Je.sibling=vr,Je=vr,qe=st}if(Ba.done)return a(M,qe),Tt&&Wl(M,Re),ge;if(qe===null){for(;!Ba.done;Re++,Ba=E.next())qe=q(M,Ba.value,K),qe!==null&&(fa=fe(M,qe,Ba.value,fa),D=r(qe,D,Re),Je===null?ge=qe:Je.sibling=qe,Je=qe);return Tt&&Wl(M,Re),ge}for(qe=o(qe);!Ba.done;Re++,Ba=E.next())st=_(qe,M,Re,Ba.value,K),st!==null&&(fa=fe(M,st,Ba.value,fa),e&&st.alternate!==null&&qe.delete(st.key===null?Re:st.key),D=r(st,D,Re),Je===null?ge=st:Je.sibling=st,Je=st);return e&&qe.forEach(function(LD){return t(M,LD)}),Tt&&Wl(M,Re),ge}function Mt(M,D,E,K){if(typeof E==="object"&&E!==null&&E.type===du&&E.key===null&&(yp(E,null,M),E=E.props.children),typeof E==="object"&&E!==null){switch(E.$$typeof){case kl:var ge=io(E._debugInfo);e:{for(var Je=E.key;D!==null;){if(D.key===Je){if(Je=E.type,Je===du){if(D.tag===7){a(M,D.sibling),K=l(D,E.props.children),K.return=M,K._debugOwner=E._owner,K._debugInfo=ct,yp(E,K,M),M=K;break e}}else if(D.elementType===Je||J0(D,E)||typeof Je==="object"&&Je!==null&&Je.$$typeof===tn&&qr(Je)===D.type){a(M,D.sibling),K=l(D,E.props),Md(K,E),K.return=M,K._debugOwner=E._owner,K._debugInfo=ct,M=K;break e}a(M,D);break}else t(M,D);D=D.sibling}E.type===du?(K=Vs(E.props.children,M.mode,K,E.key),K.return=M,K._debugOwner=M,K._debugTask=M._debugTask,K._debugInfo=ct,yp(E,K,M),M=K):(K=up(E,M.mode,K),Md(K,E),K.return=M,K._debugInfo=ct,M=K)}return M=u(M),ct=ge,M;case uu:e:{ge=E;for(E=ge.key;D!==null;){if(D.key===E)if(D.tag===4&&D.stateNode.containerInfo===ge.containerInfo&&D.stateNode.implementation===ge.implementation){a(M,D.sibling),K=l(D,ge.children||[]),K.return=M,M=K;break e}else{a(M,D);break}else t(M,D);D=D.sibling}K=hg(ge,M.mode,K),K.return=M,M=K}return u(M);case tn:return ge=io(E._debugInfo),E=qr(E),M=Mt(M,D,E,K),ct=ge,M}if(Ya(E))return ge=io(E._debugInfo),M=ye(M,D,E,K),ct=ge,M;if(de(E)){if(ge=io(E._debugInfo),Je=de(E),typeof Je!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var qe=Je.call(E);if(qe===E){if(M.tag!==0||Object.prototype.toString.call(M.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(qe)!=="[object Generator]")RC||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."),RC=!0}else E.entries!==Je||jv||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jv=!0);return M=la(M,D,qe,K),ct=ge,M}if(typeof E.then==="function")return ge=io(E._debugInfo),M=Mt(M,D,vp(E),K),ct=ge,M;if(E.$$typeof===Cl)return Mt(M,D,pp(M,E),K);bp(M,E)}if(typeof E==="string"&&E!==""||typeof E==="number"||typeof E==="bigint")return ge=""+E,D!==null&&D.tag===6?(a(M,D.sibling),K=l(D,ge),K.return=M,M=K):(a(M,D),K=mg(ge,M.mode,K),K.return=M,K._debugOwner=M,K._debugTask=M._debugTask,K._debugInfo=ct,M=K),u(M);return typeof E==="function"&&xp(M,E),typeof E==="symbol"&&Sp(M,E),a(M,D)}return function(M,D,E,K){var ge=ct;ct=null;try{wc=0;var Je=Mt(M,D,E,K);return Au=null,Je}catch(fa){if(fa===Mu||fa===Am)throw fa;var qe=L(29,fa,null,M.mode);qe.lanes=K,qe.return=M;var Re=qe._debugInfo=ct;if(qe._debugOwner=M._debugOwner,qe._debugTask=M._debugTask,Re!=null){for(var st=Re.length-1;0<=st;st--)if(typeof Re[st].stack==="string"){qe._debugOwner=Re[st],qe._debugTask=Re[st].debugTask;break}}return qe}finally{ct=ge}}}function Lx(e,t){var a=Ya(e);return e=!a&&typeof de(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 Ig(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rg(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 Br(e){return{lane:e,tag:NC,payload:null,callback:null,next:null}}function zr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Yv===o&&!BC){var l=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),wL=!0}if((kt&Ea)!==Pa)return n=o.pending,n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=sf(e),Hv(e,null,a),t;return rf(e,o,t,a),sf(e)}function $i(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,os(e,a)}}function Cf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,l=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};l===null?n=l=s:l=l.next=s,a=a.next}while(a!==null);l===null?n=l=t:l=l.next=t}else n=l=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:l,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 ji(){if(Fy){var e=ju;if(e!==null)throw e}}function Xi(e,t,a,o){Fy=!1;var n=e.updateQueue;Ir=!1,Hy=n.shared;var{firstBaseUpdate:l,lastBaseUpdate:s}=n,c=n.shared.pending;if(c!==null){n.shared.pending=null;var p=c,g=p.next;p.next=null,s===null?l=g:s.next=g,s=p;var E=e.alternate;E!==null&&(E=E.updateQueue,c=E.lastBaseUpdate,c!==s&&(c===null?E.firstBaseUpdate=g:c.next=g,E.lastBaseUpdate=p))}if(l!==null){var O=n.baseState;s=0,E=g=p=null,c=l;do{var I=c.lane&-536870913,P=I!==c.lane;if(P?(ut&I)===I:(o&I)===I){I!==0&&I===Is&&(Fy=!0),E!==null&&(E=E.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{I=e;var se=c,he=t,Yt=a;switch(se.tag){case LL:if(se=se.payload,typeof se==="function"){Vu=!0;var Ct=se.call(Yt,O,he);if(I.mode&Ja){jt(!0);try{se.call(Yt,O,he)}finally{jt(!1)}}Vu=!1,O=Ct;break e}O=se;break e;case _y:I.flags=I.flags&-65537|128;case CL:if(Ct=se.payload,typeof Ct==="function"){if(Vu=!0,se=Ct.call(Yt,O,he),I.mode&Ja){jt(!0);try{Ct.call(Yt,O,he)}finally{jt(!1)}}Vu=!1}else se=Ct;if(se===null||se===void 0)break e;O=ft({},O,se);break e;case kL:Ir=!0}}I=c.callback,I!==null&&(e.flags|=64,P&&(e.flags|=8192),P=n.callbacks,P===null?n.callbacks=[I]:P.push(I))}else P={lane:I,tag:c.tag,payload:c.payload,callback:c.callback,next:null},E===null?(g=E=P,p=O):E=E.next=P,s|=I;if(c=c.next,c===null)if(c=n.shared.pending,c===null)break;else P=c,c=P.next,P.next=null,n.lastBaseUpdate=P,n.shared.pending=null}while(1);E===null&&(p=O),n.baseState=p,n.firstBaseUpdate=g,n.lastBaseUpdate=E,l===null&&(n.shared.lanes=0),Ar|=s,e.lanes=s,e.memoizedState=O}Hy=null}function m0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function iI(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)m0(a[e],t)}function h0(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)m0(a[e],t)}function g0(e,t){var a=nl;xe(Ep,a,e),xe(Qu,t,e),nl=a|t.baseLanes}function Ch(e){xe(Ep,nl,e),xe(Qu,Qu.current,e)}function Lh(e){nl=Ep.current,ye(Qu,e),ye(Ep,e)}function sr(e){var t=e.alternate;xe(ya,ya.current&Zu,e),xe(Bo,e,e),Jo===null&&(t===null||Qu.current!==null?Jo=e:t.memoizedState!==null&&(Jo=e))}function kh(e){xe(ya,ya.current,e),xe(Bo,e,e),Jo===null&&(Jo=e)}function y0(e){e.tag===22?(xe(ya,ya.current,e),xe(Bo,e,e),Jo===null&&(Jo=e)):ur(e)}function ur(e){xe(ya,ya.current,e),xe(Bo,Bo.current,e)}function Mo(e){ye(Bo,e),Jo===e&&(Jo=null),ye(ya,e)}function Lf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ug(a)||Pg(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 dt(){var e=z;tn===null?tn=[e]:tn.push(e)}function ae(){var e=z;if(tn!==null&&(zl++,tn[zl]!==e)){var t=F(Ye);if(!TL.has(t)&&(TL.add(t),tn!==null)){for(var a="",o=0;o<=zl;o++){var n=tn[o],l=o===zl?e:n;for(n=o+1+". "+n;30>n.length;)n+=" ";n+=l+`
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`,l),BC=!0}if((Nt&Wa)!==ao)return l=o.pending,l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,t=ip(e),K0(e,null,a),t;return sp(e,o,t,a),ip(e)}function Ad(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,zs(e,a)}}function kp(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var l=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?l=r=u:r=r.next=u,a=a.next}while(a!==null);r===null?l=r=t:r=r.next=t}else l=r=t;a={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:r,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 Dd(){if(Qv){var e=Ru;if(e!==null)throw e}}function Ed(e,t,a,o){Qv=!1;var l=e.updateQueue;ns=!1,Yv=l.shared;var{firstBaseUpdate:r,lastBaseUpdate:u}=l,f=l.shared.pending;if(f!==null){l.shared.pending=null;var v=f,S=v.next;v.next=null,u===null?r=S:u.next=S,u=v;var N=e.alternate;N!==null&&(N=N.updateQueue,f=N.lastBaseUpdate,f!==u&&(f===null?N.firstBaseUpdate=S:f.next=S,N.lastBaseUpdate=v))}if(r!==null){var q=l.baseState;u=0,N=S=v=null,f=r;do{var A=f.lane&-536870913,_=A!==f.lane;if(_?(ft&A)===A:(o&A)===A){A!==0&&A===si&&(Qv=!0),N!==null&&(N=N.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{A=e;var fe=f,ye=t,la=a;switch(fe.tag){case OC:if(fe=fe.payload,typeof fe==="function"){Tu=!0;var Mt=fe.call(la,q,ye);if(A.mode&xo){$t(!0);try{fe.call(la,q,ye)}finally{$t(!1)}}Tu=!1,q=Mt;break e}q=fe;break e;case Xv:A.flags=A.flags&-65537|128;case NC:if(Mt=fe.payload,typeof Mt==="function"){if(Tu=!0,fe=Mt.call(la,q,ye),A.mode&xo){$t(!0);try{Mt.call(la,q,ye)}finally{$t(!1)}}Tu=!1}else fe=Mt;if(fe===null||fe===void 0)break e;q=bt({},q,fe);break e;case qC:ns=!0}}A=f.callback,A!==null&&(e.flags|=64,_&&(e.flags|=8192),_=l.callbacks,_===null?l.callbacks=[A]:_.push(A))}else _={lane:A,tag:f.tag,payload:f.payload,callback:f.callback,next:null},N===null?(S=N=_,v=q):N=N.next=_,u|=A;if(f=f.next,f===null)if(f=l.shared.pending,f===null)break;else _=f,f=_.next,_.next=null,l.lastBaseUpdate=_,l.shared.pending=null}while(1);N===null&&(v=q),l.baseState=v,l.firstBaseUpdate=S,l.lastBaseUpdate=N,r===null&&(l.shared.lanes=0),ss|=u,e.lanes=u,e.memoizedState=q}Yv=null}function wx(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function vR(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)wx(a[e],t)}function Tx(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wx(a[e],t)}function Ix(e,t){var a=Nl;Oe(Em,a,e),Oe(Du,t,e),Nl=a|t.baseLanes}function Mg(e){Oe(Em,Nl,e),Oe(Du,Du.current,e)}function Ag(e){Nl=Em.current,pe(Du,e),pe(Em,e)}function Ur(e){var t=e.alternate;Oe(qa,qa.current&Eu,e),Oe(ln,e,e),In===null&&(t===null||Du.current!==null?In=e:t.memoizedState!==null&&(In=e))}function Dg(e){Oe(qa,qa.current,e),Oe(ln,e,e),In===null&&(In=e)}function Rx(e){e.tag===22?(Oe(qa,qa.current,e),Oe(ln,e,e),In===null&&(In=e)):Pr(e)}function Pr(e){Oe(qa,qa.current,e),Oe(ln,ln.current,e)}function Ko(e){pe(ln,e),In===e&&(In=null),pe(qa,e)}function Cp(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Vy(a)||$y(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 vt(){var e=G;Mn===null?Mn=[e]:Mn.push(e)}function le(){var e=G;if(Mn!==null&&(pr++,Mn[pr]!==e)){var t=V(Ke);if(!zC.has(t)&&(zC.add(t),Mn!==null)){for(var a="",o=0;o<=pr;o++){var l=Mn[o],r=o===pr?e:l;for(l=o+1+". "+l;30>l.length;)l+=" ";l+=r+`
103
+ `,a+=l}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 mu(e){e===void 0||e===null||Aa(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.",z,typeof e)}function kf(){var e=F(Ye);RL.has(e)||(RL.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function pa(){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 Wi(e){e===void 0||e===null||Ya(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.",G,typeof e)}function Lp(){var e=V(Ke);PC.has(e)||(PC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Ra(){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 wh(e,t){if(Gc)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.",z),!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 Eg(e,t){if(Rc)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.",G),!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`,z,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!so(e[a],t[a]))return!1;return!0}function Th(e,t,a,o,n,l){if(Ul=l,Ye=t,tn=e!==null?e._debugHookTypes:null,zl=-1,Gc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")l=F(Ye),Gy.has(l)||(Gy.add(l),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.",l===null?"An unknown Component":"<"+l+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?$y:tn!==null?ML:Vy,Es=l=(t.mode&Ja)!==He;var s=By(a,o,n);if(Es=!1,Ku&&(s=Ih(t,a,o,n)),l){jt(!0);try{s=Ih(t,a,o,n)}finally{jt(!1)}}return b0(e,t),s}function b0(e,t){t._debugHookTypes=tn,t.dependencies===null?Pl!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Pl}):t.dependencies._debugThenableState=Pl,G.H=Vc;var a=Gt!==null&&Gt.next!==null;if(Ul=0,tn=z=La=Gt=Ye=null,zl=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),qp=!1,Fc=0,Pl=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ka||(e=e.dependencies,e!==null&&ff(e)&&(ka=!0)),zc?(zc=!1,e=!0):e=!1,e&&(t=F(t)||"Unknown",IL.has(t)||Gy.has(t)||(IL.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 Ih(e,t,a,o){Ye=e;var n=0;do{if(Ku&&(Pl=null),Fc=0,Ku=!1,n>=XM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,Gc=!1,La=Gt=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}zl=-1,G.H=AL,l=By(t,a,o)}while(Ku);return l}function cI(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Yi(t):t,e=e.useState()[0],(Gt!==null?Gt.memoizedState:null)!==e&&(Ye.flags|=1024),t}function Rh(){var e=Np!==0;return Np=0,e}function Mh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&mn)!==He?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Ah(e){if(qp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qp=!1}Ul=0,tn=La=Gt=Ye=null,zl=-1,z=null,Ku=!1,Fc=Np=0,Pl=null}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return La===null?Ye.memoizedState=La=e:La=La.next=e,La}function Pt(){if(Gt===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=Gt.next;var t=La===null?Ye.memoizedState:La.next;if(t!==null)La=t,Gt=e;else{if(e===null){if(Ye.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.")}Gt=e,e={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},La===null?Ye.memoizedState=La=e:La=La.next=e}return La}function wf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yi(e){var t=Fc;return Fc+=1,Pl===null&&(Pl=n0()),e=r0(Pl,e,t),t=Ye,(La===null?t.memoizedState:La.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?$y:Vy),e}function ir(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Yi(e);if(e.$$typeof===Yn)return ea(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function hs(e){var t=null,a=Ye.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ye.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=wf(),Ye.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Gc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=wR;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 cn(e,t){return typeof t==="function"?t(e):t}function Dh(e,t,a){var o=oo();if(a!==void 0){var n=a(t);if(Es){jt(!0);try{a(t)}finally{jt(!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=hI.bind(null,Ye,e),[o.memoizedState,e]}function hu(e){var t=Pt();return Eh(t,Gt,e)}function Eh(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,l=o.pending;if(l!==null){if(n!==null){var s=n.next;n.next=l.next,l.next=s}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=l,o.pending=null}if(l=e.baseState,n===null)e.memoizedState=l;else{t=n.next;var c=s=null,p=null,g=t,E=!1;do{var O=g.lane&-536870913;if(O!==g.lane?(ut&O)===O:(Ul&O)===O){var I=g.revertLane;if(I===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),O===Is&&(E=!0);else if((Ul&I)===I){g=g.next,I===Is&&(E=!0);continue}else O={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},p===null?(c=p=O,s=l):p=p.next=O,Ye.lanes|=I,Ar|=I;O=g.action,Es&&a(l,O),l=g.hasEagerState?g.eagerState:a(l,O)}else I={lane:O,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},p===null?(c=p=I,s=l):p=p.next=I,Ye.lanes|=O,Ar|=O;g=g.next}while(g!==null&&g!==t);if(p===null?s=l:p.next=c,!so(l,e.memoizedState)&&(ka=!0,E&&(a=ju,a!==null)))throw a;e.memoizedState=l,e.baseState=s,e.baseQueue=p,o.lastRenderedState=l}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Qi(e){var t=Pt(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:n}=a,l=t.memoizedState;if(n!==null){a.pending=null;var s=n=n.next;do l=e(l,s.action),s=s.next;while(s!==n);so(l,t.memoizedState)||(ka=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),a.lastRenderedState=l}return[l,o]}function Oh(e,t,a){var o=Ye,n=oo();if(gt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var l=a();Wu||l===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Wu=!0)}else{if(l=t(),Wu||(a=t(),so(l,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wu=!0)),Vt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ut&127)!==0||v0(o,t,l)}return n.memoizedState=l,a={value:l,getSnapshot:t},n.queue=a,Mf(x0.bind(null,o,a,e),[e]),o.flags|=2048,yu(en|co,{destroy:void 0},S0.bind(null,o,a,l,t),null),l}function Tf(e,t,a){var o=Ye,n=Pt(),l=gt;if(l){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(),!Wu){var s=t();so(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Wu=!0)}if(s=!so((Gt||n).memoizedState,a))n.memoizedState=a,ka=!0;n=n.queue;var c=x0.bind(null,o,n,e);if(ho(2048,co,c,[e]),n.getSnapshot!==t||s||La!==null&&La.memoizedState.tag&en){if(o.flags|=2048,yu(en|co,{destroy:void 0},S0.bind(null,o,n,a,t),null),Vt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");l||(Ul&127)!==0||v0(o,t,a)}return a}function v0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ye.updateQueue,t===null?(t=wf(),Ye.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function S0(e,t,a,o){t.value=a,t.getSnapshot=o,C0(t)&&L0(e)}function x0(e,t,a){return a(function(){C0(t)&&(qn(2,"updateSyncExternalStore()",e),L0(e))})}function C0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!so(e,a)}catch(o){return!0}}function L0(e){var t=Wa(e,2);t!==null&&ra(t,e,2)}function qh(e){var t=oo();if(typeof e==="function"){var a=e;if(e=a(),Es){jt(!0);try{a()}finally{jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:e},t}function Nh(e){e=qh(e);var t=e.queue,a=F0.bind(null,Ye,t);return t.dispatch=a,[e.memoizedState,a]}function Bh(e){var t=oo();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Zh.bind(null,Ye,!0,a),a.dispatch=t,[e,t]}function k0(e,t){var a=Pt();return w0(a,Gt,e,t)}function w0(e,t,a,o){return e.baseState=a,Eh(e,Gt,typeof o==="function"?o:cn)}function T0(e,t){var a=Pt();if(Gt!==null)return w0(a,Gt,e,t);return a.baseState=e,[e,a.queue.dispatch]}function dI(e,t,a,o,n){if(Nf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var l={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){l.listeners.push(s)}};G.T!==null?a(!0):l.isTransition=!1,o(l),a=t.pending,a===null?(l.next=t.pending=l,I0(t,l)):(l.next=a.next,t.pending=a.next=l)}}function I0(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var l=G.T,s={};s._updatedFibers=new Set,G.T=s;try{var c=a(n,o),p=G.S;p!==null&&p(s,c),R0(e,t,c)}catch(g){Uh(e,t,g)}finally{l!==null&&s.types!==null&&(l.types!==null&&l.types!==s.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."),l.types=s.types),G.T=l,l===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._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{s=a(n,o),R0(e,t,s)}catch(g){Uh(e,t,g)}}function R0(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(qf,qf),a.then(function(o){M0(e,t,o)},function(o){return Uh(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.")):M0(e,t,a)}function M0(e,t,a){t.status="fulfilled",t.value=a,A0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,I0(e,a)))}function Uh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,A0(t),t=t.next;while(t!==o)}e.action=null}function A0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function D0(e,t){return t}function gu(e,t){if(gt){var a=Vt.formState;if(a!==null){e:{var o=Ye;if(gt){if(Zt){t:{var n=Zt;for(var l=Wo;n.nodeType!==8;){if(!l){n=null;break t}if(n=Do(n.nextSibling),n===null){n=null;break t}}l=n.data,n=l===mb||l===h1?n:null}if(n){Zt=Do(n.nextSibling),o=n.data===mb;break e}}ar(o)}o=!1}o&&(t=a[0])}}return a=oo(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:D0,lastRenderedState:t},a.queue=o,a=F0.bind(null,Ye,o),o.dispatch=a,o=qh(!1),l=Zh.bind(null,Ye,!1,o.queue),o=oo(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=dI.bind(null,Ye,n,l,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function If(e){var t=Pt();return E0(t,Gt,e)}function E0(e,t,a){if(t=Eh(e,t,D0)[0],e=hu(cn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Yi(t)}catch(s){if(s===Xu)throw Ap;throw s}else o=t;t=Pt();var n=t.queue,l=n.dispatch;return a!==t.memoizedState&&(Ye.flags|=2048,yu(en|co,{destroy:void 0},fI.bind(null,n,a),null)),[o,l,e]}function fI(e,t){e.action=t}function Rf(e){var t=Pt(),a=Gt;if(a!==null)return E0(t,a,e);Pt(),t=t.memoizedState,a=Pt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function yu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ye.updateQueue,t===null&&(t=wf(),Ye.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 Ph(e){var t=oo();return e={current:e},t.memoizedState=e}function gs(e,t,a,o){var n=oo();Ye.flags|=e,n.memoizedState=yu(en|t,{destroy:void 0},a,o===void 0?null:o)}function ho(e,t,a,o){var n=Pt();o=o===void 0?null:o;var l=n.memoizedState.inst;Gt!==null&&o!==null&&wh(o,Gt.memoizedState.deps)?n.memoizedState=yu(t,l,a,o):(Ye.flags|=e,n.memoizedState=yu(en|t,l,a,o))}function Mf(e,t){(Ye.mode&mn)!==He?gs(276826112,co,e,t):gs(8390656,co,e,t)}function pI(e){Ye.flags|=4;var t=Ye.updateQueue;if(t===null)t=wf(),Ye.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function zh(e){var t=oo(),a={impl:e};return t.memoizedState=a,function(){if((kt&Ea)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Af(e){var t=Pt().memoizedState;return pI({ref:t,nextImpl:e}),function(){if((kt&Ea)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function _h(e,t){var a=4194308;return(Ye.mode&mn)!==He&&(a|=134217728),gs(a,Uo,e,t)}function O0(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 Hh(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;(Ye.mode&mn)!==He&&(o|=134217728),gs(o,Uo,O0.bind(null,t,e),a)}function Df(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,ho(4,Uo,O0.bind(null,t,e),a)}function Fh(e,t){return oo().memoizedState=[e,t===void 0?null:t],e}function Ef(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&wh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Gh(e,t){var a=oo();t=t===void 0?null:t;var o=e();if(Es){jt(!0);try{e()}finally{jt(!1)}}return a.memoizedState=[o,t],o}function Of(e,t){var a=Pt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&wh(t,o[1]))return o[0];if(o=e(),Es){jt(!0);try{e()}finally{jt(!1)}}return a.memoizedState=[o,t],o}function Vh(e,t){var a=oo();return $h(a,e,t)}function q0(e,t){var a=Pt();return B0(a,Gt.memoizedState,e,t)}function N0(e,t){var a=Pt();return Gt===null?$h(a,e,t):B0(a,Gt.memoizedState,e,t)}function $h(e,t,a){if(a===void 0||(Ul&1073741824)!==0&&(ut&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=US(),Ye.lanes|=e,Ar|=e,a}function B0(e,t,a,o){if(so(a,t))return a;if(Qu.current!==null)return e=$h(e,a,o),so(e,t)||(ka=!0),e;if((Ul&42)===0||(Ul&1073741824)!==0&&(ut&261930)===0)return ka=!0,e.memoizedState=a;return e=US(),Ye.lanes|=e,Ar|=e,t}function qf(){G.asyncTransitions--}function U0(e,t,a,o,n){var l=qt.p;qt.p=l!==0&&l<pn?l:pn;var s=G.T,c={};c._updatedFibers=new Set,G.T=c,Zh(e,!1,t,a);try{var p=n(),g=G.S;if(g!==null&&g(c,p),p!==null&&typeof p==="object"&&typeof p.then==="function"){G.asyncTransitions++,p.then(qf,qf);var E=uI(p,o);Zi(e,t,E,Ao(e))}else Zi(e,t,o,Ao(e))}catch(O){Zi(e,t,{then:function(){},status:"rejected",reason:O},Ao(e))}finally{qt.p=l,s!==null&&c.types!==null&&(s.types!==null&&s.types!==c.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=c.types),G.T=s,s===null&&c._updatedFibers&&(e=c._updatedFibers.size,c._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 jh(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=P0(e).queue;rI(e),U0(e,n,t,Gs,a===null?x:function(){return z0(e),a(o)})}function P0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gs,baseState:Gs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:Gs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function z0(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=P0(e);t.next===null&&(t=e.alternate.memoizedState),Zi(e,t.next.queue,{},Ao(e))}function Xh(){var e=qh(!1);return e=U0.bind(null,Ye,e.queue,!0,!1),oo().memoizedState=e,[!1,e]}function _0(){var e=hu(cn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Yi(e),t]}function H0(){var e=Qi(cn)[0],t=Pt().memoizedState;return[typeof e==="boolean"?e:Yi(e),t]}function ys(){return ea(ld)}function Yh(){var e=oo(),t=Vt.identifierPrefix;if(gt){var a=El,o=Dl;a=(o&~(1<<32-no(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Np++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=jM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Qh(){return oo().memoizedState=mI.bind(null,Ye)}function mI(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ao(a),n=lr(o),l=rr(a,n,o);l!==null&&(qn(o,"refresh()",e),ra(l,a,o),$i(l,a,o)),e=hh(),t!==null&&t!==void 0&&l!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function hI(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=Ao(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Nf(e)?G0(t,n):(n=oh(e,t,n,o),n!==null&&(qn(o,"dispatch()",e),ra(n,e,o),V0(n,t,o)))}function F0(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=Ao(e),Zi(e,t,a,o)&&qn(o,"setState()",e)}function Zi(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Nf(e))G0(t,n);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null)){var s=G.H;G.H=gn;try{var c=t.lastRenderedState,p=l(c,a);if(n.hasEagerState=!0,n.eagerState=p,so(p,c))return rf(e,t,n,0),Vt===null&&lf(),!1}catch(g){}finally{G.H=s}}if(a=oh(e,t,n,o),a!==null)return ra(a,e,o),V0(a,t,o),!0}return!1}function Zh(e,t,a,o){if(G.T===null&&Is===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:Tg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Nf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=oh(e,a,o,2),t!==null&&(qn(2,"setOptimistic()",e),ra(t,e,2))}function Nf(e){var t=e.alternate;return e===Ye||t!==null&&t===Ye}function G0(e,t){Ku=qp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function V0(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,os(e,a)}}function Wh(e){if(e!==null&&typeof e!=="function"){var t=String(e);HL.has(t)||(HL.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Kh(e,t,a,o){var n=e.memoizedState,l=a(o,n);if(e.mode&Ja){jt(!0);try{l=a(o,n)}finally{jt(!1)}}l===void 0&&(t=Q(t)||"Component",UL.has(t)||(UL.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=l===null||l===void 0?n:ft({},n,l),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function $0(e,t,a,o,n,l,s){var c=e.stateNode;if(typeof c.shouldComponentUpdate==="function"){if(a=c.shouldComponentUpdate(o,l,s),e.mode&Ja){jt(!0);try{a=c.shouldComponentUpdate(o,l,s)}finally{jt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Q(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Pi(a,o)||!Pi(n,l):!0}function j0(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=F(e)||"Component",EL.has(e)||(EL.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),jy.enqueueReplaceState(t,t.state,null))}function bs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=ft({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function X0(e){Ly(e),console.warn(`%s
115
+ Incoming: %s`,G,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!Ro(e[a],t[a]))return!1;return!0}function Ng(e,t,a,o,l,r){if(cr=r,Ke=t,Mn=e!==null?e._debugHookTypes:null,pr=-1,Rc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")r=V(Ke),Wv.has(r)||(Wv.add(r),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",r===null?"An unknown Component":"<"+r+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e!==null&&e.memoizedState!==null?Kv:Mn!==null?_C:Zv,fi=r=(t.mode&xo)!==Ye;var u=Gv(a,o,l);if(fi=!1,Ou&&(u=Og(t,a,o,l)),r){$t(!0);try{u=Og(t,a,o,l)}finally{$t(!1)}}return Mx(e,t),u}function Mx(e,t){t._debugHookTypes=Mn,t.dependencies===null?fr!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:fr}):t.dependencies._debugThenableState=fr,j.H=Mc;var a=ta!==null&&ta.next!==null;if(cr=0,Mn=G=Fa=ta=Ke=null,pr=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Om=!1,Ic=0,fr=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Ga||(e=e.dependencies,e!==null&&fp(e)&&(Ga=!0)),Lc?(Lc=!1,e=!0):e=!1,e&&(t=V(t)||"Unknown",UC.has(t)||Wv.has(t)||(UC.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 Og(e,t,a,o){Ke=e;var l=0;do{if(Ou&&(fr=null),Ic=0,Ou=!1,l>=aD)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Rc=!1,Fa=ta=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}pr=-1,j.H=HC,r=Gv(t,a,o)}while(Ou);return r}function bR(){var e=j.H,t=e.useState()[0];return t=typeof t.then==="function"?Nd(t):t,e=e.useState()[0],(ta!==null?ta.memoizedState:null)!==e&&(Ke.flags|=1024),t}function qg(){var e=qm!==0;return qm=0,e}function Bg(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&Vn)!==Ye?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function zg(e){if(Om){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Om=!1}cr=0,Mn=Fa=ta=Ke=null,pr=-1,G=null,Ou=!1,Ic=qm=0,fr=null}function Lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fa===null?Ke.memoizedState=Fa=e:Fa=Fa.next=e,Fa}function Wt(){if(ta===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=ta.next;var t=Fa===null?Ke.memoizedState:Fa.next;if(t!==null)Fa=t,ta=e;else{if(e===null){if(Ke.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}ta=e,e={memoizedState:ta.memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},Fa===null?Ke.memoizedState=Fa=e:Fa=Fa.next=e}return Fa}function wp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nd(e){var t=Ic;return Ic+=1,fr===null&&(fr=hx()),e=yx(fr,e,t),t=Ke,(Fa===null?t.memoizedState:Fa.next)===null&&(t=t.alternate,j.H=t!==null&&t.memoizedState!==null?Kv:Zv),e}function _r(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Nd(e);if(e.$$typeof===Cl)return va(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Qs(e){var t=null,a=Ke.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ke.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=wp(),Ke.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Rc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=OM;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 _n(e,t){return typeof t==="function"?t(e):t}function Ug(e,t,a){var o=Lo();if(a!==void 0){var l=a(t);if(fi){$t(!0);try{a(t)}finally{$t(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=LR.bind(null,Ke,e),[o.memoizedState,e]}function Zi(e){var t=Wt();return Pg(t,ta,e)}function Pg(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 l=e.baseQueue,r=o.pending;if(r!==null){if(l!==null){var u=l.next;l.next=r.next,r.next=u}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=r,o.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{t=l.next;var f=u=null,v=null,S=t,N=!1;do{var q=S.lane&-536870913;if(q!==S.lane?(ft&q)===q:(cr&q)===q){var A=S.revertLane;if(A===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),q===si&&(N=!0);else if((cr&A)===A){S=S.next,A===si&&(N=!0);continue}else q={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},v===null?(f=v=q,u=r):v=v.next=q,Ke.lanes|=A,ss|=A;q=S.action,fi&&a(r,q),r=S.hasEagerState?S.eagerState:a(r,q)}else A={lane:q,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},v===null?(f=v=A,u=r):v=v.next=A,Ke.lanes|=q,ss|=q;S=S.next}while(S!==null&&S!==t);if(v===null?u=r:v.next=f,!Ro(r,e.memoizedState)&&(Ga=!0,N&&(a=Ru,a!==null)))throw a;e.memoizedState=r,e.baseState=u,e.baseQueue=v,o.lastRenderedState=r}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Od(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:l}=a,r=t.memoizedState;if(l!==null){a.pending=null;var u=l=l.next;do r=e(r,u.action),u=u.next;while(u!==l);Ro(r,t.memoizedState)||(Ga=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,o]}function _g(e,t,a){var o=Ke,l=Lo();if(Tt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=a();Nu||r===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Nu=!0)}else{if(r=t(),Nu||(a=t(),Ro(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Nu=!0)),aa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ft&127)!==0||Ax(o,t,r)}return l.memoizedState=r,a={value:r,getSnapshot:t},l.queue=a,Mp(Ex.bind(null,o,a,e),[e]),o.flags|=2048,Ji(Rn|Do,{destroy:void 0},Dx.bind(null,o,a,r,t),null),r}function Tp(e,t,a){var o=Ke,l=Wt(),r=Tt;if(r){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Nu){var u=t();Ro(a,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Nu=!0)}if(u=!Ro((ta||l).memoizedState,a))l.memoizedState=a,Ga=!0;l=l.queue;var f=Ex.bind(null,o,l,e);if(zo(2048,Do,f,[e]),l.getSnapshot!==t||u||Fa!==null&&Fa.memoizedState.tag&Rn){if(o.flags|=2048,Ji(Rn|Do,{destroy:void 0},Dx.bind(null,o,l,a,t),null),aa===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(cr&127)!==0||Ax(o,t,a)}return a}function Ax(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ke.updateQueue,t===null?(t=wp(),Ke.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Dx(e,t,a,o){t.value=a,t.getSnapshot=o,Nx(t)&&Ox(e)}function Ex(e,t,a){return a(function(){Nx(t)&&(ul(2,"updateSyncExternalStore()",e),Ox(e))})}function Nx(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ro(e,a)}catch(o){return!0}}function Ox(e){var t=vo(e,2);t!==null&&La(t,e,2)}function Hg(e){var t=Lo();if(typeof e==="function"){var a=e;if(e=a(),fi){$t(!0);try{a()}finally{$t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:e},t}function Fg(e){e=Hg(e);var t=e.queue,a=Jx.bind(null,Ke,t);return t.dispatch=a,[e.memoizedState,a]}function Gg(e){var t=Lo();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=oy.bind(null,Ke,!0,a),a.dispatch=t,[e,t]}function qx(e,t){var a=Wt();return Bx(a,ta,e,t)}function Bx(e,t,a,o){return e.baseState=a,Pg(e,ta,typeof o==="function"?o:_n)}function zx(e,t){var a=Wt();if(ta!==null)return Bx(a,ta,e,t);return a.baseState=e,[e,a.queue.dispatch]}function xR(e,t,a,o,l){if(qp(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){r.listeners.push(u)}};j.T!==null?a(!0):r.isTransition=!1,o(r),a=t.pending,a===null?(r.next=t.pending=r,Ux(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Ux(e,t){var{action:a,payload:o}=t,l=e.state;if(t.isTransition){var r=j.T,u={};u._updatedFibers=new Set,j.T=u;try{var f=a(l,o),v=j.S;v!==null&&v(u,f),Px(e,t,f)}catch(S){Vg(e,t,S)}finally{r!==null&&u.types!==null&&(r.types!==null&&r.types!==u.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),r.types=u.types),j.T=r,r===null&&u._updatedFibers&&(e=u._updatedFibers.size,u._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{u=a(l,o),Px(e,t,u)}catch(S){Vg(e,t,S)}}function Px(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(j.asyncTransitions++,a.then(Op,Op),a.then(function(o){_x(e,t,o)},function(o){return Vg(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):_x(e,t,a)}function _x(e,t,a){t.status="fulfilled",t.value=a,Hx(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ux(e,a)))}function Vg(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Hx(t),t=t.next;while(t!==o)}e.action=null}function Hx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Fx(e,t){return t}function Ki(e,t){if(Tt){var a=aa.formState;if(a!==null){e:{var o=Ke;if(Tt){if(ca){t:{var l=ca;for(var r=wn;l.nodeType!==8;){if(!r){l=null;break t}if(l=en(l.nextSibling),l===null){l=null;break t}}r=l.data,l=r===Sb||r===TL?l:null}if(l){ca=en(l.nextSibling),o=l.data===Sb;break e}}Nr(o)}o=!1}o&&(t=a[0])}}return a=Lo(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fx,lastRenderedState:t},a.queue=o,a=Jx.bind(null,Ke,o),o.dispatch=a,o=Hg(!1),r=oy.bind(null,Ke,!1,o.queue),o=Lo(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=xR.bind(null,Ke,l,r,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function Ip(e){var t=Wt();return Gx(t,ta,e)}function Gx(e,t,a){if(t=Pg(e,t,Fx)[0],e=Zi(_n)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Nd(t)}catch(u){if(u===Mu)throw Am;throw u}else o=t;t=Wt();var l=t.queue,r=l.dispatch;return a!==t.memoizedState&&(Ke.flags|=2048,Ji(Rn|Do,{destroy:void 0},SR.bind(null,l,a),null)),[o,r,e]}function SR(e,t){e.action=t}function Rp(e){var t=Wt(),a=ta;if(a!==null)return Gx(t,a,e);Wt(),t=t.memoizedState,a=Wt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function Ji(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=wp(),Ke.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function $g(e){var t=Lo();return e={current:e},t.memoizedState=e}function Ws(e,t,a,o){var l=Lo();Ke.flags|=e,l.memoizedState=Ji(Rn|t,{destroy:void 0},a,o===void 0?null:o)}function zo(e,t,a,o){var l=Wt();o=o===void 0?null:o;var r=l.memoizedState.inst;ta!==null&&o!==null&&Eg(o,ta.memoizedState.deps)?l.memoizedState=Ji(t,r,a,o):(Ke.flags|=e,l.memoizedState=Ji(Rn|t,r,a,o))}function Mp(e,t){(Ke.mode&Vn)!==Ye?Ws(276826112,Do,e,t):Ws(8390656,Do,e,t)}function kR(e){Ke.flags|=4;var t=Ke.updateQueue;if(t===null)t=wp(),Ke.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function jg(e){var t=Lo(),a={impl:e};return t.memoizedState=a,function(){if((Nt&Wa)!==ao)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Ap(e){var t=Wt().memoizedState;return kR({ref:t,nextImpl:e}),function(){if((Nt&Wa)!==ao)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Xg(e,t){var a=4194308;return(Ke.mode&Vn)!==Ye&&(a|=134217728),Ws(a,rn,e,t)}function Vx(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 Yg(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Ke.mode&Vn)!==Ye&&(o|=134217728),Ws(o,rn,Vx.bind(null,t,e),a)}function Dp(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,zo(4,rn,Vx.bind(null,t,e),a)}function Qg(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e}function Ep(e,t){var a=Wt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Eg(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Wg(e,t){var a=Lo();t=t===void 0?null:t;var o=e();if(fi){$t(!0);try{e()}finally{$t(!1)}}return a.memoizedState=[o,t],o}function Np(e,t){var a=Wt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&Eg(t,o[1]))return o[0];if(o=e(),fi){$t(!0);try{e()}finally{$t(!1)}}return a.memoizedState=[o,t],o}function Zg(e,t){var a=Lo();return Kg(a,e,t)}function $x(e,t){var a=Wt();return Xx(a,ta.memoizedState,e,t)}function jx(e,t){var a=Wt();return ta===null?Kg(a,e,t):Xx(a,ta.memoizedState,e,t)}function Kg(e,t,a){if(a===void 0||(cr&1073741824)!==0&&(ft&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=YS(),Ke.lanes|=e,ss|=e,a}function Xx(e,t,a,o){if(Ro(a,t))return a;if(Du.current!==null)return e=Kg(e,a,o),Ro(e,t)||(Ga=!0),e;if((cr&42)===0||(cr&1073741824)!==0&&(ft&261930)===0)return Ga=!0,e.memoizedState=a;return e=YS(),Ke.lanes|=e,ss|=e,t}function Op(){j.asyncTransitions--}function Yx(e,t,a,o,l){var r=Xt.p;Xt.p=r!==0&&r<Gn?r:Gn;var u=j.T,f={};f._updatedFibers=new Set,j.T=f,oy(e,!1,t,a);try{var v=l(),S=j.S;if(S!==null&&S(f,v),v!==null&&typeof v==="object"&&typeof v.then==="function"){j.asyncTransitions++,v.then(Op,Op);var N=yR(v,o);qd(e,t,N,Jo(e))}else qd(e,t,o,Jo(e))}catch(q){qd(e,t,{then:function(){},status:"rejected",reason:q},Jo(e))}finally{Xt.p=r,u!==null&&f.types!==null&&(u.types!==null&&u.types!==f.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),u.types=f.types),j.T=u,u===null&&f._updatedFibers&&(e=f._updatedFibers.size,f._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Jg(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 l=Qx(e).queue;hR(e),Yx(e,l,t,Ci,a===null?b:function(){return Wx(e),a(o)})}function Qx(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ci,baseState:Ci,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:Ci},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wx(e){j.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Qx(e);t.next===null&&(t=e.alternate.memoizedState),qd(e,t.next.queue,{},Jo(e))}function ey(){var e=Hg(!1);return e=Yx.bind(null,Ke,e.queue,!0,!1),Lo().memoizedState=e,[!1,e]}function Zx(){var e=Zi(_n)[0],t=Wt().memoizedState;return[typeof e==="boolean"?e:Nd(e),t]}function Kx(){var e=Od(_n)[0],t=Wt().memoizedState;return[typeof e==="boolean"?e:Nd(e),t]}function Zs(){return va(Vc)}function ty(){var e=Lo(),t=aa.identifierPrefix;if(Tt){var a=rr,o=lr;a=(o&~(1<<32-wo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=qm++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=tD++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function ay(){return Lo().memoizedState=CR.bind(null,Ke)}function CR(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Jo(a),l=Br(o),r=zr(a,l,o);r!==null&&(ul(o,"refresh()",e),La(r,a,o),Ad(r,a,o)),e=kg(),t!==null&&t!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function LR(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=Jo(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};qp(e)?eS(t,l):(l=dg(e,t,l,o),l!==null&&(ul(o,"dispatch()",e),La(l,e,o),tS(l,t,o)))}function Jx(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=Jo(e),qd(e,t,a,o)&&ul(o,"setState()",e)}function qd(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(qp(e))eS(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null)){var u=j.H;j.H=jn;try{var f=t.lastRenderedState,v=r(f,a);if(l.hasEagerState=!0,l.eagerState=v,Ro(v,f))return sp(e,t,l,0),aa===null&&rp(),!1}catch(S){}finally{j.H=u}}if(a=dg(e,t,l,o),a!==null)return La(a,e,o),tS(a,t,o),!0}return!1}function oy(e,t,a,o){if(j.T===null&&si===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:Ny(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},qp(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=dg(e,a,o,2),t!==null&&(ul(2,"setOptimistic()",e),La(t,e,2))}function qp(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function eS(e,t){Ou=Om=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function tS(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,zs(e,a)}}function ny(e){if(e!==null&&typeof e!=="function"){var t=String(e);KC.has(t)||(KC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function ly(e,t,a,o){var l=e.memoizedState,r=a(o,l);if(e.mode&xo){$t(!0);try{r=a(o,l)}finally{$t(!1)}}r===void 0&&(t=J(t)||"Component",YC.has(t)||(YC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=r===null||r===void 0?l:bt({},l,r),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function aS(e,t,a,o,l,r,u){var f=e.stateNode;if(typeof f.shouldComponentUpdate==="function"){if(a=f.shouldComponentUpdate(o,r,u),e.mode&xo){$t(!0);try{a=f.shouldComponentUpdate(o,r,u)}finally{$t(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",J(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Cd(a,o)||!Cd(l,r):!0}function oS(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=V(e)||"Component",GC.has(e)||(GC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Jv.enqueueReplaceState(t,t.state,null))}function Ks(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=bt({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function nS(e){Av(e),console.warn(`%s
116
116
 
117
117
  %s
118
- `,Ju?"An error occurred in the <"+Ju+"> 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 Y0(e){var t=Ju?"The above error occurred in the <"+Ju+"> 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, "+((Xy||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
118
+ `,qu?"An error occurred in the <"+qu+"> 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 lS(e){var t=qu?"The above error occurred in the <"+qu+"> 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, "+((eb||"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,L1+" "+e[0],k1,rm+o+rm,w1):e.splice(0,0,L1,k1,rm+o+rm,w1),e.unshift(console),o=pA.apply(console.error,e),o()}else console.error(`%o
124
+ `,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,OL+" "+e[0],qL,rh+o+rh,BL):e.splice(0,0,OL,qL,rh+o+rh,BL),e.unshift(console),o=kD.apply(console.error,e),o()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,e,t,a)}function Q0(e){Ly(e)}function Bf(e,t){try{Ju=t.source?F(t.source):null,Xy=null;var a=t.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function Z0(e,t,a){try{Ju=a.source?F(a.source):null,Xy=F(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 Jh(e,t,a){return a=lr(a),a.tag=_y,a.payload={element:null},a.callback=function(){j(t.source,Bf,e,t)},a}function eg(e){return e=lr(e),e.tag=_y,e}function tg(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var l=o.value;e.payload=function(){return n(l)},e.callback=function(){Gv(a),j(o.source,Z0,t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch==="function"&&(e.callback=function(){Gv(a),j(o.source,Z0,t,a,o),typeof n!=="function"&&(Er===null?Er=new Set([this]):Er.add(this)),FM(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.",F(a)||"Unknown")})}function gI(e,t,a,o,n){if(a.flags|=32768,Wn&&nc(e,n),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&pu(t,a,n,!0),gt&&(el=!0),a=Bo.current,a!==null){switch(a.tag){case 31:case 13:return Jo===null?$f():a.alternate===null&&oa===Hl&&(oa=Pp),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Dp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),Cg(e,o,n)),!1;case 22:return a.flags|=65536,o===Dp?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)),Cg(e,o,n)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return Cg(e,o,n),$f(),!1}if(gt)return el=!0,t=Bo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==My&&_i(To(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!==My&&_i(To(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=To(o,a),n=Jh(e.stateNode,o,n),Cf(e,n),oa!==Rr&&(oa=Os)),!1;var l=To(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=[l]:Zc.push(l),oa!==Rr&&(oa=Os),t===null)return!0;o=To(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Jh(a.stateNode,o,e),Cf(a,e),!1;case 1:if(t=a.type,l=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||l!==null&&typeof l.componentDidCatch==="function"&&(Er===null||!Er.has(l))))return a.flags|=65536,n&=-n,a.lanes|=n,n=eg(n),tg(n,e,a,o),Cf(a,n),!1}a=a.return}while(a!==null);return!1}function Va(e,t,a,o){t.child=e===null?xL(t,null,a,o):Ds(t,e.child,a,o)}function W0(e,t,a,o,n){a=a.render;var l=t.ref;if("ref"in o){var s={};for(var c in o)c!=="ref"&&(s[c]=o[c])}else s=o;if(ps(t),o=Th(e,t,a,s,l,n),c=Rh(),e!==null&&!ka)return Mh(e,t,n),wl(e,t,n);return gt&&c&&ih(t),t.flags|=1,Va(e,t,o,n),t.child}function K0(e,t,a,o,n){if(e===null){var l=a.type;if(typeof l==="function"&&!lh(l)&&l.defaultProps===void 0&&a.compare===null)return a=is(l),t.tag=15,t.type=a,og(t,l),J0(e,t,a,o,n);return e=rh(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(l=e.child,!ig(e,n)){var s=l.memoizedProps;if(a=a.compare,a=a!==null?a:Pi,a(s,o)&&e.ref===t.ref)return wl(e,t,n)}return t.flags|=1,e=xl(l,o),e.ref=t.ref,e.return=t,t.child=e}function J0(e,t,a,o,n){if(e!==null){var l=e.memoizedProps;if(Pi(l,o)&&e.ref===t.ref&&t.type===e.type)if(ka=!1,t.pendingProps=o=l,ig(e,n))(e.flags&131072)!==0&&(ka=!0);else return t.lanes=e.lanes,wl(e,t,n)}return ag(e,t,a,o,n)}function eS(e,t,a,o){var n=o.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:wc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(l=l!==null?l.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&~l}else o=0,t.child=null;return tS(e,t,l,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gf(t,l!==null?l.cachePool:null),l!==null?g0(t,l):Ch(t),y0(t);else return o=t.lanes=536870912,tS(e,t,l!==null?l.baseLanes|a:a,a,o)}else l!==null?(gf(t,l.cachePool),g0(t,l),ur(t),t.memoizedState=null):(e!==null&&gf(t,null),Ch(t),ur(t));return Va(e,t,n,a),t.child}function Wi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:wc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tS(e,t,a,o,n){var l=bh();return l=l===null?null:{parent:xa._currentValue,pool:l},t.memoizedState={baseLanes:a,cachePool:l},e!==null&&gf(t,null),Ch(t),y0(t),e!==null&&pu(e,t,o,!0),t.childLanes=n,null}function Uf(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 rS(e){Av(e)}function Bp(e,t){try{qu=t.source?V(t.source):null,eb=null;var a=t.value;if(j.actQueue!==null)j.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function sS(e,t,a){try{qu=a.source?V(a.source):null,eb=V(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function ry(e,t,a){return a=Br(a),a.tag=Xv,a.payload={element:null},a.callback=function(){Y(t.source,Bp,e,t)},a}function sy(e){return e=Br(e),e.tag=Xv,e}function iy(e,t,a,o){var l=a.type.getDerivedStateFromError;if(typeof l==="function"){var r=o.value;e.payload=function(){return l(r)},e.callback=function(){ex(a),Y(o.source,sS,t,a,o)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch==="function"&&(e.callback=function(){ex(a),Y(o.source,sS,t,a,o),typeof l!=="function"&&(us===null?us=new Set([this]):us.add(this)),ZA(this,o),typeof l==="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 wR(e,t,a,o,l){if(a.flags|=32768,Tl&&Gd(e,l),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&Qi(t,a,l,!0),Tt&&(Ml=!0),a=ln.current,a!==null){switch(a.tag){case 31:case 13:return In===null?$p():a.alternate===null&&ka===hr&&(ka=Um),a.flags&=-257,a.flags|=65536,a.lanes=l,o===Dm?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),My(e,o,l)),!1;case 22:return a.flags|=65536,o===Dm?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)),My(e,o,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return My(e,o,l),$p(),!1}if(Tt)return Ml=!0,t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,o!==Bv&&wd(Qo(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!==Bv&&wd(Qo(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,l&=-l,e.lanes|=l,o=Qo(o,a),l=ry(e.stateNode,o,l),kp(e,l),ka!==ls&&(ka=pi)),!1;var r=Qo(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(qc===null?qc=[r]:qc.push(r),ka!==ls&&(ka=pi),t===null)return!0;o=Qo(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=ry(a.stateNode,o,e),kp(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||r!==null&&typeof r.componentDidCatch==="function"&&(us===null||!us.has(r))))return a.flags|=65536,l&=-l,a.lanes|=l,l=sy(l),iy(l,e,a,o),kp(a,l),!1}a=a.return}while(a!==null);return!1}function uo(e,t,a,o){t.child=e===null?EC(t,null,a,o):ci(t,e.child,a,o)}function iS(e,t,a,o,l){a=a.render;var r=t.ref;if("ref"in o){var u={};for(var f in o)f!=="ref"&&(u[f]=o[f])}else u=o;if(Xs(t),o=Ng(e,t,a,u,r,l),f=qg(),e!==null&&!Ga)return Bg(e,t,l),Jl(e,t,l);return Tt&&f&&gg(t),t.flags|=1,uo(e,t,o,l),t.child}function uS(e,t,a,o,l){if(e===null){var r=a.type;if(typeof r==="function"&&!fg(r)&&r.defaultProps===void 0&&a.compare===null)return a=Gs(r),t.tag=15,t.type=a,dy(t,r),dS(e,t,a,o,l);return e=pg(a.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e}if(r=e.child,!gy(e,l)){var u=r.memoizedProps;if(a=a.compare,a=a!==null?a:Cd,a(u,o)&&e.ref===t.ref)return Jl(e,t,l)}return t.flags|=1,e=Ql(r,o),e.ref=t.ref,e.return=t,t.child=e}function dS(e,t,a,o,l){if(e!==null){var r=e.memoizedProps;if(Cd(r,o)&&e.ref===t.ref&&t.type===e.type)if(Ga=!1,t.pendingProps=o=r,gy(e,l))(e.flags&131072)!==0&&(Ga=!0);else return t.lanes=e.lanes,Jl(e,t,l)}return uy(e,t,a,o,l)}function cS(e,t,a,o){var l=o.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:dc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){o=t.child=e.child;for(l=0;o!==null;)l=l|o.lanes|o.childLanes,o=o.sibling;o=l&~r}else o=0,t.child=null;return fS(e,t,r,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gp(t,r!==null?r.cachePool:null),r!==null?Ix(t,r):Mg(t),Rx(t);else return o=t.lanes=536870912,fS(e,t,r!==null?r.baseLanes|a:a,a,o)}else r!==null?(gp(t,r.cachePool),Ix(t,r),Pr(t),t.memoizedState=null):(e!==null&&gp(t,null),Mg(t),Pr(t));return uo(e,t,l,a),t.child}function Bd(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:dc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fS(e,t,a,o,l){var r=wg();return r=r===null?null:{parent:_a._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&gp(t,null),Mg(t),Rx(t),e!==null&&Qi(e,t,o,!0),t.childLanes=l,null}function zp(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=zf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function aS(e,t,a){return Ds(t,e.child,null,a),e=Uf(t,t.pendingProps),e.flags|=2,Mo(t),t.memoizedState=null,e}function yI(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(gt){if(o.mode==="hidden")return e=Uf(t,o),t.lanes=536870912,Wi(null,e);if(kh(t),(e=Zt)?(a=Ix(e,Wo),a=a!==null&&a.data===zs?a:null,a!==null&&(o={dehydrated:a,treeContext:Yv(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=jv(a),o.return=t,t.child=o,Xa=t,Zt=null)):a=null,a===null)throw cf(t,e),ar(t);return t.lanes=536870912,null}return Uf(t,o)}var l=e.memoizedState;if(l!==null){var s=l.dehydrated;if(kh(t),n)if(t.flags&256)t.flags&=-257,t=aS(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Zv(),(a&536870912)!==0&&Vf(t),ka||pu(e,t,a,!1),n=(a&e.childLanes)!==0,ka||n){if(o=Vt,o!==null&&(s=ns(o,a),s!==0&&s!==l.retryLane))throw l.retryLane=s,Wa(e,s),ra(o,e,s),Yy;$f(),t=aS(e,t,a)}else e=l.treeContext,Zt=Do(s.nextSibling),Xa=t,gt=!0,xr=null,el=!1,No=null,Wo=!1,e!==null&&Qv(t,e),t=Uf(t,o),t.flags|=4096;return t}return l=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Vf(t),e=xl(l,o),e.ref=t.ref,t.child=e,e.return=t,e}function Pf(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 ag(e,t,a,o,n){if(a.prototype&&typeof a.prototype.render==="function"){var l=Q(a)||"Unknown";FL[l]||(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.",l,l),FL[l]=!0)}if(t.mode&Ja&&hn.recordLegacyContextWarning(t,null),e===null&&(og(t,t.type),a.contextTypes&&(l=Q(a)||"Unknown",VL[l]||(VL[l]=!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)",l)))),ps(t),a=Th(e,t,a,o,void 0,n),o=Rh(),e!==null&&!ka)return Mh(e,t,n),wl(e,t,n);return gt&&o&&ih(t),t.flags|=1,Va(e,t,a,n),t.child}function oS(e,t,a,o,n,l){if(ps(t),zl=-1,Gc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Ih(t,o,a,n),b0(e,t),o=Rh(),e!==null&&!ka)return Mh(e,t,l),wl(e,t,l);return gt&&o&&ih(t),t.flags|=1,Va(e,t,a,l),t.child}function nS(e,t,a,o,n){switch(m(t)){case!1:var l=t.stateNode,s=new t.type(t.memoizedProps,l.context).state;l.updater.enqueueSetState(l,s,null);break;case!0:t.flags|=128,t.flags|=65536,l=Error("Simulated error coming from DevTools");var c=n&-n;if(t.lanes|=c,s=Vt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c=eg(c),tg(c,s,t,To(l,t)),Cf(t,c)}if(ps(t),t.stateNode===null){if(s=Sr,l=a.contextType,"contextType"in a&&l!==null&&(l===void 0||l.$$typeof!==Yn)&&!_L.has(a)&&(_L.add(a),c=l===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 l!=="object"?" However, it is set to a "+typeof l+".":l.$$typeof===Qg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(l).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Q(a)||"Component",c)),typeof l==="object"&&l!==null&&(s=ea(l)),l=new a(o,s),t.mode&Ja){jt(!0);try{l=new a(o,s)}finally{jt(!1)}}if(s=t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=jy,t.stateNode=l,l._reactInternals=t,l._reactInternalInstance=DL,typeof a.getDerivedStateFromProps==="function"&&s===null&&(s=Q(a)||"Component",OL.has(s)||(OL.add(s),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.",s,l.state===null?"null":"undefined",s))),typeof a.getDerivedStateFromProps==="function"||typeof l.getSnapshotBeforeUpdate==="function"){var p=c=s=null;if(typeof l.componentWillMount==="function"&&l.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof l.UNSAFE_componentWillMount==="function"&&(s="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps==="function"&&l.componentWillReceiveProps.__suppressDeprecationWarning!==!0?c="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps==="function"&&(c="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate==="function"&&l.componentWillUpdate.__suppressDeprecationWarning!==!0?p="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate==="function"&&(p="UNSAFE_componentWillUpdate"),s!==null||c!==null||p!==null){l=Q(a)||"Component";var g=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";NL.has(l)||(NL.add(l),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=Pp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pS(e,t,a){return ci(t,e.child,null,a),e=zp(t,t.pendingProps),e.flags|=2,Ko(t),t.memoizedState=null,e}function TR(e,t,a){var o=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Tt){if(o.mode==="hidden")return e=zp(t,o),t.lanes=536870912,Bd(null,e);if(Dg(t),(e=ca)?(a=U1(e,wn),a=a!==null&&a.data===bi?a:null,a!==null&&(o={dehydrated:a,treeContext:lx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=ox(a),o.return=t,t.child=o,po=t,ca=null)):a=null,a===null)throw dp(t,e),Nr(t);return t.lanes=536870912,null}return zp(t,o)}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(Dg(t),l)if(t.flags&256)t.flags&=-257,t=pS(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(sx(),(a&536870912)!==0&&Vp(t),Ga||Qi(e,t,a,!1),l=(a&e.childLanes)!==0,Ga||l){if(o=aa,o!==null&&(u=Us(o,a),u!==0&&u!==r.retryLane))throw r.retryLane=u,vo(e,u),La(o,e,u),tb;$p(),t=pS(e,t,a)}else e=r.treeContext,ca=en(u.nextSibling),po=t,Tt=!0,Kr=null,Ml=!1,nn=null,wn=!1,e!==null&&rx(t,e),t=zp(t,o),t.flags|=4096;return t}return r=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Vp(t),e=Ql(r,o),e.ref=t.ref,t.child=e,e.return=t,e}function Up(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 uy(e,t,a,o,l){if(a.prototype&&typeof a.prototype.render==="function"){var r=J(a)||"Unknown";JC[r]||(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.",r,r),JC[r]=!0)}if(t.mode&xo&&$n.recordLegacyContextWarning(t,null),e===null&&(dy(t,t.type),a.contextTypes&&(r=J(a)||"Unknown",tL[r]||(tL[r]=!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)",r)))),Xs(t),a=Ng(e,t,a,o,void 0,l),o=qg(),e!==null&&!Ga)return Bg(e,t,l),Jl(e,t,l);return Tt&&o&&gg(t),t.flags|=1,uo(e,t,a,l),t.child}function mS(e,t,a,o,l,r){if(Xs(t),pr=-1,Rc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Og(t,o,a,l),Mx(e,t),o=qg(),e!==null&&!Ga)return Bg(e,t,r),Jl(e,t,r);return Tt&&o&&gg(t),t.flags|=1,uo(e,t,a,r),t.child}function hS(e,t,a,o,l){switch(h(t)){case!1:var r=t.stateNode,u=new t.type(t.memoizedProps,r.context).state;r.updater.enqueueSetState(r,u,null);break;case!0:t.flags|=128,t.flags|=65536,r=Error("Simulated error coming from DevTools");var f=l&-l;if(t.lanes|=f,u=aa,u===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f=sy(f),iy(f,u,t,Qo(r,t)),kp(t,f)}if(Xs(t),t.stateNode===null){if(u=Zr,r=a.contextType,"contextType"in a&&r!==null&&(r===void 0||r.$$typeof!==Cl)&&!ZC.has(a)&&(ZC.add(a),f=r===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 r!=="object"?" However, it is set to a "+typeof r+".":r.$$typeof===av?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",J(a)||"Component",f)),typeof r==="object"&&r!==null&&(u=va(r)),r=new a(o,u),t.mode&xo){$t(!0);try{r=new a(o,u)}finally{$t(!1)}}if(u=t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Jv,t.stateNode=r,r._reactInternals=t,r._reactInternalInstance=FC,typeof a.getDerivedStateFromProps==="function"&&u===null&&(u=J(a)||"Component",VC.has(u)||(VC.add(u),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",u,r.state===null?"null":"undefined",u))),typeof a.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"){var v=f=u=null;if(typeof r.componentWillMount==="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?u="componentWillMount":typeof r.UNSAFE_componentWillMount==="function"&&(u="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?f="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps==="function"&&(f="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate==="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?v="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate==="function"&&(v="UNSAFE_componentWillUpdate"),u!==null||f!==null||v!==null){r=J(a)||"Component";var S=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";jC.has(r)||(jC.add(r),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
135
135
  The above lifecycles should be removed. Learn more about this warning here:
136
- https://react.dev/link/unsafe-component-lifecycles`,l,g,s!==null?`
137
- `+s:"",c!==null?`
138
- `+c:"",p!==null?`
139
- `+p:""))}}l=t.stateNode,s=Q(a)||"Component",l.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?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!l.getInitialState||l.getInitialState.isReactClassApproved||l.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?",s),l.getDefaultProps&&!l.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.",s),l.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!zL.has(a)&&(zL.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)",s)),a.contextTypes&&!PL.has(a)&&(PL.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)",s)),typeof l.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.",s),a.prototype&&a.prototype.isPureReactComponent&&typeof l.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.",Q(a)||"A pure component"),typeof l.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof l.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().",s),typeof l.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof l.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),c=l.props!==o,l.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),l.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.",s,s),typeof l.getSnapshotBeforeUpdate!=="function"||typeof l.componentDidUpdate==="function"||qL.has(a)||(qL.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Q(a))),typeof l.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof l.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),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.",s),(c=l.state)&&(typeof c!=="object"||Aa(c))&&console.error("%s.state: must be set to an object or null",s),typeof l.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),l=t.stateNode,l.props=o,l.state=t.memoizedState,l.refs={},Sh(t),s=a.contextType,l.context=typeof s==="object"&&s!==null?ea(s):Sr,l.state===o&&(s=Q(a)||"Component",BL.has(s)||(BL.add(s),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.",s))),t.mode&Ja&&hn.recordLegacyContextWarning(t,l),hn.recordUnsafeLifecycleWarnings(t,l),l.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s==="function"&&(Kh(t,a,s,o),l.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof l.getSnapshotBeforeUpdate==="function"||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(s=l.state,typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount(),s!==l.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",F(t)||"Component"),jy.enqueueReplaceState(l,l.state,null)),Xi(t,o,l,n),ji(),l.state=t.memoizedState),typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==He&&(t.flags|=134217728),l=!0}else if(e===null){l=t.stateNode;var E=t.memoizedProps;c=bs(a,E),l.props=c;var O=l.context;p=a.contextType,s=Sr,typeof p==="object"&&p!==null&&(s=ea(p)),g=a.getDerivedStateFromProps,p=typeof g==="function"||typeof l.getSnapshotBeforeUpdate==="function",E=t.pendingProps!==E,p||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(E||O!==s)&&j0(t,l,o,s),Ir=!1;var I=t.memoizedState;l.state=I,Xi(t,o,l,n),ji(),O=t.memoizedState,E||I!==O||Ir?(typeof g==="function"&&(Kh(t,a,g,o),O=t.memoizedState),(c=Ir||$0(t,a,c,o,I,O,s))?(p||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==He&&(t.flags|=134217728)):(typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==He&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=O),l.props=o,l.state=O,l.context=s,l=c):(typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==He&&(t.flags|=134217728),l=!1)}else{l=t.stateNode,xh(e,t),s=t.memoizedProps,p=bs(a,s),l.props=p,g=t.pendingProps,I=l.context,O=a.contextType,c=Sr,typeof O==="object"&&O!==null&&(c=ea(O)),E=a.getDerivedStateFromProps,(O=typeof E==="function"||typeof l.getSnapshotBeforeUpdate==="function")||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(s!==g||I!==c)&&j0(t,l,o,c),Ir=!1,I=t.memoizedState,l.state=I,Xi(t,o,l,n),ji();var P=t.memoizedState;s!==g||I!==P||Ir||e!==null&&e.dependencies!==null&&ff(e.dependencies)?(typeof E==="function"&&(Kh(t,a,E,o),P=t.memoizedState),(p=Ir||$0(t,a,p,o,I,P,c)||e!==null&&e.dependencies!==null&&ff(e.dependencies))?(O||typeof l.UNSAFE_componentWillUpdate!=="function"&&typeof l.componentWillUpdate!=="function"||(typeof l.componentWillUpdate==="function"&&l.componentWillUpdate(o,P,c),typeof l.UNSAFE_componentWillUpdate==="function"&&l.UNSAFE_componentWillUpdate(o,P,c)),typeof l.componentDidUpdate==="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=P),l.props=o,l.state=P,l.context=c,l=p):(typeof l.componentDidUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),l=!1)}if(c=l,Pf(e,t),s=(t.flags&128)!==0,c||s){if(c=t.stateNode,be(t),s&&typeof a.getDerivedStateFromError!=="function")a=null,uo=-1;else if(a=sL(c),t.mode&Ja){jt(!0);try{sL(c)}finally{jt(!1)}}t.flags|=1,e!==null&&s?(t.child=Ds(t,e.child,null,n),t.child=Ds(t,null,a,n)):Va(e,t,a,n),t.memoizedState=c.state,e=t.child}else e=wl(e,t,n);return n=t.stateNode,l&&n.props!==o&&(ei||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",F(t)||"a component"),ei=!0),e}function lS(e,t,a,o){return fs(),t.flags|=256,Va(e,t,a,o),t.child}function og(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=Q(t)||"Unknown",$L[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),$L[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Q(t)||"Unknown",GL[t]||(console.error("%s: Function components do not support contextType.",t),GL[t]=!0))}function ng(e){return{baseLanes:e,cachePool:o0()}}function lg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=So),e}function rS(e,t,a){var o,n=t.pendingProps;y(t)&&(t.flags|=128);var l=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ya.current&Hc)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(gt){if(l?sr(t):ur(t),(e=Zt)?(a=Ix(e,Wo),a=a!==null&&a.data!==zs?a:null,a!==null&&(o={dehydrated:a,treeContext:Yv(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=jv(a),o.return=t,t.child=o,Xa=t,Zt=null)):a=null,a===null)throw cf(t,e),ar(t);return Pg(a)?t.lanes=32:t.lanes=536870912,null}var c=n.children;if(n=n.fallback,l){ur(t);var p=t.mode;return c=zf({mode:"hidden",children:c},p),n=cs(n,p,a,null),c.return=t,n.return=t,c.sibling=n,t.child=c,n=t.child,n.memoizedState=ng(a),n.childLanes=lg(e,o,a),t.memoizedState=Qy,Wi(null,n)}return sr(t),rg(t,c)}var g=e.memoizedState;if(g!==null){var E=g.dehydrated;if(E!==null){if(s)t.flags&256?(sr(t),t.flags&=-257,t=sg(e,t,a)):t.memoizedState!==null?(ur(t),t.child=e.child,t.flags|=128,t=null):(ur(t),c=n.fallback,p=t.mode,n=zf({mode:"visible",children:n.children},p),c=cs(c,p,a,null),c.flags|=2,n.return=t,c.return=t,n.sibling=c,t.child=n,Ds(t,e.child,null,a),n=t.child,n.memoizedState=ng(a),n.childLanes=lg(e,o,a),t.memoizedState=Qy,t=Wi(null,n));else if(sr(t),Zv(),(a&536870912)!==0&&Vf(t),Pg(E)){if(o=E.nextSibling&&E.nextSibling.dataset,o){c=o.dgst;var O=o.msg;p=o.stck;var I=o.cstck}l=O,o=c,n=p,E=I,c=l,p=E,c=c?Error(c):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),c.stack=n||"",c.digest=o,o=p===void 0?null:p,n={value:c,source:null,stack:o},typeof o==="string"&&Ry.set(c,n),_i(n),t=sg(e,t,a)}else if(ka||pu(e,t,a,!1),o=(a&e.childLanes)!==0,ka||o){if(o=Vt,o!==null&&(n=ns(o,a),n!==0&&n!==g.retryLane))throw g.retryLane=n,Wa(e,n),ra(o,e,n),Yy;Ug(E)||$f(),t=sg(e,t,a)}else Ug(E)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Zt=Do(E.nextSibling),Xa=t,gt=!0,xr=null,el=!1,No=null,Wo=!1,e!==null&&Qv(t,e),t=rg(t,n.children),t.flags|=4096);return t}}if(l)return ur(t),c=n.fallback,p=t.mode,I=e.child,E=I.sibling,n=xl(I,{mode:"hidden",children:n.children}),n.subtreeFlags=I.subtreeFlags&65011712,E!==null?c=xl(E,c):(c=cs(c,p,a,null),c.flags|=2),c.return=t,n.return=t,n.sibling=c,t.child=n,Wi(null,n),n=t.child,c=e.child.memoizedState,c===null?c=ng(a):(p=c.cachePool,p!==null?(I=xa._currentValue,p=p.parent!==I?{parent:I,pool:I}:p):p=o0(),c={baseLanes:c.baseLanes|a,cachePool:p}),n.memoizedState=c,n.childLanes=lg(e,o,a),t.memoizedState=Qy,Wi(e.child,n);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Vf(t),sr(t),a=e.child,e=a.sibling,a=xl(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 rg(e,t){return t=zf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function zf(e,t){return e=k(22,e,null,t),e.lanes=0,e}function sg(e,t,a){return Ds(t,e.child,null,a),e=rg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sS(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ph(e.return,t,a)}function ug(e,t,a,o,n,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=n,s.treeForkCount=l)}function uS(e,t,a){var o=t.pendingProps,n=o.revealOrder,l=o.tail,s=o.children,c=ya.current;if((o=(c&Hc)!==0)?(c=c&Zu|Hc,t.flags|=128):c&=Zu,xe(ya,c,t),c=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!jL[c])if(jL[c]=!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(c=l==null?"null":l,!Up[c])if(l==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")Up[c]=!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 l!=="visible"&&l!=="collapsed"&&l!=="hidden"?(Up[c]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',l)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(Up[c]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',l));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Aa(s)){for(c=0;c<s.length;c++)if(!p0(s[c],c))break e}else if(c=oe(s),typeof c==="function"){if(c=c.call(s))for(var p=c.next(),g=0;!p.done;p=c.next()){if(!p0(p.value,g))break e;g++}}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(Va(e,t,s,a),gt?(tr(),s=Tc):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sS(e,a,t);else if(e.tag===19)sS(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&&Lf(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),ug(t,!1,n,a,l,s);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&Lf(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}ug(t,!0,a,null,l,s);break;case"together":ug(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function wl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),uo=-1,Ar|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(pu(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=xl(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=xl(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ig(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&ff(e)?!0:!1}function bI(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),or(t,xa,e.memoizedState.cache),fs();break;case 27:case 5:We(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:or(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,kh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return sr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return rS(e,t,a);return sr(t),e=wl(e,t,a),e!==null?e.sibling:null}sr(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(pu(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return uS(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),xe(ya,ya.current,t),o)break;else return null;case 22:return t.lanes=0,eS(e,t,a,t.pendingProps);case 24:or(t,xa,e.memoizedState.cache)}return wl(e,t,a)}function cg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=rh(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var 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)ka=!0;else{if(!ig(e,a)&&(t.flags&128)===0)return ka=!1,bI(e,t,a);ka=(e.flags&131072)!==0?!0:!1}else{if(ka=!1,o=gt)tr(),o=(t.flags&1048576)!==0;o&&(o=t.index,tr(),Xv(t,Tc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=nr(t.elementType),t.type=e,typeof e==="function")lh(e)?(o=bs(e,o),t.tag=1,t.type=e=is(e),t=nS(null,t,e,o,a)):(t.tag=0,og(t,e),t.type=e=is(e),t=ag(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===pc){t.tag=11,t.type=e=nh(e),t=W0(null,t,e,o,a);break e}else if(n===lp){t.tag=14,t=K0(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Eo&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Q(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 ag(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=bs(o,t.pendingProps),nS(e,t,o,n,a);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var l=t.memoizedState;n=l.element,xh(e,t),Xi(t,o,null,a);var s=t.memoizedState;if(o=s.cache,or(t,xa,o),o!==l.cache&&mh(t,[xa],a,!0),ji(),o=s.element,l.isDehydrated)if(l={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=lS(e,t,o,a);break e}else if(o!==n){n=To(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),_i(n),t=lS(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Zt=Do(e.firstChild),Xa=t,gt=!0,xr=null,el=!1,No=null,Wo=!0,a=xL(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(fs(),o===n){t=wl(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Pf(e,t),e===null?(a=Ox(t.type,null,t.pendingProps,null))?t.memoizedState=a:gt||(a=t.type,e=t.pendingProps,o=we(mr.current),o=Qf(o).createElement(a),o[ja]=t,o[lo]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=Ox(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return We(t),e===null&&gt&&(o=we(mr.current),n=Ce(),o=t.stateNode=Dx(t.type,t.pendingProps,o,n,!1),el||(n=vx(o,t.type,t.pendingProps,n),n!==null&&(ds(t,0).serverProps=n)),Xa=t,Wo=!0,n=Zt,fr(t.type)?(bb=n,Zt=Do(o.firstChild)):Zt=n),Va(e,t,t.pendingProps.children,a),Pf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&gt&&(l=Ce(),o=Zm(t.type,l.ancestorInfo),n=Zt,(s=!n)||(s=rR(n,t.type,t.pendingProps,Wo),s!==null?(t.stateNode=s,el||(l=vx(s,t.type,t.pendingProps,l),l!==null&&(ds(t,0).serverProps=l)),Xa=t,Zt=Do(s.firstChild),Wo=!1,l=!0):l=!1,s=!l),s&&(o&&cf(t,n),ar(t))),We(t),n=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Ng(n,l)?o=null:s!==null&&Ng(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=Th(e,t,cI,null,null,a),ld._currentValue=n),Pf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&gt&&(a=t.pendingProps,e=Ce(),o=e.ancestorInfo.current,a=o!=null?Jd(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Zt,(o=!e)||(o=sR(e,t.pendingProps,Wo),o!==null?(t.stateNode=o,Xa=t,Zt=null,o=!0):o=!1,o=!o),o&&(a&&cf(t,e),ar(t))),null;case 13:return rS(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ds(t,null,o,a):Va(e,t,o,a),t.child;case 11:return W0(e,t,t.type,t.pendingProps,a);case 7:return Va(e,t,t.pendingProps,a),t.child;case 8:return Va(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,Va(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,n=t.pendingProps,l=n.value,"value"in n||XL||(XL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),or(t,o,l),Va(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."),ps(t),n=ea(n),o=By(o,n,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return K0(e,t,t.type,t.pendingProps,a);case 15:return J0(e,t,t.type,t.pendingProps,a);case 19:return uS(e,t,a);case 31:return yI(e,t,a);case 22:return eS(e,t,a,t.pendingProps);case 24:return ps(t),o=ea(xa),e===null?(n=bh(),n===null&&(n=Vt,l=hh(),n.pooledCache=l,ms(l),l!==null&&(n.pooledCacheLanes|=a),n=l),t.memoizedState={parent:o,cache:n},Sh(t),or(t,xa,n)):((e.lanes&a)!==0&&(xh(e,t),Xi(t,null,null,a),ji()),n=e.memoizedState,l=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),or(t,xa,o)):(o=l.cache,or(t,xa,o),o!==n.cache&&mh(t,[xa],a,!0))),Va(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 Tl(e){e.flags|=4}function dg(e,t,a,o,n){if(t=(e.mode&PM)!==He)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(HS())e.flags|=8192;else throw As=Dp,Py}else e.flags&=-16777217}function iS(e,t){if(t.type!=="stylesheet"||(t.state.loading&an)!==Fs)e.flags&=-16777217;else if(e.flags|=16777216,!Px(t))if(HS())e.flags|=8192;else throw As=Dp,Py}function _f(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?su():536870912,e.lanes|=t,Bs|=t)}function Ki(e,t){if(!gt)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 Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&rt)!==He){for(var{selfBaseDuration:n,child:l}=e;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,n+=l.treeBaseDuration,l=l.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&rt)!==He){n=e.actualDuration,l=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,n+=s.actualDuration,l+=s.treeBaseDuration,s=s.sibling;e.actualDuration=n,e.treeBaseDuration=l}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 vI(e,t,a){var o=t.pendingProps;switch(ch(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return Xt(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ll(xa,t),me(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)fu(t)?(fh(),Tl(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,dh());return Xt(t),null;case 26:var{type:n,memoizedState:l}=t;return e===null?(Tl(t),l!==null?(Xt(t),iS(t,l)):(Xt(t),dg(t,n,null,o,a))):l?l!==e.memoizedState?(Tl(t),Xt(t),iS(t,l)):(Xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&Tl(t),Xt(t),dg(t,n,e,o,a)),null;case 27:if(bt(t),a=we(mr.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Tl(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 Xt(t),null}e=Ce(),fu(t)?Wv(t,e):(e=Dx(n,o,a,e,!0),t.stateNode=e,Tl(t))}return Xt(t),null;case 5:if(bt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Tl(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 Xt(t),null}var s=Ce();if(fu(t))Wv(t,s);else{switch(l=we(mr.current),Zm(n,s.ancestorInfo),s=s.context,l=Qf(l),s){case ui:l=l.createElementNS(Eu,n);break;case om:l=l.createElementNS(fp,n);break;default:switch(n){case"svg":l=l.createElementNS(Eu,n);break;case"math":l=l.createElementNS(fp,n);break;case"script":l=l.createElement("div"),l.innerHTML="<script></script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is==="string"?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is==="string"?l.createElement(n,{is:o.is}):l.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(l)!=="[object HTMLUnknownElement]"||fn.call(y1,n)||(y1[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)))}}l[ja]=t,l[lo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)l.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=l;e:switch($a(l,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&&Tl(t)}}return Xt(t),dg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Tl(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(mr.current),a=Ce(),fu(t)){if(e=t.stateNode,a=t.memoizedProps,n=!el,o=null,l=Xa,l!==null)switch(l.tag){case 3:n&&(n=Mx(e,a,o),n!==null&&(ds(t,0).serverProps=n));break;case 27:case 5:o=l.memoizedProps,n&&(n=Mx(e,a,o),n!==null&&(ds(t,0).serverProps=n))}e[ja]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||mx(e.nodeValue,a)?!0:!1,e||ar(t,!0)}else n=a.ancestorInfo.current,n!=null&&Jd(o,n.tag,a.ancestorInfo.implicitRootScope),e=Qf(e).createTextNode(o),e[ja]=t,t.stateNode=e}return Xt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=fu(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[ja]=t,Xt(t),(t.mode&rt)!==He&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else fh(),fs(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Xt(t),(t.mode&rt)!==He&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=dh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Mo(t),t;return Mo(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Xt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,l=fu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l[ja]=t,Xt(t),(t.mode&rt)!==He&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else fh(),fs(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,Xt(t),(t.mode&rt)!==He&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=dh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Mo(t),t;return Mo(t),null}}if(Mo(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&rt)!==He&&Gi(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),l=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_f(t,t.updateQueue),Xt(t),(t.mode&rt)!==He&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return me(t),e===null&&Rg(t.stateNode.containerInfo),Xt(t),null;case 10:return Ll(t.type,t),Xt(t),null;case 19:if(ye(ya,t),o=t.memoizedState,o===null)return Xt(t),null;if(n=(t.flags&128)!==0,l=o.rendering,l===null)if(n)Ki(o,!1);else{if(oa!==Hl||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Lf(e),l!==null){t.flags|=128,Ki(o,!1),e=l.updateQueue,t.updateQueue=e,_f(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)$v(a,e),a=a.sibling;return xe(ya,ya.current&Zu|Hc,t),gt&&Cl(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Na()>Vp&&(t.flags|=128,n=!0,Ki(o,!1),t.lanes=4194304)}else{if(!n)if(e=Lf(l),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,_f(t,e),Ki(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!gt)return Xt(t),null}else 2*Na()-o.renderingStartTime>Vp&&a!==536870912&&(t.flags|=128,n=!0,Ki(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(e=o.last,e!==null?e.sibling=l:t.child=l,o.last=l)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Na(),e.sibling=null,a=ya.current,a=n?a&Zu|Hc:a&Zu,xe(ya,a,t),gt&&Cl(t,o.treeForkCount),e;return Xt(t),null;case 22:case 23:return Mo(t),Lh(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&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),a=t.updateQueue,a!==null&&_f(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&&ye(Rs,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ll(xa,t),Xt(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 SI(e,t){switch(ch(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Gi(t),t):null;case 3:return Ll(xa,t),me(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bt(t),null;case 31:if(t.memoizedState!==null){if(Mo(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Gi(t),t):null;case 13:if(Mo(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.");fs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Gi(t),t):null;case 19:return ye(ya,t),null;case 4:return me(t),null;case 10:return Ll(t.type,t),null;case 22:case 23:return Mo(t),Lh(t),e!==null&&ye(Rs,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&rt)!==He&&Gi(t),t):null;case 24:return Ll(xa,t),null;case 25:return null;default:return null}}function cS(e,t){switch(ch(t),t.tag){case 3:Ll(xa,t),me(t);break;case 26:case 27:case 5:bt(t);break;case 4:me(t);break;case 31:t.memoizedState!==null&&Mo(t);break;case 13:Mo(t);break;case 19:ye(ya,t);break;case 10:Ll(t.type,t);break;case 22:case 23:Mo(t),Lh(t),e!==null&&ye(Rs,t);break;case 24:Ll(xa,t)}}function Hn(e){return(e.mode&rt)!==He}function dS(e,t){Hn(e)?(_n(),Ji(t,e),zn()):Ji(t,e)}function fg(e,t,a){Hn(e)?(_n(),bu(a,e,t),zn()):bu(a,e,t)}function Ji(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&io)!==Op&&(li=!0),o=j(t,GM,a),(e&io)!==Op&&(li=!1),o!==void 0&&typeof o!=="function")){var l=void 0;l=(a.tag&Uo)!==0?"useLayoutEffect":(a.tag&io)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
136
+ https://react.dev/link/unsafe-component-lifecycles`,r,S,u!==null?`
137
+ `+u:"",f!==null?`
138
+ `+f:"",v!==null?`
139
+ `+v:""))}}r=t.stateNode,u=J(a)||"Component",r.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",u):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",u)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",u),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",u),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",u),a.childContextTypes&&!WC.has(a)&&(WC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",u)),a.contextTypes&&!QC.has(a)&&(QC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",u)),typeof r.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",u),a.prototype&&a.prototype.isPureReactComponent&&typeof r.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.",J(a)||"A pure component"),typeof r.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",u),typeof r.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",u),typeof r.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",u),typeof r.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",u),f=r.props!==o,r.props!==void 0&&f&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",u),r.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",u,u),typeof r.getSnapshotBeforeUpdate!=="function"||typeof r.componentDidUpdate==="function"||$C.has(a)||($C.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",J(a))),typeof r.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof r.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",u),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",u),(f=r.state)&&(typeof f!=="object"||Ya(f))&&console.error("%s.state: must be set to an object or null",u),typeof r.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",u),r=t.stateNode,r.props=o,r.state=t.memoizedState,r.refs={},Ig(t),u=a.contextType,r.context=typeof u==="object"&&u!==null?va(u):Zr,r.state===o&&(u=J(a)||"Component",XC.has(u)||(XC.add(u),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",u))),t.mode&xo&&$n.recordLegacyContextWarning(t,r),$n.recordUnsafeLifecycleWarnings(t,r),r.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u==="function"&&(ly(t,a,u,o),r.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(u=r.state,typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount(),u!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",V(t)||"Component"),Jv.enqueueReplaceState(r,r.state,null)),Ed(t,o,r,l),Dd(),r.state=t.memoizedState),typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vn)!==Ye&&(t.flags|=134217728),r=!0}else if(e===null){r=t.stateNode;var N=t.memoizedProps;f=Ks(a,N),r.props=f;var q=r.context;v=a.contextType,u=Zr,typeof v==="object"&&v!==null&&(u=va(v)),S=a.getDerivedStateFromProps,v=typeof S==="function"||typeof r.getSnapshotBeforeUpdate==="function",N=t.pendingProps!==N,v||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(N||q!==u)&&oS(t,r,o,u),ns=!1;var A=t.memoizedState;r.state=A,Ed(t,o,r,l),Dd(),q=t.memoizedState,N||A!==q||ns?(typeof S==="function"&&(ly(t,a,S,o),q=t.memoizedState),(f=ns||aS(t,a,f,o,A,q,u))?(v||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vn)!==Ye&&(t.flags|=134217728)):(typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vn)!==Ye&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=q),r.props=o,r.state=q,r.context=u,r=f):(typeof r.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&Vn)!==Ye&&(t.flags|=134217728),r=!1)}else{r=t.stateNode,Rg(e,t),u=t.memoizedProps,v=Ks(a,u),r.props=v,S=t.pendingProps,A=r.context,q=a.contextType,f=Zr,typeof q==="object"&&q!==null&&(f=va(q)),N=a.getDerivedStateFromProps,(q=typeof N==="function"||typeof r.getSnapshotBeforeUpdate==="function")||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(u!==S||A!==f)&&oS(t,r,o,f),ns=!1,A=t.memoizedState,r.state=A,Ed(t,o,r,l),Dd();var _=t.memoizedState;u!==S||A!==_||ns||e!==null&&e.dependencies!==null&&fp(e.dependencies)?(typeof N==="function"&&(ly(t,a,N,o),_=t.memoizedState),(v=ns||aS(t,a,v,o,A,_,f)||e!==null&&e.dependencies!==null&&fp(e.dependencies))?(q||typeof r.UNSAFE_componentWillUpdate!=="function"&&typeof r.componentWillUpdate!=="function"||(typeof r.componentWillUpdate==="function"&&r.componentWillUpdate(o,_,f),typeof r.UNSAFE_componentWillUpdate==="function"&&r.UNSAFE_componentWillUpdate(o,_,f)),typeof r.componentDidUpdate==="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!=="function"||u===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||u===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=_),r.props=o,r.state=_,r.context=f,r=v):(typeof r.componentDidUpdate!=="function"||u===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||u===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),r=!1)}if(f=r,Up(e,t),u=(t.flags&128)!==0,f||u){if(f=t.stateNode,Se(t),u&&typeof a.getDerivedStateFromError!=="function")a=null,Mo=-1;else if(a=vC(f),t.mode&xo){$t(!0);try{vC(f)}finally{$t(!1)}}t.flags|=1,e!==null&&u?(t.child=ci(t,e.child,null,l),t.child=ci(t,null,a,l)):uo(e,t,a,l),t.memoizedState=f.state,e=t.child}else e=Jl(e,t,l);return l=t.stateNode,r&&l.props!==o&&(Bu||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"),Bu=!0),e}function gS(e,t,a,o){return js(),t.flags|=256,uo(e,t,a,o),t.child}function dy(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=J(t)||"Unknown",aL[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),aL[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=J(t)||"Unknown",eL[t]||(console.error("%s: Function components do not support contextType.",t),eL[t]=!0))}function cy(e){return{baseLanes:e,cachePool:mx()}}function fy(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Fo),e}function yS(e,t,a){var o,l=t.pendingProps;g(t)&&(t.flags|=128);var r=!1,u=(t.flags&128)!==0;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(qa.current&Tc)!==0),o&&(r=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Tt){if(r?Ur(t):Pr(t),(e=ca)?(a=U1(e,wn),a=a!==null&&a.data!==bi?a:null,a!==null&&(o={dehydrated:a,treeContext:lx(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=ox(a),o.return=t,t.child=o,po=t,ca=null)):a=null,a===null)throw dp(t,e),Nr(t);return $y(a)?t.lanes=32:t.lanes=536870912,null}var f=l.children;if(l=l.fallback,r){Pr(t);var v=t.mode;return f=Pp({mode:"hidden",children:f},v),l=Vs(l,v,a,null),f.return=t,l.return=t,f.sibling=l,t.child=f,l=t.child,l.memoizedState=cy(a),l.childLanes=fy(e,o,a),t.memoizedState=ab,Bd(null,l)}return Ur(t),py(t,f)}var S=e.memoizedState;if(S!==null){var N=S.dehydrated;if(N!==null){if(u)t.flags&256?(Ur(t),t.flags&=-257,t=my(e,t,a)):t.memoizedState!==null?(Pr(t),t.child=e.child,t.flags|=128,t=null):(Pr(t),f=l.fallback,v=t.mode,l=Pp({mode:"visible",children:l.children},v),f=Vs(f,v,a,null),f.flags|=2,l.return=t,f.return=t,l.sibling=f,t.child=l,ci(t,e.child,null,a),l=t.child,l.memoizedState=cy(a),l.childLanes=fy(e,o,a),t.memoizedState=ab,t=Bd(null,l));else if(Ur(t),sx(),(a&536870912)!==0&&Vp(t),$y(N)){if(o=N.nextSibling&&N.nextSibling.dataset,o){f=o.dgst;var q=o.msg;v=o.stck;var A=o.cstck}r=q,o=f,l=v,N=A,f=r,v=N,f=f?Error(f):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),f.stack=l||"",f.digest=o,o=v===void 0?null:v,l={value:f,source:null,stack:o},typeof o==="string"&&qv.set(f,l),wd(l),t=my(e,t,a)}else if(Ga||Qi(e,t,a,!1),o=(a&e.childLanes)!==0,Ga||o){if(o=aa,o!==null&&(l=Us(o,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,vo(e,l),La(o,e,l),tb;Vy(N)||$p(),t=my(e,t,a)}else Vy(N)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,ca=en(N.nextSibling),po=t,Tt=!0,Kr=null,Ml=!1,nn=null,wn=!1,e!==null&&rx(t,e),t=py(t,l.children),t.flags|=4096);return t}}if(r)return Pr(t),f=l.fallback,v=t.mode,A=e.child,N=A.sibling,l=Ql(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&65011712,N!==null?f=Ql(N,f):(f=Vs(f,v,a,null),f.flags|=2),f.return=t,l.return=t,l.sibling=f,t.child=l,Bd(null,l),l=t.child,f=e.child.memoizedState,f===null?f=cy(a):(v=f.cachePool,v!==null?(A=_a._currentValue,v=v.parent!==A?{parent:A,pool:A}:v):v=mx(),f={baseLanes:f.baseLanes|a,cachePool:v}),l.memoizedState=f,l.childLanes=fy(e,o,a),t.memoizedState=ab,Bd(e.child,l);return S!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Vp(t),Ur(t),a=e.child,e=a.sibling,a=Ql(a,{mode:"visible",children:l.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=Pp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pp(e,t){return e=L(22,e,null,t),e.lanes=0,e}function my(e,t,a){return ci(t,e.child,null,a),e=py(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vS(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),xg(e.return,t,a)}function hy(e,t,a,o,l,r){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:r}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=o,u.tail=a,u.tailMode=l,u.treeForkCount=r)}function bS(e,t,a){var o=t.pendingProps,l=o.revealOrder,r=o.tail,u=o.children,f=qa.current;if((o=(f&Tc)!==0)?(f=f&Eu|Tc,t.flags|=128):f&=Eu,Oe(qa,f,t),f=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!oL[f])if(oL[f]=!0,l==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(l==="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 l==="string")switch(l.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.',l,l.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.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);if(f=r==null?"null":r,!zm[f])if(r==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")zm[f]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(zm[f]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(zm[f]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&u!==void 0&&u!==null&&u!==!1)if(Ya(u)){for(f=0;f<u.length;f++)if(!Lx(u[f],f))break e}else if(f=de(u),typeof f==="function"){if(f=f.call(u))for(var v=f.next(),S=0;!v.done;v=f.next()){if(!Lx(v.value,S))break e;S++}}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?',l);if(uo(e,t,u,a),Tt?(Er(),u=cc):u=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vS(e,a,t);else if(e.tag===19)vS(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(l){case"forwards":a=t.child;for(l=null;a!==null;)e=a.alternate,e!==null&&Cp(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),hy(t,!1,l,a,r,u);break;case"backwards":case"unstable_legacy-backwards":a=null,l=t.child;for(t.child=null;l!==null;){if(e=l.alternate,e!==null&&Cp(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}hy(t,!0,a,null,r,u);break;case"together":hy(t,!1,null,null,void 0,u);break;default:t.memoizedState=null}return t.child}function Jl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Mo=-1,ss|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Qi(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=Ql(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ql(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function gy(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&fp(e)?!0:!1}function IR(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Or(t,_a,e.memoizedState.cache),js();break;case 27:case 5:Ze(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Or(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,Dg(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return Ur(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return yS(e,t,a);return Ur(t),e=Jl(e,t,a),e!==null?e.sibling:null}Ur(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(Qi(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return bS(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Oe(qa,qa.current,t),o)break;else return null;case 22:return t.lanes=0,cS(e,t,a,t.pendingProps);case 24:Or(t,_a,e.memoizedState.cache)}return Jl(e,t,a)}function yy(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 l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.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)Ga=!0;else{if(!gy(e,a)&&(t.flags&128)===0)return Ga=!1,IR(e,t,a);Ga=(e.flags&131072)!==0?!0:!1}else{if(Ga=!1,o=Tt)Er(),o=(t.flags&1048576)!==0;o&&(o=t.index,Er(),nx(t,cc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=qr(t.elementType),t.type=e,typeof e==="function")fg(e)?(o=Ks(e,o),t.tag=1,t.type=e=Gs(e),t=hS(null,t,e,o,a)):(t.tag=0,dy(t,e),t.type=e=Gs(e),t=uy(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===Kd){t.tag=11,t.type=e=cg(e),t=iS(null,t,e,o,a);break e}else if(l===lm){t.tag=14,t=uS(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===tn&&(t=" Did you wrap a component in React.lazy() more than once?"),a=J(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 uy(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=Ks(o,t.pendingProps),hS(e,t,o,l,a);case 3:e:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var r=t.memoizedState;l=r.element,Rg(e,t),Ed(t,o,null,a);var u=t.memoizedState;if(o=u.cache,Or(t,_a,o),o!==r.cache&&Sg(t,[_a],a,!0),Dd(),o=u.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=gS(e,t,o,a);break e}else if(o!==l){l=Qo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),wd(l),t=gS(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}ca=en(e.firstChild),po=t,Tt=!0,Kr=null,Ml=!1,nn=null,wn=!0,a=EC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(js(),o===l){t=Jl(e,t,a);break e}uo(e,t,o,a)}t=t.child}return t;case 26:return Up(e,t),e===null?(a=V1(t.type,null,t.pendingProps,null))?t.memoizedState=a:Tt||(a=t.type,e=t.pendingProps,o=Le($r.current),o=Qp(o).createElement(a),o[fo]=t,o[To]=e,co(o,a,e),Be(o),t.stateNode=o):t.memoizedState=V1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ze(t),e===null&&Tt&&(o=Le($r.current),l=Me(),o=t.stateNode=F1(t.type,t.pendingProps,o,l,!1),Ml||(l=A1(o,t.type,t.pendingProps,l),l!==null&&($s(t,0).serverProps=l)),po=t,wn=!0,l=ca,Gr(t.type)?(wb=l,ca=en(o.firstChild)):ca=l),uo(e,t,t.pendingProps.children,a),Up(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Tt&&(r=Me(),o=og(t.type,r.ancestorInfo),l=ca,(u=!l)||(u=hM(l,t.type,t.pendingProps,wn),u!==null?(t.stateNode=u,Ml||(r=A1(u,t.type,t.pendingProps,r),r!==null&&($s(t,0).serverProps=r)),po=t,ca=en(u.firstChild),wn=!1,r=!0):r=!1,u=!r),u&&(o&&dp(t,l),Nr(t))),Ze(t),l=t.type,r=t.pendingProps,u=e!==null?e.memoizedProps:null,o=r.children,Fy(l,r)?o=null:u!==null&&Fy(l,u)&&(t.flags|=32),t.memoizedState!==null&&(l=Ng(e,t,bR,null,null,a),Vc._currentValue=l),Up(e,t),uo(e,t,o,a),t.child;case 6:return e===null&&Tt&&(a=t.pendingProps,e=Me(),o=e.ancestorInfo.current,a=o!=null?ep(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=ca,(o=!e)||(o=gM(e,t.pendingProps,wn),o!==null?(t.stateNode=o,po=t,ca=null,o=!0):o=!1,o=!o),o&&(a&&dp(t,e),Nr(t))),null;case 13:return yS(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ci(t,null,o,a):uo(e,t,o,a),t.child;case 11:return iS(e,t,t.type,t.pendingProps,a);case 7:return uo(e,t,t.pendingProps,a),t.child;case 8:return uo(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,uo(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,l=t.pendingProps,r=l.value,"value"in l||nL||(nL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Or(t,o,r),uo(e,t,l.children,a),t.child;case 9:return l=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."),Xs(t),l=va(l),o=Gv(o,l,void 0),t.flags|=1,uo(e,t,o,a),t.child;case 14:return uS(e,t,t.type,t.pendingProps,a);case 15:return dS(e,t,t.type,t.pendingProps,a);case 19:return bS(e,t,a);case 31:return TR(e,t,a);case 22:return cS(e,t,a,t.pendingProps);case 24:return Xs(t),o=va(_a),e===null?(l=wg(),l===null&&(l=aa,r=kg(),l.pooledCache=r,Ys(r),r!==null&&(l.pooledCacheLanes|=a),l=r),t.memoizedState={parent:o,cache:l},Ig(t),Or(t,_a,l)):((e.lanes&a)!==0&&(Rg(e,t),Ed(t,null,null,a),Dd()),l=e.memoizedState,r=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Or(t,_a,o)):(o=r.cache,Or(t,_a,o),o!==l.cache&&Sg(t,[_a],a,!0))),uo(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 er(e){e.flags|=4}function vy(e,t,a,o,l){if(t=(e.mode&XA)!==Ye)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(KS())e.flags|=8192;else throw di=Dm,$v}else e.flags&=-16777217}function xS(e,t){if(t.type!=="stylesheet"||(t.state.loading&An)!==ki)e.flags&=-16777217;else if(e.flags|=16777216,!Q1(t))if(KS())e.flags|=8192;else throw di=Dm,$v}function _p(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Gi():536870912,e.lanes|=t,gi|=t)}function zd(e,t){if(!Tt)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 na(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&dt)!==Ye){for(var{selfBaseDuration:l,child:r}=e;r!==null;)a|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,l+=r.treeBaseDuration,r=r.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&dt)!==Ye){l=e.actualDuration,r=e.selfBaseDuration;for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,l+=u.actualDuration,r+=u.treeBaseDuration,u=u.sibling;e.actualDuration=l,e.treeBaseDuration=r}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function RR(e,t,a){var o=t.pendingProps;switch(yg(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return na(t),null;case 1:return na(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Zl(_a,t),be(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)Yi(t)?(bg(),er(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,vg());return na(t),null;case 26:var{type:l,memoizedState:r}=t;return e===null?(er(t),r!==null?(na(t),xS(t,r)):(na(t),vy(t,l,null,o,a))):r?r!==e.memoizedState?(er(t),na(t),xS(t,r)):(na(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&er(t),na(t),vy(t,l,e,o,a)),null;case 27:if(pt(t),a=Le($r.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&er(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 na(t),null}e=Me(),Yi(t)?ix(t,e):(e=F1(l,o,a,e,!0),t.stateNode=e,er(t))}return na(t),null;case 5:if(pt(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&er(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 na(t),null}var u=Me();if(Yi(t))ix(t,u);else{switch(r=Le($r.current),og(l,u.ancestorInfo),u=u.context,r=Qp(r),u){case Vu:r=r.createElementNS(mu,l);break;case oh:r=r.createElementNS(fm,l);break;default:switch(l){case"svg":r=r.createElementNS(mu,l);break;case"math":r=r.createElementNS(fm,l);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof o.is==="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?r.multiple=!0:o.size&&(r.size=o.size);break;default:r=typeof o.is==="string"?r.createElement(l,{is:o.is}):r.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||Fn.call(RL,l)||(RL[l]=!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.",l)))}}r[fo]=t,r[To]=o;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)r.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=r;e:switch(co(r,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&er(t)}}return na(t),vy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&er(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=Le($r.current),a=Me(),Yi(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Ml,o=null,r=po,r!==null)switch(r.tag){case 3:l&&(l=_1(e,a,o),l!==null&&($s(t,0).serverProps=l));break;case 27:case 5:o=r.memoizedProps,l&&(l=_1(e,a,o),l!==null&&($s(t,0).serverProps=l))}e[fo]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||w1(e.nodeValue,a)?!0:!1,e||Nr(t,!0)}else l=a.ancestorInfo.current,l!=null&&ep(o,l.tag,a.ancestorInfo.implicitRootScope),e=Qp(e).createTextNode(o),e[fo]=t,t.stateNode=e}return na(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=Yi(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[fo]=t,na(t),(t.mode&dt)!==Ye&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else bg(),js(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,na(t),(t.mode&dt)!==Ye&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=vg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ko(t),t;return Ko(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return na(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,r=Yi(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[fo]=t,na(t),(t.mode&dt)!==Ye&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else bg(),js(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,na(t),(t.mode&dt)!==Ye&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=vg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Ko(t),t;return Ko(t),null}}if(Ko(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&dt)!==Ye&&Rd(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),r=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_p(t,t.updateQueue),na(t),(t.mode&dt)!==Ye&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return be(t),e===null&&qy(t.stateNode.containerInfo),na(t),null;case 10:return Zl(t.type,t),na(t),null;case 19:if(pe(qa,t),o=t.memoizedState,o===null)return na(t),null;if(l=(t.flags&128)!==0,r=o.rendering,r===null)if(l)zd(o,!1);else{if(ka!==hr||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Cp(e),r!==null){t.flags|=128,zd(o,!1),e=r.updateQueue,t.updateQueue=e,_p(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)ax(a,e),a=a.sibling;return Oe(qa,qa.current&Eu|Tc,t),Tt&&Wl(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ja()>Vm&&(t.flags|=128,l=!0,zd(o,!1),t.lanes=4194304)}else{if(!l)if(e=Cp(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,_p(t,e),zd(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!Tt)return na(t),null}else 2*Ja()-o.renderingStartTime>Vm&&a!==536870912&&(t.flags|=128,l=!0,zd(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(e=o.last,e!==null?e.sibling=r:t.child=r,o.last=r)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ja(),e.sibling=null,a=qa.current,a=l?a&Eu|Tc:a&Eu,Oe(qa,a,t),Tt&&Wl(t,o.treeForkCount),e;return na(t),null;case 22:case 23:return Ko(t),Ag(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&&(na(t),t.subtreeFlags&6&&(t.flags|=8192)):na(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&&pe(ii,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Zl(_a,t),na(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 MR(e,t){switch(yg(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&dt)!==Ye&&Rd(t),t):null;case 3:return Zl(_a,t),be(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pt(t),null;case 31:if(t.memoizedState!==null){if(Ko(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");js()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&dt)!==Ye&&Rd(t),t):null;case 13:if(Ko(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.");js()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&dt)!==Ye&&Rd(t),t):null;case 19:return pe(qa,t),null;case 4:return be(t),null;case 10:return Zl(t.type,t),null;case 22:case 23:return Ko(t),Ag(t),e!==null&&pe(ii,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&dt)!==Ye&&Rd(t),t):null;case 24:return Zl(_a,t),null;case 25:return null;default:return null}}function SS(e,t){switch(yg(t),t.tag){case 3:Zl(_a,t),be(t);break;case 26:case 27:case 5:pt(t);break;case 4:be(t);break;case 31:t.memoizedState!==null&&Ko(t);break;case 13:Ko(t);break;case 19:pe(qa,t);break;case 10:Zl(t.type,t);break;case 22:case 23:Ko(t),Ag(t),e!==null&&pe(ii,t);break;case 24:Zl(_a,t)}}function gl(e){return(e.mode&dt)!==Ye}function kS(e,t){gl(e)?(hl(),Ud(t,e),ml()):Ud(t,e)}function by(e,t,a){gl(e)?(hl(),eu(a,e,t),ml()):eu(a,e,t)}function Ud(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&Ao)!==Nm&&(Hu=!0),o=Y(t,KA,a),(e&Ao)!==Nm&&(Hu=!1),o!==void 0&&typeof o!=="function")){var r=void 0;r=(a.tag&rn)!==0?"useLayoutEffect":(a.tag&Ao)!==0?"useInsertionEffect":"useEffect";var u=void 0;u=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
141
141
 
142
- It looks like you wrote `+l+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
142
+ It looks like you wrote `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
144
- `+l+`(() => {
144
+ `+r+`(() => {
145
145
  async function fetchData() {
146
146
  // You can await here
147
147
  const response = await MyAPI.getData(someId);
@@ -150,11 +150,11 @@ It looks like you wrote `+l+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,j(t,function(c,p){console.error("%s must not return anything besides a function, which is used for clean-up.%s",c,p)},l,s)}a=a.next}while(a!==n)}}catch(c){Ot(t,t.return,c)}}function bu(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var l=n.next;o=l;do{if((o.tag&e)===e){var s=o.inst,c=s.destroy;c!==void 0&&(s.destroy=void 0,(e&io)!==Op&&(li=!0),n=t,j(n,VM,n,a,c),(e&io)!==Op&&(li=!1))}o=o.next}while(o!==l)}}catch(p){Ot(t,t.return,p)}}function fS(e,t){Hn(e)?(_n(),Ji(t,e),zn()):Ji(t,e)}function pg(e,t,a){Hn(e)?(_n(),bu(a,e,t),zn()):bu(a,e,t)}function pS(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||ei||(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.",F(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.",F(e)||"instance"));try{j(e,h0,t,a)}catch(o){Ot(e,e.return,o)}}}function xI(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function CI(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||ei||(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.",F(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.",F(e)||"instance"));try{var n=bs(e.type,a),l=j(e,xI,t,n,o);a=YL,l!==void 0||a.has(e.type)||(a.add(e.type),j(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",F(e))})),t.__reactInternalSnapshotBeforeUpdate=l}catch(s){Ot(e,e.return,s)}}function mS(e,t,a){a.props=bs(e.type,e.memoizedProps),a.state=e.memoizedState,Hn(e)?(_n(),j(e,pL,e,t,a),zn()):j(e,pL,e,t,a)}function LI(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(Hn(e))try{_n(),e.refCleanup=t(a)}finally{zn()}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().",F(e)),t.current=a}}function ec(e,t){try{j(e,LI,e)}catch(a){Ot(e,t,a)}}function Fn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Hn(e))try{_n(),j(e,o)}finally{zn(e)}else j(e,o)}catch(n){Ot(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Hn(e))try{_n(),j(e,a,null)}finally{zn(e)}else j(e,a,null)}catch(n){Ot(e,t,n)}else a.current=null}function hS(e,t,a,o){var n=e.memoizedProps,l=n.id,s=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Ip&&(t="nested-update"),typeof n==="function"&&n(l,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(l,t,o,a)}function kI(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Ip&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function gS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{j(e,YI,o,t,a,e)}catch(n){Ot(e,e.return,n)}}function mg(e,t,a){try{j(e,ZI,e.stateNode,e.type,a,t,e)}catch(o){Ot(e,e.return,o)}}function yS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function hg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yS(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&&fr(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 gg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(kx(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(kx(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=Sl));else if(o!==4&&(o===27&&fr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(gg(e,t,a),e=e.sibling;e!==null;)gg(e,t,a),e=e.sibling}function Hf(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&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hf(e,t,a),e=e.sibling;e!==null;)Hf(e,t,a),e=e.sibling}function wI(e){for(var t,a=e.return;a!==null;){if(yS(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=hg(e),Hf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(Lx(a),t.flags&=-33),t=hg(e),Hf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=hg(e),gg(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 bS(e){var{stateNode:t,memoizedProps:a}=e;try{j(e,fR,e.type,a,t,e)}catch(o){Ot(e,e.return,o)}}function vS(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 TI(e,t){if(e=e.containerInfo,hb=sm,e=Nv(e),Jm(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,l=o.focusNode;o=o.focusOffset;try{a.nodeType,l.nodeType}catch(se){a=null;break e}var s=0,c=-1,p=-1,g=0,E=0,O=e,I=null;t:for(;;){for(var P;;){if(O!==a||n!==0&&O.nodeType!==3||(c=s+n),O!==l||o!==0&&O.nodeType!==3||(p=s+o),O.nodeType===3&&(s+=O.nodeValue.length),(P=O.firstChild)===null)break;I=O,O=P}for(;;){if(O===e)break t;if(I===a&&++g===n&&(c=s),I===l&&++E===o&&(p=s),(P=O.nextSibling)!==null)break;O=I,I=O.parentNode}O=P}a=c===-1||p===-1?null:{start:c,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;gb={focusedElem:e,selectionRange:a},sm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,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&&CI(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Bg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bg(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,Ua=e;break}Ua=t.return}}function SS(e,t,a){var o=Io(),n=Nn(),l=Un(),s=Pn(),c=a.flags;switch(a.tag){case 0:case 11:case 15:Gn(e,a),c&4&&dS(a,Uo|en);break;case 1:if(Gn(e,a),c&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||ei||(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.",F(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.",F(a)||"instance")),Hn(a)?(_n(),j(a,Uy,a,e),zn()):j(a,Uy,a,e);else{var p=bs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||ei||(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.",F(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.",F(a)||"instance")),Hn(a)?(_n(),j(a,cL,a,e,p,t,e.__reactInternalSnapshotBeforeUpdate),zn()):j(a,cL,a,e,p,t,e.__reactInternalSnapshotBeforeUpdate)}c&64&&pS(a),c&512&&ec(a,a.return);break;case 3:if(t=kl(),Gn(e,a),c&64&&(c=a.updateQueue,c!==null)){if(p=null,a.child!==null)switch(a.child.tag){case 27:case 5:p=a.child.stateNode;break;case 1:p=a.child.stateNode}try{j(a,h0,c,p)}catch(E){Ot(a,a.return,E)}}e.effectDuration+=mf(t);break;case 27:t===null&&c&4&&bS(a);case 26:case 5:if(Gn(e,a),t===null){if(c&4)gS(a);else if(c&64){e=a.type,t=a.memoizedProps,p=a.stateNode;try{j(a,QI,p,e,t,a)}catch(E){Ot(a,a.return,E)}}}c&512&&ec(a,a.return);break;case 12:if(c&4){c=kl(),Gn(e,a),e=a.stateNode,e.effectDuration+=Fi(c);try{j(a,hS,a,t,Cr,e.effectDuration)}catch(E){Ot(a,a.return,E)}}else Gn(e,a);break;case 31:Gn(e,a),c&4&&LS(e,a);break;case 13:Gn(e,a),c&4&&kS(e,a),c&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(c=NI.bind(null,a),uR(e,c))));break;case 22:if(c=a.memoizedState!==null||_l,!c){t=t!==null&&t.memoizedState!==null||wa,p=_l;var g=wa;_l=c,(wa=t)&&!g?(Vn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&of(a,qe,Ue)):Gn(e,a),_l=p,wa=g}break;case 30:break;default:Gn(e,a)}(a.mode&rt)!==He&&0<=qe&&0<=Ue&&((sa||0.05<aa)&&On(a,qe,Ue,aa,ta),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ue-qe&&(vS(a.return.alternate,a.return)||En(a,qe,Ue,"Mount"))),Ro(o),Bn(n),ta=l,sa=s}function xS(e){var t=e.alternate;t!==null&&(e.alternate=null,xS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&de(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 Il(e,t,a){for(a=a.child;a!==null;)CS(e,t,a),a=a.sibling}function CS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Au,a)}catch(g){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",g))}var o=Io(),n=Nn(),l=Un(),s=Pn();switch(a.tag){case 26:wa||Fn(a,t),Il(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:wa||Fn(a,t);var c=Ta,p=bo;fr(a.type)&&(Ta=a.stateNode,bo=!1),Il(e,t,a),j(a,ic,a.stateNode),Ta=c,bo=p;break;case 5:wa||Fn(a,t);case 6:if(c=Ta,p=bo,Ta=null,Il(e,t,a),Ta=c,bo=p,Ta!==null)if(bo)try{j(a,JI,Ta,a.stateNode)}catch(g){Ot(a,t,g)}else try{j(a,KI,Ta,a.stateNode)}catch(g){Ot(a,t,g)}break;case 18:Ta!==null&&(bo?(e=Ta,wx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Tu(e)):wx(Ta,a.stateNode));break;case 4:c=Ta,p=bo,Ta=a.stateNode.containerInfo,bo=!0,Il(e,t,a),Ta=c,bo=p;break;case 0:case 11:case 14:case 15:bu(io,a,t),wa||fg(a,t,Uo),Il(e,t,a);break;case 1:wa||(Fn(a,t),c=a.stateNode,typeof c.componentWillUnmount==="function"&&mS(a,t,c)),Il(e,t,a);break;case 21:Il(e,t,a);break;case 22:wa=(c=wa)||a.memoizedState!==null,Il(e,t,a),wa=c;break;default:Il(e,t,a)}(a.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(a,qe,Ue,aa,ta),Ro(o),Bn(n),ta=l,sa=s}function LS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{j(t,cR,e)}catch(a){Ot(t,t.return,a)}}}function kS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{j(t,dR,e)}catch(a){Ot(t,t.return,a)}}function II(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new QL),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new QL),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ff(e,t){var a=II(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Wn)if(ti!==null&&ai!==null)nc(ai,ti);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=BI.bind(null,e,o);o.then(n,n)}})}function go(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,l=t,s=a[o],c=Io(),p=l;e:for(;p!==null;){switch(p.tag){case 27:if(fr(p.type)){Ta=p.stateNode,bo=!1;break e}break;case 5:Ta=p.stateNode,bo=!1;break e;case 3:case 4:Ta=p.stateNode.containerInfo,bo=!0;break e}p=p.return}if(Ta===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");CS(n,l,s),Ta=null,bo=!1,(s.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&En(s,qe,Ue,"Unmount"),Ro(c),n=s,l=n.alternate,l!==null&&(l.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wS(t,e),t=t.sibling}function wS(e,t){var a=Io(),o=Nn(),n=Un(),l=Pn(),{alternate:s,flags:c}=e;switch(e.tag){case 0:case 11:case 14:case 15:go(t,e),yo(e),c&4&&(bu(io|en,e,e.return),Ji(io|en,e),fg(e,e.return,Uo|en));break;case 1:if(go(t,e),yo(e),c&512&&(wa||s===null||Fn(s,s.return)),c&64&&_l&&(c=e.updateQueue,c!==null&&(s=c.callbacks,s!==null))){var p=c.shared.hiddenCallbacks;c.shared.hiddenCallbacks=p===null?s:p.concat(s)}break;case 26:if(p=yn,go(t,e),yo(e),c&512&&(wa||s===null||Fn(s,s.return)),c&4){var g=s!==null?s.memoizedState:null;if(c=e.memoizedState,s===null)if(c===null)if(e.stateNode===null){e:{c=e.type,s=e.memoizedProps,p=p.ownerDocument||p;t:switch(c){case"title":if(g=p.getElementsByTagName("title")[0],!g||g[gc]||g[ja]||g.namespaceURI===Eu||g.hasAttribute("itemprop"))g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"));$a(g,c,s),g[ja]=e,Oe(g),c=g;break e;case"link":var E=Bx("link","href",p).get(c+(s.href||""));if(E){for(var O=0;O<E.length;O++)if(g=E[O],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){E.splice(O,1);break t}}g=p.createElement(c),$a(g,c,s),p.head.appendChild(g);break;case"meta":if(E=Bx("meta","content",p).get(c+(s.content||""))){for(O=0;O<E.length;O++)if(g=E[O],Ge(s.content,"content"),g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){E.splice(O,1);break t}}g=p.createElement(c),$a(g,c,s),p.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+c+'". This is a bug in React.')}g[ja]=e,Oe(g),c=g}e.stateNode=c}else Ux(p,e.type,e.stateNode);else e.stateNode=Nx(p,c,e.memoizedProps);else g!==c?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,c===null?Ux(p,e.type,e.stateNode):Nx(p,c,e.memoizedProps)):c===null&&e.stateNode!==null&&mg(e,e.memoizedProps,s.memoizedProps)}break;case 27:go(t,e),yo(e),c&512&&(wa||s===null||Fn(s,s.return)),s!==null&&c&4&&mg(e,e.memoizedProps,s.memoizedProps);break;case 5:if(go(t,e),yo(e),c&512&&(wa||s===null||Fn(s,s.return)),e.flags&32){p=e.stateNode;try{j(e,Lx,p)}catch(he){Ot(e,e.return,he)}}c&4&&e.stateNode!=null&&(p=e.memoizedProps,mg(e,p,s!==null?s.memoizedProps:p)),c&1024&&(Zy=!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),yo(e),c&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.");c=e.memoizedProps,s=s!==null?s.memoizedProps:c,p=e.stateNode;try{j(e,WI,p,s,c)}catch(he){Ot(e,e.return,he)}}break;case 3:if(p=kl(),nm=null,g=yn,yn=Zf(t.containerInfo),go(t,e),yn=g,yo(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{j(e,iR,t.containerInfo)}catch(he){Ot(e,e.return,he)}Zy&&(Zy=!1,TS(e)),t.effectDuration+=mf(p);break;case 4:c=yn,yn=Zf(e.stateNode.containerInfo),go(t,e),yo(e),yn=c;break;case 12:c=kl(),go(t,e),yo(e),e.stateNode.effectDuration+=Fi(c);break;case 31:go(t,e),yo(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ff(e,c)));break;case 13:go(t,e),yo(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(Gp=Na()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ff(e,c)));break;case 22:p=e.memoizedState!==null;var I=s!==null&&s.memoizedState!==null,P=_l,se=wa;if(_l=P||p,wa=se||I,go(t,e),wa=se,_l=P,I&&!p&&!P&&!se&&(e.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&of(e,qe,Ue),yo(e),c&8192)e:for(t=e.stateNode,t._visibility=p?t._visibility&~wc:t._visibility|wc,!p||s===null||I||_l||wa||(vs(e),(e.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&En(e,qe,Ue,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){I=s=t;try{g=I.stateNode,p?j(I,tR,g):j(I,nR,I.stateNode,I.memoizedProps)}catch(he){Ot(I,I.return,he)}}}else if(t.tag===6){if(s===null){I=t;try{E=I.stateNode,p?j(I,aR,E):j(I,lR,E,I.memoizedProps)}catch(he){Ot(I,I.return,he)}}}else if(t.tag===18){if(s===null){I=t;try{O=I.stateNode,p?j(I,eR,O):j(I,oR,I.stateNode)}catch(he){Ot(I,I.return,he)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}c&4&&(c=e.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,Ff(e,s))));break;case 19:go(t,e),yo(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ff(e,c)));break;case 30:break;case 21:break;default:go(t,e),yo(e)}(e.mode&rt)!==He&&0<=qe&&0<=Ue&&((sa||0.05<aa)&&On(e,qe,Ue,aa,ta),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ue-qe&&(vS(e.return.alternate,e.return)||En(e,qe,Ue,"Mount"))),Ro(a),Bn(o),ta=n,sa=l}function yo(e){var t=e.flags;if(t&2){try{j(e,wI,e)}catch(a){Ot(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function TS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;TS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)SS(e,t.alternate,t),t=t.sibling}function IS(e){var t=Io(),a=Nn(),o=Un(),n=Pn();switch(e.tag){case 0:case 11:case 14:case 15:fg(e,e.return,Uo),vs(e);break;case 1:Fn(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount==="function"&&mS(e,e.return,l),vs(e);break;case 27:j(e,ic,e.stateNode);case 26:case 5:Fn(e,e.return),vs(e);break;case 22:e.memoizedState===null&&vs(e);break;case 30:vs(e);break;default:vs(e)}(e.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(e,qe,Ue,aa,ta),Ro(t),Bn(a),ta=o,sa=n}function vs(e){for(e=e.child;e!==null;)IS(e),e=e.sibling}function RS(e,t,a,o){var n=Io(),l=Nn(),s=Un(),c=Pn(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Vn(e,a,o),dS(a,Uo);break;case 1:if(Vn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&j(a,Uy,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{j(a,iI,t,e)}catch(g){Ot(a,a.return,g)}}o&&p&64&&pS(a),ec(a,a.return);break;case 27:bS(a);case 26:case 5:Vn(e,a,o),o&&t===null&&p&4&&gS(a),ec(a,a.return);break;case 12:if(o&&p&4){p=kl(),Vn(e,a,o),o=a.stateNode,o.effectDuration+=Fi(p);try{j(a,hS,a,t,Cr,o.effectDuration)}catch(g){Ot(a,a.return,g)}}else Vn(e,a,o);break;case 31:Vn(e,a,o),o&&p&4&&LS(e,a);break;case 13:Vn(e,a,o),o&&p&4&&kS(e,a);break;case 22:a.memoizedState===null&&Vn(e,a,o),ec(a,a.return);break;case 30:break;default:Vn(e,a,o)}(a.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(a,qe,Ue,aa,ta),Ro(n),Bn(l),ta=s,sa=c}function Vn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)RS(e,t.alternate,t,a),t=t.sibling}function yg(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&&ms(e),a!=null&&Hi(a))}function bg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ms(t),e!=null&&Hi(e))}function dn(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 l=t.sibling;MS(e,t,a,o,l!==null?l.actualStartTime:n),t=l}}function MS(e,t,a,o,n){var l=Io(),s=Nn(),c=Un(),p=Pn(),g=br,E=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&rt)!==He&&0<t.actualStartTime&&(t.flags&1)!==0&&nf(t,t.actualStartTime,n,Da,a),dn(e,t,a,o,n),E&2048&&fS(t,co|en);break;case 1:(t.mode&rt)!==He&&0<t.actualStartTime&&((t.flags&128)!==0?th(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&nf(t,t.actualStartTime,n,Da,a)),dn(e,t,a,o,n);break;case 3:var O=kl(),I=Da;Da=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,dn(e,t,a,o,n),Da=I,E&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(ms(o),a!=null&&Hi(a))),e.passiveEffectDuration+=mf(O);break;case 12:if(E&2048){E=kl(),dn(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Fi(E);try{j(t,kI,t,t.alternate,Cr,e.passiveEffectDuration)}catch(P){Ot(t,t.return,P)}}else dn(e,t,a,o,n);break;case 31:E=Da,O=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,O!==null&&I===null?(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Da=!1,O=O.hydrationErrors,O!==null&&th(t,t.actualStartTime,n,O)):Da=!0):Da=!1,dn(e,t,a,o,n),Da=E;break;case 13:E=Da,O=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,O===null||O.dehydrated===null||I!==null&&I.dehydrated!==null?Da=!1:(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Da=!1,O=O.hydrationErrors,O!==null&&th(t,t.actualStartTime,n,O)):Da=!0),dn(e,t,a,o,n),Da=E;break;case 23:break;case 22:I=t.stateNode,O=t.alternate,t.memoizedState!==null?I._visibility&Al?dn(e,t,a,o,n):tc(e,t,a,o,n):I._visibility&Al?dn(e,t,a,o,n):(I._visibility|=Al,vu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&rt)===He||Da||(e=t.actualStartTime,0<=e&&0.05<n-e&&of(t,e,n),0<=qe&&0<=Ue&&0.05<Ue-qe&&of(t,qe,Ue))),E&2048&&yg(O,t);break;case 24:dn(e,t,a,o,n),E&2048&&bg(t.alternate,t);break;default:dn(e,t,a,o,n)}if((t.mode&rt)!==He){if(e=!Da&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&En(t,a,n,"Mount");0<=qe&&0<=Ue&&((sa||0.05<aa)&&On(t,qe,Ue,aa,ta),e&&0.05<Ue-qe&&En(t,qe,Ue,"Mount"))}Ro(l),Bn(s),ta=c,sa=p,br=g}function vu(e,t,a,o,n,l){n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;AS(e,t,a,o,n,s!==null?s.actualStartTime:l),t=s}}function AS(e,t,a,o,n,l){var s=Io(),c=Nn(),p=Un(),g=Pn(),E=br;n&&(t.mode&rt)!==He&&0<t.actualStartTime&&(t.flags&1)!==0&&nf(t,t.actualStartTime,l,Da,a);var O=t.flags;switch(t.tag){case 0:case 11:case 15:vu(e,t,a,o,n,l),fS(t,co);break;case 23:break;case 22:var I=t.stateNode;t.memoizedState!==null?I._visibility&Al?vu(e,t,a,o,n,l):tc(e,t,a,o,l):(I._visibility|=Al,vu(e,t,a,o,n,l)),n&&O&2048&&yg(t.alternate,t);break;case 24:vu(e,t,a,o,n,l),n&&O&2048&&bg(t.alternate,t);break;default:vu(e,t,a,o,n,l)}(t.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(t,qe,Ue,aa,ta),Ro(s),Bn(c),ta=p,sa=g,br=E}function tc(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var l=t.child;l!==null;){t=l.sibling;var s=e,c=a,p=o,g=t!==null?t.actualStartTime:n,E=br;(l.mode&rt)!==He&&0<l.actualStartTime&&(l.flags&1)!==0&&nf(l,l.actualStartTime,g,Da,c);var O=l.flags;switch(l.tag){case 22:tc(s,l,c,p,g),O&2048&&yg(l.alternate,l);break;case 24:tc(s,l,c,p,g),O&2048&&bg(l.alternate,l);break;default:tc(s,l,c,p,g)}br=E,l=t}}function Su(e,t,a){if(e.subtreeFlags&$c)for(e=e.child;e!==null;)DS(e,t,a),e=e.sibling}function DS(e,t,a){switch(e.tag){case 26:Su(e,t,a),e.flags&$c&&e.memoizedState!==null&&hR(a,yn,e.memoizedState,e.memoizedProps);break;case 5:Su(e,t,a);break;case 3:case 4:var o=yn;yn=Zf(e.stateNode.containerInfo),Su(e,t,a),yn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=$c,$c=16777216,Su(e,t,a),$c=o):Su(e,t,a));break;default:Su(e,t,a)}}function ES(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 ac(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=Io();Ua=o,NS(o,e),(o.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&En(o,qe,Ue,"Unmount"),Ro(n)}ES(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)OS(e),e=e.sibling}function OS(e){var t=Io(),a=Nn(),o=Un(),n=Pn();switch(e.tag){case 0:case 11:case 15:ac(e),e.flags&2048&&pg(e,e.return,co|en);break;case 3:var l=kl();ac(e),e.stateNode.passiveEffectDuration+=mf(l);break;case 12:l=kl(),ac(e),e.stateNode.passiveEffectDuration+=Fi(l);break;case 22:l=e.stateNode,e.memoizedState!==null&&l._visibility&Al&&(e.return===null||e.return.tag!==13)?(l._visibility&=~Al,Gf(e),(e.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&En(e,qe,Ue,"Disconnect")):ac(e);break;default:ac(e)}(e.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(e,qe,Ue,aa,ta),Ro(t),Bn(a),sa=n,ta=o}function Gf(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=Io();Ua=o,NS(o,e),(o.mode&rt)!==He&&0<=qe&&0<=Ue&&0.05<Ue-qe&&En(o,qe,Ue,"Unmount"),Ro(n)}ES(e)}for(e=e.child;e!==null;)qS(e),e=e.sibling}function qS(e){var t=Io(),a=Nn(),o=Un(),n=Pn();switch(e.tag){case 0:case 11:case 15:pg(e,e.return,co),Gf(e);break;case 22:var l=e.stateNode;l._visibility&Al&&(l._visibility&=~Al,Gf(e));break;default:Gf(e)}(e.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(e,qe,Ue,aa,ta),Ro(t),Bn(a),sa=n,ta=o}function NS(e,t){for(;Ua!==null;){var a=Ua,o=a,n=t,l=Io(),s=Nn(),c=Un(),p=Pn();switch(o.tag){case 0:case 11:case 15:pg(o,n,co);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&ms(n));break;case 24:Hi(o.memoizedState.cache)}if((o.mode&rt)!==He&&0<=qe&&0<=Ue&&(sa||0.05<aa)&&On(o,qe,Ue,aa,ta),Ro(l),Bn(s),sa=p,ta=c,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,l=o.sibling,s=o.return,xS(o),o===a){Ua=null;break e}if(l!==null){l.return=s,Ua=l;break e}Ua=s}}}function RI(){QM.forEach(function(e){return e()})}function BS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ao(e){if((kt&Ea)!==Pa&&ut!==0)return ut&-ut;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Tg()):q()}function US(){if(So===0)if((ut&536870912)===0||gt){var e=up;up<<=1,(up&3932160)===0&&(up=262144),So=e}else So=536870912;return e=Bo.current,e!==null&&(e.flags|=32),So}function ra(e,t,a){if(li&&console.error("useInsertionEffect must not schedule updates."),sb&&(Xp=!0),e===Vt&&(zt===qs||zt===Ns)||e.cancelPendingCommit!==null)Cu(e,0),cr(e,ut,So,!1);if(Kl(e,a),(kt&Ea)!==Pa&&e===Vt){if(Qn)switch(t.tag){case 0:case 11:case 15:e=it&&F(it)||"Unknown",c1.has(e)||(c1.add(e),t=F(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:i1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),i1=!0)}}else Wn&&Ai(e,t,a),PI(t),e===Vt&&((kt&Ea)===Pa&&(Dr|=a),oa===Rr&&cr(e,ut,So,!1)),$n(e)}function PS(e,t,a){if((kt&(Ea|Po))!==Pa)throw Error("Should not already be working.");if(ut!==0&&it!==null){var o=it,n=Na();switch(aL){case Yc:case qs:var l=Dc;Qt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",l,n,jo,void 0,"primary-light")):console.timeStamp("Suspended",l,n,jo,void 0,"primary-light"));break;case Ns:l=Dc,Qt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",l,n,jo,void 0,"primary-light")):console.timeStamp("Action",l,n,jo,void 0,"primary-light"));break;default:Qt&&(o=n-Dc,3>o||console.timeStamp("Blocked",Dc,n,jo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}l=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ts(e,t))?AI(e,t):Sg(e,t,!0);var s=a;do{if(l===Hl){oi&&!a&&cr(e,t,0,!1),t=zt,Dc=Ca(),aL=t;break}else{if(o=Na(),n=e.current.alternate,s&&!MI(n)){wo(t),n=Ba,l=o,!Qt||l<=n||(ma?ma.run(console.timeStamp.bind(console,"Teared Render",n,l,mt,pt,"error")):console.timeStamp("Teared Render",n,l,mt,pt,"error")),Ss(t,o),l=Sg(e,t,!1),s=!1;continue}if(l===Os){if(s=t,e.errorRecoveryDisabledLanes&s)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){wo(t),ah(Ba,o,t,ma),Ss(t,o),t=c;e:{o=e,l=s,s=Zc;var p=o.current.memoizedState.isDehydrated;if(p&&(Cu(o,c).flags|=256),c=Sg(o,c,!1),c!==Os){if(Jy&&!p){o.errorRecoveryDisabledLanes|=l,Dr|=l,l=Rr;break e}o=fo,fo=s,o!==null&&(fo===null?fo=o:fo.push.apply(fo,o))}l=c}if(s=!1,l!==Os)continue;else o=Na()}}if(l===Xc){wo(t),ah(Ba,o,t,ma),Ss(t,o),Cu(e,0),cr(e,t,0,!0);break}e:{switch(a=e,l){case Hl:case Xc:throw Error("Root did not complete. This is a bug in React.");case Rr:if((t&4194048)!==t)break;case zp:wo(t),Pv(Ba,o,t,ma),Ss(t,o),n=t,(n&127)!==0?kp=o:(n&4194048)!==0&&(wp=o),cr(a,t,So,!Mr);break e;case Os:fo=null;break;case Pp:case ZL:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)xg(a,n,t,fo,Wc,Fp,So,Dr,Bs,l,null,null,Ba,o);else{if((t&62914560)===t&&(s=Gp+JL-Na(),10<s)){if(cr(a,t,So,!Mr),es(a,0,!0)!==0)break e;bn=t,a.timeoutHandle=b1(zS.bind(null,a,n,fo,Wc,Fp,t,So,Dr,Bs,Mr,l,"Throttled",Ba,o),s);break e}zS(a,n,fo,Wc,Fp,t,So,Dr,Bs,Mr,l,null,Ba,o)}}}break}while(1);$n(e)}function zS(e,t,a,o,n,l,s,c,p,g,E,O,I,P){e.timeoutHandle=Hs;var se=t.subtreeFlags,he=null;if(se&8192||(se&16785408)===16785408){if(he={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sl},DS(t,l,he),se=(l&62914560)===l?Gp-Na():(l&4194048)===l?KL-Na():0,se=gR(he,se),se!==null){bn=l,e.cancelPendingCommit=se(xg.bind(null,e,t,l,a,o,n,s,c,p,E,he,he.waitingForViewTransition?"Waiting for the previous Animation":0<he.count?0<he.imgCount?"Suspended on CSS and Images":"Suspended on CSS":he.imgCount===1?"Suspended on an Image":0<he.imgCount?"Suspended on Images":null,I,P)),cr(e,l,s,!g);return}}xg(e,t,l,a,o,n,s,c,p,E,he,O,I,P)}function MI(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],l=n.getSnapshot;n=n.value;try{if(!so(l(),n))return!1}catch(s){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 cr(e,t,a,o){t&=~eb,t&=~Dr,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var l=31-no(n),s=1<<l;o[l]=-1,n&=~s}a!==0&&as(e,a,t)}function xu(){return(kt&(Ea|Po))===Pa?(lc(0,!1),!1):!0}function vg(){if(it!==null){if(zt===vo)var e=it.return;else e=it,df(),Ah(e),Yu=null,_c=0,e=it;for(;e!==null;)cS(e.alternate,e),e=e.return;it=null}}function Ss(e,t){(e&127)!==0&&(Lr=t),(e&4194048)!==0&&(al=t),(e&62914560)!==0&&(eL=t),(e&2080374784)!==0&&(tL=t)}function Cu(e,t){Qt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",pt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",pt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",pt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",pt,"primary-light"));var a=Ba;if(Ba=Ca(),ut!==0&&0<a){if(wo(ut),oa===Pp||oa===Rr)Pv(a,Ba,t,ma);else{var o=Ba,n=ma;if(Qt&&!(o<=a)){var l=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,s,a,o,mt,pt,l)):console.timeStamp(s,a,o,mt,pt,l)}}Ss(ut,Ba)}if(a=ma,ma=null,(t&127)!==0){ma=Rc,n=0<=tl&&tl<Lr?Lr:tl,o=0<=ws&&ws<Lr?Lr:ws,l=0<=o?o:0<=n?n:Ba,0<=kp?(wo(2),zv(kp,l,t,a)):(Tp&127)!==0&&(wo(2),zi(Lr,l,Bl)),a=n;var c=o,p=Mc,g=0<$u,E=kr===Ic,O=kr===Lp;if(n=Ba,o=Rc,l=Ey,s=Oy,Qt){if(mt="Blocking",0<a?a>n&&(a=n):a=n,0<c?c>a&&(c=a):c=a,p!==null&&a>c){var I=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+p,c,a,mt,pt,I)):console.timeStamp(g?"Consecutive":"Event: "+p,c,a,mt,pt,I)}n>a&&(c=E?"error":(t&738197653)===t?"tertiary-light":"primary-light",E=O?"Promise Resolved":E?"Cascading Update":5<n-a?"Update Blocked":"Update",O=[],s!=null&&O.push(["Component name",s]),l!=null&&O.push(["Method name",l]),a={start:a,end:n,detail:{devtools:{properties:O,track:mt,trackGroup:pt,color:c}}},o?o.run(performance.measure.bind(performance,E,a)):performance.measure(E,a))}tl=-1.1,kr=0,Oy=Ey=null,kp=-1.1,$u=ws,ws=-1.1,Lr=Ca()}if((t&4194048)!==0&&(ma=Ac,n=0<=Nl&&Nl<al?al:Nl,a=0<=Ko&&Ko<al?al:Ko,o=0<=wr&&wr<al?al:wr,l=0<=o?o:0<=a?a:Ba,0<=wp?(wo(256),zv(wp,l,t,ma)):(Tp&4194048)!==0&&(wo(256),zi(al,l,Bl)),O=o,c=Ts,p=0<Tr,g=qy===Lp,l=Ba,o=Ac,s=KC,E=JC,Qt&&(mt="Transition",0<a?a>l&&(a=l):a=l,0<n?n>a&&(n=a):n=a,0<O?O>n&&(O=n):O=n,n>O&&c!==null&&(I=p?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,p?"Consecutive":"Event: "+c,O,n,mt,pt,I)):console.timeStamp(p?"Consecutive":"Event: "+c,O,n,mt,pt,I)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,mt,pt,"primary-dark")):console.timeStamp("Action",n,a,mt,pt,"primary-dark")),l>a&&(n=g?"Promise Resolved":5<l-a?"Update Blocked":"Update",O=[],E!=null&&O.push(["Component name",E]),s!=null&&O.push(["Method name",s]),a={start:a,end:l,detail:{devtools:{properties:O,track:mt,trackGroup:pt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Ko=Nl=-1.1,qy=0,wp=-1.1,Tr=wr,wr=-1.1,al=Ca()),(t&62914560)!==0&&(Tp&62914560)!==0&&(wo(4194304),zi(eL,Ba,Bl)),(t&2080374784)!==0&&(Tp&2080374784)!==0&&(wo(268435456),zi(tL,Ba,Bl)),a=e.timeoutHandle,a!==Hs&&(e.timeoutHandle=Hs,uA(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),bn=0,vg(),Vt=e,it=a=xl(e.current,null),ut=t,zt=vo,zo=null,Mr=!1,oi=ts(e,t),Jy=!1,oa=Hl,Bs=So=eb=Dr=Ar=0,fo=Zc=null,Fp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-no(o),l=1<<n,t|=e[n],o&=~l;return nl=t,lf(),e=jC(),1000<e-$C&&(G.recentlyCreatedOwnerStacks=0,$C=e),hn.discardPendingWarnings(),a}function _S(e,t){Ye=null,G.H=Vc,G.getCurrentStack=null,Qn=!1,Oo=null,t===Xu||t===Ap?(t=s0(),zt=Yc):t===Py?(t=s0(),zt=WL):zt=t===Yy?Ky:t!==null&&typeof t==="object"&&typeof t.then==="function"?Qc:_p,zo=t;var a=it;a===null?(oa=Xc,Bf(e,To(t,e.current))):a.mode&rt&&yh(a)}function HS(){var e=Bo.current;return e===null?!0:(ut&4194048)===ut?Jo===null?!0:!1:(ut&62914560)===ut||(ut&536870912)!==0?e===Jo:!1}function FS(){var e=G.H;return G.H=Vc,e===null?Vc:e}function GS(){var e=G.A;return G.A=YM,e}function Vf(e){ma===null&&(ma=e._debugTask==null?null:e._debugTask)}function $f(){oa=Rr,Mr||(ut&4194048)!==ut&&Bo.current!==null||(oi=!0),(Ar&134217727)===0&&(Dr&134217727)===0||Vt===null||cr(Vt,ut,So,!1)}function Sg(e,t,a){var o=kt;kt|=Ea;var n=FS(),l=GS();if(Vt!==e||ut!==t){if(Wn){var s=e.memoizedUpdaters;0<s.size&&(nc(e,ut),s.clear()),Jl(e,t)}Wc=null,Cu(e,t)}t=!1,s=oa;e:do try{if(zt!==vo&&it!==null){var c=it,p=zo;switch(zt){case Ky:vg(),s=zp;break e;case Yc:case qs:case Ns:case Qc:Bo.current===null&&(t=!0);var g=zt;if(zt=vo,zo=null,Lu(e,c,p,g),a&&oi){s=Hl;break e}break;default:g=zt,zt=vo,zo=null,Lu(e,c,p,g)}}VS(),s=oa;break}catch(E){_S(e,E)}while(1);return t&&e.shellSuspendCounter++,df(),kt=o,G.H=n,G.A=l,it===null&&(Vt=null,ut=0,lf()),s}function VS(){for(;it!==null;)$S(it)}function AI(e,t){var a=kt;kt|=Ea;var o=FS(),n=GS();if(Vt!==e||ut!==t){if(Wn){var l=e.memoizedUpdaters;0<l.size&&(nc(e,ut),l.clear()),Jl(e,t)}Wc=null,Vp=Na()+e1,Cu(e,t)}else oi=ts(e,t);e:do try{if(zt!==vo&&it!==null)t:switch(t=it,l=zo,zt){case _p:zt=vo,zo=null,Lu(e,t,l,_p);break;case qs:case Ns:if(l0(l)){zt=vo,zo=null,jS(t);break}t=function(){zt!==qs&&zt!==Ns||Vt!==e||(zt=Hp),$n(e)},l.then(t,t);break e;case Yc:zt=Hp;break e;case WL:zt=Wy;break e;case Hp:l0(l)?(zt=vo,zo=null,jS(t)):(zt=vo,zo=null,Lu(e,t,l,Hp));break;case Wy:var s=null;switch(it.tag){case 26:s=it.memoizedState;case 5:case 27:var c=it;if(s?Px(s):c.stateNode.complete){zt=vo,zo=null;var p=c.sibling;if(p!==null)it=p;else{var g=c.return;g!==null?(it=g,jf(g)):it=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}zt=vo,zo=null,Lu(e,t,l,Wy);break;case Qc:zt=vo,zo=null,Lu(e,t,l,Qc);break;case Ky:vg(),oa=zp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?VS():DI();break}catch(E){_S(e,E)}while(1);if(df(),G.H=o,G.A=n,kt=a,it!==null)return Hl;return Vt=null,ut=0,lf(),oa}function DI(){for(;it!==null&&!MR();)$S(it)}function $S(e){var t=e.alternate;(e.mode&rt)!==He?(gh(e),t=j(e,cg,t,e,nl),yh(e)):t=j(e,cg,t,e,nl),e.memoizedProps=e.pendingProps,t===null?jf(e):it=t}function jS(e){var t=j(e,EI,e);e.memoizedProps=e.pendingProps,t===null?jf(e):it=t}function EI(e){var t=e.alternate,a=(e.mode&rt)!==He;switch(a&&gh(e),e.tag){case 15:case 0:t=oS(t,e,e.pendingProps,e.type,void 0,ut);break;case 11:t=oS(t,e,e.pendingProps,e.type.render,e.ref,ut);break;case 5:Ah(e);default:cS(t,e),e=it=$v(e,nl),t=cg(t,e,nl)}return a&&yh(e),t}function Lu(e,t,a,o){df(),Ah(t),Yu=null,_c=0;var n=t.return;try{if(gI(e,n,t,a,ut)){oa=Xc,Bf(e,To(a,e.current)),it=null;return}}catch(l){if(n!==null)throw it=n,l;oa=Xc,Bf(e,To(a,e.current)),it=null;return}if(t.flags&32768){if(gt||o===_p)e=!0;else if(oi||(ut&536870912)!==0)e=!1;else if(Mr=e=!0,o===qs||o===Ns||o===Yc||o===Qc)o=Bo.current,o!==null&&o.tag===13&&(o.flags|=16384);XS(t,e)}else jf(t)}function jf(e){var t=e;do{if((t.flags&32768)!==0){XS(t,Mr);return}var a=t.alternate;if(e=t.return,gh(t),a=j(t,vI,a,t,nl),(t.mode&rt)!==He&&e0(t),a!==null){it=a;return}if(t=t.sibling,t!==null){it=t;return}it=t=e}while(t!==null);oa===Hl&&(oa=ZL)}function XS(e,t){do{var a=SI(e.alternate,e);if(a!==null){a.flags&=32767,it=a;return}if((e.mode&rt)!==He){e0(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)){it=e;return}it=e=a}while(e!==null);oa=zp,it=null}function xg(e,t,a,o,n,l,s,c,p,g,E,O,I,P){e.cancelPendingCommit=null;do oc();while(Ia!==Or);if(hn.flushLegacyContextWarning(),hn.flushPendingUnsafeLifecycleWarnings(),(kt&(Ea|Po))!==Pa)throw Error("Should not already be working.");if(wo(a),g===Os?ah(I,P,a,ma):o!==null?oI(I,P,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ma):aI(I,P,a,ma),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(l=t.lanes|t.childLanes,l|=Iy,Yd(e,a,l,s,c,p),e===Vt&&(it=Vt=null,ut=0),ni=t,qr=e,bn=a,ob=l,lb=n,r1=o,nb=P,s1=O,vn=$p,u1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,UI(Mu,function(){return od=window.event,vn===$p&&(vn=ab),KS(),null})):(e.callbackNode=null,e.callbackPriority=0),ql=null,Cr=Ca(),O!==null&&nI(P,Cr,O,ma),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,n=qt.p,qt.p=qo,s=kt,kt|=Po;try{TI(e,t,a)}finally{kt=s,qt.p=n,G.T=o}}Ia=a1,YS(),QS(),ZS()}}function YS(){if(Ia===a1){Ia=Or;var e=qr,t=ni,a=bn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var n=qt.p;qt.p=qo;var l=kt;kt|=Po;try{ti=a,ai=e,hf(),wS(t,e),ai=ti=null,a=gb;var s=Nv(e.containerInfo),c=a.focusedElem,p=a.selectionRange;if(s!==c&&c&&c.ownerDocument&&qv(c.ownerDocument.documentElement,c)){if(p!==null&&Jm(c)){var{start:g,end:E}=p;if(E===void 0&&(E=g),"selectionStart"in c)c.selectionStart=g,c.selectionEnd=Math.min(E,c.value.length);else{var O=c.ownerDocument||document,I=O&&O.defaultView||window;if(I.getSelection){var P=I.getSelection(),se=c.textContent.length,he=Math.min(p.start,se),Yt=p.end===void 0?he:Math.min(p.end,se);!P.extend&&he>Yt&&(s=Yt,Yt=he,he=s);var Ct=Ov(c,he),w=Ov(c,Yt);if(Ct&&w&&(P.rangeCount!==1||P.anchorNode!==Ct.node||P.anchorOffset!==Ct.offset||P.focusNode!==w.node||P.focusOffset!==w.offset)){var R=O.createRange();R.setStart(Ct.node,Ct.offset),P.removeAllRanges(),he>Yt?(P.addRange(R),P.extend(w.node,w.offset)):(R.setEnd(w.node,w.offset),P.addRange(R))}}}}O=[];for(P=c;P=P.parentNode;)P.nodeType===1&&O.push({element:P,left:P.scrollLeft,top:P.scrollTop});typeof c.focus==="function"&&c.focus();for(c=0;c<O.length;c++){var A=O[c];A.element.scrollLeft=A.left,A.element.scrollTop=A.top}}sm=!!hb,gb=hb=null}finally{kt=l,qt.p=n,G.T=o}}e.current=t,Ia=o1}}function QS(){if(Ia===o1){Ia=Or;var e=u1;if(e!==null){Cr=Ca();var t=Ol,a=Cr;!Qt||a<=t||(Bl?Bl.run(console.timeStamp.bind(console,e,t,a,mt,pt,"secondary-light")):console.timeStamp(e,t,a,mt,pt,"secondary-light"))}e=qr,t=ni,a=bn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var n=qt.p;qt.p=qo;var l=kt;kt|=Po;try{ti=a,ai=e,hf(),SS(e,t.alternate,t),ai=ti=null}finally{kt=l,qt.p=n,G.T=o}}e=nb,t=s1,Ol=Ca(),e=t===null?e:Cr,t=Ol,a=vn===tb,o=ma,ql!==null?_v(e,t,ql,!1,o):!Qt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,mt,pt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,mt,pt,a?"error":"secondary-dark")),Ia=n1}}function ZS(){if(Ia===l1||Ia===n1){if(Ia===l1){var e=Ol;Ol=Ca();var t=Ol,a=vn===tb;!Qt||t<=e||(Bl?Bl.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,mt,pt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,mt,pt,a?" error":"secondary-light")),vn!==tb&&(vn=t1)}Ia=Or,AR(),e=qr;var o=ni;t=bn,a=r1;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Ia=jp:(Ia=Or,ni=qr=null,WS(e,e.pendingLanes),Us=0,Jc=null);var l=e.pendingLanes;if(l===0&&(Er=null),n||ax(e),l=b(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(l){case qo:var c=ly;break;case pn:c=ry;break;case Kn:c=Mu;break;case cp:c=sy;break;default:c=Mu}Ka.onCommitFiberRoot(Au,o,c,s)}catch(O){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",O))}if(Wn&&e.memoizedUpdaters.clear(),RI(),a!==null){s=G.T,c=qt.p,qt.p=qo,G.T=null;try{var p=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],E=OI(g.stack);j(g.source,p,g.value,E)}}finally{G.T=s,qt.p=c}}(bn&3)!==0&&oc(),$n(e),l=e.pendingLanes,(t&261930)!==0&&(l&42)!==0?(Rp=!0,e===rb?Kc++:(Kc=0,rb=e)):Kc=0,n||Ss(t,Ol),lc(0,!1)}}function OI(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 WS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hi(t)))}function oc(){return YS(),QS(),ZS(),KS()}function KS(){if(Ia!==jp)return!1;var e=qr,t=ob;ob=0;var a=b(bn),o=Kn===0||Kn>a?Kn:a;a=G.T;var n=qt.p;try{qt.p=o,G.T=null;var l=lb;lb=null,o=qr;var s=bn;if(Ia=Or,ni=qr=null,bn=0,(kt&(Ea|Po))!==Pa)throw Error("Cannot flush passive effects while already rendering.");wo(s),sb=!0,Xp=!1;var c=0;if(ql=null,c=Na(),vn===t1)zi(Ol,c,Bl);else{var p=Ol,g=c,E=vn===ab;!Qt||g<=p||(ma?ma.run(console.timeStamp.bind(console,E?"Waiting for Paint":"Waiting",p,g,mt,pt,"secondary-light")):console.timeStamp(E?"Waiting for Paint":"Waiting",p,g,mt,pt,"secondary-light"))}p=kt,kt|=Po;var O=o.current;hf(),OS(O);var I=o.current;O=nb,hf(),MS(o,I,s,l,O),ax(o),kt=p;var P=Na();if(I=c,O=ma,ql!==null?_v(I,P,ql,!0,O):!Qt||P<=I||(O?O.run(console.timeStamp.bind(console,"Remaining Effects",I,P,mt,pt,"secondary-dark")):console.timeStamp("Remaining Effects",I,P,mt,pt,"secondary-dark")),Ss(s,P),lc(0,!1),Xp?o===Jc?Us++:(Us=0,Jc=o):Us=0,Xp=sb=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Au,o)}catch(he){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",he))}var se=o.current.stateNode;return se.effectDuration=0,se.passiveEffectDuration=0,!0}finally{qt.p=n,G.T=a,WS(e,t)}}function JS(e,t,a){t=To(a,t),t0(t),t=Jh(e.stateNode,t,2),e=rr(e,t,2),e!==null&&(Kl(e,2),$n(e))}function Ot(e,t,a){if(li=!1,e.tag===3)JS(e,e,a);else{for(;t!==null;){if(t.tag===3){JS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Er===null||!Er.has(o))){e=To(a,e),t0(e),a=eg(2),o=rr(t,a,2),o!==null&&(tg(a,o,t,e),Kl(o,2),$n(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,Y(t,function(f,v){console.error("%s must not return anything besides a function, which is used for clean-up.%s",f,v)},r,u)}a=a.next}while(a!==l)}}catch(f){jt(t,t.return,f)}}function eu(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var r=l.next;o=r;do{if((o.tag&e)===e){var u=o.inst,f=u.destroy;f!==void 0&&(u.destroy=void 0,(e&Ao)!==Nm&&(Hu=!0),l=t,Y(l,JA,l,a,f),(e&Ao)!==Nm&&(Hu=!1))}o=o.next}while(o!==r)}}catch(v){jt(t,t.return,v)}}function CS(e,t){gl(e)?(hl(),Ud(t,e),ml()):Ud(t,e)}function xy(e,t,a){gl(e)?(hl(),eu(a,e,t),ml()):eu(a,e,t)}function LS(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Bu||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",V(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",V(e)||"instance"));try{Y(e,Tx,t,a)}catch(o){jt(e,e.return,o)}}}function AR(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function DR(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Bu||(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 l=Ks(e.type,a),r=Y(e,AR,t,l,o);a=lL,r!==void 0||a.has(e.type)||(a.add(e.type),Y(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",V(e))})),t.__reactInternalSnapshotBeforeUpdate=r}catch(u){jt(e,e.return,u)}}function wS(e,t,a){a.props=Ks(e.type,e.memoizedProps),a.state=e.memoizedState,gl(e)?(hl(),Y(e,LC,e,t,a),ml()):Y(e,LC,e,t,a)}function ER(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(gl(e))try{hl(),e.refCleanup=t(a)}finally{ml()}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 Pd(e,t){try{Y(e,ER,e)}catch(a){jt(e,t,a)}}function yl(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(gl(e))try{hl(),Y(e,o)}finally{ml(e)}else Y(e,o)}catch(l){jt(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(gl(e))try{hl(),Y(e,a,null)}finally{ml(e)}else Y(e,a,null)}catch(l){jt(e,t,l)}else a.current=null}function TS(e,t,a,o){var l=e.memoizedProps,r=l.id,u=l.onCommit;l=l.onRender,t=t===null?"mount":"update",Im&&(t="nested-update"),typeof l==="function"&&l(r,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof u==="function"&&u(r,t,o,a)}function NR(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",Im&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function IS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{Y(e,oM,o,t,a,e)}catch(l){jt(e,e.return,l)}}function Sy(e,t,a){try{Y(e,lM,e.stateNode,e.type,a,t,e)}catch(o){jt(e,e.return,o)}}function RS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Gr(e.type)||e.tag===4}function ky(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RS(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&&Gr(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 Cy(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(q1(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(q1(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=Yl));else if(o!==4&&(o===27&&Gr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Cy(e,t,a),e=e.sibling;e!==null;)Cy(e,t,a),e=e.sibling}function Hp(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&&Gr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hp(e,t,a),e=e.sibling;e!==null;)Hp(e,t,a),e=e.sibling}function OR(e){for(var t,a=e.return;a!==null;){if(RS(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=ky(e),Hp(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(O1(a),t.flags&=-33),t=ky(e),Hp(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=ky(e),Cy(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 MS(e){var{stateNode:t,memoizedProps:a}=e;try{Y(e,SM,e.type,a,t,e)}catch(o){jt(e,e.return,o)}}function AS(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 qR(e,t){if(e=e.containerInfo,kb=sh,e=j0(e),rg(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 l=o.anchorOffset,r=o.focusNode;o=o.focusOffset;try{a.nodeType,r.nodeType}catch(fe){a=null;break e}var u=0,f=-1,v=-1,S=0,N=0,q=e,A=null;t:for(;;){for(var _;;){if(q!==a||l!==0&&q.nodeType!==3||(f=u+l),q!==r||o!==0&&q.nodeType!==3||(v=u+o),q.nodeType===3&&(u+=q.nodeValue.length),(_=q.firstChild)===null)break;A=q,q=_}for(;;){if(q===e)break t;if(A===a&&++S===l&&(f=u),A===r&&++N===o&&(v=u),(_=q.nextSibling)!==null)break;q=A,A=q.parentNode}q=_}a=f===-1||v===-1?null:{start:f,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;Cb={focusedElem:e,selectionRange:a},sh=!1;for(to=t;to!==null;)if(t=to,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,to=e;else for(;to!==null;){switch(e=t=to,a=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&a!==null&&DR(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Gy(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gy(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&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,to=e;break}to=t.return}}function DS(e,t,a){var o=Wo(),l=dl(),r=fl(),u=pl(),f=a.flags;switch(a.tag){case 0:case 11:case 15:vl(e,a),f&4&&kS(a,rn|Rn);break;case 1:if(vl(e,a),f&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Bu||(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")),gl(a)?(hl(),Y(a,Vv,a,e),ml()):Y(a,Vv,a,e);else{var v=Ks(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Bu||(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")),gl(a)?(hl(),Y(a,SC,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate),ml()):Y(a,SC,a,e,v,t,e.__reactInternalSnapshotBeforeUpdate)}f&64&&LS(a),f&512&&Pd(a,a.return);break;case 3:if(t=Kl(),vl(e,a),f&64&&(f=a.updateQueue,f!==null)){if(v=null,a.child!==null)switch(a.child.tag){case 27:case 5:v=a.child.stateNode;break;case 1:v=a.child.stateNode}try{Y(a,Tx,f,v)}catch(N){jt(a,a.return,N)}}e.effectDuration+=mp(t);break;case 27:t===null&&f&4&&MS(a);case 26:case 5:if(vl(e,a),t===null){if(f&4)IS(a);else if(f&64){e=a.type,t=a.memoizedProps,v=a.stateNode;try{Y(a,nM,v,e,t,a)}catch(N){jt(a,a.return,N)}}}f&512&&Pd(a,a.return);break;case 12:if(f&4){f=Kl(),vl(e,a),e=a.stateNode,e.effectDuration+=Id(f);try{Y(a,TS,a,t,Jr,e.effectDuration)}catch(N){jt(a,a.return,N)}}else vl(e,a);break;case 31:vl(e,a),f&4&&OS(e,a);break;case 13:vl(e,a),f&4&&qS(e,a),f&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(f=VR.bind(null,a),yM(e,f))));break;case 22:if(f=a.memoizedState!==null||mr,!f){t=t!==null&&t.memoizedState!==null||Va,v=mr;var S=Va;mr=f,(Va=t)&&!S?(bl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&np(a,ze,Ve)):vl(e,a),mr=v,Va=S}break;case 30:break;default:vl(e,a)}(a.mode&dt)!==Ye&&0<=ze&&0<=Ve&&((wa||0.05<Sa)&&il(a,ze,Ve,Sa,ba),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ve-ze&&(AS(a.return.alternate,a.return)||sl(a,ze,Ve,"Mount"))),Zo(o),cl(l),ba=r,wa=u}function ES(e){var t=e.alternate;t!==null&&(e.alternate=null,ES(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&he(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 tr(e,t,a){for(a=a.child;a!==null;)NS(e,t,a),a=a.sibling}function NS(e,t,a){if(bo&&typeof bo.onCommitFiberUnmount==="function")try{bo.onCommitFiberUnmount(fu,a)}catch(S){wl||(wl=!0,console.error("React instrumentation encountered an error: %o",S))}var o=Wo(),l=dl(),r=fl(),u=pl();switch(a.tag){case 26:Va||yl(a,t),tr(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Va||yl(a,t);var f=$a,v=_o;Gr(a.type)&&($a=a.stateNode,_o=!1),tr(e,t,a),Y(a,Yd,a.stateNode),$a=f,_o=v;break;case 5:Va||yl(a,t);case 6:if(f=$a,v=_o,$a=null,tr(e,t,a),$a=f,_o=v,$a!==null)if(_o)try{Y(a,iM,$a,a.stateNode)}catch(S){jt(a,t,S)}else try{Y(a,sM,$a,a.stateNode)}catch(S){jt(a,t,S)}break;case 18:$a!==null&&(_o?(e=$a,B1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),iu(e)):B1($a,a.stateNode));break;case 4:f=$a,v=_o,$a=a.stateNode.containerInfo,_o=!0,tr(e,t,a),$a=f,_o=v;break;case 0:case 11:case 14:case 15:eu(Ao,a,t),Va||by(a,t,rn),tr(e,t,a);break;case 1:Va||(yl(a,t),f=a.stateNode,typeof f.componentWillUnmount==="function"&&wS(a,t,f)),tr(e,t,a);break;case 21:tr(e,t,a);break;case 22:Va=(f=Va)||a.memoizedState!==null,tr(e,t,a),Va=f;break;default:tr(e,t,a)}(a.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(a,ze,Ve,Sa,ba),Zo(o),cl(l),ba=r,wa=u}function OS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Y(t,bM,e)}catch(a){jt(t,t.return,a)}}}function qS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Y(t,xM,e)}catch(a){jt(t,t.return,a)}}function BR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rL),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rL),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Fp(e,t){var a=BR(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Tl)if(zu!==null&&Uu!==null)Gd(Uu,zu);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=$R.bind(null,e,o);o.then(l,l)}})}function Uo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var l=e,r=t,u=a[o],f=Wo(),v=r;e:for(;v!==null;){switch(v.tag){case 27:if(Gr(v.type)){$a=v.stateNode,_o=!1;break e}break;case 5:$a=v.stateNode,_o=!1;break e;case 3:case 4:$a=v.stateNode.containerInfo,_o=!0;break e}v=v.return}if($a===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");NS(l,r,u),$a=null,_o=!1,(u.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&sl(u,ze,Ve,"Unmount"),Zo(f),l=u,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)BS(t,e),t=t.sibling}function BS(e,t){var a=Wo(),o=dl(),l=fl(),r=pl(),{alternate:u,flags:f}=e;switch(e.tag){case 0:case 11:case 14:case 15:Uo(t,e),Po(e),f&4&&(eu(Ao|Rn,e,e.return),Ud(Ao|Rn,e),by(e,e.return,rn|Rn));break;case 1:if(Uo(t,e),Po(e),f&512&&(Va||u===null||yl(u,u.return)),f&64&&mr&&(f=e.updateQueue,f!==null&&(u=f.callbacks,u!==null))){var v=f.shared.hiddenCallbacks;f.shared.hiddenCallbacks=v===null?u:v.concat(u)}break;case 26:if(v=Xn,Uo(t,e),Po(e),f&512&&(Va||u===null||yl(u,u.return)),f&4){var S=u!==null?u.memoizedState:null;if(f=e.memoizedState,u===null)if(f===null)if(e.stateNode===null){e:{f=e.type,u=e.memoizedProps,v=v.ownerDocument||v;t:switch(f){case"title":if(S=v.getElementsByTagName("title")[0],!S||S[tc]||S[fo]||S.namespaceURI===mu||S.hasAttribute("itemprop"))S=v.createElement(f),v.head.insertBefore(S,v.querySelector("head > title"));co(S,f,u),S[fo]=e,Be(S),f=S;break e;case"link":var N=X1("link","href",v).get(f+(u.href||""));if(N){for(var q=0;q<N.length;q++)if(S=N[q],S.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&S.getAttribute("rel")===(u.rel==null?null:u.rel)&&S.getAttribute("title")===(u.title==null?null:u.title)&&S.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){N.splice(q,1);break t}}S=v.createElement(f),co(S,f,u),v.head.appendChild(S);break;case"meta":if(N=X1("meta","content",v).get(f+(u.content||""))){for(q=0;q<N.length;q++)if(S=N[q],we(u.content,"content"),S.getAttribute("content")===(u.content==null?null:""+u.content)&&S.getAttribute("name")===(u.name==null?null:u.name)&&S.getAttribute("property")===(u.property==null?null:u.property)&&S.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&S.getAttribute("charset")===(u.charSet==null?null:u.charSet)){N.splice(q,1);break t}}S=v.createElement(f),co(S,f,u),v.head.appendChild(S);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+f+'". This is a bug in React.')}S[fo]=e,Be(S),f=S}e.stateNode=f}else Y1(v,e.type,e.stateNode);else e.stateNode=j1(v,f,e.memoizedProps);else S!==f?(S===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):S.count--,f===null?Y1(v,e.type,e.stateNode):j1(v,f,e.memoizedProps)):f===null&&e.stateNode!==null&&Sy(e,e.memoizedProps,u.memoizedProps)}break;case 27:Uo(t,e),Po(e),f&512&&(Va||u===null||yl(u,u.return)),u!==null&&f&4&&Sy(e,e.memoizedProps,u.memoizedProps);break;case 5:if(Uo(t,e),Po(e),f&512&&(Va||u===null||yl(u,u.return)),e.flags&32){v=e.stateNode;try{Y(e,O1,v)}catch(ye){jt(e,e.return,ye)}}f&4&&e.stateNode!=null&&(v=e.memoizedProps,Sy(e,v,u!==null?u.memoizedProps:v)),f&1024&&(ob=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Uo(t,e),Po(e),f&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");f=e.memoizedProps,u=u!==null?u.memoizedProps:f,v=e.stateNode;try{Y(e,rM,v,u,f)}catch(ye){jt(e,e.return,ye)}}break;case 3:if(v=Kl(),nh=null,S=Xn,Xn=Wp(t.containerInfo),Uo(t,e),Xn=S,Po(e),f&4&&u!==null&&u.memoizedState.isDehydrated)try{Y(e,vM,t.containerInfo)}catch(ye){jt(e,e.return,ye)}ob&&(ob=!1,zS(e)),t.effectDuration+=mp(v);break;case 4:f=Xn,Xn=Wp(e.stateNode.containerInfo),Uo(t,e),Po(e),Xn=f;break;case 12:f=Kl(),Uo(t,e),Po(e),e.stateNode.effectDuration+=Id(f);break;case 31:Uo(t,e),Po(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Fp(e,f)));break;case 13:Uo(t,e),Po(e),e.child.flags&8192&&e.memoizedState!==null!==(u!==null&&u.memoizedState!==null)&&(Gm=Ja()),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Fp(e,f)));break;case 22:v=e.memoizedState!==null;var A=u!==null&&u.memoizedState!==null,_=mr,fe=Va;if(mr=_||v,Va=fe||A,Uo(t,e),Va=fe,mr=_,A&&!v&&!_&&!fe&&(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&np(e,ze,Ve),Po(e),f&8192)e:for(t=e.stateNode,t._visibility=v?t._visibility&~dc:t._visibility|dc,!v||u===null||A||mr||Va||(Js(e),(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&sl(e,ze,Ve,"Disconnect")),u=null,t=e;;){if(t.tag===5||t.tag===26){if(u===null){A=u=t;try{S=A.stateNode,v?Y(A,dM,S):Y(A,pM,A.stateNode,A.memoizedProps)}catch(ye){jt(A,A.return,ye)}}}else if(t.tag===6){if(u===null){A=t;try{N=A.stateNode,v?Y(A,cM,N):Y(A,mM,N,A.memoizedProps)}catch(ye){jt(A,A.return,ye)}}}else if(t.tag===18){if(u===null){A=t;try{q=A.stateNode,v?Y(A,uM,q):Y(A,fM,A.stateNode)}catch(ye){jt(A,A.return,ye)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;u===t&&(u=null),t=t.return}u===t&&(u=null),t.sibling.return=t.return,t=t.sibling}f&4&&(f=e.updateQueue,f!==null&&(u=f.retryQueue,u!==null&&(f.retryQueue=null,Fp(e,u))));break;case 19:Uo(t,e),Po(e),f&4&&(f=e.updateQueue,f!==null&&(e.updateQueue=null,Fp(e,f)));break;case 30:break;case 21:break;default:Uo(t,e),Po(e)}(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&((wa||0.05<Sa)&&il(e,ze,Ve,Sa,ba),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ve-ze&&(AS(e.return.alternate,e.return)||sl(e,ze,Ve,"Mount"))),Zo(a),cl(o),ba=l,wa=r}function Po(e){var t=e.flags;if(t&2){try{Y(e,OR,e)}catch(a){jt(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)DS(e,t.alternate,t),t=t.sibling}function US(e){var t=Wo(),a=dl(),o=fl(),l=pl();switch(e.tag){case 0:case 11:case 14:case 15:by(e,e.return,rn),Js(e);break;case 1:yl(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount==="function"&&wS(e,e.return,r),Js(e);break;case 27:Y(e,Yd,e.stateNode);case 26:case 5:yl(e,e.return),Js(e);break;case 22:e.memoizedState===null&&Js(e);break;case 30:Js(e);break;default:Js(e)}(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(e,ze,Ve,Sa,ba),Zo(t),cl(a),ba=o,wa=l}function Js(e){for(e=e.child;e!==null;)US(e),e=e.sibling}function PS(e,t,a,o){var l=Wo(),r=dl(),u=fl(),f=pl(),v=a.flags;switch(a.tag){case 0:case 11:case 15:bl(e,a,o),kS(a,rn);break;case 1:if(bl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&Y(a,Vv,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{Y(a,vR,t,e)}catch(S){jt(a,a.return,S)}}o&&v&64&&LS(a),Pd(a,a.return);break;case 27:MS(a);case 26:case 5:bl(e,a,o),o&&t===null&&v&4&&IS(a),Pd(a,a.return);break;case 12:if(o&&v&4){v=Kl(),bl(e,a,o),o=a.stateNode,o.effectDuration+=Id(v);try{Y(a,TS,a,t,Jr,o.effectDuration)}catch(S){jt(a,a.return,S)}}else bl(e,a,o);break;case 31:bl(e,a,o),o&&v&4&&OS(e,a);break;case 13:bl(e,a,o),o&&v&4&&qS(e,a);break;case 22:a.memoizedState===null&&bl(e,a,o),Pd(a,a.return);break;case 30:break;default:bl(e,a,o)}(a.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(a,ze,Ve,Sa,ba),Zo(l),cl(r),ba=u,wa=f}function bl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)PS(e,t.alternate,t,a),t=t.sibling}function Ly(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&&Ys(e),a!=null&&Td(a))}function wy(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Ys(t),e!=null&&Td(e))}function Hn(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var r=t.sibling;_S(e,t,a,o,r!==null?r.actualStartTime:l),t=r}}function _S(e,t,a,o,l){var r=Wo(),u=dl(),f=fl(),v=pl(),S=Qr,N=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&dt)!==Ye&&0<t.actualStartTime&&(t.flags&1)!==0&&lp(t,t.actualStartTime,l,Qa,a),Hn(e,t,a,o,l),N&2048&&CS(t,Do|Rn);break;case 1:(t.mode&dt)!==Ye&&0<t.actualStartTime&&((t.flags&128)!==0?ig(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&lp(t,t.actualStartTime,l,Qa,a)),Hn(e,t,a,o,l);break;case 3:var q=Kl(),A=Qa;Qa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,Hn(e,t,a,o,l),Qa=A,N&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(Ys(o),a!=null&&Td(a))),e.passiveEffectDuration+=mp(q);break;case 12:if(N&2048){N=Kl(),Hn(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=Id(N);try{Y(t,NR,t,t.alternate,Jr,e.passiveEffectDuration)}catch(_){jt(t,t.return,_)}}else Hn(e,t,a,o,l);break;case 31:N=Qa,q=t.alternate!==null?t.alternate.memoizedState:null,A=t.memoizedState,q!==null&&A===null?(A=t.deletions,A!==null&&0<A.length&&A[0].tag===18?(Qa=!1,q=q.hydrationErrors,q!==null&&ig(t,t.actualStartTime,l,q)):Qa=!0):Qa=!1,Hn(e,t,a,o,l),Qa=N;break;case 13:N=Qa,q=t.alternate!==null?t.alternate.memoizedState:null,A=t.memoizedState,q===null||q.dehydrated===null||A!==null&&A.dehydrated!==null?Qa=!1:(A=t.deletions,A!==null&&0<A.length&&A[0].tag===18?(Qa=!1,q=q.hydrationErrors,q!==null&&ig(t,t.actualStartTime,l,q)):Qa=!0),Hn(e,t,a,o,l),Qa=N;break;case 23:break;case 22:A=t.stateNode,q=t.alternate,t.memoizedState!==null?A._visibility&nr?Hn(e,t,a,o,l):_d(e,t,a,o,l):A._visibility&nr?Hn(e,t,a,o,l):(A._visibility|=nr,tu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&dt)===Ye||Qa||(e=t.actualStartTime,0<=e&&0.05<l-e&&np(t,e,l),0<=ze&&0<=Ve&&0.05<Ve-ze&&np(t,ze,Ve))),N&2048&&Ly(q,t);break;case 24:Hn(e,t,a,o,l),N&2048&&wy(t.alternate,t);break;default:Hn(e,t,a,o,l)}if((t.mode&dt)!==Ye){if(e=!Qa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&sl(t,a,l,"Mount");0<=ze&&0<=Ve&&((wa||0.05<Sa)&&il(t,ze,Ve,Sa,ba),e&&0.05<Ve-ze&&sl(t,ze,Ve,"Mount"))}Zo(r),cl(u),ba=f,wa=v,Qr=S}function tu(e,t,a,o,l,r){l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var u=t.sibling;HS(e,t,a,o,l,u!==null?u.actualStartTime:r),t=u}}function HS(e,t,a,o,l,r){var u=Wo(),f=dl(),v=fl(),S=pl(),N=Qr;l&&(t.mode&dt)!==Ye&&0<t.actualStartTime&&(t.flags&1)!==0&&lp(t,t.actualStartTime,r,Qa,a);var q=t.flags;switch(t.tag){case 0:case 11:case 15:tu(e,t,a,o,l,r),CS(t,Do);break;case 23:break;case 22:var A=t.stateNode;t.memoizedState!==null?A._visibility&nr?tu(e,t,a,o,l,r):_d(e,t,a,o,r):(A._visibility|=nr,tu(e,t,a,o,l,r)),l&&q&2048&&Ly(t.alternate,t);break;case 24:tu(e,t,a,o,l,r),l&&q&2048&&wy(t.alternate,t);break;default:tu(e,t,a,o,l,r)}(t.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(t,ze,Ve,Sa,ba),Zo(u),cl(f),ba=v,wa=S,Qr=N}function _d(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var r=t.child;r!==null;){t=r.sibling;var u=e,f=a,v=o,S=t!==null?t.actualStartTime:l,N=Qr;(r.mode&dt)!==Ye&&0<r.actualStartTime&&(r.flags&1)!==0&&lp(r,r.actualStartTime,S,Qa,f);var q=r.flags;switch(r.tag){case 22:_d(u,r,f,v,S),q&2048&&Ly(r.alternate,r);break;case 24:_d(u,r,f,v,S),q&2048&&wy(r.alternate,r);break;default:_d(u,r,f,v,S)}Qr=N,r=t}}function au(e,t,a){if(e.subtreeFlags&Ac)for(e=e.child;e!==null;)FS(e,t,a),e=e.sibling}function FS(e,t,a){switch(e.tag){case 26:au(e,t,a),e.flags&Ac&&e.memoizedState!==null&&LM(a,Xn,e.memoizedState,e.memoizedProps);break;case 5:au(e,t,a);break;case 3:case 4:var o=Xn;Xn=Wp(e.stateNode.containerInfo),au(e,t,a),Xn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Ac,Ac=16777216,au(e,t,a),Ac=o):au(e,t,a));break;default:au(e,t,a)}}function GS(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 Hd(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],l=Wo();to=o,jS(o,e),(o.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&sl(o,ze,Ve,"Unmount"),Zo(l)}GS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)VS(e),e=e.sibling}function VS(e){var t=Wo(),a=dl(),o=fl(),l=pl();switch(e.tag){case 0:case 11:case 15:Hd(e),e.flags&2048&&xy(e,e.return,Do|Rn);break;case 3:var r=Kl();Hd(e),e.stateNode.passiveEffectDuration+=mp(r);break;case 12:r=Kl(),Hd(e),e.stateNode.passiveEffectDuration+=Id(r);break;case 22:r=e.stateNode,e.memoizedState!==null&&r._visibility&nr&&(e.return===null||e.return.tag!==13)?(r._visibility&=~nr,Gp(e),(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&sl(e,ze,Ve,"Disconnect")):Hd(e);break;default:Hd(e)}(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(e,ze,Ve,Sa,ba),Zo(t),cl(a),wa=l,ba=o}function Gp(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],l=Wo();to=o,jS(o,e),(o.mode&dt)!==Ye&&0<=ze&&0<=Ve&&0.05<Ve-ze&&sl(o,ze,Ve,"Unmount"),Zo(l)}GS(e)}for(e=e.child;e!==null;)$S(e),e=e.sibling}function $S(e){var t=Wo(),a=dl(),o=fl(),l=pl();switch(e.tag){case 0:case 11:case 15:xy(e,e.return,Do),Gp(e);break;case 22:var r=e.stateNode;r._visibility&nr&&(r._visibility&=~nr,Gp(e));break;default:Gp(e)}(e.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(e,ze,Ve,Sa,ba),Zo(t),cl(a),wa=l,ba=o}function jS(e,t){for(;to!==null;){var a=to,o=a,l=t,r=Wo(),u=dl(),f=fl(),v=pl();switch(o.tag){case 0:case 11:case 15:xy(o,l,Do);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&Ys(l));break;case 24:Td(o.memoizedState.cache)}if((o.mode&dt)!==Ye&&0<=ze&&0<=Ve&&(wa||0.05<Sa)&&il(o,ze,Ve,Sa,ba),Zo(r),cl(u),wa=v,ba=f,o=a.child,o!==null)o.return=a,to=o;else e:for(a=e;to!==null;){if(o=to,r=o.sibling,u=o.return,ES(o),o===a){to=null;break e}if(r!==null){r.return=u,to=r;break e}to=u}}}function zR(){nD.forEach(function(e){return e()})}function XS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||j.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Jo(e){if((Nt&Wa)!==ao&&ft!==0)return ft&-ft;var t=j.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Ny()):z()}function YS(){if(Fo===0)if((ft&536870912)===0||Tt){var e=im;im<<=1,(im&3932160)===0&&(im=262144),Fo=e}else Fo=536870912;return e=ln.current,e!==null&&(e.flags|=32),Fo}function La(e,t,a){if(Hu&&console.error("useInsertionEffect must not schedule updates."),mb&&(Xm=!0),e===aa&&(Zt===mi||Zt===hi)||e.cancelPendingCommit!==null)nu(e,0),Hr(e,ft,Fo,!1);if(Mr(e,a),(Nt&Wa)!==ao&&e===aa){if(Ll)switch(t.tag){case 0:case 11:case 15:e=mt&&V(mt)||"Unknown",SL.has(e)||(SL.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:xL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),xL=!0)}}else Tl&&hd(e,t,a),XR(t),e===aa&&((Nt&Wa)===ao&&(is|=a),ka===ls&&Hr(e,ft,Fo,!1)),xl(e)}function QS(e,t,a){if((Nt&(Wa|sn))!==ao)throw Error("Should not already be working.");if(ft!==0&&mt!==null){var o=mt,l=Ja();switch(pC){case Nc:case mi:var r=gc;da&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",r,l,xn,void 0,"primary-light")):console.timeStamp("Suspended",r,l,xn,void 0,"primary-light"));break;case hi:r=gc,da&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",r,l,xn,void 0,"primary-light")):console.timeStamp("Action",r,l,xn,void 0,"primary-light"));break;default:da&&(o=l-gc,3>o||console.timeStamp("Blocked",gc,l,xn,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}r=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||so(e,t))?PR(e,t):Iy(e,t,!0);var u=a;do{if(r===hr){Pu&&!a&&Hr(e,t,0,!1),t=Zt,gc=Ha(),pC=t;break}else{if(o=Ja(),l=e.current.alternate,u&&!UR(l)){Yo(t),l=eo,r=o,!da||r<=l||(Ma?Ma.run(console.timeStamp.bind(console,"Teared Render",l,r,Lt,xt,"error")):console.timeStamp("Teared Render",l,r,Lt,xt,"error")),ei(t,o),r=Iy(e,t,!1),u=!1;continue}if(r===pi){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){Yo(t),ug(eo,o,t,Ma),ei(t,o),t=f;e:{o=e,r=u,u=qc;var v=o.current.memoizedState.isDehydrated;if(v&&(nu(o,f).flags|=256),f=Iy(o,f,!1),f!==pi){if(rb&&!v){o.errorRecoveryDisabledLanes|=r,is|=r,r=ls;break e}o=Eo,Eo=u,o!==null&&(Eo===null?Eo=o:Eo.push.apply(Eo,o))}r=f}if(u=!1,r!==pi)continue;else o=Ja()}}if(r===Ec){Yo(t),ug(eo,o,t,Ma),ei(t,o),nu(e,0),Hr(e,t,0,!0);break}e:{switch(a=e,r){case hr:case Ec:throw Error("Root did not complete. This is a bug in React.");case ls:if((t&4194048)!==t)break;case Pm:Yo(t),Q0(eo,o,t,Ma),ei(t,o),l=t,(l&127)!==0?Lm=o:(l&4194048)!==0&&(wm=o),Hr(a,t,Fo,!rs);break e;case pi:Eo=null;break;case Um:case sL:break;default:throw Error("Unknown root exit status.")}if(j.actQueue!==null)Ry(a,l,t,Eo,Bc,Fm,Fo,is,gi,r,null,null,eo,o);else{if((t&62914560)===t&&(u=Gm+dL-Ja(),10<u)){if(Hr(a,t,Fo,!rs),ua(a,0,!0)!==0)break e;Yn=t,a.timeoutHandle=ML(WS.bind(null,a,l,Eo,Bc,Fm,t,Fo,is,gi,rs,r,"Throttled",eo,o),u);break e}WS(a,l,Eo,Bc,Fm,t,Fo,is,gi,rs,r,null,eo,o)}}}break}while(1);xl(e)}function WS(e,t,a,o,l,r,u,f,v,S,N,q,A,_){e.timeoutHandle=Si;var fe=t.subtreeFlags,ye=null;if(fe&8192||(fe&16785408)===16785408){if(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yl},FS(t,r,ye),fe=(r&62914560)===r?Gm-Ja():(r&4194048)===r?uL-Ja():0,fe=wM(ye,fe),fe!==null){Yn=r,e.cancelPendingCommit=fe(Ry.bind(null,e,t,r,a,o,l,u,f,v,N,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,A,_)),Hr(e,r,u,!S);return}}Ry(e,t,r,a,o,l,u,f,v,N,ye,q,A,_)}function UR(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var l=a[o],r=l.getSnapshot;l=l.value;try{if(!Ro(r(),l))return!1}catch(u){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hr(e,t,a,o){t&=~sb,t&=~is,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var r=31-wo(l),u=1<<r;o[r]=-1,l&=~u}a!==0&&Bs(e,a,t)}function ou(){return(Nt&(Wa|sn))===ao?(Vd(0,!1),!1):!0}function Ty(){if(mt!==null){if(Zt===Ho)var e=mt.return;else e=mt,cp(),zg(e),Au=null,wc=0,e=mt;for(;e!==null;)SS(e.alternate,e),e=e.return;mt=null}}function ei(e,t){(e&127)!==0&&(es=t),(e&4194048)!==0&&(Dl=t),(e&62914560)!==0&&(cC=t),(e&2080374784)!==0&&(fC=t)}function nu(e,t){da&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",xt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",xt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",xt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",xt,"primary-light"));var a=eo;if(eo=Ha(),ft!==0&&0<a){if(Yo(ft),ka===Um||ka===ls)Q0(a,eo,t,Ma);else{var o=eo,l=Ma;if(da&&!(o<=a)){var r=(t&738197653)===t?"tertiary-dark":"primary-dark",u=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,u,a,o,Lt,xt,r)):console.timeStamp(u,a,o,Lt,xt,r)}}ei(ft,eo)}if(a=Ma,Ma=null,(t&127)!==0){Ma=pc,l=0<=Al&&Al<es?es:Al,o=0<=li&&li<es?es:li,r=0<=o?o:0<=l?l:eo,0<=Lm?(Yo(2),W0(Lm,r,t,a)):(Tm&127)!==0&&(Yo(2),Ld(es,r,dr)),a=l;var f=o,v=mc,S=0<Iu,N=ts===fc,q=ts===Cm;if(l=eo,o=pc,r=Pv,u=_v,da){if(Lt="Blocking",0<a?a>l&&(a=l):a=l,0<f?f>a&&(f=a):f=a,v!==null&&a>f){var A=S?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,S?"Consecutive":"Event: "+v,f,a,Lt,xt,A)):console.timeStamp(S?"Consecutive":"Event: "+v,f,a,Lt,xt,A)}l>a&&(f=N?"error":(t&738197653)===t?"tertiary-light":"primary-light",N=q?"Promise Resolved":N?"Cascading Update":5<l-a?"Update Blocked":"Update",q=[],u!=null&&q.push(["Component name",u]),r!=null&&q.push(["Method name",r]),a={start:a,end:l,detail:{devtools:{properties:q,track:Lt,trackGroup:xt,color:f}}},o?o.run(performance.measure.bind(performance,N,a)):performance.measure(N,a))}Al=-1.1,ts=0,_v=Pv=null,Lm=-1.1,Iu=li,li=-1.1,es=Ha()}if((t&4194048)!==0&&(Ma=hc,l=0<=ur&&ur<Dl?Dl:ur,a=0<=Tn&&Tn<Dl?Dl:Tn,o=0<=as&&as<Dl?Dl:as,r=0<=o?o:0<=a?a:eo,0<=wm?(Yo(256),W0(wm,r,t,Ma)):(Tm&4194048)!==0&&(Yo(256),Ld(Dl,r,dr)),q=o,f=ri,v=0<os,S=Hv===Cm,r=eo,o=hc,u=uC,N=dC,da&&(Lt="Transition",0<a?a>r&&(a=r):a=r,0<l?l>a&&(l=a):l=a,0<q?q>l&&(q=l):q=l,l>q&&f!==null&&(A=v?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+f,q,l,Lt,xt,A)):console.timeStamp(v?"Consecutive":"Event: "+f,q,l,Lt,xt,A)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,Lt,xt,"primary-dark")):console.timeStamp("Action",l,a,Lt,xt,"primary-dark")),r>a&&(l=S?"Promise Resolved":5<r-a?"Update Blocked":"Update",q=[],N!=null&&q.push(["Component name",N]),u!=null&&q.push(["Method name",u]),a={start:a,end:r,detail:{devtools:{properties:q,track:Lt,trackGroup:xt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a))),Tn=ur=-1.1,Hv=0,wm=-1.1,os=as,as=-1.1,Dl=Ha()),(t&62914560)!==0&&(Tm&62914560)!==0&&(Yo(4194304),Ld(cC,eo,dr)),(t&2080374784)!==0&&(Tm&2080374784)!==0&&(Yo(268435456),Ld(fC,eo,dr)),a=e.timeoutHandle,a!==Si&&(e.timeoutHandle=Si,yD(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Yn=0,Ty(),aa=e,mt=a=Ql(e.current,null),ft=t,Zt=Ho,un=null,rs=!1,Pu=so(e,t),rb=!1,ka=hr,gi=Fo=sb=is=ss=0,Eo=qc=null,Fm=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-wo(o),r=1<<l,t|=e[l],o&=~r;return Nl=t,rp(),e=oC(),1000<e-aC&&(j.recentlyCreatedOwnerStacks=0,aC=e),$n.discardPendingWarnings(),a}function ZS(e,t){Ke=null,j.H=Mc,j.getCurrentStack=null,Ll=!1,an=null,t===Mu||t===Am?(t=vx(),Zt=Nc):t===$v?(t=vx(),Zt=iL):Zt=t===tb?lb:t!==null&&typeof t==="object"&&typeof t.then==="function"?Oc:_m,un=t;var a=mt;a===null?(ka=Ec,Bp(e,Qo(t,e.current))):a.mode&dt&&Lg(a)}function KS(){var e=ln.current;return e===null?!0:(ft&4194048)===ft?In===null?!0:!1:(ft&62914560)===ft||(ft&536870912)!==0?e===In:!1}function JS(){var e=j.H;return j.H=Mc,e===null?Mc:e}function e1(){var e=j.A;return j.A=oD,e}function Vp(e){Ma===null&&(Ma=e._debugTask==null?null:e._debugTask)}function $p(){ka=ls,rs||(ft&4194048)!==ft&&ln.current!==null||(Pu=!0),(ss&134217727)===0&&(is&134217727)===0||aa===null||Hr(aa,ft,Fo,!1)}function Iy(e,t,a){var o=Nt;Nt|=Wa;var l=JS(),r=e1();if(aa!==e||ft!==t){if(Tl){var u=e.memoizedUpdaters;0<u.size&&(Gd(e,ft),u.clear()),Ar(e,t)}Bc=null,nu(e,t)}t=!1,u=ka;e:do try{if(Zt!==Ho&&mt!==null){var f=mt,v=un;switch(Zt){case lb:Ty(),u=Pm;break e;case Nc:case mi:case hi:case Oc:ln.current===null&&(t=!0);var S=Zt;if(Zt=Ho,un=null,lu(e,f,v,S),a&&Pu){u=hr;break e}break;default:S=Zt,Zt=Ho,un=null,lu(e,f,v,S)}}t1(),u=ka;break}catch(N){ZS(e,N)}while(1);return t&&e.shellSuspendCounter++,cp(),Nt=o,j.H=l,j.A=r,mt===null&&(aa=null,ft=0,rp()),u}function t1(){for(;mt!==null;)a1(mt)}function PR(e,t){var a=Nt;Nt|=Wa;var o=JS(),l=e1();if(aa!==e||ft!==t){if(Tl){var r=e.memoizedUpdaters;0<r.size&&(Gd(e,ft),r.clear()),Ar(e,t)}Bc=null,Vm=Ja()+cL,nu(e,t)}else Pu=so(e,t);e:do try{if(Zt!==Ho&&mt!==null)t:switch(t=mt,r=un,Zt){case _m:Zt=Ho,un=null,lu(e,t,r,_m);break;case mi:case hi:if(gx(r)){Zt=Ho,un=null,o1(t);break}t=function(){Zt!==mi&&Zt!==hi||aa!==e||(Zt=Hm),xl(e)},r.then(t,t);break e;case Nc:Zt=Hm;break e;case iL:Zt=nb;break e;case Hm:gx(r)?(Zt=Ho,un=null,o1(t)):(Zt=Ho,un=null,lu(e,t,r,Hm));break;case nb:var u=null;switch(mt.tag){case 26:u=mt.memoizedState;case 5:case 27:var f=mt;if(u?Q1(u):f.stateNode.complete){Zt=Ho,un=null;var v=f.sibling;if(v!==null)mt=v;else{var S=f.return;S!==null?(mt=S,jp(S)):mt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Zt=Ho,un=null,lu(e,t,r,nb);break;case Oc:Zt=Ho,un=null,lu(e,t,r,Oc);break;case lb:Ty(),ka=Pm;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}j.actQueue!==null?t1():_R();break}catch(N){ZS(e,N)}while(1);if(cp(),j.H=o,j.A=l,Nt=a,mt!==null)return hr;return aa=null,ft=0,rp(),ka}function _R(){for(;mt!==null&&!UM();)a1(mt)}function a1(e){var t=e.alternate;(e.mode&dt)!==Ye?(Cg(e),t=Y(e,yy,t,e,Nl),Lg(e)):t=Y(e,yy,t,e,Nl),e.memoizedProps=e.pendingProps,t===null?jp(e):mt=t}function o1(e){var t=Y(e,HR,e);e.memoizedProps=e.pendingProps,t===null?jp(e):mt=t}function HR(e){var t=e.alternate,a=(e.mode&dt)!==Ye;switch(a&&Cg(e),e.tag){case 15:case 0:t=mS(t,e,e.pendingProps,e.type,void 0,ft);break;case 11:t=mS(t,e,e.pendingProps,e.type.render,e.ref,ft);break;case 5:zg(e);default:SS(t,e),e=mt=ax(e,Nl),t=yy(t,e,Nl)}return a&&Lg(e),t}function lu(e,t,a,o){cp(),zg(t),Au=null,wc=0;var l=t.return;try{if(wR(e,l,t,a,ft)){ka=Ec,Bp(e,Qo(a,e.current)),mt=null;return}}catch(r){if(l!==null)throw mt=l,r;ka=Ec,Bp(e,Qo(a,e.current)),mt=null;return}if(t.flags&32768){if(Tt||o===_m)e=!0;else if(Pu||(ft&536870912)!==0)e=!1;else if(rs=e=!0,o===mi||o===hi||o===Nc||o===Oc)o=ln.current,o!==null&&o.tag===13&&(o.flags|=16384);n1(t,e)}else jp(t)}function jp(e){var t=e;do{if((t.flags&32768)!==0){n1(t,rs);return}var a=t.alternate;if(e=t.return,Cg(t),a=Y(t,RR,a,t,Nl),(t.mode&dt)!==Ye&&cx(t),a!==null){mt=a;return}if(t=t.sibling,t!==null){mt=t;return}mt=t=e}while(t!==null);ka===hr&&(ka=sL)}function n1(e,t){do{var a=MR(e.alternate,e);if(a!==null){a.flags&=32767,mt=a;return}if((e.mode&dt)!==Ye){cx(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)){mt=e;return}mt=e=a}while(e!==null);ka=Pm,mt=null}function Ry(e,t,a,o,l,r,u,f,v,S,N,q,A,_){e.cancelPendingCommit=null;do Fd();while(ja!==ds);if($n.flushLegacyContextWarning(),$n.flushPendingUnsafeLifecycleWarnings(),(Nt&(Wa|sn))!==ao)throw Error("Should not already be working.");if(Yo(a),S===pi?ug(A,_,a,Ma):o!==null?fR(A,_,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Ma):cR(A,_,a,Ma),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(r=t.lanes|t.childLanes,r|=Ov,Qf(e,a,r,u,f,v),e===aa&&(mt=aa=null,ft=0),_u=t,cs=e,Yn=a,db=r,fb=l,yL=o,cb=_,vL=q,Qn=$m,bL=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,jR(cu,function(){return Fc=window.event,Qn===$m&&(Qn=ub),u1(),null})):(e.callbackNode=null,e.callbackPriority=0),ir=null,Jr=Ha(),q!==null&&pR(_,Jr,q,Ma),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=j.T,j.T=null,l=Xt.p,Xt.p=on,u=Nt,Nt|=sn;try{qR(e,t,a)}finally{Nt=u,Xt.p=l,j.T=o}}ja=pL,l1(),r1(),s1()}}function l1(){if(ja===pL){ja=ds;var e=cs,t=_u,a=Yn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=j.T,j.T=null;var l=Xt.p;Xt.p=on;var r=Nt;Nt|=sn;try{zu=a,Uu=e,hp(),BS(t,e),Uu=zu=null,a=Cb;var u=j0(e.containerInfo),f=a.focusedElem,v=a.selectionRange;if(u!==f&&f&&f.ownerDocument&&$0(f.ownerDocument.documentElement,f)){if(v!==null&&rg(f)){var{start:S,end:N}=v;if(N===void 0&&(N=S),"selectionStart"in f)f.selectionStart=S,f.selectionEnd=Math.min(N,f.value.length);else{var q=f.ownerDocument||document,A=q&&q.defaultView||window;if(A.getSelection){var _=A.getSelection(),fe=f.textContent.length,ye=Math.min(v.start,fe),la=v.end===void 0?ye:Math.min(v.end,fe);!_.extend&&ye>la&&(u=la,la=ye,ye=u);var Mt=V0(f,ye),M=V0(f,la);if(Mt&&M&&(_.rangeCount!==1||_.anchorNode!==Mt.node||_.anchorOffset!==Mt.offset||_.focusNode!==M.node||_.focusOffset!==M.offset)){var D=q.createRange();D.setStart(Mt.node,Mt.offset),_.removeAllRanges(),ye>la?(_.addRange(D),_.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),_.addRange(D))}}}}q=[];for(_=f;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});typeof f.focus==="function"&&f.focus();for(f=0;f<q.length;f++){var E=q[f];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}sh=!!kb,Cb=kb=null}finally{Nt=r,Xt.p=l,j.T=o}}e.current=t,ja=mL}}function r1(){if(ja===mL){ja=ds;var e=bL;if(e!==null){Jr=Ha();var t=sr,a=Jr;!da||a<=t||(dr?dr.run(console.timeStamp.bind(console,e,t,a,Lt,xt,"secondary-light")):console.timeStamp(e,t,a,Lt,xt,"secondary-light"))}e=cs,t=_u,a=Yn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=j.T,j.T=null;var l=Xt.p;Xt.p=on;var r=Nt;Nt|=sn;try{zu=a,Uu=e,hp(),DS(e,t.alternate,t),Uu=zu=null}finally{Nt=r,Xt.p=l,j.T=o}}e=cb,t=vL,sr=Ha(),e=t===null?e:Jr,t=sr,a=Qn===ib,o=Ma,ir!==null?Z0(e,t,ir,!1,o):!da||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,Lt,xt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,Lt,xt,a?"error":"secondary-dark")),ja=hL}}function s1(){if(ja===gL||ja===hL){if(ja===gL){var e=sr;sr=Ha();var t=sr,a=Qn===ib;!da||t<=e||(dr?dr.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,Lt,xt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,Lt,xt,a?" error":"secondary-light")),Qn!==ib&&(Qn=fL)}ja=ds,PM(),e=cs;var o=_u;t=Yn,a=yL;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?ja=jm:(ja=ds,_u=cs=null,i1(e,e.pendingLanes),yi=0,Uc=null);var r=e.pendingLanes;if(r===0&&(us=null),l||p1(e),r=k(t),o=o.stateNode,bo&&typeof bo.onCommitFiberRoot==="function")try{var u=(o.current.flags&128)===128;switch(r){case on:var f=fv;break;case Gn:f=pv;break;case Il:f=cu;break;case dm:f=mv;break;default:f=cu}bo.onCommitFiberRoot(fu,o,f,u)}catch(q){wl||(wl=!0,console.error("React instrumentation encountered an error: %o",q))}if(Tl&&e.memoizedUpdaters.clear(),zR(),a!==null){u=j.T,f=Xt.p,Xt.p=on,j.T=null;try{var v=e.onRecoverableError;for(o=0;o<a.length;o++){var S=a[o],N=FR(S.stack);Y(S.source,v,S.value,N)}}finally{j.T=u,Xt.p=f}}(Yn&3)!==0&&Fd(),xl(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?(Rm=!0,e===pb?zc++:(zc=0,pb=e)):zc=0,l||ei(t,sr),Vd(0,!1)}}function FR(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function i1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Td(t)))}function Fd(){return l1(),r1(),s1(),u1()}function u1(){if(ja!==jm)return!1;var e=cs,t=db;db=0;var a=k(Yn),o=Il===0||Il>a?Il:a;a=j.T;var l=Xt.p;try{Xt.p=o,j.T=null;var r=fb;fb=null,o=cs;var u=Yn;if(ja=ds,_u=cs=null,Yn=0,(Nt&(Wa|sn))!==ao)throw Error("Cannot flush passive effects while already rendering.");Yo(u),mb=!0,Xm=!1;var f=0;if(ir=null,f=Ja(),Qn===fL)Ld(sr,f,dr);else{var v=sr,S=f,N=Qn===ub;!da||S<=v||(Ma?Ma.run(console.timeStamp.bind(console,N?"Waiting for Paint":"Waiting",v,S,Lt,xt,"secondary-light")):console.timeStamp(N?"Waiting for Paint":"Waiting",v,S,Lt,xt,"secondary-light"))}v=Nt,Nt|=sn;var q=o.current;hp(),VS(q);var A=o.current;q=cb,hp(),_S(o,A,u,r,q),p1(o),Nt=v;var _=Ja();if(A=f,q=Ma,ir!==null?Z0(A,_,ir,!0,q):!da||_<=A||(q?q.run(console.timeStamp.bind(console,"Remaining Effects",A,_,Lt,xt,"secondary-dark")):console.timeStamp("Remaining Effects",A,_,Lt,xt,"secondary-dark")),ei(u,_),Vd(0,!1),Xm?o===Uc?yi++:(yi=0,Uc=o):yi=0,Xm=mb=!1,bo&&typeof bo.onPostCommitFiberRoot==="function")try{bo.onPostCommitFiberRoot(fu,o)}catch(ye){wl||(wl=!0,console.error("React instrumentation encountered an error: %o",ye))}var fe=o.current.stateNode;return fe.effectDuration=0,fe.passiveEffectDuration=0,!0}finally{Xt.p=l,j.T=a,i1(e,t)}}function d1(e,t,a){t=Qo(a,t),fx(t),t=ry(e.stateNode,t,2),e=zr(e,t,2),e!==null&&(Mr(e,2),xl(e))}function jt(e,t,a){if(Hu=!1,e.tag===3)d1(e,e,a);else{for(;t!==null;){if(t.tag===3){d1(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(us===null||!us.has(o))){e=Qo(a,e),fx(e),a=sy(2),o=zr(t,a,2),o!==null&&(iy(a,o,t,e),Mr(o,2),xl(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 Cg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new ZM;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)||(Jy=!0,n.add(a),o=qI.bind(null,e,t,a),Wn&&nc(e,a),t.then(o,o))}function qI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>tl&&(Lr=tl=Ca(),Rc=Cp("Promise Resolved"),kr=Lp):(a&4194048)!==0&&0>Ko&&(al=Ko=Ca(),Ac=Cp("Promise Resolved"),qy=Lp),BS()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,a)}}function My(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new lD;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(a)||(rb=!0,l.add(a),o=GR.bind(null,e,t,a),Tl&&Gd(e,a),t.then(o,o))}function GR(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Al&&(es=Al=Ha(),pc=km("Promise Resolved"),ts=Cm):(a&4194048)!==0&&0>Tn&&(Dl=Tn=Ha(),hc=km("Promise Resolved"),Hv=Cm),XS()&&j.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Vt===e&&(ut&a)===a&&(oa===Rr||oa===Pp&&(ut&62914560)===ut&&Na()-Gp<JL?(kt&Ea)===Pa&&Cu(e,0):eb|=a,Bs===ut&&(Bs=0)),$n(e)}function ex(e,t){t===0&&(t=su()),e=Wa(e,t),e!==null&&(Kl(e,t),$n(e))}function NI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ex(e,a)}function BI(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),ex(e,a)}function Lg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,n=t,l=n.type===np;l=a||l,n.tag!==22?n.flags&67108864?l&&j(n,tx,o,n):Lg(o,n,l):n.memoizedState===null&&(l&&n.flags&8192?j(n,tx,o,n):n.subtreeFlags&67108864&&j(n,Lg,o,n,l)),t=t.sibling}}function tx(e,t){jt(!0);try{IS(t),qS(t),RS(e,t.alternate,t,!1),AS(e,t,0,null,!1,0)}finally{jt(!1)}}function ax(e){var t=!0;e.current.mode&(Ja|mn)||(t=!1),Lg(e,e.current,t)}function ox(e){if((kt&Ea)===Pa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=F(e)||"ReactComponent",Yp!==null){if(Yp.has(t))return;Yp.add(t)}else Yp=new Set([t]);j(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 nc(e,t){Wn&&e.memoizedUpdaters.forEach(function(a){Ai(e,a,t)})}function UI(e,t){var a=G.actQueue;return a!==null?(a.push(t),JM):ny(e,t)}function PI(e){BS()&&G.actQueue===null&&j(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`),aa===e&&(ft&a)===a&&(ka===ls||ka===Um&&(ft&62914560)===ft&&Ja()-Gm<dL?(Nt&Wa)===ao&&nu(e,0):sb|=a,gi===ft&&(gi=0)),xl(e)}function c1(e,t){t===0&&(t=Gi()),e=vo(e,t),e!==null&&(Mr(e,t),xl(e))}function VR(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),c1(e,a)}function $R(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:l}=e;l!==null&&(a=l.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),c1(e,a)}function Ay(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,l=t,r=l.type===nm;r=a||r,l.tag!==22?l.flags&67108864?r&&Y(l,f1,o,l):Ay(o,l,r):l.memoizedState===null&&(r&&l.flags&8192?Y(l,f1,o,l):l.subtreeFlags&67108864&&Y(l,Ay,o,l,r)),t=t.sibling}}function f1(e,t){$t(!0);try{US(t),$S(t),PS(e,t.alternate,t,!1),HS(e,t,0,null,!1,0)}finally{$t(!1)}}function p1(e){var t=!0;e.current.mode&(xo|Vn)||(t=!1),Ay(e,e.current,t)}function m1(e){if((Nt&Wa)===ao){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=V(e)||"ReactComponent",Ym!==null){if(Ym.has(t))return;Ym.add(t)}else Ym=new Set([t]);Y(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Gd(e,t){Tl&&e.memoizedUpdaters.forEach(function(a){hd(e,a,t)})}function jR(e,t){var a=j.actQueue;return a!==null?(a.push(t),iD):cv(e,t)}function XR(e){XS()&&j.actQueue===null&&Y(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,65 +172,68 @@ 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`,F(e))})}function $n(e){e!==ri&&e.next===null&&(ri===null?Qp=ri=e:ri=ri.next=e),Zp=!0,G.actQueue!==null?ib||(ib=!0,sx()):ub||(ub=!0,sx())}function lc(e,t){if(!cb&&Zp){cb=!0;do{var a=!1;for(var o=Qp;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var l=0;else{var s=o.suspendedLanes,c=o.pingedLanes;l=(1<<31-no(42|e)+1)-1,l&=n&~(s&~c),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,rx(o,l))}else l=ut,l=es(o,o===Vt?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Hs),(l&3)===0||ts(o,l)||(a=!0,rx(o,l));o=o.next}}while(a);cb=!1}}function zI(){od=window.event,kg()}function kg(){Zp=ib=ub=!1;var e=0;Nr!==0&&jI()&&(e=Nr);for(var t=Na(),a=null,o=Qp;o!==null;){var n=o.next,l=nx(o,t);if(l===0)o.next=null,a===null?Qp=n:a.next=n,n===null&&(ri=a);else if(a=o,e!==0||(l&3)!==0)Zp=!0;o=n}Ia!==Or&&Ia!==jp||lc(e,!1),Nr!==0&&(Nr=0)}function nx(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,l=e.pendingLanes&-62914561;0<l;){var s=31-no(l),c=1<<s,p=n[s];if(p===-1){if((c&a)===0||(c&o)!==0)n[s]=Fm(c,t)}else p<=t&&(e.expiredLanes|=c);l&=~c}if(t=Vt,a=ut,a=es(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Hs),o=e.callbackNode,a===0||e===t&&(zt===qs||zt===Ns)||e.cancelPendingCommit!==null)return o!==null&&wg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ts(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==db)wg(o);else return t;switch(b(a)){case qo:case pn:a=ry;break;case Kn:a=Mu;break;case cp:a=sy;break;default:a=Mu}return o=lx.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=db):a=ny(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&wg(o),e.callbackPriority=2,e.callbackNode=null,2}function lx(e,t){if(Rp=Ip=!1,od=window.event,Ia!==Or&&Ia!==jp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vn===$p&&(vn=ab),oc()&&e.callbackNode!==a)return null;var o=ut;if(o=es(e,e===Vt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Hs),o===0)return null;return PS(e,o,t),nx(e,Na()),e.callbackNode!=null&&e.callbackNode===a?lx.bind(null,e):null}function rx(e,t){if(oc())return null;Ip=Rp,Rp=!1,PS(e,t,!0)}function wg(e){e!==db&&e!==null&&RR(e)}function sx(){G.actQueue!==null&&G.actQueue.push(function(){return kg(),null}),iA(function(){(kt&(Ea|Po))!==Pa?ny(ly,zI):kg()})}function Tg(){if(Nr===0){var e=Is;e===0&&(e=sp,sp<<=1,(sp&261888)===0&&(sp=256)),Nr=e}return Nr}function ux(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Ge(e,"action"),Bi(""+e)}function ix(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 _I(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var l=ux((n[lo]||null).action),s=o.submitter;s&&(t=(t=s[lo]||null)?ux(t.formAction):s.getAttribute("formAction"),t!==null&&(l=t,s=null));var c=new hp("action","action",null,o,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Nr!==0){var p=s?ix(n,s):new FormData(n),g={pending:!0,data:p,method:n.method,action:l};Object.freeze(g),jh(a,g,null,p)}}else typeof l==="function"&&(c.preventDefault(),p=s?ix(n,s):new FormData(n),g={pending:!0,data:p,method:n.method,action:l},Object.freeze(g),jh(a,g,l,p))},currentTarget:n}]})}}function Xf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){Ly(o)}e.currentTarget=null}function cx(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,l=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var c=o[s],p=c.instance,g=c.currentTarget;if(c=c.listener,p!==n&&l.isPropagationStopped())break e;p!==null?j(p,Xf,l,c,g):Xf(l,c,g),n=p}else for(s=0;s<o.length;s++){if(c=o[s],p=c.instance,g=c.currentTarget,c=c.listener,p!==n&&l.isPropagationStopped())break e;p!==null?j(p,Xf,l,c,g):Xf(l,c,g),n=p}}}}function xt(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[uy];a===void 0&&(a=t[uy]=new Set);var o=e+"__bubble";a.has(o)||(dx(t,e,2,!1),a.add(o))}function Ig(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),dx(a,e,o,t)}function Rg(e){if(!e[Wp]){e[Wp]=!0,sC.forEach(function(a){a!=="selectionchange"&&(fb.has(a)||Ig(a,!1,e),Ig(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wp]||(t[Wp]=!0,Ig("selectionchange",!1,t))}}function dx(e,t,a,o){switch(Vx(t)){case qo:var n=SR;break;case pn:n=xR;break;default:n=Vg}a=n.bind(null,t,a,e),n=void 0,!py||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 Mg(e,t,a,o,n){var l=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var c=o.stateNode.containerInfo;if(c===n)break;if(s===4)for(s=o.return;s!==null;){var p=s.tag;if((p===3||p===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;c!==null;){if(s=Te(c),s===null)return;if(p=s.tag,p===5||p===6||p===26||p===27){o=l=s;continue e}c=c.parentNode}}o=o.return}Cv(function(){var g=l,E=Wm(a),O=[];e:{var I=VC.get(e);if(I!==void 0){var P=hp,se=e;switch(e){case"keypress":if(ef(a)===0)break e;case"keydown":case"keyup":P=hM;break;case"focusin":se="focus",P=yy;break;case"focusout":se="blur",P=yy;break;case"beforeblur":case"afterblur":P=yy;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":P=AC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=oM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=bM;break;case _C:case HC:case FC:P=rM;break;case GC:P=SM;break;case"scroll":case"scrollend":P=tM;break;case"wheel":P=CM;break;case"copy":case"cut":case"paste":P=uM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=EC;break;case"toggle":case"beforetoggle":P=kM}var he=(t&4)!==0,Yt=!he&&(e==="scroll"||e==="scrollend"),Ct=he?I!==null?I+"Capture":null:I;he=[];for(var w=g,R;w!==null;){var A=w;if(R=A.stateNode,A=A.tag,A!==5&&A!==26&&A!==27||R===null||Ct===null||(A=Ui(w,Ct),A!=null&&he.push(rc(w,A,R))),Yt)break;w=w.return}0<he.length&&(I=new P(I,se,null,a,E),O.push({event:I,listeners:he}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",I&&a!==yc&&(se=a.relatedTarget||a.fromElement)&&(Te(se)||se[gr]))break e;if(P||I){if(I=E.window===E?E:(I=E.ownerDocument)?I.defaultView||I.parentWindow:window,P){if(se=a.relatedTarget||a.toElement,P=g,se=se?Te(se):null,se!==null&&(Yt=U(se),he=se.tag,se!==Yt||he!==5&&he!==27&&he!==6))se=null}else P=null,se=g;if(P!==se){if(he=AC,A="onMouseLeave",Ct="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")he=EC,A="onPointerLeave",Ct="onPointerEnter",w="pointer";if(Yt=P==null?I:Je(P),R=se==null?I:Je(se),I=new he(A,w+"leave",P,a,E),I.target=Yt,I.relatedTarget=R,A=null,Te(E)===g&&(he=new he(Ct,w+"enter",se,a,E),he.target=R,he.relatedTarget=Yt,A=he),Yt=A,P&&se)t:{he=HI,Ct=P,w=se,R=0;for(A=Ct;A;A=he(A))R++;A=0;for(var Z=w;Z;Z=he(Z))A++;for(;0<R-A;)Ct=he(Ct),R--;for(;0<A-R;)w=he(w),A--;for(;R--;){if(Ct===w||w!==null&&Ct===w.alternate){he=Ct;break t}Ct=he(Ct),w=he(w)}he=null}else he=null;P!==null&&fx(O,I,P,he,!1),se!==null&&Yt!==null&&fx(O,Yt,se,he,!0)}}}e:{if(I=g?Je(g):window,P=I.nodeName&&I.nodeName.toLowerCase(),P==="select"||P==="input"&&I.type==="file")var fe=Mv;else if(Iv(I))if(PC)fe=JT;else{fe=WT;var Qe=ZT}else P=I.nodeName,!P||P.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?g&&Ni(g.elementType)&&(fe=Mv):fe=KT;if(fe&&(fe=fe(e,g))){Rv(O,fe,a,E);break e}Qe&&Qe(e,I,g),e==="focusout"&&g&&I.type==="number"&&g.memoizedProps.value!=null&&$m(I,"number",I.value)}switch(Qe=g?Je(g):window,e){case"focusin":if(Iv(Qe)||Qe.contentEditable==="true")Uu=Qe,vy=g,kc=null;break;case"focusout":kc=vy=Uu=null;break;case"mousedown":Sy=!0;break;case"contextmenu":case"mouseup":case"dragend":Sy=!1,Bv(O,a,E);break;case"selectionchange":if(RM)break;case"keydown":case"keyup":Bv(O,a,E)}var Ee;if(by)e:{switch(e){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Bu?wv(e,a)&&(Ie="onCompositionEnd"):e==="keydown"&&a.keyCode===OC&&(Ie="onCompositionStart");if(Ie&&(qC&&a.locale!=="ko"&&(Bu||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Bu&&(Ee=Lv()):(yr=E,my=("value"in yr)?yr.value:yr.textContent,Bu=!0)),Qe=Yf(g,Ie),0<Qe.length&&(Ie=new DC(Ie,e,null,a,E),O.push({event:Ie,listeners:Qe}),Ee?Ie.data=Ee:(Ee=Tv(a),Ee!==null&&(Ie.data=Ee)))),Ee=TM?jT(e,a):XT(e,a))Ie=Yf(g,"onBeforeInput"),0<Ie.length&&(Qe=new cM("onBeforeInput","beforeinput",null,a,E),O.push({event:Qe,listeners:Ie}),Qe.data=Ee);_I(O,e,g,a,E)}cx(O,t)})}function rc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Yf(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,l=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||l===null||(n=Ui(e,a),n!=null&&o.unshift(rc(e,n,l)),n=Ui(e,t),n!=null&&o.push(rc(e,n,l))),e.tag===3)return o;e=e.return}return[]}function HI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function fx(e,t,a,o,n){for(var l=t._reactName,s=[];a!==null&&a!==o;){var c=a,p=c.alternate,g=c.stateNode;if(c=c.tag,p!==null&&p===o)break;c!==5&&c!==26&&c!==27||g===null||(p=g,n?(g=Ui(a,l),g!=null&&s.unshift(rc(a,g,p))):n||(g=Ui(a,l),g!=null&&s.push(rc(a,g,p)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function Ag(e,t){FT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||RC||(RC=!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:xs,possibleRegistrationNames:iy};Ni(e)||typeof t.is==="string"||VT(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 qa(e,t,a,o){t!==a&&(a=dr(a),dr(t)!==a&&(o[e]=t))}function FI(e,t,a){t.forEach(function(o){a[hx(o)]=o==="style"?Eg(e):e.getAttribute(o)})}function jn(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 px(e,t){return e=e.namespaceURI===fp||e.namespaceURI===Eu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function dr(e){return je(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.",_e(e)),Xe(e)),(typeof e==="string"?e:""+e).replace(eA,`
176
- `).replace(tA,"")}function mx(e,t){return t=dr(t),dr(e)===t?!0:!1}function Ft(e,t,a,o,n,l){switch(a){case"children":if(typeof o==="string")Jd(o,t,!1),t==="body"||t==="textarea"&&o===""||qi(e,o);else if(typeof o==="number"||typeof o==="bigint")Jd(""+o,t,!1),t!=="body"&&qi(e,""+o);break;case"className":Zd(e,"class",o);break;case"tabIndex":Zd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Zd(e,a,o);break;case"style":vv(e,o,l);break;case"data":if(t!=="object"){Zd(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Ge(o,a),o=Bi(""+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||em||(em=!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||Jp||(Jp=!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"||Kp?t!=="button"||n.type==null||n.type==="submit"||Kp?typeof o==="function"&&(n.name==null||p1||(p1=!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||em||(em=!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||Jp||(Jp=!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."))):(Kp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Kp=!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 l==="function"&&(a==="formAction"?(t!=="input"&&Ft(e,t,"name",n.name,n,null),Ft(e,t,"formEncType",n.formEncType,n,null),Ft(e,t,"formMethod",n.formMethod,n,null),Ft(e,t,"formTarget",n.formTarget,n,null)):(Ft(e,t,"encType",n.encType,n,null),Ft(e,t,"method",n.method,n,null),Ft(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Ge(o,a),o=Bi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&jn(a,o),e.onclick=Sl);break;case"onScroll":o!=null&&(typeof o!=="function"&&jn(a,o),xt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&jn(a,o),xt("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}Ge(o,a),a=Bi(""+o),e.setAttributeNS(Ps,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(Ge(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||tm[a]||(tm[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"?(Ge(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?(Ge(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):(Ge(o,a),e.setAttribute(a,o));break;case"popover":xt("beforetoggle",e),xt("toggle",e),Qd(e,"popover",o);break;case"xlinkActuate":vl(e,Ps,"xlink:actuate",o);break;case"xlinkArcrole":vl(e,Ps,"xlink:arcrole",o);break;case"xlinkRole":vl(e,Ps,"xlink:role",o);break;case"xlinkShow":vl(e,Ps,"xlink:show",o);break;case"xlinkTitle":vl(e,Ps,"xlink:title",o);break;case"xlinkType":vl(e,Ps,"xlink:type",o);break;case"xmlBase":vl(e,pb,"xml:base",o);break;case"xmlLang":vl(e,pb,"xml:lang",o);break;case"xmlSpace":vl(e,pb,"xml:space",o);break;case"is":l!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Qd(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":m1||o==null||typeof o!=="object"||(m1=!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=Sv(a),Qd(e,a,o)):xs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&jn(a,o)}}function Dg(e,t,a,o,n,l){switch(a){case"style":vv(e,o,l);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"?qi(e,o):(typeof o==="number"||typeof o==="bigint")&&qi(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&jn(a,o),xt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&jn(a,o),xt("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&jn(a,o),e.onclick=Sl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(xs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&jn(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),l=e[lo]||null,l=l!=null?l[a]:null,typeof l==="function"&&e.removeEventListener(t,l,n),typeof o==="function")){typeof l!=="function"&&l!==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,""):Qd(e,a,o)}}}function $a(e,t,a){switch(Ag(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xt("error",e),xt("load",e);var o=!1,n=!1,l;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];if(s!=null)switch(l){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:Ft(e,t,l,s,a,null)}}n&&Ft(e,t,"srcSet",a.srcSet,a,null),o&&Ft(e,t,"src",a.src,a,null);return;case"input":er("input",a),xt("invalid",e);var c=l=s=n=null,p=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var E=a[o];if(E!=null)switch(o){case"name":n=E;break;case"type":s=E;break;case"checked":p=E;break;case"defaultChecked":g=E;break;case"value":l=E;break;case"defaultValue":c=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ft(e,t,o,E,a,null)}}ov(e,a),nv(e,l,c,p,g,s,n,!1);return;case"select":er("select",a),xt("invalid",e),o=s=l=null;for(n in a)if(a.hasOwnProperty(n)&&(c=a[n],c!=null))switch(n){case"value":l=c;break;case"defaultValue":s=c;break;case"multiple":o=c;default:Ft(e,t,n,c,a,null)}sv(e,a),t=l,a=s,e.multiple=!!o,t!=null?iu(e,!!o,t,!1):a!=null&&iu(e,!!o,a,!0);return;case"textarea":er("textarea",a),xt("invalid",e),l=n=o=null;for(s in a)if(a.hasOwnProperty(s)&&(c=a[s],c!=null))switch(s){case"value":o=c;break;case"defaultValue":n=c;break;case"children":l=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Ft(e,t,s,c,a,null)}uv(e,a),cv(e,o,n,l);return;case"option":lv(e,a);for(p in a)if(a.hasOwnProperty(p)&&(o=a[p],o!=null))switch(p){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Ft(e,t,p,o,a,null)}return;case"dialog":xt("beforetoggle",e),xt("toggle",e),xt("cancel",e),xt("close",e);break;case"iframe":case"object":xt("load",e);break;case"video":case"audio":for(o=0;o<ed.length;o++)xt(ed[o],e);break;case"image":xt("error",e),xt("load",e);break;case"details":xt("toggle",e);break;case"embed":case"source":case"link":xt("error",e),xt("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(g in a)if(a.hasOwnProperty(g)&&(o=a[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ft(e,t,g,o,a,null)}return;default:if(Ni(t)){for(E in a)a.hasOwnProperty(E)&&(o=a[E],o!==void 0&&Dg(e,t,E,o,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!=null&&Ft(e,t,c,o,a,null))}function GI(e,t,a,o){switch(Ag(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,l=null,s=null,c=null,p=null,g=null,E=null;for(P in a){var O=a[P];if(a.hasOwnProperty(P)&&O!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":p=O;default:o.hasOwnProperty(P)||Ft(e,t,P,null,o,O)}}for(var I in o){var P=o[I];if(O=a[I],o.hasOwnProperty(I)&&(P!=null||O!=null))switch(I){case"type":l=P;break;case"name":n=P;break;case"checked":g=P;break;case"defaultChecked":E=P;break;case"value":s=P;break;case"defaultValue":c=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P!==O&&Ft(e,t,I,P,o,O)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||f1||(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"),f1=!0),!t||o||d1||(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"),d1=!0),Vm(e,s,c,p,g,E,l,n);return;case"select":P=s=c=I=null;for(l in a)if(p=a[l],a.hasOwnProperty(l)&&p!=null)switch(l){case"value":break;case"multiple":P=p;default:o.hasOwnProperty(l)||Ft(e,t,l,null,o,p)}for(n in o)if(l=o[n],p=a[n],o.hasOwnProperty(n)&&(l!=null||p!=null))switch(n){case"value":I=l;break;case"defaultValue":c=l;break;case"multiple":s=l;default:l!==p&&Ft(e,t,n,l,o,p)}o=c,t=s,a=P,I!=null?iu(e,!!t,I,!1):!!a!==!!t&&(o!=null?iu(e,!!t,o,!0):iu(e,!!t,t?[]:"",!1));return;case"textarea":P=I=null;for(c in a)if(n=a[c],a.hasOwnProperty(c)&&n!=null&&!o.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:Ft(e,t,c,null,o,n)}for(s in o)if(n=o[s],l=a[s],o.hasOwnProperty(s)&&(n!=null||l!=null))switch(s){case"value":I=n;break;case"defaultValue":P=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==l&&Ft(e,t,s,n,o,l)}iv(e,I,P);return;case"option":for(var se in a)if(I=a[se],a.hasOwnProperty(se)&&I!=null&&!o.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Ft(e,t,se,null,o,I)}for(p in o)if(I=o[p],P=a[p],o.hasOwnProperty(p)&&I!==P&&(I!=null||P!=null))switch(p){case"selected":e.selected=I&&typeof I!=="function"&&typeof I!=="symbol";break;default:Ft(e,t,p,I,o,P)}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 he in a)I=a[he],a.hasOwnProperty(he)&&I!=null&&!o.hasOwnProperty(he)&&Ft(e,t,he,null,o,I);for(g in o)if(I=o[g],P=a[g],o.hasOwnProperty(g)&&I!==P&&(I!=null||P!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ft(e,t,g,I,o,P)}return;default:if(Ni(t)){for(var Yt in a)I=a[Yt],a.hasOwnProperty(Yt)&&I!==void 0&&!o.hasOwnProperty(Yt)&&Dg(e,t,Yt,void 0,o,I);for(E in o)I=o[E],P=a[E],!o.hasOwnProperty(E)||I===P||I===void 0&&P===void 0||Dg(e,t,E,I,o,P);return}}for(var Ct in a)I=a[Ct],a.hasOwnProperty(Ct)&&I!=null&&!o.hasOwnProperty(Ct)&&Ft(e,t,Ct,null,o,I);for(O in o)I=o[O],P=a[O],!o.hasOwnProperty(O)||I===P||I==null&&P==null||Ft(e,t,O,I,o,P)}function hx(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Eg(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 gx(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="",l;for(l in t)if(t.hasOwnProperty(l)){var s=t[l];s!=null&&typeof s!=="boolean"&&s!==""&&(l.indexOf("--")===0?(ht(s,l),o+=n+l+":"+(""+s).trim()):typeof s!=="number"||s===0||TC.has(l)?(ht(s,l),o+=n+l.replace(xC,"-$1").toLowerCase().replace(CC,"-ms-")+":"+(""+s).trim()):o+=n+l.replace(xC,"-$1").toLowerCase().replace(CC,"-ms-")+":"+s+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=dr(o),dr(t)!==o&&(a.style=Eg(e)))}}function $o(e,t,a,o,n,l){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(Ge(o,t),e===""+o)return}qa(t,e,o,l)}function yx(e,t,a,o,n,l){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}qa(t,e,o,l)}function Og(e,t,a,o,n,l){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(Ge(o,a),e===""+o)return}qa(t,e,o,l)}function bx(e,t,a,o,n,l){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)&&(Ge(o,t),e===""+o))return}qa(t,e,o,l)}function qg(e,t,a,o,n,l){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(Ge(o,t),a=Bi(""+o),e===a)return}qa(t,e,o,l)}function vx(e,t,a,o){for(var n={},l=new Set,s=e.attributes,c=0;c<s.length;c++)switch(s[c].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:l.add(s[c].name)}if(Ni(t)){for(var p in a)if(a.hasOwnProperty(p)){var g=a[p];if(g!=null){if(xs.hasOwnProperty(p))typeof g!=="function"&&jn(p,g);else if(a.suppressHydrationWarning!==!0)switch(p){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=px(e,g),qa(p,s,g,n));continue;case"style":l.delete(p),gx(e,g,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":l.delete(p.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",p);continue;case"className":l.delete("class"),s=ev(e,"class",g),qa("className",s,g,n);continue;default:o.context===Fl&&t!=="svg"&&t!=="math"?l.delete(p.toLowerCase()):l.delete(p),s=ev(e,p,g),qa(p,s,g,n)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(p=a[g],p!=null)){if(xs.hasOwnProperty(g))typeof p!=="function"&&jn(g,p);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof p!=="string"&&typeof p!=="number"||qa("children",e.textContent,p,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,p=p?p.__html:void 0,p!=null&&(p=px(e,p),s!==p&&(n[g]={__html:s}));continue;case"className":$o(e,g,"class",p,l,n);continue;case"tabIndex":$o(e,g,"tabindex",p,l,n);continue;case"style":l.delete(g),gx(e,p,n);continue;case"multiple":l.delete(g),qa(g,e.multiple,p,n);continue;case"muted":l.delete(g),qa(g,e.muted,p,n);continue;case"autoFocus":l.delete("autofocus"),qa(g,e.autofocus,p,n);continue;case"data":if(t!=="object"){l.delete(g),s=e.getAttribute("data"),qa(g,s,p,n);continue}case"src":case"href":if(!(p!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){g==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g);continue}qg(e,g,g,p,l,n);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof p==="function"){l.delete(g.toLowerCase()),g==="formAction"?(l.delete("name"),l.delete("formenctype"),l.delete("formmethod"),l.delete("formtarget")):(l.delete("enctype"),l.delete("method"),l.delete("target"));continue}else if(s===aA){l.delete(g.toLowerCase()),qa(g,"function",p,n);continue}qg(e,g,g.toLowerCase(),p,l,n);continue;case"xlinkHref":qg(e,g,"xlink:href",p,l,n);continue;case"contentEditable":Og(e,g,"contenteditable",p,l,n);continue;case"spellCheck":Og(e,g,"spellcheck",p,l,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Og(e,g,g,p,l,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":yx(e,g,g.toLowerCase(),p,l,n);continue;case"capture":case"download":e:{c=e;var E=s=g,O=n;if(l.delete(E),c=c.getAttribute(E),c===null)switch(typeof p){case"undefined":case"function":case"symbol":break e;default:if(p===!1)break e}else if(p!=null)switch(typeof p){case"function":case"symbol":break;case"boolean":if(p===!0&&c==="")break e;break;default:if(Ge(p,s),c===""+p)break e}qa(s,c,p,O)}continue;case"cols":case"rows":case"size":case"span":e:{if(c=e,E=s=g,O=n,l.delete(E),c=c.getAttribute(E),c===null)switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(p)||1>p)break e}else if(p!=null)switch(typeof p){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(p)||1>p)&&(Ge(p,s),c===""+p))break e}qa(s,c,p,O)}continue;case"rowSpan":bx(e,g,"rowspan",p,l,n);continue;case"start":bx(e,g,g,p,l,n);continue;case"xHeight":$o(e,g,"x-height",p,l,n);continue;case"xlinkActuate":$o(e,g,"xlink:actuate",p,l,n);continue;case"xlinkArcrole":$o(e,g,"xlink:arcrole",p,l,n);continue;case"xlinkRole":$o(e,g,"xlink:role",p,l,n);continue;case"xlinkShow":$o(e,g,"xlink:show",p,l,n);continue;case"xlinkTitle":$o(e,g,"xlink:title",p,l,n);continue;case"xlinkType":$o(e,g,"xlink:type",p,l,n);continue;case"xmlBase":$o(e,g,"xml:base",p,l,n);continue;case"xmlLang":$o(e,g,"xml:lang",p,l,n);continue;case"xmlSpace":$o(e,g,"xml:space",p,l,n);continue;case"inert":p!==""||tm[g]||(tm[g]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",g)),yx(e,g,g,p,l,n);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){c=Sv(g),s=!1,o.context===Fl&&t!=="svg"&&t!=="math"?l.delete(c.toLowerCase()):(E=g.toLowerCase(),E=pp.hasOwnProperty(E)?pp[E]||null:null,E!==null&&E!==g&&(s=!0,l.delete(E)),l.delete(c));e:if(E=e,O=c,c=p,Di(O))if(E.hasAttribute(O))E=E.getAttribute(O),Ge(c,O),c=E===""+c?c:E;else{switch(typeof c){case"function":case"symbol":break e;case"boolean":if(E=O.toLowerCase().slice(0,5),E!=="data-"&&E!=="aria-")break e}c=c===void 0?void 0:null}else c=void 0;s||qa(g,c,p,n)}}}return 0<l.size&&a.suppressHydrationWarning!==!0&&FI(e,l,n),Object.keys(n).length===0?null:n}function VI(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 Sx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $I(){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:l,initiatorType:s,duration:c}=n;if(l&&c&&Sx(s)){s=0,c=n.responseEnd;for(o+=1;o<a.length;o++){var p=a[o],g=p.startTime;if(g>c)break;var E=p.transferSize,O=p.initiatorType;E&&Sx(O)&&(p=p.responseEnd,s+=E*(p<c?1:(c-g)/(p-g)))}if(--o,t+=8*(l+s)/(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 Qf(e){return e.nodeType===9?e:e.ownerDocument}function xx(e){switch(e){case Eu:return ui;case fp:return om;default:return Fl}}function Cx(e,t){if(e===Fl)switch(t){case"svg":return ui;case"math":return om;default:return Fl}return e===ui&&t==="foreignObject"?Fl:e}function Ng(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 jI(){var e=window.event;if(e&&e.type==="popstate"){if(e===yb)return!1;return yb=e,!0}return yb=null,!1}function sc(){var e=window.event;return e&&e!==od?e.type:null}function uc(){var e=window.event;return e&&e!==od?e.timeStamp:-1.1}function XI(e){setTimeout(function(){throw e})}function YI(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 QI(){}function ZI(e,t,a,o){GI(e,t,a,o),e[lo]=o}function Lx(e){qi(e,"")}function WI(e,t,a){e.nodeValue=a}function kx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[lo]||null;if(t!==null){var a=Ke(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,j(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,j(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function fr(e){return e==="head"}function KI(e,t){e.removeChild(t)}function JI(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function wx(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===ad||a===am){if(o===0){e.removeChild(n),Tu(t);return}o--}else if(a===td||a===Br||a===_s||a===si||a===zs)o++;else if(a===nA)ic(e.ownerDocument.documentElement);else if(a===rA){a=e.ownerDocument.head,ic(a);for(var l=a.firstChild;l;){var s=l.nextSibling,c=l.nodeName;l[gc]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&l.rel.toLowerCase()==="stylesheet"||a.removeChild(l),l=s}}else a===lA&&ic(e.ownerDocument.body);a=n}while(a);Tu(t)}function Tx(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===ad)if(e===0)break;else e--;else a!==td&&a!==Br&&a!==_s&&a!==si||e++;a=o}while(a)}function eR(e){Tx(e,!0)}function tR(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function aR(e){e.nodeValue=""}function oR(e){Tx(e,!1)}function nR(e,t){t=t[sA],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function lR(e,t){e.nodeValue=t}function Bg(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":Bg(a),de(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function rR(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"){Ge(n.name,"name");var l=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;else if(!e[gc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(l!==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(l=e.getAttribute("src"),(l!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Do(e.nextSibling),e===null)break}return null}function sR(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=Do(e.nextSibling),e===null)return null}return e}function Ix(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Do(e.nextSibling),e===null)return null}return e}function Ug(e){return e.data===Br||e.data===_s}function Pg(e){return e.data===si||e.data===Br&&e.ownerDocument.readyState!==g1}function uR(e,t){var a=e.ownerDocument;if(e.data===_s)e._reactRetry=t;else if(e.data!==Br||a.readyState!==g1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Do(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===td||t===si||t===Br||t===_s||t===zs||t===mb||t===h1)break;if(t===ad||t===am)return null}}return e}function Rx(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var l=o[n];a[hx(l.name)]=l.name.toLowerCase()==="style"?Eg(e):l.value}return{type:t,props:a}}return e.nodeType===8?e.data===zs?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function Mx(e,t,a){return a===null||a[oA]!==!0?(e.nodeValue===t?e=null:(t=dr(t),e=dr(e.nodeValue)===t?null:e.nodeValue),e):null}function zg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ad||a===am){if(t===0)return Do(e.nextSibling);t--}else a!==td&&a!==si&&a!==Br&&a!==_s&&a!==zs||t++}e=e.nextSibling}return null}function Ax(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===td||a===si||a===Br||a===_s||a===zs){if(t===0)return e;t--}else a!==ad&&a!==am||t++}e=e.previousSibling}return null}function iR(e){Tu(e)}function cR(e){Tu(e)}function dR(e){Tu(e)}function Dx(e,t,a,o,n){switch(n&&Zm(e,o.ancestorInfo),t=Qf(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 fR(e,t,a,o){if(!a[gr]&&Ke(a)){var n=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",n,n,n)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(n=a.attributes;n.length;)a.removeAttributeNode(n[0]);$a(a,e,t),a[ja]=o,a[lo]=t}function ic(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);de(e)}function Zf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Ex(e,t,a){var o=ii;if(o&&typeof t==="string"&&t){var n=Vo(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),C1.has(n)||(C1.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function Ox(e,t,a,o){var n=(n=mr.current)?Zf(n):null;if(!n)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=ku(a.href),t=wt(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=ku(a.href);var l=wt(n).hoistableStyles,s=l.get(e);if(!s&&(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:Fs,preload:null}},l.set(e,s),(l=n.querySelector(cc(e)))&&!l._p&&(s.instance=l,s.state.loading=nd|an),!on.has(e))){var c={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};on.set(e,c),l||pR(n,e,c,s.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 xl(e){e!==Fu&&e.next===null&&(Fu===null?Qm=Fu=e:Fu=Fu.next=e),Wm=!0,j.actQueue!==null?gb||(gb=!0,v1()):hb||(hb=!0,v1())}function Vd(e,t){if(!yb&&Wm){yb=!0;do{var a=!1;for(var o=Qm;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var r=0;else{var u=o.suspendedLanes,f=o.pingedLanes;r=(1<<31-wo(42|e)+1)-1,r&=l&~(u&~f),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,y1(o,r))}else r=ft,r=ua(o,o===aa?r:0,o.cancelPendingCommit!==null||o.timeoutHandle!==Si),(r&3)===0||so(o,r)||(a=!0,y1(o,r));o=o.next}}while(a);yb=!1}}function YR(){Fc=window.event,Dy()}function Dy(){Wm=gb=hb=!1;var e=0;fs!==0&&tM()&&(e=fs);for(var t=Ja(),a=null,o=Qm;o!==null;){var l=o.next,r=h1(o,t);if(r===0)o.next=null,a===null?Qm=l:a.next=l,l===null&&(Fu=a);else if(a=o,e!==0||(r&3)!==0)Wm=!0;o=l}ja!==ds&&ja!==jm||Vd(e,!1),fs!==0&&(fs=0)}function h1(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,r=e.pendingLanes&-62914561;0<r;){var u=31-wo(r),f=1<<u,v=l[u];if(v===-1){if((f&a)===0||(f&o)!==0)l[u]=qs(f,t)}else v<=t&&(e.expiredLanes|=f);r&=~f}if(t=aa,a=ft,a=ua(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Si),o=e.callbackNode,a===0||e===t&&(Zt===mi||Zt===hi)||e.cancelPendingCommit!==null)return o!==null&&Ey(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||so(e,a)){if(t=a&-a,t!==e.callbackPriority||j.actQueue!==null&&o!==vb)Ey(o);else return t;switch(k(a)){case on:case Gn:a=pv;break;case Il:a=cu;break;case dm:a=mv;break;default:a=cu}return o=g1.bind(null,e),j.actQueue!==null?(j.actQueue.push(o),a=vb):a=cv(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&Ey(o),e.callbackPriority=2,e.callbackNode=null,2}function g1(e,t){if(Rm=Im=!1,Fc=window.event,ja!==ds&&ja!==jm)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qn===$m&&(Qn=ub),Fd()&&e.callbackNode!==a)return null;var o=ft;if(o=ua(e,e===aa?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Si),o===0)return null;return QS(e,o,t),h1(e,Ja()),e.callbackNode!=null&&e.callbackNode===a?g1.bind(null,e):null}function y1(e,t){if(Fd())return null;Im=Rm,Rm=!1,QS(e,t,!0)}function Ey(e){e!==vb&&e!==null&&zM(e)}function v1(){j.actQueue!==null&&j.actQueue.push(function(){return Dy(),null}),vD(function(){(Nt&(Wa|sn))!==ao?cv(fv,YR):Dy()})}function Ny(){if(fs===0){var e=si;e===0&&(e=sm,sm<<=1,(sm&261888)===0&&(sm=256)),fs=e}return fs}function b1(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return we(e,"action"),Sd(""+e)}function x1(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 QR(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var r=b1((l[To]||null).action),u=o.submitter;u&&(t=(t=u[To]||null)?b1(t.formAction):u.getAttribute("formAction"),t!==null&&(r=t,u=null));var f=new hm("action","action",null,o,l);e.push({event:f,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(fs!==0){var v=u?x1(l,u):new FormData(l),S={pending:!0,data:v,method:l.method,action:r};Object.freeze(S),Jg(a,S,null,v)}}else typeof r==="function"&&(f.preventDefault(),v=u?x1(l,u):new FormData(l),S={pending:!0,data:v,method:l.method,action:r},Object.freeze(S),Jg(a,S,r,v))},currentTarget:l}]})}}function Xp(e,t,a){e.currentTarget=a;try{t(e)}catch(o){Av(o)}e.currentTarget=null}function S1(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,r=o.event;if(o=o.listeners,t)for(var u=o.length-1;0<=u;u--){var f=o[u],v=f.instance,S=f.currentTarget;if(f=f.listener,v!==l&&r.isPropagationStopped())break e;v!==null?Y(v,Xp,r,f,S):Xp(r,f,S),l=v}else for(u=0;u<o.length;u++){if(f=o[u],v=f.instance,S=f.currentTarget,f=f.listener,v!==l&&r.isPropagationStopped())break e;v!==null?Y(v,Xp,r,f,S):Xp(r,f,S),l=v}}}}function Rt(e,t){bb.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[hv];a===void 0&&(a=t[hv]=new Set);var o=e+"__bubble";a.has(o)||(k1(t,e,2,!1),a.add(o))}function Oy(e,t,a){bb.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),k1(a,e,o,t)}function qy(e){if(!e[Zm]){e[Zm]=!0,vk.forEach(function(a){a!=="selectionchange"&&(bb.has(a)||Oy(a,!1,e),Oy(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zm]||(t[Zm]=!0,Oy("selectionchange",!1,t))}}function k1(e,t,a,o){switch(tk(t)){case on:var l=MM;break;case Gn:l=AM;break;default:l=Zy}a=l.bind(null,t,a,e),l=void 0,!xv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function By(e,t,a,o,l){var r=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var u=o.tag;if(u===3||u===4){var f=o.stateNode.containerInfo;if(f===l)break;if(u===4)for(u=o.return;u!==null;){var v=u.tag;if((v===3||v===4)&&u.stateNode.containerInfo===l)return;u=u.return}for(;f!==null;){if(u=Ie(f),u===null)return;if(v=u.tag,v===5||v===6||v===26||v===27){o=r=u;continue e}f=f.parentNode}}o=o.return}N0(function(){var S=r,N=ng(a),q=[];e:{var A=tC.get(e);if(A!==void 0){var _=hm,fe=e;switch(e){case"keypress":if(tp(a)===0)break e;case"keydown":case"keyup":_=LA;break;case"focusin":fe="focus",_=Lv;break;case"focusout":fe="blur",_=Lv;break;case"beforeblur":case"afterblur":_=Lv;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":_=Hk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=fA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=IA;break;case Zk:case Kk:case Jk:_=hA;break;case eC:_=MA;break;case"scroll":case"scrollend":_=dA;break;case"wheel":_=DA;break;case"copy":case"cut":case"paste":_=yA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Gk;break;case"toggle":case"beforetoggle":_=NA}var ye=(t&4)!==0,la=!ye&&(e==="scroll"||e==="scrollend"),Mt=ye?A!==null?A+"Capture":null:A;ye=[];for(var M=S,D;M!==null;){var E=M;if(D=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||D===null||Mt===null||(E=kd(M,Mt),E!=null&&ye.push($d(M,E,D))),la)break;M=M.return}0<ye.length&&(A=new _(A,fe,null,a,N),q.push({event:A,listeners:ye}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",A&&a!==ac&&(fe=a.relatedTarget||a.fromElement)&&(Ie(fe)||fe[Xr]))break e;if(_||A){if(A=N.window===N?N:(A=N.ownerDocument)?A.defaultView||A.parentWindow:window,_){if(fe=a.relatedTarget||a.toElement,_=S,fe=fe?Ie(fe):null,fe!==null&&(la=O(fe),ye=fe.tag,fe!==la||ye!==5&&ye!==27&&ye!==6))fe=null}else _=null,fe=S;if(_!==fe){if(ye=Hk,E="onMouseLeave",Mt="onMouseEnter",M="mouse",e==="pointerout"||e==="pointerover")ye=Gk,E="onPointerLeave",Mt="onPointerEnter",M="pointer";if(la=_==null?A:at(_),D=fe==null?A:at(fe),A=new ye(E,M+"leave",_,a,N),A.target=la,A.relatedTarget=D,E=null,Ie(N)===S&&(ye=new ye(Mt,M+"enter",fe,a,N),ye.target=D,ye.relatedTarget=la,E=ye),la=E,_&&fe)t:{ye=WR,Mt=_,M=fe,D=0;for(E=Mt;E;E=ye(E))D++;E=0;for(var K=M;K;K=ye(K))E++;for(;0<D-E;)Mt=ye(Mt),D--;for(;0<E-D;)M=ye(M),E--;for(;D--;){if(Mt===M||M!==null&&Mt===M.alternate){ye=Mt;break t}Mt=ye(Mt),M=ye(M)}ye=null}else ye=null;_!==null&&C1(q,A,_,ye,!1),fe!==null&&la!==null&&C1(q,la,fe,ye,!0)}}}e:{if(A=S?at(S):window,_=A.nodeName&&A.nodeName.toLowerCase(),_==="select"||_==="input"&&A.type==="file")var ge=_0;else if(U0(A))if(Qk)ge=iR;else{ge=rR;var Je=lR}else _=A.nodeName,!_||_.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?S&&xd(S.elementType)&&(ge=_0):ge=sR;if(ge&&(ge=ge(e,S))){P0(q,ge,a,N);break e}Je&&Je(e,A,S),e==="focusout"&&S&&A.type==="number"&&S.memoizedProps.value!=null&&Kh(A,"number",A.value)}switch(Je=S?at(S):window,e){case"focusin":if(U0(Je)||Je.contentEditable==="true")bu=Je,Tv=S,uc=null;break;case"focusout":uc=Tv=bu=null;break;case"mousedown":Iv=!0;break;case"contextmenu":case"mouseup":case"dragend":Iv=!1,X0(q,a,N);break;case"selectionchange":if(zA)break;case"keydown":case"keyup":X0(q,a,N)}var qe;if(wv)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else vu?B0(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===Vk&&(Re="onCompositionStart");if(Re&&($k&&a.locale!=="ko"&&(vu||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&vu&&(qe=O0()):(Yr=N,Sv=("value"in Yr)?Yr.value:Yr.textContent,vu=!0)),Je=Yp(S,Re),0<Je.length&&(Re=new Fk(Re,e,null,a,N),q.push({event:Re,listeners:Je}),qe?Re.data=qe:(qe=z0(a),qe!==null&&(Re.data=qe)))),qe=qA?tR(e,a):aR(e,a))Re=Yp(S,"onBeforeInput"),0<Re.length&&(Je=new bA("onBeforeInput","beforeinput",null,a,N),q.push({event:Je,listeners:Re}),Je.data=qe);QR(q,e,S,a,N)}S1(q,t)})}function $d(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Yp(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=kd(e,a),l!=null&&o.unshift($d(e,l,r)),l=kd(e,t),l!=null&&o.push($d(e,l,r))),e.tag===3)return o;e=e.return}return[]}function WR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function C1(e,t,a,o,l){for(var r=t._reactName,u=[];a!==null&&a!==o;){var f=a,v=f.alternate,S=f.stateNode;if(f=f.tag,v!==null&&v===o)break;f!==5&&f!==26&&f!==27||S===null||(v=S,l?(S=kd(a,r),S!=null&&u.unshift($d(a,S,v))):l||(S=kd(a,r),S!=null&&u.push($d(a,S,v)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}function zy(e,t){Z2(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||Pk||(Pk=!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:ti,possibleRegistrationNames:gv};xd(e)||typeof t.is==="string"||J2(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 Ka(e,t,a,o){t!==a&&(a=Fr(a),Fr(t)!==a&&(o[e]=t))}function ZR(e,t,a){t.forEach(function(o){a[T1(o)]=o==="style"?Py(e):e.getAttribute(o)})}function Sl(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 L1(e,t){return e=e.namespaceURI===fm||e.namespaceURI===mu?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function Fr(e){return rt(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.",Ae(e)),Ue(e)),(typeof e==="string"?e:""+e).replace(uD,`
176
+ `).replace(dD,"")}function w1(e,t){return t=Fr(t),Fr(e)===t?!0:!1}function ea(e,t,a,o,l,r){switch(a){case"children":if(typeof o==="string")ep(o,t,!1),t==="body"||t==="textarea"&&o===""||bd(e,o);else if(typeof o==="number"||typeof o==="bigint")ep(""+o,t,!1),t!=="body"&&bd(e,""+o);break;case"className":Zf(e,"class",o);break;case"tabIndex":Zf(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Zf(e,a,o);break;case"style":A0(e,o,r);break;case"data":if(t!=="object"){Zf(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}we(o,a),o=Sd(""+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"&&(l.encType==null&&l.method==null||eh||(eh=!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.")),l.target==null||Jm||(Jm=!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"||l.type==="submit"||l.type==="image"||Km?t!=="button"||l.type==null||l.type==="submit"||Km?typeof o==="function"&&(l.name==null||LL||(LL=!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.')),l.formEncType==null&&l.formMethod==null||eh||(eh=!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.")),l.formTarget==null||Jm||(Jm=!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."))):(Km=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Km=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r==="function"&&(a==="formAction"?(t!=="input"&&ea(e,t,"name",l.name,l,null),ea(e,t,"formEncType",l.formEncType,l,null),ea(e,t,"formMethod",l.formMethod,l,null),ea(e,t,"formTarget",l.formTarget,l,null)):(ea(e,t,"encType",l.encType,l,null),ea(e,t,"method",l.method,l,null),ea(e,t,"target",l.target,l,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}we(o,a),o=Sd(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Sl(a,o),e.onclick=Yl);break;case"onScroll":o!=null&&(typeof o!=="function"&&Sl(a,o),Rt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Sl(a,o),Rt("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(l.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}we(o,a),a=Sd(""+o),e.setAttributeNS(vi,"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"?(we(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||th[a]||(th[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"?(we(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?(we(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):(we(o,a),e.setAttribute(a,o));break;case"popover":Rt("beforetoggle",e),Rt("toggle",e),Wf(e,"popover",o);break;case"xlinkActuate":Xl(e,vi,"xlink:actuate",o);break;case"xlinkArcrole":Xl(e,vi,"xlink:arcrole",o);break;case"xlinkRole":Xl(e,vi,"xlink:role",o);break;case"xlinkShow":Xl(e,vi,"xlink:show",o);break;case"xlinkTitle":Xl(e,vi,"xlink:title",o);break;case"xlinkType":Xl(e,vi,"xlink:type",o);break;case"xmlBase":Xl(e,xb,"xml:base",o);break;case"xmlLang":Xl(e,xb,"xml:lang",o);break;case"xmlSpace":Xl(e,xb,"xml:space",o);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Wf(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":wL||o==null||typeof o!=="object"||(wL=!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=D0(a),Wf(e,a,o)):ti.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Sl(a,o)}}function Uy(e,t,a,o,l,r){switch(a){case"style":A0(e,o,r);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?bd(e,o):(typeof o==="number"||typeof o==="bigint")&&bd(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Sl(a,o),Rt("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Sl(a,o),Rt("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Sl(a,o),e.onclick=Yl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(ti.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Sl(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),r=e[To]||null,r=r!=null?r[a]:null,typeof r==="function"&&e.removeEventListener(t,r,l),typeof o==="function")){typeof r!=="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,l);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Wf(e,a,o)}}}function co(e,t,a){switch(zy(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",e),Rt("load",e);var o=!1,l=!1,r;for(r in a)if(a.hasOwnProperty(r)){var u=a[r];if(u!=null)switch(r){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ea(e,t,r,u,a,null)}}l&&ea(e,t,"srcSet",a.srcSet,a,null),o&&ea(e,t,"src",a.src,a,null);return;case"input":Dr("input",a),Rt("invalid",e);var f=r=u=l=null,v=null,S=null;for(o in a)if(a.hasOwnProperty(o)){var N=a[o];if(N!=null)switch(o){case"name":l=N;break;case"type":u=N;break;case"checked":v=N;break;case"defaultChecked":S=N;break;case"value":r=N;break;case"defaultValue":f=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ea(e,t,o,N,a,null)}}m0(e,a),h0(e,r,f,v,S,u,l,!1);return;case"select":Dr("select",a),Rt("invalid",e),o=u=r=null;for(l in a)if(a.hasOwnProperty(l)&&(f=a[l],f!=null))switch(l){case"value":r=f;break;case"defaultValue":u=f;break;case"multiple":o=f;default:ea(e,t,l,f,a,null)}v0(e,a),t=r,a=u,e.multiple=!!o,t!=null?$i(e,!!o,t,!1):a!=null&&$i(e,!!o,a,!0);return;case"textarea":Dr("textarea",a),Rt("invalid",e),r=l=o=null;for(u in a)if(a.hasOwnProperty(u)&&(f=a[u],f!=null))switch(u){case"value":o=f;break;case"defaultValue":l=f;break;case"children":r=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ea(e,t,u,f,a,null)}b0(e,a),S0(e,o,l,r);return;case"option":g0(e,a);for(v in a)if(a.hasOwnProperty(v)&&(o=a[v],o!=null))switch(v){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:ea(e,t,v,o,a,null)}return;case"dialog":Rt("beforetoggle",e),Rt("toggle",e),Rt("cancel",e),Rt("close",e);break;case"iframe":case"object":Rt("load",e);break;case"video":case"audio":for(o=0;o<Pc.length;o++)Rt(Pc[o],e);break;case"image":Rt("error",e),Rt("load",e);break;case"details":Rt("toggle",e);break;case"embed":case"source":case"link":Rt("error",e),Rt("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(S in a)if(a.hasOwnProperty(S)&&(o=a[S],o!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ea(e,t,S,o,a,null)}return;default:if(xd(t)){for(N in a)a.hasOwnProperty(N)&&(o=a[N],o!==void 0&&Uy(e,t,N,o,a,void 0));return}}for(f in a)a.hasOwnProperty(f)&&(o=a[f],o!=null&&ea(e,t,f,o,a,null))}function KR(e,t,a,o){switch(zy(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,u=null,f=null,v=null,S=null,N=null;for(_ in a){var q=a[_];if(a.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":v=q;default:o.hasOwnProperty(_)||ea(e,t,_,null,o,q)}}for(var A in o){var _=o[A];if(q=a[A],o.hasOwnProperty(A)&&(_!=null||q!=null))switch(A){case"type":r=_;break;case"name":l=_;break;case"checked":S=_;break;case"defaultChecked":N=_;break;case"value":u=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_!==q&&ea(e,t,A,_,o,q)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||CL||(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"),CL=!0),!t||o||kL||(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"),kL=!0),Zh(e,u,f,v,S,N,r,l);return;case"select":_=u=f=A=null;for(r in a)if(v=a[r],a.hasOwnProperty(r)&&v!=null)switch(r){case"value":break;case"multiple":_=v;default:o.hasOwnProperty(r)||ea(e,t,r,null,o,v)}for(l in o)if(r=o[l],v=a[l],o.hasOwnProperty(l)&&(r!=null||v!=null))switch(l){case"value":A=r;break;case"defaultValue":f=r;break;case"multiple":u=r;default:r!==v&&ea(e,t,l,r,o,v)}o=f,t=u,a=_,A!=null?$i(e,!!t,A,!1):!!a!==!!t&&(o!=null?$i(e,!!t,o,!0):$i(e,!!t,t?[]:"",!1));return;case"textarea":_=A=null;for(f in a)if(l=a[f],a.hasOwnProperty(f)&&l!=null&&!o.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:ea(e,t,f,null,o,l)}for(u in o)if(l=o[u],r=a[u],o.hasOwnProperty(u)&&(l!=null||r!=null))switch(u){case"value":A=l;break;case"defaultValue":_=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==r&&ea(e,t,u,l,o,r)}x0(e,A,_);return;case"option":for(var fe in a)if(A=a[fe],a.hasOwnProperty(fe)&&A!=null&&!o.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:ea(e,t,fe,null,o,A)}for(v in o)if(A=o[v],_=a[v],o.hasOwnProperty(v)&&A!==_&&(A!=null||_!=null))switch(v){case"selected":e.selected=A&&typeof A!=="function"&&typeof A!=="symbol";break;default:ea(e,t,v,A,o,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)A=a[ye],a.hasOwnProperty(ye)&&A!=null&&!o.hasOwnProperty(ye)&&ea(e,t,ye,null,o,A);for(S in o)if(A=o[S],_=a[S],o.hasOwnProperty(S)&&A!==_&&(A!=null||_!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ea(e,t,S,A,o,_)}return;default:if(xd(t)){for(var la in a)A=a[la],a.hasOwnProperty(la)&&A!==void 0&&!o.hasOwnProperty(la)&&Uy(e,t,la,void 0,o,A);for(N in o)A=o[N],_=a[N],!o.hasOwnProperty(N)||A===_||A===void 0&&_===void 0||Uy(e,t,N,A,o,_);return}}for(var Mt in a)A=a[Mt],a.hasOwnProperty(Mt)&&A!=null&&!o.hasOwnProperty(Mt)&&ea(e,t,Mt,null,o,A);for(q in o)A=o[q],_=a[q],!o.hasOwnProperty(q)||A===_||A==null&&_==null||ea(e,t,q,A,o,_)}function T1(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Py(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 I1(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,l=o="",r;for(r in t)if(t.hasOwnProperty(r)){var u=t[r];u!=null&&typeof u!=="boolean"&&u!==""&&(r.indexOf("--")===0?(ya(u,r),o+=l+r+":"+(""+u).trim()):typeof u!=="number"||u===0||zk.has(r)?(ya(u,r),o+=l+r.replace(Ek,"-$1").toLowerCase().replace(Nk,"-ms-")+":"+(""+u).trim()):o+=l+r.replace(Ek,"-$1").toLowerCase().replace(Nk,"-ms-")+":"+u+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=Fr(o),Fr(t)!==o&&(a.style=Py(e)))}}function bn(e,t,a,o,l,r){if(l.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(we(o,t),e===""+o)return}Ka(t,e,o,r)}function R1(e,t,a,o,l,r){if(l.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}Ka(t,e,o,r)}function _y(e,t,a,o,l,r){if(l.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(we(o,a),e===""+o)return}Ka(t,e,o,r)}function M1(e,t,a,o,l,r){if(l.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)&&(we(o,t),e===""+o))return}Ka(t,e,o,r)}function Hy(e,t,a,o,l,r){if(l.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(we(o,t),a=Sd(""+o),e===a)return}Ka(t,e,o,r)}function A1(e,t,a,o){for(var l={},r=new Set,u=e.attributes,f=0;f<u.length;f++)switch(u[f].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(u[f].name)}if(xd(t)){for(var v in a)if(a.hasOwnProperty(v)){var S=a[v];if(S!=null){if(ti.hasOwnProperty(v))typeof S!=="function"&&Sl(v,S);else if(a.suppressHydrationWarning!==!0)switch(v){case"children":typeof S!=="string"&&typeof S!=="number"||Ka("children",e.textContent,S,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=L1(e,S),Ka(v,u,S,l));continue;case"style":r.delete(v),I1(e,S,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(v.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",v);continue;case"className":r.delete("class"),u=c0(e,"class",S),Ka("className",u,S,l);continue;default:o.context===gr&&t!=="svg"&&t!=="math"?r.delete(v.toLowerCase()):r.delete(v),u=c0(e,v,S),Ka(v,u,S,l)}}}}else for(S in a)if(a.hasOwnProperty(S)&&(v=a[S],v!=null)){if(ti.hasOwnProperty(S))typeof v!=="function"&&Sl(S,v);else if(a.suppressHydrationWarning!==!0)switch(S){case"children":typeof v!=="string"&&typeof v!=="number"||Ka("children",e.textContent,v,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":u=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=L1(e,v),u!==v&&(l[S]={__html:u}));continue;case"className":bn(e,S,"class",v,r,l);continue;case"tabIndex":bn(e,S,"tabindex",v,r,l);continue;case"style":r.delete(S),I1(e,v,l);continue;case"multiple":r.delete(S),Ka(S,e.multiple,v,l);continue;case"muted":r.delete(S),Ka(S,e.muted,v,l);continue;case"autoFocus":r.delete("autofocus"),Ka(S,e.autofocus,v,l);continue;case"data":if(t!=="object"){r.delete(S),u=e.getAttribute("data"),Ka(S,u,v,l);continue}case"src":case"href":if(!(v!==""||t==="a"&&S==="href"||t==="object"&&S==="data")){S==="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.',S,S):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.',S,S);continue}Hy(e,S,S,v,r,l);continue;case"action":case"formAction":if(u=e.getAttribute(S),typeof v==="function"){r.delete(S.toLowerCase()),S==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(u===cD){r.delete(S.toLowerCase()),Ka(S,"function",v,l);continue}Hy(e,S,S.toLowerCase(),v,r,l);continue;case"xlinkHref":Hy(e,S,"xlink:href",v,r,l);continue;case"contentEditable":_y(e,S,"contenteditable",v,r,l);continue;case"spellCheck":_y(e,S,"spellcheck",v,r,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":_y(e,S,S,v,r,l);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":R1(e,S,S.toLowerCase(),v,r,l);continue;case"capture":case"download":e:{f=e;var N=u=S,q=l;if(r.delete(N),f=f.getAttribute(N),f===null)switch(typeof v){case"undefined":case"function":case"symbol":break e;default:if(v===!1)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":break;case"boolean":if(v===!0&&f==="")break e;break;default:if(we(v,u),f===""+v)break e}Ka(u,f,v,q)}continue;case"cols":case"rows":case"size":case"span":e:{if(f=e,N=u=S,q=l,r.delete(N),f=f.getAttribute(N),f===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(v)||1>v)break e}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(v)||1>v)&&(we(v,u),f===""+v))break e}Ka(u,f,v,q)}continue;case"rowSpan":M1(e,S,"rowspan",v,r,l);continue;case"start":M1(e,S,S,v,r,l);continue;case"xHeight":bn(e,S,"x-height",v,r,l);continue;case"xlinkActuate":bn(e,S,"xlink:actuate",v,r,l);continue;case"xlinkArcrole":bn(e,S,"xlink:arcrole",v,r,l);continue;case"xlinkRole":bn(e,S,"xlink:role",v,r,l);continue;case"xlinkShow":bn(e,S,"xlink:show",v,r,l);continue;case"xlinkTitle":bn(e,S,"xlink:title",v,r,l);continue;case"xlinkType":bn(e,S,"xlink:type",v,r,l);continue;case"xmlBase":bn(e,S,"xml:base",v,r,l);continue;case"xmlLang":bn(e,S,"xml:lang",v,r,l);continue;case"xmlSpace":bn(e,S,"xml:space",v,r,l);continue;case"inert":v!==""||th[S]||(th[S]=!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.",S)),R1(e,S,S,v,r,l);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){f=D0(S),u=!1,o.context===gr&&t!=="svg"&&t!=="math"?r.delete(f.toLowerCase()):(N=S.toLowerCase(),N=pm.hasOwnProperty(N)?pm[N]||null:null,N!==null&&N!==S&&(u=!0,r.delete(N)),r.delete(f));e:if(N=e,q=f,f=v,gd(q))if(N.hasAttribute(q))N=N.getAttribute(q),we(f,q),f=N===""+f?f:N;else{switch(typeof f){case"function":case"symbol":break e;case"boolean":if(N=q.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")break e}f=f===void 0?void 0:null}else f=void 0;u||Ka(S,f,v,l)}}}return 0<r.size&&a.suppressHydrationWarning!==!0&&ZR(e,r,l),Object.keys(l).length===0?null:l}function JR(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 D1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function eM(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],{transferSize:r,initiatorType:u,duration:f}=l;if(r&&f&&D1(u)){u=0,f=l.responseEnd;for(o+=1;o<a.length;o++){var v=a[o],S=v.startTime;if(S>f)break;var N=v.transferSize,q=v.initiatorType;N&&D1(q)&&(v=v.responseEnd,u+=N*(v<f?1:(f-S)/(v-S)))}if(--o,t+=8*(r+u)/(l.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 Qp(e){return e.nodeType===9?e:e.ownerDocument}function E1(e){switch(e){case mu:return Vu;case fm:return oh;default:return gr}}function N1(e,t){if(e===gr)switch(t){case"svg":return Vu;case"math":return oh;default:return gr}return e===Vu&&t==="foreignObject"?gr:e}function Fy(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 tM(){var e=window.event;if(e&&e.type==="popstate"){if(e===Lb)return!1;return Lb=e,!0}return Lb=null,!1}function jd(){var e=window.event;return e&&e!==Fc?e.type:null}function Xd(){var e=window.event;return e&&e!==Fc?e.timeStamp:-1.1}function aM(e){setTimeout(function(){throw e})}function oM(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 nM(){}function lM(e,t,a,o){KR(e,t,a,o),e[To]=o}function O1(e){bd(e,"")}function rM(e,t,a){e.nodeValue=a}function q1(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[To]||null;if(t!==null){var a=tt(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,Y(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,Y(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Gr(e){return e==="head"}function sM(e,t){e.removeChild(t)}function iM(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function B1(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===Hc||a===ah){if(o===0){e.removeChild(l),iu(t);return}o--}else if(a===_c||a===ps||a===xi||a===Gu||a===bi)o++;else if(a===pD)Yd(e.ownerDocument.documentElement);else if(a===hD){a=e.ownerDocument.head,Yd(a);for(var r=a.firstChild;r;){var u=r.nextSibling,f=r.nodeName;r[tc]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=u}}else a===mD&&Yd(e.ownerDocument.body);a=l}while(a);iu(t)}function z1(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===Hc)if(e===0)break;else e--;else a!==_c&&a!==ps&&a!==xi&&a!==Gu||e++;a=o}while(a)}function uM(e){z1(e,!0)}function dM(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function cM(e){e.nodeValue=""}function fM(e){z1(e,!1)}function pM(e,t){t=t[gD],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function mM(e,t){e.nodeValue=t}function Gy(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":Gy(a),he(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function hM(e,t,a,o){for(;e.nodeType===1;){var l=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"){we(l.name,"name");var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;else if(!e[tc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(r!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=en(e.nextSibling),e===null)break}return null}function gM(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=en(e.nextSibling),e===null)return null}return e}function U1(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=en(e.nextSibling),e===null)return null}return e}function Vy(e){return e.data===ps||e.data===xi}function $y(e){return e.data===Gu||e.data===ps&&e.ownerDocument.readyState!==IL}function yM(e,t){var a=e.ownerDocument;if(e.data===xi)e._reactRetry=t;else if(e.data!==ps||a.readyState!==IL)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function en(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===_c||t===Gu||t===ps||t===xi||t===bi||t===Sb||t===TL)break;if(t===Hc||t===ah)return null}}return e}function P1(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var r=o[l];a[T1(r.name)]=r.name.toLowerCase()==="style"?Py(e):r.value}return{type:t,props:a}}return e.nodeType===8?e.data===bi?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function _1(e,t,a){return a===null||a[fD]!==!0?(e.nodeValue===t?e=null:(t=Fr(t),e=Fr(e.nodeValue)===t?null:e.nodeValue),e):null}function jy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Hc||a===ah){if(t===0)return en(e.nextSibling);t--}else a!==_c&&a!==Gu&&a!==ps&&a!==xi&&a!==bi||t++}e=e.nextSibling}return null}function H1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===_c||a===Gu||a===ps||a===xi||a===bi){if(t===0)return e;t--}else a!==Hc&&a!==ah||t++}e=e.previousSibling}return null}function vM(e){iu(e)}function bM(e){iu(e)}function xM(e){iu(e)}function F1(e,t,a,o,l){switch(l&&og(e,o.ancestorInfo),t=Qp(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 SM(e,t,a,o){if(!a[Xr]&&tt(a)){var l=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.",l,l,l)}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(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);co(a,e,t),a[fo]=o,a[To]=t}function Yd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);he(e)}function Wp(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function G1(e,t,a){var o=$u;if(o&&typeof t==="string"&&t){var l=vn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),NL.has(l)||(NL.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),co(t,"link",e),Be(t),o.head.appendChild(t)))}}function V1(e,t,a,o){var l=(l=$r.current)?Wp(l):null;if(!l)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=ru(a.href),t=qt(l).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=ru(a.href);var r=qt(l).hoistableStyles,u=r.get(e);if(!u&&(l=l.ownerDocument||l,u={type:"stylesheet",instance:null,count:0,state:{loading:ki,preload:null}},r.set(e,u),(r=l.querySelector(Qd(e)))&&!r._p&&(u.instance=r,u.state.loading=Gc|An),!Dn.has(e))){var f={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Dn.set(e,f),r||kM(l,e,f,u.state)}if(t&&o===null)throw a=`
177
177
 
178
- - `+Wf(t)+`
179
- + `+Wf(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 s}if(t&&o!==null)throw a=`
178
+ - `+Zp(t)+`
179
+ + `+Zp(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return u}if(t&&o!==null)throw a=`
180
180
 
181
- - `+Wf(t)+`
182
- + `+Wf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=wu(a),t=wt(n).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Wf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):fn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):fn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):fn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function ku(e){return'href="'+Vo(e)+'"'}function cc(e){return'link[rel="stylesheet"]['+e+"]"}function qx(e){return ft({},e,{"data-precedence":e.precedence,precedence:null})}function pR(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=nd:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=nd}),t.addEventListener("error",function(){return o.loading|=S1}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function wu(e){return'[src="'+Vo(e)+'"]'}function dc(e){return"script[async]"+e}function Nx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Vo(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var n=ft({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Oe(o),$a(o,"style",n),Kf(o,a.precedence,e),t.instance=o;case"stylesheet":n=ku(a.href);var l=e.querySelector(cc(n));if(l)return t.state.loading|=an,t.instance=l,Oe(l),l;o=qx(a),(n=on.get(n))&&_g(o,n),l=(e.ownerDocument||e).createElement("link"),Oe(l);var s=l;return s._p=new Promise(function(c,p){s.onload=c,s.onerror=p}),$a(l,"link",o),t.state.loading|=an,Kf(l,a.precedence,e),t.instance=l;case"script":if(l=wu(a.src),n=e.querySelector(dc(l)))return t.instance=n,Oe(n),n;if(o=a,n=on.get(l))o=ft({},a),Hg(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),Oe(n),$a(n,"link",o),e.head.appendChild(n),t.instance=n;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&an)===Fs&&(o=t.instance,t.state.loading|=an,Kf(o,a.precedence,e));return t.instance}function Kf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,l=n,s=0;s<o.length;s++){var c=o[s];if(c.dataset.precedence===t)l=c;else if(l!==n)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function _g(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Bx(e,t,a){if(nm===null){var o=new Map,n=nm=new Map;n.set(a,o)}else n=nm,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 l=a[n];if(!(l[gc]||l[ja]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!==Eu){var s=l.getAttribute(t)||"";s=e+s;var c=o.get(s);c?c.push(l):o.set(s,[l])}}return o}function Ux(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mR(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ui||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,l=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),l!=null&&a.push("`disabled`"),n=VI(a,"and"),n+=a.length===1?" prop":" props",l=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,l,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 Px(e){return e.type==="stylesheet"&&(e.state.loading&x1)===Fs?!1:!0}function hR(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&an)===Fs){if(a.instance===null){var n=ku(o.href),l=t.querySelector(cc(n));if(l){t=l._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Jf.bind(e),t.then(e,e)),a.state.loading|=an,a.instance=l,Oe(l);return}l=t.ownerDocument||t,o=qx(o),(n=on.get(n))&&_g(o,n),l=l.createElement("link"),Oe(l);var s=l;s._p=new Promise(function(c,p){s.onload=c,s.onerror=p}),$a(l,"link",o),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&x1)===Fs&&(e.count++,a=Jf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function gR(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},cA+t);0<e.imgBytes&&vb===0&&(vb=125*$I()*fA);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>vb?50:dA)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lm=new Map,t.forEach(yR,e),lm=null,Jf.call(e))}function yR(e,t){if(!(t.state.loading&an)){var a=lm.get(e);if(a)var o=a.get(Sb);else{a=new Map,lm.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<n.length;l++){var s=n[l];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(Sb,o)}n=t.instance,s=n.getAttribute("data-precedence"),l=a.get(s)||o,l===o&&a.set(Sb,n),a.set(s,n),this.count++,o=Jf.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),l?l.parentNode.insertBefore(n,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=an}}function bR(e,t,a,o,n,l,s,c,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Hs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=uu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uu(0),this.hiddenUpdates=uu(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=l,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,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 zx(e,t,a,o,n,l,s,c,p,g,E,O){return e=new bR(e,t,a,s,p,g,E,O,c),t=UM,l===!0&&(t|=Ja|mn),t|=rt,l=k(3,null,null,t),e.current=l,l.stateNode=e,t=hh(),ms(t),e.pooledCache=t,ms(t),l.memoizedState={element:o,isDehydrated:a,cache:t},Sh(l),e}function _x(e){if(!e)return Sr;return e=Sr,e}function Fg(e,t,a,o,n,l){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Au,o,a)}catch(s){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",s))}n=_x(n),o.context===null?o.context=n:o.pendingContext=n,Qn&&Oo!==null&&!T1&&(T1=!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
+ - `+Zp(t)+`
182
+ + `+Zp(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=su(a),t=qt(l).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 Zp(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):Fn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):Fn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):Fn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function ru(e){return'href="'+vn(e)+'"'}function Qd(e){return'link[rel="stylesheet"]['+e+"]"}function $1(e){return bt({},e,{"data-precedence":e.precedence,precedence:null})}function kM(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=Gc:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=Gc}),t.addEventListener("error",function(){return o.loading|=DL}),co(t,"link",a),Be(t),e.head.appendChild(t))}function su(e){return'[src="'+vn(e)+'"]'}function Wd(e){return"script[async]"+e}function j1(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+vn(a.href)+'"]');if(o)return t.instance=o,Be(o),o;var l=bt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Be(o),co(o,"style",l),Kp(o,a.precedence,e),t.instance=o;case"stylesheet":l=ru(a.href);var r=e.querySelector(Qd(l));if(r)return t.state.loading|=An,t.instance=r,Be(r),r;o=$1(a),(l=Dn.get(l))&&Xy(o,l),r=(e.ownerDocument||e).createElement("link"),Be(r);var u=r;return u._p=new Promise(function(f,v){u.onload=f,u.onerror=v}),co(r,"link",o),t.state.loading|=An,Kp(r,a.precedence,e),t.instance=r;case"script":if(r=su(a.src),l=e.querySelector(Wd(r)))return t.instance=l,Be(l),l;if(o=a,l=Dn.get(r))o=bt({},a),Yy(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Be(l),co(l,"link",o),e.head.appendChild(l),t.instance=l;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&An)===ki&&(o=t.instance,t.state.loading|=An,Kp(o,a.precedence,e));return t.instance}function Kp(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,r=l,u=0;u<o.length;u++){var f=o[u];if(f.dataset.precedence===t)r=f;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Xy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Yy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function X1(e,t,a){if(nh===null){var o=new Map,l=nh=new Map;l.set(a,o)}else l=nh,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(l=0;l<a.length;l++){var r=a[l];if(!(r[tc]||r[fo]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==mu){var u=r.getAttribute(t)||"";u=e+u;var f=o.get(u);f?f.push(r):o.set(u,[r])}}return o}function Y1(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function CM(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===Vu||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 l=t.onError,r=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),r!=null&&a.push("`disabled`"),l=JR(a,"and"),l+=a.length===1?" prop":" props",r=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,r,l)}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 Q1(e){return e.type==="stylesheet"&&(e.state.loading&EL)===ki?!1:!0}function LM(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&An)===ki){if(a.instance===null){var l=ru(o.href),r=t.querySelector(Qd(l));if(r){t=r._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Jp.bind(e),t.then(e,e)),a.state.loading|=An,a.instance=r,Be(r);return}r=t.ownerDocument||t,o=$1(o),(l=Dn.get(l))&&Xy(o,l),r=r.createElement("link"),Be(r);var u=r;u._p=new Promise(function(f,v){u.onload=f,u.onerror=v}),co(r,"link",o),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&EL)===ki&&(e.count++,a=Jp.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function wM(e,t){return e.stylesheets&&e.count===0&&em(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&em(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},bD+t);0<e.imgBytes&&Tb===0&&(Tb=125*eM()*SD);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&em(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Tb?50:xD)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Jp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)em(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function em(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lh=new Map,t.forEach(TM,e),lh=null,Jp.call(e))}function TM(e,t){if(!(t.state.loading&An)){var a=lh.get(e);if(a)var o=a.get(Ib);else{a=new Map,lh.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var u=l[r];if(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")a.set(u.dataset.precedence,u),o=u}o&&a.set(Ib,o)}l=t.instance,u=l.getAttribute("data-precedence"),r=a.get(u)||o,r===o&&a.set(Ib,l),a.set(u,l),this.count++,o=Jp.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=An}}function IM(e,t,a,o,l,r,u,f,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Si,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vi(0),this.hiddenUpdates=Vi(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,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 W1(e,t,a,o,l,r,u,f,v,S,N,q){return e=new IM(e,t,a,u,v,S,N,q,f),t=jA,r===!0&&(t|=xo|Vn),t|=dt,r=L(3,null,null,t),e.current=r,r.stateNode=e,t=kg(),Ys(t),e.pooledCache=t,Ys(t),r.memoizedState={element:o,isDehydrated:a,cache:t},Ig(r),e}function Z1(e){if(!e)return Zr;return e=Zr,e}function Qy(e,t,a,o,l,r){if(bo&&typeof bo.onScheduleFiberRoot==="function")try{bo.onScheduleFiberRoot(fu,o,a)}catch(u){wl||(wl=!0,console.error("React instrumentation encountered an error: %o",u))}l=Z1(l),o.context===null?o.context=l:o.pendingContext=l,Ll&&an!==null&&!zL&&(zL=!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.`,F(Oo)||"Unknown")),o=lr(t),o.payload={element:a},l=l===void 0?null:l,l!==null&&(typeof l!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",l),o.callback=l),a=rr(e,o,t),a!==null&&(qn(t,"root.render()",null),ra(a,e,t),$i(a,e,t))}function Hx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Gg(e,t){Hx(e,t),(e=e.alternate)&&Hx(e,t)}function Fx(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&ra(t,e,67108864),Gg(e,67108864)}}function Gx(e){if(e.tag===13||e.tag===31){var t=Ao(e);t=ls(t);var a=Wa(e,t);a!==null&&ra(a,e,t),Gg(e,t)}}function vR(){return Oo}function SR(e,t,a,o){var n=G.T;G.T=null;var l=qt.p;try{qt.p=qo,Vg(e,t,a,o)}finally{qt.p=l,G.T=n}}function xR(e,t,a,o){var n=G.T;G.T=null;var l=qt.p;try{qt.p=pn,Vg(e,t,a,o)}finally{qt.p=l,G.T=n}}function Vg(e,t,a,o){if(sm){var n=$g(o);if(n===null)Mg(e,t,o,um,a),$x(e,o);else if(CR(n,e,t,a,o))o.stopPropagation();else if($x(e,o),t&4&&-1<mA.indexOf(e)){for(;n!==null;){var l=Ke(n);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var s=An(l.pendingLanes);if(s!==0){var c=l;c.pendingLanes|=2;for(c.entangledLanes|=2;s;){var p=1<<31-no(s);c.entanglements[1]|=p,s&=~p}$n(l),(kt&(Ea|Po))===Pa&&(Vp=Na()+e1,lc(0,!1))}}break;case 31:case 13:c=Wa(l,2),c!==null&&ra(c,l,2),xu(),Gg(l,2)}if(l=$g(o),l===null&&Mg(e,t,o,um,a),l===n)break;n=l}n!==null&&o.stopPropagation()}else Mg(e,t,o,null,a)}}function $g(e){return e=Wm(e),jg(e)}function jg(e){if(um=null,e=Te(e),e!==null){var t=U(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=B(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 um=e,null}function Vx(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 qo;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 pn;case"message":switch(DR()){case ly:return qo;case ry:return pn;case Mu:case ER:return Kn;case sy:return cp;default:return Kn}default:return Kn}}function $x(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":rd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sd.delete(t.pointerId)}}function fc(e,t,a,o,n,l){if(e===null||e.nativeEvent!==l)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:l,targetContainers:[n]},t!==null&&(t=Ke(t),t!==null&&Fx(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function CR(e,t,a,o,n){switch(t){case"focusin":return Ur=fc(Ur,e,t,a,o,n),!0;case"dragenter":return Pr=fc(Pr,e,t,a,o,n),!0;case"mouseover":return zr=fc(zr,e,t,a,o,n),!0;case"pointerover":var l=n.pointerId;return rd.set(l,fc(rd.get(l)||null,e,t,a,o,n)),!0;case"gotpointercapture":return l=n.pointerId,sd.set(l,fc(sd.get(l)||null,e,t,a,o,n)),!0}return!1}function jx(e){var t=Te(e.target);if(t!==null){var a=U(t);if(a!==null){if(t=a.tag,t===13){if(t=B(a),t!==null){e.blockedOn=t,le(e.priority,function(){Gx(a)});return}}else if(t===31){if(t=V(a),t!==null){e.blockedOn=t,le(e.priority,function(){Gx(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 tp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$g(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;yc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),yc=n,a.target.dispatchEvent(o),yc===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."),yc=null}else return t=Ke(a),t!==null&&Fx(t),e.blockedOn=a,!1;t.shift()}return!0}function Xx(e,t,a){tp(e)&&a.delete(t)}function LR(){xb=!1,Ur!==null&&tp(Ur)&&(Ur=null),Pr!==null&&tp(Pr)&&(Pr=null),zr!==null&&tp(zr)&&(zr=null),rd.forEach(Xx),sd.forEach(Xx)}function ap(e,t){e.blockedOn===t&&(e.blockedOn=null,xb||(xb=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,LR)))}function Yx(e){im!==e&&(im=e,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,function(){im===e&&(im=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(jg(o||a)===null)continue;else break;var l=Ke(a);l!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),jh(l,a,o,n))}}))}function Tu(e){function t(p){return ap(p,e)}Ur!==null&&ap(Ur,e),Pr!==null&&ap(Pr,e),zr!==null&&ap(zr,e),rd.forEach(t),sd.forEach(t);for(var a=0;a<_r.length;a++){var o=_r[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<_r.length&&(a=_r[0],a.blockedOn===null);)jx(a),a.blockedOn===null&&_r.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],l=a[o+1],s=n[lo]||null;if(typeof l==="function")s||Yx(a);else if(s){var c=null;if(l&&l.hasAttribute("formAction")){if(n=l,s=l[lo]||null)c=s.formAction;else if(jg(n)!==null)continue}else c=s.action;typeof c==="function"?a[o+1]=c:(a.splice(o,3),o-=3),Yx(a)}}}function Qx(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.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 Xg(e){this._internalRoot=e}function op(e){this._internalRoot=e}function Zx(e){e[gr]&&(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 ft=Object.assign,kR=Symbol.for("react.element"),Xn=Symbol.for("react.transitional.element"),Iu=Symbol.for("react.portal"),Ru=Symbol.for("react.fragment"),np=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),Qg=Symbol.for("react.consumer"),Yn=Symbol.for("react.context"),pc=Symbol.for("react.forward_ref"),Zg=Symbol.for("react.suspense"),Wg=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),Eo=Symbol.for("react.lazy"),Kg=Symbol.for("react.activity"),wR=Symbol.for("react.memo_cache_sentinel"),Wx=Symbol.iterator,TR=Symbol.for("react.client.reference"),Aa=Array.isArray,G=di.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qt=Lb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,IR=Object.freeze({pending:!1,data:null,method:null,action:null}),Jg=[],ey=[],Rl=-1,pr=ce(null),mc=ce(null),mr=ce(null),rp=ce(null),hc=0,Kx,Jx,eC,tC,aC,oC,nC;J.__reactDisabledLog=!0;var ty,lC,ay=!1,oy=new(typeof WeakMap==="function"?WeakMap:Map),Oo=null,Qn=!1,fn=Object.prototype.hasOwnProperty,ny=Tt.unstable_scheduleCallback,RR=Tt.unstable_cancelCallback,MR=Tt.unstable_shouldYield,AR=Tt.unstable_requestPaint,Na=Tt.unstable_now,DR=Tt.unstable_getCurrentPriorityLevel,ly=Tt.unstable_ImmediatePriority,ry=Tt.unstable_UserBlockingPriority,Mu=Tt.unstable_NormalPriority,ER=Tt.unstable_LowPriority,sy=Tt.unstable_IdlePriority,OR=Tt.log,qR=Tt.unstable_setDisableYieldValue,Au=null,Ka=null,Zn=!1,Wn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",no=Math.clz32?Math.clz32:Xd,{log:NR,LN2:BR}=Math,sp=256,up=262144,ip=4194304,qo=2,pn=8,Kn=32,cp=268435456,hr=Math.random().toString(36).slice(2),ja="__reactFiber$"+hr,lo="__reactProps$"+hr,gr="__reactContainer$"+hr,uy="__reactEvents$"+hr,UR="__reactListeners$"+hr,PR="__reactHandles$"+hr,rC="__reactResources$"+hr,gc="__reactMarker$"+hr,sC=new Set,xs={},iy={},zR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},_R=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]*$"),uC={},iC={},HR=/[\n"\\]/g,cC=!1,dC=!1,fC=!1,pC=!1,mC=!1,hC=!1,gC=["value","defaultValue"],yC=!1,bC=/["'&<>\n\t]|^\s|\s$/,FR="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(" "),vC="applet caption html table td th marquee object template foreignObject desc title".split(" "),GR=vC.concat(["button"]),VR="dd dt li option optgroup p rp rt".split(" "),SC={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},dp={},cy={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"]},xC=/([A-Z])/g,CC=/^ms-/,$R=/^(?:webkit|moz|o)[A-Z]/,jR=/^-ms-/,XR=/-(.)/g,LC=/;\s*$/,Du={},dy={},kC=!1,wC=!1,TC=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(" ")),fp="http://www.w3.org/1998/Math/MathML",Eu="http://www.w3.org/2000/svg",YR=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"]]),pp={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"},IC={"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},Ou={},QR=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]*$"),ZR=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]*$"),RC=!1,ro={},MC=/^on./,WR=/^on[^A-Z]/,KR=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]*$"),JR=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]*$"),eM=/^[\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,yc=null,qu=null,Nu=null,fy=!1,Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),py=!1;if(Jn)try{var bc={};Object.defineProperty(bc,"passive",{get:function(){py=!0}}),window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch(e){py=!1}var yr=null,my=null,mp=null,Cs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=mo(Cs),vc=ft({},Cs,{view:0,detail:0}),tM=mo(vc),hy,gy,Sc,gp=ft({},vc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Km,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==Sc&&(Sc&&e.type==="mousemove"?(hy=e.screenX-Sc.screenX,gy=e.screenY-Sc.screenY):gy=hy=0,Sc=e),hy},movementY:function(e){return"movementY"in e?e.movementY:gy}}),AC=mo(gp),aM=ft({},gp,{dataTransfer:0}),oM=mo(aM),nM=ft({},vc,{relatedTarget:0}),yy=mo(nM),lM=ft({},Cs,{animationName:0,elapsedTime:0,pseudoElement:0}),rM=mo(lM),sM=ft({},Cs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uM=mo(sM),iM=ft({},Cs,{data:0}),DC=mo(iM),cM=DC,dM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fM={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"},pM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},mM=ft({},vc,{key:function(e){if(e.key){var t=dM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ef(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Km,charCode:function(e){return e.type==="keypress"?ef(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ef(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hM=mo(mM),gM=ft({},gp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EC=mo(gM),yM=ft({},vc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Km}),bM=mo(yM),vM=ft({},Cs,{propertyName:0,elapsedTime:0,pseudoElement:0}),SM=mo(vM),xM=ft({},gp,{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}),CM=mo(xM),LM=ft({},Cs,{newState:0,oldState:0}),kM=mo(LM),wM=[9,13,27,32],OC=229,by=Jn&&"CompositionEvent"in window,xc=null;Jn&&"documentMode"in document&&(xc=document.documentMode);var TM=Jn&&"TextEvent"in window&&!xc,qC=Jn&&(!by||xc&&8<xc&&11>=xc),NC=32,BC=String.fromCharCode(NC),UC=!1,Bu=!1,IM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Cc=null,Lc=null,PC=!1;Jn&&(PC=YT("input")&&(!document.documentMode||9<document.documentMode));var so=typeof Object.is==="function"?Object.is:eI,RM=Jn&&"documentMode"in document&&11>=document.documentMode,Uu=null,vy=null,kc=null,Sy=!1,Pu={animationend:ss("Animation","AnimationEnd"),animationiteration:ss("Animation","AnimationIteration"),animationstart:ss("Animation","AnimationStart"),transitionrun:ss("Transition","TransitionRun"),transitionstart:ss("Transition","TransitionStart"),transitioncancel:ss("Transition","TransitionCancel"),transitionend:ss("Transition","TransitionEnd")},xy={},zC={};Jn&&(zC=document.createElement("div").style,("AnimationEvent"in window)||(delete Pu.animationend.animation,delete Pu.animationiteration.animation,delete Pu.animationstart.animation),("TransitionEvent"in window)||delete Pu.transitionend.transition);var _C=us("animationend"),HC=us("animationiteration"),FC=us("animationstart"),MM=us("transitionrun"),AM=us("transitionstart"),DM=us("transitioncancel"),GC=us("transitionend"),VC=new Map,Cy="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(" ");Cy.push("scrollEnd");var $C=0;if(typeof performance==="object"&&typeof performance.now==="function")var EM=performance,jC=function(){return EM.now()};else{var OM=Date;jC=function(){return OM.now()}}var Ly=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)},qM="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.",yp=0,ky=1,wy=2,Ty=3,bp="– ",vp="+ ",XC="  ",Qt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",jo="Components ⚛",pt="Scheduler ⚛",mt="Blocking",br=!1,Ml={color:"primary",properties:null,tooltipText:"",track:jo},vr={start:-0,end:-0,detail:{devtools:Ml}},NM=["Changed Props",""],YC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",BM=["Changed Props",YC],wc=1,Al=2,Xo=[],zu=0,Iy=0,Sr={};Object.freeze(Sr);var Yo=null,_u=null,He=0,UM=1,rt=2,Ja=8,mn=16,PM=32,QC=!1;try{var ZC=Object.preventExtensions({})}catch(e){QC=!0}var Ry=new WeakMap,Hu=[],Fu=0,Sp=null,Tc=0,Qo=[],Zo=0,Ls=null,Dl=1,El="",Xa=null,Zt=null,gt=!1,el=!1,No=null,xr=null,Wo=!1,My=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."),Ay=ce(null),Dy=ce(null),WC={},xp=null,Gu=null,Vu=!1,zM=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()})}},_M=Tt.unstable_scheduleCallback,HM=Tt.unstable_NormalPriority,xa={$$typeof:Yn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ca=Tt.unstable_now,Cp=console.createTask?console.createTask:function(){return null},Ic=1,Lp=2,Ba=-0,Cr=-0,Ol=-0,ql=null,uo=-1.1,ks=-0,aa=-0,qe=-1.1,Ue=-1.1,ta=null,sa=!1,Lr=-0,tl=-1.1,Rc=null,kr=0,Ey=null,Oy=null,ws=-1.1,Mc=null,$u=-1.1,kp=-1.1,al=-0,Nl=-1.1,Ko=-1.1,qy=0,Ac=null,KC=null,JC=null,wr=-1.1,Ts=null,Tr=-1.1,wp=-1.1,eL=-0,tL=-0,Tp=0,Bl=null,aL=0,Dc=-1.1,Ip=!1,Rp=!1,Ec=null,Ny=0,Is=0,ju=null,oL=G.S;G.S=function(e,t){if(KL=Na(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>Nl&&0>Ko){Nl=Ca();var a=uc(),o=sc();if(a!==Tr||o!==Ts)Tr=-1.1;wr=a,Ts=o}sI(e,t)}oL!==null&&oL(e,t)};var Rs=ce(null),hn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Oc=[],qc=[],Nc=[],Bc=[],Uc=[],Pc=[],Ms=new Set;hn.recordUnsafeLifecycleWarnings=function(e,t){Ms.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Oc.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&qc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Nc.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Bc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Uc.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Pc.push(e))},hn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Oc.length&&(Oc.forEach(function(c){e.add(F(c)||"Component"),Ms.add(c.type)}),Oc=[]);var t=new Set;0<qc.length&&(qc.forEach(function(c){t.add(F(c)||"Component"),Ms.add(c.type)}),qc=[]);var a=new Set;0<Nc.length&&(Nc.forEach(function(c){a.add(F(c)||"Component"),Ms.add(c.type)}),Nc=[]);var o=new Set;0<Bc.length&&(Bc.forEach(function(c){o.add(F(c)||"Component"),Ms.add(c.type)}),Bc=[]);var n=new Set;0<Uc.length&&(Uc.forEach(function(c){n.add(F(c)||"Component"),Ms.add(c.type)}),Uc=[]);var l=new Set;if(0<Pc.length&&(Pc.forEach(function(c){l.add(F(c)||"Component"),Ms.add(c.type)}),Pc=[]),0<t.size){var s=C(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,V(an)||"Unknown")),o=Br(t),o.payload={element:a},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),o.callback=r),a=zr(e,o,t),a!==null&&(ul(t,"root.render()",null),La(a,e,t),Ad(a,e,t))}function K1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Wy(e,t){K1(e,t),(e=e.alternate)&&K1(e,t)}function J1(e){if(e.tag===13||e.tag===31){var t=vo(e,67108864);t!==null&&La(t,e,67108864),Wy(e,67108864)}}function ek(e){if(e.tag===13||e.tag===31){var t=Jo(e);t=Ps(t);var a=vo(e,t);a!==null&&La(a,e,t),Wy(e,t)}}function RM(){return an}function MM(e,t,a,o){var l=j.T;j.T=null;var r=Xt.p;try{Xt.p=on,Zy(e,t,a,o)}finally{Xt.p=r,j.T=l}}function AM(e,t,a,o){var l=j.T;j.T=null;var r=Xt.p;try{Xt.p=Gn,Zy(e,t,a,o)}finally{Xt.p=r,j.T=l}}function Zy(e,t,a,o){if(sh){var l=Ky(o);if(l===null)By(e,t,o,ih,a),ak(e,o);else if(DM(l,e,t,a,o))o.stopPropagation();else if(ak(e,o),t&4&&-1<CD.indexOf(e)){for(;l!==null;){var r=tt(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var u=Dt(r.pendingLanes);if(u!==0){var f=r;f.pendingLanes|=2;for(f.entangledLanes|=2;u;){var v=1<<31-wo(u);f.entanglements[1]|=v,u&=~v}xl(r),(Nt&(Wa|sn))===ao&&(Vm=Ja()+cL,Vd(0,!1))}}break;case 31:case 13:f=vo(r,2),f!==null&&La(f,r,2),ou(),Wy(r,2)}if(r=Ky(o),r===null&&By(e,t,o,ih,a),r===l)break;l=r}l!==null&&o.stopPropagation()}else By(e,t,o,null,a)}}function Ky(e){return e=ng(e),Jy(e)}function Jy(e){if(ih=null,e=Ie(e),e!==null){var t=O(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=B(t),e!==null)return e;e=null}else if(a===31){if(e=F(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 ih=e,null}function tk(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 on;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 Gn;case"message":switch(_M()){case fv:return on;case pv:return Gn;case cu:case HM:return Il;case mv:return dm;default:return Il}default:return Il}}function ak(e,t){switch(e){case"focusin":case"focusout":ms=null;break;case"dragenter":case"dragleave":hs=null;break;case"mouseover":case"mouseout":gs=null;break;case"pointerover":case"pointerout":$c.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(t.pointerId)}}function Zd(e,t,a,o,l,r){if(e===null||e.nativeEvent!==r)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:r,targetContainers:[l]},t!==null&&(t=tt(t),t!==null&&J1(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function DM(e,t,a,o,l){switch(t){case"focusin":return ms=Zd(ms,e,t,a,o,l),!0;case"dragenter":return hs=Zd(hs,e,t,a,o,l),!0;case"mouseover":return gs=Zd(gs,e,t,a,o,l),!0;case"pointerover":var r=l.pointerId;return $c.set(r,Zd($c.get(r)||null,e,t,a,o,l)),!0;case"gotpointercapture":return r=l.pointerId,jc.set(r,Zd(jc.get(r)||null,e,t,a,o,l)),!0}return!1}function ok(e){var t=Ie(e.target);if(t!==null){var a=O(t);if(a!==null){if(t=a.tag,t===13){if(t=B(a),t!==null){e.blockedOn=t,se(e.priority,function(){ek(a)});return}}else if(t===31){if(t=F(a),t!==null){e.blockedOn=t,se(e.priority,function(){ek(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 tm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ky(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;ac!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ac=l,a.target.dispatchEvent(o),ac===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."),ac=null}else return t=tt(a),t!==null&&J1(t),e.blockedOn=a,!1;t.shift()}return!0}function nk(e,t,a){tm(e)&&a.delete(t)}function EM(){Rb=!1,ms!==null&&tm(ms)&&(ms=null),hs!==null&&tm(hs)&&(hs=null),gs!==null&&tm(gs)&&(gs=null),$c.forEach(nk),jc.forEach(nk)}function am(e,t){e.blockedOn===t&&(e.blockedOn=null,Rb||(Rb=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,EM)))}function lk(e){uh!==e&&(uh=e,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,function(){uh===e&&(uh=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!=="function")if(Jy(o||a)===null)continue;else break;var r=tt(a);r!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),Jg(r,a,o,l))}}))}function iu(e){function t(v){return am(v,e)}ms!==null&&am(ms,e),hs!==null&&am(hs,e),gs!==null&&am(gs,e),$c.forEach(t),jc.forEach(t);for(var a=0;a<ys.length;a++){var o=ys[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<ys.length&&(a=ys[0],a.blockedOn===null);)ok(a),a.blockedOn===null&&ys.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],r=a[o+1],u=l[To]||null;if(typeof r==="function")u||lk(a);else if(u){var f=null;if(r&&r.hasAttribute("formAction")){if(l=r,u=r[To]||null)f=u.formAction;else if(Jy(l)!==null)continue}else f=u.action;typeof f==="function"?a[o+1]=f:(a.splice(o,3),o-=3),lk(a)}}}function rk(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(u){return l=u})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,l=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),l!==null&&(l(),l=null)}}}function ev(e){this._internalRoot=e}function om(e){this._internalRoot=e}function sk(e){e[Xr]&&(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 bt=Object.assign,NM=Symbol.for("react.element"),kl=Symbol.for("react.transitional.element"),uu=Symbol.for("react.portal"),du=Symbol.for("react.fragment"),nm=Symbol.for("react.strict_mode"),tv=Symbol.for("react.profiler"),av=Symbol.for("react.consumer"),Cl=Symbol.for("react.context"),Kd=Symbol.for("react.forward_ref"),ov=Symbol.for("react.suspense"),nv=Symbol.for("react.suspense_list"),lm=Symbol.for("react.memo"),tn=Symbol.for("react.lazy"),lv=Symbol.for("react.activity"),OM=Symbol.for("react.memo_cache_sentinel"),ik=Symbol.iterator,qM=Symbol.for("react.client.reference"),Ya=Array.isArray,j=Xu.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xt=Ab.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,BM=Object.freeze({pending:!1,data:null,method:null,action:null}),rv=[],sv=[],ar=-1,Vr=ke(null),Jd=ke(null),$r=ke(null),rm=ke(null),ec=0,uk,dk,ck,fk,pk,mk,hk;W.__reactDisabledLog=!0;var iv,gk,uv=!1,dv=new(typeof WeakMap==="function"?WeakMap:Map),an=null,Ll=!1,Fn=Object.prototype.hasOwnProperty,cv=Bt.unstable_scheduleCallback,zM=Bt.unstable_cancelCallback,UM=Bt.unstable_shouldYield,PM=Bt.unstable_requestPaint,Ja=Bt.unstable_now,_M=Bt.unstable_getCurrentPriorityLevel,fv=Bt.unstable_ImmediatePriority,pv=Bt.unstable_UserBlockingPriority,cu=Bt.unstable_NormalPriority,HM=Bt.unstable_LowPriority,mv=Bt.unstable_IdlePriority,FM=Bt.log,GM=Bt.unstable_setDisableYieldValue,fu=null,bo=null,wl=!1,Tl=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",wo=Math.clz32?Math.clz32:Fi,{log:VM,LN2:$M}=Math,sm=256,im=262144,um=4194304,on=2,Gn=8,Il=32,dm=268435456,jr=Math.random().toString(36).slice(2),fo="__reactFiber$"+jr,To="__reactProps$"+jr,Xr="__reactContainer$"+jr,hv="__reactEvents$"+jr,jM="__reactListeners$"+jr,XM="__reactHandles$"+jr,yk="__reactResources$"+jr,tc="__reactMarker$"+jr,vk=new Set,ti={},gv={},YM={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},QM=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]*$"),bk={},xk={},WM=/[\n"\\]/g,Sk=!1,kk=!1,Ck=!1,Lk=!1,wk=!1,Tk=!1,Ik=["value","defaultValue"],Rk=!1,Mk=/["'&<>\n\t]|^\s|\s$/,ZM="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(" "),Ak="applet caption html table td th marquee object template foreignObject desc title".split(" "),KM=Ak.concat(["button"]),JM="dd dt li option optgroup p rp rt".split(" "),Dk={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},cm={},yv={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"]},Ek=/([A-Z])/g,Nk=/^ms-/,eA=/^(?:webkit|moz|o)[A-Z]/,tA=/^-ms-/,aA=/-(.)/g,Ok=/;\s*$/,pu={},vv={},qk=!1,Bk=!1,zk=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(" ")),fm="http://www.w3.org/1998/Math/MathML",mu="http://www.w3.org/2000/svg",oA=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"]]),pm={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"},Uk={"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},hu={},nA=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),lA=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Pk=!1,Io={},_k=/^on./,rA=/^on[^A-Z]/,sA=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),iA=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]*$"),uA=/^[\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,ac=null,gu=null,yu=null,bv=!1,Rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xv=!1;if(Rl)try{var oc={};Object.defineProperty(oc,"passive",{get:function(){xv=!0}}),window.addEventListener("test",oc,oc),window.removeEventListener("test",oc,oc)}catch(e){xv=!1}var Yr=null,Sv=null,mm=null,ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hm=Bo(ai),nc=bt({},ai,{view:0,detail:0}),dA=Bo(nc),kv,Cv,lc,gm=bt({},nc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lg,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"?(kv=e.screenX-lc.screenX,Cv=e.screenY-lc.screenY):Cv=kv=0,lc=e),kv},movementY:function(e){return"movementY"in e?e.movementY:Cv}}),Hk=Bo(gm),cA=bt({},gm,{dataTransfer:0}),fA=Bo(cA),pA=bt({},nc,{relatedTarget:0}),Lv=Bo(pA),mA=bt({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),hA=Bo(mA),gA=bt({},ai,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yA=Bo(gA),vA=bt({},ai,{data:0}),Fk=Bo(vA),bA=Fk,xA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SA={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"},kA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},CA=bt({},nc,{key:function(e){if(e.key){var t=xA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lg,charCode:function(e){return e.type==="keypress"?tp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LA=Bo(CA),wA=bt({},gm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gk=Bo(wA),TA=bt({},nc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lg}),IA=Bo(TA),RA=bt({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),MA=Bo(RA),AA=bt({},gm,{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}),DA=Bo(AA),EA=bt({},ai,{newState:0,oldState:0}),NA=Bo(EA),OA=[9,13,27,32],Vk=229,wv=Rl&&"CompositionEvent"in window,rc=null;Rl&&"documentMode"in document&&(rc=document.documentMode);var qA=Rl&&"TextEvent"in window&&!rc,$k=Rl&&(!wv||rc&&8<rc&&11>=rc),jk=32,Xk=String.fromCharCode(jk),Yk=!1,vu=!1,BA={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},sc=null,ic=null,Qk=!1;Rl&&(Qk=oR("input")&&(!document.documentMode||9<document.documentMode));var Ro=typeof Object.is==="function"?Object.is:uR,zA=Rl&&"documentMode"in document&&11>=document.documentMode,bu=null,Tv=null,uc=null,Iv=!1,xu={animationend:Hs("Animation","AnimationEnd"),animationiteration:Hs("Animation","AnimationIteration"),animationstart:Hs("Animation","AnimationStart"),transitionrun:Hs("Transition","TransitionRun"),transitionstart:Hs("Transition","TransitionStart"),transitioncancel:Hs("Transition","TransitionCancel"),transitionend:Hs("Transition","TransitionEnd")},Rv={},Wk={};Rl&&(Wk=document.createElement("div").style,("AnimationEvent"in window)||(delete xu.animationend.animation,delete xu.animationiteration.animation,delete xu.animationstart.animation),("TransitionEvent"in window)||delete xu.transitionend.transition);var Zk=Fs("animationend"),Kk=Fs("animationiteration"),Jk=Fs("animationstart"),UA=Fs("transitionrun"),PA=Fs("transitionstart"),_A=Fs("transitioncancel"),eC=Fs("transitionend"),tC=new Map,Mv="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(" ");Mv.push("scrollEnd");var aC=0;if(typeof performance==="object"&&typeof performance.now==="function")var HA=performance,oC=function(){return HA.now()};else{var FA=Date;oC=function(){return FA.now()}}var Av=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)},GA="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.",ym=0,Dv=1,Ev=2,Nv=3,vm="– ",bm="+ ",nC="  ",da=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",xn="Components ⚛",xt="Scheduler ⚛",Lt="Blocking",Qr=!1,or={color:"primary",properties:null,tooltipText:"",track:xn},Wr={start:-0,end:-0,detail:{devtools:or}},VA=["Changed Props",""],lC="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",$A=["Changed Props",lC],dc=1,nr=2,Sn=[],Su=0,Ov=0,Zr={};Object.freeze(Zr);var kn=null,ku=null,Ye=0,jA=1,dt=2,xo=8,Vn=16,XA=32,rC=!1;try{var sC=Object.preventExtensions({})}catch(e){rC=!0}var qv=new WeakMap,Cu=[],Lu=0,xm=null,cc=0,Cn=[],Ln=0,oi=null,lr=1,rr="",po=null,ca=null,Tt=!1,Ml=!1,nn=null,Kr=null,wn=!1,Bv=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."),zv=ke(null),Uv=ke(null),iC={},Sm=null,wu=null,Tu=!1,YA=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()})}},QA=Bt.unstable_scheduleCallback,WA=Bt.unstable_NormalPriority,_a={$$typeof:Cl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ha=Bt.unstable_now,km=console.createTask?console.createTask:function(){return null},fc=1,Cm=2,eo=-0,Jr=-0,sr=-0,ir=null,Mo=-1.1,ni=-0,Sa=-0,ze=-1.1,Ve=-1.1,ba=null,wa=!1,es=-0,Al=-1.1,pc=null,ts=0,Pv=null,_v=null,li=-1.1,mc=null,Iu=-1.1,Lm=-1.1,Dl=-0,ur=-1.1,Tn=-1.1,Hv=0,hc=null,uC=null,dC=null,as=-1.1,ri=null,os=-1.1,wm=-1.1,cC=-0,fC=-0,Tm=0,dr=null,pC=0,gc=-1.1,Im=!1,Rm=!1,yc=null,Fv=0,si=0,Ru=null,mC=j.S;j.S=function(e,t){if(uL=Ja(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>ur&&0>Tn){ur=Ha();var a=Xd(),o=jd();if(a!==os||o!==ri)os=-1.1;as=a,ri=o}gR(e,t)}mC!==null&&mC(e,t)};var ii=ke(null),$n={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},vc=[],bc=[],xc=[],Sc=[],kc=[],Cc=[],ui=new Set;$n.recordUnsafeLifecycleWarnings=function(e,t){ui.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&vc.push(e),e.mode&xo&&typeof t.UNSAFE_componentWillMount==="function"&&bc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&xc.push(e),e.mode&xo&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Sc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&kc.push(e),e.mode&xo&&typeof t.UNSAFE_componentWillUpdate==="function"&&Cc.push(e))},$n.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<vc.length&&(vc.forEach(function(f){e.add(V(f)||"Component"),ui.add(f.type)}),vc=[]);var t=new Set;0<bc.length&&(bc.forEach(function(f){t.add(V(f)||"Component"),ui.add(f.type)}),bc=[]);var a=new Set;0<xc.length&&(xc.forEach(function(f){a.add(V(f)||"Component"),ui.add(f.type)}),xc=[]);var o=new Set;0<Sc.length&&(Sc.forEach(function(f){o.add(V(f)||"Component"),ui.add(f.type)}),Sc=[]);var l=new Set;0<kc.length&&(kc.forEach(function(f){l.add(V(f)||"Component"),ui.add(f.type)}),kc=[]);var r=new Set;if(0<Cc.length&&(Cc.forEach(function(f){r.add(V(f)||"Component"),ui.add(f.type)}),Cc=[]),0<t.size){var u=x(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
 
188
- Please update the following components: %s`,s)}0<o.size&&(s=C(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
188
+ Please update the following components: %s`,u)}0<o.size&&(u=x(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
189
 
190
190
  * Move data fetching code or side effects to componentDidUpdate.
191
191
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
192
192
 
193
- Please update the following components: %s`,s)),0<l.size&&(s=C(l),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+ Please update the following components: %s`,u)),0<r.size&&(u=x(r),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
194
 
195
195
  * Move data fetching code or side effects to componentDidUpdate.
196
196
 
197
- Please update the following components: %s`,s)),0<e.size&&(s=C(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
197
+ Please update the following components: %s`,u)),0<e.size&&(u=x(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
198
198
 
199
199
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
200
200
  * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
201
201
 
202
- Please update the following components: %s`,s)),0<a.size&&(s=C(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+ Please update the following components: %s`,u)),0<a.size&&(u=x(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
203
 
204
204
  * Move data fetching code or side effects to componentDidUpdate.
205
205
  * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
206
206
  * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
207
207
 
208
- Please update the following components: %s`,s)),0<n.size&&(s=C(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`,u)),0<l.size&&(u=x(l),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`,s))};var Mp=new Map,nL=new Set;hn.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&Ja&&(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."):!nL.has(e.type)&&(o=Mp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Mp.set(a,o)),o.push(e))},hn.flushLegacyContextWarning=function(){Mp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(n){a.add(F(n)||"Component"),nL.add(n.type)});var o=C(a);j(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,u))};var Mm=new Map,hC=new Set;$n.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&xo&&(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."):!hC.has(e.type)&&(o=Mm.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Mm.set(a,o)),o.push(e))},$n.flushLegacyContextWarning=function(){Mm.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(l){a.add(V(l)||"Component"),hC.add(l.type)});var o=x(a);Y(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},hn.discardPendingWarnings=function(){Oc=[],qc=[],Nc=[],Bc=[],Uc=[],Pc=[],Mp=new Map};var lL={react_stack_bottom_frame:function(e,t,a){var o=Qn;Qn=!0;try{return e(t,a)}finally{Qn=o}}},By=lL.react_stack_bottom_frame.bind(lL),rL={react_stack_bottom_frame:function(e){var t=Qn;Qn=!0;try{return e.render()}finally{Qn=t}}},sL=rL.react_stack_bottom_frame.bind(rL),uL={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Ot(e,e.return,a)}}},Uy=uL.react_stack_bottom_frame.bind(uL),iL={react_stack_bottom_frame:function(e,t,a,o,n){try{t.componentDidUpdate(a,o,n)}catch(l){Ot(e,e.return,l)}}},cL=iL.react_stack_bottom_frame.bind(iL),dL={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},FM=dL.react_stack_bottom_frame.bind(dL),fL={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Ot(e,t,o)}}},pL=fL.react_stack_bottom_frame.bind(fL),mL={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},GM=mL.react_stack_bottom_frame.bind(mL),hL={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Ot(e,t,o)}}},VM=hL.react_stack_bottom_frame.bind(hL),gL={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},$M=gL.react_stack_bottom_frame.bind(gL),Xu=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`."),Py=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."),Ap=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."),Dp={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.')}},As=null,zc=!1,Yu=null,_c=0,st=null,zy,yL=zy=!1,bL={},vL={},SL={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=F(e),n=o||"null";if(!bL[n]){bL[n]=!0,a=a._owner,e=e._debugOwner;var l="";e&&typeof e.tag==="number"&&(n=F(e))&&(l=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},$n.discardPendingWarnings=function(){vc=[],bc=[],xc=[],Sc=[],kc=[],Cc=[],Mm=new Map};var gC={react_stack_bottom_frame:function(e,t,a){var o=Ll;Ll=!0;try{return e(t,a)}finally{Ll=o}}},Gv=gC.react_stack_bottom_frame.bind(gC),yC={react_stack_bottom_frame:function(e){var t=Ll;Ll=!0;try{return e.render()}finally{Ll=t}}},vC=yC.react_stack_bottom_frame.bind(yC),bC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){jt(e,e.return,a)}}},Vv=bC.react_stack_bottom_frame.bind(bC),xC={react_stack_bottom_frame:function(e,t,a,o,l){try{t.componentDidUpdate(a,o,l)}catch(r){jt(e,e.return,r)}}},SC=xC.react_stack_bottom_frame.bind(xC),kC={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},ZA=kC.react_stack_bottom_frame.bind(kC),CC={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){jt(e,t,o)}}},LC=CC.react_stack_bottom_frame.bind(CC),wC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},KA=wC.react_stack_bottom_frame.bind(wC),TC={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){jt(e,t,o)}}},JA=TC.react_stack_bottom_frame.bind(TC),IC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},eD=IC.react_stack_bottom_frame.bind(IC),Mu=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`."),$v=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."),Am=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."),Dm={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.')}},di=null,Lc=!1,Au=null,wc=0,ct=null,jv,RC=jv=!1,MC={},AC={},DC={};p=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),l=o||"null";if(!MC[l]){MC[l]=!0,a=a._owner,e=e._debugOwner;var r="";e&&typeof e.tag==="number"&&(l=V(e))&&(r=`
220
220
 
221
- Check the render method of \``+n+"`."),l||o&&(l=`
221
+ Check the render method of \``+l+"`."),r||o&&(r=`
222
222
 
223
- Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=F(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),j(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',l,s)})}}};var Ds=f0(!0),xL=f0(!1),CL=0,LL=1,kL=2,_y=3,Ir=!1,wL=!1,Hy=null,Fy=!1,Qu=ce(null),Ep=ce(0),Bo=ce(null),Jo=null,Zu=1,Hc=2,ya=ce(0),Op=0,en=1,io=2,Uo=4,co=8,Wu,TL=new Set,IL=new Set,Gy=new Set,RL=new Set,Ul=0,Ye=null,Gt=null,La=null,qp=!1,Ku=!1,Es=!1,Np=0,Fc=0,Pl=null,jM=0,XM=25,z=null,tn=null,zl=-1,Gc=!1,Vc={readContext:ea,use:ir,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useLayoutEffect:pa,useInsertionEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useSyncExternalStore:pa,useId:pa,useHostTransitionStatus:pa,useFormState:pa,useActionState:pa,useOptimistic:pa,useMemoCache:pa,useCacheRefresh:pa};Vc.useEffectEvent=pa;var Vy=null,ML=null,$y=null,AL=null,ol=null,gn=null,Bp=null;Vy={readContext:function(e){return ea(e)},use:ir,useCallback:function(e,t){return z="useCallback",dt(),mu(t),Fh(e,t)},useContext:function(e){return z="useContext",dt(),ea(e)},useEffect:function(e,t){return z="useEffect",dt(),mu(t),Mf(e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",dt(),mu(a),Hh(e,t,a)},useInsertionEffect:function(e,t){z="useInsertionEffect",dt(),mu(t),gs(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",dt(),mu(t),_h(e,t)},useMemo:function(e,t){z="useMemo",dt(),mu(t);var a=G.H;G.H=ol;try{return Gh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",dt();var o=G.H;G.H=ol;try{return Dh(e,t,a)}finally{G.H=o}},useRef:function(e){return z="useRef",dt(),Ph(e)},useState:function(e){z="useState",dt();var t=G.H;G.H=ol;try{return Nh(e)}finally{G.H=t}},useDebugValue:function(){z="useDebugValue",dt()},useDeferredValue:function(e,t){return z="useDeferredValue",dt(),Vh(e,t)},useTransition:function(){return z="useTransition",dt(),Xh()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",dt(),Oh(e,t,a)},useId:function(){return z="useId",dt(),Yh()},useFormState:function(e,t){return z="useFormState",dt(),kf(),gu(e,t)},useActionState:function(e,t){return z="useActionState",dt(),gu(e,t)},useOptimistic:function(e){return z="useOptimistic",dt(),Bh(e)},useHostTransitionStatus:ys,useMemoCache:hs,useCacheRefresh:function(){return z="useCacheRefresh",dt(),Qh()},useEffectEvent:function(e){return z="useEffectEvent",dt(),zh(e)}},ML={readContext:function(e){return ea(e)},use:ir,useCallback:function(e,t){return z="useCallback",ae(),Fh(e,t)},useContext:function(e){return z="useContext",ae(),ea(e)},useEffect:function(e,t){return z="useEffect",ae(),Mf(e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",ae(),Hh(e,t,a)},useInsertionEffect:function(e,t){z="useInsertionEffect",ae(),gs(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",ae(),_h(e,t)},useMemo:function(e,t){z="useMemo",ae();var a=G.H;G.H=ol;try{return Gh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",ae();var o=G.H;G.H=ol;try{return Dh(e,t,a)}finally{G.H=o}},useRef:function(e){return z="useRef",ae(),Ph(e)},useState:function(e){z="useState",ae();var t=G.H;G.H=ol;try{return Nh(e)}finally{G.H=t}},useDebugValue:function(){z="useDebugValue",ae()},useDeferredValue:function(e,t){return z="useDeferredValue",ae(),Vh(e,t)},useTransition:function(){return z="useTransition",ae(),Xh()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",ae(),Oh(e,t,a)},useId:function(){return z="useId",ae(),Yh()},useActionState:function(e,t){return z="useActionState",ae(),gu(e,t)},useFormState:function(e,t){return z="useFormState",ae(),kf(),gu(e,t)},useOptimistic:function(e){return z="useOptimistic",ae(),Bh(e)},useHostTransitionStatus:ys,useMemoCache:hs,useCacheRefresh:function(){return z="useCacheRefresh",ae(),Qh()},useEffectEvent:function(e){return z="useEffectEvent",ae(),zh(e)}},$y={readContext:function(e){return ea(e)},use:ir,useCallback:function(e,t){return z="useCallback",ae(),Ef(e,t)},useContext:function(e){return z="useContext",ae(),ea(e)},useEffect:function(e,t){z="useEffect",ae(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",ae(),Df(e,t,a)},useInsertionEffect:function(e,t){return z="useInsertionEffect",ae(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",ae(),ho(4,Uo,e,t)},useMemo:function(e,t){z="useMemo",ae();var a=G.H;G.H=gn;try{return Of(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",ae();var o=G.H;G.H=gn;try{return hu(e,t,a)}finally{G.H=o}},useRef:function(){return z="useRef",ae(),Pt().memoizedState},useState:function(){z="useState",ae();var e=G.H;G.H=gn;try{return hu(cn)}finally{G.H=e}},useDebugValue:function(){z="useDebugValue",ae()},useDeferredValue:function(e,t){return z="useDeferredValue",ae(),q0(e,t)},useTransition:function(){return z="useTransition",ae(),_0()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",ae(),Tf(e,t,a)},useId:function(){return z="useId",ae(),Pt().memoizedState},useFormState:function(e){return z="useFormState",ae(),kf(),If(e)},useActionState:function(e){return z="useActionState",ae(),If(e)},useOptimistic:function(e,t){return z="useOptimistic",ae(),k0(e,t)},useHostTransitionStatus:ys,useMemoCache:hs,useCacheRefresh:function(){return z="useCacheRefresh",ae(),Pt().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",ae(),Af(e)}},AL={readContext:function(e){return ea(e)},use:ir,useCallback:function(e,t){return z="useCallback",ae(),Ef(e,t)},useContext:function(e){return z="useContext",ae(),ea(e)},useEffect:function(e,t){z="useEffect",ae(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",ae(),Df(e,t,a)},useInsertionEffect:function(e,t){return z="useInsertionEffect",ae(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",ae(),ho(4,Uo,e,t)},useMemo:function(e,t){z="useMemo",ae();var a=G.H;G.H=Bp;try{return Of(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",ae();var o=G.H;G.H=Bp;try{return Qi(e,t,a)}finally{G.H=o}},useRef:function(){return z="useRef",ae(),Pt().memoizedState},useState:function(){z="useState",ae();var e=G.H;G.H=Bp;try{return Qi(cn)}finally{G.H=e}},useDebugValue:function(){z="useDebugValue",ae()},useDeferredValue:function(e,t){return z="useDeferredValue",ae(),N0(e,t)},useTransition:function(){return z="useTransition",ae(),H0()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",ae(),Tf(e,t,a)},useId:function(){return z="useId",ae(),Pt().memoizedState},useFormState:function(e){return z="useFormState",ae(),kf(),Rf(e)},useActionState:function(e){return z="useActionState",ae(),Rf(e)},useOptimistic:function(e,t){return z="useOptimistic",ae(),T0(e,t)},useHostTransitionStatus:ys,useMemoCache:hs,useCacheRefresh:function(){return z="useCacheRefresh",ae(),Pt().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",ae(),Af(e)}},ol={readContext:function(e){return S(),ea(e)},use:function(e){return v(),ir(e)},useCallback:function(e,t){return z="useCallback",v(),dt(),Fh(e,t)},useContext:function(e){return z="useContext",v(),dt(),ea(e)},useEffect:function(e,t){return z="useEffect",v(),dt(),Mf(e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",v(),dt(),Hh(e,t,a)},useInsertionEffect:function(e,t){z="useInsertionEffect",v(),dt(),gs(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",v(),dt(),_h(e,t)},useMemo:function(e,t){z="useMemo",v(),dt();var a=G.H;G.H=ol;try{return Gh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",v(),dt();var o=G.H;G.H=ol;try{return Dh(e,t,a)}finally{G.H=o}},useRef:function(e){return z="useRef",v(),dt(),Ph(e)},useState:function(e){z="useState",v(),dt();var t=G.H;G.H=ol;try{return Nh(e)}finally{G.H=t}},useDebugValue:function(){z="useDebugValue",v(),dt()},useDeferredValue:function(e,t){return z="useDeferredValue",v(),dt(),Vh(e,t)},useTransition:function(){return z="useTransition",v(),dt(),Xh()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",v(),dt(),Oh(e,t,a)},useId:function(){return z="useId",v(),dt(),Yh()},useFormState:function(e,t){return z="useFormState",v(),dt(),gu(e,t)},useActionState:function(e,t){return z="useActionState",v(),dt(),gu(e,t)},useOptimistic:function(e){return z="useOptimistic",v(),dt(),Bh(e)},useMemoCache:function(e){return v(),hs(e)},useHostTransitionStatus:ys,useCacheRefresh:function(){return z="useCacheRefresh",dt(),Qh()},useEffectEvent:function(e){return z="useEffectEvent",v(),dt(),zh(e)}},gn={readContext:function(e){return S(),ea(e)},use:function(e){return v(),ir(e)},useCallback:function(e,t){return z="useCallback",v(),ae(),Ef(e,t)},useContext:function(e){return z="useContext",v(),ae(),ea(e)},useEffect:function(e,t){z="useEffect",v(),ae(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",v(),ae(),Df(e,t,a)},useInsertionEffect:function(e,t){return z="useInsertionEffect",v(),ae(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",v(),ae(),ho(4,Uo,e,t)},useMemo:function(e,t){z="useMemo",v(),ae();var a=G.H;G.H=gn;try{return Of(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",v(),ae();var o=G.H;G.H=gn;try{return hu(e,t,a)}finally{G.H=o}},useRef:function(){return z="useRef",v(),ae(),Pt().memoizedState},useState:function(){z="useState",v(),ae();var e=G.H;G.H=gn;try{return hu(cn)}finally{G.H=e}},useDebugValue:function(){z="useDebugValue",v(),ae()},useDeferredValue:function(e,t){return z="useDeferredValue",v(),ae(),q0(e,t)},useTransition:function(){return z="useTransition",v(),ae(),_0()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",v(),ae(),Tf(e,t,a)},useId:function(){return z="useId",v(),ae(),Pt().memoizedState},useFormState:function(e){return z="useFormState",v(),ae(),If(e)},useActionState:function(e){return z="useActionState",v(),ae(),If(e)},useOptimistic:function(e,t){return z="useOptimistic",v(),ae(),k0(e,t)},useMemoCache:function(e){return v(),hs(e)},useHostTransitionStatus:ys,useCacheRefresh:function(){return z="useCacheRefresh",ae(),Pt().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",v(),ae(),Af(e)}},Bp={readContext:function(e){return S(),ea(e)},use:function(e){return v(),ir(e)},useCallback:function(e,t){return z="useCallback",v(),ae(),Ef(e,t)},useContext:function(e){return z="useContext",v(),ae(),ea(e)},useEffect:function(e,t){z="useEffect",v(),ae(),ho(2048,co,e,t)},useImperativeHandle:function(e,t,a){return z="useImperativeHandle",v(),ae(),Df(e,t,a)},useInsertionEffect:function(e,t){return z="useInsertionEffect",v(),ae(),ho(4,io,e,t)},useLayoutEffect:function(e,t){return z="useLayoutEffect",v(),ae(),ho(4,Uo,e,t)},useMemo:function(e,t){z="useMemo",v(),ae();var a=G.H;G.H=gn;try{return Of(e,t)}finally{G.H=a}},useReducer:function(e,t,a){z="useReducer",v(),ae();var o=G.H;G.H=gn;try{return Qi(e,t,a)}finally{G.H=o}},useRef:function(){return z="useRef",v(),ae(),Pt().memoizedState},useState:function(){z="useState",v(),ae();var e=G.H;G.H=gn;try{return Qi(cn)}finally{G.H=e}},useDebugValue:function(){z="useDebugValue",v(),ae()},useDeferredValue:function(e,t){return z="useDeferredValue",v(),ae(),N0(e,t)},useTransition:function(){return z="useTransition",v(),ae(),H0()},useSyncExternalStore:function(e,t,a){return z="useSyncExternalStore",v(),ae(),Tf(e,t,a)},useId:function(){return z="useId",v(),ae(),Pt().memoizedState},useFormState:function(e){return z="useFormState",v(),ae(),Rf(e)},useActionState:function(e){return z="useActionState",v(),ae(),Rf(e)},useOptimistic:function(e,t){return z="useOptimistic",v(),ae(),T0(e,t)},useMemoCache:function(e){return v(),hs(e)},useHostTransitionStatus:ys,useCacheRefresh:function(){return z="useCacheRefresh",ae(),Pt().memoizedState},useEffectEvent:function(e){return z="useEffectEvent",v(),ae(),Af(e)}};var DL={},EL=new Set,OL=new Set,qL=new Set,NL=new Set,BL=new Set,UL=new Set,PL=new Set,zL=new Set,_L=new Set,HL=new Set;Object.freeze(DL);var jy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ao(e),n=lr(o);n.payload=t,a!==void 0&&a!==null&&(Wh(a),n.callback=a),t=rr(e,n,o),t!==null&&(qn(o,"this.setState()",e),ra(t,e,o),$i(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ao(e),n=lr(o);n.tag=LL,n.payload=t,a!==void 0&&a!==null&&(Wh(a),n.callback=a),t=rr(e,n,o),t!==null&&(qn(o,"this.replaceState()",e),ra(t,e,o),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ao(e),o=lr(a);o.tag=kL,t!==void 0&&t!==null&&(Wh(t),o.callback=t),t=rr(e,o,a),t!==null&&(qn(a,"this.forceUpdate()",e),ra(t,e,a),$i(t,e,a))}},Ju=null,Xy=null,Yy=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."),ka=!1,FL={},GL={},VL={},$L={},ei=!1,jL={},Up={},Qy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},XL=!1,YL=null;YL=new Set;var _l=!1,wa=!1,Zy=!1,QL=typeof WeakSet==="function"?WeakSet:Set,Ua=null,ti=null,ai=null,Ta=null,bo=!1,yn=null,Da=!1,$c=8192,YM={getCacheForType:function(e){var t=ea(xa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ea(xa).controller.signal},getOwner:function(){return Oo}};if(typeof Symbol==="function"&&Symbol.for){var jc=Symbol.for;jc("selector.component"),jc("selector.has_pseudo_class"),jc("selector.role"),jc("selector.test_id"),jc("selector.text")}var QM=[],ZM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Ea=2,Po=4,Hl=0,Xc=1,Os=2,Pp=3,Rr=4,zp=6,ZL=5,kt=Pa,Vt=null,it=null,ut=0,vo=0,_p=1,qs=2,Yc=3,WL=4,Wy=5,Qc=6,Hp=7,Ky=8,Ns=9,zt=vo,zo=null,Mr=!1,oi=!1,Jy=!1,nl=0,oa=Hl,Ar=0,Dr=0,eb=0,So=0,Bs=0,Zc=null,fo=null,Fp=!1,Gp=0,KL=0,JL=300,Vp=1/0,e1=500,Wc=null,ma=null,Er=null,$p=0,tb=1,ab=2,t1=3,Or=0,a1=1,o1=2,n1=3,l1=4,jp=5,Ia=0,qr=null,ni=null,bn=0,ob=0,nb=-0,lb=null,r1=null,s1=null,vn=$p,u1=null,WM=50,Kc=0,rb=null,sb=!1,Xp=!1,KM=50,Us=0,Jc=null,li=!1,Yp=null,i1=!1,c1=new Set,JM={},Qp=null,ri=null,ub=!1,ib=!1,Zp=!1,cb=!1,Nr=0,db={};(function(){for(var e=0;e<Cy.length;e++){var t=Cy[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),un(a,"on"+t)}un(_C,"onAnimationEnd"),un(HC,"onAnimationIteration"),un(FC,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(MM,"onTransitionRun"),un(AM,"onTransitionStart"),un(DM,"onTransitionCancel"),un(GC,"onTransitionEnd")})(),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ed="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(ed)),Wp="_reactListening"+Math.random().toString(36).slice(2),d1=!1,f1=!1,Kp=!1,p1=!1,Jp=!1,em=!1,m1=!1,tm={},eA=/\r\n?/g,tA=/\u0000|\uFFFD/g,Ps="http://www.w3.org/1999/xlink",pb="http://www.w3.org/XML/1998/namespace",aA="javascript:throw new Error('React form unexpectedly submitted.')",oA="suppressHydrationWarning",zs="&",am="/&",td="$",ad="/$",Br="$?",_s="$~",si="$!",nA="html",lA="body",rA="head",mb="F!",h1="F",g1="loading",sA="style",Fl=0,ui=1,om=2,hb=null,gb=null,y1={dialog:!0,webview:!0},yb=null,od=void 0,b1=typeof setTimeout==="function"?setTimeout:void 0,uA=typeof clearTimeout==="function"?clearTimeout:void 0,Hs=-1,v1=typeof Promise==="function"?Promise:void 0,iA=typeof queueMicrotask==="function"?queueMicrotask:typeof v1<"u"?function(e){return v1.resolve(null).then(e).catch(XI)}:b1,bb=null,Fs=0,nd=1,S1=2,x1=3,an=4,on=new Map,C1=new Set,Gl=qt.d;qt.d={f:function(){var e=Gl.f(),t=xu();return e||t},r:function(e){var t=Ke(e);t!==null&&t.tag===5&&t.type==="form"?z0(t):Gl.r(e)},D:function(e){Gl.D(e),Ex("dns-prefetch",e,null)},C:function(e,t){Gl.C(e,t),Ex("preconnect",e,t)},L:function(e,t,a){Gl.L(e,t,a);var o=ii;if(o&&e&&t){var n='link[rel="preload"][as="'+Vo(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+Vo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+Vo(a.imageSizes)+'"]')):n+='[href="'+Vo(e)+'"]':n+='[href="'+Vo(e)+'"]';var l=n;switch(t){case"style":l=ku(e);break;case"script":l=wu(e)}on.has(l)||(e=ft({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),on.set(l,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(cc(l))||t==="script"&&o.querySelector(dc(l))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Gl.m(e,t);var a=ii;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Vo(o)+'"][href="'+Vo(e)+'"]',l=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=wu(e)}if(!on.has(l)&&(e=ft({rel:"modulepreload",href:e},t),on.set(l,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(dc(l)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Gl.X(e,t);var a=ii;if(a&&e){var o=wt(a).hoistableScripts,n=wu(e),l=o.get(n);l||(l=a.querySelector(dc(n)),l||(e=ft({src:e,async:!0},t),(t=on.get(n))&&Hg(e,t),l=a.createElement("script"),Oe(l),$a(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(n,l))}},S:function(e,t,a){Gl.S(e,t,a);var o=ii;if(o&&e){var n=wt(o).hoistableStyles,l=ku(e);t=t||"default";var s=n.get(l);if(!s){var c={loading:Fs,preload:null};if(s=o.querySelector(cc(l)))c.loading=nd|an;else{e=ft({rel:"stylesheet",href:e,"data-precedence":t},a),(a=on.get(l))&&_g(e,a);var p=s=o.createElement("link");Oe(p),$a(p,"link",e),p._p=new Promise(function(g,E){p.onload=g,p.onerror=E}),p.addEventListener("load",function(){c.loading|=nd}),p.addEventListener("error",function(){c.loading|=S1}),c.loading|=an,Kf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:c},n.set(l,s)}}},M:function(e,t){Gl.M(e,t);var a=ii;if(a&&e){var o=wt(a).hoistableScripts,n=wu(e),l=o.get(n);l||(l=a.querySelector(dc(n)),l||(e=ft({src:e,async:!0,type:"module"},t),(t=on.get(n))&&Hg(e,t),l=a.createElement("script"),Oe(l),$a(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(n,l))}}};var ii=typeof document>"u"?null:document,nm=null,cA=60000,dA=800,fA=500,vb=0,Sb=null,lm=null,Gs=IR,ld={$$typeof:Yn,Provider:null,Consumer:null,_currentValue:Gs,_currentValue2:Gs,_threadCount:0},L1="%c%s%c",k1="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",w1="",rm=" ",pA=Function.prototype.bind,T1=!1,I1=null,R1=null,M1=null,A1=null,D1=null,E1=null,O1=null,q1=null,N1=null,B1=null;I1=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=ft({},e.memoizedProps),a=Wa(e,2),a!==null&&ra(a,e,2))},R1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=ft({},e.memoizedProps),a=Wa(e,2),a!==null&&ra(a,e,2))},M1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=ft({},e.memoizedProps),a=Wa(e,2),a!==null&&ra(a,e,2))},A1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&ra(t,e,2)},D1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&ra(t,e,2)},E1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&ra(t,e,2)},O1=function(e){var t=Wa(e,2);t!==null&&ra(t,e,2)},q1=function(e){var t=su(),a=Wa(e,t);a!==null&&ra(a,e,t)},N1=function(e){m=e},B1=function(e){y=e};var sm=!0,um=null,xb=!1,Ur=null,Pr=null,zr=null,rd=new Map,sd=new Map,_r=[],mA="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(" "),im=null;if(op.prototype.render=Xg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):D(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,n=Ao(o);Fg(o,n,a,t,null,null)},op.prototype.unmount=Xg.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;(kt&(Ea|Po))!==Pa&&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."),Fg(e.current,2,null,e,null,null),xu(),t[gr]=null}},op.prototype.unstable_scheduleHydration=function(e){if(e){var t=q();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_r.length&&t!==0&&t<_r[a].priority;a++);_r.splice(a,0,e),a===0&&jx(e)}},function(){var e=di.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+o+">.");var u="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=V(a):typeof a.name==="string"&&(o=a.name),o&&(u=" It was passed a child from "+o+".")),Y(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,u)})}}};var ci=Cx(!0),EC=Cx(!1),NC=0,OC=1,qC=2,Xv=3,ns=!1,BC=!1,Yv=null,Qv=!1,Du=ke(null),Em=ke(0),ln=ke(null),In=null,Eu=1,Tc=2,qa=ke(0),Nm=0,Rn=1,Ao=2,rn=4,Do=8,Nu,zC=new Set,UC=new Set,Wv=new Set,PC=new Set,cr=0,Ke=null,ta=null,Fa=null,Om=!1,Ou=!1,fi=!1,qm=0,Ic=0,fr=null,tD=0,aD=25,G=null,Mn=null,pr=-1,Rc=!1,Mc={readContext:va,use:_r,useCallback:Ra,useContext:Ra,useEffect:Ra,useImperativeHandle:Ra,useLayoutEffect:Ra,useInsertionEffect:Ra,useMemo:Ra,useReducer:Ra,useRef:Ra,useState:Ra,useDebugValue:Ra,useDeferredValue:Ra,useTransition:Ra,useSyncExternalStore:Ra,useId:Ra,useHostTransitionStatus:Ra,useFormState:Ra,useActionState:Ra,useOptimistic:Ra,useMemoCache:Ra,useCacheRefresh:Ra};Mc.useEffectEvent=Ra;var Zv=null,_C=null,Kv=null,HC=null,El=null,jn=null,Bm=null;Zv={readContext:function(e){return va(e)},use:_r,useCallback:function(e,t){return G="useCallback",vt(),Wi(t),Qg(e,t)},useContext:function(e){return G="useContext",vt(),va(e)},useEffect:function(e,t){return G="useEffect",vt(),Wi(t),Mp(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",vt(),Wi(a),Yg(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",vt(),Wi(t),Ws(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",vt(),Wi(t),Xg(e,t)},useMemo:function(e,t){G="useMemo",vt(),Wi(t);var a=j.H;j.H=El;try{return Wg(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",vt();var o=j.H;j.H=El;try{return Ug(e,t,a)}finally{j.H=o}},useRef:function(e){return G="useRef",vt(),$g(e)},useState:function(e){G="useState",vt();var t=j.H;j.H=El;try{return Fg(e)}finally{j.H=t}},useDebugValue:function(){G="useDebugValue",vt()},useDeferredValue:function(e,t){return G="useDeferredValue",vt(),Zg(e,t)},useTransition:function(){return G="useTransition",vt(),ey()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",vt(),_g(e,t,a)},useId:function(){return G="useId",vt(),ty()},useFormState:function(e,t){return G="useFormState",vt(),Lp(),Ki(e,t)},useActionState:function(e,t){return G="useActionState",vt(),Ki(e,t)},useOptimistic:function(e){return G="useOptimistic",vt(),Gg(e)},useHostTransitionStatus:Zs,useMemoCache:Qs,useCacheRefresh:function(){return G="useCacheRefresh",vt(),ay()},useEffectEvent:function(e){return G="useEffectEvent",vt(),jg(e)}},_C={readContext:function(e){return va(e)},use:_r,useCallback:function(e,t){return G="useCallback",le(),Qg(e,t)},useContext:function(e){return G="useContext",le(),va(e)},useEffect:function(e,t){return G="useEffect",le(),Mp(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",le(),Yg(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",le(),Ws(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",le(),Xg(e,t)},useMemo:function(e,t){G="useMemo",le();var a=j.H;j.H=El;try{return Wg(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",le();var o=j.H;j.H=El;try{return Ug(e,t,a)}finally{j.H=o}},useRef:function(e){return G="useRef",le(),$g(e)},useState:function(e){G="useState",le();var t=j.H;j.H=El;try{return Fg(e)}finally{j.H=t}},useDebugValue:function(){G="useDebugValue",le()},useDeferredValue:function(e,t){return G="useDeferredValue",le(),Zg(e,t)},useTransition:function(){return G="useTransition",le(),ey()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",le(),_g(e,t,a)},useId:function(){return G="useId",le(),ty()},useActionState:function(e,t){return G="useActionState",le(),Ki(e,t)},useFormState:function(e,t){return G="useFormState",le(),Lp(),Ki(e,t)},useOptimistic:function(e){return G="useOptimistic",le(),Gg(e)},useHostTransitionStatus:Zs,useMemoCache:Qs,useCacheRefresh:function(){return G="useCacheRefresh",le(),ay()},useEffectEvent:function(e){return G="useEffectEvent",le(),jg(e)}},Kv={readContext:function(e){return va(e)},use:_r,useCallback:function(e,t){return G="useCallback",le(),Ep(e,t)},useContext:function(e){return G="useContext",le(),va(e)},useEffect:function(e,t){G="useEffect",le(),zo(2048,Do,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",le(),Dp(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",le(),zo(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",le(),zo(4,rn,e,t)},useMemo:function(e,t){G="useMemo",le();var a=j.H;j.H=jn;try{return Np(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",le();var o=j.H;j.H=jn;try{return Zi(e,t,a)}finally{j.H=o}},useRef:function(){return G="useRef",le(),Wt().memoizedState},useState:function(){G="useState",le();var e=j.H;j.H=jn;try{return Zi(_n)}finally{j.H=e}},useDebugValue:function(){G="useDebugValue",le()},useDeferredValue:function(e,t){return G="useDeferredValue",le(),$x(e,t)},useTransition:function(){return G="useTransition",le(),Zx()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",le(),Tp(e,t,a)},useId:function(){return G="useId",le(),Wt().memoizedState},useFormState:function(e){return G="useFormState",le(),Lp(),Ip(e)},useActionState:function(e){return G="useActionState",le(),Ip(e)},useOptimistic:function(e,t){return G="useOptimistic",le(),qx(e,t)},useHostTransitionStatus:Zs,useMemoCache:Qs,useCacheRefresh:function(){return G="useCacheRefresh",le(),Wt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",le(),Ap(e)}},HC={readContext:function(e){return va(e)},use:_r,useCallback:function(e,t){return G="useCallback",le(),Ep(e,t)},useContext:function(e){return G="useContext",le(),va(e)},useEffect:function(e,t){G="useEffect",le(),zo(2048,Do,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",le(),Dp(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",le(),zo(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",le(),zo(4,rn,e,t)},useMemo:function(e,t){G="useMemo",le();var a=j.H;j.H=Bm;try{return Np(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",le();var o=j.H;j.H=Bm;try{return Od(e,t,a)}finally{j.H=o}},useRef:function(){return G="useRef",le(),Wt().memoizedState},useState:function(){G="useState",le();var e=j.H;j.H=Bm;try{return Od(_n)}finally{j.H=e}},useDebugValue:function(){G="useDebugValue",le()},useDeferredValue:function(e,t){return G="useDeferredValue",le(),jx(e,t)},useTransition:function(){return G="useTransition",le(),Kx()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",le(),Tp(e,t,a)},useId:function(){return G="useId",le(),Wt().memoizedState},useFormState:function(e){return G="useFormState",le(),Lp(),Rp(e)},useActionState:function(e){return G="useActionState",le(),Rp(e)},useOptimistic:function(e,t){return G="useOptimistic",le(),zx(e,t)},useHostTransitionStatus:Zs,useMemoCache:Qs,useCacheRefresh:function(){return G="useCacheRefresh",le(),Wt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",le(),Ap(e)}},El={readContext:function(e){return m(),va(e)},use:function(e){return y(),_r(e)},useCallback:function(e,t){return G="useCallback",y(),vt(),Qg(e,t)},useContext:function(e){return G="useContext",y(),vt(),va(e)},useEffect:function(e,t){return G="useEffect",y(),vt(),Mp(e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",y(),vt(),Yg(e,t,a)},useInsertionEffect:function(e,t){G="useInsertionEffect",y(),vt(),Ws(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",y(),vt(),Xg(e,t)},useMemo:function(e,t){G="useMemo",y(),vt();var a=j.H;j.H=El;try{return Wg(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",y(),vt();var o=j.H;j.H=El;try{return Ug(e,t,a)}finally{j.H=o}},useRef:function(e){return G="useRef",y(),vt(),$g(e)},useState:function(e){G="useState",y(),vt();var t=j.H;j.H=El;try{return Fg(e)}finally{j.H=t}},useDebugValue:function(){G="useDebugValue",y(),vt()},useDeferredValue:function(e,t){return G="useDeferredValue",y(),vt(),Zg(e,t)},useTransition:function(){return G="useTransition",y(),vt(),ey()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",y(),vt(),_g(e,t,a)},useId:function(){return G="useId",y(),vt(),ty()},useFormState:function(e,t){return G="useFormState",y(),vt(),Ki(e,t)},useActionState:function(e,t){return G="useActionState",y(),vt(),Ki(e,t)},useOptimistic:function(e){return G="useOptimistic",y(),vt(),Gg(e)},useMemoCache:function(e){return y(),Qs(e)},useHostTransitionStatus:Zs,useCacheRefresh:function(){return G="useCacheRefresh",vt(),ay()},useEffectEvent:function(e){return G="useEffectEvent",y(),vt(),jg(e)}},jn={readContext:function(e){return m(),va(e)},use:function(e){return y(),_r(e)},useCallback:function(e,t){return G="useCallback",y(),le(),Ep(e,t)},useContext:function(e){return G="useContext",y(),le(),va(e)},useEffect:function(e,t){G="useEffect",y(),le(),zo(2048,Do,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",y(),le(),Dp(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",y(),le(),zo(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",y(),le(),zo(4,rn,e,t)},useMemo:function(e,t){G="useMemo",y(),le();var a=j.H;j.H=jn;try{return Np(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",y(),le();var o=j.H;j.H=jn;try{return Zi(e,t,a)}finally{j.H=o}},useRef:function(){return G="useRef",y(),le(),Wt().memoizedState},useState:function(){G="useState",y(),le();var e=j.H;j.H=jn;try{return Zi(_n)}finally{j.H=e}},useDebugValue:function(){G="useDebugValue",y(),le()},useDeferredValue:function(e,t){return G="useDeferredValue",y(),le(),$x(e,t)},useTransition:function(){return G="useTransition",y(),le(),Zx()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",y(),le(),Tp(e,t,a)},useId:function(){return G="useId",y(),le(),Wt().memoizedState},useFormState:function(e){return G="useFormState",y(),le(),Ip(e)},useActionState:function(e){return G="useActionState",y(),le(),Ip(e)},useOptimistic:function(e,t){return G="useOptimistic",y(),le(),qx(e,t)},useMemoCache:function(e){return y(),Qs(e)},useHostTransitionStatus:Zs,useCacheRefresh:function(){return G="useCacheRefresh",le(),Wt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",y(),le(),Ap(e)}},Bm={readContext:function(e){return m(),va(e)},use:function(e){return y(),_r(e)},useCallback:function(e,t){return G="useCallback",y(),le(),Ep(e,t)},useContext:function(e){return G="useContext",y(),le(),va(e)},useEffect:function(e,t){G="useEffect",y(),le(),zo(2048,Do,e,t)},useImperativeHandle:function(e,t,a){return G="useImperativeHandle",y(),le(),Dp(e,t,a)},useInsertionEffect:function(e,t){return G="useInsertionEffect",y(),le(),zo(4,Ao,e,t)},useLayoutEffect:function(e,t){return G="useLayoutEffect",y(),le(),zo(4,rn,e,t)},useMemo:function(e,t){G="useMemo",y(),le();var a=j.H;j.H=jn;try{return Np(e,t)}finally{j.H=a}},useReducer:function(e,t,a){G="useReducer",y(),le();var o=j.H;j.H=jn;try{return Od(e,t,a)}finally{j.H=o}},useRef:function(){return G="useRef",y(),le(),Wt().memoizedState},useState:function(){G="useState",y(),le();var e=j.H;j.H=jn;try{return Od(_n)}finally{j.H=e}},useDebugValue:function(){G="useDebugValue",y(),le()},useDeferredValue:function(e,t){return G="useDeferredValue",y(),le(),jx(e,t)},useTransition:function(){return G="useTransition",y(),le(),Kx()},useSyncExternalStore:function(e,t,a){return G="useSyncExternalStore",y(),le(),Tp(e,t,a)},useId:function(){return G="useId",y(),le(),Wt().memoizedState},useFormState:function(e){return G="useFormState",y(),le(),Rp(e)},useActionState:function(e){return G="useActionState",y(),le(),Rp(e)},useOptimistic:function(e,t){return G="useOptimistic",y(),le(),zx(e,t)},useMemoCache:function(e){return y(),Qs(e)},useHostTransitionStatus:Zs,useCacheRefresh:function(){return G="useCacheRefresh",le(),Wt().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",y(),le(),Ap(e)}};var FC={},GC=new Set,VC=new Set,$C=new Set,jC=new Set,XC=new Set,YC=new Set,QC=new Set,WC=new Set,ZC=new Set,KC=new Set;Object.freeze(FC);var Jv={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Jo(e),l=Br(o);l.payload=t,a!==void 0&&a!==null&&(ny(a),l.callback=a),t=zr(e,l,o),t!==null&&(ul(o,"this.setState()",e),La(t,e,o),Ad(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Jo(e),l=Br(o);l.tag=OC,l.payload=t,a!==void 0&&a!==null&&(ny(a),l.callback=a),t=zr(e,l,o),t!==null&&(ul(o,"this.replaceState()",e),La(t,e,o),Ad(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Jo(e),o=Br(a);o.tag=qC,t!==void 0&&t!==null&&(ny(t),o.callback=t),t=zr(e,o,a),t!==null&&(ul(a,"this.forceUpdate()",e),La(t,e,a),Ad(t,e,a))}},qu=null,eb=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."),Ga=!1,JC={},eL={},tL={},aL={},Bu=!1,oL={},zm={},ab={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},nL=!1,lL=null;lL=new Set;var mr=!1,Va=!1,ob=!1,rL=typeof WeakSet==="function"?WeakSet:Set,to=null,zu=null,Uu=null,$a=null,_o=!1,Xn=null,Qa=!1,Ac=8192,oD={getCacheForType:function(e){var t=va(_a),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return va(_a).controller.signal},getOwner:function(){return an}};if(typeof Symbol==="function"&&Symbol.for){var Dc=Symbol.for;Dc("selector.component"),Dc("selector.has_pseudo_class"),Dc("selector.role"),Dc("selector.test_id"),Dc("selector.text")}var nD=[],lD=typeof WeakMap==="function"?WeakMap:Map,ao=0,Wa=2,sn=4,hr=0,Ec=1,pi=2,Um=3,ls=4,Pm=6,sL=5,Nt=ao,aa=null,mt=null,ft=0,Ho=0,_m=1,mi=2,Nc=3,iL=4,nb=5,Oc=6,Hm=7,lb=8,hi=9,Zt=Ho,un=null,rs=!1,Pu=!1,rb=!1,Nl=0,ka=hr,ss=0,is=0,sb=0,Fo=0,gi=0,qc=null,Eo=null,Fm=!1,Gm=0,uL=0,dL=300,Vm=1/0,cL=500,Bc=null,Ma=null,us=null,$m=0,ib=1,ub=2,fL=3,ds=0,pL=1,mL=2,hL=3,gL=4,jm=5,ja=0,cs=null,_u=null,Yn=0,db=0,cb=-0,fb=null,yL=null,vL=null,Qn=$m,bL=null,rD=50,zc=0,pb=null,mb=!1,Xm=!1,sD=50,yi=0,Uc=null,Hu=!1,Ym=null,xL=!1,SL=new Set,iD={},Qm=null,Fu=null,hb=!1,gb=!1,Wm=!1,yb=!1,fs=0,vb={};(function(){for(var e=0;e<Mv.length;e++){var t=Mv[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Pn(a,"on"+t)}Pn(Zk,"onAnimationEnd"),Pn(Kk,"onAnimationIteration"),Pn(Jk,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(UA,"onTransitionRun"),Pn(PA,"onTransitionStart"),Pn(_A,"onTransitionCancel"),Pn(eC,"onTransitionEnd")})(),jo("onMouseEnter",["mouseout","mouseover"]),jo("onMouseLeave",["mouseout","mouseover"]),jo("onPointerEnter",["pointerout","pointerover"]),jo("onPointerLeave",["pointerout","pointerover"]),yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yo("onBeforeInput",["compositionend","keypress","textInput","paste"]),yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pc="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(" "),bb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Pc)),Zm="_reactListening"+Math.random().toString(36).slice(2),kL=!1,CL=!1,Km=!1,LL=!1,Jm=!1,eh=!1,wL=!1,th={},uD=/\r\n?/g,dD=/\u0000|\uFFFD/g,vi="http://www.w3.org/1999/xlink",xb="http://www.w3.org/XML/1998/namespace",cD="javascript:throw new Error('React form unexpectedly submitted.')",fD="suppressHydrationWarning",bi="&",ah="/&",_c="$",Hc="/$",ps="$?",xi="$~",Gu="$!",pD="html",mD="body",hD="head",Sb="F!",TL="F",IL="loading",gD="style",gr=0,Vu=1,oh=2,kb=null,Cb=null,RL={dialog:!0,webview:!0},Lb=null,Fc=void 0,ML=typeof setTimeout==="function"?setTimeout:void 0,yD=typeof clearTimeout==="function"?clearTimeout:void 0,Si=-1,AL=typeof Promise==="function"?Promise:void 0,vD=typeof queueMicrotask==="function"?queueMicrotask:typeof AL<"u"?function(e){return AL.resolve(null).then(e).catch(aM)}:ML,wb=null,ki=0,Gc=1,DL=2,EL=3,An=4,Dn=new Map,NL=new Set,yr=Xt.d;Xt.d={f:function(){var e=yr.f(),t=ou();return e||t},r:function(e){var t=tt(e);t!==null&&t.tag===5&&t.type==="form"?Wx(t):yr.r(e)},D:function(e){yr.D(e),G1("dns-prefetch",e,null)},C:function(e,t){yr.C(e,t),G1("preconnect",e,t)},L:function(e,t,a){yr.L(e,t,a);var o=$u;if(o&&e&&t){var l='link[rel="preload"][as="'+vn(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+vn(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+vn(a.imageSizes)+'"]')):l+='[href="'+vn(e)+'"]':l+='[href="'+vn(e)+'"]';var r=l;switch(t){case"style":r=ru(e);break;case"script":r=su(e)}Dn.has(r)||(e=bt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Dn.set(r,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(Qd(r))||t==="script"&&o.querySelector(Wd(r))||(t=o.createElement("link"),co(t,"link",e),Be(t),o.head.appendChild(t)))}},m:function(e,t){yr.m(e,t);var a=$u;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+vn(o)+'"][href="'+vn(e)+'"]',r=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=su(e)}if(!Dn.has(r)&&(e=bt({rel:"modulepreload",href:e},t),Dn.set(r,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wd(r)))return}o=a.createElement("link"),co(o,"link",e),Be(o),a.head.appendChild(o)}}},X:function(e,t){yr.X(e,t);var a=$u;if(a&&e){var o=qt(a).hoistableScripts,l=su(e),r=o.get(l);r||(r=a.querySelector(Wd(l)),r||(e=bt({src:e,async:!0},t),(t=Dn.get(l))&&Yy(e,t),r=a.createElement("script"),Be(r),co(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(l,r))}},S:function(e,t,a){yr.S(e,t,a);var o=$u;if(o&&e){var l=qt(o).hoistableStyles,r=ru(e);t=t||"default";var u=l.get(r);if(!u){var f={loading:ki,preload:null};if(u=o.querySelector(Qd(r)))f.loading=Gc|An;else{e=bt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Dn.get(r))&&Xy(e,a);var v=u=o.createElement("link");Be(v),co(v,"link",e),v._p=new Promise(function(S,N){v.onload=S,v.onerror=N}),v.addEventListener("load",function(){f.loading|=Gc}),v.addEventListener("error",function(){f.loading|=DL}),f.loading|=An,Kp(u,t,o)}u={type:"stylesheet",instance:u,count:1,state:f},l.set(r,u)}}},M:function(e,t){yr.M(e,t);var a=$u;if(a&&e){var o=qt(a).hoistableScripts,l=su(e),r=o.get(l);r||(r=a.querySelector(Wd(l)),r||(e=bt({src:e,async:!0,type:"module"},t),(t=Dn.get(l))&&Yy(e,t),r=a.createElement("script"),Be(r),co(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(l,r))}}};var $u=typeof document>"u"?null:document,nh=null,bD=60000,xD=800,SD=500,Tb=0,Ib=null,lh=null,Ci=BM,Vc={$$typeof:Cl,Provider:null,Consumer:null,_currentValue:Ci,_currentValue2:Ci,_threadCount:0},OL="%c%s%c",qL="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",BL="",rh=" ",kD=Function.prototype.bind,zL=!1,UL=null,PL=null,_L=null,HL=null,FL=null,GL=null,VL=null,$L=null,jL=null,XL=null;UL=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=bt({},e.memoizedProps),a=vo(e,2),a!==null&&La(a,e,2))},PL=function(e,t,a){t=n(e,t),t!==null&&(a=c(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=bt({},e.memoizedProps),a=vo(e,2),a!==null&&La(a,e,2))},_L=function(e,t,a,o){t=n(e,t),t!==null&&(a=s(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=bt({},e.memoizedProps),a=vo(e,2),a!==null&&La(a,e,2))},HL=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=vo(e,2),t!==null&&La(t,e,2)},FL=function(e,t){e.pendingProps=c(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=vo(e,2),t!==null&&La(t,e,2)},GL=function(e,t,a){e.pendingProps=s(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=vo(e,2),t!==null&&La(t,e,2)},VL=function(e){var t=vo(e,2);t!==null&&La(t,e,2)},$L=function(e){var t=Gi(),a=vo(e,t);a!==null&&La(a,e,t)},jL=function(e){h=e},XL=function(e){g=e};var sh=!0,ih=null,Rb=!1,ms=null,hs=null,gs=null,$c=new Map,jc=new Map,ys=[],CD="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(" "),uh=null;if(om.prototype.render=ev.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()."):I(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,l=Jo(o);Qy(o,l,a,t,null,null)},om.prototype.unmount=ev.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;(Nt&(Wa|sn))!==ao&&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."),Qy(e.current,2,null,e,null,null),ou(),t[Xr]=null}},om.prototype.unstable_scheduleHydration=function(e){if(e){var t=z();e={blockedOn:null,target:e,priority:t};for(var a=0;a<ys.length&&t!==0&&t<ys[a].priority;a++);ys.splice(a,0,e),a===0&&ok(e)}},function(){var e=Xu.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"),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=pe(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:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=I1,e.overrideHookStateDeletePath=R1,e.overrideHookStateRenamePath=M1,e.overrideProps=A1,e.overridePropsDeletePath=D1,e.overridePropsRenamePath=E1,e.scheduleUpdate=O1,e.scheduleRetry=q1,e.setErrorHandler=N1,e.setSuspenseHandler=B1,e.scheduleRefresh=L,e.scheduleRoot=T,e.setRefreshHandler=M,e.getCurrentFiber=vR,sn(e)}()&&Jn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var U1=window.location.protocol;/^(https?|file):$/.test(U1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(U1==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}wA.createRoot=function(e,t){if(!D(e))throw Error("Target container is not a DOM element.");Zx(e);var a=!1,o="",n=X0,l=Y0,s=Q0;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===Xn&&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"),Xt.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=ie(t),e=e!==null?Q(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.7"};return e.overrideHookState=UL,e.overrideHookStateDeletePath=PL,e.overrideHookStateRenamePath=_L,e.overrideProps=HL,e.overridePropsDeletePath=FL,e.overridePropsRenamePath=GL,e.scheduleUpdate=VL,e.scheduleRetry=$L,e.setErrorHandler=jL,e.setSuspenseHandler=XL,e.scheduleRefresh=C,e.scheduleRoot=w,e.setRefreshHandler=T,e.getCurrentFiber=RM,Un(e)}()&&Rl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var YL=window.location.protocol;/^(https?|file):$/.test(YL)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(YL==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}OD.createRoot=function(e,t){if(!I(e))throw Error("Target container is not a DOM element.");sk(e);var a=!1,o="",l=nS,r=lS,u=rS;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===kl&&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&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=zx(e,1,!1,null,null,a,o,null,n,l,s,Qx),e[gr]=t.current,Rg(e),new Xg(t)},wA.hydrateRoot=function(e,t,a){if(!D(e))throw Error("Target container is not a DOM element.");Zx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,n="",l=X0,s=Y0,c=Q0,p=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(l=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(c=a.onRecoverableError),a.formState!==void 0&&(p=a.formState)),t=zx(e,1,!0,t,a!=null?a:null,o,n,p,l,s,c,Qx),t.context=_x(null),a=t.current,o=Ao(a),o=ls(o),n=lr(o),n.callback=null,rr(a,n,o),qn(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Kl(t,a),$n(t),e[gr]=t.current,Rg(e),new op(t)},wA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var G1=Vs(function(TA,fm){fm.exports=X(F1())});var ue=Vs(function(_A){var Qs=X(ct());(function(){function r(J){if(J==null)return null;if(typeof J==="function")return J.$$typeof===F?null:J.displayName||J.name||null;if(typeof J==="string")return J;switch(J){case M:return"Fragment";case U:return"Profiler";case D:return"StrictMode";case pe:return"Suspense";case W:return"SuspenseList";case H:return"Activity"}if(typeof J==="object")switch(typeof J.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),J.$$typeof){case L:return"Portal";case V:return J.displayName||"Context";case B:return(J._context.displayName||"Context")+".Consumer";case _:var Ne=J.render;return J=J.displayName,J||(J=Ne.displayName||Ne.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case oe:return Ne=J.displayName||null,Ne!==null?Ne:r(J.type)||"Memo";case Q:Ne=J._payload,J=J._init;try{return r(J(Ne))}catch(vt){}}return null}function i(J){return""+J}function u(J){try{i(J);var Ne=!1}catch(re){Ne=!0}if(Ne){Ne=console;var vt=Ne.error,St=typeof Symbol==="function"&&Symbol.toStringTag&&J[Symbol.toStringTag]||J.constructor.name||"Object";return vt.call(Ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",St),i(J)}}function d(J){if(J===M)return"<>";if(typeof J==="object"&&J!==null&&J.$$typeof===Q)return"<...>";try{var Ne=r(J);return Ne?"<"+Ne+">":"<...>"}catch(vt){return"<...>"}}function f(){var J=ce.A;return J===null?null:J.getOwner()}function y(){return Error("react-stack-top-frame")}function m(J){if(ye.call(J,"key")){var Ne=Object.getOwnPropertyDescriptor(J,"key").get;if(Ne&&Ne.isReactWarning)return!1}return J.key!==void 0}function v(J,Ne){function vt(){te||(te=!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)",Ne))}vt.isReactWarning=!0,Object.defineProperty(J,"key",{get:vt,configurable:!0})}function S(){var J=r(this.type);return me[J]||(me[J]=!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.")),J=this.props.ref,J!==void 0?J:null}function x(J,Ne,vt,St,re,Pe){var ze=vt.ref;return J={$$typeof:T,type:J,key:Ne,props:vt,_owner:St},(ze!==void 0?ze:null)!==null?Object.defineProperty(J,"ref",{enumerable:!1,get:S}):Object.defineProperty(J,"ref",{enumerable:!1,value:null}),J._store={},Object.defineProperty(J._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(J,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(J,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:re}),Object.defineProperty(J,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J}function h(J,Ne,vt,St,re,Pe){var ze=Ne.children;if(ze!==void 0)if(St)if(xe(ze)){for(St=0;St<ze.length;St++)C(ze[St]);Object.freeze&&Object.freeze(ze)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else C(ze);if(ye.call(Ne,"key")){ze=r(J);var K=Object.keys(Ne).filter(function(lt){return lt!=="key"});St=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",bt[ze+St]||(K=0<K.length?"{"+K.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&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=W1(e,1,!1,null,null,a,o,null,l,r,u,rk),e[Xr]=t.current,qy(e),new ev(t)},OD.hydrateRoot=function(e,t,a){if(!I(e))throw Error("Target container is not a DOM element.");sk(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,l="",r=nS,u=lS,f=rS,v=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(f=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=W1(e,1,!0,t,a!=null?a:null,o,l,v,r,u,f,rk),t.context=Z1(null),a=t.current,o=Jo(a),o=Ps(o),l=Br(o),l.callback=null,zr(a,l,o),ul(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Mr(t,a),xl(t),e[Xr]=t.current,qy(e),new om(t)},OD.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ew=Li(function(qD,fh){fh.exports=U(JL())});var te=Li(function(QD){var Ai=U(et());(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 I:return"StrictMode";case ie:return"Suspense";case Q:return"SuspenseList";case P: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 C:return"Portal";case F:return W.displayName||"Context";case B:return(W._context.displayName||"Context")+".Consumer";case X:var Pe=W.render;return W=W.displayName,W||(W=Pe.displayName||Pe.name||"",W=W!==""?"ForwardRef("+W+")":"ForwardRef"),W;case de:return Pe=W.displayName||null,Pe!==null?Pe:n(W.type)||"Memo";case J:Pe=W._payload,W=W._init;try{return n(W(Pe))}catch(kt){}}return null}function i(W){return""+W}function s(W){try{i(W);var Pe=!1}catch(me){Pe=!0}if(Pe){Pe=console;var kt=Pe.error,Ct=typeof Symbol==="function"&&Symbol.toStringTag&&W[Symbol.toStringTag]||W.constructor.name||"Object";return kt.call(Pe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ct),i(W)}}function d(W){if(W===T)return"<>";if(typeof W==="object"&&W!==null&&W.$$typeof===J)return"<...>";try{var Pe=n(W);return Pe?"<"+Pe+">":"<...>"}catch(kt){return"<...>"}}function c(){var W=ke.A;return W===null?null:W.getOwner()}function g(){return Error("react-stack-top-frame")}function h(W){if(pe.call(W,"key")){var Pe=Object.getOwnPropertyDescriptor(W,"key").get;if(Pe&&Pe.isReactWarning)return!1}return W.key!==void 0}function y(W,Pe){function kt(){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)",Pe))}kt.isReactWarning=!0,Object.defineProperty(W,"key",{get:kt,configurable:!0})}function m(){var W=n(this.type);return be[W]||(be[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 b(W,Pe,kt,Ct,me,je){var _e=kt.ref;return W={$$typeof:w,type:W,key:Pe,props:kt,_owner:Ct},(_e!==void 0?_e:null)!==null?Object.defineProperty(W,"ref",{enumerable:!1,get:m}):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:me}),Object.defineProperty(W,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W}function p(W,Pe,kt,Ct,me,je){var _e=Pe.children;if(_e!==void 0)if(Ct)if(Oe(_e)){for(Ct=0;Ct<_e.length;Ct++)x(_e[Ct]);Object.freeze&&Object.freeze(_e)}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 x(_e);if(pe.call(Pe,"key")){_e=n(W);var ia=Object.keys(Pe).filter(function(H){return H!=="key"});Ct=0<ia.length?"{key: someKey, "+ia.join(": ..., ")+": ...}":"{key: someKey}",pt[_e+Ct]||(ia=0<ia.length?"{"+ia.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} />`,St,ze,K,ze),bt[ze+St]=!0)}if(ze=null,vt!==void 0&&(u(vt),ze=""+vt),m(Ne)&&(u(Ne.key),ze=""+Ne.key),"key"in Ne){vt={};for(var Me in Ne)Me!=="key"&&(vt[Me]=Ne[Me])}else vt=Ne;return ze&&v(vt,typeof J==="function"?J.displayName||J.name||"Unknown":J),x(J,ze,vt,f(),re,Pe)}function C(J){k(J)?J._store&&(J._store.validated=1):typeof J==="object"&&J!==null&&J.$$typeof===Q&&(J._payload.status==="fulfilled"?k(J._payload.value)&&J._payload.value._store&&(J._payload.value._store.validated=1):J._store&&(J._store.validated=1))}function k(J){return typeof J==="object"&&J!==null&&J.$$typeof===T}var T=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),V=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),ce=Qs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=Object.prototype.hasOwnProperty,xe=Array.isArray,we=console.createTask?console.createTask:function(){return null};Qs={react_stack_bottom_frame:function(J){return J()}};var te,me={},Ce=Qs.react_stack_bottom_frame.bind(Qs,y)(),We=we(d(y)),bt={};_A.Fragment=M,_A.jsxDEV=function(J,Ne,vt,St){var re=1e4>ce.recentlyCreatedOwnerStacks++;return h(J,Ne,vt,St,re?Error("react-stack-top-frame"):Ce,re?we(d(J)):We)}})()});var OT=X(G1(),1);var Mi=X(ct(),1);var pm=X(ct(),1);var V1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function $1(r,i,u=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:V1(r),size:24,node:i,...u.length>0?{aliases:u}:{}}}var j1=(r)=>{let i="",u=!1;for(let d of r){if(d==="-"||d==="_"||d<=" "){u=i.length>0;continue}if(i.length===0)i+=d.toLowerCase();else i+=u?d.toUpperCase():d;u=!1}return i};var X1=(r)=>{let i=j1(r);return i.charAt(0).toUpperCase()+i.slice(1)};var cd=X(ct(),1);var id=(...r)=>r.filter((i,u,d)=>Boolean(i)&&i.trim()!==""&&d.indexOf(i)===u).join(" ").trim();var Hr={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 kb(r){return r!==null&&r!==void 0}function Y1(r,i={}){let u=i.attributeNames??{},d=(k)=>u[k]??k,f=r.size??r.width??Hr.width,y=r.size??r.height??Hr.height,m=r.aliases?.filter((k)=>typeof k==="string"&&k.trim()!=="").map((k)=>`lucide-${k}`)??[],v=[...r.name?[`lucide-${r.name}`]:[],...m],S=i.className?.split(" ").filter(Boolean)??[],x=i.includeDefaultClasses===!1?id(...S):id("lucide",...v,...S),h=i.absoluteStrokeWidth?Number(i.strokeWidth??Hr["stroke-width"])*Number(r.size??r.width??Hr.width)/Number(i.size??i.width??Hr.width):i.strokeWidth??Hr["stroke-width"];return["svg",{...Object.entries(Hr).reduce((k,[T,L])=>(k[d(T)]=L,k),{}),..."color"in i&&i.color&&{[d("stroke")]:i.color},..."size"in i&&kb(i.size)&&{[d("width")]:i.size,[d("height")]:i.size},..."width"in i&&kb(i.width)&&{[d("width")]:i.width},..."height"in i&&kb(i.height)&&{[d("height")]:i.height},[d("stroke-width")]:h,...x&&{[d("class")]:x},[d("viewBox")]:`0 0 ${f} ${y}`,...i.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},r.node.map((k)=>{let[T,L,M]=k,D=i.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...L}:L;return M?[T,D,M]:[T,D]})]}function Q1(r,i={}){return Y1(r,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var Z1=(r)=>{for(let i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var fi=X(ct(),1),IA=fi.createContext({});var W1=()=>fi.useContext(IA);var K1=cd.forwardRef(({color:r,size:i,width:u,height:d,strokeWidth:f,absoluteStrokeWidth:y,nonScalingStroke:m,className:v="",children:S,iconNode:x=[],icon:h={node:x,aliases:[],size:24},...C},k)=>{let{size:T=24,strokeWidth:L=2,absoluteStrokeWidth:M=!1,nonScalingStroke:D=!1,color:U="currentColor",className:B=""}=W1()??{},V=Boolean(S)||Z1(C),[_,pe,W=[]]=Q1(h,{color:r??U,width:u??i??T,height:d??i??T,strokeWidth:f??L,absoluteStrokeWidth:y??M,nonScalingStroke:m??D,className:id(B,v),hasA11yProp:V,attributes:C});return cd.createElement(_,{ref:k,...pe},[...W.map(([oe,Q])=>cd.createElement(oe,Q)),...Array.isArray(S)?S:[S]])});function Le(r,i=[],u=[]){let d=typeof r==="string"?$1(r,i,u):r,f=pm.forwardRef(({className:y,...m},v)=>pm.createElement(K1,{ref:v,icon:d,className:y,...m}));if(d.name)f.displayName=X1(d.name);return f}var J1={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"]};J1.node;var Fr=Le(J1);var ek={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"]};ek.node;var Gr=Le(ek);var tk={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"]};tk.node;var Vr=Le(tk);var ak={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};ak.node;var ll=Le(ak);var ok={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"]};ok.node;var Sn=Le(ok);var nk={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"]};nk.node;var $r=Le(nk);var lk={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"}]]};lk.node;var dd=Le(lk);var rk={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};rk.node;var fd=Le(rk);var sk={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};sk.node;var pd=Le(sk);var uk={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};uk.node;var md=Le(uk);var ik={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};ik.node;var hd=Le(ik);var ck={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};ck.node;var gd=Le(ck);var dk={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};dk.node;var js=Le(dk);var fk={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};fk.node;var Xs=Le(fk);var pk={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};pk.node;var yd=Le(pk);var mk={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};mk.node;var xn=Le(mk);var hk={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"}]]};hk.node;var bd=Le(hk);var gk={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};gk.node;var Ys=Le(gk);var yk={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"}]]};yk.node;var vd=Le(yk);var bk={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"}]]};bk.node;var Sd=Le(bk);var vk={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"}]]};vk.node;var xd=Le(vk);var Sk={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"}]]};Sk.node;var Cd=Le(Sk);var xk={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"}]]};xk.node;var Ld=Le(xk);var Ck={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Ck.node;var kd=Le(Ck);var Lk={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"}]]};Lk.node;var wd=Le(Lk);var kk={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"}]]};kk.node;var Td=Le(kk);var wk={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"}]]};wk.node;var jr=Le(wk);var Tk={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"}]]};Tk.node;var Id=Le(Tk);var Ik={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Ik.node;var Rd=Le(Ik);var Rk={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"}]]};Rk.node;var Md=Le(Rk);var Mk={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"}]]};Mk.node;var Ad=Le(Mk);var Ak={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Ak.node;var eo=Le(Ak);var Si=X(ct(),1);var Dk=["January","February","March","April","May","June","July","August","September","October","November","December"],Ek=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],RA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Xr(r,i=2){return String(r).padStart(i,"0")}function MA(r,i){let u=r.getMonth(),d=r.getDay(),f=r.getHours(),y=f%12||12;switch(i){case"yyyy":return Xr(r.getFullYear(),4);case"yy":return Xr(r.getFullYear()%100);case"MMMM":return Dk[u];case"MMM":return Dk[u].slice(0,3);case"MM":return Xr(u+1);case"M":return String(u+1);case"dd":return Xr(r.getDate());case"d":return String(r.getDate());case"EEEE":return Ek[d];case"EEE":return Ek[d].slice(0,3);case"HH":return Xr(f);case"H":return String(f);case"hh":return Xr(y);case"h":return String(y);case"mm":return Xr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Xr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function qk(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 rl(r,i){let u=qk(r),d="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){d+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){d+=i[f++];continue}if(i[f+1]==="'"){d+="'",f+=2;continue}f++;break}continue}let y=i.slice(f),m=RA.find((S)=>y.startsWith(S));if(m){d+=MA(u,m),f+=m.length;continue}let v=i[f++];if(/[A-Za-z]/.test(v))throw RangeError(`Format string contains an unescaped latin alphabet character \`${v}\``);d+=v}return d}function Yr(r,i){return`${r} ${r===1?i:`${i}s`}`}function AA(r,i){let u=(i.getFullYear()-r.getFullYear())*12+i.getMonth()-r.getMonth();if(u===0)return 0;let d=new Date(r);d.setDate(1),d.setFullYear(r.getFullYear(),r.getMonth()+u,1);let f=new Date(d.getFullYear(),d.getMonth()+1,0).getDate();if(d.setDate(Math.min(r.getDate(),f)),d.getTime()>i.getTime())u--;return u}function Ok(r,i){let u=(i.getTime()-r.getTime())/1000,d=(i.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((u-d)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return Yr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${Yr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return Yr(Math.round(f/1440),"day");if(f<86400)return`about ${Yr(Math.round(f/43200),"month")}`;let y=AA(r,i);if(y<12)return Yr(Math.round(f/43200),"month");let m=Math.trunc(y/12),v=y%12;if(v<3)return`about ${Yr(m,"year")}`;if(v<9)return`over ${Yr(m,"year")}`;return`almost ${Yr(m+1,"year")}`}function Nk(r,i={}){let u=qk(r),d=new Date(Date.now()),f=u.getTime()>d.getTime(),y=f?Ok(d,u):Ok(u,d);if(!i.addSuffix)return y;return f?`in ${y}`:`${y} ago`}var Bk=60000,mm=60*Bk,sl=24*mm,wb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:mm,bucketMs:5*Bk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:sl,bucketMs:mm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*sl,bucketMs:sl},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*sl,bucketMs:sl},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*sl,bucketMs:sl},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:sl}},DA=1500,pi=["1h","24h","7d","30d","90d","all"];function ua(r){return wb[r]}function hm(r,i){if(i<sl)return rl(new Date(r),i<mm?"HH:mm":"MMM d HH:mm");return rl(new Date(r),"MMM d")}function gm(r,i){if(i<sl)return rl(new Date(r),"HH:mm");return rl(new Date(r),"MMM d")}function _o(r,i,u=wb[r].bucketMs,d=Date.now()){let f=Math.floor(d/u)*u,y=wb[r].spanMs,m;if(y!==null)m=Math.floor((d-y)/u)*u;else{m=f;for(let S of i)if(S<m)m=S;m=Math.floor(m/u)*u}m=Math.max(m,f-(DA-1)*u);let v=[];for(let S=m;S<=f;S+=u)v.push(S);return v}var Dd=X(ct(),1);class Tb extends Error{status;endpoint;constructor(r,i,u){super(u);this.name="ApiError",this.status=r,this.endpoint=i}}async function Pk(r,i){try{let u=await r.json();if(typeof u==="object"&&u!==null&&"error"in u&&typeof u.error==="string")return u.error}catch{}return`HTTP error ${r.status} on ${i}`}var Uk=new WeakMap;async function Ra(r,i,u){let d=typeof u==="object"&&u!==null?Uk.get(u):void 0,f=i;if(d){let S=new Headers(i?.headers);S.set("If-None-Match",d),f={...i,headers:S}}let y=await fetch(r,f);if(y.status===304&&d)return u;if(!y.ok)throw new Tb(y.status,r,await Pk(y,r));let m=await y.json(),v=y.headers.get("ETag");if(v&&typeof m==="object"&&m!==null)Uk.set(m,v);return m}var Ib={"X-Omp-Stats-Action":"1"};async function zk(r="24h",i){return Ra(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:i})}async function _k(r="24h",i){return Ra(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:i})}async function Hk(r="24h",i){return Ra(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:i})}async function ym(r=50,i){return Ra(`/api/stats/recent?limit=${r}`,{signal:i})}async function Fk(r="24h",i=50,u){return Ra(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${i}`,{signal:u})}async function Gk(r,i){return Ra(`/api/request/${r}`,{signal:i})}async function Vk(r){let{closable:i}=await Ra("/api/close",{signal:r});return i}async function $k(){let i=await fetch("/api/close",{method:"POST",headers:Ib});if(!i.ok)throw new Tb(i.status,"/api/close",await Pk(i,"/api/close"))}async function jk(){return Ra("/api/sync",{method:"POST"})}async function Xk(r="24h",i){return Ra(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:i})}async function Yk(r,i){return Ra(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:i})}async function Qk(r){return Ra(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:Ib})}async function Zk(){return Ra("/api/frustration/cancel",{method:"POST",headers:Ib})}async function Wk(r="24h",i){return Ra(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:i})}async function Kk(r="24h",i,u){let d=new URLSearchParams({range:r});if(i)d.set("project",i);return Ra(`/api/stats/gain?${d}`,{signal:u})}async function Jk(r="24h",i){return Ra(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:i})}async function ew(r="24h",i){return Ra(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:i})}async function Rb(r,i,u){let d=new URLSearchParams({range:r});if(i!==null)d.set("provider",i);return Ra(`/api/stats/provider-windows?${d}`,{signal:u})}async function tw(r=100,i,u){let d=new URLSearchParams({limit:String(r)});if(i)d.set("q",i);return Ra(`/api/sessions?${d}`,{signal:u})}async function aw(r,i,u){return Ra(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:i,cache:"no-store"},u)}async function ow(r,i,u){return Ra(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(i)}`,{signal:u})}var OA={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function qA(){jk().catch(()=>{})}var nw=null,lw=0,bm=0,Qr={sync:OA,indexingHours:0,connected:!1,requestSync:qA},Ab=new Set;function rw(r){return Ab.add(r),()=>Ab.delete(r)}function sw(){for(let r of Ab)r()}function NA(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 BA(r){if(nw!==r.version)nw=r.version,lw++;let i=Math.max(0,lw-1),u=r.indexingHours!==Qr.indexingHours||!NA(r.sync,Qr.sync);if(!u&&i===bm)return;if(bm=i,u)Qr={...Qr,sync:r.sync,indexingHours:r.indexingHours};sw()}function Mb(r){if(r===Qr.connected)return;Qr={...Qr,connected:r},sw()}var UA=()=>Qr,PA=()=>bm,zA=()=>-1;function Db(){return bm}function uw({children:r}){return Dd.useEffect(()=>{let i=new EventSource("/api/events");return i.onopen=()=>Mb(!0),i.onerror=()=>Mb(!1),i.onmessage=(u)=>BA(JSON.parse(u.data)),()=>{i.close(),Mb(!1)}},[]),r}function vm(){return Dd.useSyncExternalStore(rw,UA)}function iw(r=!0){return Dd.useSyncExternalStore(rw,r?PA:zA)}var Sm=X(ue(),1);function Nt({tone:r="neutral",mono:i,children:u}){return Sm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":i??!1,children:u},void 0,!1,void 0,this)}function ul({tone:r="neutral",pulse:i}){return Sm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":i??!1},void 0,!1,void 0,this)}function Cn({color:r}){return Sm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function il(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var xo=X(ue(),1);function Ze({title:r,description:i,actions:u,flush:d,footer:f,className:y,index:m,stale:v,children:S}){let x=r!==void 0||i!==void 0||u!==void 0;return xo.jsxDEV("section",{className:y?`card rise ${y}`:"card rise",style:m!==void 0?{"--i":m}:void 0,children:[x&&xo.jsxDEV("header",{className:"card-header",children:[xo.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&xo.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),i!==void 0&&xo.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&xo.jsxDEV("div",{className:"card-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xo.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":v??!1,children:S},void 0,!1,void 0,this),f!==void 0&&xo.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function na({title:r,description:i,actions:u}){return xo.jsxDEV("header",{className:"page-header rise",children:[xo.jsxDEV("div",{children:[xo.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),i!==void 0&&xo.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&xo.jsxDEV("div",{className:"page-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ed=X(ct(),1),cw=X(ud(),1),Ya=X(ue(),1);function xm({open:r,onClose:i,title:u,subtitle:d,actions:f,width:y,children:m}){let v=Ed.useRef(i);v.current=i;let S=Ed.useRef(null);if(Ed.useEffect(()=>{if(!r)return;let x=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(C)=>{if(C.key==="Escape")C.preventDefault(),v.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),x?.focus()}},[r]),!r)return null;return cw.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:y!==void 0?{"--drawer-w":`${y}px`}:void 0,children:[Ya.jsxDEV("header",{className:"drawer-header",children:[Ya.jsxDEV("div",{className:"drawer-titles",children:[Ya.jsxDEV("h2",{className:"drawer-title",children:u},void 0,!1,void 0,this),d!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,Ya.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Ya.jsxDEV(eo,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"drawer-body",children:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function Ho({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((i)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Ya.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 Zs=X(ct(),1),Ln=X(ue(),1);function mi({data:r,title:i="JSON",initialCollapsed:u=!1}){let[d,f]=Zs.useState(u),[y,m]=Zs.useState(!1),v=Zs.useRef(0),S=JSON.stringify(r,null,2);return Zs.useEffect(()=>()=>window.clearTimeout(v.current),[]),Ln.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ln.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ln.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!d,children:[d?Ln.jsxDEV(xn,{size:13},void 0,!1,void 0,this):Ln.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),Ln.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),m(!0),window.clearTimeout(v.current),v.current=window.setTimeout(()=>m(!1),1500)}catch{}},children:[y?Ln.jsxDEV(js,{size:13},void 0,!1,void 0,this):Ln.jsxDEV(Ys,{size:13},void 0,!1,void 0,this),y?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&Ln.jsxDEV("pre",{className:"code-block",children:Ln.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ws=X(ct(),1),dw=X(ud(),1);var kn=X(ue(),1);function fw({open:r,title:i,onClose:u,primaryAction:d,cancelLabel:f="Cancel",children:y}){let m=Ws.useRef(null),v=Ws.useRef(null),S=Ws.useRef(u);S.current=u,Ws.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null,T=(L)=>{if(L.key==="Escape")L.preventDefault(),S.current()};return window.addEventListener("keydown",T),()=>{window.removeEventListener("keydown",T),k?.focus()}},[r]);let x=d!==void 0,h=d?.disabled??!1;if(Ws.useEffect(()=>{if(!r)return;(x&&!h?m.current:v.current)?.focus()},[r,x,h]),!r)return null;return dw.createPortal(kn.jsxDEV("div",{className:"modal-overlay",onClick:(k)=>{if(k.target===k.currentTarget)u()},role:"presentation",children:kn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[kn.jsxDEV("div",{className:"modal-header",children:[kn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:u,"aria-label":"Close",children:kn.jsxDEV(eo,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kn.jsxDEV("div",{className:"modal-body",children:y},void 0,!1,void 0,this),kn.jsxDEV("div",{className:"modal-footer",children:[kn.jsxDEV("button",{ref:v,type:"button",className:"btn",onClick:u,children:f},void 0,!1,void 0,this),d&&kn.jsxDEV("button",{ref:m,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var Cm=X(ue(),1);function cl({value:r,onChange:i,placeholder:u="Filter…",label:d="Filter",width:f}){return Cm.jsxDEV("label",{className:"search",children:[Cm.jsxDEV(Rd,{size:14},void 0,!1,void 0,this),Cm.jsxDEV("input",{className:"input",type:"search","aria-label":d,value:r,placeholder:u,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 hi=X(ct(),1),Lm=X(ue(),1);function za({options:r,value:i,onChange:u,size:d="md","aria-label":f}){let y=hi.useRef(null),[m,v]=hi.useState(null);return hi.useLayoutEffect(()=>{let S=y.current,x=S?.querySelector('[data-active="true"]');if(!S||!x){v(null);return}let h=()=>v({left:x.offsetLeft,width:x.offsetWidth});h();let C=new ResizeObserver(h);return C.observe(S),()=>C.disconnect()},[i,r]),Lm.jsxDEV("div",{ref:y,className:"segmented","data-size":d,role:"radiogroup","aria-label":f,children:[m&&Lm.jsxDEV("span",{className:"segmented-thumb",style:{left:m.left,width:m.width}},void 0,!1,void 0,this),r.map((S)=>Lm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===i,className:"segmented-option","data-active":S.value===i,title:S.title,onClick:()=>u(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var bi=X(ct(),1);var gi=X(ct(),1);function km(){let r=gi.useRef(null),[i,u]=gi.useState(0);return gi.useLayoutEffect(()=>{let d=r.current;if(!d)return;u(d.clientWidth);let f=new ResizeObserver((y)=>{let m=Math.round(y[0]?.contentRect.width??0);u((v)=>v===m?v:m)});return f.observe(d),()=>f.disconnect()},[]),[r,i]}var Od=X(ue(),1);function yi({values:r,color:i="var(--chart-primary)",height:u=28,width:d,area:f=!0}){let[y,m]=km(),v=d??m,S=Math.max(0,...r),x=r.length,h="";if(v>0&&x>0){let C=x>1?v/(x-1):0;for(let k=0;k<x;k++){let T=x>1?k*C:v/2,L=S>0?u-2-r[k]/S*(u-4):u-2;h+=`${k===0?"M":"L"}${T.toFixed(1)},${L.toFixed(1)}`}}return Od.jsxDEV("div",{ref:y,className:"sparkline",style:{width:d??"100%",height:u},children:v>0&&x>0&&Od.jsxDEV("svg",{width:v,height:u,"aria-hidden":"true",children:[f&&Od.jsxDEV("path",{className:"area",d:`${h}L${v},${u}L0,${u}Z`,fill:i},void 0,!1,void 0,this),Od.jsxDEV("path",{className:"chart-line",d:h,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var nn=X(ue(),1);function ie({label:r,value:i,hint:u,delta:d,spark:f,sparkColor:y,size:m="md",title:v}){let S=FA(typeof i==="string"||typeof i==="number"?i:null);return nn.jsxDEV("div",{className:"stat","data-size":m,title:v,children:[nn.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),nn.jsxDEV("div",{className:"stat-value","data-flash":S,children:i},void 0,!1,void 0,this),(u!==void 0||d)&&nn.jsxDEV("div",{className:"stat-foot",children:[d&&nn.jsxDEV(HA,{...d},void 0,!1,void 0,this),u!==void 0&&nn.jsxDEV("span",{className:"truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&nn.jsxDEV("div",{className:"stat-spark",children:nn.jsxDEV(yi,{values:f,color:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function la({min:r,children:i}){return nn.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 HA({change:r,good:i="up"}){if(r===null||!Number.isFinite(r))return nn.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let u=Math.abs(r)<0.0005?0:r,d=u===0?void 0:u>0===(i==="up")?"good":"bad",f=u>0?"+":u<0?"−":"±",y=Math.abs(u)*100;return nn.jsxDEV("span",{className:"delta","data-tone":d,children:[f,y>=100?y.toFixed(0):y.toFixed(1),"%"]},void 0,!0,void 0,this)}function FA(r){let i=bi.useRef(r),[u,d]=bi.useState(!1);return bi.useEffect(()=>{if(i.current===r)return;let f=i.current!==null;if(i.current=r,!f)return;d(!0);let y=setTimeout(()=>d(!1),900);return()=>clearTimeout(y)},[r]),u}var ha=X(ue(),1);function Lt({title:r="Nothing here yet",hint:i}){return ha.jsxDEV("div",{className:"empty",children:[ha.jsxDEV(Cd,{size:20},void 0,!1,void 0,this),ha.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),i!==void 0&&ha.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vi({error:r,onRetry:i}){return ha.jsxDEV("div",{className:"error-state",role:"alert",children:[ha.jsxDEV($r,{size:15},void 0,!1,void 0,this),ha.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),i&&ha.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[ha.jsxDEV(Id,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Oa({width:r="100%",height:i=14,style:u}){return ha.jsxDEV("div",{className:"skeleton",style:{width:r,height:i,...u}},void 0,!1,void 0,this)}function Bt({height:r=220}){return ha.jsxDEV(Oa,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ia({rows:r=6}){return ha.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(i,u)=>ha.jsxDEV(Oa,{height:16,width:`${92-u*13%30}%`},u,!1,void 0,this))},void 0,!1,void 0,this)}function Ve({query:r,skeleton:i,isEmpty:u,empty:d,children:f}){if(r.data===null){if(r.error)return ha.jsxDEV(vi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return ha.jsxDEV(ha.Fragment,{children:i},void 0,!1,void 0,this)}return ha.jsxDEV(ha.Fragment,{children:[r.error&&ha.jsxDEV(vi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),u?.(r.data)?d??ha.jsxDEV(Lt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Js=X(ct(),1);var Eb="en-US";function N(r){return r.toLocaleString(Eb)}function Ae(r){return r.toLocaleString(Eb,{notation:"compact"})}function ca(r,i){if(r===0)return"$0";let u=i!==void 0?i:r>0&&r<0.01?4:2;return`$${r.toLocaleString(Eb,{minimumFractionDigits:u,maximumFractionDigits:u})}`}function _t(r,i,u){return r===0&&i>0?"N/A":ca(r,u)}function Ob(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Zr(r,i){return _t(r.usage.cost.total,Ob(r)?1:0,i)}function Fe(r,i=1){return`${(r*100).toFixed(i)}%`}function to(r){let i=r*100;if(i>0&&i<0.005)return"<0.01%";return Fe(r,i>0&&i<0.1?2:1)}function Rt(r,i){if(r===null)return"-";let u=r/1000,d=i!==void 0?i:u<1?2:1;return`${u.toFixed(d)}s`}function Ks(r){if(r<60000)return Rt(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 dl(r){if(r===null)return"-";return r.toFixed(1)}function da(r){return Nk(new Date(r),{addSuffix:!0})}function ln(r){return rl(new Date(r),"MMM d, HH:mm:ss")}function fl(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function qb(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 Mt=X(ue(),1);function $t({columns:r,rows:i,rowKey:u,onRowClick:d,selectedKey:f,initialSort:y,limit:m,dense:v,empty:S,expanded:x}){let[h,C]=Js.useState(y??null),[k,T]=Js.useState(m??Number.POSITIVE_INFINITY),L=Js.useMemo(()=>{let U=h?r.find((_)=>_.key===h.key):void 0;if(!h||!U?.sort)return i;let B=U.sort,V=h.dir==="asc"?1:-1;return[...i].sort((_,pe)=>{let W=B(_),oe=B(pe);if(typeof W==="number"&&typeof oe==="number")return(W-oe)*V;return String(W).localeCompare(String(oe))*V})},[i,r,h]);if(i.length===0)return Mt.jsxDEV(Mt.Fragment,{children:S??Mt.jsxDEV(Lt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let M=L.length>k?L.slice(0,k):L,D=(U)=>{if(!U.sort)return;C((B)=>B?.key===U.key?{key:U.key,dir:B.dir==="asc"?"desc":"asc"}:{key:U.key,dir:U.align==="right"?"desc":"asc"})};return Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV("div",{className:"table-wrap",children:Mt.jsxDEV("table",{className:"table","data-dense":v??!1,children:[Mt.jsxDEV("thead",{children:Mt.jsxDEV("tr",{children:r.map((U)=>{let B=h?.key===U.key?h.dir:void 0;return Mt.jsxDEV("th",{"data-align":U.align??"left","data-sortable":U.sort!==void 0,"data-sorted":B,style:U.width!==void 0?{width:U.width}:void 0,title:U.title,onClick:()=>D(U),"aria-sort":B==="asc"?"ascending":B==="desc"?"descending":void 0,children:[U.header,B&&Mt.jsxDEV("span",{className:"sort-arrow",children:B==="asc"?Mt.jsxDEV(gd,{size:11},void 0,!1,void 0,this):Mt.jsxDEV(fd,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},U.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Mt.jsxDEV("tbody",{children:M.map((U)=>{let B=u(U),V=x?.(U)??null;return Mt.jsxDEV(Js.Fragment,{children:[Mt.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":f===B,onClick:d?()=>d(U):void 0,onKeyDown:d?(_)=>{if(_.key==="Enter"||_.key===" ")_.preventDefault(),d(U)}:void 0,tabIndex:d?0:void 0,children:r.map((_)=>Mt.jsxDEV("td",{"data-align":_.align??"left","data-wrap":_.wrap??!1,children:_.render(U)},_.key,!1,void 0,this))},void 0,!1,void 0,this),V!==null&&Mt.jsxDEV("tr",{children:Mt.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)]},B,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),m!==void 0&&L.length>m&&Mt.jsxDEV("div",{className:"table-more",children:[Mt.jsxDEV("span",{className:"micro",children:[N(M.length)," of ",N(L.length)]},void 0,!0,void 0,this),L.length>k&&Mt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T((U)=>U+m*4),children:"Show more"},void 0,!1,void 0,this),k>m&&Mt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>T(m),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function fa({value:r,max:i,display:u,color:d}){let f=i>0?Math.min(100,r/i*100):0;return Mt.jsxDEV("div",{className:"meter-cell",children:[Mt.jsxDEV("span",{className:"num",children:u},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"meter",children:Mt.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:i,lead:u}){return Mt.jsxDEV("div",{className:"row",style:{gap:10},children:[u,Mt.jsxDEV("div",{className:"stack",style:{gap:0},children:[Mt.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),i!==void 0&&Mt.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 qd=X(ct(),1);function wm(r){return r instanceof HTMLElement&&(r.isContentEditable||r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.tagName==="SELECT")}function Tm(){return document.querySelector('[aria-modal="true"]')!==null}var Im=X(ue(),1);function mw(){let r=GA();if(qd.useEffect(()=>{if(!r)return;let i=(u)=>{if(!VA(u))return;u.preventDefault(),pw()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[r]),!r)return null;return Im.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:pw,title:"Close the dashboard (Esc)",children:[Im.jsxDEV(eo,{size:15},void 0,!1,void 0,this),"Close",Im.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function pw(){$k().catch((r)=>console.error("Closing the dashboard failed",r))}function GA(){let[r,i]=qd.useState(!1);return qd.useEffect(()=>{let u=new AbortController;return Vk(u.signal).then(i,()=>{}),()=>u.abort()},[]),r}function VA(r){if(r.defaultPrevented||r.altKey||r.metaKey||r.shiftKey)return!1;if(wm(r.target)||Tm())return!1;if(r.key==="Escape")return!r.ctrlKey;return r.ctrlKey&&r.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var Rm=X(ct(),1);var Kt=X(ue(),1);function hw(){let{sync:r,indexingHours:i,connected:u,requestSync:d}=vm(),f=jA(r.phase==="idle"?15000:null),y,m;if(!u)y=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(ul,{tone:"warn"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")y=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(jr,{size:13,className:"spin"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Kt.jsxDEV("span",{className:"live-chip-count",children:[N(r.current),"/",N(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m="Ingesting session files";else if(r.phase==="error")y=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(ul,{tone:"bad"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m=`${r.error??"Sync failed"} — click to retry`;else if(i>$A)y=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(jr,{size:13,className:"spin"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Kt.jsxDEV("span",{className:"live-chip-count",children:[N(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m="Building hourly rollups; older ranges fill in as it goes";else y=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(ul,{tone:"live",pulse:!0},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Kt.jsxDEV("span",{className:"live-chip-count",children:XA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m="Click to sync session files now";return Kt.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:r.phase==="syncing",title:m,children:y},void 0,!1,void 0,this)}var $A=24;function jA(r){let[i,u]=Rm.useState(Date.now);return Rm.useEffect(()=>{if(r===null)return;u(Date.now());let d=setInterval(()=>u(Date.now()),r);return()=>clearInterval(d)},[r]),i}function XA(r){let i=Math.max(0,Math.round(r/1000));if(i<45)return"just now";let u=Math.round(i/60);if(u<60)return`${u}m ago`;let d=Math.round(u/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var Mm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:Ld,hotkey:"o"},{id:"models",label:"Models",icon:vd,hotkey:"m"},{id:"providers",label:"Providers",icon:Vr,hotkey:"p"},{id:"costs",label:"Costs",icon:bd,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:dd,hotkey:"r"},{id:"errors",label:"Errors",icon:Fr,hotkey:"e"},{id:"traces",label:"Traces",icon:Sn,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Ad,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Gr,hotkey:"f"},{id:"projects",label:"Projects",icon:Sd,hotkey:"j"},{id:"gain",label:"Gain",icon:ll,hotkey:"g"}]}],YA=Mm.flatMap((r)=>r.items),gw=YA.map((r)=>r.id);var Nb=X(ct(),1),bw="omp-stats-theme",vw="(prefers-color-scheme: dark)";function QA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(bw);return r==="light"||r==="dark"||r==="system"?r:"system"}function Sw(){if(typeof window>"u")return"dark";return window.matchMedia(vw).matches?"dark":"light"}var eu=QA(),Am=eu==="system"?Sw():eu,Bb=new Set;function xw(){for(let r of Bb)r()}function Ub(){if(Am=eu==="system"?Sw():eu,typeof document<"u")document.documentElement.dataset.theme=Am,document.documentElement.style.colorScheme=Am}if(typeof window<"u")Ub(),window.matchMedia(vw).addEventListener("change",()=>{if(eu==="system")Ub(),xw()});function ZA(r){if(eu=r,typeof localStorage<"u")localStorage.setItem(bw,r);Ub(),xw()}function yw(r){return Bb.add(r),()=>Bb.delete(r)}function Cw(){let r=Nb.useSyncExternalStore(yw,()=>eu,()=>"system"),i=Nb.useSyncExternalStore(yw,()=>Am,()=>"dark");return{preference:r,resolved:i,setPreference:ZA}}var Pb=X(ue(),1),WA={system:"light",light:"dark",dark:"system"},KA={system:wd,light:Md,dark:Td},Lw={system:"System theme",light:"Light theme",dark:"Dark theme"};function kw(){let{preference:r,setPreference:i}=Cw(),u=KA[r];return Pb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(WA[r]),"aria-label":`${Lw[r]} (click to switch)`,title:`${Lw[r]} — click to switch`,children:Pb.jsxDEV(u,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var tt=X(ue(),1),JA=pi.map((r,i)=>({value:r,label:ua(r).label,title:`${ua(r).windowLabel} (${i+1})`}));function ww({section:r,onSectionChange:i,range:u,onRangeChange:d,children:f}){let[y,m]=Si.useState(!1),v=e2(),{sync:S}=vm();t2(i,d);let x=(C)=>{i(C),m(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return tt.jsxDEV(tt.Fragment,{children:[tt.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),tt.jsxDEV("header",{className:"topbar","data-scrolled":v,children:[tt.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>m(!0),"aria-label":"Open navigation",children:tt.jsxDEV(kd,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"topbar-brand",children:[tt.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[tt.jsxDEV("defs",{children:tt.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[tt.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),tt.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),tt.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"topbar-actions",children:[tt.jsxDEV("span",{className:"topbar-hide-narrow",children:tt.jsxDEV(hw,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV(za,{options:JA,value:u,onChange:d,"aria-label":"Time range"},void 0,!1,void 0,this),tt.jsxDEV(kw,{},void 0,!1,void 0,this),tt.jsxDEV(mw,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&tt.jsxDEV("div",{className:"topbar-progress",children:tt.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y&&tt.jsxDEV("div",{className:"drawer-scrim",onClick:()=>m(!1),role:"presentation"},void 0,!1,void 0,this),tt.jsxDEV("nav",{className:"sidebar","data-open":y,"aria-label":"Pages",children:[Mm.map((C)=>tt.jsxDEV("div",{className:"nav-group",children:[tt.jsxDEV("div",{className:"nav-heading",children:C.heading},void 0,!1,void 0,this),C.items.map((k)=>tt.jsxDEV("button",{type:"button",className:"nav-row","data-active":k.id===r,"aria-current":k.id===r?"page":void 0,onClick:()=>x(k.id),children:[tt.jsxDEV(k.icon,{size:15},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"nav-row-label",children:k.label},void 0,!1,void 0,this),tt.jsxDEV("kbd",{children:["G ",k.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},k.id,!0,void 0,this))]},C.heading,!0,void 0,this)),tt.jsxDEV("div",{className:"sidebar-foot micro",children:[tt.jsxDEV("span",{children:[tt.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",tt.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),tt.jsxDEV("span",{children:[tt.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("main",{className:"shell-panel",children:tt.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function e2(){let[r,i]=Si.useState(!1);return Si.useEffect(()=>{let u=()=>i(window.scrollY>4);return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),r}function t2(r,i){Si.useEffect(()=>{let u=0,d=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;if(wm(f.target)||Tm())return;let y=f.key.toLowerCase();if(u&&Date.now()-u<1200){u=0;let v=Mm.flatMap((S)=>S.items).find((S)=>S.hotkey===y);if(v)f.preventDefault(),r(v.id),window.scrollTo({top:0});return}if(y==="g"){u=Date.now();return}let m=Number(y)-1;if(Number.isInteger(m)&&m>=0&&m<pi.length)f.preventDefault(),i(pi[m])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r,i])}var $l=X(ct(),1);function Nd(r){let[i,u]=r.replace(/^#\/?/,"").split("?"),d=gw.includes(i)?i:"overview",f=new URLSearchParams(u??""),y=f.get("range"),m=pi.includes(y??"")?y:"24h";return{section:d,range:m,session:f.get("s")}}function Dm({section:r,range:i,session:u}){let d=u?`&s=${encodeURIComponent(u)}`:"";return`#/${r}?range=${i}${d}`}function Tw(){let[r,i]=$l.useState(()=>Nd(window.location.hash));$l.useEffect(()=>{let m=()=>i(Nd(window.location.hash));window.addEventListener("hashchange",m),window.addEventListener("popstate",m);let v=Dm(Nd(window.location.hash));if(window.location.hash!==v)history.replaceState(null,"",v);return()=>{window.removeEventListener("hashchange",m),window.removeEventListener("popstate",m)}},[]);let u=$l.useCallback((m)=>{i(m);let v=Dm(m);if(window.location.hash!==v)history.pushState(null,"",v)},[]),d=$l.useCallback((m)=>u({...r,section:m,session:m==="traces"?r.session:null}),[r,u]),f=$l.useCallback((m)=>u({...r,range:m}),[r,u]),y=$l.useCallback((m)=>u({...r,session:m}),[r,u]);return{...r,setSection:d,setRange:f,setSession:y}}var Pd=X(ct(),1);var pl=X(ue(),1);function Bd({items:r,max:i,onSelect:u}){let d=i??Math.max(0,...r.map((f)=>f.value));return pl.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let y=d>0?Math.max(0.5,f.value/d*100):0,m=pl.jsxDEV(pl.Fragment,{children:[pl.jsxDEV("span",{className:"bar-list-fill",style:{width:`${y}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),pl.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),pl.jsxDEV("span",{className:"bar-list-value",children:f.display??N(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?pl.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>u(f.key),children:m},f.key,!1,void 0,this):pl.jsxDEV("div",{className:"bar-list-row",children:m},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var jl=X(ct(),1);var yt=X(ue(),1),tu=10,a2=24,o2=68,n2=4;function wn({slots:r,tickLabel:i,tooltipTitle:u,series:d,kind:f="bars",stacked:y=!0,height:m=220,format:v=Ae,formatRight:S,formatTooltip:x,yMax:h,yMaxRight:C,hidden:k,showTotal:T,references:L,onSelect:M,emptyLabel:D="No data in this range",tooltipExtra:U}){let[B,V]=km(),[_,pe]=jl.useState(null),W=jl.useId().replace(/:/g,""),oe=jl.useMemo(()=>d.filter((K)=>!k?.has(K.key)),[d,k]),Q=jl.useMemo(()=>{let K=oe.filter((ht)=>ht.axis!=="right"),Me=oe.filter((ht)=>ht.axis==="right"),lt=(ht)=>y&&(ht.kind??f)!=="line",ne=new Map,j=Array.from({length:r},()=>0),be=0;for(let ht of K)if(lt(ht)){let Se=j.slice();ne.set(ht.key,Se);for(let sn=0;sn<r;sn++)j[sn]+=ht.values[sn]??0}else for(let Se=0;Se<r;Se++)be=Math.max(be,ht.values[Se]??0);for(let ht of j)be=Math.max(be,ht);let _e=0;for(let ht of Me)for(let Se=0;Se<r;Se++)_e=Math.max(_e,ht.values[Se]??0);for(let ht of L??[])if(ht.axis==="right")_e=Math.max(_e,ht.value);else be=Math.max(be,ht.value);let je=Iw(h??be),Xe=Me.length>0?Iw(C??_e):null,Ge=oe.every((ht)=>ht.values.every((Se)=>!Se));return{left:K,right:Me,bases:ne,stackable:lt,leftScale:je,rightScale:Xe,empty:Ge}},[oe,r,y,f,h,C,L]),H=Q.leftScale.ticks.map((K)=>v(K)),F=Q.rightScale?.ticks.map((K)=>(S??v)(K))??[],ce=Math.max(28,Rw(H)+12),ye=Q.rightScale?Math.max(28,Rw(F)+12):8,xe=Math.max(0,V-ce-ye),we=m-tu-a2,te=r>0?xe/r:0,me=(K)=>tu+we-K/Q.leftScale.max*we,Ce=(K)=>tu+we-K/(Q.rightScale?.max??1)*we,We=(K)=>ce+(K+0.5)*te,bt=oe.filter((K)=>(K.kind??f)==="bars"),J=bt.filter((K)=>!Q.stackable(K)||K.axis==="right"),Ne=Math.max(1,Math.min(56,te*(te>6?0.72:0.9))),vt=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(xe/o2)))),St=(K)=>{let Me=K.currentTarget.getBoundingClientRect(),lt=Math.floor((K.clientX-Me.left)/(Me.width/r));pe(lt>=0&&lt<r?lt:null)},re=_===null?[]:oe.filter((K)=>K.tooltip!==!1).map((K)=>({s:K,v:K.values[_]})).filter((K)=>K.v!==null&&K.v!==void 0&&(K.v!==0||oe.length===1)).sort((K,Me)=>oe.length>1?Me.v-K.v:0),Pe=re.filter((K)=>K.s.axis!=="right").reduce((K,Me)=>K+Me.v,0),ze=T??(y&&Q.left.length>1);return yt.jsxDEV("div",{className:"chart",ref:B,"data-hovering":_!==null,style:{height:m},children:[V>0&&yt.jsxDEV("svg",{width:V,height:m,role:"img",children:[yt.jsxDEV("defs",{children:oe.filter((K)=>K.pattern==="hatch").map((K)=>yt.jsxDEV("pattern",{id:`${W}-${zb(K.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[yt.jsxDEV("rect",{width:"5",height:"5",fill:K.color,fillOpacity:"0.14"},void 0,!1,void 0,this),yt.jsxDEV("rect",{width:"1.6",height:"5",fill:K.color},void 0,!1,void 0,this)]},K.key,!0,void 0,this))},void 0,!1,void 0,this),yt.jsxDEV("g",{className:"chart-grid",children:Q.leftScale.ticks.map((K)=>yt.jsxDEV("line",{x1:ce,x2:ce+xe,y1:me(K),y2:me(K)},K,!1,void 0,this))},void 0,!1,void 0,this),yt.jsxDEV("g",{className:"chart-axis",children:[Q.leftScale.ticks.map((K,Me)=>yt.jsxDEV("text",{x:ce-8,y:me(K),dy:"0.32em",textAnchor:"end",children:H[Me]},K,!1,void 0,this)),Q.rightScale?.ticks.map((K,Me)=>yt.jsxDEV("text",{x:ce+xe+8,y:Ce(K),dy:"0.32em",textAnchor:"start",children:F[Me]},K,!1,void 0,this)),Array.from({length:r},(K,Me)=>Me%vt===0?yt.jsxDEV("text",{x:We(Me),y:m-6,textAnchor:"middle",children:i(Me)},Me,!1,void 0,this):null)]},void 0,!0,void 0,this),_!==null&&yt.jsxDEV("rect",{className:"chart-cursor",x:ce+_*te,y:tu,width:te,height:we},void 0,!1,void 0,this),oe.filter((K)=>(K.kind??f)==="area").map((K)=>{let Me=K.axis==="right"?Ce:me,lt=Q.bases.get(K.key),ne=(je)=>(lt?.[je]??0)+(K.values[je]??0),j=Mw(r,We,(je)=>Me(ne(je))),be=Array.from({length:r},(je,Xe)=>r-1-Xe).map((je)=>`L${We(je).toFixed(1)},${Me(lt?.[je]??0).toFixed(1)}`).join(""),_e=K.pattern==="hatch"?`url(#${W}-${zb(K.key)})`:K.color;return yt.jsxDEV("g",{children:[yt.jsxDEV("path",{d:`${j}${be}Z`,fill:_e,fillOpacity:K.pattern?1:0.2},void 0,!1,void 0,this),yt.jsxDEV("path",{className:"chart-line",d:j,stroke:K.color},void 0,!1,void 0,this)]},K.key,!0,void 0,this)}),bt.map((K)=>{let Me=K.axis==="right"?Ce:me,lt=Q.bases.get(K.key),ne=J.indexOf(K),j=ne>=0?Ne/J.length:Ne,be=K.pattern==="hatch"?`url(#${W}-${zb(K.key)})`:K.color;return yt.jsxDEV("g",{children:K.values.map((_e,je)=>{if(!_e)return null;let Xe=ne>=0?0:lt?.[je]??0,Ge=Me(Xe),ht=Me(Xe+_e),Se=We(je)-Ne/2+(ne>=0?ne*j:0);return yt.jsxDEV("rect",{className:"chart-bar","data-hover":_===je,x:Se,y:Math.min(Ge,ht),width:Math.max(1,j-(ne>=0&&J.length>1?1:0)),height:Math.max(_e>0?1:0,Math.abs(Ge-ht)),fill:be},je,!1,void 0,this)})},K.key,!1,void 0,this)}),oe.filter((K)=>(K.kind??f)==="line").map((K)=>{let Me=K.axis==="right"?Ce:me,lt=(ne)=>{let j=K.values[ne];return j===null||j===void 0?null:Me(j)};return yt.jsxDEV("g",{children:[yt.jsxDEV("path",{className:"chart-line",d:Mw(r,We,lt),stroke:K.color,strokeDasharray:K.dashed?"4 3":void 0},void 0,!1,void 0,this),K.values.map((ne,j)=>{let be=lt(j);if(be===null||j>0&&lt(j-1)!==null||j<r-1&&lt(j+1)!==null)return null;return yt.jsxDEV("circle",{cx:We(j),cy:be,r:2.5,fill:K.color},j,!1,void 0,this)})]},K.key,!0,void 0,this)}),L?.map((K)=>{let Me=K.axis==="right"?Ce(K.value):me(K.value);return yt.jsxDEV("g",{className:"chart-axis",children:[yt.jsxDEV("line",{x1:ce,x2:ce+xe,y1:Me,y2:Me,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),K.label&&yt.jsxDEV("text",{x:ce+xe-4,y:Me-5,textAnchor:"end",children:K.label},void 0,!1,void 0,this)]},`${K.axis??"left"}:${K.value}`,!0,void 0,this)}),yt.jsxDEV("line",{className:"chart-baseline",x1:ce,x2:ce+xe,y1:me(0),y2:me(0)},void 0,!1,void 0,this),yt.jsxDEV("rect",{x:ce,y:tu,width:xe,height:we,fill:"transparent",onPointerMove:St,onPointerLeave:()=>pe(null),onClick:M&&_!==null?()=>M(_):void 0,style:{cursor:M?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.empty&&yt.jsxDEV("div",{className:"chart-empty",children:D},void 0,!1,void 0,this),_!==null&&!Q.empty&&yt.jsxDEV("div",{className:"chart-tooltip",style:We(_)>V/2?{right:V-We(_)+Math.min(te/2,24)+8,top:tu}:{left:We(_)+Math.min(te/2,24)+8,top:tu},children:[yt.jsxDEV("div",{className:"chart-tooltip-title",children:(u??i)(_)},void 0,!1,void 0,this),re.map(({s:K,v:Me})=>yt.jsxDEV("div",{className:"chart-tooltip-row",children:[yt.jsxDEV("span",{className:"swatch",style:{background:K.color}},void 0,!1,void 0,this),yt.jsxDEV("span",{className:"chart-tooltip-label",children:K.label},void 0,!1,void 0,this),yt.jsxDEV("span",{className:"chart-tooltip-value",children:K.axis==="right"?(S??v)(Me):(x??v)(Me)},void 0,!1,void 0,this)]},K.key,!0,void 0,this)),ze&&re.length>1&&yt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[yt.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),yt.jsxDEV("span",{className:"chart-tooltip-value",children:(x??v)(Pe)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U&&yt.jsxDEV(jl.Fragment,{children:U(_)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Iw(r){if(!(r>0))return{max:1,ticks:[0]};let i=r/n2,u=10**Math.floor(Math.log10(i)),d=[1,2,2.5,5,10].map((m)=>m*u).find((m)=>m>=i)??10*u,f=Math.ceil(r/d)*d,y=[];for(let m=0;m<=f+d/2;m+=d)y.push(Number(m.toPrecision(12)));return{max:f,ticks:y}}function Rw(r){return r.reduce((i,u)=>Math.max(i,u.length*6.3),0)}function Mw(r,i,u){let d="",f=!1;for(let y=0;y<r;y++){let m=u(y);if(m===null){f=!1;continue}d+=`${f?"L":"M"}${i(y).toFixed(1)},${m.toFixed(1)}`,f=!0}return d}function zb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var Em=X(ct(),1),ml=X(ue(),1);function Qa({items:r,hidden:i,onToggle:u}){return ml.jsxDEV("div",{className:"legend",children:r.map((d)=>{let f=ml.jsxDEV(ml.Fragment,{children:[ml.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),ml.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&ml.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?ml.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(d.key)??!1,onClick:()=>u(d.key),title:d.label,children:f},d.key,!1,void 0,this):ml.jsxDEV("span",{className:"legend-item",title:d.label,children:f},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function rn(){let[r,i]=Em.useState(()=>new Set),u=Em.useCallback((d)=>{i((f)=>{let y=new Set(f);if(!y.delete(d))y.add(d);return y})},[]);return[r,u]}var _b=X(ue(),1);function Wr({segments:r,height:i=8}){let u=r.reduce((d,f)=>d+Math.max(0,f.value),0);return _b.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:u>0&&r.filter((d)=>d.value>0).map((d)=>_b.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/u,background:d.color},title:`${d.label}: ${(d.value/u*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var Aw=X(ue(),1);function Xl({buckets:r,bucketMs:i,onSelectBucket:u,...d}){return Aw.jsxDEV(wn,{...d,slots:r.length,tickLabel:(f)=>gm(r[f],i),tooltipTitle:(f)=>hm(r[f],i),onSelect:u?(f)=>u(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],ao="#6c6c74";function va(r,i){return`${r}::${i}`}function Om(r){return Ud(r.map((i)=>({key:va(i.model,i.provider),weight:i.totalRequests})))}function Ud(r){let i=[...r].sort((u,d)=>d.weight-u.weight||u.key.localeCompare(d.key));return new Map(i.map((u,d)=>[u.key,Ha[d%Ha.length]]))}function qm(r){return r instanceof Error?r:Error(String(r))}var ga=X(ct(),1);var l2={entries:new Map,limit:128},r2={entries:new Map,limit:4},s2={entries:new Map,limit:16},au=new Map;function Dw(r){if(r.startsWith('["trace",'))return r2;if(r.startsWith('["request",'))return s2;return l2}function xi(r){return Dw(r).entries.get(r)}function Ew(r){return au.get(r)}function u2(r,i){let{entries:u,limit:d}=Dw(r);if(u.delete(r),u.set(r,i),u.size>d){let f=u.keys().next().value;if(f!==void 0)u.delete(f)}}function Ow(r,i,u){let d=au.get(r);if(d)return d.waiters++,d;let f=new AbortController,y=xi(r)?.data,m={promise:u({signal:f.signal},y).then((v)=>(u2(r,{data:v,updatedAt:Date.now(),version:i}),v)).finally(()=>{if(au.get(r)===m)au.delete(r)}),controller:f,waiters:1};return au.set(r,m),m}function Hb(r,i){if(i.waiters--,i.waiters>0)return;if(au.get(r)===i)au.delete(r);i.controller.abort()}var i2=1500;function Ht(r,i,u){let d=JSON.stringify(r),f=u?.enabled??!0,y=u?.pollMs,m=iw(f),[,v]=ga.useReducer((H)=>H+1,0),[S,x]=ga.useReducer((H)=>H+1,0),[h,C]=ga.useState(null),[k,T]=ga.useState(!1),L=ga.useRef(i);L.current=i;let M=ga.useRef(d);M.current=d;let D=ga.useRef(null),U=ga.useRef(0),B=ga.useRef(null),V=ga.useCallback((H)=>{U.current=Date.now();let F=B.current;if(F?.key===H&&Ew(H)===F.request)return;let ce=xi(H)?.data;T(!0);let ye=Ow(H,Db(),L.current);if(B.current={key:H,request:ye},F)Hb(F.key,F.request);let xe=!1;ye.promise.then((we)=>{if(xe=!0,M.current!==H)return;if(we===ce){C((te)=>te===null?te:null);return}ga.startTransition(()=>{C(null),v()})}).catch((we)=>{if(M.current!==H||ye.controller.signal.aborted)return;C({key:H,error:qm(we)})}).finally(()=>{if(B.current?.request!==ye)return;if(B.current=null,M.current!==H)return;if(T(!1),xe&&(xi(H)?.version??-1)<Db())x()})},[]),_=ga.useCallback(()=>{let H=B.current;if(B.current=null,H)Hb(H.key,H.request)},[]);ga.useEffect(()=>_,[_]),ga.useEffect(()=>{if(!f||B.current&&B.current.key!==d)_();if(!f)return;let H=xi(d);if(H&&H.version>=m)return;let F=H?U.current+i2-Date.now():0;if(F<=0){V(d);return}let ce=setTimeout(()=>V(d),F);return()=>clearTimeout(ce)},[d,f,m,S,V,_]),ga.useEffect(()=>{if(!f||!y)return;let H=setInterval(()=>{if(!document.hidden)V(M.current)},y);return()=>clearInterval(H)},[f,y,V]);let pe=ga.useCallback(()=>V(M.current),[V]),W=xi(d);if(W)D.current={key:d,data:W.data,updatedAt:W.updatedAt};let oe=D.current,Q=h?.key===d?h.error:null;return{data:oe?.data??null,error:Q,loading:!oe&&!Q,stale:!!oe&&oe.key!==d,refreshing:k,updatedAt:oe?.updatedAt??null,refetch:pe}}function Sa(r,i,u){let d=qw(i),f=Array.from({length:i.length},()=>0);for(let y of r){let m=d.get(y.timestamp);if(m!==void 0)f[m]+=u(y)}return f}function hl(r,i){let u=qw(i.buckets),d=new Map;for(let x of r){let h=u.get(x.timestamp);if(h===void 0)continue;let C=i.key(x),k=d.get(C);if(!k)k=Array.from({length:i.buckets.length},()=>0),d.set(C,k);k[h]+=i.value(x)}let f=[...d.entries()].map(([x,h])=>({key:x,values:h,total:h.reduce((C,k)=>C+k,0)})).filter((x)=>x.total!==0).sort((x,h)=>h.total-x.total||x.key.localeCompare(h.key)),y=i.limit??Number.POSITIVE_INFINITY,m=f.slice(0,y),v=f.slice(y),S=m.map((x,h)=>({key:x.key,label:i.label?i.label(x.key):x.key,color:i.colors?.get(x.key)??Ha[h%Ha.length],values:x.values}));if(v.length>0){let x=Array.from({length:i.buckets.length},()=>0);for(let h of v)for(let C=0;C<x.length;C++)x[C]+=h.values[C];S.push({key:"__other__",label:`Other (${v.length})`,color:ao,values:x})}return S}function qw(r){let i=new Map;for(let u=0;u<r.length;u++)i.set(r[u],u);return i}var c2=["main","subagent","advisor"];function Kr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function Uw(r){let i=new Map;for(let m of r)i.set(m.agentType,m);let u=c2.map((m)=>i.get(m)).filter((m)=>m!==void 0),d=u.reduce((m,v)=>m+Kr(v),0),f=u.reduce((m,v)=>m+v.totalCost,0),y=u.map((m)=>{let v=Kr(m);return{agentType:m.agentType,tokens:v,requests:m.totalRequests,cost:m.totalCost,share:d>0?v/d:0}});return{totalTokens:d,totalCost:f,segments:y}}function Pw(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},u=new Map;for(let f of r){let y=va(f.model,f.provider),m=u.get(y);if(!m)m={key:y,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},u.set(y,m);Nw(m,f),Nw(i,f),m.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...u.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 d=i.models[0];return i.topModel=d!==void 0&&d.cost>0?d:null,i}function Nw(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 zw(r){let i=new Map;for(let u of r){let d=va(u.model,u.provider),f=i.get(d);if(!f)f=[],i.set(d,f);f.push({timestamp:u.timestamp,avgTtftSeconds:u.avgTtft!==null?u.avgTtft/1000:null,avgTokensPerSecond:u.avgTokensPerSecond,requests:u.requests})}for(let u of i.values())u.sort((d,f)=>d.timestamp-f.timestamp);return i}var d2=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function _w(r){let i=0,u=0,d=0,f=0,y=0,m=0,v=0,S=0,x=0;for(let k of r){if(i+=k.totalRequests,u+=k.failedRequests,d+=k.totalCost,f+=k.unpricedRequests,y+=k.totalInputTokens+k.totalCacheReadTokens+k.totalCacheWriteTokens+k.totalOutputTokens,m+=k.totalInputTokens,v+=k.totalCacheReadTokens,k.totalRequests>S)S=k.totalRequests;if(k.totalCost>x)x=k.totalCost}let h=0;return{rows:r.map((k)=>{let T=d2.test(k.folder);if(T)h++;return{...k,conversationTokens:k.totalInputTokens+k.totalCacheReadTokens+k.totalCacheWriteTokens+k.totalOutputTokens,requestShare:i>0?k.totalRequests/i:0,costShare:d>0?k.totalCost/d:0,temporary:T}}),totalRequests:i,failedRequests:u,totalCost:d,unpricedRequests:f,conversationTokens:y,cacheRate:m+v>0?v/(m+v):0,maxRequests:S,maxCost:x,temporaryCount:h}}function Hw(r){let i=0,u=0,d=0;for(let f of r)i+=f.calls,u+=f.totalTokensShare,d+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:u>0?f.totalTokensShare/u:0,costFraction:d>0?f.costShare/d:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Yl(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Fb(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 Fw(r){let i=0,u=0,d=0,f=0,y=0,m=null,v=null,S=[],x=[];for(let h of r){let C=Yl(h);if(C==="failed")i++;else if(C==="aborted")u++;if(d+=h.usage.totalTokens,f+=h.usage.cost.total,Ob(h))y++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)x.push(h.ttft);if(m===null||h.timestamp<m)m=h.timestamp;if(v===null||h.timestamp>v)v=h.timestamp}return S.sort((h,C)=>h-C),x.sort((h,C)=>h-C),{requests:r.length,failed:i,aborted:u,tokens:d,cost:f,unpriced:y,medianDuration:Fb(S,0.5),p95Duration:Fb(S,0.95),medianTtft:Fb(x,0.5),oldest:m,newest:v}}var Bw=180,f2=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,p2=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,m2=/\b[0-9a-f]{12,}\b/gi,h2=/(?<![\w.-])\d+(?:\.\d+)?/g,g2=/^[1-5]\d\d$/;function Gb(r){if(!r?.trim())return"Unknown error";let i=r.replace(/\s+/g," ").trim().replace(f2,"<id>").replace(p2,"<id>").replace(m2,"<hex>").replace(h2,(u)=>g2.test(u)?u:"N");return i.length>Bw?`${i.slice(0,Bw-1)}…`:i}function Gw(r){let i=new Map;for(let u of r){let d=Gb(u.errorMessage),f=i.get(d);if(!f)f={signature:d,count:0,firstSeen:u.timestamp,lastSeen:u.timestamp,latest:u,models:[],byModel:new Map},i.set(d,f);if(f.count++,u.timestamp<f.firstSeen)f.firstSeen=u.timestamp;if(u.timestamp>f.lastSeen)f.lastSeen=u.timestamp,f.latest=u;let y=va(u.model,u.provider),m=f.byModel.get(y);if(m)m.count++;else f.byModel.set(y,{model:u.model,provider:u.provider,count:1})}return[...i.values()].map(({byModel:u,...d})=>({...d,models:[...u.values()].sort((f,y)=>y.count-f.count||f.model.localeCompare(y.model))})).sort((u,d)=>d.count-u.count||d.lastSeen-u.lastSeen)}var De=X(ue(),1),y2=[{value:"model",label:"By model"},{value:"component",label:"By component"}],b2=6,v2=86400000,zd=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],S2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),x2=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function Vw({active:r,range:i}){let u=Ht(["costs",i],({signal:k})=>Hk(i,k),{enabled:r}),d=ua(i),[f,y]=Pd.useState("model"),[m,v]=rn(),S=Pd.useMemo(()=>u.data?C2(u.data,i):null,[u.data,i]),x=Pd.useMemo(()=>S?w2(S):[],[S]),h=(k)=>k.costSeries.length===0,C=De.jsxDEV(Lt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(na,{title:"Costs",description:`What ${d.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),De.jsxDEV(Ve,{query:u,skeleton:De.jsxDEV(Oa,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>S&&De.jsxDEV(L2,{view:S,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV("div",{className:"grid grid-main-side",children:[De.jsxDEV(Ze,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:De.jsxDEV(za,{size:"sm",options:y2,value:f,onChange:y,"aria-label":"Split by"},void 0,!1,void 0,this),stale:u.stale,children:De.jsxDEV(Ve,{query:u,skeleton:De.jsxDEV(Bt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>{if(!S)return null;let k=f==="model"?S.modelSeries:S.componentSeries;return De.jsxDEV("div",{className:"stack",style:{gap:12},children:[De.jsxDEV(wn,{slots:S.buckets.length,tickLabel:(T)=>S2.format(S.buckets[T]),tooltipTitle:(T)=>x2.format(S.buckets[T]),series:k,hidden:m,height:280,format:(T)=>ca(T,Number.isInteger(T)?0:2),formatTooltip:(T)=>ca(T),emptyLabel:"No priced usage in this range",tooltipExtra:(T)=>S.unpricedPerDay[T]>0?De.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[De.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),De.jsxDEV("span",{className:"chart-tooltip-value",children:N(S.unpricedPerDay[T])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),De.jsxDEV(Qa,{items:k.map((T)=>({key:T.key,label:T.label,color:T.color,value:ca(T2(T.values))})),hidden:m,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),De.jsxDEV(Ze,{index:2,title:"Where it went",description:"Estimate by billing component",stale:u.stale,children:De.jsxDEV(Ve,{query:u,skeleton:De.jsxDEV(Bt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>S&&De.jsxDEV(k2,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV(Ze,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:u.stale,flush:!0,children:De.jsxDEV(Ve,{query:u,skeleton:De.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:h,empty:C,children:()=>S&&De.jsxDEV($t,{rows:S.summary.models,rowKey:(k)=>k.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 C2(r,i){let u=r.costSeries,d=Pw(u),f=Om(d.models.map((x)=>({model:x.model,provider:x.provider,totalRequests:x.requests}))),y=new Map(d.models.map((x)=>[x.key,x])),m=_o(i,u.map((x)=>x.timestamp),v2),v=hl(u,{buckets:m,key:(x)=>va(x.model,x.provider),label:(x)=>y.get(x)?.model??x,value:(x)=>x.cost,limit:b2,colors:f}).map((x)=>({...x,values:x.values.map((h)=>h||null)})),S=new Set;for(let x of v){if(x.key==="__other__")continue;if(S.has(x.color))x.color=Ha.find((h)=>!S.has(h))??x.color;S.add(x.color)}return{summary:d,swatches:new Map(v.filter((x)=>x.key!=="__other__").map((x)=>[x.key,x.color])),buckets:m,dailyTotals:Sa(u,m,(x)=>x.cost),unpricedPerDay:Sa(u,m,(x)=>x.unpricedRequests),modelSeries:v,componentSeries:zd.map((x)=>({key:x.key,label:x.label,color:x.color,values:Sa(u,m,(h)=>h[x.key]).map((h)=>h||null)})),maxModelCost:d.models[0]?.cost??0}}function L2({view:r,stale:i}){let{summary:u}=r,d=u.requests-u.unpricedRequests,f=u.topModel;return De.jsxDEV("div",{"data-stale":i,children:De.jsxDEV(la,{min:180,children:[De.jsxDEV(ie,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:_t(u.totalCost,u.unpricedRequests),hint:`${N(u.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),De.jsxDEV(ie,{label:"Average per day",title:"Estimate ÷ days with any usage",value:_t(u.avgDailyCost,u.unpricedRequests),hint:`over ${N(u.activeDays)} active day${u.activeDays===1?"":"s"}`},void 0,!1,void 0,this),De.jsxDEV(ie,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${ca(f.cost)} · ${Fe(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),De.jsxDEV(ie,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:d>0?$w(u.totalCost/d):"–",hint:`${N(d)} priced`},void 0,!1,void 0,this),De.jsxDEV(ie,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:N(u.unpricedRequests),hint:u.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function k2({summary:r}){return De.jsxDEV("div",{className:"stack",style:{gap:14},children:[De.jsxDEV(Wr,{height:10,segments:zd.map((i)=>({key:i.key,label:i.label,value:r[i.key],color:i.color}))},void 0,!1,void 0,this),De.jsxDEV("div",{className:"costs-components",children:[zd.map((i)=>De.jsxDEV("div",{className:"costs-component-row",children:[De.jsxDEV("span",{className:"row",children:[De.jsxDEV(Cn,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),De.jsxDEV("span",{className:"num",children:ca(r[i.key])},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Fe(r[i.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),De.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[De.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num",children:_t(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),De.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&&De.jsxDEV("p",{className:"micro dim",children:[N(r.unpricedRequests)," unpriced subscription request",r.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function w2(r){let i=zd.map((u)=>({key:u.key,header:u.label,align:"right",sort:(d)=>d[u.key],render:(d)=>De.jsxDEV("span",{className:"num",children:ca(d[u.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(u)=>u.model,render:(u)=>De.jsxDEV(_a,{lead:De.jsxDEV(Cn,{color:r.swatches.get(u.key)??ao},void 0,!1,void 0,this),primary:De.jsxDEV("span",{className:"mono",children:u.model},void 0,!1,void 0,this),secondary:u.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.requests,render:(u)=>De.jsxDEV("span",{className:"num",children:N(u.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(u)=>u.cost,render:(u)=>De.jsxDEV(fa,{value:u.cost,max:r.maxModelCost,display:_t(u.cost,u.unpricedRequests),color:r.swatches.get(u.key)??ao},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(u)=>u.share,render:(u)=>De.jsxDEV("span",{className:"num muted",children:u.cost>0?Fe(u.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(u)=>u.cost>0?De.jsxDEV(Wr,{segments:zd.map((d)=>({key:d.key,label:d.label,value:u[d.key],color:d.color}))},void 0,!1,void 0,this):De.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(u)=>u.requests>u.unpricedRequests?u.cost/(u.requests-u.unpricedRequests):-1,render:(u)=>De.jsxDEV("span",{className:"num",children:u.requests>u.unpricedRequests?$w(u.cost/(u.requests-u.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(u)=>u.unpricedRequests,render:(u)=>u.unpricedRequests>0?De.jsxDEV("span",{className:"num tone-warn",children:N(u.unpricedRequests)},void 0,!1,void 0,this):De.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function $w(r){return r>0&&r<0.0001?"<$0.0001":ca(r)}function T2(r){let i=0;for(let u of r)i+=u??0;return i}var Ql=X(ct(),1);var ve=X(ue(),1),Vb=[50,200,1000];function jw({active:r,range:i,onRequestClick:u}){let[d,f]=Ql.useState(0),y=Vb[d],m=Ht(["errors",i,y],({signal:H})=>Fk(i,y,H),{enabled:r}),[v,S]=Ql.useState(null),[x,h]=Ql.useState(null),[C,k]=Ql.useState(""),T=ua(i),L=Ql.useMemo(()=>{let H=(m.data??[]).map((we)=>({row:we,signature:Gb(we.errorMessage)})),F=Gw(m.data??[]),ce=new Map;for(let{row:we}of H){let te=va(we.model,we.provider),me=ce.get(te);if(me)me.count++;else ce.set(te,{model:we.model,provider:we.provider,count:1})}let ye=[...ce.entries()].map(([we,te])=>({key:we,...te})).sort((we,te)=>te.count-we.count||we.model.localeCompare(te.model)),xe=H.reduce((we,{row:te})=>!we||te.timestamp>we.timestamp?te:we,null);return{rows:H,groups:F,models:ye,newest:xe}},[m.data]),M=L.groups.some((H)=>H.signature===v)?v:null,D=L.models.some((H)=>H.key===x)?x:null,U=Ql.useMemo(()=>{let H=C.trim().toLowerCase();return L.rows.filter((F)=>(M===null||F.signature===M)&&(D===null||va(F.row.model,F.row.provider)===D)&&(H===""||F.row.model.toLowerCase().includes(H)||F.row.provider.toLowerCase().includes(H)||F.row.folder.toLowerCase().includes(H)||(F.row.errorMessage??"").toLowerCase().includes(H))).map((F)=>F.row)},[L.rows,M,D,C]),B=m.data?.length??0,V=!m.stale&&B<y,_=d+1<Vb.length?Vb[d+1]:null,pe=m.data!==null&&!V?ve.jsxDEV(ve.Fragment,{children:[ve.jsxDEV("span",{children:["Showing the latest ",N(B)," failures in ",T.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),_!==null&&ve.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:m.refreshing,onClick:()=>f(d+1),children:m.refreshing&&m.stale?"Loading…":`Load latest ${N(_)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,W=L.groups[0]?.count??0,oe=Ql.useMemo(()=>I2(W),[W]),Q=L.models.find((H)=>H.key===D);return ve.jsxDEV("div",{className:"page",children:[ve.jsxDEV(na,{title:"Errors",description:`Failed model requests in ${T.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),ve.jsxDEV(Ve,{query:m,skeleton:ve.jsxDEV(Oa,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>ve.jsxDEV("div",{"data-stale":m.stale,children:ve.jsxDEV(la,{min:170,children:[ve.jsxDEV(ie,{label:"Failures",value:N(B),hint:V?`in ${T.windowLabel}`:`latest ${N(B)} loaded`},void 0,!1,void 0,this),ve.jsxDEV(ie,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:N(L.groups.length),hint:L.groups[0]?`top: ${N(L.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),ve.jsxDEV(ie,{label:"Affected models",value:N(L.models.length),hint:L.models[0]?.model},void 0,!1,void 0,this),ve.jsxDEV(ie,{label:"Last failure",value:L.newest?da(L.newest.timestamp):"–",hint:L.newest?ln(L.newest.timestamp):`none in ${T.windowLabel}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"grid grid-main-side",children:[ve.jsxDEV(Ze,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:m.stale,children:ve.jsxDEV(Ve,{query:m,skeleton:ve.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:(H)=>H.length===0,empty:ve.jsxDEV(Lt,{title:`No failures in ${T.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>ve.jsxDEV($t,{rows:L.groups,rowKey:(H)=>H.signature,columns:oe,onRowClick:(H)=>S(M===H.signature?null:H.signature),selectedKey:M,expanded:(H)=>H.signature===M?ve.jsxDEV(R2,{group:H,onRequestClick:u},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),ve.jsxDEV(Ze,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:m.stale,children:ve.jsxDEV(Ve,{query:m,skeleton:ve.jsxDEV(Oa,{height:180},void 0,!1,void 0,this),isEmpty:(H)=>H.length===0,empty:ve.jsxDEV(Lt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>ve.jsxDEV(Bd,{items:L.models.slice(0,12).map((H)=>({key:H.key,label:ve.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[ve.jsxDEV("span",{className:"mono truncate",children:H.model},void 0,!1,void 0,this),ve.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===D?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(H)=>h(D===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),ve.jsxDEV(Ze,{index:3,title:"Failures",description:m.data===null?"Loading failures…":`${N(U.length)} of ${N(B)} failures, newest first`,actions:ve.jsxDEV(ve.Fragment,{children:[M!==null&&ve.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:M,children:[ve.jsxDEV("span",{className:"mono truncate",children:M},void 0,!1,void 0,this),ve.jsxDEV(eo,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q&&ve.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[ve.jsxDEV("span",{className:"mono truncate",children:Q.model},void 0,!1,void 0,this),ve.jsxDEV(eo,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV(cl,{value:C,onChange:k,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:m.stale,footer:pe,children:ve.jsxDEV(Ve,{query:m,skeleton:ve.jsxDEV(ia,{rows:10},void 0,!1,void 0,this),isEmpty:(H)=>H.length===0,empty:ve.jsxDEV(Lt,{title:`No failures in ${T.windowLabel}`},void 0,!1,void 0,this),children:()=>ve.jsxDEV($t,{rows:U,rowKey:(H)=>H.id??`${H.sessionFile}:${H.entryId}`,onRowClick:(H)=>H.id!==void 0&&u(H.id),columns:M2,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:ve.jsxDEV(Lt,{title:"No failures match",hint:"Clear the search or the selected filters."},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 I2(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(i)=>i.signature,render:(i)=>ve.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(i)=>i.models.length,render:(i)=>ve.jsxDEV(_a,{primary:ve.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?`+${i.models.length-1} more`:i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(i)=>i.lastSeen,render:(i)=>ve.jsxDEV("span",{className:"muted",title:ln(i.lastSeen),children:da(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(i)=>i.count,render:(i)=>ve.jsxDEV(fa,{value:i.count,max:r,display:N(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function R2({group:r,onRequestClick:i}){let u=r.latest.id;return ve.jsxDEV("div",{className:"errors-detail",children:[ve.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),ve.jsxDEV("div",{className:"errors-detail-meta",children:[ve.jsxDEV("span",{className:"muted",children:[N(r.count)," failures · first ",ln(r.firstSeen)," · last"," ",ln(r.lastSeen)]},void 0,!0,void 0,this),u!==void 0&&ve.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(u),children:["Open latest ",ve.jsxDEV(hd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ve.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((d)=>ve.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",ve.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",ve.jsxDEV("span",{className:"num",children:Ae(d.count)},void 0,!1,void 0,this)]},va(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var M2=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>ve.jsxDEV("span",{className:"muted",title:ln(r.timestamp),children:da(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>ve.jsxDEV(_a,{primary:ve.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:"Error",sort:(r)=>r.errorMessage??"",render:(r)=>ve.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>ve.jsxDEV("span",{className:"mono muted",title:r.folder,children:fl(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>ve.jsxDEV("span",{className:"num",children:N(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>ve.jsxDEV("span",{className:"num",children:Zr(r,4)},void 0,!1,void 0,this)}];var Ut=X(ct(),1);var Y=X(ue(),1),A2=1000,Nm=50,jb=0.5,_d="*";function Yw({active:r,range:i}){let[u,d]=Ut.useState(!1),f=Ht(["frustration",i],({signal:x})=>Xk(i,x),{enabled:r,pollMs:u?A2:void 0}),y=ua(i),m=f.data?.job.state;Ut.useEffect(()=>{if(m!==void 0)d(m==="running")},[m]);let{refetch:v}=f,S=Ut.useCallback(()=>{d(!0),v()},[v]);return Y.jsxDEV("div",{className:"page",children:[Y.jsxDEV(na,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${y.windowLabel}.`},void 0,!1,void 0,this),Y.jsxDEV(Ve,{query:f,skeleton:Y.jsxDEV(Bt,{height:96},void 0,!1,void 0,this),children:(x)=>Y.jsxDEV("div",{"data-stale":f.stale,children:Y.jsxDEV(D2,{overall:x.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Ve,{query:f,skeleton:Y.jsxDEV(Bt,{height:120},void 0,!1,void 0,this),children:(x)=>Y.jsxDEV(E2,{active:r,range:i,judgeAvailable:x.judgeAvailable,job:x.job,onRunStarted:S,onRunChanged:v},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Ve,{query:f,skeleton:Y.jsxDEV(Ze,{index:2,title:"Frustration by model version",children:[Y.jsxDEV(Bt,{height:340},void 0,!1,void 0,this),Y.jsxDEV(ia,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>Y.jsxDEV(F2,{models:x.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Tn(r,i){return i>0?Fe(r/i):"–"}function $b(r){return r instanceof Error?r.message:String(r)}function Qw(r){let i=Math.max(0,Math.floor(r/1000)),u=Math.floor(i/60),d=i%60;return u>0?`${u}m ${String(d).padStart(2,"0")}s`:`${d}s`}function D2({overall:r}){let i=r.messages-r.judged;return Y.jsxDEV(la,{min:170,children:[Y.jsxDEV(ie,{label:"User messages",title:"User messages with prose in range",value:N(r.messages)},void 0,!1,void 0,this),Y.jsxDEV(ie,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:Tn(r.judged,r.messages),hint:`${N(r.judged)} judged · ${N(i)} regex`},void 0,!1,void 0,this),Y.jsxDEV(ie,{label:"Annoyed",title:"Messages annoyed at any target",value:Tn(r.annoyed,r.messages),hint:`${N(r.annoyed)} messages`},void 0,!1,void 0,this),Y.jsxDEV(ie,{label:"At assistant",title:"Messages annoyed at the assistant",value:Tn(r.atAssistant,r.messages),hint:`${N(r.atAssistant)} messages`},void 0,!1,void 0,this),Y.jsxDEV(ie,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:Tn(r.angry,r.messages),hint:`${N(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Xw="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function E2({active:r,range:i,judgeAvailable:u,job:d,onRunStarted:f,onRunChanged:y}){let[m,v]=Ut.useState(!1),[S,x]=Ut.useState({status:"loading"}),[h,C]=Ut.useState(!1),[k,T]=Ut.useState(null),[L,M]=Ut.useState(!1),[D,U]=Ut.useState(null),B=Ut.useRef(null),V=d.state==="running",_=Ut.useCallback(()=>{B.current?.abort(),B.current=null,v(!1)},[]);Ut.useEffect(()=>{if(!r)_()},[r,_]),Ut.useEffect(()=>()=>B.current?.abort(),[]);let pe=()=>{B.current?.abort();let F=new AbortController;B.current=F;let ce=i;x({status:"loading"}),T(null),U(null),v(!0),Yk(ce,F.signal).then((ye)=>{if(!F.signal.aborted)x({status:"ready",estimate:ye,range:ce})},(ye)=>{if(!F.signal.aborted)x({status:"error",message:$b(ye)})})},W=async()=>{if(S.status!=="ready")return;C(!0),T(null);try{await Qk(S.range),_(),f()}catch(F){T($b(F))}finally{C(!1)}},oe=async()=>{M(!0),U(null);try{await Zk(),y()}catch(F){U($b(F))}finally{M(!1)}},Q=S.status==="ready"?S.estimate:null,H=S.status==="loading"?{label:"Proceed",onClick:W,disabled:!0}:Q?.available?{label:h?"Starting…":"Proceed",onClick:W,disabled:h||Q.messages===0}:void 0;return Y.jsxDEV(Ze,{index:1,title:Y.jsxDEV(Y.Fragment,{children:["Judge classification ",Y.jsxDEV(O2,{job:d,judgeAvailable:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:Y.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:pe,disabled:!u||V,title:!u?Xw:V?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[Y.jsxDEV(ll,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[Y.jsxDEV("div",{className:"stack frustration-judge",children:[V?Y.jsxDEV(N2,{job:d,cancelling:L,onCancel:oe},void 0,!1,void 0,this):Y.jsxDEV(B2,{job:d},void 0,!1,void 0,this),!u&&Y.jsxDEV("p",{className:"micro dim",children:Xw},void 0,!1,void 0,this),D&&Y.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:D},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(fw,{open:m,title:"Classify with judge",onClose:_,primaryAction:H,children:[Y.jsxDEV(q2,{estimate:S},void 0,!1,void 0,this),k&&Y.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function O2({job:r,judgeAvailable:i}){switch(r.state){case"running":return Y.jsxDEV(Nt,{tone:"ok",children:[Y.jsxDEV(ul,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return Y.jsxDEV(Nt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return Y.jsxDEV(Nt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return Y.jsxDEV(Nt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return Y.jsxDEV(Nt,{children:i?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function q2({estimate:r}){if(r.status==="loading")return Y.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return Y.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let i=r.estimate;if(!i.available)return Y.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return Y.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV("div",{className:"frustration-quote",children:[Y.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",ca(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Ho,{items:[{key:"messages",label:"Unjudged unique messages",value:N(i.messages)},{key:"chars",label:"Prose characters",value:N(i.chars)},{key:"tokens",label:"Estimated input tokens",value:N(i.inputTokens)},{key:"judge",label:"Judge",value:i.judge}]},void 0,!1,void 0,this),Y.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function N2({job:r,cancelling:i,onCancel:u}){let d=r.done+r.failed,f=r.total>0?Math.min(1,d/r.total):0;return Y.jsxDEV("div",{className:"stack frustration-progress",children:[Y.jsxDEV("div",{className:"row frustration-progress-head",children:[Y.jsxDEV("span",{className:"num",children:[N(r.done),"/",N(r.total)," judged"]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"num dim",children:Fe(f)},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Y.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:u,disabled:i,children:i?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":d,children:Y.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[Y.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[N(r.failed)," failed"]},void 0,!0,void 0,this),Y.jsxDEV("span",{children:["cost so far ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&Y.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&Y.jsxDEV("span",{children:["elapsed ",Qw(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&Y.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&&Y.jsxDEV("span",{className:"num",children:[N(r.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function B2({job:r}){let i=`${N(r.done)}/${N(r.total)} messages`,u=r.failed>0?`, ${N(r.failed)} failed`:"",d=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${Qw(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return Y.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return Y.jsxDEV("p",{className:"muted",children:["Last run judged ",i,u,d,f," for ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return Y.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",i,u,"; spent ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return Y.jsxDEV("p",{className:"muted",children:["Last run failed after ",i,u,": ",Y.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function Fd(r){return`${r.modelClass}/${r.family??"unclassified"}`}function Ci(r){return r.messages>0&&r.judged/r.messages<jb}function U2(r){let i=2166136261;for(let u=0;u<r.length;u++)i^=r.charCodeAt(u),i=Math.imul(i,16777619);return i>>>0}function P2(r){let i=[...new Set(r.map(Fd))].sort(),u=new Set,d=new Map;for(let f of i){let y=U2(f)%Ha.length;for(let m=0;m<Ha.length&&u.has(y);m++)y=(y+1)%Ha.length;u.add(y),d.set(f,Ha[y])}return d}function z2(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 _2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function H2(r,i){if(i==="angry")return r.angry;if(i==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Hd(r,i){return i>0?r/i*100:0}function F2({models:r,stale:i}){let[u,d]=Ut.useState(null),[f,y]=rn(),[m,v]=Ut.useState(!1),[S,x]=Ut.useState(!1),h=Ut.useMemo(()=>P2(r),[r]),C=Ut.useMemo(()=>{let W=new Map;for(let oe of r)W.set(oe.modelClass,(W.get(oe.modelClass)??0)+oe.messages);return W},[r]),k=Ut.useMemo(()=>{let W=null,oe=-1;for(let[Q,H]of C)if(H>oe)W=Q,oe=H;return W??_d},[C]),T=u!==null&&(u===_d||C.has(u))?u:k,L=Ut.useMemo(()=>[{value:_d,label:"All",title:"Every model class"},...[...C].map(([W,oe])=>({value:W,label:W,title:`${N(oe)} messages`}))],[C]),M=Ut.useMemo(()=>T===_d?r:r.filter((W)=>W.modelClass===T),[r,T]),D=Ut.useMemo(()=>{let W=new Map;for(let oe of M){let Q=Fd(oe),H=W.get(Q);if(H){H.messages+=oe.messages;continue}let F=oe.family??"unclassified";W.set(Q,{key:Q,label:T===_d?`${oe.modelClass} · ${F}`:F,messages:oe.messages})}return[...W.values()]},[M,T]),U=Ut.useMemo(()=>M.filter((W)=>!f.has(Fd(W))),[M,f]),B=U.filter((W)=>W.messages<Nm).length,V=U.filter(Ci).length,_=Ut.useMemo(()=>U.filter((W)=>(m||W.messages>=Nm)&&!(S&&Ci(W))),[U,m,S]);if(r.length===0)return Y.jsxDEV(Ze,{index:2,title:"Frustration by model version",stale:i,children:Y.jsxDEV(Lt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let pe=_.some(Ci);return Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV(Ze,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:i,children:Y.jsxDEV("div",{className:"stack frustration-chart-body",children:[Y.jsxDEV("div",{className:"frustration-classes",children:Y.jsxDEV(za,{size:"sm","aria-label":"Model class",options:L,value:T,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV("div",{className:"row frustration-filters",children:[Y.jsxDEV(Qa,{items:D.map((W)=>({key:W.key,label:W.label,color:h.get(W.key)??Ha[0],value:N(W.messages)})),hidden:f,onToggle:y},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Y.jsxDEV("label",{className:"check",title:`Models with fewer than ${Nm} messages have noisy rates`,children:[Y.jsxDEV("input",{type:"checkbox",checked:m,onChange:(W)=>v(W.target.checked)},void 0,!1,void 0,this),"Include < ",Nm," messages",B>0?` (${B})`:""]},void 0,!0,void 0,this),Y.jsxDEV("label",{className:"check",title:`Hide models with under ${jb*100}% judged messages (rates from regex signals)`,children:[Y.jsxDEV("input",{type:"checkbox",checked:S,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),Y.jsxDEV(G2,{hasRegexRows:pe},void 0,!1,void 0,this),Y.jsxDEV(V2,{rows:_,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV($2,{rows:_,familyColors:h,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function G2({hasRegexRows:r}){return Y.jsxDEV("div",{className:"legend frustration-key",children:[Y.jsxDEV("span",{className:"legend-item",children:[Y.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),Y.jsxDEV("span",{className:"legend-item",children:[Y.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"legend-item",children:[Y.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),Y.jsxDEV("span",{className:"legend-item",children:[Y.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${jb*100}% of these messages are judged; their rates come from regex signals`,children:[Y.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",r?" (run the judge)":""]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function V2({rows:r,familyColors:i}){let u=Ut.useMemo(()=>{let d=new Map;r.forEach((y,m)=>{let v=Fd(y),S=Ci(y),x=`${v}|${S?"regex":"judged"}`,h=d.get(x);if(h)h.slots.push(m);else d.set(x,{family:v,regex:S,slots:[m]})});let f=[];for(let y of _2)for(let[m,v]of d){let S=r.map(()=>null);for(let x of v.slots)S[x]=Hd(H2(r[x],y.key),r[x].messages);f.push({key:`${y.key}|${m}`,label:y.label,color:z2(i.get(v.family)??Ha[0],y.key),values:S,pattern:v.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((y)=>Hd(y.atAssistant,y.messages)),kind:"line",tooltip:!1}),f},[r,i]);if(r.length===0)return Y.jsxDEV("div",{className:"frustration-chart-empty",children:Y.jsxDEV(Lt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Y.jsxDEV(wn,{slots:r.length,tickLabel:(d)=>r[d].label,series:u,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let f=r[d];return Y.jsxDEV("div",{className:"frustration-tooltip-extra",children:[Y.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Y.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"chart-tooltip-value",children:Tn(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV("div",{className:"micro dim",children:[N(f.messages)," messages · judged ",N(f.judged)," (",Tn(f.judged,f.messages),")",Ci(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function $2({rows:r,familyColors:i,stale:u}){let d=Ut.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>Y.jsxDEV("span",{className:"row",title:f.key,children:[Y.jsxDEV("span",{className:"swatch",style:{background:i.get(Fd(f))??Ha[0]}},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(f)=>Y.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(f)=>f.messages,render:(f)=>Y.jsxDEV("span",{className:"num",children:N(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>Ci(f)?Y.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[Y.jsxDEV(Nt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"num dim",children:Tn(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Y.jsxDEV("span",{className:"num",children:Tn(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Hd(f.annoyed,f.messages),render:(f)=>Y.jsxDEV("span",{className:"num",title:`${N(f.annoyed)} messages`,children:Tn(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Hd(f.atAssistant,f.messages),render:(f)=>Y.jsxDEV("span",{className:"num",title:`${N(f.atAssistant)} messages`,children:Tn(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Hd(f.angry,f.messages),render:(f)=>Y.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${N(f.angry)} messages`,children:Tn(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return Y.jsxDEV(Ze,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:u,children:Y.jsxDEV($t,{rows:r,rowKey:(f)=>f.key,columns:d,dense:!0,empty:Y.jsxDEV(Lt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Gd=X(ct(),1);var Dt=X(ue(),1),j2=86400000,X2={snapcompact:"Snapcompact"},Y2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function Zw({active:r,range:i}){let[u,d]=Gd.useState(null),f=Ht(["gain",i,u],({signal:T})=>Kk(i,u,T),{enabled:r}),y=ua(i),m=f.data,v=Gd.useMemo(()=>{let T=(m?.timeSeries??[]).map((B)=>({...B,timestamp:Date.parse(`${B.date}T00:00:00Z`)})),L=_o(i,T.map((B)=>B.timestamp),j2),M=Sa(T,L,(B)=>B.snapcompact),D=0,U=M.map((B)=>D+=B);return{buckets:L,daily:M,cumulative:U}},[m,i]),S=Gd.useMemo(()=>{if(!m)return[];let T=m.overall.savedTokens;return Object.keys(m.bySource).map((L)=>({...m.bySource[L],source:L,share:T>0?m.bySource[L].savedTokens/T:0}))},[m]),x=m?.projects??[],h=u!==null&&!x.includes(u)?[u,...x]:x,C=u?` for ${u}`:"",k=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:v.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:v.cumulative,kind:"line",axis:"right"}];return Dt.jsxDEV("div",{className:"page",children:[Dt.jsxDEV(na,{title:"Gain",description:`Tokens snapcompact kept out of context${C} in ${y.windowLabel}.`,actions:h.length>0&&Dt.jsxDEV("select",{className:"input","aria-label":"Project",value:u??"",onChange:(T)=>d(T.target.value||null),style:{maxWidth:320},children:[Dt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((T)=>Dt.jsxDEV("option",{value:T,children:T},T,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Dt.jsxDEV(Ve,{query:f,skeleton:Dt.jsxDEV(Bt,{height:96},void 0,!1,void 0,this),isEmpty:(T)=>T.overall.hits===0&&T.timeSeries.length===0,empty:Dt.jsxDEV(Ze,{children:Dt.jsxDEV(Lt,{title:`No savings recorded${C} in ${y.windowLabel}`,hint:i==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:T})=>Dt.jsxDEV(Dt.Fragment,{children:[Dt.jsxDEV("div",{"data-stale":f.stale,children:Dt.jsxDEV(la,{min:180,children:[Dt.jsxDEV(ie,{label:"Saved tokens",value:Ae(T.savedTokens),hint:N(T.savedTokens),spark:v.daily},void 0,!1,void 0,this),Dt.jsxDEV(ie,{label:"Saved bytes",value:qb(T.savedBytes)},void 0,!1,void 0,this),Dt.jsxDEV(ie,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:T.reductionPercent!==null?Fe(T.reductionPercent):"–",hint:T.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),Dt.jsxDEV(ie,{label:"Hits",value:N(T.hits)},void 0,!1,void 0,this),Dt.jsxDEV(ie,{label:"Saved per hit",value:T.hits>0?Ae(T.savedTokens/T.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Dt.jsxDEV(Ze,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:Dt.jsxDEV(Qa,{items:k.map((L)=>({key:L.key,label:L.label,color:L.color}))},void 0,!1,void 0,this),stale:f.stale,children:Dt.jsxDEV(wn,{slots:v.buckets.length,tickLabel:(L)=>Y2.format(v.buckets[L]),series:k,height:260,formatTooltip:N,formatRight:Ae},void 0,!1,void 0,this)},void 0,!1,void 0,this),Dt.jsxDEV(Ze,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:Dt.jsxDEV($t,{rows:S,rowKey:(L)=>L.source,columns:Q2},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 Q2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>Dt.jsxDEV("span",{className:"cell-primary",children:X2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>Dt.jsxDEV("span",{title:N(r.savedTokens),children:Dt.jsxDEV(fa,{value:r.share,max:1,display:Ae(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(r)=>r.share,render:(r)=>Dt.jsxDEV("span",{className:"num muted",children:Fe(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>Dt.jsxDEV("span",{className:"num",children:qb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>Dt.jsxDEV("span",{className:"num",children:N(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>Dt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Fe(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var Li=X(ct(),1);var ke=X(ue(),1),Z2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],W2=6;function Kw({active:r,range:i}){let u=Ht(["models",i],({signal:M})=>_k(i,M),{enabled:r}),d=ua(i),[f,y]=Li.useState("share"),[m,v]=rn(),[S,x]=Li.useState(null),h=Li.useMemo(()=>u.data?K2(u.data,i):null,[u.data,i]),C=aD(d.bucketMs),k=Li.useMemo(()=>h?eD(h,S,C):[],[h,S,C]),T=(M)=>M.byModel.length===0,L=ke.jsxDEV(Lt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return ke.jsxDEV("div",{className:"page",children:[ke.jsxDEV(na,{title:"Models",description:`Which models did the work in ${d.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),ke.jsxDEV(Ve,{query:u,skeleton:ke.jsxDEV(Oa,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:T,empty:L,children:()=>h&&ke.jsxDEV("div",{"data-stale":u.stale,children:ke.jsxDEV(la,{min:200,children:[ke.jsxDEV(ie,{label:"Models used",value:N(h.models.length),hint:`across ${N(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),ke.jsxDEV(ie,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${Fe(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),ke.jsxDEV(ie,{label:"Requests",value:N(h.totalRequests),hint:`${N(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),ke.jsxDEV(ie,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${N(h.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ke.jsxDEV(Ze,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${C}`:`Requests per ${C}, stacked by model`,actions:ke.jsxDEV(za,{size:"sm",options:Z2,value:f,onChange:y,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:u.stale,children:ke.jsxDEV(Ve,{query:u,skeleton:ke.jsxDEV(Bt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:L,children:()=>h&&ke.jsxDEV("div",{className:"stack",style:{gap:12},children:[ke.jsxDEV(Xl,{buckets:h.buckets,bucketMs:d.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:m,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(M)=>Fe(M,0):Ae,formatTooltip:f==="share"?(M)=>Fe(M):N,showTotal:f==="requests"},void 0,!1,void 0,this),ke.jsxDEV(Qa,{items:h.countSeries.map((M)=>({key:M.key,label:M.label,color:M.color,value:Fe(Ww(M.values)/Math.max(1,Ww(h.requestTotals)))})),hidden:m,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),ke.jsxDEV(Ze,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:u.stale,flush:!0,children:ke.jsxDEV(Ve,{query:u,skeleton:ke.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:L,children:()=>h&&ke.jsxDEV($t,{rows:h.models,rowKey:(M)=>va(M.model,M.provider),columns:k,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(M)=>{let D=va(M.model,M.provider);x((U)=>U===D?null:D)},selectedKey:S,expanded:(M)=>{let D=va(M.model,M.provider);return D===S?ke.jsxDEV(tD,{model:M,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:d.bucketMs,bucketWord:C},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function K2(r,i){let u=r.byModel,d=Om(u),f=J2(u),y=_o(i,r.modelSeries.map((D)=>D.timestamp)),m=Sa(r.modelSeries,y,(D)=>D.requests),v={buckets:y,key:(D)=>va(D.model,D.provider),label:(D)=>f.get(D)??D,value:(D)=>D.requests,colors:d},S=hl(r.modelSeries,{...v,limit:W2}).map((D)=>({...D,values:D.values.map((U)=>U||null)})),x=S.map((D)=>({...D,values:D.values.map((U,B)=>U===null?null:U/m[B])})),h=new Map(hl(r.modelSeries,v).map((D)=>[D.key,D.values])),C,k=0,T=0,L=0,M=0;for(let D of u){if(!C||D.totalRequests>C.totalRequests)C=D;k+=D.totalRequests,T+=D.failedRequests,L+=D.totalCost,M+=D.unpricedRequests}return{models:u,top:C,swatches:new Map(S.filter((D)=>D.key!=="__other__").map((D)=>[D.key,D.color])),labels:f,providerCount:new Set(u.map((D)=>D.provider)).size,totalRequests:k,failedRequests:T,totalCost:L,unpricedRequests:M,maxRequests:C?.totalRequests??0,buckets:y,requestTotals:m,countSeries:S,shareSeries:x,trends:h,performance:zw(r.modelPerformanceSeries)}}function J2(r){let i=new Map;for(let u of r)i.set(u.model,(i.get(u.model)??0)+1);return new Map(r.map((u)=>[va(u.model,u.provider),(i.get(u.model)??0)>1?`${u.model} · ${u.provider}`:u.model]))}function eD(r,i,u){return[{key:"expand",header:"",width:28,render:(d)=>ke.jsxDEV("span",{className:"models-chevron","data-open":va(d.model,d.provider)===i,children:ke.jsxDEV(xn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(d)=>d.model,render:(d)=>ke.jsxDEV(_a,{lead:ke.jsxDEV(Cn,{color:r.swatches.get(va(d.model,d.provider))??ao},void 0,!1,void 0,this),primary:ke.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(d)=>d.totalRequests,render:(d)=>ke.jsxDEV(fa,{value:d.totalRequests,max:r.maxRequests,display:N(d.totalRequests),color:r.swatches.get(va(d.model,d.provider))??ao},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(d)=>d.totalCost,render:(d)=>ke.jsxDEV("span",{className:"num",children:_t(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(d)=>Kr(d),render:(d)=>{let f=Kr(d);return ke.jsxDEV("span",{className:"num",title:N(f),children:Ae(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(d)=>d.cacheRate,render:(d)=>ke.jsxDEV("span",{className:"num",children:Fe(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?ke.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):ke.jsxDEV("span",{title:`${N(d.failedRequests)} failed`,children:ke.jsxDEV(Nt,{tone:il(d.errorRate),mono:!0,children:to(d.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(d)=>d.avgTokensPerSecond??-1,render:(d)=>ke.jsxDEV("span",{className:"num",children:dl(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>ke.jsxDEV("span",{className:"num",children:Rt(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${u}`,width:112,render:(d)=>{let f=va(d.model,d.provider),y=r.trends.get(f);return y?ke.jsxDEV(yi,{values:y.map((m)=>m??0),color:r.swatches.get(f)??ao,width:96,height:22},void 0,!1,void 0,this):ke.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function tD({model:r,color:i,points:u,bucketMs:d,bucketWord:f}){let[y,m]=rn(),v=[{key:"tps",label:"Tokens/s",color:i,kind:u.length>1?"line":"bars",values:u.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:ao,kind:u.length>1?"line":"bars",axis:"right",dashed:!0,values:u.map((S)=>S.avgTtftSeconds)}];return ke.jsxDEV("div",{className:"models-detail",children:[ke.jsxDEV("div",{className:"models-detail-facts",children:[ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),ke.jsxDEV(Ho,{items:[{key:"err",label:"Error rate",value:ke.jsxDEV("span",{className:`tone-${il(r.errorRate)}`,children:[to(r.errorRate)," ",ke.jsxDEV("span",{className:"dim",children:["(",N(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:Fe(r.cacheRate)},{key:"savings",label:"Cache savings",value:ke.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Fe(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:N(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),ke.jsxDEV(Ho,{items:[{key:"dur",label:"Avg duration",value:Rt(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:Rt(r.avgTtft)},{key:"tps",label:"Tokens/s",value:dl(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{children:[ke.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),ke.jsxDEV(Ho,{items:[{key:"in",label:"Uncached input",value:Ae(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Ae(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Ae(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Ae(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"micro dim",children:["First seen ",da(r.firstTimestamp)," · last seen"," ",da(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ke.jsxDEV("div",{className:"models-detail-chart",children:[ke.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[ke.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),ke.jsxDEV(Qa,{items:v.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:y,onToggle:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.length===0?ke.jsxDEV(Lt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):ke.jsxDEV(Xl,{buckets:u.map((S)=>S.timestamp),bucketMs:d,series:v,hidden:y,stacked:!1,height:240,format:Ae,formatTooltip:(S)=>`${dl(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>ke.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ke.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),ke.jsxDEV("span",{className:"chart-tooltip-value",children:N(u[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function aD(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Ww(r){let i=0;for(let u of r)i+=u??0;return i}var Bm=X(ct(),1);var Re=X(ue(),1),oD=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Jw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},eT={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},tT=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function aT({active:r,range:i,onRequestClick:u}){let d=Ht(["overview",i],({signal:h})=>zk(i,h),{enabled:r}),f=Ht(["recent-requests"],({signal:h})=>ym(12,h),{enabled:r}),[y,m]=Bm.useState("requests"),v=ua(i),S=Bm.useMemo(()=>{let h=d.data?.timeSeries??[],C=_o(i,h.map((k)=>k.timestamp));return{buckets:C,requests:Sa(h,C,(k)=>k.requests-k.errors),errors:Sa(h,C,(k)=>k.errors),tokens:Sa(h,C,(k)=>k.tokens),cost:Sa(h,C,(k)=>k.cost),all:Sa(h,C,(k)=>k.requests)}},[d.data,i]),x=y==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:y==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:S.cost}];return Re.jsxDEV("div",{className:"page",children:[Re.jsxDEV(na,{title:"Overview",description:`Everything omp did across your sessions in ${v.windowLabel}.`},void 0,!1,void 0,this),Re.jsxDEV(Ve,{query:d,skeleton:Re.jsxDEV(Bt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Re.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[Re.jsxDEV(la,{min:190,children:[Re.jsxDEV(ie,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${N(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Re.jsxDEV(ie,{label:"Requests",value:N(h.totalRequests),hint:`${N(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Re.jsxDEV(ie,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Ae(Kr(h)),hint:`${Ae(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Re.jsxDEV(ie,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:Fe(h.cacheRate),hint:`${Fe(h.cacheSavings)} saved`},void 0,!1,void 0,this),Re.jsxDEV(ie,{label:"Error rate",value:to(h.errorRate),hint:`${N(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV(la,{min:140,children:[Re.jsxDEV(ie,{size:"sm",label:"Uncached input",value:Ae(h.totalInputTokens)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Cache read",value:Ae(h.totalCacheReadTokens)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Cache write",value:Ae(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Output",value:Ae(h.totalOutputTokens)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Premium requests",value:N(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Tokens/s",value:dl(h.avgTokensPerSecond)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Avg latency",value:Rt(h.avgDuration)},void 0,!1,void 0,this),Re.jsxDEV(ie,{size:"sm",label:"Avg TTFT",value:Rt(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Re.jsxDEV("div",{className:"grid grid-main-side",children:[Re.jsxDEV(Ze,{index:1,title:"Activity",description:`Per ${v.bucketMs<3600000?"5 minutes":v.bucketMs<86400000?"hour":"day"}`,actions:Re.jsxDEV(za,{size:"sm",options:oD,value:y,onChange:m},void 0,!1,void 0,this),stale:d.stale,children:Re.jsxDEV(Ve,{query:d,skeleton:Re.jsxDEV(Bt,{height:260},void 0,!1,void 0,this),children:()=>Re.jsxDEV(Xl,{buckets:S.buckets,bucketMs:v.bucketMs,series:x,height:260,format:y==="cost"?(h)=>_t(h,0):Ae},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Re.jsxDEV(Ze,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:d.stale,children:Re.jsxDEV(Ve,{query:d,skeleton:Re.jsxDEV(Bt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:C})=>{let k={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},T=Kr(h),L=Uw(C);return Re.jsxDEV("div",{className:"stack",style:{gap:18},children:[Re.jsxDEV("div",{className:"stack",style:{gap:10},children:[Re.jsxDEV(Wr,{segments:tT.map((M)=>({key:M.key,label:M.label,value:k[M.key],color:M.color}))},void 0,!1,void 0,this),Re.jsxDEV(Qa,{items:tT.map((M)=>({key:M.key,label:M.label,color:M.color,value:T>0?Fe(k[M.key]/T,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV("div",{className:"stack",style:{gap:10},children:[Re.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Re.jsxDEV(Wr,{segments:L.segments.map((M)=>({key:M.agentType,label:Jw[M.agentType],value:M.tokens,color:eT[M.agentType]}))},void 0,!1,void 0,this),L.segments.map((M)=>Re.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Re.jsxDEV("span",{className:"row",children:[Re.jsxDEV("span",{className:"swatch",style:{background:eT[M.agentType]}},void 0,!1,void 0,this),Jw[M.agentType],Re.jsxDEV("span",{className:"dim num",children:[N(M.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV("span",{className:"row",children:[Re.jsxDEV("span",{className:"dim num",children:Ae(M.tokens)},void 0,!1,void 0,this),Re.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Fe(M.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},M.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Re.jsxDEV(Ze,{index:3,title:Re.jsxDEV(Re.Fragment,{children:[Re.jsxDEV(ul,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:Re.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:["All requests ",Re.jsxDEV(md,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Re.jsxDEV(Ve,{query:f,skeleton:Re.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),children:(h)=>Re.jsxDEV($t,{rows:h,rowKey:(C)=>C.id??`${C.sessionFile}:${C.entryId}`,onRowClick:(C)=>C.id!==void 0&&u(C.id),columns:nD,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 nD=[{key:"model",header:"Model",render:(r)=>Re.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Re.jsxDEV("span",{className:"muted",children:da(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Re.jsxDEV("span",{className:"num",children:N(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Re.jsxDEV("span",{className:"num",children:Zr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Re.jsxDEV("span",{className:"num",children:Rt(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Re.jsxDEV(Nt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Re.jsxDEV(Nt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var In=X(ct(),1);var $e=X(ue(),1),lD=100,oT=8;function nT({active:r,range:i}){let u=Ht(["projects",i],({signal:M})=>Wk(i,M),{enabled:r}),[d,f]=In.useState(""),[y,m]=In.useState(!0),v=In.useDeferredValue(d.trim().toLowerCase()),S=ua(i),x=In.useMemo(()=>_w(u.data??[]),[u.data]),h=In.useMemo(()=>y?x.rows.filter((M)=>!M.temporary):x.rows,[x,y]),C=In.useMemo(()=>v?h.filter((M)=>M.folder.toLowerCase().includes(v)):h,[h,v]),k=In.useMemo(()=>({cost:[...h].sort((M,D)=>D.totalCost-M.totalCost).slice(0,oT),requests:[...h].sort((M,D)=>D.totalRequests-M.totalRequests).slice(0,oT)}),[h]),T=$e.jsxDEV(Lt,{title:x.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),L=In.useMemo(()=>rD(x.maxRequests,x.maxCost),[x]);return $e.jsxDEV("div",{className:"page",children:[$e.jsxDEV(na,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),$e.jsxDEV(Ve,{query:u,skeleton:$e.jsxDEV(Bt,{height:96},void 0,!1,void 0,this),children:()=>$e.jsxDEV("div",{"data-stale":u.stale,children:$e.jsxDEV(la,{min:180,children:[$e.jsxDEV(ie,{label:"Folders",value:N(x.rows.length),hint:x.temporaryCount>0?`${N(x.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),$e.jsxDEV(ie,{label:"Requests",value:N(x.totalRequests),hint:`${N(x.failedRequests)} failed`},void 0,!1,void 0,this),$e.jsxDEV(ie,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(x.totalCost,x.unpricedRequests),hint:x.unpricedRequests>0?`${N(x.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),$e.jsxDEV(ie,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Ae(x.conversationTokens)},void 0,!1,void 0,this),$e.jsxDEV(ie,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",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),$e.jsxDEV("div",{className:"grid grid-2",children:[$e.jsxDEV(Ze,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:u.stale,children:$e.jsxDEV(Ve,{query:u,skeleton:$e.jsxDEV(Bt,{height:236},void 0,!1,void 0,this),isEmpty:()=>k.cost.length===0,empty:T,children:()=>$e.jsxDEV(Bd,{items:k.cost.map((M)=>({key:M.folder,label:$e.jsxDEV("span",{className:"mono",children:fl(M.folder)},void 0,!1,void 0,this),value:M.totalCost,display:`${_t(M.totalCost,M.unpricedRequests)} · ${Fe(M.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),$e.jsxDEV(Ze,{index:2,title:"Top by requests",description:"Share of all requests",stale:u.stale,children:$e.jsxDEV(Ve,{query:u,skeleton:$e.jsxDEV(Bt,{height:236},void 0,!1,void 0,this),isEmpty:()=>k.requests.length===0,empty:T,children:()=>$e.jsxDEV(Bd,{items:k.requests.map((M)=>({key:M.folder,label:$e.jsxDEV("span",{className:"mono",children:fl(M.folder)},void 0,!1,void 0,this),value:M.totalRequests,display:`${N(M.totalRequests)} · ${Fe(M.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),$e.jsxDEV(Ze,{index:3,title:"Folders",description:u.data?C.length===x.rows.length?`${N(x.rows.length)} folders`:`${N(C.length)} of ${N(x.rows.length)} folders`:void 0,actions:$e.jsxDEV($e.Fragment,{children:[x.temporaryCount>0&&$e.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[$e.jsxDEV("input",{type:"checkbox",checked:y,onChange:(M)=>m(M.target.checked)},void 0,!1,void 0,this),"Hide temporary (",N(x.temporaryCount),")"]},void 0,!0,void 0,this),$e.jsxDEV(cl,{value:d,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:u.stale,children:$e.jsxDEV(Ve,{query:u,skeleton:$e.jsxDEV(ia,{rows:10},void 0,!1,void 0,this),children:()=>$e.jsxDEV($t,{rows:C,rowKey:(M)=>M.folder,columns:L,initialSort:{key:"cost",dir:"desc"},limit:lD,dense:!0,empty:$e.jsxDEV(Lt,{title:x.rows.length===0?"No project folders in this range":"No folders match",hint:x.rows.length===0?"Try a longer range.":y&&x.temporaryCount>0?"Temporary folders are 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 rD(r,i){return[{key:"folder",header:"Folder",sort:(u)=>u.folder,render:(u)=>$e.jsxDEV("span",{className:"row projects-folder",title:u.folder||"(root)",children:[$e.jsxDEV("span",{className:"mono truncate",children:fl(u.folder)},void 0,!1,void 0,this),u.temporary&&$e.jsxDEV(Nt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.totalRequests,render:(u)=>$e.jsxDEV("span",{title:`${Fe(u.requestShare)} of all requests`,children:$e.jsxDEV(fa,{value:u.totalRequests,max:r,display:N(u.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(u)=>u.totalCost,render:(u)=>$e.jsxDEV("span",{title:`${Fe(u.costShare)} of all cost`,children:$e.jsxDEV(fa,{value:u.totalCost,max:i,display:_t(u.totalCost,u.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(u)=>u.conversationTokens,render:(u)=>$e.jsxDEV("span",{className:"num",title:N(u.conversationTokens),children:Ae(u.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(u)=>u.cacheRate,render:(u)=>$e.jsxDEV("span",{className:"num",children:Fe(u.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(u)=>u.cacheSavings,render:(u)=>$e.jsxDEV("span",{className:`num ${u.cacheSavings<0?"tone-bad":"muted"}`,children:Fe(u.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(u)=>u.errorRate,render:(u)=>$e.jsxDEV("span",{title:`${N(u.failedRequests)} failed`,children:$e.jsxDEV(Nt,{tone:u.failedRequests>0?il(u.errorRate):"neutral",mono:!0,children:to(u.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(u)=>u.avgDuration??-1,render:(u)=>$e.jsxDEV("span",{className:"num",children:Rt(u.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(u)=>u.lastTimestamp,render:(u)=>$e.jsxDEV("span",{className:"dim",children:da(u.lastTimestamp)},void 0,!1,void 0,this)}]}var po=X(ct(),1);var ee=X(ue(),1),sD=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],lT=6,rT=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],sT="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function uT({active:r,range:i}){let u=Ht(["providers",i],({signal:B})=>ew(i,B),{enabled:r}),[d,f]=po.useState("tokens"),[y,m]=rn(),v=ua(i),S=Ht(["provider-windows",i],({signal:B})=>Rb(i,null,B),{enabled:r}),[x,h]=po.useState(null),C=uD(S.data?.windowInsights??[],x),k=C?.provider??null,T=Ht(["provider-windows",i,k],({signal:B})=>Rb(i,k,B),{enabled:r&&k!==null}),L=po.useMemo(()=>{let B=u.data?.providers??[],V=u.data?.series??[],_=Ud(B.map((Q)=>({key:Q.provider,weight:Q.totalTokens}))),pe=_o(i,V.map((Q)=>Q.timestamp)),W={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Q of B)W.requests+=Q.totalRequests,W.failed+=Q.failedRequests,W.tokens+=Q.totalTokens,W.cost+=Q.totalCost,W.unpriced+=Q.unpricedRequests;let oe=(Q)=>hl(V,{buckets:pe,key:(H)=>H.provider,value:Q,limit:lT,colors:_}).map((H)=>({...H,values:H.values.map((F)=>F||null)}));return{colors:_,buckets:pe,totals:W,burn:{tokens:oe((Q)=>Q.totalTokens),cost:oe((Q)=>Q.cost),requests:oe((Q)=>Q.requests)},spark:{tokens:Sa(V,pe,(Q)=>Q.totalTokens),cost:Sa(V,pe,(Q)=>Q.cost),requests:Sa(V,pe,(Q)=>Q.requests)},topProvider:B.reduce((Q,H)=>Q===null||H.totalTokens>Q.totalTokens?H:Q,null)}},[u.data,i]),M=L.burn[d],D=d==="cost"?(B)=>ca(B):Ae,U=L.totals;return ee.jsxDEV("div",{className:"page",children:[ee.jsxDEV(na,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${v.windowLabel}.`},void 0,!1,void 0,this),ee.jsxDEV(Ve,{query:u,skeleton:ee.jsxDEV(Bt,{height:112},void 0,!1,void 0,this),children:({providers:B})=>ee.jsxDEV("div",{"data-stale":u.stale,children:ee.jsxDEV(la,{min:190,children:[ee.jsxDEV(ie,{label:"Providers",value:N(B.length),hint:L.topProvider?`Most tokens: ${L.topProvider.provider}`:void 0},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:"Requests",value:N(U.requests),hint:`${N(U.failed)} failed`,spark:L.spark.requests},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Ae(U.tokens),spark:L.spark.tokens},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(U.cost,U.unpriced),hint:U.unpriced>0?`${N(U.unpriced)} unpriced`:void 0,spark:L.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ee.jsxDEV(ie,{label:"Error rate",value:to(U.requests>0?U.failed/U.requests:0),hint:`${N(U.requests-U.failed)} succeeded`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV(Ze,{index:1,title:"Provider totals",description:U.unpriced>0?`Cost is an API-equivalent estimate and excludes ${N(U.unpriced)} unpriced subscription request${U.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:u.stale,children:ee.jsxDEV(Ve,{query:u,skeleton:ee.jsxDEV(ia,{rows:6},void 0,!1,void 0,this),children:({providers:B})=>ee.jsxDEV(iD,{providers:B,colors:L.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV("div",{className:"grid grid-main-side",children:[ee.jsxDEV(Ze,{index:2,title:"Burn by provider",description:d==="cost"&&U.unpriced>0?`API-equivalent estimate per ${v.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${v.bucketMs<3600000?"5 minutes":v.bucketMs<86400000?"hour":"day"}, top ${lT} providers stacked`,actions:ee.jsxDEV(za,{size:"sm",options:sD,value:d,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:ee.jsxDEV(Ve,{query:u,skeleton:ee.jsxDEV(Bt,{height:260},void 0,!1,void 0,this),children:()=>ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[ee.jsxDEV(Xl,{buckets:L.buckets,bucketMs:v.bucketMs,series:M,hidden:y,height:260,format:D,formatTooltip:d==="cost"?(B)=>ca(B):N,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),ee.jsxDEV(Qa,{items:M.map((B)=>({key:B.key,label:B.label,color:B.color,value:D(B.values.reduce((V,_)=>V+(_??0),0))})),hidden:y,onToggle:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV(Ve,{query:u,skeleton:ee.jsxDEV(Bt,{height:320},void 0,!1,void 0,this),children:({hourly:B,providers:V})=>ee.jsxDEV(dD,{hourly:B,providers:V,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV(Ze,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:S.stale,children:ee.jsxDEV(Ve,{query:S,skeleton:ee.jsxDEV(ia,{rows:6},void 0,!1,void 0,this),children:(B)=>ee.jsxDEV(fD,{insights:B.windowInsights,selected:C,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.jsxDEV(yD,{insights:S.data?.windowInsights??null,accounts:T,selected:C,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uD(r,i){if(i&&r.some((d)=>d.provider===i.provider&&d.windowKey===i.windowKey))return i;let u=i&&r.find((d)=>d.provider===i.provider)||r.reduce((d,f)=>d===void 0||f.fractionConsumed>d.fractionConsumed?f:d,void 0);return u?{provider:u.provider,windowKey:u.windowKey}:null}function iD({providers:r,colors:i}){let[u,d]=po.useState(null),f=po.useMemo(()=>{let y=0,m=0,v=0;for(let S of r)y=Math.max(y,S.totalRequests),m=Math.max(m,S.totalTokens),v+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>ee.jsxDEV("span",{className:"row",style:{gap:8},children:[ee.jsxDEV(Cn,{color:i.get(S.provider)??ao},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(S)=>S.totalRequests,render:(S)=>ee.jsxDEV(fa,{value:S.totalRequests,max:y,display:N(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let x=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return ee.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ee.jsxDEV("span",{className:"num dim",children:N(S.failedRequests)},void 0,!1,void 0,this),ee.jsxDEV(Nt,{tone:S.failedRequests>0?il(x):"neutral",mono:!0,children:to(x)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(S)=>S.models,render:(S)=>ee.jsxDEV("span",{className:"num",children:N(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(S)=>S.totalTokens,render:(S)=>ee.jsxDEV(fa,{value:S.totalTokens,max:m,display:Ae(S.totalTokens),color:i.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(S)=>S.totalTokens,render:(S)=>ee.jsxDEV("span",{className:"num muted",children:Fe(v>0?S.totalTokens/v:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(S)=>S.totalCost,render:(S)=>ee.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?`${N(S.unpricedRequests)} unpriced`:void 0,children:_t(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>ee.jsxDEV("span",{className:"num",children:dl(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>ee.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:N(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,i]);return ee.jsxDEV($t,{rows:r,rowKey:(y)=>y.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:u,onRowClick:(y)=>d((m)=>m===y.provider?null:y.provider),expanded:(y)=>y.provider===u?ee.jsxDEV(cD,{provider:y},void 0,!1,void 0,this):null,empty:ee.jsxDEV(Lt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function cD({provider:r}){let i={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return ee.jsxDEV("div",{className:"providers-mix",children:[ee.jsxDEV(Wr,{segments:rT.map((u)=>({key:u.key,label:u.label,value:i[u.key],color:u.color}))},void 0,!1,void 0,this),ee.jsxDEV(Qa,{items:rT.map((u)=>({key:u.key,label:u.label,color:u.color,value:`${Ae(i[u.key])} · ${r.totalTokens>0?Fe(i[u.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vd="";function dD({hourly:r,providers:i,stale:u}){let[d,f]=po.useState(Vd),y=d===Vd||i.some((S)=>S.provider===d)?d:Vd,m=po.useMemo(()=>{let S=Array.from({length:24},()=>0),x=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let L of r){if(y!==Vd&&L.provider!==y)continue;S[L.hour]+=L.totalTokens,x[L.hour]+=L.outputTokens,h[L.hour]+=L.requests}let C=0;for(let L=1;L<24;L++)if(S[L]>S[C])C=L;let k=S[C]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((L,M)=>k&&M===C?null:L)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((L,M)=>k&&M===C?L:null)}],output:x,requests:h,peak:C,hasData:k}},[r,y]),v=(S)=>`${String(S).padStart(2,"0")}:00`;return ee.jsxDEV(Ze,{index:3,title:"Peak burn hours",description:m.hasData?`Tokens by local hour of day; peak at ${v(m.peak)}`:"Tokens by local hour of day",actions:ee.jsxDEV("select",{className:"input providers-select",value:y,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[ee.jsxDEV("option",{value:Vd,children:"All providers"},void 0,!1,void 0,this),i.map((S)=>ee.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:u,children:ee.jsxDEV(wn,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${v(S)}–${v((S+1)%24)}`,series:m.series,height:260,showTotal:!1,formatTooltip:N,emptyLabel:"No activity in this range",tooltipExtra:(S)=>ee.jsxDEV(ee.Fragment,{children:[ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:N(m.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:N(m.requests[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function fD({insights:r,selected:i,onSelect:u}){return ee.jsxDEV($t,{rows:r,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:pD,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(d)=>u({provider:d.provider,windowKey:d.windowKey}),empty:ee.jsxDEV(Lt,{title:"No usage snapshots in this range",hint:sT},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var pD=[{key:"window",header:"Window",sort:(r)=>`${r.provider} ${r.windowLabel}`,render:(r)=>ee.jsxDEV(_a,{primary:r.windowLabel,secondary:ee.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(r)=>r.accounts,render:(r)=>ee.jsxDEV("span",{className:"num",children:N(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(r)=>r.cycles,render:(r)=>ee.jsxDEV("span",{className:"num muted",children:N(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>ee.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?ee.jsxDEV("span",{className:"num",children:Ae(r.estTokensPerWindow)},void 0,!1,void 0,this):ee.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let i=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return ee.jsxDEV(fa,{value:r.peakConcurrentFraction,max:r.accounts,display:Fe(r.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?ee.jsxDEV(Nt,{tone:"warn",mono:!0,children:[N(r.idealAccounts)," · have ",N(r.accounts)]},void 0,!0,void 0,this):ee.jsxDEV("span",{className:"num",children:N(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?ee.jsxDEV(Nt,{tone:"warn",mono:!0,children:[N(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):ee.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Um=60000,Zl=60*Um,Pm=24*Zl,mD=[5*Um,15*Um,30*Um,Zl,2*Zl,3*Zl,6*Zl,12*Zl,Pm],hD=240,gD=6*Zl;function yD({insights:r,accounts:i,selected:u,onSelect:d}){let[f,y]=rn(),m=po.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),v=po.useMemo(()=>(r??[]).filter((L)=>L.provider===u?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,u?.provider]),S=po.useMemo(()=>(i.data?.usageSeries??[]).filter((L)=>L.provider===u?.provider),[i.data,u?.provider]),x=S.length===0&&(i.loading||i.stale),h=po.useMemo(()=>{let L=new Map;for(let D of S){let U=L.get(D.accountLabel)??[];if(!U.includes(D.accountKey))U.push(D.accountKey);L.set(D.accountLabel,U)}let M=new Map;for(let[D,U]of L)U.sort(),U.forEach((B,V)=>M.set(B,U.length>1?`${D} #${V+1}`:D));return M},[S]),C=po.useMemo(()=>bD(S.filter((L)=>L.windowKey===u?.windowKey),h),[S,h,u?.windowKey]),k=po.useMemo(()=>{let L=new Map(C.series.map((M)=>[M.key,M.color]));return S.map((M)=>{let D=null,U=null;for(let _ of M.points){if(_.usedFraction===null)continue;if(U=Math.max(U??0,_.usedFraction),!D||_.timestamp>=D.timestamp)D={fraction:_.usedFraction,exhausted:_.exhausted,timestamp:_.timestamp}}let B=M.windowKey===u?.windowKey?L.get(M.accountKey)??null:null,V=h.get(M.accountKey)??M.accountLabel;return{series:M,name:V,color:B,latest:D,peak:U,samples:M.points.length}}).sort((M,D)=>Number(D.color!==null)-Number(M.color!==null)||M.series.windowLabel.localeCompare(D.series.windowLabel)||(D.latest?.fraction??-1)-(M.latest?.fraction??-1))},[S,h,C.series,u?.windowKey]),T=v.find((L)=>L.key===u?.windowKey)?.label;return ee.jsxDEV(Ze,{index:5,title:"Window utilization",description:C.buckets.length>0?`${T??"Window"} used fraction per account, ${rl(new Date(C.first),"MMM d HH:mm")} – ${rl(new Date(C.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:u&&ee.jsxDEV("div",{className:"row",style:{gap:6},children:[ee.jsxDEV("select",{className:"input providers-select",value:u.provider,onChange:(L)=>{let M=L.target.value,D=r?.find((U)=>U.provider===M);if(D)d({provider:M,windowKey:D.windowKey})},"aria-label":"Provider",children:m.map((L)=>ee.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),ee.jsxDEV("select",{className:"input providers-select",value:u.windowKey,onChange:(L)=>d({provider:u.provider,windowKey:L.target.value}),"aria-label":"Window",children:v.map((L)=>ee.jsxDEV("option",{value:L.key,children:L.label},L.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:r===null?ee.jsxDEV(Bt,{height:260},void 0,!1,void 0,this):u===null?ee.jsxDEV(Lt,{title:"No usage snapshots in this range",hint:sT},void 0,!1,void 0,this):ee.jsxDEV(Ve,{query:i,skeleton:ee.jsxDEV(Bt,{height:260},void 0,!1,void 0,this),children:()=>x?ee.jsxDEV(Bt,{height:260},void 0,!1,void 0,this):ee.jsxDEV("div",{className:"stack",style:{gap:16},children:[ee.jsxDEV("div",{className:"stack",style:{gap:12},children:[ee.jsxDEV(wn,{slots:C.buckets.length,tickLabel:(L)=>gm(C.buckets[L],C.last-C.first>Pm?Pm:C.bucketMs),tooltipTitle:(L)=>hm(C.buckets[L],Zl),series:C.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,C.max),format:(L)=>Fe(L,0),formatTooltip:(L)=>Fe(L,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(L)=>{let M=C.exhausted[L];return M.length>0?ee.jsxDEV("div",{className:"chart-tooltip-row",children:[ee.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"Exhausted"},void 0,!1,void 0,this),ee.jsxDEV("span",{className:"chart-tooltip-value",children:M.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),C.series.length>1&&ee.jsxDEV(Qa,{items:C.series.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:f,onToggle:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.jsxDEV("div",{className:"providers-accounts",children:ee.jsxDEV($t,{rows:k,rowKey:(L)=>`${L.series.windowKey}::${L.series.accountKey}`,columns:SD,limit:16,onRowClick:(L)=>d({provider:L.series.provider,windowKey:L.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 bD(r,i){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:d}=Number;for(let T of r)for(let L of T.points){if(L.timestamp<u)u=L.timestamp;if(L.timestamp>d)d=L.timestamp}if(!(d>=u))return{buckets:[],bucketMs:Zl,first:0,last:0,max:0,series:[],exhausted:[]};let f=d-u,y=mD.find((T)=>f/T<hD)??Pm,m=_o("all",[u],y,d),v=(T)=>Math.floor((T-m[0])/y),S=m.map(()=>[]),x=0,h=(T)=>i.get(T.accountKey)??T.accountLabel,k=[...r].sort((T,L)=>h(T).localeCompare(h(L))).map((T,L)=>{let M=m.map(()=>null),D=m.map(()=>0);for(let V of T.points){let _=v(V.timestamp);if(_<0||_>=m.length)continue;if(V.exhausted&&!S[_].includes(h(T)))S[_].push(h(T));if(V.usedFraction===null||V.timestamp<D[_])continue;M[_]=V.usedFraction,D[_]=V.timestamp,x=Math.max(x,V.usedFraction)}let U=null,B=0;for(let V=0;V<m.length;V++)if(M[V]!==null)U=M[V],B=D[V];else if(U!==null&&m[V]-B<=gD)M[V]=U;return{key:T.accountKey,label:h(T),color:Ha[L%Ha.length],values:M}});return{buckets:m,bucketMs:y,first:u,last:d,max:x,series:k,exhausted:S}}function vD(r){if(!r)return ee.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return ee.jsxDEV(Nt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return ee.jsxDEV(Nt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return ee.jsxDEV(Nt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var SD=[{key:"account",header:"Account",sort:(r)=>r.name,render:(r)=>ee.jsxDEV("span",{className:"row",style:{gap:8},children:[ee.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&ee.jsxDEV(Cn,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),ee.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:"Window",sort:(r)=>r.series.windowLabel,render:(r)=>ee.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?ee.jsxDEV(fa,{value:r.latest.fraction,max:1,display:Fe(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):ee.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>vD(r.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(r)=>r.peak??-1,render:(r)=>ee.jsxDEV("span",{className:"num",children:r.peak===null?"–":Fe(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(r)=>r.samples,render:(r)=>ee.jsxDEV("span",{className:"num muted",children:N(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>ee.jsxDEV("span",{className:"muted",children:r.latest?da(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var ou=X(ct(),1);var nt=X(ue(),1),zm={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function iT({id:r,onClose:i}){let u=Ht(["request",r],({signal:y})=>Gk(r??0,y),{enabled:r!==null}),d=u.stale?null:u.data,f=d?zm[Yl(d)]:null;return nt.jsxDEV(xm,{open:r!==null,onClose:i,width:620,title:d?nt.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):"Request",subtitle:d?nt.jsxDEV(nt.Fragment,{children:[d.provider," ·"," ",nt.jsxDEV("span",{title:ln(d.timestamp),children:da(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?nt.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:d&&f?nt.jsxDEV("div",{className:"row",style:{gap:6},children:[nt.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Dm({...Nd(window.location.hash),section:"traces",session:d.sessionFile}),onClick:i,title:"Open this request's session in the trace view",children:[nt.jsxDEV(xd,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),nt.jsxDEV(Nt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?nt.jsxDEV(xD,{details:d,aborted:Yl(d)==="aborted"},void 0,!1,void 0,this):u.error?nt.jsxDEV(vi,{error:u.error,onRetry:u.refetch},void 0,!1,void 0,this):nt.jsxDEV("div",{className:"stack",style:{gap:12},children:[nt.jsxDEV(Oa,{height:56},void 0,!1,void 0,this),nt.jsxDEV(Oa,{height:120},void 0,!1,void 0,this),nt.jsxDEV(Oa,{height:120},void 0,!1,void 0,this),nt.jsxDEV(Oa,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function xD({details:r,aborted:i}){let{usage:u}=r,d=r.duration!==null&&r.duration>0&&u.output>0?u.output*1000/r.duration:null,{messages:f,output:y,...m}=r;return nt.jsxDEV(nt.Fragment,{children:[r.errorMessage&&nt.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[nt.jsxDEV("div",{className:"request-drawer-error-label",children:i?"Aborted":"Error"},void 0,!1,void 0,this),nt.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),nt.jsxDEV(Ho,{items:[{key:"at",label:"Started",value:ln(r.timestamp)},{key:"duration",label:"Duration",value:Rt(r.duration)},{key:"ttft",label:"Time to first token",value:Rt(r.ttft)},{key:"tps",label:"Output tokens/s",value:dl(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),nt.jsxDEV(Ho,{items:[{key:"input",label:"Uncached input",value:N(u.input)},{key:"cacheRead",label:"Cache read",value:N(u.cacheRead)},{key:"cacheWrite",label:"Cache write",value:N(u.cacheWrite)},{key:"output",label:"Output",value:N(u.output)},{key:"total",label:"Total",value:N(u.totalTokens)},{key:"premium",label:"Premium requests",value:N(Math.round((u.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),nt.jsxDEV(Ho,{items:[{key:"total",label:"Total",value:Zr(r,4)},{key:"input",label:"Input",value:ca(u.cost.input,4)},{key:"cacheRead",label:"Cache read",value:ca(u.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:ca(u.cost.cacheWrite,4)},{key:"output",label:"Output",value:ca(u.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("section",{children:[nt.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),nt.jsxDEV(Ho,{items:[{key:"id",label:"Request id",value:r.id??"–"},{key:"entry",label:"Entry id",value:r.entryId},{key:"stop",label:"Stop reason",value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:"Project",value:nt.jsxDEV("span",{title:r.folder,children:fl(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),nt.jsxDEV("div",{className:"request-drawer-file",children:[nt.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),nt.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&&nt.jsxDEV(mi,{data:y,title:"Output message"},void 0,!1,void 0,this),nt.jsxDEV(mi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),nt.jsxDEV(mi,{data:m,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var at=X(ue(),1),Xb=[500,2000,1e4];function cT({active:r,range:i,onRequestClick:u}){let[d,f]=ou.useState(0),y=Xb[d],m=Ht(["requests-log",y],({signal:_})=>ym(y,_),{enabled:r}),[v,S]=ou.useState(""),[x,h]=ou.useState("all"),C=ua(i),k=ou.useMemo(()=>{let _=m.data??[],pe=C.spanMs===null?null:Date.now()-C.spanMs,W=pe===null?_:_.filter((H)=>H.timestamp>=pe),oe=!m.stale&&(_.length<y||pe!==null&&W.length<_.length),Q={all:W.length,ok:0,aborted:0,failed:0};for(let H of W)Q[Yl(H)]++;return{loaded:_.length,inRange:W,complete:oe,counts:Q,summary:Fw(W)}},[m.data,m.stale,y,C.spanMs]),T=ou.useMemo(()=>{let _=v.trim().toLowerCase();return k.inRange.filter((pe)=>(x==="all"||Yl(pe)===x)&&(_===""||pe.model.toLowerCase().includes(_)||pe.provider.toLowerCase().includes(_)||pe.folder.toLowerCase().includes(_)))},[k.inRange,v,x]),{summary:L,counts:M,complete:D}=k,U=d+1<Xb.length?Xb[d+1]:null,B=U!==null?at.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:m.refreshing,onClick:()=>f(d+1),children:m.refreshing&&m.stale?"Loading…":`Load latest ${N(U)}`},void 0,!1,void 0,this):void 0,V=["all","ok","aborted","failed"].map((_)=>({value:_,label:at.jsxDEV(at.Fragment,{children:[_==="all"?"All":zm[_].label," ",at.jsxDEV("span",{className:"dim num",children:Ae(M[_])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return at.jsxDEV("div",{className:"page",children:[at.jsxDEV(na,{title:"Requests",description:`Every model call omp made in ${C.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),at.jsxDEV(Ve,{query:m,skeleton:at.jsxDEV(Oa,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>at.jsxDEV("div",{"data-stale":m.stale,children:at.jsxDEV(la,{min:160,children:[at.jsxDEV(ie,{label:"Requests",value:N(L.requests),hint:L.oldest===null?`none in ${C.windowLabel}`:`since ${da(L.oldest)}`},void 0,!1,void 0,this),at.jsxDEV(ie,{label:"Failed",value:N(L.failed),hint:`${L.requests>0?to(L.failed/L.requests):"–"} · ${N(L.aborted)} aborted`},void 0,!1,void 0,this),at.jsxDEV(ie,{label:"Tokens",title:"Total tokens across these requests",value:Ae(L.tokens)},void 0,!1,void 0,this),at.jsxDEV(ie,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:_t(L.cost,L.unpriced),hint:L.unpriced>0?`${N(L.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),at.jsxDEV(ie,{label:"Median duration",value:Rt(L.medianDuration),hint:`p95 ${Rt(L.p95Duration)}`},void 0,!1,void 0,this),at.jsxDEV(ie,{label:"Median TTFT",title:"Time to first token",value:Rt(L.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),at.jsxDEV(Ze,{index:1,title:"Request log",description:m.data===null?"Loading the latest requests…":D?`${N(T.length)} of ${N(L.requests)} requests in ${C.windowLabel}`:`${N(T.length)} of the latest ${N(L.requests)} requests`,actions:at.jsxDEV(at.Fragment,{children:[at.jsxDEV(cl,{value:v,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),at.jsxDEV(za,{size:"sm","aria-label":"Status",options:V,value:x,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:m.stale,footer:m.data!==null&&!D?at.jsxDEV(at.Fragment,{children:[at.jsxDEV("span",{children:["Showing the latest ",N(k.loaded)," requests, back to"," ",L.oldest===null?"–":ln(L.oldest),". Older requests in"," ",C.windowLabel," are not loaded."]},void 0,!0,void 0,this),B]},void 0,!0,void 0,this):void 0,children:at.jsxDEV(Ve,{query:m,skeleton:at.jsxDEV(ia,{rows:12},void 0,!1,void 0,this),children:()=>at.jsxDEV($t,{rows:T,rowKey:(_)=>_.id??`${_.sessionFile}:${_.entryId}`,onRowClick:(_)=>_.id!==void 0&&u(_.id),columns:CD,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:at.jsxDEV(Lt,{title:L.requests===0?`No requests in ${C.windowLabel}`:"No requests match",hint:L.requests===0?void 0:"Clear the search or status filter."},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 CD=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>at.jsxDEV(_a,{primary:at.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:"When",sort:(r)=>r.timestamp,render:(r)=>at.jsxDEV("span",{className:"muted",title:ln(r.timestamp),children:da(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>at.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:fl(r.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(r)=>r.usage.input,render:(r)=>at.jsxDEV("span",{className:"num",children:Ae(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>at.jsxDEV("span",{className:"num",title:`Cache write: ${N(r.usage.cacheWrite)}`,children:Ae(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>at.jsxDEV("span",{className:"num",children:Ae(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>at.jsxDEV("span",{className:"num",children:Zr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>at.jsxDEV("span",{className:"num",children:Rt(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(r)=>r.ttft??-1,render:(r)=>at.jsxDEV("span",{className:"num muted",children:Rt(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>Yl(r),render:(r)=>{let i=zm[Yl(r)];return at.jsxDEV("span",{title:r.errorMessage??void 0,children:at.jsxDEV(_a,{lead:at.jsxDEV(ul,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:at.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 lu=X(ct(),1);var ge=X(ue(),1),LD=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],dT=6,nu="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",Yb=ge.jsxDEV(Lt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function fT({active:r,range:i}){let u=Ht(["tools",i],({signal:L})=>Jk(i,L),{enabled:r}),[d,f]=lu.useState("calls"),[y,m]=rn(),[v,S]=lu.useState(null),x=ua(i),h=lu.useMemo(()=>kD(u.data,i),[u.data,i]),C=v!==null&&h.toolNames.includes(v)?v:null,k=d==="calls"?h.callSeries:h.errorSeries,T=(L)=>L.byTool.length===0;return ge.jsxDEV("div",{className:"page",children:[ge.jsxDEV(na,{title:"Tools",description:`Which tools omp called in ${x.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),ge.jsxDEV(Ve,{query:u,skeleton:ge.jsxDEV(Bt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return ge.jsxDEV("div",{"data-stale":u.stale,className:"stack",style:{gap:16},children:[ge.jsxDEV(la,{min:190,children:[ge.jsxDEV(ie,{label:"Tool calls",value:N(L.calls),hint:`${N(L.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:"Distinct tools",value:N(L.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:"Error rate",title:"Tool results that came back flagged as errors",value:to(L.calls>0?L.errors/L.calls:0),hint:`${N(L.calls-L.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:"Attributed tokens",title:nu,value:Ae(Math.round(L.tokens)),hint:`${Ae(Math.round(L.output))} output`},void 0,!1,void 0,this),ge.jsxDEV(ie,{label:"Attributed cost",title:`${nu}; API-equivalent estimate`,value:_t(L.cost,L.unpriced),hint:L.unpriced>0?`${N(Math.round(L.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ge.jsxDEV(la,{min:150,children:[ge.jsxDEV(ie,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Ae(L.resultChars)} chars`},void 0,!1,void 0,this),ge.jsxDEV(ie,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Ae(L.argsChars)} chars`},void 0,!1,void 0,this),ge.jsxDEV(ie,{size:"sm",label:"Avg result per call",value:`${Ae(L.calls>0?Math.round(L.resultChars/L.calls):0)} chars`},void 0,!1,void 0,this),ge.jsxDEV(ie,{size:"sm",label:"Avg arguments per call",value:`${Ae(L.calls>0?Math.round(L.argsChars/L.calls):0)} chars`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),ge.jsxDEV(Ze,{index:1,title:d==="calls"?"Calls over time":"Errors over time",description:`Per ${x.bucketMs<3600000?"5 minutes":x.bucketMs<86400000?"hour":"day"}, top ${dT} tools stacked`,actions:ge.jsxDEV(za,{size:"sm",options:LD,value:d,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:ge.jsxDEV(Ve,{query:u,skeleton:ge.jsxDEV(Bt,{height:260},void 0,!1,void 0,this),isEmpty:T,empty:Yb,children:()=>ge.jsxDEV("div",{className:"stack",style:{gap:12},children:[ge.jsxDEV(Xl,{buckets:h.buckets,bucketMs:x.bucketMs,series:k,hidden:y,height:260,formatTooltip:N,emptyLabel:d==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),ge.jsxDEV(Qa,{items:k.map((L)=>({key:L.key,label:L.label,color:L.color,value:Ae(L.values.reduce((M,D)=>M+(D??0),0))})),hidden:y,onToggle:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ge.jsxDEV(Ze,{index:2,title:"By tool",description:`${nu}. Select a tool to break it down by model.`,flush:!0,stale:u.stale,children:ge.jsxDEV(Ve,{query:u,skeleton:ge.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:Yb,children:()=>ge.jsxDEV($t,{rows:h.rows,rowKey:(L)=>L.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:C,onRowClick:(L)=>S((M)=>M===L.tool?null:L.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ge.jsxDEV(Ze,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:u.stale,actions:ge.jsxDEV("div",{className:"row",style:{gap:6},children:[ge.jsxDEV("select",{className:"input tools-filter",value:C??"",onChange:(L)=>S(L.target.value||null),"aria-label":"Filter by tool",children:[ge.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((L)=>ge.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this),C!==null&&ge.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>S(null),children:ge.jsxDEV(eo,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:ge.jsxDEV(Ve,{query:u,skeleton:ge.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:T,empty:Yb,children:(L)=>ge.jsxDEV(TD,{rows:L.byToolModel,tool:C,colors:h.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kD(r,i){let u=r?.byTool??[],d=r?.series??[],f=Hw(u).sort((T,L)=>L.calls-T.calls),y=Ud(u.map((T)=>({key:T.tool,weight:T.calls}))),m=_o(i,d.map((T)=>T.timestamp)),v={calls:0,errors:0,tools:u.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let T of u)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[S,x]=[(T)=>T.calls,(T)=>T.errors].map((T)=>hl(d,{buckets:m,key:(L)=>L.tool,value:T,limit:dT,colors:y}).map((L)=>({...L,values:L.values.map((M)=>M||null)}))),h=new Map(hl(d,{buckets:m,key:(T)=>T.tool,value:(T)=>T.calls}).map((T)=>[T.key,T.values])),C=f[0]?.calls??0,k=wD(C,y,h);return{rows:f,colors:y,buckets:m,totals:v,callSeries:S,errorSeries:x,totalCalls:Sa(d,m,(T)=>T.calls),totalErrors:Sa(d,m,(T)=>T.errors),toolNames:f.map((T)=>T.tool).sort((T,L)=>T.localeCompare(L)),toolColumns:k}}function wD(r,i,u){return[{key:"tool",header:"Tool",sort:(d)=>d.tool,render:(d)=>ge.jsxDEV("span",{className:"row",style:{gap:8},children:[ge.jsxDEV(Cn,{color:i.get(d.tool)??ao},void 0,!1,void 0,this),ge.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(d)=>{let f=u.get(d.tool);return f&&f.length>1?ge.jsxDEV(yi,{values:f,width:80,height:20,color:i.get(d.tool)??ao},void 0,!1,void 0,this):ge.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(d)=>d.calls,render:(d)=>ge.jsxDEV(fa,{value:d.calls,max:r,display:ge.jsxDEV("span",{title:`${Fe(d.callFraction)} of all tool calls`,children:[N(d.calls),ge.jsxDEV("span",{className:"dim tools-share",children:Fe(d.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(d)=>d.errorRate,render:(d)=>ge.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ge.jsxDEV("span",{className:"num dim",children:N(d.errors)},void 0,!1,void 0,this),ge.jsxDEV(Nt,{tone:d.errors>0?il(d.errorRate):"neutral",mono:!0,children:to(d.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(d)=>d.argsChars,render:(d)=>ge.jsxDEV("span",{className:"num",children:Ae(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(d)=>d.resultChars,render:(d)=>ge.jsxDEV("span",{className:"num",children:Ae(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(d)=>d.avgResultChars,render:(d)=>ge.jsxDEV("span",{className:"num muted",children:Ae(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:nu,align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>ge.jsxDEV("span",{className:"num",title:`${Fe(d.tokenFraction)} of attributed tokens`,children:[Ae(Math.round(d.totalTokensShare)),ge.jsxDEV("span",{className:"dim tools-share",children:Fe(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${nu}; API-equivalent estimate`,align:"right",sort:(d)=>d.costShare,render:(d)=>ge.jsxDEV("span",{className:"num",title:`${Fe(d.costFraction)} of attributed cost`,children:[_t(d.costShare,d.unpricedRequestsShare),ge.jsxDEV("span",{className:"dim tools-share",children:Fe(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(d)=>d.lastUsed,render:(d)=>ge.jsxDEV("span",{className:"muted",children:da(d.lastUsed)},void 0,!1,void 0,this)}]}function TD({rows:r,tool:i,colors:u}){let d=lu.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=lu.useMemo(()=>{let y=d.reduce((m,v)=>Math.max(m,v.calls),0);return[{key:"tool",header:"Tool",sort:(m)=>m.tool,render:(m)=>ge.jsxDEV("span",{className:"row",style:{gap:8},children:[ge.jsxDEV(Cn,{color:u.get(m.tool)??ao},void 0,!1,void 0,this),ge.jsxDEV("span",{className:"mono truncate tools-name",title:m.tool,children:m.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(m)=>m.model,render:(m)=>ge.jsxDEV(_a,{primary:ge.jsxDEV("span",{className:"mono",children:m.model||"(unknown)"},void 0,!1,void 0,this),secondary:m.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(m)=>m.calls,render:(m)=>ge.jsxDEV(fa,{value:m.calls,max:y,display:N(m.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(m)=>m.errorRate,render:(m)=>ge.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ge.jsxDEV("span",{className:"num dim",children:N(m.errors)},void 0,!1,void 0,this),ge.jsxDEV(Nt,{tone:m.errors>0?il(m.errorRate):"neutral",mono:!0,children:to(m.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(m)=>m.resultChars,render:(m)=>ge.jsxDEV("span",{className:"num",children:Ae(m.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:nu,align:"right",sort:(m)=>m.totalTokensShare,render:(m)=>ge.jsxDEV("span",{className:"num",children:Ae(Math.round(m.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${nu}; API-equivalent estimate`,align:"right",sort:(m)=>m.costShare,render:(m)=>ge.jsxDEV("span",{className:"num",children:_t(m.costShare,m.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(m)=>m.lastUsed,render:(m)=>ge.jsxDEV("span",{className:"muted",children:da(m.lastUsed)},void 0,!1,void 0,this)}]},[d,u]);return ge.jsxDEV($t,{rows:d,rowKey:(y)=>`${y.tool}::${y.model}::${y.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:ge.jsxDEV(Lt,{title:i?`No calls to ${i} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ri=X(ct(),1);var At=X(ct(),1);var gl=X(ue(),1);function pT({toolStats:r,index:i}){if(r.length===0)return null;let u=Math.max(...r.map((f)=>f.totalMs)),d=[{key:"tool",header:"Tool",render:(f)=>gl.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:"Calls",align:"right",render:(f)=>gl.jsxDEV("span",{className:"num",children:N(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?gl.jsxDEV(Nt,{tone:"bad",children:[N(f.errors)," failed"]},void 0,!0,void 0,this):gl.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:"Total",align:"right",width:200,render:(f)=>gl.jsxDEV(fa,{value:f.totalMs,max:u,display:Rt(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>gl.jsxDEV("span",{className:"num",children:Rt(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:"Max",align:"right",render:(f)=>gl.jsxDEV("span",{className:"num",children:Rt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return gl.jsxDEV(Ze,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:i,children:gl.jsxDEV($t,{columns:d,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Fo=X(ct(),1);var yl=X(ct(),1),ID=yl.createContext(null),ru={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function RD(r){let i=getComputedStyle(r),u=(d,f)=>i.getPropertyValue(d).trim()||f;return{category:{turn:u(ru.turn,"#a0a0a8"),model:u(ru.model,"#5ad8e6"),tool:u(ru.tool,"#f5a524"),subagent:u(ru.subagent,"#ed4abf"),background:u(ru.background,"#46464c")},error:u("--bad","#ff6166"),errorSoft:u("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:u("--ink-1","#ededef"),turnBand:u("--hover","rgba(255, 255, 255, 0.035)"),grid:u("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:u("--chart-axis","#5c5c64"),spanText:u("--ink-inverse","#0a0a0b"),selection:u("--focus","#5ad8e6"),brush:u("--selected","rgba(255, 255, 255, 0.075)"),fontSans:u("--font-sans","system-ui, sans-serif"),fontMono:u("--font-mono","ui-monospace, monospace")}}function ki(){let r=yl.useContext(ID)??document.documentElement,[i,u]=yl.useState(0);return yl.useEffect(()=>{let d=new MutationObserver(()=>u((y)=>y+1)),f={attributes:!0,attributeFilter:["data-theme","style","class"]};if(d.observe(document.documentElement,f),r!==document.documentElement)d.observe(r,f);return()=>d.disconnect()},[r]),yl.useMemo(()=>RD(r),[r,i])}var gT=X(ue(),1),Jr=44,$d=["turn","model","tool","subagent"],mT=6,wi=10;function MD(r,i,u,d){let f=devicePixelRatio,y=Math.floor(u*f),m=Math.floor(Jr*f),v,S;if(typeof OffscreenCanvas>"u"){let L=document.createElement("canvas");L.width=y,L.height=m,v=L,S=L.getContext("2d")}else{let L=new OffscreenCanvas(y,m);v=L,S=L.getContext("2d")}if(!S)return v;S.setTransform(f,0,0,f,0,0);let[x,h]=i.domain,C=Math.max(h-x,0.000000001),k=$d.map(()=>new Float32Array(u));for(let L of r)for(let M of L.spans){let D=$d.indexOf(M.kind);if(D===-1)continue;let U=k[D],B=Math.max(0,Math.floor((i.toU(M.start)-x)/C*u)),V=Math.min(u-1,Math.ceil((i.toU(M.end)-x)/C*u));for(let _=B;_<=V;_++)U[_]=Math.min(1,U[_]+0.34)}let T=Jr/$d.length;for(let L=0;L<$d.length;L++){let M=k[L];S.fillStyle=d.category[$d[L]];for(let D=0;D<u;D++){if(M[D]<=0)continue;S.globalAlpha=0.25+M[D]*0.75,S.fillRect(D,L*T+1,1,T-2)}S.globalAlpha=1}return v}function hT({tracks:r,scale:i,viewport:u,onViewportChange:d}){let f=ki(),y=Fo.useRef(null),[m,v]=Fo.useState(800),S=Fo.useRef(null);Fo.useEffect(()=>{let B=y.current;if(!B)return;let V=new ResizeObserver((_)=>{v(Math.max(100,Math.floor(_[0].contentRect.width)))});return V.observe(B),()=>V.disconnect()},[]);let[x,h]=i.domain,C=Math.max(h-x,0.000000001),k=Fo.useCallback((B)=>(B-x)/C*m,[x,C,m]),T=Fo.useCallback((B)=>x+B/Math.max(m,1)*C,[x,C,m]),L=Fo.useMemo(()=>MD(r,i,m,f),[r,i,m,f]);Fo.useEffect(()=>{let B=y.current;if(!B)return;let V=B.getContext("2d");if(!V)return;let _=devicePixelRatio;V.setTransform(1,0,0,1,0,0),V.clearRect(0,0,B.width,B.height),V.drawImage(L,0,0),V.setTransform(_,0,0,_,0,0);let pe=k(u.u0),W=k(u.u1);V.fillStyle=f.brush,V.fillRect(pe,0,W-pe,Jr),V.strokeStyle=f.selection,V.strokeRect(pe+0.5,0.5,W-pe-1,Jr-1),V.fillStyle=f.selection,V.fillRect(pe,0,2,Jr),V.fillRect(W-2,0,2,Jr)},[L,u,f,k]);let M=(B)=>{let V=B.currentTarget.getBoundingClientRect(),_=B.clientX-V.left,pe=k(u.u0),W=k(u.u1),oe;if(Math.abs(_-pe)<=mT)oe="left";else if(Math.abs(_-W)<=mT)oe="right";else if(_>pe&&_<W)oe="move";else{oe="create";let Q=T(_);d(jd({u0:Q,u1:Q+wi},x,h))}S.current={mode:oe,startX:_,startViewport:u},B.currentTarget.setPointerCapture(B.pointerId)},D=(B)=>{let V=S.current;if(!V)return;let _=B.currentTarget.getBoundingClientRect(),pe=B.clientX-_.left,W=T(pe)-T(V.startX),{u0:oe,u1:Q}=V.startViewport;if(V.mode==="move")d(jd({u0:oe+W,u1:Q+W},x,h));else if(V.mode==="left")d(jd({u0:Math.min(oe+W,Q-wi),u1:Q},x,h));else if(V.mode==="right")d(jd({u0:oe,u1:Math.max(Q+W,oe+wi)},x,h));else{let H=T(V.startX),F=T(pe);d(jd({u0:Math.min(H,F),u1:Math.max(H,F,Math.min(H,F)+wi)},x,h))}},U=()=>{S.current=null};return gT.jsxDEV("canvas",{ref:y,width:Math.floor(m*devicePixelRatio),height:Math.floor(Jr*devicePixelRatio),className:"traces-minimap",style:{height:Jr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((u.u0-x)/C*100),tabIndex:-1,onPointerDown:M,onPointerMove:D,onPointerUp:U},void 0,!1,void 0,this)}function jd(r,i,u){let d=Math.max(wi,r.u1-r.u0);d=Math.min(d,u-i||wi);let f=r.u0;if(f<i)f=i;if(f+d>u)f=u-d;return{u0:f,u1:f+d}}var bl=X(ct(),1);var Be=X(ue(),1);function AD(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 u of r){if(!u||typeof u!=="object"||!("type"in u))continue;if((u.type==="text"||u.type==="thinking")&&"text"in u&&typeof u.text==="string")i.push({kind:String(u.type),text:u.text})}return i}function DD({title:r,subtitle:i,actions:u,onClose:d,children:f}){return Be.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[Be.jsxDEV("header",{className:"drawer-header",children:[Be.jsxDEV("div",{className:"drawer-titles",children:[Be.jsxDEV("h2",{className:"drawer-title",children:r},void 0,!1,void 0,this),i!==void 0&&Be.jsxDEV("div",{className:"drawer-subtitle",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u,Be.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:d,"aria-label":"Close span details",children:Be.jsxDEV(eo,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Be.jsxDEV("div",{className:"drawer-body",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function yT({span:r,track:i,onClose:u,onOpenChildTrack:d,loadEntry:f=ow,inline:y=!1,onNavigate:m}){let[v,S]=bl.useState(null),[x,h]=bl.useState(!1),[C,k]=bl.useState(null),[T,L]=bl.useState(!1),M=bl.useRef(0);if(bl.useEffect(()=>{if(S(null),k(null),L(!1),h(!1),!r||!i||!r.entryId)return;h(!0);let W=new AbortController;return f(i.file,r.entryId,W.signal).then((oe)=>{if(!W.signal.aborted)S(oe.entry)}).catch((oe)=>{if(W.signal.aborted)return;k(qm(oe))}).finally(()=>{if(!W.signal.aborted)h(!1)}),()=>W.abort()},[r,i,f]),bl.useEffect(()=>()=>window.clearTimeout(M.current),[]),!r)return null;let D=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(v??r,null,2)),L(!0),window.clearTimeout(M.current),M.current=window.setTimeout(()=>L(!1),1500)}catch{}},B=(v&&typeof v==="object"?v:{}).message,V=B?.usage,_=[{key:"duration",label:"Duration",value:Be.jsxDEV("span",{className:"num",children:[Rt(r.end-r.start),r.unterminated&&Be.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:Be.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:Be.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(_.push({key:"tokens",label:"Tokens",value:Be.jsxDEV("span",{className:"num",children:N(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:Be.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:Be.jsxDEV("span",{className:"num",children:Rt(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:Be.jsxDEV("span",{className:"mono",children:B?.model??r.model??"-"},void 0,!1,void 0,this)}),V)_.push({key:"split",label:"Input / output / cached",value:Be.jsxDEV("span",{className:"num",children:[N(V.input??0)," / ",N(V.output??0)," /"," ",N(V.cacheRead??0)]},void 0,!0,void 0,this)});if(B?.provider)_.push({key:"provider",label:"Provider",value:Be.jsxDEV("span",{className:"mono",children:B.provider},void 0,!1,void 0,this)});if(B?.stopReason)_.push({key:"stop",label:"Stop reason",value:Be.jsxDEV("span",{className:"mono",children:B.stopReason},void 0,!1,void 0,this)})}return Be.jsxDEV(y?DD:xm,{open:!0,onClose:u,title:r.label,subtitle:Be.jsxDEV("span",{className:"row",style:{gap:6},children:Be.jsxDEV(Nt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · error`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:Be.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:D,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:T?Be.jsxDEV(js,{size:15},void 0,!1,void 0,this):Be.jsxDEV(Ys,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:Be.jsxDEV("div",{className:"stack traces-drawer",children:[Be.jsxDEV(Ho,{items:_},void 0,!1,void 0,this),m&&i&&r.entryId&&Be.jsxDEV("div",{children:Be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(r.entryId)m(i.id,r.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),B?.errorMessage&&Be.jsxDEV("div",{className:"stack",style:{gap:6},children:[Be.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),Be.jsxDEV("pre",{className:"code-block traces-pre",children:B.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&Be.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&Be.jsxDEV(Be.Fragment,{children:[Be.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),Be.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&d&&Be.jsxDEV("div",{children:Be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(r.childTrackId??""),children:["Open child track ",Be.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&&Be.jsxDEV("div",{className:"stack",style:{gap:6},children:[Be.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),Be.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&Be.jsxDEV("div",{className:"stack",children:[Be.jsxDEV(Oa,{height:80},void 0,!1,void 0,this),Be.jsxDEV(Oa,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&Be.jsxDEV(vi,{error:`Failed to load entry: ${C.message}`},void 0,!1,void 0,this),!x&&v!==null&&AD(B?.content).map((W,oe)=>Be.jsxDEV("div",{className:"stack",style:{gap:6},children:[Be.jsxDEV("div",{className:"section-label",children:W.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),Be.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:W.text},void 0,!1,void 0,this)]},`${W.kind}-${oe}`,!0,void 0,this)),!x&&v!==null&&Be.jsxDEV(mi,{data:v,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Rn=X(ue(),1);function bT({summary:r}){let i=(u)=>r.wallMs>0?`${Fe(u/r.wallMs)} of wall`:void 0;return Rn.jsxDEV(la,{min:112,children:[Rn.jsxDEV(ie,{size:"sm",label:"Wall time",value:Ks(r.wallMs)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Model time",value:Ks(r.modelMs),hint:i(r.modelMs)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Tool time",value:Ks(r.toolMs),hint:i(r.toolMs)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Idle",value:Ks(r.idleMs),hint:i(r.idleMs)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Turns",value:N(r.turns)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Requests",value:N(r.requests),hint:`${N(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Agents",value:N(r.subagents)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Tokens",value:Ae(r.totalTokens)},void 0,!1,void 0,this),Rn.jsxDEV(ie,{size:"sm",label:"Cost",value:_t(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Et=X(ct(),1),wT=X(ud(),1);function _m(r,i){let u=r.length,d=[i[0],i[u-1]],f=(y,m)=>{let v=0,S=u-1;while(v<S){let x=v+S+1>>1;if(y[x]<=m)v=x;else S=x-1}return Math.min(v,u-2)};return{toU(y){if(y<=r[0])return i[0];if(y>=r[u-1])return i[u-1];let m=f(r,y),v=r[m+1]-r[m];if(v<=0)return i[m];return i[m]+(y-r[m])/v*(i[m+1]-i[m])},toT(y){if(y<=i[0])return r[0];if(y>=i[u-1])return r[u-1];let m=f(i,y),v=i[m+1]-i[m];if(v<=0)return r[m];return r[m]+(y-i[m])/v*(r[m+1]-r[m])},domain:d,gaps:[]}}function ED(r){let i=[];for(let u of r)for(let d of u.spans)i.push([d.start,d.end]);return i.sort((u,d)=>u[0]-d[0]),i}function OD(r){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:u}=Number;for(let d of r)for(let f of d.spans){if(f.start<i)i=f.start;if(f.end>u)u=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(u,i+1)]}function vT(r,i,u){let d=[...new Set(r.filter((v)=>v>=i&&v<=u))].sort((v,S)=>v-S);if(d[0]!==i)d.unshift(i);if(d[d.length-1]!==u)d.push(u);if(d.length<2)return _m([i,u],[i,u]);let y=(u-i)/(d.length-1),m=d.map((v,S)=>i+S*y);return _m(d,m)}function qD(r,i,u){let d=ED(r),f=[];for(let[h,C]of d){let k=h-2000,T=C+2000,L=f[f.length-1];if(L&&k<=L[1]){if(T>L[1])L[1]=T}else f.push([k,T])}if(f.length===0)f.push([i,u]);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]),u);let y=[],m=[],v=[],S=f[0][0];for(let h=0;h<f.length;h++){let[C,k]=f[h];if(h===0)y.push(C),m.push(S);else{let T=f[h-1][1],L=C-T;if(L>30000)S+=8000,v.push({t0:T,t1:C,uMid:S-4000});else S+=L;y.push(C),m.push(S)}S+=Math.max(0,k-C),y.push(k),m.push(S)}return{..._m(y,m),gaps:v}}function ST(r,i,u){let[d,f]=OD(r);if(i==="turns"){let m=(r.find((v)=>v.id==="main")?.spans??[]).filter((v)=>v.kind==="turn").map((v)=>v.start);return vT(m,d,f)}if(i==="calls"){let y=[];for(let m of r)for(let v of m.spans)if(v.kind==="model"||v.kind==="tool"||v.kind==="background")y.push(v.start,v.end);return vT(y,d,f)}if(u)return qD(r,d,f);return _m([d,f],[d,f])}var ND=90;function BD(r){let i=10**Math.floor(Math.log10(Math.max(r,1)));for(let u of[1,2,5,10])if(i*u>=r)return i*u;return i*10}function UD(r){let i=new Date(r),u=String(i.getHours()).padStart(2,"0"),d=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${u}:${d}:${f}`}function Ti(r){let i=r<0?"-":"+",u=Math.abs(r),d=Math.floor(u/3600000),f=Math.floor(u%3600000/60000),y=Math.floor(u%60000/1000),m=Math.floor(u%1000),v=u%1000!==0,S=`${String(f).padStart(2,"0")}:${String(y).padStart(2,"0")}${v?".":""}${v?String(m).padStart(3,"0"):""}`;return d>0?`${i}${d}:${S}`:`${i}${S}`}function xT(r,i,u,d){let f=u-i;if(f<=0||d<=0)return[];let y=[],m=r.domain[0],v=BD(f*ND/d),S=m+Math.ceil((i-m)/v)*v,x=0;for(let h=S;h<=u&&x<200;h+=v,x++){let C=r.toT(h),k=Math.round((h-m)/v)%5===0;y.push({u:h,label:k?UD(C):Ti(h-m),major:k})}return y}var It=X(ue(),1),Wl=28,Kb=22,Co=18,CT=3,PD=14,LT=200,Qb=10,TT=2,zD=4,_D=56,Hm=3,Wb=0.3,HD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function FD(r,i){let u=new Map(r.map((S)=>[S.id,S])),d=new Set;for(let S of r)if(S.parentId)d.add(S.parentId);let f=(S)=>{let x=S.parentId;while(x){if(i.has(x))return!0;x=u.get(x)?.parentId??null}return!1},y=[],m=[],v=Wl+6;for(let S of r){if(f(S))continue;let x=S.id==="main"?0:S.id.split("/").length,h={turn:[],model:[],tool:[],subagent:[],background:[]};for(let k of S.spans)h[k.kind].push(k);let C={track:S,depth:x,hasChildren:d.has(S.id),headerY:v,lanes:[],turnSpans:h.turn,y0:v,y1:v};v+=Kb;for(let{kind:k,label:T}of HD){let L=h[k],M=k==="turn"||k==="model"||k==="tool";if(L.length===0&&!(S.id==="main"&&M))continue;let D={track:S,kind:k,label:T,y:v,spans:L};C.lanes.push(D),m.push(D),v+=Co+CT}C.y1=v-CT,y.push(C),v+=PD}return{blocks:y,lanes:m,totalHeight:Math.max(v,Wl+48)}}function GD(r,i){return r.lanes.map((u)=>{let d=u.spans.length,f=new Float64Array(d),y=new Float64Array(d),m=new Float64Array(d),v=Number.NEGATIVE_INFINITY;for(let S=0;S<d;S++){let x=u.spans[S];f[S]=i.toU(x.start),y[S]=i.toU(x.end),v=Math.max(v,y[S]),m[S]=v}return{startU:f,endU:y,maxEndU:m}})}function VD(r,i){let u=0,d=r.length;while(u<d){let f=u+d>>>1;if(r[f]<i)u=f+1;else d=f}return u}function $D(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 IT({tracks:r,scale:i,viewport:u,onViewportChange:d,selected:f,onSelect:y,matchIds:m,collapsed:v,onToggleCollapse:S,traceStart:x,autoFocus:h=!0}){let C=ki(),k=Et.useRef(null),T=Et.useRef(null),L=Et.useRef(null),[M,D]=Et.useState(800),[U,B]=Et.useState(null),V=Et.useRef(null);V.current=U;let _=Et.useRef({clientX:0,clientY:0}),pe=Et.useRef([]),W=Et.useRef(null),oe=Et.useRef(null),Q=Et.useRef(u);Q.current=u;let H=Et.useMemo(()=>FD(r,v),[r,v]),F=Et.useMemo(()=>GD(H,i),[H,i]);Et.useEffect(()=>{let ne=k.current;if(!ne)return;let j=new ResizeObserver((be)=>{let _e=Math.max(100,Math.floor(be[0].contentRect.width-LT));D(_e)});return j.observe(ne),()=>j.disconnect()},[]);let ce=Et.useCallback((ne,j)=>{let[be,_e]=i.domain,je=Math.max(Qb,j-ne);je=Math.min(je,_e-be||Qb);let Xe=ne;if(Xe<be)Xe=be;if(Xe+je>_e)Xe=_e-je;return{u0:Xe,u1:Xe+je}},[i]),ye=Et.useCallback((ne)=>{Q.current=ne,d(ne)},[d]),xe=Et.useCallback((ne,j)=>{let be=M,{u0:_e,u1:je}=Q.current,Xe=je-_e,Ge=j===null?0.5:Math.min(1,Math.max(0,j/be)),ht=_e+Xe*Ge,Se=Xe*ne;ye(ce(ht-Se*Ge,ht+Se*(1-Ge)))},[M,ye,ce]),we=Et.useCallback((ne)=>{let{u0:j,u1:be}=Q.current;ye(ce(j+ne,be+ne))},[ye,ce]),te=Et.useCallback((ne)=>{let j=i.toU(ne.start),be=i.toU(ne.end),_e=Math.max((be-j)*0.1,Qb/2);ye(ce(j-_e,be+_e))},[i,ye,ce]);Et.useEffect(()=>{let ne=T.current;if(!ne)return;let j=(be)=>{be.preventDefault();let _e=ne.getBoundingClientRect(),je=be.clientX-_e.left;oe.current=je,B(null);let Xe=ne.clientWidth||1,Ge=()=>Q.current.u1-Q.current.u0;if(be.shiftKey){let ht=Math.abs(be.deltaY)>=Math.abs(be.deltaX)?be.deltaY:be.deltaX;we(ht/Xe*Ge());return}if(be.deltaX!==0)we(be.deltaX/Xe*Ge());if(be.deltaY!==0)xe(1.0015**be.deltaY,je)};return ne.addEventListener("wheel",j,{passive:!1}),()=>ne.removeEventListener("wheel",j)},[xe,we]);let me=Et.useCallback((ne,j)=>{let be=T.current;if(!be)return null;let _e=be.getBoundingClientRect(),je=ne-_e.left,Xe=j-_e.top,Ge=pe.current;for(let ht=Ge.length-1;ht>=0;ht--){let Se=Ge[ht];if(je>=Se.x&&je<=Se.x+Se.w&&Xe>=Se.y&&Xe<=Se.y+Se.h)return Se}return null},[]),Ce=Et.useCallback(()=>{let ne=L.current;if(!ne)return;let{clientX:j,clientY:be}=_.current,_e=Math.min(j+14,window.innerWidth-320),je=be+16>window.innerHeight-140?be-120:be+16;ne.style.transform=`translate(${_e}px, ${je}px)`},[]),We=(ne)=>{ne.currentTarget.setPointerCapture(ne.pointerId),W.current={pointerId:ne.pointerId,lastX:ne.clientX,moved:!1},ne.currentTarget.focus()},bt=(ne)=>{let j=ne.currentTarget.getBoundingClientRect();oe.current=ne.clientX-j.left;let be=W.current;if(be&&be.pointerId===ne.pointerId){let je=ne.clientX-be.lastX;if(Math.abs(je)>0){if(Math.abs(je)>2)be.moved=!0;be.lastX=ne.clientX;let Xe=Q.current.u1-Q.current.u0;we(-je/(M||1)*Xe)}B(null);return}_.current={clientX:ne.clientX,clientY:ne.clientY};let _e=me(ne.clientX,ne.clientY);if($D(_e,V.current))Ce();else B(_e)},J=(ne)=>{let j=W.current;if(W.current=null,j?.moved)return;let be=me(ne.clientX,ne.clientY);if(be?.kind==="span")y(be.span.id);else y(null)},Ne=(ne)=>{let j=me(ne.clientX,ne.clientY);if(j?.kind==="span")te(j.span)},vt=Et.useCallback((ne)=>{let j=f?.span.id;if(!j)return;for(let be of H.lanes){let _e=be.spans.findIndex((Ge)=>Ge.id===j);if(_e===-1)continue;let je=be.spans[_e+ne];if(!je)return;y(je.id);let Xe=i.toU(je.start);if(Xe<u.u0||Xe>u.u1){let Ge=u.u1-u.u0;d(ce(Xe-Ge/2,Xe+Ge/2))}return}},[f,H,y,i,u,d,ce]),St=(ne)=>{let j=u.u1-u.u0;switch(ne.key){case"w":case"W":xe(0.7692307692307692,oe.current);break;case"s":case"S":xe(1.3,oe.current);break;case"a":case"A":we(-j*0.2);break;case"d":case"D":we(j*0.2);break;case"0":d({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":if(f)te(f.span);break;case"Escape":y(null);break;case",":vt(-1);break;case".":vt(1);break;default:return}ne.preventDefault(),ne.stopPropagation()};Et.useEffect(()=>{if(h)T.current?.focus({preventScroll:!0})},[h]),Et.useEffect(()=>{let ne=T.current;if(!ne)return;let j=requestAnimationFrame(()=>{pe.current=jD(ne,H,F,i,u,C,M,m)});return()=>cancelAnimationFrame(j)},[H,F,i,u,C,M,m]);let re=U?.kind==="span"?kT(U,H,i,u,M):null,Pe=f?kT(f,H,i,u,M):null;Et.useLayoutEffect(()=>{if(U)Ce()},[U,Ce]);let ze=U?XD(U,x,L):null,K=Math.floor(M*devicePixelRatio),Me=Math.floor(H.totalHeight*devicePixelRatio),lt={width:M,height:H.totalHeight};return It.jsxDEV("div",{ref:k,className:"traces-timeline",children:[It.jsxDEV("div",{style:{width:LT,flexShrink:0,position:"relative",height:H.totalHeight},children:H.blocks.map((ne)=>It.jsxDEV("div",{children:[It.jsxDEV("div",{style:{position:"absolute",top:ne.headerY,left:4+ne.depth*14,right:8,height:Kb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ne.hasChildren?It.jsxDEV("button",{type:"button",onClick:()=>S(ne.track.id),"aria-label":v.has(ne.track.id)?`Expand ${ne.track.label}`:`Collapse ${ne.track.label}`,className:"traces-chevron",children:v.has(ne.track.id)?It.jsxDEV(xn,{size:12},void 0,!1,void 0,this):It.jsxDEV(Xs,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):It.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),It.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ne.track.label},void 0,!1,void 0,this),ne.track.model&&It.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ne.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ne.lanes.map((j)=>It.jsxDEV("div",{className:"traces-gutter-lane",style:{top:j.y,left:20+ne.depth*14,lineHeight:`${Co}px`},children:j.label},`${j.track.id}:${j.kind}`,!1,void 0,this))]},ne.track.id,!0,void 0,this))},void 0,!1,void 0,this),It.jsxDEV("div",{className:"traces-canvas-stack",style:lt,children:[It.jsxDEV("canvas",{ref:T,className:"traces-canvas",width:K,height:Me,style:lt,tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:We,onPointerMove:bt,onPointerUp:J,onPointerLeave:()=>{oe.current=null,B(null)},onDoubleClick:Ne,onKeyDown:St},void 0,!1,void 0,this),re&&U?.kind==="span"&&It.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:re.x,top:re.y,width:re.w,height:Co,borderRadius:Hm,opacity:m===null||m.has(U.span.id)?1:Wb}},void 0,!1,void 0,this),Pe&&f&&It.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:Pe.x-1,top:Pe.y-1,width:Pe.w+2,height:Co+2,borderRadius:Hm,borderColor:C.selection,opacity:m===null||m.has(f.span.id)?1:Wb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ze&&wT.createPortal(ze,k.current?.getRootNode()instanceof ShadowRoot?k.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function Zb(r,i,u,d,f){if(r.beginPath(),d>=Hm*2+1)r.roundRect(i,u,d,f,Hm);else r.rect(i,u,d,f)}function jD(r,i,u,d,f,y,m,v){let S=[],x=r.getContext("2d");if(!x)return S;let h=i.totalHeight,C=devicePixelRatio;x.setTransform(C,0,0,C,0,0),x.clearRect(0,0,m,h);let{u0:k,u1:T}=f,L=Math.max(T-k,0.000000001),M=(D)=>(D-k)/L*m;for(let D of i.blocks){let U=D.turnSpans;for(let B=0;B<U.length;B++){let V=M(d.toU(U[B].start)),_=B+1<U.length?M(d.toU(U[B+1].start)):m;if(_<0||V>m)continue;if(B%2===1)x.fillStyle=y.turnBand,x.fillRect(Math.max(0,V),D.y0,Math.min(m,_)-Math.max(0,V),D.y1-D.y0);if(V>=0&&V<=m)x.strokeStyle=y.grid,x.beginPath(),x.moveTo(Math.round(V)+0.5,D.y0),x.lineTo(Math.round(V)+0.5,D.y1),x.stroke()}}x.font=`9px ${y.fontMono}`;for(let D of d.gaps){let U=M(D.uMid);if(U<-24||U>m+24)continue;x.save(),x.strokeStyle=y.grid,x.setLineDash([2,4]),x.beginPath(),x.moveTo(U,Wl),x.lineTo(U,h),x.stroke(),x.restore(),x.fillStyle=y.tick,x.textAlign="center",x.fillText(`⋯ ${Rt(D.t1-D.t0)}`,U,Wl-4),x.textAlign="left"}for(let D of xT(d,k,T,m)){let U=Math.round(M(D.u))+0.5;if(x.strokeStyle=y.grid,x.beginPath(),D.major)x.moveTo(U,4),x.lineTo(U,h);else x.moveTo(U,Wl-8),x.lineTo(U,Wl);if(x.stroke(),x.fillStyle=y.tick,D.major)x.fillText(D.label,U+4,11);else x.globalAlpha=0.75,x.fillText(D.label,U+3,Wl-10),x.globalAlpha=1}x.strokeStyle=y.grid,x.beginPath(),x.moveTo(0,Wl+0.5),x.lineTo(m,Wl+0.5),x.stroke(),x.font=`10px ${y.fontSans}`;for(let D=0;D<i.lanes.length;D++){let U=i.lanes[D],{startU:B,endU:V,maxEndU:_}=u[D],pe=U.kind==="turn";for(let W=VD(_,k);W<U.spans.length;W++){let oe=B[W];if(oe>T)break;let Q=V[W];if(Q<k)continue;let H=U.spans[W],F=M(oe),ce=Math.max(TT,M(Q)-F),ye=U.y,xe=v===null||v.has(H.id)?1:Wb,we=y.category[H.kind];if(x.globalAlpha=xe,pe)x.fillStyle=we,x.globalAlpha=xe*0.23,Zb(x,F,ye,ce,Co),x.fill(),x.globalAlpha=xe,x.fillStyle=we,x.fillRect(F,ye,2,Co);else x.fillStyle=we,Zb(x,F,ye,ce,Co),x.fill();if(H.isError)x.fillStyle=y.errorSoft,Zb(x,F,ye,ce,Co),x.fill(),x.fillStyle=y.error,x.fillRect(F,ye,2,Co);if(H.kind==="model"&&typeof H.ttft==="number"&&H.ttft>0&&ce>20){let me=M(d.toU(H.start+H.ttft));if(me>F+1&&me<F+ce-1)x.fillStyle="rgba(0,0,0,0.5)",x.fillRect(me,ye+3,1,Co-6)}if(H.unterminated)x.save(),x.strokeStyle=y.tick,x.setLineDash([2,2]),x.beginPath(),x.moveTo(F+ce-0.5,ye),x.lineTo(F+ce-0.5,ye+Co),x.stroke(),x.restore();if(ce>_D)x.save(),x.beginPath(),x.rect(F+3,ye,ce-6,Co),x.clip(),x.fillStyle=pe?y.tick:y.spanText,x.fillText(H.label,F+5,ye+Co-5),x.restore();x.globalAlpha=1;let te=Math.max(ce,zD);S.push({kind:"span",x:F-(te-ce)/2,y:ye,w:te,h:Co,span:H,track:U.track})}}for(let D of i.blocks)for(let U of D.track.markers){let B=M(d.toU(U.time));if(B<-6||B>m+6)continue;let V=D.headerY+Kb/2;x.fillStyle=y.marker,x.beginPath(),x.moveTo(B,V-4),x.lineTo(B+4,V),x.lineTo(B,V+4),x.lineTo(B-4,V),x.closePath(),x.fill(),S.push({kind:"marker",x:B-5,y:V-5,w:10,h:10,marker:U,track:D.track})}return S}function kT({span:r,track:i},u,d,f,y){let{u0:m,u1:v}=f,S=d.toU(r.start),x=d.toU(r.end);if(S>v||x<m)return null;let h=u.lanes.find((L)=>L.track===i&&L.kind===r.kind);if(!h)return null;let C=Math.max(v-m,0.000000001),k=(S-m)/C*y,T=(x-m)/C*y;return{x:k,y:h.y,w:Math.max(TT,T-k)}}function XD(r,i,u){let d={left:0,top:0};if(r.kind==="marker"){let{marker:y}=r;return It.jsxDEV("div",{ref:u,className:"traces-tooltip",style:d,children:[It.jsxDEV("div",{className:"traces-tooltip-title",children:y.label},void 0,!1,void 0,this),It.jsxDEV("div",{className:"muted num",children:[new Date(y.time).toLocaleTimeString()," (",Ti(y.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:f}=r;return It.jsxDEV("div",{ref:u,className:"traces-tooltip",style:d,children:[It.jsxDEV("div",{className:"traces-tooltip-title truncate",children:f.label},void 0,!1,void 0,this),It.jsxDEV("div",{className:"muted num",children:[Rt(f.end-f.start)," · ",new Date(f.start).toLocaleTimeString()," (",Ti(f.start-i),")",f.unterminated?" · unterminated":""]},void 0,!0,void 0,this),f.kind==="model"&&It.jsxDEV("div",{className:"muted num",children:[f.tokens!==void 0&&It.jsxDEV(It.Fragment,{children:[N(f.tokens)," tok"]},void 0,!0,void 0,this),f.cost!==void 0&&It.jsxDEV(It.Fragment,{children:[" · $",f.cost.toFixed(4)]},void 0,!0,void 0,this),f.ttft!==void 0&&It.jsxDEV(It.Fragment,{children:[" · TTFT ",Rt(f.ttft)]},void 0,!0,void 0,this),f.isError&&It.jsxDEV(It.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f.kind==="subagent"&&f.model&&It.jsxDEV("div",{className:"muted num",children:f.model},void 0,!1,void 0,this),f.detail&&It.jsxDEV("div",{className:"traces-tooltip-detail",children:f.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mn=X(ct(),1);var Fa=X(ue(),1),Ii=28,RT=20,YD=340;function QD(r){let i=[];for(let u of r){let d=u.id==="main"?0:u.id.split("/").length;for(let f of u.spans)i.push({key:f.id,time:f.start,span:f,track:u,depth:d});for(let f=0;f<u.markers.length;f++){let y=u.markers[f];i.push({key:`${u.id}:marker:${f}`,time:y.time,marker:y,track:u,depth:d})}}return i.sort((u,d)=>u.time-d.time),i}var MT=Mn.memo(function({tracks:i,selection:u,onSelect:d,search:f,matchIds:y,traceStart:m}){let v=ki(),S=Mn.useRef(null),[x,h]=Mn.useState(0),C=Mn.useMemo(()=>QD(i),[i]),k=Mn.useMemo(()=>{if(!y)return C;let D=f.trim().toLowerCase();return C.filter((U)=>U.span?y.has(U.span.id):(U.marker?.label??"").toLowerCase().includes(D))},[C,f,y]);Mn.useEffect(()=>{if(!u)return;let D=S.current;if(!D)return;let U=k.findIndex((V)=>V.span?.id===u);if(U===-1)return;let B=U*Ii;if(B<D.scrollTop||B+Ii>D.scrollTop+D.clientHeight)D.scrollTop=Math.max(0,B-D.clientHeight/2)},[u,k]);let T=Math.max(0,Math.floor(x/Ii)-RT),L=Math.min(k.length,Math.ceil((x+YD)/Ii)+RT),M=k.slice(T,L);return Fa.jsxDEV("div",{ref:S,onScroll:(D)=>h(D.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:k.length*Ii,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:T*Ii,left:0,right:0},children:M.map((D)=>{let U=D.span,B=U!==void 0&&U.id===u,V=D.span?v.category[D.span.kind]:v.marker,_=D.span?.label??D.marker?.label??"",pe=D.span?.detail,W=D.span?Rt(D.span.end-D.span.start):"",oe=D.span?.kind??D.marker?.kind??"",Q=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":V},children:oe},void 0,!1,void 0,this),D.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:D.track.label,children:D.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:_},void 0,!1,void 0,this),pe&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:pe},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[D.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:W},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:Ti(D.time-m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),H={paddingLeft:12+D.depth*12};return U?Fa.jsxDEV("button",{type:"button",onClick:()=>d(U.id),className:"traces-row","data-selected":B?"true":"false",style:H,children:Q},D.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:H,children:Q},D.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),k.length===0&&Fa.jsxDEV(Lt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var et=X(ue(),1),ZD=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],WD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function AT({file:r,active:i,onBack:u}){let d=Ht(["trace",r],({signal:y},m)=>aw(r,y,m),{pollMs:15000,enabled:i}),f=d.stale?null:d.data;return et.jsxDEV("div",{className:"stack traces-view",children:[et.jsxDEV("div",{children:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:u,children:[et.jsxDEV(pd,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),et.jsxDEV(na,{title:et.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?et.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:et.jsxDEV(jr,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),et.jsxDEV(Ve,{query:{...d,data:f},skeleton:et.jsxDEV(Bt,{height:420},void 0,!1,void 0,this),children:(y)=>et.jsxDEV(KD,{trace:y},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KD({trace:r,view:i="full",loadEntry:u,embedded:d=!1,onNavigate:f}){let[y,m]=At.useState("time"),[v,S]=At.useState(!0),[x,h]=At.useState(null),[C,k]=At.useState(!1),[T,L]=At.useState(""),[M,D]=At.useState(0),[U,B]=At.useState(new Set),[V,_]=At.useState(null),pe=At.useMemo(()=>r?.tracks??[],[r]),W=At.useMemo(()=>ST(pe,y,v),[pe,y,v]),oe=At.useRef(W),Q=At.useRef(null);At.useEffect(()=>{if(!r)return;if(Q.current===r.file)return;Q.current=r.file,h(null),L(""),_(null);let re=new Set;for(let Pe of r.tracks)if((Pe.id==="main"?0:Pe.id.split("/").length)>=1)re.add(Pe.id);B(re)},[r]),At.useEffect(()=>{let re=oe.current;oe.current=W,_((Pe)=>{if(!Pe)return Pe;let ze=re.toT(Pe.u0),K=re.toT(Pe.u1),Me=W.toU(ze),lt=W.toU(K);return lt-Me>0?{u0:Me,u1:lt}:null})},[W]);let H=At.useMemo(()=>V??{u0:W.domain[0],u1:W.domain[1]},[V,W]),F=At.useMemo(()=>{let re=[];for(let Pe of pe)for(let ze of Pe.spans)re.push({span:ze,track:Pe});return re.sort((Pe,ze)=>Pe.span.start-ze.span.start),re},[pe]),ce=At.useMemo(()=>{let re=T.trim().toLowerCase();if(!re)return[];return F.filter(({span:Pe})=>`${Pe.label} ${Pe.detail??""}`.toLowerCase().includes(re))},[F,T]),ye=At.useMemo(()=>T.trim()?new Set(ce.map(({span:re})=>re.id)):null,[ce,T]),xe=At.useCallback((re)=>{let Pe=W.toU(re.start),ze=W.toU(re.end);_((K)=>{let Me=K??{u0:W.domain[0],u1:W.domain[1]};if(Pe>=Me.u0&&ze<=Me.u1)return K;let lt=Me.u1-Me.u0,ne=(Pe+ze)/2,[j,be]=W.domain,_e=ne-lt/2;if(_e<j)_e=j;if(_e+lt>be)_e=Math.max(j,be-lt);return{u0:_e,u1:_e+lt}})},[W]),we=At.useCallback((re)=>{h(re);let Pe=F.find(({span:ze})=>ze.id===re);if(Pe)xe(Pe.span)},[F,xe]),te=At.useCallback((re)=>{h(re),k(re!==null)},[]),me=At.useCallback((re)=>{if(ce.length===0)return;let Pe=((M+re)%ce.length+ce.length)%ce.length;D(Pe),we(ce[Pe].span.id)},[ce,M,we]),Ce=At.useCallback((re)=>{B((Pe)=>{let ze=new Set(Pe);if(ze.has(re))ze.delete(re);else ze.add(re);return ze})},[]),We=At.useMemo(()=>{if(!x)return null;return F.find(({span:re})=>re.id===x)??null},[x,F]),bt=At.useCallback((re)=>{let Pe=pe.find((K)=>K.id===re),ze=Pe?.spans[0];if(B((K)=>{let Me=new Set(K),lt=Pe;while(lt?.parentId)Me.delete(lt.parentId),lt=pe.find((ne)=>ne.id===lt?.parentId);return Me}),ze)we(ze.id)},[pe,we]),J=At.useCallback((re)=>{if(!re){B(new Set);return}let Pe=new Set;for(let ze of pe)if(ze.id!=="main")Pe.add(ze.id);B(Pe)},[pe]),Ne=At.useCallback((re)=>{we(re),k(!0)},[we]),vt=At.useCallback(()=>k(!1),[]),St=r.startedAt;return et.jsxDEV("div",{className:"stack traces-view","data-view":i,children:[i==="full"&&et.jsxDEV(bT,{summary:r.summary},void 0,!1,void 0,this),F.length===0&&et.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),et.jsxDEV(Ze,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:et.jsxDEV(et.Fragment,{children:[et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>J(!1),children:"Expand all"},void 0,!1,void 0,this),et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>J(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:et.jsxDEV("div",{className:"stack",children:[et.jsxDEV("div",{className:"traces-toolbar",children:[et.jsxDEV(za,{options:ZD,value:y,onChange:m,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),y==="time"&&et.jsxDEV("label",{className:"traces-check",children:[et.jsxDEV("input",{type:"checkbox",checked:v,onChange:(re)=>S(re.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),et.jsxDEV("div",{className:"traces-search",children:[et.jsxDEV(cl,{value:T,onChange:(re)=>{L(re),D(0)},label:"Search spans",placeholder:"Search spans…",width:200},void 0,!1,void 0,this),T.trim()&&et.jsxDEV(et.Fragment,{children:[et.jsxDEV("span",{className:"num muted traces-match-count",children:ce.length===0?"0":`${M%Math.max(ce.length,1)+1}/${ce.length}`},void 0,!1,void 0,this),et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>me(-1),"aria-label":"Previous match",disabled:ce.length===0,children:et.jsxDEV(yd,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>me(1),"aria-label":"Next match",disabled:ce.length===0,children:et.jsxDEV(xn,{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),et.jsxDEV("div",{className:"traces-legend",children:WD.map((re)=>et.jsxDEV("span",{className:"traces-legend-item",children:[et.jsxDEV("span",{className:"swatch",style:{background:`var(${ru[re.kind]})`}},void 0,!1,void 0,this),re.label]},re.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),et.jsxDEV(hT,{tracks:pe,scale:W,viewport:H,onViewportChange:_},void 0,!1,void 0,this),et.jsxDEV(IT,{tracks:pe,scale:W,viewport:H,onViewportChange:_,selected:We,onSelect:te,matchIds:ye,collapsed:U,onToggleCollapse:Ce,traceStart:St,autoFocus:!d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),et.jsxDEV(yT,{span:C?We?.span??null:null,track:We?.track??null,onClose:vt,onOpenChildTrack:bt,loadEntry:u,inline:d,onNavigate:f},void 0,!1,void 0,this),i==="full"&&et.jsxDEV(Ze,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:et.jsxDEV(MT,{tracks:pe,selection:x,onSelect:Ne,search:T,matchIds:ye,traceStart:St},void 0,!1,void 0,this)},void 0,!1,void 0,this),i==="full"&&et.jsxDEV(pT,{toolStats:r.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Jt=X(ue(),1),DT=200;function JD({models:r}){if(r.length===0)return Jt.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return Jt.jsxDEV("span",{className:"traces-models",title:r.join(`
236
- `),children:[Jt.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&Jt.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ET({active:r,session:i,onOpenSession:u}){let[d,f]=Ri.useState(""),y=Ht(["sessions",DT],({signal:h})=>tw(DT,void 0,h),{pollMs:30000,enabled:r&&i===null}),m=Ri.useMemo(()=>{let h=y.data??[],C=d.trim().toLowerCase();if(!C)return h;return h.filter((k)=>(k.title??"").toLowerCase().includes(C)||k.folder.toLowerCase().includes(C)||k.models.some((T)=>T.toLowerCase().includes(C)))},[y.data,d]),v=Ri.useMemo(()=>Math.max(0,...m.map((h)=>h.costTotal)),[m]),S=Ri.useMemo(()=>[{key:"title",header:"Session",width:"32%",render:(h)=>Jt.jsxDEV(_a,{primary:h.title??h.file.split("/").pop(),secondary:Jt.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:"Models",render:(h)=>Jt.jsxDEV(JD,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:"Started",align:"right",render:(h)=>Jt.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:da(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:"Duration",align:"right",render:(h)=>Jt.jsxDEV("span",{className:"num",children:Ks(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:"Requests",align:"right",render:(h)=>Jt.jsxDEV("span",{className:"num",children:N(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:"Tools",align:"right",render:(h)=>Jt.jsxDEV("span",{className:"num",children:N(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:"Agents",align:"right",render:(h)=>h.subagents>0?Jt.jsxDEV("span",{className:"num",children:N(h.subagents)},void 0,!1,void 0,this):Jt.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:"Tokens",align:"right",render:(h)=>Jt.jsxDEV("span",{className:"num",children:Ae(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(h)=>Jt.jsxDEV(fa,{value:h.costTotal,max:v,display:_t(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[v]);if(i!==null)return Jt.jsxDEV(AT,{file:i,active:r,onBack:()=>u(null)},void 0,!1,void 0,this);let x=y.data?.length??0;return Jt.jsxDEV("div",{className:"stack traces-page",children:[Jt.jsxDEV(na,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),Jt.jsxDEV(Ze,{title:"Sessions",description:y.data?d.trim()?`${N(m.length)} of ${N(x)} most recent`:`${N(x)} most recent`:void 0,actions:Jt.jsxDEV(cl,{value:d,onChange:f,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:y.stale,children:Jt.jsxDEV(Ve,{query:y,skeleton:Jt.jsxDEV(ia,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:Jt.jsxDEV(Lt,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>Jt.jsxDEV($t,{columns:S,rows:m,rowKey:(h)=>h.file,onRowClick:(h)=>u(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:Jt.jsxDEV(Lt,{title:"No matching sessions",hint:"Try a different filter."},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 Ma=X(ue(),1);function Jb(){return Ma.jsxDEV(uw,{children:Ma.jsxDEV(eE,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function eE(){let{section:r,setSection:i,range:u,setRange:d,session:f,setSession:y}=Tw(),[m,v]=Mi.useState(null),S=Mi.useCallback(()=>v(null),[]),x=Mi.useRef(new Set);x.current.add(r);let h=(C)=>{let k=C===r;switch(C){case"overview":return Ma.jsxDEV(aT,{active:k,range:u,onRequestClick:v},void 0,!1,void 0,this);case"requests":return Ma.jsxDEV(cT,{active:k,range:u,onRequestClick:v},void 0,!1,void 0,this);case"errors":return Ma.jsxDEV(jw,{active:k,range:u,onRequestClick:v},void 0,!1,void 0,this);case"traces":return Ma.jsxDEV(ET,{active:k,session:f,onOpenSession:y},void 0,!1,void 0,this);case"models":return Ma.jsxDEV(Kw,{active:k,range:u},void 0,!1,void 0,this);case"providers":return Ma.jsxDEV(uT,{active:k,range:u},void 0,!1,void 0,this);case"costs":return Ma.jsxDEV(Vw,{active:k,range:u},void 0,!1,void 0,this);case"tools":return Ma.jsxDEV(fT,{active:k,range:u},void 0,!1,void 0,this);case"frustration":return Ma.jsxDEV(Yw,{active:k,range:u},void 0,!1,void 0,this);case"projects":return Ma.jsxDEV(nT,{active:k,range:u},void 0,!1,void 0,this);case"gain":return Ma.jsxDEV(Zw,{active:k,range:u},void 0,!1,void 0,this)}};return Ma.jsxDEV(Ma.Fragment,{children:[Ma.jsxDEV(ww,{section:r,onSectionChange:i,range:u,onRangeChange:d,children:[...x.current].map((C)=>Ma.jsxDEV("div",{hidden:C!==r,children:h(C)},C,!1,void 0,this))},void 0,!1,void 0,this),Ma.jsxDEV(iT,{id:m,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var NT=X(ue(),1),qT=document.getElementById("root");if(!qT)throw Error("missing #root");OT.createRoot(qT).render(NT.jsxDEV(Jb,{},void 0,!1,void 0,this));
235
+ <%s key={someKey} {...props} />`,Ct,_e,ia,_e),pt[_e+Ct]=!0)}if(_e=null,kt!==void 0&&(s(kt),_e=""+kt),h(Pe)&&(s(Pe.key),_e=""+Pe.key),"key"in Pe){kt={};for(var oa in Pe)oa!=="key"&&(kt[oa]=Pe[oa])}else kt=Pe;return _e&&y(kt,typeof W==="function"?W.displayName||W.name||"Unknown":W),b(W,_e,kt,c(),me,je)}function x(W){L(W)?W._store&&(W._store.validated=1):typeof W==="object"&&W!==null&&W.$$typeof===J&&(W._payload.status==="fulfilled"?L(W._payload.value)&&W._payload.value._store&&(W._payload.value._store.validated=1):W._store&&(W._store.validated=1))}function L(W){return typeof W==="object"&&W!==null&&W.$$typeof===w}var w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),F=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),V=Symbol.for("react.client.reference"),ke=Ai.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=Object.prototype.hasOwnProperty,Oe=Array.isArray,Le=console.createTask?console.createTask:function(){return null};Ai={react_stack_bottom_frame:function(W){return W()}};var oe,be={},Me=Ai.react_stack_bottom_frame.bind(Ai,g)(),Ze=Le(d(g)),pt={};QD.Fragment=T,QD.jsxDEV=function(W,Pe,kt,Ct){var me=1e4>ke.recentlyCreatedOwnerStacks++;return p(W,Pe,kt,Ct,me?Error("react-stack-top-frame"):Me,me?Le(d(W)):Ze)}})()});var F2=U(ew(),1);var md=U(et(),1);var ph=U(et(),1);var tw=(n)=>n?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function aw(n,i,s=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:tw(n),size:24,node:i,...s.length>0?{aliases:s}:{}}}var ow=(n)=>{let i="",s=!1;for(let d of n){if(d==="-"||d==="_"||d<=" "){s=i.length>0;continue}if(i.length===0)i+=d.toLowerCase();else i+=s?d.toUpperCase():d;s=!1}return i};var nw=(n)=>{let i=ow(n);return i.charAt(0).toUpperCase()+i.slice(1)};var Qc=U(et(),1);var Yc=(...n)=>n.filter((i,s,d)=>Boolean(i)&&i.trim()!==""&&d.indexOf(i)===s).join(" ").trim();var vs={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 Db(n){return n!==null&&n!==void 0}function lw(n,i={}){let s=i.attributeNames??{},d=(L)=>s[L]??L,c=n.size??n.width??vs.width,g=n.size??n.height??vs.height,h=n.aliases?.filter((L)=>typeof L==="string"&&L.trim()!=="").map((L)=>`lucide-${L}`)??[],y=[...n.name?[`lucide-${n.name}`]:[],...h],m=i.className?.split(" ").filter(Boolean)??[],b=i.includeDefaultClasses===!1?Yc(...m):Yc("lucide",...y,...m),p=i.absoluteStrokeWidth?Number(i.strokeWidth??vs["stroke-width"])*Number(n.size??n.width??vs.width)/Number(i.size??i.width??vs.width):i.strokeWidth??vs["stroke-width"];return["svg",{...Object.entries(vs).reduce((L,[w,C])=>(L[d(w)]=C,L),{}),..."color"in i&&i.color&&{[d("stroke")]:i.color},..."size"in i&&Db(i.size)&&{[d("width")]:i.size,[d("height")]:i.size},..."width"in i&&Db(i.width)&&{[d("width")]:i.width},..."height"in i&&Db(i.height)&&{[d("height")]:i.height},[d("stroke-width")]:p,...b&&{[d("class")]:b},[d("viewBox")]:`0 0 ${c} ${g}`,...i.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},n.node.map((L)=>{let[w,C,T]=L,I=i.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...C}:C;return T?[w,I,T]:[w,I]})]}function rw(n,i={}){return lw(n,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var sw=(n)=>{for(let i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var Yu=U(et(),1),BD=Yu.createContext({});var iw=()=>Yu.useContext(BD);var uw=Qc.forwardRef(({color:n,size:i,width:s,height:d,strokeWidth:c,absoluteStrokeWidth:g,nonScalingStroke:h,className:y="",children:m,iconNode:b=[],icon:p={node:b,aliases:[],size:24},...x},L)=>{let{size:w=24,strokeWidth:C=2,absoluteStrokeWidth:T=!1,nonScalingStroke:I=!1,color:O="currentColor",className:B=""}=iw()??{},F=Boolean(m)||sw(x),[X,ie,Q=[]]=rw(p,{color:n??O,width:s??i??w,height:d??i??w,strokeWidth:c??C,absoluteStrokeWidth:g??T,nonScalingStroke:h??I,className:Yc(B,y),hasA11yProp:F,attributes:x});return Qc.createElement(X,{ref:L,...ie},[...Q.map(([de,J])=>Qc.createElement(de,J)),...Array.isArray(m)?m:[m]])});function ne(n,i=[],s=[]){let d=typeof n==="string"?aw(n,i,s):n,c=ph.forwardRef(({className:g,...h},y)=>ph.createElement(uw,{ref:y,icon:d,className:g,...h}));if(d.name)c.displayName=nw(d.name);return c}var dw={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"]};dw.node;var bs=ne(dw);var cw={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"]};cw.node;var xs=ne(cw);var fw={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"]};fw.node;var Ss=ne(fw);var pw={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"]};pw.node;var ks=ne(pw);var mw={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"]};mw.node;var Cs=ne(mw);var hw={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"]};hw.node;var Ls=ne(hw);var gw={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"]};gw.node;var ws=ne(gw);var yw={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"]};yw.node;var Ol=ne(yw);var vw={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"]};vw.node;var Wn=ne(vw);var bw={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"]};bw.node;var Ts=ne(bw);var xw={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"]};xw.node;var dn=ne(xw);var Sw={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"}]]};Sw.node;var Wc=ne(Sw);var kw={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"}]]};kw.node;var Zc=ne(kw);var Cw={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};Cw.node;var Kc=ne(Cw);var Lw={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Lw.node;var Jc=ne(Lw);var ww={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};ww.node;var ef=ne(ww);var Tw={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Tw.node;var tf=ne(Tw);var Iw={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Iw.node;var af=ne(Iw);var Rw={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"}]]};Rw.node;var of=ne(Rw);var Mw={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Mw.node;var Ti=ne(Mw);var Aw={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Aw.node;var Ii=ne(Aw);var Dw={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};Dw.node;var nf=ne(Dw);var Ew={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Ew.node;var Zn=ne(Ew);var Nw={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"}]]};Nw.node;var lf=ne(Nw);var Ow={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"}]]};Ow.node;var Ri=ne(Ow);var qw={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"}]]};qw.node;var rf=ne(qw);var Bw={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"}]]};Bw.node;var sf=ne(Bw);var zw={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"}]]};zw.node;var uf=ne(zw);var Uw={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"}]]};Uw.node;var df=ne(Uw);var Pw={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"}]]};Pw.node;var cf=ne(Pw);var _w={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"}]]};_w.node;var ff=ne(_w);var Hw={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"}]]};Hw.node;var pf=ne(Hw);var Fw={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"}]]};Fw.node;var mf=ne(Fw);var Gw={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"}]]};Gw.node;var hf=ne(Gw);var Vw={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"}]]};Vw.node;var gf=ne(Vw);var $w={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"}]]};$w.node;var yf=ne($w);var jw={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"}]]};jw.node;var vf=ne(jw);var Xw={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"}]]};Xw.node;var bf=ne(Xw);var Yw={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Yw.node;var xf=ne(Yw);var Qw={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"}]]};Qw.node;var Sf=ne(Qw);var Ww={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"}]]};Ww.node;var kf=ne(Ww);var Zw={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"}]]};Zw.node;var Cf=ne(Zw);var Kw={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"}]]};Kw.node;var Is=ne(Kw);var Jw={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"}]]};Jw.node;var Lf=ne(Jw);var eT={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"}]]};eT.node;var wf=ne(eT);var tT={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"}]]};tT.node;var br=ne(tT);var aT={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"}]]};aT.node;var Tf=ne(aT);var oT={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};oT.node;var If=ne(oT);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 Rf=ne(nT);var lT={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"}]]};lT.node;var Mf=ne(lT);var rT={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"}]]};rT.node;var Mi=ne(rT);var sT={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};sT.node;var So=ne(sT);var od=U(et(),1);var iT=["January","February","March","April","May","June","July","August","September","October","November","December"],uT=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],zD=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Rs(n,i=2){return String(n).padStart(i,"0")}function UD(n,i){let s=n.getMonth(),d=n.getDay(),c=n.getHours(),g=c%12||12;switch(i){case"yyyy":return Rs(n.getFullYear(),4);case"yy":return Rs(n.getFullYear()%100);case"MMMM":return iT[s];case"MMM":return iT[s].slice(0,3);case"MM":return Rs(s+1);case"M":return String(s+1);case"dd":return Rs(n.getDate());case"d":return String(n.getDate());case"EEEE":return uT[d];case"EEE":return uT[d].slice(0,3);case"HH":return Rs(c);case"H":return String(c);case"hh":return Rs(g);case"h":return String(g);case"mm":return Rs(n.getMinutes());case"m":return String(n.getMinutes());case"ss":return Rs(n.getSeconds());case"s":return String(n.getSeconds());case"a":return c<12?"AM":"PM"}}function cT(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 En(n,i){let s=cT(n),d="";for(let c=0;c<i.length;){if(i[c]==="'"){if(i[c+1]==="'"){d+="'",c+=2;continue}c++;while(c<i.length){if(i[c]!=="'"){d+=i[c++];continue}if(i[c+1]==="'"){d+="'",c+=2;continue}c++;break}continue}let g=i.slice(c),h=zD.find((m)=>g.startsWith(m));if(h){d+=UD(s,h),c+=h.length;continue}let y=i[c++];if(/[A-Za-z]/.test(y))throw RangeError(`Format string contains an unescaped latin alphabet character \`${y}\``);d+=y}return d}function Ms(n,i){return`${n} ${n===1?i:`${i}s`}`}function PD(n,i){let s=(i.getFullYear()-n.getFullYear())*12+i.getMonth()-n.getMonth();if(s===0)return 0;let d=new Date(n);d.setDate(1),d.setFullYear(n.getFullYear(),n.getMonth()+s,1);let c=new Date(d.getFullYear(),d.getMonth()+1,0).getDate();if(d.setDate(Math.min(n.getDate(),c)),d.getTime()>i.getTime())s--;return s}function dT(n,i){let s=(i.getTime()-n.getTime())/1000,d=(i.getTimezoneOffset()-n.getTimezoneOffset())*60,c=Math.round((s-d)/60);if(c<2)return c===0?"less than a minute":"1 minute";if(c<45)return Ms(c,"minute");if(c<90)return"about 1 hour";if(c<1440)return`about ${Ms(Math.round(c/60),"hour")}`;if(c<2520)return"1 day";if(c<43200)return Ms(Math.round(c/1440),"day");if(c<86400)return`about ${Ms(Math.round(c/43200),"month")}`;let g=PD(n,i);if(g<12)return Ms(Math.round(c/43200),"month");let h=Math.trunc(g/12),y=g%12;if(y<3)return`about ${Ms(h,"year")}`;if(y<9)return`over ${Ms(h,"year")}`;return`almost ${Ms(h+1,"year")}`}function fT(n,i={}){let s=cT(n),d=new Date(Date.now()),c=s.getTime()>d.getTime(),g=c?dT(d,s):dT(s,d);if(!i.addSuffix)return g;return c?`in ${g}`:`${g} ago`}var pT=60000,mh=60*pT,ql=24*mh,Eb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:mh,bucketMs:5*pT},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:ql,bucketMs:mh},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*ql,bucketMs:ql},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*ql,bucketMs:ql},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*ql,bucketMs:ql},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:ql}},_D=1500,Qu=["1h","24h","7d","30d","90d","all"];function Kt(n){return Eb[n]}function Wu(n,i){if(i<ql)return En(new Date(n),i<mh?"HH:mm":"MMM d HH:mm");return En(new Date(n),"MMM d")}function hh(n,i){if(i<ql)return En(new Date(n),"HH:mm");return En(new Date(n),"MMM d")}function mo(n,i,s=Eb[n].bucketMs,d=Date.now()){let c=Math.floor(d/s)*s,g=Eb[n].spanMs,h;if(g!==null)h=Math.floor((d-g)/s)*s;else{h=c;for(let m of i)if(m<h)h=m;h=Math.floor(h/s)*s}h=Math.max(h,c-(_D-1)*s);let y=[];for(let m=h;m<=c;m+=s)y.push(m);return y}var Af=U(et(),1);class Nb extends Error{status;endpoint;constructor(n,i,s){super(s);this.name="ApiError",this.status=n,this.endpoint=i}}async function hT(n,i){try{let s=await n.json();if(typeof s==="object"&&s!==null&&"error"in s&&typeof s.error==="string")return s.error}catch{}return`HTTP error ${n.status} on ${i}`}var mT=new WeakMap;async function Aa(n,i,s){let d=typeof s==="object"&&s!==null?mT.get(s):void 0,c=i;if(d){let m=new Headers(i?.headers);m.set("If-None-Match",d),c={...i,headers:m}}let g=await fetch(n,c);if(g.status===304&&d)return s;if(!g.ok)throw new Nb(g.status,n,await hT(g,n));let h=await g.json(),y=g.headers.get("ETag");if(y&&typeof h==="object"&&h!==null)mT.set(h,y);return h}var Ob={"X-Omp-Stats-Action":"1"};async function gT(n="24h",i){return Aa(`/api/stats/overview?range=${encodeURIComponent(n)}`,{signal:i})}async function yT(n="24h",i){return Aa(`/api/stats/model-dashboard?range=${encodeURIComponent(n)}`,{signal:i})}async function vT(n="24h",i){return Aa(`/api/stats/costs?range=${encodeURIComponent(n)}`,{signal:i})}async function gh(n=50,i){return Aa(`/api/stats/recent?limit=${n}`,{signal:i})}async function bT(n="24h",i=50,s){return Aa(`/api/stats/errors?range=${encodeURIComponent(n)}&limit=${i}`,{signal:s})}async function xT(n,i){return Aa(`/api/request/${n}`,{signal:i})}async function ST(n){let{closable:i}=await Aa("/api/close",{signal:n});return i}async function kT(){let i=await fetch("/api/close",{method:"POST",headers:Ob});if(!i.ok)throw new Nb(i.status,"/api/close",await hT(i,"/api/close"))}async function CT(){return Aa("/api/sync",{method:"POST"})}async function LT(n="24h",i){return Aa(`/api/stats/frustration?range=${encodeURIComponent(n)}`,{signal:i})}async function wT(n,i){return Aa(`/api/frustration/estimate?range=${encodeURIComponent(n)}`,{signal:i})}async function TT(n){return Aa(`/api/frustration/judge?range=${encodeURIComponent(n)}`,{method:"POST",headers:Ob})}async function IT(){return Aa("/api/frustration/cancel",{method:"POST",headers:Ob})}async function RT(n="24h",i){return Aa(`/api/stats/folders?range=${encodeURIComponent(n)}`,{signal:i})}async function MT(n="24h",i,s){let d=new URLSearchParams({range:n});if(i)d.set("project",i);return Aa(`/api/stats/gain?${d}`,{signal:s})}async function AT(n="24h",i="all",s){return Aa(`/api/stats/spotlight?range=${encodeURIComponent(n)}&agent=${encodeURIComponent(i)}`,{signal:s})}async function DT(n,i){return Aa(`/api/stats/spotlight/session?file=${encodeURIComponent(n)}`,{signal:i})}async function ET(n="24h",i){return Aa(`/api/stats/tools?range=${encodeURIComponent(n)}`,{signal:i})}async function NT(n="24h",i){return Aa(`/api/stats/providers?range=${encodeURIComponent(n)}`,{signal:i})}async function qb(n,i,s){let d=new URLSearchParams({range:n});if(i!==null)d.set("provider",i);return Aa(`/api/stats/provider-windows?${d}`,{signal:s})}async function OT(n=100,i,s){let d=new URLSearchParams({limit:String(n)});if(i)d.set("q",i);return Aa(`/api/sessions?${d}`,{signal:s})}async function qT(n,i,s){return Aa(`/api/session/trace?file=${encodeURIComponent(n)}`,{signal:i,cache:"no-store"},s)}async function BT(n,i,s){return Aa(`/api/session/entry?file=${encodeURIComponent(n)}&id=${encodeURIComponent(i)}`,{signal:s})}var FD={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function GD(){CT().catch(()=>{})}var zT=null,UT=0,yh=0,As={sync:FD,indexingHours:0,connected:!1,requestSync:GD},zb=new Set;function PT(n){return zb.add(n),()=>zb.delete(n)}function _T(){for(let n of zb)n()}function VD(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 $D(n){if(zT!==n.version)zT=n.version,UT++;let i=Math.max(0,UT-1),s=n.indexingHours!==As.indexingHours||!VD(n.sync,As.sync);if(!s&&i===yh)return;if(yh=i,s)As={...As,sync:n.sync,indexingHours:n.indexingHours};_T()}function Bb(n){if(n===As.connected)return;As={...As,connected:n},_T()}var jD=()=>As,XD=()=>yh,YD=()=>-1;function Ub(){return yh}function HT({children:n}){return Af.useEffect(()=>{let i=new EventSource("/api/events");return i.onopen=()=>Bb(!0),i.onerror=()=>Bb(!1),i.onmessage=(s)=>$D(JSON.parse(s.data)),()=>{i.close(),Bb(!1)}},[]),n}function vh(){return Af.useSyncExternalStore(PT,jD)}function FT(n=!0){return Af.useSyncExternalStore(PT,n?XD:YD)}var bh=U(te(),1);function ht({tone:n="neutral",mono:i,children:s}){return bh.jsxDEV("span",{className:"badge","data-tone":n,"data-mono":i??!1,children:s},void 0,!1,void 0,this)}function Bl({tone:n="neutral",pulse:i}){return bh.jsxDEV("span",{className:"dot","data-tone":n,"data-pulse":i??!1},void 0,!1,void 0,this)}function Kn({color:n}){return bh.jsxDEV("span",{className:"swatch",style:{background:n}},void 0,!1,void 0,this)}function cn(n){if(n>=0.05)return"bad";if(n>=0.01)return"warn";return"ok"}var Go=U(te(),1);function ve({title:n,description:i,actions:s,flush:d,footer:c,className:g,index:h,stale:y,children:m}){let b=n!==void 0||i!==void 0||s!==void 0;return Go.jsxDEV("section",{className:g?`card rise ${g}`:"card rise",style:h!==void 0?{"--i":h}:void 0,children:[b&&Go.jsxDEV("header",{className:"card-header",children:[Go.jsxDEV("div",{className:"card-titles",children:[n!==void 0&&Go.jsxDEV("h2",{className:"card-title",children:n},void 0,!1,void 0,this),i!==void 0&&Go.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s!==void 0&&Go.jsxDEV("div",{className:"card-actions",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Go.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":y??!1,children:m},void 0,!1,void 0,this),c!==void 0&&Go.jsxDEV("footer",{className:"card-footer",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function pa({title:n,description:i,actions:s}){return Go.jsxDEV("header",{className:"page-header rise",children:[Go.jsxDEV("div",{children:[Go.jsxDEV("h1",{className:"page-title",children:n},void 0,!1,void 0,this),i!==void 0&&Go.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s!==void 0&&Go.jsxDEV("div",{className:"page-actions",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Df=U(et(),1),GT=U(Xc(),1),ho=U(te(),1);function Zu({open:n,onClose:i,title:s,subtitle:d,actions:c,width:g,children:h}){let y=Df.useRef(i);y.current=i;let m=Df.useRef(null);if(Df.useEffect(()=>{if(!n)return;let b=document.activeElement instanceof HTMLElement?document.activeElement:null;m.current?.focus();let p=(x)=>{if(x.key==="Escape")x.preventDefault(),y.current()};return window.addEventListener("keydown",p),()=>{window.removeEventListener("keydown",p),b?.focus()}},[n]),!n)return null;return GT.createPortal(ho.jsxDEV(ho.Fragment,{children:[ho.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),ho.jsxDEV("div",{ref:m,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:g!==void 0?{"--drawer-w":`${g}px`}:void 0,children:[ho.jsxDEV("header",{className:"drawer-header",children:[ho.jsxDEV("div",{className:"drawer-titles",children:[ho.jsxDEV("h2",{className:"drawer-title",children:s},void 0,!1,void 0,this),d!==void 0&&ho.jsxDEV("div",{className:"drawer-subtitle",children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c,ho.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:ho.jsxDEV(So,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ho.jsxDEV("div",{className:"drawer-body",children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function No({items:n}){return ho.jsxDEV("dl",{className:"kv",style:{margin:0},children:n.map((i)=>ho.jsxDEV("div",{className:"kv-item",children:[ho.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),ho.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 Di=U(et(),1),Jn=U(te(),1);function Ku({data:n,title:i="JSON",initialCollapsed:s=!1}){let[d,c]=Di.useState(s),[g,h]=Di.useState(!1),y=Di.useRef(0),m=JSON.stringify(n,null,2);return Di.useEffect(()=>()=>window.clearTimeout(y.current),[]),Jn.jsxDEV("div",{className:"stack",style:{gap:6},children:[Jn.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Jn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>c((p)=>!p),"aria-expanded":!d,children:[d?Jn.jsxDEV(Zn,{size:13},void 0,!1,void 0,this):Jn.jsxDEV(Ii,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),Jn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(m),h(!0),window.clearTimeout(y.current),y.current=window.setTimeout(()=>h(!1),1500)}catch{}},children:[g?Jn.jsxDEV(Ti,{size:13},void 0,!1,void 0,this):Jn.jsxDEV(Ri,{size:13},void 0,!1,void 0,this),g?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&Jn.jsxDEV("pre",{className:"code-block",children:Jn.jsxDEV("code",{children:m},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ei=U(et(),1),VT=U(Xc(),1);var el=U(te(),1);function $T({open:n,title:i,onClose:s,primaryAction:d,cancelLabel:c="Cancel",children:g}){let h=Ei.useRef(null),y=Ei.useRef(null),m=Ei.useRef(s);m.current=s,Ei.useEffect(()=>{if(!n)return;let L=document.activeElement instanceof HTMLElement?document.activeElement:null,w=(C)=>{if(C.key==="Escape")C.preventDefault(),m.current()};return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w),L?.focus()}},[n]);let b=d!==void 0,p=d?.disabled??!1;if(Ei.useEffect(()=>{if(!n)return;(b&&!p?h.current:y.current)?.focus()},[n,b,p]),!n)return null;return VT.createPortal(el.jsxDEV("div",{className:"modal-overlay",onClick:(L)=>{if(L.target===L.currentTarget)s()},role:"presentation",children:el.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[el.jsxDEV("div",{className:"modal-header",children:[el.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),el.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:s,"aria-label":"Close",children:el.jsxDEV(So,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),el.jsxDEV("div",{className:"modal-body",children:g},void 0,!1,void 0,this),el.jsxDEV("div",{className:"modal-footer",children:[el.jsxDEV("button",{ref:y,type:"button",className:"btn",onClick:s,children:c},void 0,!1,void 0,this),d&&el.jsxDEV("button",{ref:h,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var xh=U(te(),1);function zl({value:n,onChange:i,placeholder:s="Filter…",label:d="Filter",width:c}){return xh.jsxDEV("label",{className:"search",children:[xh.jsxDEV(If,{size:14},void 0,!1,void 0,this),xh.jsxDEV("input",{className:"input",type:"search","aria-label":d,value:n,placeholder:s,onChange:(g)=>i(g.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ju=U(et(),1),Sh=U(te(),1);function Da({options:n,value:i,onChange:s,size:d="md","aria-label":c}){let g=Ju.useRef(null),[h,y]=Ju.useState(null);return Ju.useLayoutEffect(()=>{let m=g.current,b=m?.querySelector('[data-active="true"]');if(!m||!b){y(null);return}let p=()=>y({left:b.offsetLeft,width:b.offsetWidth});p();let x=new ResizeObserver(p);return x.observe(m),()=>x.disconnect()},[i,n]),Sh.jsxDEV("div",{ref:g,className:"segmented","data-size":d,role:"radiogroup","aria-label":c,children:[h&&Sh.jsxDEV("span",{className:"segmented-thumb",style:{left:h.left,width:h.width}},void 0,!1,void 0,this),n.map((m)=>Sh.jsxDEV("button",{type:"button",role:"radio","aria-checked":m.value===i,className:"segmented-option","data-active":m.value===i,title:m.title,onClick:()=>s(m.value),children:m.label},m.value,!1,void 0,this))]},void 0,!0,void 0,this)}var ad=U(et(),1);var ed=U(et(),1);function kh(){let n=ed.useRef(null),[i,s]=ed.useState(0);return ed.useLayoutEffect(()=>{let d=n.current;if(!d)return;s(d.clientWidth);let c=new ResizeObserver((g)=>{let h=Math.round(g[0]?.contentRect.width??0);s((y)=>y===h?y:h)});return c.observe(d),()=>c.disconnect()},[]),[n,i]}var Ef=U(te(),1);function td({values:n,color:i="var(--chart-primary)",height:s=28,width:d,area:c=!0}){let[g,h]=kh(),y=d??h,m=Math.max(0,...n),b=Math.min(0,...n),p=n.length,x="";if(y>0&&p>0){let L=p>1?y/(p-1):0;for(let w=0;w<p;w++){let C=p>1?w*L:y/2,T=m>b?s-2-(n[w]-b)/(m-b)*(s-4):s-2;x+=`${w===0?"M":"L"}${C.toFixed(1)},${T.toFixed(1)}`}}return Ef.jsxDEV("div",{ref:g,className:"sparkline",style:{width:d??"100%",height:s},children:y>0&&p>0&&Ef.jsxDEV("svg",{width:y,height:s,"aria-hidden":"true",children:[c&&Ef.jsxDEV("path",{className:"area",d:`${x}L${y},${s}L0,${s}Z`,fill:i},void 0,!1,void 0,this),Ef.jsxDEV("path",{className:"chart-line",d:x,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Nn=U(te(),1);function ce({label:n,value:i,hint:s,delta:d,spark:c,sparkColor:g,size:h="md",title:y}){let m=ZD(typeof i==="string"||typeof i==="number"?i:null);return Nn.jsxDEV("div",{className:"stat","data-size":h,title:y,children:[Nn.jsxDEV("div",{className:"stat-label",children:n},void 0,!1,void 0,this),Nn.jsxDEV("div",{className:"stat-value","data-flash":m,children:i},void 0,!1,void 0,this),(s!==void 0||d)&&Nn.jsxDEV("div",{className:"stat-foot",children:[d&&Nn.jsxDEV(WD,{...d},void 0,!1,void 0,this),s!==void 0&&Nn.jsxDEV("span",{className:"truncate",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c&&c.length>1&&Nn.jsxDEV("div",{className:"stat-spark",children:Nn.jsxDEV(td,{values:c,color:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ca({min:n,children:i}){return Nn.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 WD({change:n,good:i="up"}){if(n===null||!Number.isFinite(n))return Nn.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let s=Math.abs(n)<0.0005?0:n,d=s===0?void 0:s>0===(i==="up")?"good":"bad",c=s>0?"+":s<0?"−":"±",g=Math.abs(s)*100;return Nn.jsxDEV("span",{className:"delta","data-tone":d,children:[c,g>=100?g.toFixed(0):g.toFixed(1),"%"]},void 0,!0,void 0,this)}function ZD(n){let i=ad.useRef(n),[s,d]=ad.useState(!1);return ad.useEffect(()=>{if(i.current===n)return;let c=i.current!==null;if(i.current=n,!c)return;d(!0);let g=setTimeout(()=>d(!1),900);return()=>clearTimeout(g)},[n]),s}var Ea=U(te(),1);function wt({title:n="Nothing here yet",hint:i}){return Ea.jsxDEV("div",{className:"empty",children:[Ea.jsxDEV(yf,{size:20},void 0,!1,void 0,this),Ea.jsxDEV("div",{className:"empty-title",children:n},void 0,!1,void 0,this),i!==void 0&&Ea.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ds({error:n,onRetry:i}){return Ea.jsxDEV("div",{className:"error-state",role:"alert",children:[Ea.jsxDEV(dn,{size:15},void 0,!1,void 0,this),Ea.jsxDEV("span",{className:"error-state-message",children:typeof n==="string"?n:n.message},void 0,!1,void 0,this),i&&Ea.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[Ea.jsxDEV(wf,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Za({width:n="100%",height:i=14,style:s}){return Ea.jsxDEV("div",{className:"skeleton",style:{width:n,height:i,...s}},void 0,!1,void 0,this)}function Ot({height:n=220}){return Ea.jsxDEV(Za,{height:n,style:{borderRadius:8}},void 0,!1,void 0,this)}function Ta({rows:n=6}){return Ea.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:n},(i,s)=>Ea.jsxDEV(Za,{height:16,width:`${92-s*13%30}%`},s,!1,void 0,this))},void 0,!1,void 0,this)}function Xe({query:n,skeleton:i,isEmpty:s,empty:d,children:c}){if(n.data===null){if(n.error)return Ea.jsxDEV(Ds,{error:n.error,onRetry:n.refetch},void 0,!1,void 0,this);return Ea.jsxDEV(Ea.Fragment,{children:i},void 0,!1,void 0,this)}return Ea.jsxDEV(Ea.Fragment,{children:[n.error&&Ea.jsxDEV(Ds,{error:n.error,onRetry:n.refetch},void 0,!1,void 0,this),s?.(n.data)?d??Ea.jsxDEV(wt,{},void 0,!1,void 0,this):c(n.data)]},void 0,!0,void 0,this)}var Ni=U(et(),1);var Pb="en-US";function R(n){return n.toLocaleString(Pb)}function re(n){return n.toLocaleString(Pb,{notation:"compact"})}function Et(n,i){if(n===0)return"$0";let s=i!==void 0?i:n>0&&n<0.01?4:2;return`$${n.toLocaleString(Pb,{minimumFractionDigits:s,maximumFractionDigits:s})}`}function Jt(n,i,s){return n===0&&i>0?"N/A":Et(n,s)}function _b(n){return n.usage.totalTokens>0&&n.usage.cost.total===0&&(n.provider==="xai-oauth"||n.costUnpriced===!0)}function Es(n,i){return Jt(n.usage.cost.total,_b(n)?1:0,i)}function He(n,i=1){return`${(n*100).toFixed(i)}%`}function ko(n){let i=n*100;if(i>0&&i<0.005)return"<0.01%";return He(n,i>0&&i<0.1?2:1)}function St(n,i){if(n===null)return"-";let s=n/1000,d=i!==void 0?i:s<1?2:1;return`${s.toFixed(d)}s`}function fn(n){if(n<60000)return St(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 Ul(n){if(n===null)return"-";return n.toFixed(1)}function xa(n){return fT(new Date(n),{addSuffix:!0})}function Oo(n){return En(new Date(n),"MMM d, HH:mm:ss")}function On(n){return n.replace(/^\/+|\/+$/g,"")||"(root)"}function Hb(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 Ut=U(te(),1);function Ft({columns:n,rows:i,rowKey:s,onRowClick:d,selectedKey:c,initialSort:g,limit:h,dense:y,empty:m,expanded:b}){let[p,x]=Ni.useState(g??null),[L,w]=Ni.useState(h??Number.POSITIVE_INFINITY),C=Ni.useMemo(()=>{let O=p?n.find((X)=>X.key===p.key):void 0;if(!p||!O?.sort)return i;let B=O.sort,F=p.dir==="asc"?1:-1;return[...i].sort((X,ie)=>{let Q=B(X),de=B(ie);if(typeof Q==="number"&&typeof de==="number")return(Q-de)*F;return String(Q).localeCompare(String(de))*F})},[i,n,p]);if(i.length===0)return Ut.jsxDEV(Ut.Fragment,{children:m??Ut.jsxDEV(wt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let T=C.length>L?C.slice(0,L):C,I=(O)=>{if(!O.sort)return;x((B)=>B?.key===O.key?{key:O.key,dir:B.dir==="asc"?"desc":"asc"}:{key:O.key,dir:O.align==="right"?"desc":"asc"})};return Ut.jsxDEV(Ut.Fragment,{children:[Ut.jsxDEV("div",{className:"table-wrap",children:Ut.jsxDEV("table",{className:"table","data-dense":y??!1,children:[Ut.jsxDEV("thead",{children:Ut.jsxDEV("tr",{children:n.map((O)=>{let B=p?.key===O.key?p.dir:void 0;return Ut.jsxDEV("th",{"data-align":O.align??"left","data-sortable":O.sort!==void 0,"data-sorted":B,style:O.width!==void 0?{width:O.width}:void 0,title:O.title,onClick:()=>I(O),"aria-sort":B==="asc"?"ascending":B==="desc"?"descending":void 0,children:[O.header,B&&Ut.jsxDEV("span",{className:"sort-arrow",children:B==="asc"?Ut.jsxDEV(af,{size:11},void 0,!1,void 0,this):Ut.jsxDEV(Kc,{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),Ut.jsxDEV("tbody",{children:T.map((O)=>{let B=s(O),F=b?.(O)??null;return Ut.jsxDEV(Ni.Fragment,{children:[Ut.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":c===B,onClick:d?()=>d(O):void 0,onKeyDown:d?(X)=>{if(X.key==="Enter"||X.key===" ")X.preventDefault(),d(O)}:void 0,tabIndex:d?0:void 0,children:n.map((X)=>Ut.jsxDEV("td",{"data-align":X.align??"left","data-wrap":X.wrap??!1,children:X.render(O)},X.key,!1,void 0,this))},void 0,!1,void 0,this),F!==null&&Ut.jsxDEV("tr",{children:Ut.jsxDEV("td",{colSpan:n.length,"data-wrap":"true",style:{padding:0},children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},B,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),h!==void 0&&C.length>h&&Ut.jsxDEV("div",{className:"table-more",children:[Ut.jsxDEV("span",{className:"micro",children:[R(T.length)," of ",R(C.length)]},void 0,!0,void 0,this),C.length>L&&Ut.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>w((O)=>O+h*4),children:"Show more"},void 0,!1,void 0,this),L>h&&Ut.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>w(h),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ia({value:n,max:i,display:s,color:d}){let c=i>0?Math.min(100,n/i*100):0;return Ut.jsxDEV("div",{className:"meter-cell",children:[Ut.jsxDEV("span",{className:"num",children:s},void 0,!1,void 0,this),Ut.jsxDEV("div",{className:"meter",children:Ut.jsxDEV("div",{className:"meter-fill",style:{width:`${c}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function oo({primary:n,secondary:i,lead:s}){return Ut.jsxDEV("div",{className:"row",style:{gap:10},children:[s,Ut.jsxDEV("div",{className:"stack",style:{gap:0},children:[Ut.jsxDEV("span",{className:"cell-primary truncate",children:n},void 0,!1,void 0,this),i!==void 0&&Ut.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 Nf=U(et(),1);function Ch(n){return n instanceof HTMLElement&&(n.isContentEditable||n.tagName==="INPUT"||n.tagName==="TEXTAREA"||n.tagName==="SELECT")}function Lh(){return document.querySelector('[aria-modal="true"]')!==null}var wh=U(te(),1);function XT(){let n=KD();if(Nf.useEffect(()=>{if(!n)return;let i=(s)=>{if(!JD(s))return;s.preventDefault(),jT()};return window.addEventListener("keydown",i),()=>window.removeEventListener("keydown",i)},[n]),!n)return null;return wh.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost",onClick:jT,title:"Close the dashboard (Esc)",children:[wh.jsxDEV(So,{size:15},void 0,!1,void 0,this),"Close",wh.jsxDEV("span",{className:"kbd",children:"Esc"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jT(){kT().catch((n)=>console.error("Closing the dashboard failed",n))}function KD(){let[n,i]=Nf.useState(!1);return Nf.useEffect(()=>{let s=new AbortController;return ST(s.signal).then(i,()=>{}),()=>s.abort()},[]),n}function JD(n){if(n.defaultPrevented||n.altKey||n.metaKey||n.shiftKey)return!1;if(Ch(n.target)||Lh())return!1;if(n.key==="Escape")return!n.ctrlKey;return n.ctrlKey&&n.key.toLowerCase()==="c"&&!window.getSelection()?.toString()}var Th=U(et(),1);var ma=U(te(),1);function YT(){let{sync:n,indexingHours:i,connected:s,requestSync:d}=vh(),c=tE(n.phase==="idle"?15000:null),g,h;if(!s)g=ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV(Bl,{tone:"warn"},void 0,!1,void 0,this),ma.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h="Lost the live connection to the stats server; retrying";else if(n.phase==="syncing")g=ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV(Is,{size:13,className:"spin"},void 0,!1,void 0,this),ma.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),n.total>0&&ma.jsxDEV("span",{className:"live-chip-count",children:[R(n.current),"/",R(n.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h="Ingesting session files";else if(n.phase==="error")g=ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV(Bl,{tone:"bad"},void 0,!1,void 0,this),ma.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h=`${n.error??"Sync failed"} — click to retry`;else if(i>eE)g=ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV(Is,{size:13,className:"spin"},void 0,!1,void 0,this),ma.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),ma.jsxDEV("span",{className:"live-chip-count",children:[R(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h="Building hourly rollups; older ranges fill in as it goes";else g=ma.jsxDEV(ma.Fragment,{children:[ma.jsxDEV(Bl,{tone:"live",pulse:!0},void 0,!1,void 0,this),ma.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),n.lastSyncedAt!==null&&ma.jsxDEV("span",{className:"live-chip-count",children:aE(c-n.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h="Click to sync session files now";return ma.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:n.phase==="syncing",title:h,children:g},void 0,!1,void 0,this)}var eE=24;function tE(n){let[i,s]=Th.useState(Date.now);return Th.useEffect(()=>{if(n===null)return;s(Date.now());let d=setInterval(()=>s(Date.now()),n);return()=>clearInterval(d)},[n]),i}function aE(n){let i=Math.max(0,Math.round(n/1000));if(i<45)return"just now";let s=Math.round(i/60);if(s<60)return`${s}m ago`;let d=Math.round(s/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var Ih=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:vf,hotkey:"o"},{id:"models",label:"Models",icon:sf,hotkey:"m"},{id:"providers",label:"Providers",icon:ws,hotkey:"p"},{id:"costs",label:"Costs",icon:lf,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:Wc,hotkey:"r"},{id:"errors",label:"Errors",icon:xs,hotkey:"e"},{id:"traces",label:"Traces",icon:Wn,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Mi,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Cs,hotkey:"f"},{id:"projects",label:"Projects",icon:ff,hotkey:"j"},{id:"gain",label:"Gain",icon:Ol,hotkey:"g"},{id:"spotlight",label:"Spotlight",icon:br,hotkey:"s"}]}],oE=Ih.flatMap((n)=>n.items),QT=oE.map((n)=>n.id);var Fb=U(et(),1),ZT="omp-stats-theme",KT="(prefers-color-scheme: dark)";function nE(){if(typeof localStorage>"u")return"system";let n=localStorage.getItem(ZT);return n==="light"||n==="dark"||n==="system"?n:"system"}function JT(){if(typeof window>"u")return"dark";return window.matchMedia(KT).matches?"dark":"light"}var Oi=nE(),Rh=Oi==="system"?JT():Oi,Gb=new Set;function eI(){for(let n of Gb)n()}function Vb(){if(Rh=Oi==="system"?JT():Oi,typeof document<"u")document.documentElement.dataset.theme=Rh,document.documentElement.style.colorScheme=Rh}if(typeof window<"u")Vb(),window.matchMedia(KT).addEventListener("change",()=>{if(Oi==="system")Vb(),eI()});function lE(n){if(Oi=n,typeof localStorage<"u")localStorage.setItem(ZT,n);Vb(),eI()}function WT(n){return Gb.add(n),()=>Gb.delete(n)}function tI(){let n=Fb.useSyncExternalStore(WT,()=>Oi,()=>"system"),i=Fb.useSyncExternalStore(WT,()=>Rh,()=>"dark");return{preference:n,resolved:i,setPreference:lE}}var $b=U(te(),1),rE={system:"light",light:"dark",dark:"system"},sE={system:Sf,light:Rf,dark:kf},aI={system:"System theme",light:"Light theme",dark:"Dark theme"};function oI(){let{preference:n,setPreference:i}=tI(),s=sE[n];return $b.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(rE[n]),"aria-label":`${aI[n]} (click to switch)`,title:`${aI[n]} — click to switch`,children:$b.jsxDEV(s,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var nt=U(te(),1),iE=Qu.map((n,i)=>({value:n,label:Kt(n).label,title:`${Kt(n).windowLabel} (${i+1})`}));function nI({section:n,onSectionChange:i,range:s,onRangeChange:d,children:c}){let[g,h]=od.useState(!1),y=uE(),{sync:m}=vh();dE(i,d);let b=(x)=>{i(x),h(!1),window.scrollTo({top:0})},p=m.phase==="syncing"?m.total>0?m.current/m.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":y,children:[nt.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>h(!0),"aria-label":"Open navigation",children:nt.jsxDEV(xf,{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:"omp-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("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),nt.jsxDEV("span",{children:"omp"},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:"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(YT,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),nt.jsxDEV(Da,{options:iE,value:s,onChange:d,"aria-label":"Time range"},void 0,!1,void 0,this),nt.jsxDEV(oI,{},void 0,!1,void 0,this),nt.jsxDEV(XT,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p!==void 0&&nt.jsxDEV("div",{className:"topbar-progress",children:nt.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":p===null,style:{width:`${(p??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:()=>h(!1),role:"presentation"},void 0,!1,void 0,this),nt.jsxDEV("nav",{className:"sidebar","data-open":g,"aria-label":"Pages",children:[Ih.map((x)=>nt.jsxDEV("div",{className:"nav-group",children:[nt.jsxDEV("div",{className:"nav-heading",children:x.heading},void 0,!1,void 0,this),x.items.map((L)=>nt.jsxDEV("button",{type:"button",className:"nav-row","data-active":L.id===n,"aria-current":L.id===n?"page":void 0,onClick:()=>b(L.id),children:[nt.jsxDEV(L.icon,{size:15},void 0,!1,void 0,this),nt.jsxDEV("span",{className:"nav-row-label",children:L.label},void 0,!1,void 0,this),nt.jsxDEV("kbd",{children:["G ",L.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},L.id,!0,void 0,this))]},x.heading,!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)," range"]},void 0,!0,void 0,this),nt.jsxDEV("span",{children:[nt.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},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:c},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function uE(){let[n,i]=od.useState(!1);return od.useEffect(()=>{let s=()=>i(window.scrollY>4);return s(),window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]),n}function dE(n,i){od.useEffect(()=>{let s=0,d=(c)=>{if(c.metaKey||c.ctrlKey||c.altKey||c.defaultPrevented)return;if(Ch(c.target)||Lh())return;let g=c.key.toLowerCase();if(s&&Date.now()-s<1200){s=0;let y=Ih.flatMap((m)=>m.items).find((m)=>m.hotkey===g);if(y)c.preventDefault(),n(y.id),window.scrollTo({top:0});return}if(g==="g"){s=Date.now();return}let h=Number(g)-1;if(Number.isInteger(h)&&h>=0&&h<Qu.length)c.preventDefault(),i(Qu[h])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[n,i])}var xr=U(et(),1);function Of(n){let[i,s]=n.replace(/^#\/?/,"").split("?"),d=QT.includes(i)?i:"overview",c=new URLSearchParams(s??""),g=c.get("range"),h=Qu.includes(g??"")?g:"24h";return{section:d,range:h,session:c.get("s")}}function Mh({section:n,range:i,session:s}){let d=s?`&s=${encodeURIComponent(s)}`:"";return`#/${n}?range=${i}${d}`}function lI(){let[n,i]=xr.useState(()=>Of(window.location.hash));xr.useEffect(()=>{let h=()=>i(Of(window.location.hash));window.addEventListener("hashchange",h),window.addEventListener("popstate",h);let y=Mh(Of(window.location.hash));if(window.location.hash!==y)history.replaceState(null,"",y);return()=>{window.removeEventListener("hashchange",h),window.removeEventListener("popstate",h)}},[]);let s=xr.useCallback((h)=>{i(h);let y=Mh(h);if(window.location.hash!==y)history.pushState(null,"",y)},[]),d=xr.useCallback((h)=>s({...n,section:h,session:h==="traces"?n.session:null}),[n,s]),c=xr.useCallback((h)=>s({...n,range:h}),[n,s]),g=xr.useCallback((h)=>s({...n,session:h}),[n,s]);return{...n,setSection:d,setRange:c,setSession:g}}var Bf=U(et(),1);var Pl=U(te(),1);function qi({items:n,max:i,onSelect:s}){let d=i??Math.max(0,...n.map((c)=>c.value));return Pl.jsxDEV("div",{className:"bar-list",children:n.map((c)=>{let g=d>0?Math.max(0.5,c.value/d*100):0,h=Pl.jsxDEV(Pl.Fragment,{children:[Pl.jsxDEV("span",{className:"bar-list-fill",style:{width:`${g}%`,background:c.color??"var(--chart-primary)"}},void 0,!1,void 0,this),Pl.jsxDEV("span",{className:"bar-list-label",children:c.label},void 0,!1,void 0,this),Pl.jsxDEV("span",{className:"bar-list-value",children:c.display??R(c.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return s?Pl.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>s(c.key),children:h},c.key,!1,void 0,this):Pl.jsxDEV("div",{className:"bar-list-row",children:h},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}var kr=U(et(),1);var it=U(te(),1),Sr=10,cE=24,fE=68,pE=4;function pn({slots:n,tickLabel:i,tooltipTitle:s,series:d,kind:c="bars",stacked:g=!0,height:h=220,format:y=re,formatRight:m,formatTooltip:b,yMax:p,yMaxRight:x,hidden:L,showTotal:w,references:C,markers:T,onSelect:I,emptyLabel:O="No data in this range",tooltipExtra:B}){let[F,X]=kh(),[ie,Q]=kr.useState(null),de=kr.useId().replace(/:/g,""),J=kr.useMemo(()=>d.filter((H)=>!L?.has(H.key)),[d,L]),P=kr.useMemo(()=>{let H=J.filter((Dt)=>Dt.axis!=="right"),ee=J.filter((Dt)=>Dt.axis==="right"),Y=(Dt)=>{let ua=Dt.kind??c;return g&&(ua==="bars"||ua==="area")},Se=new Map,Ae=Array.from({length:n},()=>0),rt=Array.from({length:n},()=>0),Ue=0,we=0;for(let Dt of H)if(Y(Dt)){let ua=Array.from({length:n},()=>0);for(let so=0;so<n;so++){let qs=Dt.values[so]??0;if(qs<0)ua[so]=rt[so],rt[so]+=qs;else ua[so]=Ae[so],Ae[so]+=qs}Se.set(Dt.key,ua)}else for(let ua=0;ua<n;ua++)Ue=Math.max(Ue,Dt.values[ua]??0),we=Math.min(we,Dt.values[ua]??0);for(let Dt=0;Dt<n;Dt++)Ue=Math.max(Ue,Ae[Dt]),we=Math.min(we,rt[Dt]);let ya=0,Ee=0;for(let Dt of ee)for(let ua=0;ua<n;ua++)ya=Math.max(ya,Dt.values[ua]??0),Ee=Math.min(Ee,Dt.values[ua]??0);for(let Dt of C??[])if(Dt.axis==="right")ya=Math.max(ya,Dt.value);else Ue=Math.max(Ue,Dt.value);let Un=Ah(p??Ue,we),$t=ee.length>0?Ah(x??ya,Ee):null,Fi=J.every((Dt)=>Dt.values.every((ua)=>!ua));return{left:H,right:ee,bases:Se,stackable:Y,leftScale:Un,rightScale:$t,empty:Fi}},[J,n,g,c,p,x,C]),V=P.leftScale.ticks.map((H)=>y(H)),ke=P.rightScale?.ticks.map((H)=>(m??y)(H))??[],pe=Math.max(28,rI(V)+12),Oe=P.rightScale?Math.max(28,rI(ke)+12):8,Le=Math.max(0,X-pe-Oe),oe=h-Sr-cE,be=n>0?Le/n:0,Me=(H,ee)=>Sr+oe-(ee-H.min)/(H.max-H.min)*oe,Ze=(H)=>Me(P.leftScale,H),pt=(H)=>P.rightScale?Me(P.rightScale,H):Ze(H),W=(H)=>pe+(H+0.5)*be,Pe=J.filter((H)=>(H.kind??c)==="bars"),kt=Pe.filter((H)=>!P.stackable(H)||H.axis==="right"),Ct=Math.max(1,Math.min(56,be*(be>6?0.72:0.9))),me=Math.max(1,Math.ceil(n/Math.max(1,Math.floor(Le/fE)))),je=(H)=>{let ee=H.currentTarget.getBoundingClientRect(),Y=Math.floor((H.clientX-ee.left)/(ee.width/n));Q(Y>=0&&Y<n?Y:null)},_e=ie===null?[]:J.filter((H)=>H.tooltip!==!1).map((H)=>({s:H,v:H.values[ie]})).filter((H)=>H.v!==null&&H.v!==void 0&&(H.v!==0||J.length===1)).sort((H,ee)=>J.length>1?ee.v-H.v:0),ia=_e.filter((H)=>H.s.axis!=="right").reduce((H,ee)=>H+ee.v,0),oa=w??(g&&P.left.length>1);return it.jsxDEV("div",{className:"chart",ref:F,"data-hovering":ie!==null,style:{height:h},children:[X>0&&it.jsxDEV("svg",{width:X,height:h,role:"img",children:[it.jsxDEV("defs",{children:J.filter((H)=>H.pattern==="hatch").map((H)=>it.jsxDEV("pattern",{id:`${de}-${jb(H.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[it.jsxDEV("rect",{width:"5",height:"5",fill:H.color,fillOpacity:"0.14"},void 0,!1,void 0,this),it.jsxDEV("rect",{width:"1.6",height:"5",fill:H.color},void 0,!1,void 0,this)]},H.key,!0,void 0,this))},void 0,!1,void 0,this),it.jsxDEV("g",{className:"chart-grid",children:P.leftScale.ticks.map((H)=>it.jsxDEV("line",{x1:pe,x2:pe+Le,y1:Ze(H),y2:Ze(H)},H,!1,void 0,this))},void 0,!1,void 0,this),it.jsxDEV("g",{className:"chart-axis",children:[P.leftScale.ticks.map((H,ee)=>it.jsxDEV("text",{x:pe-8,y:Ze(H),dy:"0.32em",textAnchor:"end",children:V[ee]},H,!1,void 0,this)),P.rightScale?.ticks.map((H,ee)=>it.jsxDEV("text",{x:pe+Le+8,y:pt(H),dy:"0.32em",textAnchor:"start",children:ke[ee]},H,!1,void 0,this)),Array.from({length:n},(H,ee)=>ee%me===0?it.jsxDEV("text",{x:W(ee),y:h-6,textAnchor:"middle",children:i(ee)},ee,!1,void 0,this):null)]},void 0,!0,void 0,this),ie!==null&&it.jsxDEV("rect",{className:"chart-cursor",x:pe+ie*be,y:Sr,width:be,height:oe},void 0,!1,void 0,this),J.filter((H)=>(H.kind??c)==="area").map((H)=>{let ee=H.axis==="right"?pt:Ze,Y=P.bases.get(H.key),Se=(we)=>(Y?.[we]??0)+(H.values[we]??0),Ae=sI(n,W,(we)=>ee(Se(we))),rt=Array.from({length:n},(we,ya)=>n-1-ya).map((we)=>`L${W(we).toFixed(1)},${ee(Y?.[we]??0).toFixed(1)}`).join(""),Ue=H.pattern==="hatch"?`url(#${de}-${jb(H.key)})`:H.color;return it.jsxDEV("g",{children:[it.jsxDEV("path",{d:`${Ae}${rt}Z`,fill:Ue,fillOpacity:H.pattern?1:0.2},void 0,!1,void 0,this),it.jsxDEV("path",{className:"chart-line",d:Ae,stroke:H.color,strokeDasharray:H.dashed?"4 3":void 0},void 0,!1,void 0,this)]},H.key,!0,void 0,this)}),Pe.map((H)=>{let ee=H.axis==="right"?pt:Ze,Y=P.bases.get(H.key),Se=kt.indexOf(H),Ae=Se>=0?Ct/kt.length:Ct,rt=H.pattern==="hatch"?`url(#${de}-${jb(H.key)})`:H.color;return it.jsxDEV("g",{children:H.values.map((Ue,we)=>{if(!Ue)return null;let ya=Se>=0?0:Y?.[we]??0,Ee=ee(ya),Un=ee(ya+Ue),$t=W(we)-Ct/2+(Se>=0?Se*Ae:0);return it.jsxDEV("rect",{className:"chart-bar","data-hover":ie===we,x:$t,y:Math.min(Ee,Un),width:Math.max(1,Ae-(Se>=0&&kt.length>1?1:0)),height:Math.max(Ue>0?1:0,Math.abs(Ee-Un)),fill:rt},we,!1,void 0,this)})},H.key,!1,void 0,this)}),J.filter((H)=>(H.kind??c)==="line").map((H)=>{let ee=H.axis==="right"?pt:Ze,Y=(Se)=>{let Ae=H.values[Se];return Ae===null||Ae===void 0?null:ee(Ae)};return it.jsxDEV("g",{children:[it.jsxDEV("path",{className:"chart-line",d:sI(n,W,Y),stroke:H.color,strokeDasharray:H.dashed?"4 3":void 0},void 0,!1,void 0,this),H.values.map((Se,Ae)=>{let rt=Y(Ae);if(rt===null||Ae>0&&Y(Ae-1)!==null||Ae<n-1&&Y(Ae+1)!==null)return null;return it.jsxDEV("circle",{cx:W(Ae),cy:rt,r:2.5,fill:H.color},Ae,!1,void 0,this)})]},H.key,!0,void 0,this)}),J.filter((H)=>(H.kind??c)==="dots").map((H)=>{let ee=H.axis==="right"?pt:Ze;return it.jsxDEV("g",{className:"chart-dots",fill:H.color,children:H.values.map((Y,Se)=>Y===null||Y===void 0?null:it.jsxDEV("circle",{cx:W(Se),cy:ee(Y),r:ie===Se?3.5:2.5},Se,!1,void 0,this))},H.key,!1,void 0,this)}),T?.map((H)=>H.index>=0&&H.index<n?it.jsxDEV("g",{className:"chart-marker",children:[it.jsxDEV("line",{x1:W(H.index),x2:W(H.index),y1:Sr,y2:Sr+oe},void 0,!1,void 0,this),H.label&&it.jsxDEV("text",{x:W(H.index)+(W(H.index)>pe+Le/2?-5:5),y:Sr+9,textAnchor:W(H.index)>pe+Le/2?"end":"start",children:H.label},void 0,!1,void 0,this)]},`marker:${H.index}`,!0,void 0,this):null),C?.map((H)=>{let ee=H.axis==="right"?pt(H.value):Ze(H.value);return it.jsxDEV("g",{className:"chart-axis",children:[it.jsxDEV("line",{x1:pe,x2:pe+Le,y1:ee,y2:ee,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),H.label&&it.jsxDEV("text",{x:pe+Le-4,y:ee-5,textAnchor:"end",children:H.label},void 0,!1,void 0,this)]},`${H.axis??"left"}:${H.value}`,!0,void 0,this)}),it.jsxDEV("line",{className:"chart-baseline",x1:pe,x2:pe+Le,y1:Ze(0),y2:Ze(0)},void 0,!1,void 0,this),it.jsxDEV("rect",{x:pe,y:Sr,width:Le,height:oe,fill:"transparent",onPointerMove:je,onPointerLeave:()=>Q(null),onClick:I&&ie!==null?()=>I(ie):void 0,style:{cursor:I?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P.empty&&it.jsxDEV("div",{className:"chart-empty",children:O},void 0,!1,void 0,this),ie!==null&&!P.empty&&it.jsxDEV("div",{className:"chart-tooltip",style:W(ie)>X/2?{right:X-W(ie)+Math.min(be/2,24)+8,top:Sr}:{left:W(ie)+Math.min(be/2,24)+8,top:Sr},children:[it.jsxDEV("div",{className:"chart-tooltip-title",children:(s??i)(ie)},void 0,!1,void 0,this),_e.map(({s:H,v:ee})=>it.jsxDEV("div",{className:"chart-tooltip-row",children:[it.jsxDEV("span",{className:"swatch",style:{background:H.color}},void 0,!1,void 0,this),it.jsxDEV("span",{className:"chart-tooltip-label",children:H.label},void 0,!1,void 0,this),it.jsxDEV("span",{className:"chart-tooltip-value",children:H.axis==="right"?(m??y)(ee):(b??y)(ee)},void 0,!1,void 0,this)]},H.key,!0,void 0,this)),oa&&_e.length>1&&it.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[it.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),it.jsxDEV("span",{className:"chart-tooltip-value",children:(b??y)(ia)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B&&it.jsxDEV(kr.Fragment,{children:B(ie)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ah(n,i=0){let s=Math.max(0,n),d=Math.min(0,i);if(!(s-d>0))return{min:0,max:1,ticks:[0]};let c=(s-d)/pE,g=10**Math.floor(Math.log10(c)),h=[1,2,2.5,5,10].map((p)=>p*g).find((p)=>p>=c)??10*g,y=Math.ceil(s/h)*h,m=Math.floor(d/h)*h,b=[];for(let p=m;p<=y+h/2;p+=h)b.push(Number(p.toPrecision(12)));return{min:m,max:y>m?y:m+h,ticks:b}}function rI(n){return n.reduce((i,s)=>Math.max(i,s.length*6.3),0)}function sI(n,i,s){let d="",c=!1;for(let g=0;g<n;g++){let h=s(g);if(h===null){c=!1;continue}d+=`${c?"L":"M"}${i(g).toFixed(1)},${h.toFixed(1)}`,c=!0}return d}function jb(n){return n.replace(/[^a-zA-Z0-9_-]/g,"_")}var za=U(te(),1);function Dh({rows:n,guides:i,band:s,format:d,formatTick:c}){let g=0,h=0,y=(w)=>{if(w===null)return;g=Math.max(g,w),h=Math.min(h,w)};for(let w of n)for(let C of w.marks)y(C.value),y(C.lo),y(C.hi);for(let w of i??[])y(w.value);if(s)y(s.lo),y(s.hi);let m=Ah(g,h),b=m.max-m.min,p=(w)=>(Math.min(m.max,Math.max(m.min,w))-m.min)/b*100,x=(w)=>`${p(w)}%`,L=za.jsxDEV(za.Fragment,{children:[s&&za.jsxDEV("span",{className:"dw-band",style:{left:x(s.lo),width:`${p(s.hi)-p(s.lo)}%`,"--band":s.color}},void 0,!1,void 0,this),i?.map((w)=>za.jsxDEV("span",{className:"dw-guide",style:{left:x(w.value),"--guide":w.color}},w.key,!1,void 0,this))]},void 0,!0,void 0,this);return za.jsxDEV("div",{className:"dw",children:[n.map((w)=>{let C=w.marks[0],T=C!==void 0&&C.lo!==null&&C.hi!==null?`${d(C.lo)}–${d(C.hi)}`:"";return za.jsxDEV("div",{className:"dw-row",children:[za.jsxDEV("div",{className:"dw-label",children:w.label},void 0,!1,void 0,this),za.jsxDEV("div",{className:"dw-track",children:[L,w.marks.map((I)=>za.jsxDEV("span",{className:"dw-mark","data-shape":I.shape??"dot",style:{"--dot":I.color,"--dy":`${I.offset??0}px`},children:[I.lo!==null&&I.hi!==null&&za.jsxDEV("span",{className:"dw-whisker",style:{left:x(I.lo),width:`${p(I.hi)-p(I.lo)}%`}},void 0,!1,void 0,this),I.value!==null&&za.jsxDEV("span",{className:"dw-dot",style:{left:x(I.value)},title:I.title},void 0,!1,void 0,this)]},I.key,!0,void 0,this))]},void 0,!0,void 0,this),za.jsxDEV("div",{className:"dw-value",children:[za.jsxDEV("span",{className:"num",children:w.figure??(C?.value===null||C===void 0?"–":d(C.value))},void 0,!1,void 0,this),za.jsxDEV("span",{className:"dw-detail",children:w.detail??T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},w.key,!0,void 0,this)}),za.jsxDEV("div",{className:"dw-row dw-axis","aria-hidden":"true",children:[za.jsxDEV("div",{},void 0,!1,void 0,this),za.jsxDEV("div",{className:"dw-track",children:m.ticks.map((w)=>za.jsxDEV("span",{className:"dw-tick",style:{left:x(w)},children:(c??d)(w)},w,!1,void 0,this))},void 0,!1,void 0,this),za.jsxDEV("div",{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Eh=U(et(),1),_l=U(te(),1);function ra({items:n,hidden:i,onToggle:s}){return _l.jsxDEV("div",{className:"legend",children:n.map((d)=>{let c=_l.jsxDEV(_l.Fragment,{children:[_l.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),_l.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&_l.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return s?_l.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(d.key)??!1,onClick:()=>s(d.key),title:d.label,children:c},d.key,!1,void 0,this):_l.jsxDEV("span",{className:"legend-item",title:d.label,children:c},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function qn(){let[n,i]=Eh.useState(()=>new Set),s=Eh.useCallback((d)=>{i((c)=>{let g=new Set(c);if(!g.delete(d))g.add(d);return g})},[]);return[n,s]}var Xb=U(te(),1);function Hl({segments:n,height:i=8}){let s=n.reduce((d,c)=>d+Math.max(0,c.value),0);return Xb.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:s>0&&n.filter((d)=>d.value>0).map((d)=>Xb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/s,background:d.color},title:`${d.label}: ${(d.value/s*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var iI=U(te(),1);function mn({buckets:n,bucketMs:i,onSelectBucket:s,...d}){return iI.jsxDEV(pn,{...d,slots:n.length,tickLabel:(c)=>hh(n[c],i),tooltipTitle:(c)=>Wu(n[c],i),onSelect:s?(c)=>s(n[c]):void 0},void 0,!1,void 0,this)}var tl=U(te(),1);function uI({steps:n,format:i}){let s=0,d=n.map((m)=>{let b=s;if(m.kind==="total")return s=m.value,{...m,from:0,to:m.value,before:b};return s+=m.value,{...m,from:b,to:s,before:b}}),c=0,g=0;for(let m of d)c=Math.min(c,m.from,m.to),g=Math.max(g,m.from,m.to);let h=g-c||1,y=(m)=>(m-c)/h*100;return tl.jsxDEV("ol",{className:"waterfall",children:d.map((m,b)=>{let p=y(Math.min(m.from,m.to)),x=Math.abs(y(m.to)-y(m.from)),L=m.kind==="delta"?m.value<0?"−":"+":m.value<0?"−":"";return tl.jsxDEV("li",{className:"waterfall-row","data-kind":m.kind,title:m.title,children:[tl.jsxDEV("span",{className:"waterfall-label",children:m.label},void 0,!1,void 0,this),tl.jsxDEV("span",{className:"waterfall-track",children:[c<0&&tl.jsxDEV("span",{className:"waterfall-zero",style:{left:`${y(0)}%`}},void 0,!1,void 0,this),b>0&&tl.jsxDEV("span",{className:"waterfall-link",style:{left:`${y(m.before)}%`}},void 0,!1,void 0,this),tl.jsxDEV("span",{className:"waterfall-bar","data-empty":m.value===0,style:{left:`${p}%`,width:`${x}%`,"--bar":m.color}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tl.jsxDEV("span",{className:"waterfall-value",children:[tl.jsxDEV("span",{className:"num",children:[L,i(Math.abs(m.value))]},void 0,!0,void 0,this),m.note!==void 0&&tl.jsxDEV("span",{className:"waterfall-note",children:m.note},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},m.key,!0,void 0,this)})},void 0,!1,void 0,this)}var no=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],Co="#6c6c74";function Ua(n,i){return`${n}::${i}`}function Nh(n){return qf(n.map((i)=>({key:Ua(i.model,i.provider),weight:i.totalRequests})))}function qf(n){let i=[...n].sort((s,d)=>d.weight-s.weight||s.key.localeCompare(d.key));return new Map(i.map((s,d)=>[s.key,no[d%no.length]]))}function Oh(n){return n instanceof Error?n:Error(String(n))}var Na=U(et(),1);var mE={entries:new Map,limit:128},hE={entries:new Map,limit:4},gE={entries:new Map,limit:16},Bi=new Map;function dI(n){if(n.startsWith('["trace",'))return hE;if(n.startsWith('["request",'))return gE;return mE}function nd(n){return dI(n).entries.get(n)}function cI(n){return Bi.get(n)}function yE(n,i){let{entries:s,limit:d}=dI(n);if(s.delete(n),s.set(n,i),s.size>d){let c=s.keys().next().value;if(c!==void 0)s.delete(c)}}function fI(n,i,s){let d=Bi.get(n);if(d)return d.waiters++,d;let c=new AbortController,g=nd(n)?.data,h={promise:s({signal:c.signal},g).then((y)=>(yE(n,{data:y,updatedAt:Date.now(),version:i}),y)).finally(()=>{if(Bi.get(n)===h)Bi.delete(n)}),controller:c,waiters:1};return Bi.set(n,h),h}function Yb(n,i){if(i.waiters--,i.waiters>0)return;if(Bi.get(n)===i)Bi.delete(n);i.controller.abort()}var vE=1500;function Pt(n,i,s){let d=JSON.stringify(n),c=s?.enabled??!0,g=s?.pollMs,h=FT(c),[,y]=Na.useReducer((P)=>P+1,0),[m,b]=Na.useReducer((P)=>P+1,0),[p,x]=Na.useState(null),[L,w]=Na.useState(!1),C=Na.useRef(i);C.current=i;let T=Na.useRef(d);T.current=d;let I=Na.useRef(null),O=Na.useRef(0),B=Na.useRef(null),F=Na.useCallback((P)=>{O.current=Date.now();let V=B.current;if(V?.key===P&&cI(P)===V.request)return;let ke=nd(P)?.data;w(!0);let pe=fI(P,Ub(),C.current);if(B.current={key:P,request:pe},V)Yb(V.key,V.request);let Oe=!1;pe.promise.then((Le)=>{if(Oe=!0,T.current!==P)return;if(Le===ke){x((oe)=>oe===null?oe:null);return}Na.startTransition(()=>{x(null),y()})}).catch((Le)=>{if(T.current!==P||pe.controller.signal.aborted)return;x({key:P,error:Oh(Le)})}).finally(()=>{if(B.current?.request!==pe)return;if(B.current=null,T.current!==P)return;if(w(!1),Oe&&(nd(P)?.version??-1)<Ub())b()})},[]),X=Na.useCallback(()=>{let P=B.current;if(B.current=null,P)Yb(P.key,P.request)},[]);Na.useEffect(()=>X,[X]),Na.useEffect(()=>{if(!c||B.current&&B.current.key!==d)X();if(!c)return;let P=nd(d);if(P&&P.version>=h)return;let V=P?O.current+vE-Date.now():0;if(V<=0){F(d);return}let ke=setTimeout(()=>F(d),V);return()=>clearTimeout(ke)},[d,c,h,m,F,X]),Na.useEffect(()=>{if(!c||!g)return;let P=setInterval(()=>{if(!document.hidden)F(T.current)},g);return()=>clearInterval(P)},[c,g,F]);let ie=Na.useCallback(()=>F(T.current),[F]),Q=nd(d);if(Q)I.current={key:d,data:Q.data,updatedAt:Q.updatedAt};let de=I.current,J=p?.key===d?p.error:null;return{data:de?.data??null,error:J,loading:!de&&!J,stale:!!de&&de.key!==d,refreshing:L,updatedAt:de?.updatedAt??null,refetch:ie}}function sa(n,i,s){let d=pI(i),c=Array.from({length:i.length},()=>0);for(let g of n){let h=d.get(g.timestamp);if(h!==void 0)c[h]+=s(g)}return c}function Fl(n,i){let s=pI(i.buckets),d=new Map;for(let b of n){let p=s.get(b.timestamp);if(p===void 0)continue;let x=i.key(b),L=d.get(x);if(!L)L=Array.from({length:i.buckets.length},()=>0),d.set(x,L);L[p]+=i.value(b)}let c=[...d.entries()].map(([b,p])=>({key:b,values:p,total:p.reduce((x,L)=>x+L,0)})).filter((b)=>b.total!==0).sort((b,p)=>p.total-b.total||b.key.localeCompare(p.key)),g=i.limit??Number.POSITIVE_INFINITY,h=c.slice(0,g),y=c.slice(g),m=h.map((b,p)=>({key:b.key,label:i.label?i.label(b.key):b.key,color:i.colors?.get(b.key)??no[p%no.length],values:b.values}));if(y.length>0){let b=Array.from({length:i.buckets.length},()=>0);for(let p of y)for(let x=0;x<b.length;x++)b[x]+=p.values[x];m.push({key:"__other__",label:`Other (${y.length})`,color:Co,values:b})}return m}function pI(n){let i=new Map;for(let s=0;s<n.length;s++)i.set(n[s],s);return i}var bE=["main","subagent","advisor"];function Ns(n){return n.totalInputTokens+n.totalOutputTokens+n.totalCacheReadTokens+n.totalCacheWriteTokens}function gI(n){let i=new Map;for(let h of n)i.set(h.agentType,h);let s=bE.map((h)=>i.get(h)).filter((h)=>h!==void 0),d=s.reduce((h,y)=>h+Ns(y),0),c=s.reduce((h,y)=>h+y.totalCost,0),g=s.map((h)=>{let y=Ns(h);return{agentType:h.agentType,tokens:y,requests:h.totalRequests,cost:h.totalCost,share:d>0?y/d:0}});return{totalTokens:d,totalCost:c,segments:g}}function yI(n){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(n.map((c)=>c.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},s=new Map;for(let c of n){let g=Ua(c.model,c.provider),h=s.get(g);if(!h)h={key:g,model:c.model,provider:c.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},s.set(g,h);mI(h,c),mI(i,c),h.cost+=c.cost,i.totalCost+=c.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...s.values()].sort((c,g)=>g.cost-c.cost||g.requests-c.requests||c.key.localeCompare(g.key));for(let c of i.models)c.share=i.totalCost>0?c.cost/i.totalCost:0;let d=i.models[0];return i.topModel=d!==void 0&&d.cost>0?d:null,i}function mI(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 vI(n){let i=new Map;for(let s of n){let d=Ua(s.model,s.provider),c=i.get(d);if(!c)c=[],i.set(d,c);c.push({timestamp:s.timestamp,avgTtftSeconds:s.avgTtft!==null?s.avgTtft/1000:null,avgTokensPerSecond:s.avgTokensPerSecond,requests:s.requests})}for(let s of i.values())s.sort((d,c)=>d.timestamp-c.timestamp);return i}var xE=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function bI(n){let i=0,s=0,d=0,c=0,g=0,h=0,y=0,m=0,b=0;for(let L of n){if(i+=L.totalRequests,s+=L.failedRequests,d+=L.totalCost,c+=L.unpricedRequests,g+=L.totalInputTokens+L.totalCacheReadTokens+L.totalCacheWriteTokens+L.totalOutputTokens,h+=L.totalInputTokens,y+=L.totalCacheReadTokens,L.totalRequests>m)m=L.totalRequests;if(L.totalCost>b)b=L.totalCost}let p=0;return{rows:n.map((L)=>{let w=xE.test(L.folder);if(w)p++;return{...L,conversationTokens:L.totalInputTokens+L.totalCacheReadTokens+L.totalCacheWriteTokens+L.totalOutputTokens,requestShare:i>0?L.totalRequests/i:0,costShare:d>0?L.totalCost/d:0,temporary:w}}),totalRequests:i,failedRequests:s,totalCost:d,unpricedRequests:c,conversationTokens:g,cacheRate:h+y>0?y/(h+y):0,maxRequests:m,maxCost:b,temporaryCount:p}}function xI(n){let i=0,s=0,d=0;for(let c of n)i+=c.calls,s+=c.totalTokensShare,d+=c.costShare;return n.map((c)=>({...c,errorRate:c.calls>0?c.errors/c.calls:0,callFraction:i>0?c.calls/i:0,tokenFraction:s>0?c.totalTokensShare/s:0,costFraction:d>0?c.costShare/d:0,avgResultChars:c.calls>0?c.resultChars/c.calls:0}))}function Cr(n){if(n.stopReason==="aborted")return"aborted";if(n.stopReason==="error"||n.errorMessage)return"failed";return"ok"}function Qb(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 SI(n){let i=0,s=0,d=0,c=0,g=0,h=null,y=null,m=[],b=[];for(let p of n){let x=Cr(p);if(x==="failed")i++;else if(x==="aborted")s++;if(d+=p.usage.totalTokens,c+=p.usage.cost.total,_b(p))g++;if(p.duration!==null)m.push(p.duration);if(p.ttft!==null)b.push(p.ttft);if(h===null||p.timestamp<h)h=p.timestamp;if(y===null||p.timestamp>y)y=p.timestamp}return m.sort((p,x)=>p-x),b.sort((p,x)=>p-x),{requests:n.length,failed:i,aborted:s,tokens:d,cost:c,unpriced:g,medianDuration:Qb(m,0.5),p95Duration:Qb(m,0.95),medianTtft:Qb(b,0.5),oldest:h,newest:y}}var hI=180,SE=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,kE=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,CE=/\b[0-9a-f]{12,}\b/gi,LE=/(?<![\w.-])\d+(?:\.\d+)?/g,wE=/^[1-5]\d\d$/;function Wb(n){if(!n?.trim())return"Unknown error";let i=n.replace(/\s+/g," ").trim().replace(SE,"<id>").replace(kE,"<id>").replace(CE,"<hex>").replace(LE,(s)=>wE.test(s)?s:"N");return i.length>hI?`${i.slice(0,hI-1)}…`:i}function kI(n){let i=new Map;for(let s of n){let d=Wb(s.errorMessage),c=i.get(d);if(!c)c={signature:d,count:0,firstSeen:s.timestamp,lastSeen:s.timestamp,latest:s,models:[],byModel:new Map},i.set(d,c);if(c.count++,s.timestamp<c.firstSeen)c.firstSeen=s.timestamp;if(s.timestamp>c.lastSeen)c.lastSeen=s.timestamp,c.latest=s;let g=Ua(s.model,s.provider),h=c.byModel.get(g);if(h)h.count++;else c.byModel.set(g,{model:s.model,provider:s.provider,count:1})}return[...i.values()].map(({byModel:s,...d})=>({...d,models:[...s.values()].sort((c,g)=>g.count-c.count||c.model.localeCompare(g.model))})).sort((s,d)=>d.count-s.count||d.lastSeen-s.lastSeen)}var Ne=U(te(),1),TE=[{value:"model",label:"By model"},{value:"component",label:"By component"}],IE=6,RE=86400000,zf=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],ME=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),AE=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function CI({active:n,range:i}){let s=Pt(["costs",i],({signal:L})=>vT(i,L),{enabled:n}),d=Kt(i),[c,g]=Bf.useState("model"),[h,y]=qn(),m=Bf.useMemo(()=>s.data?DE(s.data,i):null,[s.data,i]),b=Bf.useMemo(()=>m?OE(m):[],[m]),p=(L)=>L.costSeries.length===0,x=Ne.jsxDEV(wt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Ne.jsxDEV("div",{className:"page",children:[Ne.jsxDEV(pa,{title:"Costs",description:`What ${d.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),Ne.jsxDEV(Xe,{query:s,skeleton:Ne.jsxDEV(Za,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:p,empty:x,children:()=>m&&Ne.jsxDEV(EE,{view:m,stale:s.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"grid grid-main-side",children:[Ne.jsxDEV(ve,{index:1,title:"Daily estimate",description:c==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Ne.jsxDEV(Da,{size:"sm",options:TE,value:c,onChange:g,"aria-label":"Split by"},void 0,!1,void 0,this),stale:s.stale,children:Ne.jsxDEV(Xe,{query:s,skeleton:Ne.jsxDEV(Ot,{height:280},void 0,!1,void 0,this),isEmpty:p,empty:x,children:()=>{if(!m)return null;let L=c==="model"?m.modelSeries:m.componentSeries;return Ne.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ne.jsxDEV(pn,{slots:m.buckets.length,tickLabel:(w)=>ME.format(m.buckets[w]),tooltipTitle:(w)=>AE.format(m.buckets[w]),series:L,hidden:h,height:280,format:(w)=>Et(w,Number.isInteger(w)?0:2),formatTooltip:(w)=>Et(w),emptyLabel:"No priced usage in this range",tooltipExtra:(w)=>m.unpricedPerDay[w]>0?Ne.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ne.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Ne.jsxDEV("span",{className:"chart-tooltip-value",children:R(m.unpricedPerDay[w])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ne.jsxDEV(ra,{items:L.map((w)=>({key:w.key,label:w.label,color:w.color,value:Et(qE(w.values))})),hidden:h,onToggle:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ne.jsxDEV(ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:s.stale,children:Ne.jsxDEV(Xe,{query:s,skeleton:Ne.jsxDEV(Ot,{height:280},void 0,!1,void 0,this),isEmpty:p,empty:x,children:()=>m&&Ne.jsxDEV(NE,{summary:m.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),Ne.jsxDEV(ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:s.stale,flush:!0,children:Ne.jsxDEV(Xe,{query:s,skeleton:Ne.jsxDEV(Ta,{rows:8},void 0,!1,void 0,this),isEmpty:p,empty:x,children:()=>m&&Ne.jsxDEV(Ft,{rows:m.summary.models,rowKey:(L)=>L.key,columns:b,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 DE(n,i){let s=n.costSeries,d=yI(s),c=Nh(d.models.map((b)=>({model:b.model,provider:b.provider,totalRequests:b.requests}))),g=new Map(d.models.map((b)=>[b.key,b])),h=mo(i,s.map((b)=>b.timestamp),RE),y=Fl(s,{buckets:h,key:(b)=>Ua(b.model,b.provider),label:(b)=>g.get(b)?.model??b,value:(b)=>b.cost,limit:IE,colors:c}).map((b)=>({...b,values:b.values.map((p)=>p||null)})),m=new Set;for(let b of y){if(b.key==="__other__")continue;if(m.has(b.color))b.color=no.find((p)=>!m.has(p))??b.color;m.add(b.color)}return{summary:d,swatches:new Map(y.filter((b)=>b.key!=="__other__").map((b)=>[b.key,b.color])),buckets:h,dailyTotals:sa(s,h,(b)=>b.cost),unpricedPerDay:sa(s,h,(b)=>b.unpricedRequests),modelSeries:y,componentSeries:zf.map((b)=>({key:b.key,label:b.label,color:b.color,values:sa(s,h,(p)=>p[b.key]).map((p)=>p||null)})),maxModelCost:d.models[0]?.cost??0}}function EE({view:n,stale:i}){let{summary:s}=n,d=s.requests-s.unpricedRequests,c=s.topModel;return Ne.jsxDEV("div",{"data-stale":i,children:Ne.jsxDEV(Ca,{min:180,children:[Ne.jsxDEV(ce,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Jt(s.totalCost,s.unpricedRequests),hint:`${R(s.requests)} requests`,spark:n.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ne.jsxDEV(ce,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Jt(s.avgDailyCost,s.unpricedRequests),hint:`over ${R(s.activeDays)} active day${s.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Ne.jsxDEV(ce,{label:"Top model",title:c?`${c.model} (${c.provider})`:void 0,value:c?c.model:"–",hint:c?`${Et(c.cost)} · ${He(c.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Ne.jsxDEV(ce,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:d>0?LI(s.totalCost/d):"–",hint:`${R(d)} priced`},void 0,!1,void 0,this),Ne.jsxDEV(ce,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:R(s.unpricedRequests),hint:s.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function NE({summary:n}){return Ne.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ne.jsxDEV(Hl,{height:10,segments:zf.map((i)=>({key:i.key,label:i.label,value:n[i.key],color:i.color}))},void 0,!1,void 0,this),Ne.jsxDEV("div",{className:"costs-components",children:[zf.map((i)=>Ne.jsxDEV("div",{className:"costs-component-row",children:[Ne.jsxDEV("span",{className:"row",children:[Ne.jsxDEV(Kn,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),Ne.jsxDEV("span",{className:"num",children:Et(n[i.key])},void 0,!1,void 0,this),Ne.jsxDEV("span",{className:"num dim costs-component-share",children:n.totalCost>0?He(n[i.key]/n.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),Ne.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ne.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Ne.jsxDEV("span",{className:"num",children:Jt(n.totalCost,n.unpricedRequests)},void 0,!1,void 0,this),Ne.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&&Ne.jsxDEV("p",{className:"micro dim",children:[R(n.unpricedRequests)," unpriced subscription request",n.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function OE(n){let i=zf.map((s)=>({key:s.key,header:s.label,align:"right",sort:(d)=>d[s.key],render:(d)=>Ne.jsxDEV("span",{className:"num",children:Et(d[s.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(s)=>s.model,render:(s)=>Ne.jsxDEV(oo,{lead:Ne.jsxDEV(Kn,{color:n.swatches.get(s.key)??Co},void 0,!1,void 0,this),primary:Ne.jsxDEV("span",{className:"mono",children:s.model},void 0,!1,void 0,this),secondary:s.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(s)=>s.requests,render:(s)=>Ne.jsxDEV("span",{className:"num",children:R(s.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(s)=>s.cost,render:(s)=>Ne.jsxDEV(Ia,{value:s.cost,max:n.maxModelCost,display:Jt(s.cost,s.unpricedRequests),color:n.swatches.get(s.key)??Co},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(s)=>s.share,render:(s)=>Ne.jsxDEV("span",{className:"num muted",children:s.cost>0?He(s.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(s)=>s.cost>0?Ne.jsxDEV(Hl,{segments:zf.map((d)=>({key:d.key,label:d.label,value:s[d.key],color:d.color}))},void 0,!1,void 0,this):Ne.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(s)=>s.requests>s.unpricedRequests?s.cost/(s.requests-s.unpricedRequests):-1,render:(s)=>Ne.jsxDEV("span",{className:"num",children:s.requests>s.unpricedRequests?LI(s.cost/(s.requests-s.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(s)=>s.unpricedRequests,render:(s)=>s.unpricedRequests>0?Ne.jsxDEV("span",{className:"num tone-warn",children:R(s.unpricedRequests)},void 0,!1,void 0,this):Ne.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function LI(n){return n>0&&n<0.0001?"<$0.0001":Et(n)}function qE(n){let i=0;for(let s of n)i+=s??0;return i}var Lr=U(et(),1);var Ce=U(te(),1),Zb=[50,200,1000];function wI({active:n,range:i,onRequestClick:s}){let[d,c]=Lr.useState(0),g=Zb[d],h=Pt(["errors",i,g],({signal:P})=>bT(i,g,P),{enabled:n}),[y,m]=Lr.useState(null),[b,p]=Lr.useState(null),[x,L]=Lr.useState(""),w=Kt(i),C=Lr.useMemo(()=>{let P=(h.data??[]).map((Le)=>({row:Le,signature:Wb(Le.errorMessage)})),V=kI(h.data??[]),ke=new Map;for(let{row:Le}of P){let oe=Ua(Le.model,Le.provider),be=ke.get(oe);if(be)be.count++;else ke.set(oe,{model:Le.model,provider:Le.provider,count:1})}let pe=[...ke.entries()].map(([Le,oe])=>({key:Le,...oe})).sort((Le,oe)=>oe.count-Le.count||Le.model.localeCompare(oe.model)),Oe=P.reduce((Le,{row:oe})=>!Le||oe.timestamp>Le.timestamp?oe:Le,null);return{rows:P,groups:V,models:pe,newest:Oe}},[h.data]),T=C.groups.some((P)=>P.signature===y)?y:null,I=C.models.some((P)=>P.key===b)?b:null,O=Lr.useMemo(()=>{let P=x.trim().toLowerCase();return C.rows.filter((V)=>(T===null||V.signature===T)&&(I===null||Ua(V.row.model,V.row.provider)===I)&&(P===""||V.row.model.toLowerCase().includes(P)||V.row.provider.toLowerCase().includes(P)||V.row.folder.toLowerCase().includes(P)||(V.row.errorMessage??"").toLowerCase().includes(P))).map((V)=>V.row)},[C.rows,T,I,x]),B=h.data?.length??0,F=!h.stale&&B<g,X=d+1<Zb.length?Zb[d+1]:null,ie=h.data!==null&&!F?Ce.jsxDEV(Ce.Fragment,{children:[Ce.jsxDEV("span",{children:["Showing the latest ",R(B)," failures in ",w.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),X!==null&&Ce.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:h.refreshing,onClick:()=>c(d+1),children:h.refreshing&&h.stale?"Loading…":`Load latest ${R(X)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,Q=C.groups[0]?.count??0,de=Lr.useMemo(()=>BE(Q),[Q]),J=C.models.find((P)=>P.key===I);return Ce.jsxDEV("div",{className:"page",children:[Ce.jsxDEV(pa,{title:"Errors",description:`Failed model requests in ${w.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),Ce.jsxDEV(Xe,{query:h,skeleton:Ce.jsxDEV(Za,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Ce.jsxDEV("div",{"data-stale":h.stale,children:Ce.jsxDEV(Ca,{min:170,children:[Ce.jsxDEV(ce,{label:"Failures",value:R(B),hint:F?`in ${w.windowLabel}`:`latest ${R(B)} loaded`},void 0,!1,void 0,this),Ce.jsxDEV(ce,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:R(C.groups.length),hint:C.groups[0]?`top: ${R(C.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),Ce.jsxDEV(ce,{label:"Affected models",value:R(C.models.length),hint:C.models[0]?.model},void 0,!1,void 0,this),Ce.jsxDEV(ce,{label:"Last failure",value:C.newest?xa(C.newest.timestamp):"–",hint:C.newest?Oo(C.newest.timestamp):`none in ${w.windowLabel}`},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(ve,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:h.stale,children:Ce.jsxDEV(Xe,{query:h,skeleton:Ce.jsxDEV(Ta,{rows:8},void 0,!1,void 0,this),isEmpty:(P)=>P.length===0,empty:Ce.jsxDEV(wt,{title:`No failures in ${w.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(Ft,{rows:C.groups,rowKey:(P)=>P.signature,columns:de,onRowClick:(P)=>m(T===P.signature?null:P.signature),selectedKey:T,expanded:(P)=>P.signature===T?Ce.jsxDEV(zE,{group:P,onRequestClick:s},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(ve,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:h.stale,children:Ce.jsxDEV(Xe,{query:h,skeleton:Ce.jsxDEV(Za,{height:180},void 0,!1,void 0,this),isEmpty:(P)=>P.length===0,empty:Ce.jsxDEV(wt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(qi,{items:C.models.slice(0,12).map((P)=>({key:P.key,label:Ce.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Ce.jsxDEV("span",{className:"mono truncate",children:P.model},void 0,!1,void 0,this),Ce.jsxDEV("span",{className:"dim truncate",children:P.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:P.count,color:P.key===I?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(P)=>p(I===P?null:P)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV(ve,{index:3,title:"Failures",description:h.data===null?"Loading failures…":`${R(O.length)} of ${R(B)} failures, newest first`,actions:Ce.jsxDEV(Ce.Fragment,{children:[T!==null&&Ce.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>m(null),title:T,children:[Ce.jsxDEV("span",{className:"mono truncate",children:T},void 0,!1,void 0,this),Ce.jsxDEV(So,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J&&Ce.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>p(null),children:[Ce.jsxDEV("span",{className:"mono truncate",children:J.model},void 0,!1,void 0,this),Ce.jsxDEV(So,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ce.jsxDEV(zl,{value:x,onChange:L,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:h.stale,footer:ie,children:Ce.jsxDEV(Xe,{query:h,skeleton:Ce.jsxDEV(Ta,{rows:10},void 0,!1,void 0,this),isEmpty:(P)=>P.length===0,empty:Ce.jsxDEV(wt,{title:`No failures in ${w.windowLabel}`},void 0,!1,void 0,this),children:()=>Ce.jsxDEV(Ft,{rows:O,rowKey:(P)=>P.id??`${P.sessionFile}:${P.entryId}`,onRowClick:(P)=>P.id!==void 0&&s(P.id),columns:UE,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Ce.jsxDEV(wt,{title:"No failures match",hint:"Clear the search or the selected filters."},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 BE(n){return[{key:"signature",header:"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:"Models",sort:(i)=>i.models.length,render:(i)=>Ce.jsxDEV(oo,{primary:Ce.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?`+${i.models.length-1} more`:i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(i)=>i.lastSeen,render:(i)=>Ce.jsxDEV("span",{className:"muted",title:Oo(i.lastSeen),children:xa(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(i)=>i.count,render:(i)=>Ce.jsxDEV(Ia,{value:i.count,max:n,display:R(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function zE({group:n,onRequestClick:i}){let s=n.latest.id;return Ce.jsxDEV("div",{className:"errors-detail",children:[Ce.jsxDEV("pre",{className:"code-block errors-detail-message",children:n.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),Ce.jsxDEV("div",{className:"errors-detail-meta",children:[Ce.jsxDEV("span",{className:"muted",children:[R(n.count)," failures · first ",Oo(n.firstSeen)," · last"," ",Oo(n.lastSeen)]},void 0,!0,void 0,this),s!==void 0&&Ce.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(s),children:["Open latest ",Ce.jsxDEV(tf,{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:n.models.map((d)=>Ce.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",Ce.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",Ce.jsxDEV("span",{className:"num",children:re(d.count)},void 0,!1,void 0,this)]},Ua(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var UE=[{key:"time",header:"When",width:120,sort:(n)=>n.timestamp,render:(n)=>Ce.jsxDEV("span",{className:"muted",title:Oo(n.timestamp),children:xa(n.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(n)=>n.model,render:(n)=>Ce.jsxDEV(oo,{primary:Ce.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:"Error",sort:(n)=>n.errorMessage??"",render:(n)=>Ce.jsxDEV("span",{className:"errors-message",title:n.errorMessage??void 0,children:n.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(n)=>n.folder,render:(n)=>Ce.jsxDEV("span",{className:"mono muted",title:n.folder,children:On(n.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(n)=>n.usage.totalTokens,render:(n)=>Ce.jsxDEV("span",{className:"num",children:R(n.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(n)=>n.usage.cost.total,render:(n)=>Ce.jsxDEV("span",{className:"num",children:Es(n,4)},void 0,!1,void 0,this)}];var Yt=U(et(),1);var Z=U(te(),1),PE=1000,qh=50,Jb=0.5,Uf="*";function II({active:n,range:i}){let[s,d]=Yt.useState(!1),c=Pt(["frustration",i],({signal:b})=>LT(i,b),{enabled:n,pollMs:s?PE:void 0}),g=Kt(i),h=c.data?.job.state;Yt.useEffect(()=>{if(h!==void 0)d(h==="running")},[h]);let{refetch:y}=c,m=Yt.useCallback(()=>{d(!0),y()},[y]);return Z.jsxDEV("div",{className:"page",children:[Z.jsxDEV(pa,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${g.windowLabel}.`},void 0,!1,void 0,this),Z.jsxDEV(Xe,{query:c,skeleton:Z.jsxDEV(Ot,{height:96},void 0,!1,void 0,this),children:(b)=>Z.jsxDEV("div",{"data-stale":c.stale,children:Z.jsxDEV(_E,{overall:b.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.jsxDEV(Xe,{query:c,skeleton:Z.jsxDEV(Ot,{height:120},void 0,!1,void 0,this),children:(b)=>Z.jsxDEV(HE,{active:n,range:i,judgeAvailable:b.judgeAvailable,job:b.job,onRunStarted:m,onRunChanged:y},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.jsxDEV(Xe,{query:c,skeleton:Z.jsxDEV(ve,{index:2,title:"Frustration by model version",children:[Z.jsxDEV(Ot,{height:340},void 0,!1,void 0,this),Z.jsxDEV(Ta,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(b)=>Z.jsxDEV(ZE,{models:b.byModel,stale:c.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function al(n,i){return i>0?He(n/i):"–"}function Kb(n){return n instanceof Error?n.message:String(n)}function RI(n){let i=Math.max(0,Math.floor(n/1000)),s=Math.floor(i/60),d=i%60;return s>0?`${s}m ${String(d).padStart(2,"0")}s`:`${d}s`}function _E({overall:n}){let i=n.messages-n.judged;return Z.jsxDEV(Ca,{min:170,children:[Z.jsxDEV(ce,{label:"User messages",title:"User messages with prose in range",value:R(n.messages)},void 0,!1,void 0,this),Z.jsxDEV(ce,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:al(n.judged,n.messages),hint:`${R(n.judged)} judged · ${R(i)} regex`},void 0,!1,void 0,this),Z.jsxDEV(ce,{label:"Annoyed",title:"Messages annoyed at any target",value:al(n.annoyed,n.messages),hint:`${R(n.annoyed)} messages`},void 0,!1,void 0,this),Z.jsxDEV(ce,{label:"At assistant",title:"Messages annoyed at the assistant",value:al(n.atAssistant,n.messages),hint:`${R(n.atAssistant)} messages`},void 0,!1,void 0,this),Z.jsxDEV(ce,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:al(n.angry,n.messages),hint:`${R(n.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TI="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function HE({active:n,range:i,judgeAvailable:s,job:d,onRunStarted:c,onRunChanged:g}){let[h,y]=Yt.useState(!1),[m,b]=Yt.useState({status:"loading"}),[p,x]=Yt.useState(!1),[L,w]=Yt.useState(null),[C,T]=Yt.useState(!1),[I,O]=Yt.useState(null),B=Yt.useRef(null),F=d.state==="running",X=Yt.useCallback(()=>{B.current?.abort(),B.current=null,y(!1)},[]);Yt.useEffect(()=>{if(!n)X()},[n,X]),Yt.useEffect(()=>()=>B.current?.abort(),[]);let ie=()=>{B.current?.abort();let V=new AbortController;B.current=V;let ke=i;b({status:"loading"}),w(null),O(null),y(!0),wT(ke,V.signal).then((pe)=>{if(!V.signal.aborted)b({status:"ready",estimate:pe,range:ke})},(pe)=>{if(!V.signal.aborted)b({status:"error",message:Kb(pe)})})},Q=async()=>{if(m.status!=="ready")return;x(!0),w(null);try{await TT(m.range),X(),c()}catch(V){w(Kb(V))}finally{x(!1)}},de=async()=>{T(!0),O(null);try{await IT(),g()}catch(V){O(Kb(V))}finally{T(!1)}},J=m.status==="ready"?m.estimate:null,P=m.status==="loading"?{label:"Proceed",onClick:Q,disabled:!0}:J?.available?{label:p?"Starting…":"Proceed",onClick:Q,disabled:p||J.messages===0}:void 0;return Z.jsxDEV(ve,{index:1,title:Z.jsxDEV(Z.Fragment,{children:["Judge classification ",Z.jsxDEV(FE,{job:d,judgeAvailable:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:Z.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ie,disabled:!s||F,title:!s?TI:F?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[Z.jsxDEV(Ol,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[Z.jsxDEV("div",{className:"stack frustration-judge",children:[F?Z.jsxDEV(VE,{job:d,cancelling:C,onCancel:de},void 0,!1,void 0,this):Z.jsxDEV($E,{job:d},void 0,!1,void 0,this),!s&&Z.jsxDEV("p",{className:"micro dim",children:TI},void 0,!1,void 0,this),I&&Z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:I},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.jsxDEV($T,{open:h,title:"Classify with judge",onClose:X,primaryAction:P,children:[Z.jsxDEV(GE,{estimate:m},void 0,!1,void 0,this),L&&Z.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function FE({job:n,judgeAvailable:i}){switch(n.state){case"running":return Z.jsxDEV(ht,{tone:"ok",children:[Z.jsxDEV(Bl,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return Z.jsxDEV(ht,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return Z.jsxDEV(ht,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return Z.jsxDEV(ht,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return Z.jsxDEV(ht,{children:i?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function GE({estimate:n}){if(n.status==="loading")return Z.jsxDEV("p",{className:"muted",children:"Estimating cost…"},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:"Everything in this range is already judged. There is nothing left to classify."},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:"Estimated cost"},void 0,!1,void 0,this),Z.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",Et(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Z.jsxDEV(No,{items:[{key:"messages",label:"Unjudged unique messages",value:R(i.messages)},{key:"chars",label:"Prose characters",value:R(i.chars)},{key:"tokens",label:"Estimated input tokens",value:R(i.inputTokens)},{key:"judge",label:"Judge",value:i.judge}]},void 0,!1,void 0,this),Z.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function VE({job:n,cancelling:i,onCancel:s}){let d=n.done+n.failed,c=n.total>0?Math.min(1,d/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:[R(n.done),"/",R(n.total)," judged"]},void 0,!0,void 0,this),Z.jsxDEV("span",{className:"num dim",children:He(c)},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:s,disabled:i,children:i?"Cancelling…":"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":d,children:Z.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${c*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:[R(n.failed)," failed"]},void 0,!0,void 0,this),Z.jsxDEV("span",{children:["cost so far ",Z.jsxDEV("span",{className:"num",children:Et(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:["elapsed ",RI(Date.now()-n.startedAt)]},void 0,!0,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:[R(n.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function $E({job:n}){let i=`${R(n.done)}/${R(n.total)} messages`,s=n.failed>0?`, ${R(n.failed)} failed`:"",d=n.judge?` with ${n.judge}`:"",c=n.startedAt!==null&&n.finishedAt!==null?` in ${RI(n.finishedAt-n.startedAt)}`:"";switch(n.state){case"idle":return Z.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return Z.jsxDEV("p",{className:"muted",children:["Last run judged ",i,s,d,c," for ",Z.jsxDEV("span",{className:"num",children:Et(n.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return Z.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",i,s,"; spent ",Z.jsxDEV("span",{className:"num",children:Et(n.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return Z.jsxDEV("p",{className:"muted",children:["Last run failed after ",i,s,": ",Z.jsxDEV("span",{className:"tone-bad",children:n.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",Z.jsxDEV("span",{className:"num",children:Et(n.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function _f(n){return`${n.modelClass}/${n.family??"unclassified"}`}function ld(n){return n.messages>0&&n.judged/n.messages<Jb}function jE(n){let i=2166136261;for(let s=0;s<n.length;s++)i^=n.charCodeAt(s),i=Math.imul(i,16777619);return i>>>0}function XE(n){let i=[...new Set(n.map(_f))].sort(),s=new Set,d=new Map;for(let c of i){let g=jE(c)%no.length;for(let h=0;h<no.length&&s.has(g);h++)g=(g+1)%no.length;s.add(g),d.set(c,no[g])}return d}function YE(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 QE=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function WE(n,i){if(i==="angry")return n.angry;if(i==="assistant")return n.atAssistant-n.angry;return n.annoyed-n.atAssistant}function Pf(n,i){return i>0?n/i*100:0}function ZE({models:n,stale:i}){let[s,d]=Yt.useState(null),[c,g]=qn(),[h,y]=Yt.useState(!1),[m,b]=Yt.useState(!1),p=Yt.useMemo(()=>XE(n),[n]),x=Yt.useMemo(()=>{let Q=new Map;for(let de of n)Q.set(de.modelClass,(Q.get(de.modelClass)??0)+de.messages);return Q},[n]),L=Yt.useMemo(()=>{let Q=null,de=-1;for(let[J,P]of x)if(P>de)Q=J,de=P;return Q??Uf},[x]),w=s!==null&&(s===Uf||x.has(s))?s:L,C=Yt.useMemo(()=>[{value:Uf,label:"All",title:"Every model class"},...[...x].map(([Q,de])=>({value:Q,label:Q,title:`${R(de)} messages`}))],[x]),T=Yt.useMemo(()=>w===Uf?n:n.filter((Q)=>Q.modelClass===w),[n,w]),I=Yt.useMemo(()=>{let Q=new Map;for(let de of T){let J=_f(de),P=Q.get(J);if(P){P.messages+=de.messages;continue}let V=de.family??"unclassified";Q.set(J,{key:J,label:w===Uf?`${de.modelClass} · ${V}`:V,messages:de.messages})}return[...Q.values()]},[T,w]),O=Yt.useMemo(()=>T.filter((Q)=>!c.has(_f(Q))),[T,c]),B=O.filter((Q)=>Q.messages<qh).length,F=O.filter(ld).length,X=Yt.useMemo(()=>O.filter((Q)=>(h||Q.messages>=qh)&&!(m&&ld(Q))),[O,h,m]);if(n.length===0)return Z.jsxDEV(ve,{index:2,title:"Frustration by model version",stale:i,children:Z.jsxDEV(wt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let ie=X.some(ld);return Z.jsxDEV(Z.Fragment,{children:[Z.jsxDEV(ve,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:i,children:Z.jsxDEV("div",{className:"stack frustration-chart-body",children:[Z.jsxDEV("div",{className:"frustration-classes",children:Z.jsxDEV(Da,{size:"sm","aria-label":"Model class",options:C,value:w,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.jsxDEV("div",{className:"row frustration-filters",children:[Z.jsxDEV(ra,{items:I.map((Q)=>({key:Q.key,label:Q.label,color:p.get(Q.key)??no[0],value:R(Q.messages)})),hidden:c,onToggle:g},void 0,!1,void 0,this),Z.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Z.jsxDEV("label",{className:"check",title:`Models with fewer than ${qh} messages have noisy rates`,children:[Z.jsxDEV("input",{type:"checkbox",checked:h,onChange:(Q)=>y(Q.target.checked)},void 0,!1,void 0,this),"Include < ",qh," messages",B>0?` (${B})`:""]},void 0,!0,void 0,this),Z.jsxDEV("label",{className:"check",title:`Hide models with under ${Jb*100}% judged messages (rates from regex signals)`,children:[Z.jsxDEV("input",{type:"checkbox",checked:m,onChange:(Q)=>b(Q.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",F>0?` (${F})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Z.jsxDEV(KE,{hasRegexRows:ie},void 0,!1,void 0,this),Z.jsxDEV(JE,{rows:X,familyColors:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z.jsxDEV(eN,{rows:X,familyColors:p,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KE({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),"At assistant trend"]},void 0,!0,void 0,this),Z.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Jb*100}% of these messages are judged; their rates come from regex signals`,children:[Z.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",n?" (run the judge)":""]},void 0,!0,void 0,this),Z.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JE({rows:n,familyColors:i}){let s=Yt.useMemo(()=>{let d=new Map;n.forEach((g,h)=>{let y=_f(g),m=ld(g),b=`${y}|${m?"regex":"judged"}`,p=d.get(b);if(p)p.slots.push(h);else d.set(b,{family:y,regex:m,slots:[h]})});let c=[];for(let g of QE)for(let[h,y]of d){let m=n.map(()=>null);for(let b of y.slots)m[b]=Pf(WE(n[b],g.key),n[b].messages);c.push({key:`${g.key}|${h}`,label:g.label,color:YE(i.get(y.family)??no[0],g.key),values:m,pattern:y.regex?"hatch":void 0})}return c.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:n.map((g)=>Pf(g.atAssistant,g.messages)),kind:"line",tooltip:!1}),c},[n,i]);if(n.length===0)return Z.jsxDEV("div",{className:"frustration-chart-empty",children:Z.jsxDEV(wt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Z.jsxDEV(pn,{slots:n.length,tickLabel:(d)=>n[d].label,series:s,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let c=n[d];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:"Annoyed, any target"},void 0,!1,void 0,this),Z.jsxDEV("span",{className:"chart-tooltip-value",children:al(c.annoyed,c.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.jsxDEV("div",{className:"micro dim",children:[R(c.messages)," messages · judged ",R(c.judged)," (",al(c.judged,c.messages),")",ld(c)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function eN({rows:n,familyColors:i,stale:s}){let d=Yt.useMemo(()=>[{key:"model",header:"Model",sort:(c)=>c.label,render:(c)=>Z.jsxDEV("span",{className:"row",title:c.key,children:[Z.jsxDEV("span",{className:"swatch",style:{background:i.get(_f(c))??no[0]}},void 0,!1,void 0,this),Z.jsxDEV("span",{className:"cell-primary",children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(c)=>Z.jsxDEV("span",{className:"mono micro dim",children:c.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(c)=>c.messages,render:(c)=>Z.jsxDEV("span",{className:"num",children:R(c.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(c)=>c.messages>0?c.judged/c.messages:0,render:(c)=>ld(c)?Z.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[Z.jsxDEV(ht,{tone:"warn",children:"regex"},void 0,!1,void 0,this),Z.jsxDEV("span",{className:"num dim",children:al(c.judged,c.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Z.jsxDEV("span",{className:"num",children:al(c.judged,c.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(c)=>Pf(c.annoyed,c.messages),render:(c)=>Z.jsxDEV("span",{className:"num",title:`${R(c.annoyed)} messages`,children:al(c.annoyed,c.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(c)=>Pf(c.atAssistant,c.messages),render:(c)=>Z.jsxDEV("span",{className:"num",title:`${R(c.atAssistant)} messages`,children:al(c.atAssistant,c.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(c)=>Pf(c.angry,c.messages),render:(c)=>Z.jsxDEV("span",{className:c.angry>0?"num tone-bad":"num",title:`${R(c.angry)} messages`,children:al(c.angry,c.messages)},void 0,!1,void 0,this)}],[i]);return Z.jsxDEV(ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:s,children:Z.jsxDEV(Ft,{rows:n,rowKey:(c)=>c.key,columns:d,dense:!0,empty:Z.jsxDEV(wt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Hf=U(et(),1);var Gt=U(te(),1),tN=86400000,aN={snapcompact:"Snapcompact"},oN=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function MI({active:n,range:i}){let[s,d]=Hf.useState(null),c=Pt(["gain",i,s],({signal:w})=>MT(i,s,w),{enabled:n}),g=Kt(i),h=c.data,y=Hf.useMemo(()=>{let w=(h?.timeSeries??[]).map((B)=>({...B,timestamp:Date.parse(`${B.date}T00:00:00Z`)})),C=mo(i,w.map((B)=>B.timestamp),tN),T=sa(w,C,(B)=>B.snapcompact),I=0,O=T.map((B)=>I+=B);return{buckets:C,daily:T,cumulative:O}},[h,i]),m=Hf.useMemo(()=>{if(!h)return[];let w=h.overall.savedTokens;return Object.keys(h.bySource).map((C)=>({...h.bySource[C],source:C,share:w>0?h.bySource[C].savedTokens/w:0}))},[h]),b=h?.projects??[],p=s!==null&&!b.includes(s)?[s,...b]:b,x=s?` for ${s}`:"",L=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:y.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:y.cumulative,kind:"line",axis:"right"}];return Gt.jsxDEV("div",{className:"page",children:[Gt.jsxDEV(pa,{title:"Gain",description:`Tokens snapcompact kept out of context${x} in ${g.windowLabel}.`,actions:p.length>0&&Gt.jsxDEV("select",{className:"input","aria-label":"Project",value:s??"",onChange:(w)=>d(w.target.value||null),style:{maxWidth:320},children:[Gt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),p.map((w)=>Gt.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Gt.jsxDEV(Xe,{query:c,skeleton:Gt.jsxDEV(Ot,{height:96},void 0,!1,void 0,this),isEmpty:(w)=>w.overall.hits===0&&w.timeSeries.length===0,empty:Gt.jsxDEV(ve,{children:Gt.jsxDEV(wt,{title:`No savings recorded${x} in ${g.windowLabel}`,hint:i==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:w})=>Gt.jsxDEV(Gt.Fragment,{children:[Gt.jsxDEV("div",{"data-stale":c.stale,children:Gt.jsxDEV(Ca,{min:180,children:[Gt.jsxDEV(ce,{label:"Saved tokens",value:re(w.savedTokens),hint:R(w.savedTokens),spark:y.daily},void 0,!1,void 0,this),Gt.jsxDEV(ce,{label:"Saved bytes",value:Hb(w.savedBytes)},void 0,!1,void 0,this),Gt.jsxDEV(ce,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:w.reductionPercent!==null?He(w.reductionPercent):"–",hint:w.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),Gt.jsxDEV(ce,{label:"Hits",value:R(w.hits)},void 0,!1,void 0,this),Gt.jsxDEV(ce,{label:"Saved per hit",value:w.hits>0?re(w.savedTokens/w.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Gt.jsxDEV(ve,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:Gt.jsxDEV(ra,{items:L.map((C)=>({key:C.key,label:C.label,color:C.color}))},void 0,!1,void 0,this),stale:c.stale,children:Gt.jsxDEV(pn,{slots:y.buckets.length,tickLabel:(C)=>oN.format(y.buckets[C]),series:L,height:260,formatTooltip:R,formatRight:re},void 0,!1,void 0,this)},void 0,!1,void 0,this),Gt.jsxDEV(ve,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:c.stale,children:Gt.jsxDEV(Ft,{rows:m,rowKey:(C)=>C.source,columns:nN},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 nN=[{key:"source",header:"Source",sort:(n)=>n.source,render:(n)=>Gt.jsxDEV("span",{className:"cell-primary",children:aN[n.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(n)=>n.savedTokens,render:(n)=>Gt.jsxDEV("span",{title:R(n.savedTokens),children:Gt.jsxDEV(Ia,{value:n.share,max:1,display:re(n.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(n)=>n.share,render:(n)=>Gt.jsxDEV("span",{className:"num muted",children:He(n.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(n)=>n.savedBytes,render:(n)=>Gt.jsxDEV("span",{className:"num",children:Hb(n.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(n)=>n.hits,render:(n)=>Gt.jsxDEV("span",{className:"num",children:R(n.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(n)=>n.reductionPercent??-1,render:(n)=>Gt.jsxDEV("span",{className:"num",children:n.reductionPercent!==null?He(n.reductionPercent):"–"},void 0,!1,void 0,this)}];var rd=U(et(),1);var Te=U(te(),1),lN=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],rN=6;function DI({active:n,range:i}){let s=Pt(["models",i],({signal:T})=>yT(i,T),{enabled:n}),d=Kt(i),[c,g]=rd.useState("share"),[h,y]=qn(),[m,b]=rd.useState(null),p=rd.useMemo(()=>s.data?sN(s.data,i):null,[s.data,i]),x=cN(d.bucketMs),L=rd.useMemo(()=>p?uN(p,m,x):[],[p,m,x]),w=(T)=>T.byModel.length===0,C=Te.jsxDEV(wt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Te.jsxDEV("div",{className:"page",children:[Te.jsxDEV(pa,{title:"Models",description:`Which models did the work in ${d.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),Te.jsxDEV(Xe,{query:s,skeleton:Te.jsxDEV(Za,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:w,empty:C,children:()=>p&&Te.jsxDEV("div",{"data-stale":s.stale,children:Te.jsxDEV(Ca,{min:200,children:[Te.jsxDEV(ce,{label:"Models used",value:R(p.models.length),hint:`across ${R(p.providerCount)} provider${p.providerCount===1?"":"s"}`},void 0,!1,void 0,this),Te.jsxDEV(ce,{label:"Most used",title:p.top?`${p.top.model} (${p.top.provider})`:void 0,value:p.top?p.top.model:"–",hint:p.top?`${He(p.top.totalRequests/Math.max(1,p.totalRequests))} of requests · ${p.top.provider}`:void 0},void 0,!1,void 0,this),Te.jsxDEV(ce,{label:"Requests",value:R(p.totalRequests),hint:`${R(p.failedRequests)} failed`,spark:p.requestTotals},void 0,!1,void 0,this),Te.jsxDEV(ce,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Jt(p.totalCost,p.unpricedRequests),hint:p.unpricedRequests>0?`${R(p.unpricedRequests)} unpriced`: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(ve,{index:1,title:"Request share",description:c==="share"?`Each model's share of requests per ${x}`:`Requests per ${x}, stacked by model`,actions:Te.jsxDEV(Da,{size:"sm",options:lN,value:c,onChange:g,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:s.stale,children:Te.jsxDEV(Xe,{query:s,skeleton:Te.jsxDEV(Ot,{height:260},void 0,!1,void 0,this),isEmpty:w,empty:C,children:()=>p&&Te.jsxDEV("div",{className:"stack",style:{gap:12},children:[Te.jsxDEV(mn,{buckets:p.buckets,bucketMs:d.bucketMs,series:c==="share"?p.shareSeries:p.countSeries,hidden:h,height:260,yMax:c==="share"?1:void 0,format:c==="share"?(T)=>He(T,0):re,formatTooltip:c==="share"?(T)=>He(T):R,showTotal:c==="requests"},void 0,!1,void 0,this),Te.jsxDEV(ra,{items:p.countSeries.map((T)=>({key:T.key,label:T.label,color:T.color,value:He(AI(T.values)/Math.max(1,AI(p.requestTotals)))})),hidden:h,onToggle:y},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(ve,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:s.stale,flush:!0,children:Te.jsxDEV(Xe,{query:s,skeleton:Te.jsxDEV(Ta,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:C,children:()=>p&&Te.jsxDEV(Ft,{rows:p.models,rowKey:(T)=>Ua(T.model,T.provider),columns:L,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(T)=>{let I=Ua(T.model,T.provider);b((O)=>O===I?null:I)},selectedKey:m,expanded:(T)=>{let I=Ua(T.model,T.provider);return I===m?Te.jsxDEV(dN,{model:T,color:p.swatches.get(I)??"var(--chart-primary)",points:p.performance.get(I)??[],bucketMs:d.bucketMs,bucketWord:x},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 sN(n,i){let s=n.byModel,d=Nh(s),c=iN(s),g=mo(i,n.modelSeries.map((I)=>I.timestamp)),h=sa(n.modelSeries,g,(I)=>I.requests),y={buckets:g,key:(I)=>Ua(I.model,I.provider),label:(I)=>c.get(I)??I,value:(I)=>I.requests,colors:d},m=Fl(n.modelSeries,{...y,limit:rN}).map((I)=>({...I,values:I.values.map((O)=>O||null)})),b=m.map((I)=>({...I,values:I.values.map((O,B)=>O===null?null:O/h[B])})),p=new Map(Fl(n.modelSeries,y).map((I)=>[I.key,I.values])),x,L=0,w=0,C=0,T=0;for(let I of s){if(!x||I.totalRequests>x.totalRequests)x=I;L+=I.totalRequests,w+=I.failedRequests,C+=I.totalCost,T+=I.unpricedRequests}return{models:s,top:x,swatches:new Map(m.filter((I)=>I.key!=="__other__").map((I)=>[I.key,I.color])),labels:c,providerCount:new Set(s.map((I)=>I.provider)).size,totalRequests:L,failedRequests:w,totalCost:C,unpricedRequests:T,maxRequests:x?.totalRequests??0,buckets:g,requestTotals:h,countSeries:m,shareSeries:b,trends:p,performance:vI(n.modelPerformanceSeries)}}function iN(n){let i=new Map;for(let s of n)i.set(s.model,(i.get(s.model)??0)+1);return new Map(n.map((s)=>[Ua(s.model,s.provider),(i.get(s.model)??0)>1?`${s.model} · ${s.provider}`:s.model]))}function uN(n,i,s){return[{key:"expand",header:"",width:28,render:(d)=>Te.jsxDEV("span",{className:"models-chevron","data-open":Ua(d.model,d.provider)===i,children:Te.jsxDEV(Zn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(d)=>d.model,render:(d)=>Te.jsxDEV(oo,{lead:Te.jsxDEV(Kn,{color:n.swatches.get(Ua(d.model,d.provider))??Co},void 0,!1,void 0,this),primary:Te.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(d)=>d.totalRequests,render:(d)=>Te.jsxDEV(Ia,{value:d.totalRequests,max:n.maxRequests,display:R(d.totalRequests),color:n.swatches.get(Ua(d.model,d.provider))??Co},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(d)=>d.totalCost,render:(d)=>Te.jsxDEV("span",{className:"num",children:Jt(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(d)=>Ns(d),render:(d)=>{let c=Ns(d);return Te.jsxDEV("span",{className:"num",title:R(c),children:re(c)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(d)=>d.cacheRate,render:(d)=>Te.jsxDEV("span",{className:"num",children:He(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?Te.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Te.jsxDEV("span",{title:`${R(d.failedRequests)} failed`,children:Te.jsxDEV(ht,{tone:cn(d.errorRate),mono:!0,children:ko(d.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(d)=>d.avgTokensPerSecond??-1,render:(d)=>Te.jsxDEV("span",{className:"num",children:Ul(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>Te.jsxDEV("span",{className:"num",children:St(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${s}`,width:112,render:(d)=>{let c=Ua(d.model,d.provider),g=n.trends.get(c);return g?Te.jsxDEV(td,{values:g.map((h)=>h??0),color:n.swatches.get(c)??Co,width:96,height:22},void 0,!1,void 0,this):Te.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function dN({model:n,color:i,points:s,bucketMs:d,bucketWord:c}){let[g,h]=qn(),y=[{key:"tps",label:"Tokens/s",color:i,kind:s.length>1?"line":"bars",values:s.map((m)=>m.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:Co,kind:s.length>1?"line":"bars",axis:"right",dashed:!0,values:s.map((m)=>m.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:"Efficiency"},void 0,!1,void 0,this),Te.jsxDEV(No,{items:[{key:"err",label:"Error rate",value:Te.jsxDEV("span",{className:`tone-${cn(n.errorRate)}`,children:[ko(n.errorRate)," ",Te.jsxDEV("span",{className:"dim",children:["(",R(n.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:He(n.cacheRate)},{key:"savings",label:"Cache savings",value:Te.jsxDEV("span",{className:n.cacheSavings<0?"tone-bad":void 0,children:He(n.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:R(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:"Latency"},void 0,!1,void 0,this),Te.jsxDEV(No,{items:[{key:"dur",label:"Avg duration",value:St(n.avgDuration)},{key:"ttft",label:"Avg TTFT",value:St(n.avgTtft)},{key:"tps",label:"Tokens/s",value:Ul(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:"Tokens"},void 0,!1,void 0,this),Te.jsxDEV(No,{items:[{key:"in",label:"Uncached input",value:re(n.totalInputTokens)},{key:"cr",label:"Cache read",value:re(n.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:re(n.totalCacheWriteTokens)},{key:"out",label:"Output",value:re(n.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"micro dim",children:["First seen ",xa(n.firstTimestamp)," · last seen"," ",xa(n.lastTimestamp)]},void 0,!0,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:["Performance per active ",c]},void 0,!0,void 0,this),Te.jsxDEV(ra,{items:y.map((m)=>({key:m.key,label:m.label,color:m.color})),hidden:g,onToggle:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.length===0?Te.jsxDEV(wt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Te.jsxDEV(mn,{buckets:s.map((m)=>m.timestamp),bucketMs:d,series:y,hidden:g,stacked:!1,height:240,format:re,formatTooltip:(m)=>`${Ul(m)} tok/s`,formatRight:(m)=>`${Number(m.toFixed(2))}s`,tooltipExtra:(m)=>Te.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Te.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),Te.jsxDEV("span",{className:"chart-tooltip-value",children:R(s[m].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 cN(n){if(n<3600000)return"5 minutes";if(n<86400000)return"hour";return"day"}function AI(n){let i=0;for(let s of n)i+=s??0;return i}var Bh=U(et(),1);var De=U(te(),1),fN=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],EI={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},NI={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},OI=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function qI({active:n,range:i,onRequestClick:s}){let d=Pt(["overview",i],({signal:p})=>gT(i,p),{enabled:n}),c=Pt(["recent-requests"],({signal:p})=>gh(12,p),{enabled:n}),[g,h]=Bh.useState("requests"),y=Kt(i),m=Bh.useMemo(()=>{let p=d.data?.timeSeries??[],x=mo(i,p.map((L)=>L.timestamp));return{buckets:x,requests:sa(p,x,(L)=>L.requests-L.errors),errors:sa(p,x,(L)=>L.errors),tokens:sa(p,x,(L)=>L.tokens),cost:sa(p,x,(L)=>L.cost),all:sa(p,x,(L)=>L.requests)}},[d.data,i]),b=g==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:m.requests},{key:"err",label:"Failed",color:"var(--bad)",values:m.errors}]:g==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:m.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:m.cost}];return De.jsxDEV("div",{className:"page",children:[De.jsxDEV(pa,{title:"Overview",description:`Everything omp did across your sessions in ${y.windowLabel}.`},void 0,!1,void 0,this),De.jsxDEV(Xe,{query:d,skeleton:De.jsxDEV(Ot,{height:112},void 0,!1,void 0,this),children:({overall:p})=>De.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[De.jsxDEV(Ca,{min:190,children:[De.jsxDEV(ce,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Jt(p.totalCost,p.unpricedRequests),hint:p.unpricedRequests>0?`${R(p.unpricedRequests)} unpriced`:void 0,spark:m.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),De.jsxDEV(ce,{label:"Requests",value:R(p.totalRequests),hint:`${R(p.failedRequests)} failed`,spark:m.all},void 0,!1,void 0,this),De.jsxDEV(ce,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:re(Ns(p)),hint:`${re(p.totalOutputTokens)} output`,spark:m.tokens},void 0,!1,void 0,this),De.jsxDEV(ce,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:He(p.cacheRate),hint:`${He(p.cacheSavings)} saved`},void 0,!1,void 0,this),De.jsxDEV(ce,{label:"Error rate",value:ko(p.errorRate),hint:`${R(p.successfulRequests)} succeeded`,spark:m.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV(Ca,{min:140,children:[De.jsxDEV(ce,{size:"sm",label:"Uncached input",value:re(p.totalInputTokens)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Cache read",value:re(p.totalCacheReadTokens)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Cache write",value:re(p.totalCacheWriteTokens)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Output",value:re(p.totalOutputTokens)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Premium requests",value:R(Math.round(p.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Tokens/s",value:Ul(p.avgTokensPerSecond)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Avg latency",value:St(p.avgDuration)},void 0,!1,void 0,this),De.jsxDEV(ce,{size:"sm",label:"Avg TTFT",value:St(p.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(ve,{index:1,title:"Activity",description:`Per ${y.bucketMs<3600000?"5 minutes":y.bucketMs<86400000?"hour":"day"}`,actions:De.jsxDEV(Da,{size:"sm",options:fN,value:g,onChange:h},void 0,!1,void 0,this),stale:d.stale,children:De.jsxDEV(Xe,{query:d,skeleton:De.jsxDEV(Ot,{height:260},void 0,!1,void 0,this),children:()=>De.jsxDEV(mn,{buckets:m.buckets,bucketMs:y.bucketMs,series:b,height:260,format:g==="cost"?(p)=>Jt(p,0):re},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),De.jsxDEV(ve,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:d.stale,children:De.jsxDEV(Xe,{query:d,skeleton:De.jsxDEV(Ot,{height:260},void 0,!1,void 0,this),children:({overall:p,byAgentType:x})=>{let L={input:p.totalInputTokens,cacheRead:p.totalCacheReadTokens,cacheWrite:p.totalCacheWriteTokens,output:p.totalOutputTokens},w=Ns(p),C=gI(x);return De.jsxDEV("div",{className:"stack",style:{gap:18},children:[De.jsxDEV("div",{className:"stack",style:{gap:10},children:[De.jsxDEV(Hl,{segments:OI.map((T)=>({key:T.key,label:T.label,value:L[T.key],color:T.color}))},void 0,!1,void 0,this),De.jsxDEV(ra,{items:OI.map((T)=>({key:T.key,label:T.label,color:T.color,value:w>0?He(L[T.key]/w,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:"By agent"},void 0,!1,void 0,this),De.jsxDEV(Hl,{segments:C.segments.map((T)=>({key:T.agentType,label:EI[T.agentType],value:T.tokens,color:NI[T.agentType]}))},void 0,!1,void 0,this),C.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:NI[T.agentType]}},void 0,!1,void 0,this),EI[T.agentType],De.jsxDEV("span",{className:"dim num",children:[R(T.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),De.jsxDEV("span",{className:"row",children:[De.jsxDEV("span",{className:"dim num",children:re(T.tokens)},void 0,!1,void 0,this),De.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:He(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(ve,{index:3,title:De.jsxDEV(De.Fragment,{children:[De.jsxDEV(Bl,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:De.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:["All requests ",De.jsxDEV(ef,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:De.jsxDEV(Xe,{query:c,skeleton:De.jsxDEV(Ta,{rows:8},void 0,!1,void 0,this),children:(p)=>De.jsxDEV(Ft,{rows:p,rowKey:(x)=>x.id??`${x.sessionFile}:${x.entryId}`,onRowClick:(x)=>x.id!==void 0&&s(x.id),columns:pN,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 pN=[{key:"model",header:"Model",render:(n)=>De.jsxDEV(oo,{primary:n.model,secondary:n.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(n)=>De.jsxDEV("span",{className:"muted",children:xa(n.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(n)=>De.jsxDEV("span",{className:"num",children:R(n.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(n)=>De.jsxDEV("span",{className:"num",children:Es(n,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(n)=>De.jsxDEV("span",{className:"num",children:St(n.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(n)=>n.errorMessage?De.jsxDEV(ht,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):De.jsxDEV(ht,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var ol=U(et(),1);var Qe=U(te(),1),mN=100,BI=8;function zI({active:n,range:i}){let s=Pt(["projects",i],({signal:T})=>RT(i,T),{enabled:n}),[d,c]=ol.useState(""),[g,h]=ol.useState(!0),y=ol.useDeferredValue(d.trim().toLowerCase()),m=Kt(i),b=ol.useMemo(()=>bI(s.data??[]),[s.data]),p=ol.useMemo(()=>g?b.rows.filter((T)=>!T.temporary):b.rows,[b,g]),x=ol.useMemo(()=>y?p.filter((T)=>T.folder.toLowerCase().includes(y)):p,[p,y]),L=ol.useMemo(()=>({cost:[...p].sort((T,I)=>I.totalCost-T.totalCost).slice(0,BI),requests:[...p].sort((T,I)=>I.totalRequests-T.totalRequests).slice(0,BI)}),[p]),w=Qe.jsxDEV(wt,{title:b.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),C=ol.useMemo(()=>hN(b.maxRequests,b.maxCost),[b]);return Qe.jsxDEV("div",{className:"page",children:[Qe.jsxDEV(pa,{title:"Projects",description:`Usage by session folder in ${m.windowLabel}.`},void 0,!1,void 0,this),Qe.jsxDEV(Xe,{query:s,skeleton:Qe.jsxDEV(Ot,{height:96},void 0,!1,void 0,this),children:()=>Qe.jsxDEV("div",{"data-stale":s.stale,children:Qe.jsxDEV(Ca,{min:180,children:[Qe.jsxDEV(ce,{label:"Folders",value:R(b.rows.length),hint:b.temporaryCount>0?`${R(b.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(ce,{label:"Requests",value:R(b.totalRequests),hint:`${R(b.failedRequests)} failed`},void 0,!1,void 0,this),Qe.jsxDEV(ce,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Jt(b.totalCost,b.unpricedRequests),hint:b.unpricedRequests>0?`${R(b.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(ce,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:re(b.conversationTokens)},void 0,!1,void 0,this),Qe.jsxDEV(ce,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:He(b.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),Qe.jsxDEV("div",{className:"grid grid-2",children:[Qe.jsxDEV(ve,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:s.stale,children:Qe.jsxDEV(Xe,{query:s,skeleton:Qe.jsxDEV(Ot,{height:236},void 0,!1,void 0,this),isEmpty:()=>L.cost.length===0,empty:w,children:()=>Qe.jsxDEV(qi,{items:L.cost.map((T)=>({key:T.folder,label:Qe.jsxDEV("span",{className:"mono",children:On(T.folder)},void 0,!1,void 0,this),value:T.totalCost,display:`${Jt(T.totalCost,T.unpricedRequests)} · ${He(T.costShare)}`,color:"var(--chart-secondary)"})),onSelect:c},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe.jsxDEV(ve,{index:2,title:"Top by requests",description:"Share of all requests",stale:s.stale,children:Qe.jsxDEV(Xe,{query:s,skeleton:Qe.jsxDEV(Ot,{height:236},void 0,!1,void 0,this),isEmpty:()=>L.requests.length===0,empty:w,children:()=>Qe.jsxDEV(qi,{items:L.requests.map((T)=>({key:T.folder,label:Qe.jsxDEV("span",{className:"mono",children:On(T.folder)},void 0,!1,void 0,this),value:T.totalRequests,display:`${R(T.totalRequests)} · ${He(T.requestShare)}`})),onSelect:c},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(ve,{index:3,title:"Folders",description:s.data?x.length===b.rows.length?`${R(b.rows.length)} folders`:`${R(x.length)} of ${R(b.rows.length)} folders`:void 0,actions:Qe.jsxDEV(Qe.Fragment,{children:[b.temporaryCount>0&&Qe.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[Qe.jsxDEV("input",{type:"checkbox",checked:g,onChange:(T)=>h(T.target.checked)},void 0,!1,void 0,this),"Hide temporary (",R(b.temporaryCount),")"]},void 0,!0,void 0,this),Qe.jsxDEV(zl,{value:d,onChange:c,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:s.stale,children:Qe.jsxDEV(Xe,{query:s,skeleton:Qe.jsxDEV(Ta,{rows:10},void 0,!1,void 0,this),children:()=>Qe.jsxDEV(Ft,{rows:x,rowKey:(T)=>T.folder,columns:C,initialSort:{key:"cost",dir:"desc"},limit:mN,dense:!0,empty:Qe.jsxDEV(wt,{title:b.rows.length===0?"No project folders in this range":"No folders match",hint:b.rows.length===0?"Try a longer range.":g&&b.temporaryCount>0?"Temporary folders are 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 hN(n,i){return[{key:"folder",header:"Folder",sort:(s)=>s.folder,render:(s)=>Qe.jsxDEV("span",{className:"row projects-folder",title:s.folder||"(root)",children:[Qe.jsxDEV("span",{className:"mono truncate",children:On(s.folder)},void 0,!1,void 0,this),s.temporary&&Qe.jsxDEV(ht,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(s)=>s.totalRequests,render:(s)=>Qe.jsxDEV("span",{title:`${He(s.requestShare)} of all requests`,children:Qe.jsxDEV(Ia,{value:s.totalRequests,max:n,display:R(s.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(s)=>s.totalCost,render:(s)=>Qe.jsxDEV("span",{title:`${He(s.costShare)} of all cost`,children:Qe.jsxDEV(Ia,{value:s.totalCost,max:i,display:Jt(s.totalCost,s.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(s)=>s.conversationTokens,render:(s)=>Qe.jsxDEV("span",{className:"num",title:R(s.conversationTokens),children:re(s.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(s)=>s.cacheRate,render:(s)=>Qe.jsxDEV("span",{className:"num",children:He(s.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(s)=>s.cacheSavings,render:(s)=>Qe.jsxDEV("span",{className:`num ${s.cacheSavings<0?"tone-bad":"muted"}`,children:He(s.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(s)=>s.errorRate,render:(s)=>Qe.jsxDEV("span",{title:`${R(s.failedRequests)} failed`,children:Qe.jsxDEV(ht,{tone:s.failedRequests>0?cn(s.errorRate):"neutral",mono:!0,children:ko(s.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(s)=>s.avgDuration??-1,render:(s)=>Qe.jsxDEV("span",{className:"num",children:St(s.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(s)=>s.lastTimestamp,render:(s)=>Qe.jsxDEV("span",{className:"dim",children:xa(s.lastTimestamp)},void 0,!1,void 0,this)}]}var qo=U(et(),1);var ae=U(te(),1),gN=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],UI=6,PI=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],_I="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function HI({active:n,range:i}){let s=Pt(["providers",i],({signal:B})=>NT(i,B),{enabled:n}),[d,c]=qo.useState("tokens"),[g,h]=qn(),y=Kt(i),m=Pt(["provider-windows",i],({signal:B})=>qb(i,null,B),{enabled:n}),[b,p]=qo.useState(null),x=yN(m.data?.windowInsights??[],b),L=x?.provider??null,w=Pt(["provider-windows",i,L],({signal:B})=>qb(i,L,B),{enabled:n&&L!==null}),C=qo.useMemo(()=>{let B=s.data?.providers??[],F=s.data?.series??[],X=qf(B.map((J)=>({key:J.provider,weight:J.totalTokens}))),ie=mo(i,F.map((J)=>J.timestamp)),Q={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let J of B)Q.requests+=J.totalRequests,Q.failed+=J.failedRequests,Q.tokens+=J.totalTokens,Q.cost+=J.totalCost,Q.unpriced+=J.unpricedRequests;let de=(J)=>Fl(F,{buckets:ie,key:(P)=>P.provider,value:J,limit:UI,colors:X}).map((P)=>({...P,values:P.values.map((V)=>V||null)}));return{colors:X,buckets:ie,totals:Q,burn:{tokens:de((J)=>J.totalTokens),cost:de((J)=>J.cost),requests:de((J)=>J.requests)},spark:{tokens:sa(F,ie,(J)=>J.totalTokens),cost:sa(F,ie,(J)=>J.cost),requests:sa(F,ie,(J)=>J.requests)},topProvider:B.reduce((J,P)=>J===null||P.totalTokens>J.totalTokens?P:J,null)}},[s.data,i]),T=C.burn[d],I=d==="cost"?(B)=>Et(B):re,O=C.totals;return ae.jsxDEV("div",{className:"page",children:[ae.jsxDEV(pa,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${y.windowLabel}.`},void 0,!1,void 0,this),ae.jsxDEV(Xe,{query:s,skeleton:ae.jsxDEV(Ot,{height:112},void 0,!1,void 0,this),children:({providers:B})=>ae.jsxDEV("div",{"data-stale":s.stale,children:ae.jsxDEV(Ca,{min:190,children:[ae.jsxDEV(ce,{label:"Providers",value:R(B.length),hint:C.topProvider?`Most tokens: ${C.topProvider.provider}`:void 0},void 0,!1,void 0,this),ae.jsxDEV(ce,{label:"Requests",value:R(O.requests),hint:`${R(O.failed)} failed`,spark:C.spark.requests},void 0,!1,void 0,this),ae.jsxDEV(ce,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:re(O.tokens),spark:C.spark.tokens},void 0,!1,void 0,this),ae.jsxDEV(ce,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Jt(O.cost,O.unpriced),hint:O.unpriced>0?`${R(O.unpriced)} unpriced`:void 0,spark:C.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),ae.jsxDEV(ce,{label:"Error rate",value:ko(O.requests>0?O.failed/O.requests:0),hint:`${R(O.requests-O.failed)} succeeded`},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(ve,{index:1,title:"Provider totals",description:O.unpriced>0?`Cost is an API-equivalent estimate and excludes ${R(O.unpriced)} unpriced subscription request${O.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:s.stale,children:ae.jsxDEV(Xe,{query:s,skeleton:ae.jsxDEV(Ta,{rows:6},void 0,!1,void 0,this),children:({providers:B})=>ae.jsxDEV(vN,{providers:B,colors:C.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(ve,{index:2,title:"Burn by provider",description:d==="cost"&&O.unpriced>0?`API-equivalent estimate per ${y.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${y.bucketMs<3600000?"5 minutes":y.bucketMs<86400000?"hour":"day"}, top ${UI} providers stacked`,actions:ae.jsxDEV(Da,{size:"sm",options:gN,value:d,onChange:c},void 0,!1,void 0,this),stale:s.stale,children:ae.jsxDEV(Xe,{query:s,skeleton:ae.jsxDEV(Ot,{height:260},void 0,!1,void 0,this),children:()=>ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[ae.jsxDEV(mn,{buckets:C.buckets,bucketMs:y.bucketMs,series:T,hidden:g,height:260,format:I,formatTooltip:d==="cost"?(B)=>Et(B):R,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),ae.jsxDEV(ra,{items:T.map((B)=>({key:B.key,label:B.label,color:B.color,value:I(B.values.reduce((F,X)=>F+(X??0),0))})),hidden:g,onToggle:h},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(Xe,{query:s,skeleton:ae.jsxDEV(Ot,{height:320},void 0,!1,void 0,this),children:({hourly:B,providers:F})=>ae.jsxDEV(xN,{hourly:B,providers:F,stale:s.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV(ve,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:m.stale,children:ae.jsxDEV(Xe,{query:m,skeleton:ae.jsxDEV(Ta,{rows:6},void 0,!1,void 0,this),children:(B)=>ae.jsxDEV(SN,{insights:B.windowInsights,selected:x,onSelect:p},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ae.jsxDEV(TN,{insights:m.data?.windowInsights??null,accounts:w,selected:x,onSelect:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function yN(n,i){if(i&&n.some((d)=>d.provider===i.provider&&d.windowKey===i.windowKey))return i;let s=i&&n.find((d)=>d.provider===i.provider)||n.reduce((d,c)=>d===void 0||c.fractionConsumed>d.fractionConsumed?c:d,void 0);return s?{provider:s.provider,windowKey:s.windowKey}:null}function vN({providers:n,colors:i}){let[s,d]=qo.useState(null),c=qo.useMemo(()=>{let g=0,h=0,y=0;for(let m of n)g=Math.max(g,m.totalRequests),h=Math.max(h,m.totalTokens),y+=m.totalTokens;return[{key:"provider",header:"Provider",sort:(m)=>m.provider,render:(m)=>ae.jsxDEV("span",{className:"row",style:{gap:8},children:[ae.jsxDEV(Kn,{color:i.get(m.provider)??Co},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"mono cell-primary",children:m.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(m)=>m.totalRequests,render:(m)=>ae.jsxDEV(Ia,{value:m.totalRequests,max:g,display:R(m.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(m)=>m.totalRequests>0?m.failedRequests/m.totalRequests:0,render:(m)=>{let b=m.totalRequests>0?m.failedRequests/m.totalRequests:0;return ae.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[ae.jsxDEV("span",{className:"num dim",children:R(m.failedRequests)},void 0,!1,void 0,this),ae.jsxDEV(ht,{tone:m.failedRequests>0?cn(b):"neutral",mono:!0,children:ko(b)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(m)=>m.models,render:(m)=>ae.jsxDEV("span",{className:"num",children:R(m.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(m)=>m.totalTokens,render:(m)=>ae.jsxDEV(Ia,{value:m.totalTokens,max:h,display:re(m.totalTokens),color:i.get(m.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(m)=>m.totalTokens,render:(m)=>ae.jsxDEV("span",{className:"num muted",children:He(y>0?m.totalTokens/y:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(m)=>m.totalCost,render:(m)=>ae.jsxDEV("span",{className:"num",title:m.unpricedRequests>0?`${R(m.unpricedRequests)} unpriced`:void 0,children:Jt(m.totalCost,m.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(m)=>m.avgTokensPerSecond??-1,render:(m)=>ae.jsxDEV("span",{className:"num",children:Ul(m.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(m)=>m.totalPremiumRequests,render:(m)=>ae.jsxDEV("span",{className:m.totalPremiumRequests>0?"num":"num dim",children:R(Math.round(m.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[n,i]);return ae.jsxDEV(Ft,{rows:n,rowKey:(g)=>g.provider,columns:c,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:s,onRowClick:(g)=>d((h)=>h===g.provider?null:g.provider),expanded:(g)=>g.provider===s?ae.jsxDEV(bN,{provider:g},void 0,!1,void 0,this):null,empty:ae.jsxDEV(wt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function bN({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(Hl,{segments:PI.map((s)=>({key:s.key,label:s.label,value:i[s.key],color:s.color}))},void 0,!1,void 0,this),ae.jsxDEV(ra,{items:PI.map((s)=>({key:s.key,label:s.label,color:s.color,value:`${re(i[s.key])} · ${n.totalTokens>0?He(i[s.key]/n.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ff="";function xN({hourly:n,providers:i,stale:s}){let[d,c]=qo.useState(Ff),g=d===Ff||i.some((m)=>m.provider===d)?d:Ff,h=qo.useMemo(()=>{let m=Array.from({length:24},()=>0),b=Array.from({length:24},()=>0),p=Array.from({length:24},()=>0);for(let C of n){if(g!==Ff&&C.provider!==g)continue;m[C.hour]+=C.totalTokens,b[C.hour]+=C.outputTokens,p[C.hour]+=C.requests}let x=0;for(let C=1;C<24;C++)if(m[C]>m[x])x=C;let L=m[x]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:m.map((C,T)=>L&&T===x?null:C)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:m.map((C,T)=>L&&T===x?C:null)}],output:b,requests:p,peak:x,hasData:L}},[n,g]),y=(m)=>`${String(m).padStart(2,"0")}:00`;return ae.jsxDEV(ve,{index:3,title:"Peak burn hours",description:h.hasData?`Tokens by local hour of day; peak at ${y(h.peak)}`:"Tokens by local hour of day",actions:ae.jsxDEV("select",{className:"input providers-select",value:g,onChange:(m)=>c(m.target.value),"aria-label":"Provider",children:[ae.jsxDEV("option",{value:Ff,children:"All providers"},void 0,!1,void 0,this),i.map((m)=>ae.jsxDEV("option",{value:m.provider,children:m.provider},m.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:s,children:ae.jsxDEV(pn,{slots:24,tickLabel:(m)=>String(m).padStart(2,"0"),tooltipTitle:(m)=>`${y(m)}–${y((m+1)%24)}`,series:h.series,height:260,showTotal:!1,formatTooltip:R,emptyLabel:"No activity in this range",tooltipExtra:(m)=>ae.jsxDEV(ae.Fragment,{children:[ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:R(h.output[m])},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:"Requests"},void 0,!1,void 0,this),ae.jsxDEV("span",{className:"chart-tooltip-value",children:R(h.requests[m])},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 SN({insights:n,selected:i,onSelect:s}){return ae.jsxDEV(Ft,{rows:n,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:kN,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(d)=>s({provider:d.provider,windowKey:d.windowKey}),empty:ae.jsxDEV(wt,{title:"No usage snapshots in this range",hint:_I},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var kN=[{key:"window",header:"Window",sort:(n)=>`${n.provider} ${n.windowLabel}`,render:(n)=>ae.jsxDEV(oo,{primary:n.windowLabel,secondary:ae.jsxDEV("span",{className:"mono",children:n.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(n)=>n.accounts,render:(n)=>ae.jsxDEV("span",{className:"num",children:R(n.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(n)=>n.cycles,render:(n)=>ae.jsxDEV("span",{className:"num muted",children:R(n.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",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:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(n)=>n.estTokensPerWindow??-1,render:(n)=>n.estTokensPerWindow!==null?ae.jsxDEV("span",{className:"num",children:re(n.estTokensPerWindow)},void 0,!1,void 0,this):ae.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(n)=>n.peakConcurrentFraction,render:(n)=>{let i=n.accounts>0?n.peakConcurrentFraction/n.accounts:0;return ae.jsxDEV(Ia,{value:n.peakConcurrentFraction,max:n.accounts,display:He(n.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(n)=>n.idealAccounts-n.accounts,render:(n)=>n.idealAccounts>n.accounts?ae.jsxDEV(ht,{tone:"warn",mono:!0,children:[R(n.idealAccounts)," · have ",R(n.accounts)]},void 0,!0,void 0,this):ae.jsxDEV("span",{className:"num",children:R(n.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(n)=>n.exhaustedEvents,render:(n)=>n.exhaustedEvents>0?ae.jsxDEV(ht,{tone:"warn",mono:!0,children:[R(n.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):ae.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],zh=60000,wr=60*zh,Uh=24*wr,CN=[5*zh,15*zh,30*zh,wr,2*wr,3*wr,6*wr,12*wr,Uh],LN=240,wN=6*wr;function TN({insights:n,accounts:i,selected:s,onSelect:d}){let[c,g]=qn(),h=qo.useMemo(()=>[...new Set((n??[]).map((C)=>C.provider))],[n]),y=qo.useMemo(()=>(n??[]).filter((C)=>C.provider===s?.provider).map((C)=>({key:C.windowKey,label:C.windowLabel})),[n,s?.provider]),m=qo.useMemo(()=>(i.data?.usageSeries??[]).filter((C)=>C.provider===s?.provider),[i.data,s?.provider]),b=m.length===0&&(i.loading||i.stale),p=qo.useMemo(()=>{let C=new Map;for(let I of m){let O=C.get(I.accountLabel)??[];if(!O.includes(I.accountKey))O.push(I.accountKey);C.set(I.accountLabel,O)}let T=new Map;for(let[I,O]of C)O.sort(),O.forEach((B,F)=>T.set(B,O.length>1?`${I} #${F+1}`:I));return T},[m]),x=qo.useMemo(()=>IN(m.filter((C)=>C.windowKey===s?.windowKey),p),[m,p,s?.windowKey]),L=qo.useMemo(()=>{let C=new Map(x.series.map((T)=>[T.key,T.color]));return m.map((T)=>{let I=null,O=null;for(let X of T.points){if(X.usedFraction===null)continue;if(O=Math.max(O??0,X.usedFraction),!I||X.timestamp>=I.timestamp)I={fraction:X.usedFraction,exhausted:X.exhausted,timestamp:X.timestamp}}let B=T.windowKey===s?.windowKey?C.get(T.accountKey)??null:null,F=p.get(T.accountKey)??T.accountLabel;return{series:T,name:F,color:B,latest:I,peak:O,samples:T.points.length}}).sort((T,I)=>Number(I.color!==null)-Number(T.color!==null)||T.series.windowLabel.localeCompare(I.series.windowLabel)||(I.latest?.fraction??-1)-(T.latest?.fraction??-1))},[m,p,x.series,s?.windowKey]),w=y.find((C)=>C.key===s?.windowKey)?.label;return ae.jsxDEV(ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${w??"Window"} used fraction per account, ${En(new Date(x.first),"MMM d HH:mm")} – ${En(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:s&&ae.jsxDEV("div",{className:"row",style:{gap:6},children:[ae.jsxDEV("select",{className:"input providers-select",value:s.provider,onChange:(C)=>{let T=C.target.value,I=n?.find((O)=>O.provider===T);if(I)d({provider:T,windowKey:I.windowKey})},"aria-label":"Provider",children:h.map((C)=>ae.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))},void 0,!1,void 0,this),ae.jsxDEV("select",{className:"input providers-select",value:s.windowKey,onChange:(C)=>d({provider:s.provider,windowKey:C.target.value}),"aria-label":"Window",children:y.map((C)=>ae.jsxDEV("option",{value:C.key,children:C.label},C.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(Ot,{height:260},void 0,!1,void 0,this):s===null?ae.jsxDEV(wt,{title:"No usage snapshots in this range",hint:_I},void 0,!1,void 0,this):ae.jsxDEV(Xe,{query:i,skeleton:ae.jsxDEV(Ot,{height:260},void 0,!1,void 0,this),children:()=>b?ae.jsxDEV(Ot,{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(pn,{slots:x.buckets.length,tickLabel:(C)=>hh(x.buckets[C],x.last-x.first>Uh?Uh:x.bucketMs),tooltipTitle:(C)=>Wu(x.buckets[C],wr),series:x.series,hidden:c,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(C)=>He(C,0),formatTooltip:(C)=>He(C,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(C)=>{let T=x.exhausted[C];return T.length>0?ae.jsxDEV("div",{className:"chart-tooltip-row",children:[ae.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"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),x.series.length>1&&ae.jsxDEV(ra,{items:x.series.map((C)=>({key:C.key,label:C.label,color:C.color})),hidden:c,onToggle:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.jsxDEV("div",{className:"providers-accounts",children:ae.jsxDEV(Ft,{rows:L,rowKey:(C)=>`${C.series.windowKey}::${C.series.accountKey}`,columns:MN,limit:16,onRowClick:(C)=>d({provider:C.series.provider,windowKey:C.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 IN(n,i){let{POSITIVE_INFINITY:s,NEGATIVE_INFINITY:d}=Number;for(let w of n)for(let C of w.points){if(C.timestamp<s)s=C.timestamp;if(C.timestamp>d)d=C.timestamp}if(!(d>=s))return{buckets:[],bucketMs:wr,first:0,last:0,max:0,series:[],exhausted:[]};let c=d-s,g=CN.find((w)=>c/w<LN)??Uh,h=mo("all",[s],g,d),y=(w)=>Math.floor((w-h[0])/g),m=h.map(()=>[]),b=0,p=(w)=>i.get(w.accountKey)??w.accountLabel,L=[...n].sort((w,C)=>p(w).localeCompare(p(C))).map((w,C)=>{let T=h.map(()=>null),I=h.map(()=>0);for(let F of w.points){let X=y(F.timestamp);if(X<0||X>=h.length)continue;if(F.exhausted&&!m[X].includes(p(w)))m[X].push(p(w));if(F.usedFraction===null||F.timestamp<I[X])continue;T[X]=F.usedFraction,I[X]=F.timestamp,b=Math.max(b,F.usedFraction)}let O=null,B=0;for(let F=0;F<h.length;F++)if(T[F]!==null)O=T[F],B=I[F];else if(O!==null&&h[F]-B<=wN)T[F]=O;return{key:w.accountKey,label:p(w),color:no[C%no.length],values:T}});return{buckets:h,bucketMs:g,first:s,last:d,max:b,series:L,exhausted:m}}function RN(n){if(!n)return ae.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(n.exhausted)return ae.jsxDEV(ht,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(n.fraction>=0.8)return ae.jsxDEV(ht,{tone:"warn",children:"High"},void 0,!1,void 0,this);return ae.jsxDEV(ht,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var MN=[{key:"account",header:"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(Kn,{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:"Window",sort:(n)=>n.series.windowLabel,render:(n)=>ae.jsxDEV("span",{className:n.color?void 0:"muted",children:n.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(n)=>n.latest?.fraction??-1,render:(n)=>n.latest?ae.jsxDEV(Ia,{value:n.latest.fraction,max:1,display:He(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:"Status",sort:(n)=>n.latest?.exhausted?2:(n.latest?.fraction??0)>=0.8?1:0,render:(n)=>RN(n.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(n)=>n.peak??-1,render:(n)=>ae.jsxDEV("span",{className:"num",children:n.peak===null?"–":He(n.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(n)=>n.samples,render:(n)=>ae.jsxDEV("span",{className:"num muted",children:R(n.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(n)=>n.latest?.timestamp??0,render:(n)=>ae.jsxDEV("span",{className:"muted",children:n.latest?xa(n.latest.timestamp):"–"},void 0,!1,void 0,this)}];var zi=U(et(),1);var ut=U(te(),1),Ph={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function FI({id:n,onClose:i}){let s=Pt(["request",n],({signal:g})=>xT(n??0,g),{enabled:n!==null}),d=s.stale?null:s.data,c=d?Ph[Cr(d)]:null;return ut.jsxDEV(Zu,{open:n!==null,onClose:i,width:620,title:d?ut.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):"Request",subtitle:d?ut.jsxDEV(ut.Fragment,{children:[d.provider," ·"," ",ut.jsxDEV("span",{title:Oo(d.timestamp),children:xa(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):n!==null?ut.jsxDEV("span",{className:"mono",children:["#",n]},void 0,!0,void 0,this):void 0,actions:d&&c?ut.jsxDEV("div",{className:"row",style:{gap:6},children:[ut.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Mh({...Of(window.location.hash),section:"traces",session:d.sessionFile}),onClick:i,title:"Open this request's session in the trace view",children:[ut.jsxDEV(mf,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),ut.jsxDEV(ht,{tone:c.tone,children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?ut.jsxDEV(AN,{details:d,aborted:Cr(d)==="aborted"},void 0,!1,void 0,this):s.error?ut.jsxDEV(Ds,{error:s.error,onRetry:s.refetch},void 0,!1,void 0,this):ut.jsxDEV("div",{className:"stack",style:{gap:12},children:[ut.jsxDEV(Za,{height:56},void 0,!1,void 0,this),ut.jsxDEV(Za,{height:120},void 0,!1,void 0,this),ut.jsxDEV(Za,{height:120},void 0,!1,void 0,this),ut.jsxDEV(Za,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function AN({details:n,aborted:i}){let{usage:s}=n,d=n.duration!==null&&n.duration>0&&s.output>0?s.output*1000/n.duration:null,{messages:c,output:g,...h}=n;return ut.jsxDEV(ut.Fragment,{children:[n.errorMessage&&ut.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[ut.jsxDEV("div",{className:"request-drawer-error-label",children:i?"Aborted":"Error"},void 0,!1,void 0,this),ut.jsxDEV("pre",{className:"request-drawer-error-text",children:n.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ut.jsxDEV("section",{children:[ut.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),ut.jsxDEV(No,{items:[{key:"at",label:"Started",value:Oo(n.timestamp)},{key:"duration",label:"Duration",value:St(n.duration)},{key:"ttft",label:"Time to first token",value:St(n.ttft)},{key:"tps",label:"Output tokens/s",value:Ul(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ut.jsxDEV("section",{children:[ut.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),ut.jsxDEV(No,{items:[{key:"input",label:"Uncached input",value:R(s.input)},{key:"cacheRead",label:"Cache read",value:R(s.cacheRead)},{key:"cacheWrite",label:"Cache write",value:R(s.cacheWrite)},{key:"output",label:"Output",value:R(s.output)},{key:"total",label:"Total",value:R(s.totalTokens)},{key:"premium",label:"Premium requests",value:R(Math.round((s.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ut.jsxDEV("section",{children:[ut.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),ut.jsxDEV(No,{items:[{key:"total",label:"Total",value:Es(n,4)},{key:"input",label:"Input",value:Et(s.cost.input,4)},{key:"cacheRead",label:"Cache read",value:Et(s.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:Et(s.cost.cacheWrite,4)},{key:"output",label:"Output",value:Et(s.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ut.jsxDEV("section",{children:[ut.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),ut.jsxDEV(No,{items:[{key:"id",label:"Request id",value:n.id??"–"},{key:"entry",label:"Entry id",value:n.entryId},{key:"stop",label:"Stop reason",value:n.stopReason},{key:"api",label:"API",value:n.api},{key:"project",label:"Project",value:ut.jsxDEV("span",{title:n.folder,children:On(n.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),ut.jsxDEV("div",{className:"request-drawer-file",children:[ut.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),ut.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),g!=null&&ut.jsxDEV(Ku,{data:g,title:"Output message"},void 0,!1,void 0,this),ut.jsxDEV(Ku,{data:c,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),ut.jsxDEV(Ku,{data:h,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var lt=U(te(),1),e0=[500,2000,1e4];function GI({active:n,range:i,onRequestClick:s}){let[d,c]=zi.useState(0),g=e0[d],h=Pt(["requests-log",g],({signal:X})=>gh(g,X),{enabled:n}),[y,m]=zi.useState(""),[b,p]=zi.useState("all"),x=Kt(i),L=zi.useMemo(()=>{let X=h.data??[],ie=x.spanMs===null?null:Date.now()-x.spanMs,Q=ie===null?X:X.filter((P)=>P.timestamp>=ie),de=!h.stale&&(X.length<g||ie!==null&&Q.length<X.length),J={all:Q.length,ok:0,aborted:0,failed:0};for(let P of Q)J[Cr(P)]++;return{loaded:X.length,inRange:Q,complete:de,counts:J,summary:SI(Q)}},[h.data,h.stale,g,x.spanMs]),w=zi.useMemo(()=>{let X=y.trim().toLowerCase();return L.inRange.filter((ie)=>(b==="all"||Cr(ie)===b)&&(X===""||ie.model.toLowerCase().includes(X)||ie.provider.toLowerCase().includes(X)||ie.folder.toLowerCase().includes(X)))},[L.inRange,y,b]),{summary:C,counts:T,complete:I}=L,O=d+1<e0.length?e0[d+1]:null,B=O!==null?lt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:h.refreshing,onClick:()=>c(d+1),children:h.refreshing&&h.stale?"Loading…":`Load latest ${R(O)}`},void 0,!1,void 0,this):void 0,F=["all","ok","aborted","failed"].map((X)=>({value:X,label:lt.jsxDEV(lt.Fragment,{children:[X==="all"?"All":Ph[X].label," ",lt.jsxDEV("span",{className:"dim num",children:re(T[X])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return lt.jsxDEV("div",{className:"page",children:[lt.jsxDEV(pa,{title:"Requests",description:`Every model call omp made in ${x.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),lt.jsxDEV(Xe,{query:h,skeleton:lt.jsxDEV(Za,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>lt.jsxDEV("div",{"data-stale":h.stale,children:lt.jsxDEV(Ca,{min:160,children:[lt.jsxDEV(ce,{label:"Requests",value:R(C.requests),hint:C.oldest===null?`none in ${x.windowLabel}`:`since ${xa(C.oldest)}`},void 0,!1,void 0,this),lt.jsxDEV(ce,{label:"Failed",value:R(C.failed),hint:`${C.requests>0?ko(C.failed/C.requests):"–"} · ${R(C.aborted)} aborted`},void 0,!1,void 0,this),lt.jsxDEV(ce,{label:"Tokens",title:"Total tokens across these requests",value:re(C.tokens)},void 0,!1,void 0,this),lt.jsxDEV(ce,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:Jt(C.cost,C.unpriced),hint:C.unpriced>0?`${R(C.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),lt.jsxDEV(ce,{label:"Median duration",value:St(C.medianDuration),hint:`p95 ${St(C.p95Duration)}`},void 0,!1,void 0,this),lt.jsxDEV(ce,{label:"Median TTFT",title:"Time to first token",value:St(C.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(ve,{index:1,title:"Request log",description:h.data===null?"Loading the latest requests…":I?`${R(w.length)} of ${R(C.requests)} requests in ${x.windowLabel}`:`${R(w.length)} of the latest ${R(C.requests)} requests`,actions:lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV(zl,{value:y,onChange:m,placeholder:"Model, provider or project"},void 0,!1,void 0,this),lt.jsxDEV(Da,{size:"sm","aria-label":"Status",options:F,value:b,onChange:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:h.stale,footer:h.data!==null&&!I?lt.jsxDEV(lt.Fragment,{children:[lt.jsxDEV("span",{children:["Showing the latest ",R(L.loaded)," requests, back to"," ",C.oldest===null?"–":Oo(C.oldest),". Older requests in"," ",x.windowLabel," are not loaded."]},void 0,!0,void 0,this),B]},void 0,!0,void 0,this):void 0,children:lt.jsxDEV(Xe,{query:h,skeleton:lt.jsxDEV(Ta,{rows:12},void 0,!1,void 0,this),children:()=>lt.jsxDEV(Ft,{rows:w,rowKey:(X)=>X.id??`${X.sessionFile}:${X.entryId}`,onRowClick:(X)=>X.id!==void 0&&s(X.id),columns:DN,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:lt.jsxDEV(wt,{title:C.requests===0?`No requests in ${x.windowLabel}`:"No requests match",hint:C.requests===0?void 0:"Clear the search or status filter."},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 DN=[{key:"model",header:"Model",sort:(n)=>n.model,render:(n)=>lt.jsxDEV(oo,{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:"When",sort:(n)=>n.timestamp,render:(n)=>lt.jsxDEV("span",{className:"muted",title:Oo(n.timestamp),children:xa(n.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(n)=>n.folder,render:(n)=>lt.jsxDEV("span",{className:"mono muted truncate",title:n.folder,style:{display:"block",maxWidth:180},children:On(n.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(n)=>n.usage.input,render:(n)=>lt.jsxDEV("span",{className:"num",children:re(n.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(n)=>n.usage.cacheRead,render:(n)=>lt.jsxDEV("span",{className:"num",title:`Cache write: ${R(n.usage.cacheWrite)}`,children:re(n.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(n)=>n.usage.output,render:(n)=>lt.jsxDEV("span",{className:"num",children:re(n.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(n)=>n.usage.cost.total,render:(n)=>lt.jsxDEV("span",{className:"num",children:Es(n,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(n)=>n.duration??-1,render:(n)=>lt.jsxDEV("span",{className:"num",children:St(n.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(n)=>n.ttft??-1,render:(n)=>lt.jsxDEV("span",{className:"num muted",children:St(n.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(n)=>Cr(n),render:(n)=>{let i=Ph[Cr(n)];return lt.jsxDEV("span",{title:n.errorMessage??void 0,children:lt.jsxDEV(oo,{lead:lt.jsxDEV(Bl,{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 v2=U(et(),1);var Gf=U(et(),1);var _h=["artifact","reread","rerun"],Tr={artifact:{label:"Artifact dive",plural:"Artifact dives",icon:Zc,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:df,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:Lf,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 Ui(n){return n.gross.byTool.map((i)=>i.tool)}var EN=6,Bn="other";function Vo(n,i=EN){if(n.length<=i+1)return{listed:n,rest:[]};return{listed:n.slice(0,i),rest:n.slice(i)}}var Oa={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"}},t0=["applied","scoreFree","holdout","gated","reference"],Hh=["<250","250–1k","1k–4k","≥4k"],$I=["1","2","3","4–6","7–12"],VI={read:cf,bash:Ts,eval:bs,grep:Mf,find:br,glob:pf,edit:Ls,write:uf,web_search:hf,task:of,todo:bf,wait:gf,fetch:Ss,lsp:Cf,[Bn]:ks};function zn(n){return Object.hasOwn(VI,n)?VI[n]:Mi}function Fh(n){if(n>=86400000)return"day";if(n>=3600000)return"hour";return`${Math.round(n/60000)} minutes`}function lo(n){return n<0?`−${re(-n)}`:re(n)}function hn(n){return n<0?`−${Et(-n)}`:Et(n)}function Gl(n,i){return n.lo===null||n.hi===null?"":`${i(n.lo)}–${i(n.hi)}`}function Qt(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 We=U(te(),1);function NN(n){let i=n.agentType==="main",s=(n.sessionFile.split("/").pop()??"").replace(/\.jsonl$/,""),d=n.title?.trim()||(i?On(n.folder):s);return`${i?d:`↳ ${d} (${n.agentType})`} · ${re(n.savedTokens)} saved`}function jI({stats:n,active:i,stale:s}){let{compounding:d}=n,[c,g]=Gf.useState(null),h=n.sessionList,y=h.find((C)=>C.savedTokens>0)??h[0],m=c!==null&&h.some((C)=>C.sessionFile===c)?c:y?.sessionFile,b=Pt(["spotlight-session",m??null],({signal:C})=>DT(m??"",C),{enabled:i&&m!==void 0}),p=d.avoidedTokens-d.recoveredCarriedTokens,x=n.gross.savedTokens>0?d.avoidedTokens/n.gross.savedTokens:null,L=b.data?.points,w=Gf.useMemo(()=>{if(!L)return null;let C=0,T=0;for(let I of L)C+=I.withoutTokens-I.contextTokens,T+=I.withoutTokens;return T>0?{share:C/T,tokens:C}:null},[L]);return We.jsxDEV(ve,{index:3,title:"Compounding",description:"A cut is never re-read: each later request of the session carries a smaller context",actions:h.length>0&&We.jsxDEV("select",{className:"input spot-session-select","aria-label":"Session",value:m??"",onChange:(C)=>g(C.target.value),children:h.map((C)=>We.jsxDEV("option",{value:C.sessionFile,children:NN(C)},C.sessionFile,!1,void 0,this))},void 0,!1,void 0,this),stale:s,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:We.jsxDEV("div",{className:"spot-compounding",children:[We.jsxDEV("div",{className:"spot-compounding-chart",children:m===void 0?We.jsxDEV(wt,{title:"No experiment sessions in this range"},void 0,!1,void 0,this):b.data===null?b.error?We.jsxDEV(Ds,{error:b.error,onRetry:b.refetch},void 0,!1,void 0,this):We.jsxDEV(Ot,{height:280},void 0,!1,void 0,this):We.jsxDEV(BN,{context:b.data,stale:b.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),We.jsxDEV("aside",{className:"spot-compounding-side",children:[We.jsxDEV("div",{className:"spot-eyebrow",children:"Context avoided in this session"},void 0,!1,void 0,this),We.jsxDEV("div",{className:"spot-side-value",children:Qt(w?.share??null)},void 0,!1,void 0,this),L!==void 0&&We.jsxDEV("p",{className:"spot-side-copy",children:w===null?"This session has no recorded requests.":`of what its requests would have carried without Spotlight: ${lo(w.tokens)} prompt tokens, net of recoveries.`},void 0,!1,void 0,this),b.data&&We.jsxDEV(ON,{session:b.data.session},void 0,!1,void 0,this),We.jsxDEV("p",{className:"spot-side-range",children:[We.jsxDEV("span",{className:"spot-side-range-value",children:Qt(d.avoidedShare)},void 0,!1,void 0,this)," across all the sessions shown: cuts kept ",re(Math.max(0,p))," tokens out of later requests",x!==null&&We.jsxDEV(We.Fragment,{children:[", each saved token re-sent ",x.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 ON({session:n}){return We.jsxDEV("dl",{className:"spot-facts",children:[We.jsxDEV("div",{children:[We.jsxDEV("dt",{children:"Agent"},void 0,!1,void 0,this),We.jsxDEV("dd",{className:"row",children:We.jsxDEV(ht,{children:n.agentType},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),We.jsxDEV("div",{children:[We.jsxDEV("dt",{children:"Requests"},void 0,!1,void 0,this),We.jsxDEV("dd",{className:"num",children:R(n.requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),We.jsxDEV("div",{children:[We.jsxDEV("dt",{children:"Saved"},void 0,!1,void 0,this),We.jsxDEV("dd",{className:"num",children:lo(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),We.jsxDEV("div",{children:[We.jsxDEV("dt",{children:"Net $"},void 0,!1,void 0,this),We.jsxDEV("dd",{className:"num",children:hn(n.netUsd)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var qN=[{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 BN({context:n,stale:i}){let{points:s}=n,d=Gf.useMemo(()=>{let c=[{key:"actual",label:"Context",color:"var(--spot-gross)",kind:"area",values:s.map((h)=>h.contextTokens)},{key:"ghost",label:"Avoided",color:"var(--spot-ghost)",kind:"area",pattern:"hatch",dashed:!0,values:s.map((h)=>Math.max(0,h.withoutTokens-h.contextTokens))}],g=[];return s.forEach((h,y)=>{if(h.compacted)g.push({index:y})}),{series:c,markers:g}},[s]);if(s.length===0)return We.jsxDEV(wt,{title:"No requests recorded for this session"},void 0,!1,void 0,this);return We.jsxDEV("div",{className:"spot-context","data-stale":i,children:[We.jsxDEV(ra,{items:qN},void 0,!1,void 0,this),We.jsxDEV(pn,{slots:s.length,series:d.series,markers:d.markers,height:280,tickLabel:(c)=>`#${c+1}`,tooltipTitle:(c)=>`Request ${c+1} · ${En(new Date(s[c].timestamp),"MMM d HH:mm:ss")}`,formatTooltip:R,showTotal:!1,tooltipExtra:(c)=>{let g=s[c];return We.jsxDEV("div",{className:"spot-tooltip-extra",children:[We.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[We.jsxDEV("span",{className:"chart-tooltip-label",children:"Without Spotlight"},void 0,!1,void 0,this),We.jsxDEV("span",{className:"chart-tooltip-value",children:R(g.withoutTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.saved>0&&We.jsxDEV("div",{className:"chart-tooltip-row",children:[We.jsxDEV("span",{className:"chart-tooltip-label",children:"Cut since last request"},void 0,!1,void 0,this),We.jsxDEV("span",{className:"chart-tooltip-value",children:R(g.saved)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.recovered>0&&We.jsxDEV("div",{className:"chart-tooltip-row",children:[We.jsxDEV("span",{className:"chart-tooltip-label",children:"Fetched back"},void 0,!1,void 0,this),We.jsxDEV("span",{className:"chart-tooltip-value",children:R(g.recovered)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g.compacted&&We.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 Xa=U(te(),1),Gh="var(--spot-applied)",Vh="var(--spot-unshaped)";function XI({stats:n,stale:i}){let s=[...n.coverage].sort((m,b)=>b.tokens-m.tokens),{listed:d,rest:c}=Vo(s),g=0,h=0;for(let m of s)if(m.shaped)g+=m.share;else h+=m.share;let y=d.map((m)=>({key:m.tool,label:Xa.jsxDEV(Xa.Fragment,{children:[Xa.jsxDEV("span",{className:"spot-coverage-tool",children:m.tool},void 0,!1,void 0,this),m.shaped&&Xa.jsxDEV(ht,{children:"shaped"},void 0,!1,void 0,this),Xa.jsxDEV("span",{className:"dim num",children:[R(m.calls)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:m.share,display:`${Qt(m.share)} · ${re(m.tokens)}`,color:m.shaped?Gh:Vh}));if(c.length>0){let m=0,b=0,p=0;for(let x of c)m+=x.share,b+=x.tokens,p+=x.calls;y.push({key:"\x00rest",label:Xa.jsxDEV(Xa.Fragment,{children:[Xa.jsxDEV("span",{className:"spot-coverage-tool",children:[R(c.length)," more ",c.length===1?"tool":"tools"]},void 0,!0,void 0,this),Xa.jsxDEV("span",{className:"dim num",children:[R(p)," calls"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),value:m,display:`${Qt(m)} · ${re(b)}`,color:c.some((x)=>x.shaped)?Gh:Vh})}return Xa.jsxDEV(ve,{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:Xa.jsxDEV(ra,{items:[{key:"shaped",label:"Shaped",color:Gh},{key:"unshaped",label:"Not shaped",color:Vh}]},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:s.length===0?Xa.jsxDEV("div",{className:"empty",children:"No tool output in this range."},void 0,!1,void 0,this):Xa.jsxDEV("div",{className:"spot-coverage",children:[Xa.jsxDEV("div",{className:"spot-coverage-summary",children:[Xa.jsxDEV("div",{className:"spot-coverage-headline",children:[Xa.jsxDEV("span",{className:"num",children:Qt(h)},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),Xa.jsxDEV(Hl,{height:8,segments:[{key:"shaped",label:"Shaped",value:g,color:Gh},{key:"unshaped",label:"Not shaped",value:h,color:Vh}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xa.jsxDEV(qi,{items:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var _t=U(te(),1),zN=30,YI=5,UN=120;function PN(n){return[`${n.tool}: ${R(n.cuts)} cuts`,`Saved ${re(n.savedTokens)} tokens (${Et(n.savedUsd)})`,`Fetched back ${re(n.recoveredTokens)} tokens (${Et(n.recoveryUsd)})`,`${R(n.extraTurns)} extra turns (${Et(n.turnUsd)})`,`Net ${hn(n.netUsd)}`].join(`
236
+ `)}function _N(n){if(n.length===0)return;let i={tool:Bn,cuts:0,savedTokens:0,recoveredTokens:0,extraTurns:0,savedUsd:0,recoveryUsd:0,turnUsd:0,netUsd:0,extraTurnsPer100Cuts:0,netUsdPer100Cuts:0};for(let s of n)i.cuts+=s.cuts,i.savedTokens+=s.savedTokens,i.recoveredTokens+=s.recoveredTokens,i.extraTurns+=s.extraTurns,i.savedUsd+=s.savedUsd,i.recoveryUsd+=s.recoveryUsd,i.turnUsd+=s.turnUsd,i.netUsd+=s.netUsd;if(i.cuts>0)i.extraTurnsPer100Cuts=i.extraTurns*100/i.cuts,i.netUsdPer100Cuts=i.netUsd*100/i.cuts;return i}function QI({stats:n,stale:i}){let s=new Set(n.economics.filter((p)=>p.cuts>0).map((p)=>p.tool)),{listed:d,rest:c}=Vo(Ui(n).filter((p)=>s.has(p))),g=new Set(c),h=new Map(n.economics.filter((p)=>!g.has(p.tool)).map((p)=>[p.tool,p])),y=_N(n.economics.filter((p)=>g.has(p.tool)));if(y)h.set(Bn,y);let m=c.length>0?[...d,Bn]:d,b=0;for(let p of h.values())if(p.cuts>0)b=Math.max(b,Math.abs(p.netUsdPer100Cuts));return _t.jsxDEV(ve,{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:b>0&&_t.jsxDEV("span",{className:"spot-econ-scale","aria-hidden":"true",children:[_t.jsxDEV("span",{className:"num",children:hn(-b)},void 0,!1,void 0,this),_t.jsxDEV("span",{className:"spot-econ-ramp"},void 0,!1,void 0,this),_t.jsxDEV("span",{className:"num",children:hn(b)},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:m.length===0?_t.jsxDEV("div",{className:"empty",children:"No shortened results in this range."},void 0,!1,void 0,this):_t.jsxDEV("div",{className:"spot-econ-scroll",children:_t.jsxDEV("table",{className:"spot-econ",style:{minWidth:`${m.length*UN}px`},children:[_t.jsxDEV("thead",{children:_t.jsxDEV("tr",{children:m.map((p)=>{let x=zn(p);return _t.jsxDEV("th",{scope:"col",title:p===Bn?c.join(", "):p,children:_t.jsxDEV("span",{className:"row spot-econ-tool",children:[_t.jsxDEV(x,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),_t.jsxDEV("span",{className:"spot-econ-tool-name",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},p,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),_t.jsxDEV("tbody",{children:_t.jsxDEV("tr",{children:m.map((p)=>{let x=h.get(p);if(x===void 0||x.cuts===0)return _t.jsxDEV("td",{children:_t.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",children:_t.jsxDEV("span",{className:"dim",children:"No cuts"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},p,!1,void 0,this);let L=x.netUsdPer100Cuts,w=b>0?YI+Math.sqrt(Math.abs(L)/b)*(zN-YI):0,C=L<0?"bad":L>0?"ok":"neutral";return _t.jsxDEV("td",{children:_t.jsxDEV("div",{className:"spot-econ-cell","data-tone":C,style:{"--tint":`${w}%`},title:PN(x),children:[_t.jsxDEV("span",{className:"spot-econ-net num",children:hn(L)},void 0,!1,void 0,this),_t.jsxDEV("dl",{className:"spot-econ-facts",children:[_t.jsxDEV("div",{children:[_t.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),_t.jsxDEV("dd",{className:"num",children:R(x.cuts)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_t.jsxDEV("div",{children:[_t.jsxDEV("dt",{children:"saved"},void 0,!1,void 0,this),_t.jsxDEV("dd",{className:"num",children:re(x.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_t.jsxDEV("div",{children:[_t.jsxDEV("dt",{children:"extra turns /100"},void 0,!1,void 0,this),_t.jsxDEV("dd",{className:"num",children:x.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)},p,!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 o0=U(et(),1);var Ir=U(te(),1);function Vf({groups:n}){return Ir.jsxDEV("div",{className:"legend spot-group-legend",children:n.map((i)=>Ir.jsxDEV("span",{className:"legend-item",title:Oa[i].rule,style:{"--dot":Oa[i].color},children:[Ir.jsxDEV("span",{className:"spot-group-mark","data-shape":Oa[i].shape,"aria-hidden":"true"},void 0,!1,void 0,this),Oa[i].label]},i,!0,void 0,this))},void 0,!1,void 0,this)}function $f({hidden:n,expanded:i,onToggle:s}){return Ir.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:s,children:i?"Show fewer tools":`Show ${n.length} more tools`},void 0,!1,void 0,this)}function a0({kind:n,count:i}){let s=Tr[n],d=s.icon;return Ir.jsxDEV("span",{className:"spot-kind",style:{"--kind":s.color},title:i===void 0?s.rule:`${i} × ${s.label.toLowerCase()}: ${s.rule}`,children:[Ir.jsxDEV(d,{size:12,"aria-hidden":"true"},void 0,!1,void 0,this),i===void 0?s.label:Ir.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),i!==void 0&&Ir.jsxDEV("span",{className:"sr-only",children:s.plural},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var It=U(te(),1),HN={applied:-12,scoreFree:-6,holdout:0,gated:6,reference:12},FN=["scoreFree","holdout","reference"],WI=["applied","holdout"],GN="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 ZI({stats:n,stale:i}){let[s,d]=o0.useState(!1),c=new Map;for(let p of n.fetchBack)c.set(`${p.tool}/${p.group}`,p);let g=new Set(n.fetchBack.filter((p)=>p.results>0).map((p)=>p.tool)),{listed:h,rest:y}=Vo(Ui(n).filter((p)=>g.has(p))),m=t0.filter((p)=>p!=="gated"||n.fetchBack.some((x)=>x.group==="gated"&&x.results>0)),b=[];for(let p of s?[...h,...y]:h){let x=zn(p),L=t0.flatMap((I)=>{let O=c.get(`${p}/${I}`);return O!==void 0&&O.results>0?[O]:[]});if(L.length===0)continue;let w=new Map(L.map((I)=>[I.group,I])),C=w.get("applied"),T=L.map((I)=>({key:I.group,...I.rate,color:Oa[I.group].color,shape:Oa[I.group].shape,offset:HN[I.group],title:`${Oa[I.group].label}: ${Qt(I.rate.value)} of ${R(I.results)} results in ${R(I.sessions)} sessions`}));b.push({key:p,label:It.jsxDEV("span",{className:"spot-fb-tool",title:p,children:[It.jsxDEV(x,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),It.jsxDEV("span",{className:"spot-fb-tool-name",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),marks:T,figure:It.jsxDEV("span",{style:{color:Oa.applied.color},title:Oa.applied.rule,children:C===void 0?"–":Qt(C.rate.value)},void 0,!1,void 0,this),detail:It.jsxDEV(It.Fragment,{children:FN.map((I,O)=>{let B=w.get(I);return It.jsxDEV("span",{title:`${Oa[I].label}: ${Oa[I].rule}`,children:[O>0&&" · ",It.jsxDEV("span",{className:"spot-fb-detail","data-group":I,children:B===void 0?"–":Qt(B.rate.value)},void 0,!1,void 0,this)]},I,!0,void 0,this)})},void 0,!1,void 0,this)})}return It.jsxDEV(ve,{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:`${GN} 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:b.length===0?It.jsxDEV("div",{className:"empty",children:"No evaluated results in this range."},void 0,!1,void 0,this):It.jsxDEV("div",{className:"spot-fb",children:[It.jsxDEV(Vf,{groups:m},void 0,!1,void 0,this),It.jsxDEV(Dh,{rows:b,format:Qt,formatTick:(p)=>`${Math.round(p*100)}%`},void 0,!1,void 0,this),y.length>0&&It.jsxDEV($f,{hidden:y,expanded:s,onToggle:()=>d((p)=>!p)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function VN({tool:n,counts:i}){let s=zn(n),d=new Map(i.map((m)=>[m.gap,m])),c=0,g=0;for(let m of i)c+=m.applied,g+=m.holdout;let h={applied:c,holdout:g},y=0;for(let m of i){if(c>0)y=Math.max(y,m.applied/c);if(g>0)y=Math.max(y,m.holdout/g)}return It.jsxDEV("section",{className:"spot-gap","aria-label":`${n} fetch-back gaps`,children:[It.jsxDEV("h3",{className:"spot-panel-title row spot-gap-title",children:[It.jsxDEV(s,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),n,It.jsxDEV("span",{className:"dim",children:[It.jsxDEV("span",{className:"num",children:R(c)},void 0,!1,void 0,this)," shortened ·"," ",It.jsxDEV("span",{className:"num",children:R(g)},void 0,!1,void 0,this)," held out"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c+g===0?It.jsxDEV("div",{className:"spot-gap-empty dim",children:"No fetch-backs"},void 0,!1,void 0,this):It.jsxDEV("div",{className:"spot-gap-bins",children:$I.map((m)=>{let b=d.get(m);return It.jsxDEV("div",{className:"spot-gap-bin",children:[It.jsxDEV("div",{className:"spot-gap-bars",children:WI.map((p)=>{let x=b?.[p]??0,L=h[p],w=L>0?x/L:0;return It.jsxDEV("span",{className:"spot-gap-bar","data-group":p,"data-empty":L===0,title:`${m} ${m==="1"?"call":"calls"} later: ${R(x)} of ${R(L)} ${Oa[p].label.toLowerCase()} fetch-backs`,children:[L>0&&It.jsxDEV("span",{className:"spot-gap-value num",children:Qt(w)},void 0,!1,void 0,this),It.jsxDEV("span",{className:"spot-gap-fill",style:{height:`${y>0?w/y*100:0}%`}},void 0,!1,void 0,this)]},p,!0,void 0,this)})},void 0,!1,void 0,this),It.jsxDEV("span",{className:"spot-gap-label num",children:m},void 0,!1,void 0,this)]},m,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function KI({stats:n,stale:i}){let[s,d]=o0.useState(!1),c=new Set(n.gaps.map((y)=>y.tool)),{listed:g,rest:h}=Vo(Ui(n).filter((y)=>c.has(y)));return It.jsxDEV(ve,{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:g.length===0?It.jsxDEV("div",{className:"empty",children:"No fetch-backs in this range."},void 0,!1,void 0,this):It.jsxDEV(It.Fragment,{children:[It.jsxDEV(Vf,{groups:WI},void 0,!1,void 0,this),It.jsxDEV("div",{className:"spot-gaps",children:(s?[...g,...h]:g).map((y)=>It.jsxDEV(VN,{tool:y,counts:n.gaps.filter((m)=>m.tool===y)},y,!1,void 0,this))},void 0,!1,void 0,this),h.length>0&&It.jsxDEV($f,{hidden:h,expanded:s,onToggle:()=>d((y)=>!y)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var At=U(te(),1);function JI({stats:n,windowLabel:i,stale:s}){let{gross:d,clawback:c,adjusted:g}=n,{netTokens:h,netUsd:y}=g,m=Gl(h,lo),b=Gl(y,hn),p=g.byTool.filter((O)=>O.cuts>0&&O.holdouts<g.minHoldouts).map((O)=>O.tool),x=Vo(p),L=x.rest.length>0?[...x.listed,`${x.rest.length} more tools`]:p,w=L.length<2?L[0]??"":`${L.slice(0,-1).join(", ")} and ${L.at(-1)}`,C=Vo(g.byTool),T=C.listed.map((O)=>({tool:O.tool,holdouts:O.holdouts,thin:p.includes(O.tool)}));if(C.rest.length>0)T.push({tool:Bn,holdouts:C.rest.reduce((O,B)=>O+B.holdouts,0),thin:C.rest.some((O)=>p.includes(O.tool))});let I=d.fullSavedTokens>0?1-d.savedTokens/d.fullSavedTokens:null;return At.jsxDEV("section",{className:"card rise spot-hero","data-stale":s,"aria-label":"Spotlight savings summary",children:[At.jsxDEV("div",{className:"spot-hero-main",children:[At.jsxDEV("div",{className:"spot-hero-headline",children:[At.jsxDEV("div",{className:"spot-eyebrow",children:["Net saved in ",i,", after fetch-backs a cut caused"]},void 0,!0,void 0,this),At.jsxDEV("div",{className:"spot-hero-figures",children:[At.jsxDEV("span",{className:"spot-hero-value gradient-text",title:h.value===null?void 0:`${R(h.value)} tokens`,children:h.value===null?"–":lo(h.value)},void 0,!1,void 0,this),At.jsxDEV("span",{className:"spot-hero-unit",children:"tokens"},void 0,!1,void 0,this),y.value!==null&&At.jsxDEV("span",{className:"spot-hero-usd","data-negative":y.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:hn(y.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(m!==""||b!=="")&&At.jsxDEV("div",{className:"spot-hero-interval",children:["90% interval"," ",At.jsxDEV("span",{className:"num",children:[m,b].filter(Boolean).join(" · ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),At.jsxDEV("div",{className:"spot-hero-aside",children:[At.jsxDEV("p",{className:"spot-hero-note",children:["Counted against what pi would have shown unshaped (",At.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."," ",d.fullSavedTokens>d.savedTokens&&At.jsxDEV(At.Fragment,{children:["Against the full output the shaping read, the cuts would claim"," ",At.jsxDEV("s",{className:"spot-struck num",children:re(d.fullSavedTokens)},void 0,!1,void 0,this),", overstating the gross by ",Qt(I),"."," "]},void 0,!0,void 0,this),d.widerThanPlain>0&&`${R(d.widerThanPlain)} ${d.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. `,d.estimatedPlain>0&&`${R(d.estimatedPlain)} older ${d.estimatedPlain===1?"result estimates":"results estimate"} plain from the inline cap.`]},void 0,!0,void 0,this),p.length>0&&At.jsxDEV("p",{className:"spot-hero-warn",role:"note",children:[At.jsxDEV(dn,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),At.jsxDEV("span",{children:[w," ",p.length===1?"has":"have"," fewer than"," ",R(g.minHoldouts)," held-out results: ",p.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),At.jsxDEV("div",{className:"spot-hero-stats",children:[At.jsxDEV(ce,{size:"sm",label:"Gross vs plain",title:"Σ (plain − shortened) tokens over shortened results; a cut that showed more than plain counts negative",value:lo(d.savedTokens),hint:`${Qt(d.ofToolOutput)} of tool output · ${R(d.shaped)} of ${R(d.results)} results shortened`},void 0,!1,void 0,this),At.jsxDEV(ce,{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:g.excessTokens.value===null?"–":lo(-g.excessTokens.value),hint:At.jsxDEV(At.Fragment,{children:["of ",re(c.tokens)," fetched back",g.excessTokens.lo!==null&&g.excessTokens.hi!==null&&At.jsxDEV(At.Fragment,{children:[" ",At.jsxDEV("span",{className:"dim",children:["·"," ",At.jsxDEV("span",{className:"spot-nowrap",children:["90% ",Gl(g.excessTokens,re)]},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),At.jsxDEV(ce,{size:"sm",label:"Held out",title:`Would-be cuts shown whole at random: the baseline per tool (under ${g.minHoldouts} is thin)`,value:R(n.holdouts),hint:At.jsxDEV("span",{className:"spot-hero-tools",children:T.map((O)=>At.jsxDEV("span",{"data-thin":O.thin,title:O.tool===Bn?C.rest.map((B)=>`${B.tool} ${R(B.holdouts)}`).join(", "):O.thin?`${O.tool}: under ${g.minHoldouts} held out`:void 0,children:[O.tool," ",At.jsxDEV("span",{className:"num",children:R(O.holdouts)},void 0,!1,void 0,this),O.thin&&At.jsxDEV(dn,{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),At.jsxDEV(ce,{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:R(n.scoreFree),hint:"cut without Spotlight, for comparison"},void 0,!1,void 0,this),At.jsxDEV(ce,{size:"sm",label:"Sessions",value:R(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 ha=U(te(),1);function e2({p50:n,p90:i}){if(n===null)return ha.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this);return ha.jsxDEV("span",{className:"num",children:[St(n),ha.jsxDEV("span",{className:"dim",children:[" / ",St(i)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var $N=[{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?ha.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):ha.jsxDEV(ht,{tone:cn(n.failureRate),mono:!0,children:Qt(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?ha.jsxDEV("span",{className:"num",children:St(n.failedWaitMs)},void 0,!1,void 0,this):ha.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)=>ha.jsxDEV("span",{className:"num",children:R(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)=>ha.jsxDEV(e2,{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)=>ha.jsxDEV(e2,{p50:n.spotlightMsP50,p90:n.spotlightMsP90},void 0,!1,void 0,this)},{key:"usd",header:"Spotlight $",align:"right",sort:(n)=>n.spotlightUsd,render:(n)=>ha.jsxDEV("span",{className:"num",children:Et(n.spotlightUsd)},void 0,!1,void 0,this)}];function jN({overhead:n}){let i=n.failureRate;if(i===null)return null;let s=cn(i);if(s==="ok")return null;let d=n.failedWaitMs;return ha.jsxDEV("div",{className:"spot-callout","data-tone":s,role:"note",children:[ha.jsxDEV(dn,{size:16,"aria-hidden":"true"},void 0,!1,void 0,this),ha.jsxDEV("div",{children:[ha.jsxDEV("div",{className:"spot-callout-head",children:[ha.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),ha.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.",d>0&&ha.jsxDEV(ha.Fragment,{children:[" ","Tool calls waited ",ha.jsxDEV("span",{className:"num",children:St(d)},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 t2({stats:n,stale:i}){let{overhead:s}=n,d=s.results>0?[s]:[];return ha.jsxDEV(ve,{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:[s.results>0&&ha.jsxDEV(jN,{overhead:s},void 0,!1,void 0,this),ha.jsxDEV(Ft,{rows:d,rowKey:()=>"overhead",columns:$N,dense:!0,empty:ha.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 Fe=U(te(),1),jf=["applied","scoreFree","holdout"],XN={applied:-7,scoreFree:0,holdout:7},YN=[{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)}×`}],QN=[{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 a2({stats:n,stale:i}){let{ranking:s}=n,d=new Map(s.cells.map((g)=>[g.group,g])),c=jf.some((g)=>(d.get(g)?.results??0)>0);return Fe.jsxDEV(ve,{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:Fe.jsxDEV(Vf,{groups:jf},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:!c?Fe.jsxDEV("div",{className:"empty",children:"No shaped read was needed again in this range."},void 0,!1,void 0,this):Fe.jsxDEV("div",{className:"spot-rank",children:[Fe.jsxDEV("div",{className:"spot-rank-panels",children:YN.map((g)=>Fe.jsxDEV(WN,{measure:g,cells:d},g.key,!1,void 0,this))},void 0,!1,void 0,this),Fe.jsxDEV("div",{className:"spot-rank-foot",children:[Fe.jsxDEV(ZN,{cells:d},void 0,!1,void 0,this),Fe.jsxDEV(KN,{positions:s.position},void 0,!1,void 0,this),Fe.jsxDEV("section",{className:"spot-rank-sources","aria-label":"How the need was seen",children:[Fe.jsxDEV("h3",{className:"spot-panel-title",children:"How the need was seen"},void 0,!1,void 0,this),Fe.jsxDEV("dl",{className:"spot-facts spot-rank-facts",children:QN.map((g)=>Fe.jsxDEV("div",{title:g.rule,children:[Fe.jsxDEV("dt",{children:g.label},void 0,!1,void 0,this),Fe.jsxDEV("dd",{className:"num",children:[R(s.sources[g.key]),Fe.jsxDEV("span",{className:"dim",children:" results"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},g.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 WN({measure:n,cells:i}){let s=jf.flatMap((g)=>{let h=i.get(g);if(h===void 0||h.results===0)return[];let y=h[n.key],m=Gl(y,n.format);return[{key:g,...y,color:Oa[g].color,shape:Oa[g].shape,offset:XN[g],title:`${Oa[g].label}: ${y.value===null?"–":n.format(y.value)}${m===""?"":` (${m})`} over ${R(h.results)} results, ${R(h.neededLines)} needed lines`}]}),d=i.get("applied")?.[n.key].value??null,c=[{key:"reads",label:"Shaped reads",marks:s,figure:Fe.jsxDEV("span",{style:{color:Oa.applied.color},children:d===null?"–":n.format(d)},void 0,!1,void 0,this),detail:Fe.jsxDEV(Fe.Fragment,{children:["scoreFree","holdout"].map((g,h)=>{let y=i.get(g)?.[n.key].value??null;return Fe.jsxDEV("span",{title:Oa[g].label,children:[h>0&&" · ",Fe.jsxDEV("span",{className:"spot-fb-detail","data-group":g,children:y===null?"–":n.format(y)},void 0,!1,void 0,this)]},g,!0,void 0,this)})},void 0,!1,void 0,this)}];return Fe.jsxDEV("section",{className:"spot-rank-panel","aria-label":n.title,children:[Fe.jsxDEV("h3",{className:"spot-panel-title",title:n.rule,children:[n.title,Fe.jsxDEV("span",{className:"spot-rank-chance",children:n.chanceLabel},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe.jsxDEV(Dh,{rows:c,guides:[{key:"chance",value:n.chance,color:"var(--ink-3)"}],format:n.format,formatTick:(g)=>String(Number(g.toFixed(2)))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ZN({cells:n}){return Fe.jsxDEV("section",{"aria-label":"Sample per cell",children:[Fe.jsxDEV("h3",{className:"spot-panel-title",children:["Sample per cell",Fe.jsxDEV("span",{className:"spot-rank-chance",children:"results · needed lines"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe.jsxDEV("table",{className:"spot-rank-n",children:[Fe.jsxDEV("thead",{children:Fe.jsxDEV("tr",{children:jf.map((i)=>Fe.jsxDEV("th",{scope:"col",title:Oa[i].rule,children:Oa[i].label},i,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),Fe.jsxDEV("tbody",{children:Fe.jsxDEV("tr",{children:jf.map((i)=>{let s=n.get(i);return Fe.jsxDEV("td",{className:"num","data-thin":s!==void 0&&s.results<20,children:s===void 0||s.results===0?Fe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this):Fe.jsxDEV("span",{title:`${R(s.neededLines)} needed lines`,children:[R(s.results),Fe.jsxDEV("span",{className:"dim",children:[" · ",re(s.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 KN({positions:n}){let i=Math.max(0,...n.map((s)=>s.meanHeat));return Fe.jsxDEV("section",{className:"spot-rank-pos","aria-label":"Mean heat by position",children:[Fe.jsxDEV("h3",{className:"spot-panel-title",children:["Mean heat by position",Fe.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?Fe.jsxDEV("div",{className:"dim spot-gap-empty",children:"No heat recorded"},void 0,!1,void 0,this):Fe.jsxDEV(Fe.Fragment,{children:[Fe.jsxDEV("div",{className:"spot-rank-bars",children:n.map((s)=>Fe.jsxDEV("div",{className:"spot-rank-bar",title:`${s.label}: mean heat ${s.meanHeat.toFixed(2)} over ${R(s.lines)} lines`,children:[Fe.jsxDEV("span",{className:"spot-rank-bar-track",children:[Fe.jsxDEV("span",{className:"spot-rank-bar-value num",children:s.meanHeat.toFixed(1)},void 0,!1,void 0,this),Fe.jsxDEV("span",{className:"spot-rank-bar-fill",style:{height:`calc((100% - 14px) * ${s.meanHeat/i})`}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Fe.jsxDEV("span",{className:"spot-rank-bar-label num",children:s.label.replace(/^lines? /,"L").replace(/%$/,"")},void 0,!1,void 0,this)]},s.label,!0,void 0,this))},void 0,!1,void 0,this),Fe.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 sd=U(et(),1);var ue=U(te(),1);function n0(n){return`${n.sessionFile}\x00${n.toolCallId}`}function o2({value:n}){return ue.jsxDEV("span",{className:n<0?"num tone-bad":n>0?"num tone-ok":"num",children:lo(n)},void 0,!1,void 0,this)}function JN({row:n}){let{plainTokens:i,outTokens:s}=n,d=i>0?Math.min(1,s/i):1;return ue.jsxDEV("div",{className:"spot-shrink","data-holdout":n.holdout,title:`plain would show ${R(i)} tokens, the cut ${n.holdout?"would show":"showed"} ${R(s)} (shaping read ${R(n.inTokens)})`,children:[ue.jsxDEV("span",{className:"num",children:[re(i),ue.jsxDEV("span",{className:"dim",children:" → "},void 0,!1,void 0,this),re(s)]},void 0,!0,void 0,this),ue.jsxDEV("span",{className:"spot-shrink-bar","aria-hidden":"true",children:ue.jsxDEV("span",{className:"spot-shrink-kept",style:{width:`${d*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function eO(n){let i=new Map;for(let s of n.recoveries)i.set(s.kind,(i.get(s.kind)??0)+1);return _h.flatMap((s)=>{let d=i.get(s);return d?[[s,d]]:[]})}var tO=[{key:"target",header:"Result",width:"40%",sort:(n)=>n.timestamp,render:(n)=>{let i=zn(n.tool);return ue.jsxDEV("div",{className:"spot-result",children:[ue.jsxDEV("span",{className:"spot-tool",title:n.tool,children:[ue.jsxDEV(i,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"sr-only",children:n.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ue.jsxDEV("div",{className:"stack spot-result-text",children:[ue.jsxDEV("span",{className:"spot-target truncate",title:n.target,children:n.target},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"row spot-result-meta",children:[n.holdout&&ue.jsxDEV(n2,{},void 0,!1,void 0,this),n.scoreFree&&ue.jsxDEV(l2,{},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"dim",title:Oo(n.timestamp),children:xa(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)=>ue.jsxDEV(JN,{row:n},void 0,!1,void 0,this)},{key:"saved",header:"Saved",align:"right",sort:(n)=>n.savedTokens,render:(n)=>n.holdout?ue.jsxDEV("span",{className:"spot-would-save",title:"Held out: what the cut would have saved",children:[ue.jsxDEV("span",{className:"dim",children:"would save "},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"num",children:lo(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):ue.jsxDEV("span",{className:"num",children:lo(n.savedTokens)},void 0,!1,void 0,this)},{key:"hidden",header:"Hidden lines",align:"right",sort:(n)=>n.hiddenLines,render:(n)=>n.hiddenLines>0?ue.jsxDEV("span",{className:"num",children:R(n.hiddenLines)},void 0,!1,void 0,this):ue.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=eO(n);return i.length===0?ue.jsxDEV("span",{className:"dim",title:"Nothing fetched back",children:"–"},void 0,!1,void 0,this):ue.jsxDEV("span",{className:"row spot-kinds",children:i.map(([s,d])=>ue.jsxDEV(a0,{kind:s,count:d},s,!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?ue.jsxDEV("span",{className:"dim",title:"Held out: the model saw the whole result, so nothing was saved",children:"–"},void 0,!1,void 0,this):ue.jsxDEV(o2,{value:n.netTokens},void 0,!1,void 0,this)}];function n2(){return ue.jsxDEV("span",{title:"Held out at random: the model saw the original, unshortened result",children:ue.jsxDEV(ht,{children:"held out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function l2(){return ue.jsxDEV("span",{title:"A random coin skipped Spotlight: the no-score fallback rules made this cut",children:ue.jsxDEV(ht,{children:"score-free"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function r2({rows:n,stale:i}){let[s,d]=sd.useState(null),c=sd.useCallback(()=>d(null),[]),g=sd.useMemo(()=>n.find((h)=>n0(h)===s)??null,[n,s]);return ue.jsxDEV(ue.Fragment,{children:[ue.jsxDEV(ve,{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:ue.jsxDEV(Ft,{rows:n,rowKey:n0,columns:tO,onRowClick:(h)=>d(n0(h)),selectedKey:s,limit:15,empty:ue.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),ue.jsxDEV(aO,{row:g,onClose:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aO({row:n,onClose:i}){if(n===null)return null;let s=zn(n.tool),d=n.savedTokens-n.netTokens;return ue.jsxDEV(Zu,{open:!0,onClose:i,width:600,title:ue.jsxDEV("span",{className:"spot-drawer-title",title:n.target,children:n.target},void 0,!1,void 0,this),subtitle:ue.jsxDEV("span",{className:"row spot-drawer-subtitle",children:[ue.jsxDEV(s,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),n.tool,n.holdout&&ue.jsxDEV(n2,{},void 0,!1,void 0,this),n.scoreFree&&ue.jsxDEV(l2,{},void 0,!1,void 0,this),ue.jsxDEV("span",{children:Oo(n.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:[ue.jsxDEV("div",{className:"spot-drawer-summary",children:[ue.jsxDEV("div",{children:[ue.jsxDEV("div",{className:"spot-eyebrow",children:n.holdout?"Would save":"Saved"},void 0,!1,void 0,this),ue.jsxDEV("div",{className:"spot-drawer-figure num",children:lo(n.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ue.jsxDEV("div",{children:[ue.jsxDEV("div",{className:"spot-eyebrow",children:"Fetched back"},void 0,!1,void 0,this),ue.jsxDEV("div",{className:d>0?"spot-drawer-figure num tone-warn":"spot-drawer-figure num",children:re(d)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ue.jsxDEV("div",{children:[ue.jsxDEV("div",{className:"spot-eyebrow",children:"Net"},void 0,!1,void 0,this),n.holdout?ue.jsxDEV("div",{className:"spot-drawer-figure dim",title:"Held out: the model saw the whole result",children:"–"},void 0,!1,void 0,this):ue.jsxDEV("div",{className:n.netTokens<0?"spot-drawer-figure num tone-bad":"spot-drawer-figure num tone-ok",children:lo(n.netTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ue.jsxDEV(No,{items:[{key:"plain",label:"Plain would show",value:R(n.plainTokens)},{key:"out",label:"Tokens out",value:R(n.outTokens)},{key:"in",label:"Full output read",value:R(n.inTokens)},{key:"hidden",label:n.holdout?"Lines it would hide":"Hidden lines",value:R(n.hiddenLines)},{key:"steps",label:"Steps",value:n.steps.length>0?n.steps.join(" → "):"–"},{key:"cost",label:"Spotlight cost",value:Et(n.spotlightUsd)},{key:"ms",label:"Shaping time",value:St(n.shapeMs)}]},void 0,!1,void 0,this),ue.jsxDEV("div",{children:[ue.jsxDEV("div",{className:"section-label",children:"Call"},void 0,!1,void 0,this),ue.jsxDEV("pre",{className:"code-block spot-drawer-call",children:n.target},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ue.jsxDEV("div",{children:[ue.jsxDEV("div",{className:"section-label",children:"Recovery timeline"},void 0,!1,void 0,this),ue.jsxDEV("ol",{className:"spot-timeline",children:[ue.jsxDEV("li",{className:"spot-timeline-item","data-kind":n.holdout?"holdout":"cut",children:[ue.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:ue.jsxDEV(Tf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue.jsxDEV("div",{className:"spot-timeline-body",children:ue.jsxDEV("div",{className:"row spot-timeline-head",children:[ue.jsxDEV("span",{className:"cell-primary",children:n.holdout?"Held out: the model saw the original":"Shortened"},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"dim num",children:[n.holdout&&"would be ",re(n.plainTokens)," → ",re(n.outTokens)," tokens",n.hiddenLines>0&&`, ${R(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((c)=>ue.jsxDEV("li",{className:"spot-timeline-item","data-kind":c.kind,style:{"--kind":Tr[c.kind].color},children:[ue.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true",children:ue.jsxDEV(rf,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this),ue.jsxDEV("div",{className:"spot-timeline-body",children:[ue.jsxDEV("div",{className:"row spot-timeline-head",children:[ue.jsxDEV(a0,{kind:c.kind},void 0,!1,void 0,this),c.turn&&ue.jsxDEV(ht,{tone:"warn",children:"extra turn"},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),ue.jsxDEV("span",{className:"num tone-warn",children:["+",re(c.tokens)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ue.jsxDEV("code",{className:"spot-timeline-target",title:c.target,children:[ue.jsxDEV("span",{className:"dim",children:[c.tool," "]},void 0,!0,void 0,this),c.target]},void 0,!0,void 0,this),ue.jsxDEV("div",{className:"micro",children:[c.after===0?"The next call":`${R(c.after)} ${c.after===1?"call":"calls"} later`,` · ${fn(Math.max(0,c.timestamp-n.timestamp))} after the cut`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},c.toolCallId,!0,void 0,this)),ue.jsxDEV("li",{className:"spot-timeline-item","data-kind":"net",children:[ue.jsxDEV("span",{className:"spot-timeline-node","aria-hidden":"true"},void 0,!1,void 0,this),ue.jsxDEV("div",{className:"spot-timeline-body",children:ue.jsxDEV("div",{className:"row spot-timeline-head",children:[ue.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),ue.jsxDEV("span",{className:"spot-timeline-spacer"},void 0,!1,void 0,this),n.holdout?ue.jsxDEV("span",{className:"dim",children:"saves nothing"},void 0,!1,void 0,this):ue.jsxDEV(o2,{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 id=U(et(),1);var gt=U(te(),1),oO=[{value:"tokens",label:"Tokens"},{value:"usd",label:"$"}];function s2({value:n,onChange:i}){return gt.jsxDEV(Da,{size:"sm","aria-label":"Unit",options:oO,value:n,onChange:i},void 0,!1,void 0,this)}function i2({stats:n,range:i,stale:s}){let[d,c]=id.useState("tokens"),g=Kt(i),h=id.useMemo(()=>{let m=mo(i,n.series.map((T)=>T.timestamp),g.bucketMs),b=d==="usd",p=sa(n.series,m,(T)=>b?T.savedUsd:T.savedTokens),x=sa(n.series,m,(T)=>b?T.netUsd:T.netTokens),L=0,w=0,C=[{key:"gross",label:"Gross (cumulative)",color:"var(--spot-gross)",kind:"area",values:p.map((T)=>L+=T)},{key:"clawback",label:b?"Recoveries + Spotlight cost":"Fetched back",color:"var(--spot-clawback)",kind:"bars",values:p.map((T,I)=>x[I]-T)},{key:"net",label:"Net of every fetch-back (cumulative)",color:"var(--spot-net)",kind:"line",values:x.map((T)=>w+=T)}];return{buckets:m,series:C}},[n.series,i,g.bucketMs,d]),y=d==="usd"?hn:lo;return gt.jsxDEV(ve,{index:1,title:"Savings over time",description:`Running gross and net per ${Fh(g.bucketMs)}; what recoveries took back hangs below zero`,actions:gt.jsxDEV(s2,{value:d,onChange:c},void 0,!1,void 0,this),stale:s,footer:d==="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:[gt.jsxDEV("div",{className:"spot-chart-legend",children:gt.jsxDEV(ra,{items:h.series.map((m)=>({key:m.key,label:m.label,color:m.color}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),gt.jsxDEV(mn,{buckets:h.buckets,bucketMs:g.bucketMs,series:h.series,stacked:!1,height:480,format:y,formatTooltip:d==="usd"?hn:(m)=>m<0?`−${R(-m)}`:R(m),showTotal:!1,emptyLabel:"No shortened results in this range"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function u2({stats:n,stale:i}){let[s,d]=id.useState("tokens"),{gross:c,clawback:g,compounding:h,adjusted:y}=n,m=id.useMemo(()=>{let b=s==="usd",p=b?h.savedUsd:c.savedTokens,x=(O)=>p>0?Qt(O/p):"",L=_h.map((O)=>{let B=g.byKind[O],F=b?B.usd:B.tokens;return{key:O,label:gt.jsxDEV(gt.Fragment,{children:[gt.jsxDEV("span",{className:"spot-step-swatch",style:{background:Tr[O].color}},void 0,!1,void 0,this),Tr[O].plural,gt.jsxDEV("span",{className:"dim num",children:R(B.events)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-F,color:Tr[O].color,note:x(F),title:Tr[O].rule}}),w=[{key:"gross",label:b?"Gross saved":"Gross vs plain",kind:"total",value:p,color:"var(--spot-gross)",title:b?"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"},...L];if(b)w.push({key:"turns",label:gt.jsxDEV(gt.Fragment,{children:[gt.jsxDEV("span",{className:"spot-step-swatch",style:{background:"var(--spot-turns)"}},void 0,!1,void 0,this),"Extra turns",gt.jsxDEV("span",{className:"dim num",children:R(g.turns)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kind:"delta",value:-g.turnsUsd,color:"var(--spot-turns)",note:x(g.turnsUsd),title:"Provider cost of requests that issued nothing but recovery calls"},{key:"spotlight",label:gt.jsxDEV(gt.Fragment,{children:[gt.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:-h.spotlightUsd,color:"var(--spot-cost)",note:x(h.spotlightUsd),title:"Spotlight's own scoring bill"});let C=b?h.netUsd:g.netTokens,T=b?y.netUsd.value:y.netTokens.value;if(T!==null){let O=T-C;w.push({key:"anyway",label:gt.jsxDEV(gt.Fragment,{children:[gt.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:x(O),title:"Fetch-backs held-out results (shown whole) show the agent makes regardless, per tool: not the cut's cost"})}let I=T??C;return w.push({key:"net",label:T===null?"Net (no holdout baseline yet)":"Net",kind:"total",value:I,color:"var(--spot-net-fill)",note:x(I)}),w},[s,c,g,h,y]);return gt.jsxDEV(ve,{index:2,title:"Where the savings went",description:"Gross, minus each way hidden output came back",actions:gt.jsxDEV(s2,{value:s,onChange:d},void 0,!1,void 0,this),stale:i,footer:s==="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:[gt.jsxDEV(uI,{steps:m,format:s==="usd"?Et:re},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"spot-by-tool",children:[gt.jsxDEV("div",{className:"section-label",children:"Net by tool, tokens"},void 0,!1,void 0,this),gt.jsxDEV(lO,{byTool:c.byTool,adjusted:y.byTool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var nO=3;function lO({byTool:n,adjusted:i}){let s=new Map(i.map((y)=>[y.tool,y])),{listed:d,rest:c}=Vo(n,nO),g=d.map((y)=>{let m=s.get(y.tool),b=m===void 0?"":Gl(m.excessTokens,re),p=m?.baselinePerCut.value??null;return{tool:y.tool,totals:y,excess:m?.excessTokens.value??null,title:m===void 0?void 0:[`${R(m.cuts)} cuts fetched back ${re(m.recoveredTokens)} tokens`,p===null?"No held-out baseline yet":`${R(m.holdouts)} held-out results get ${re(p)} each fetched back anyway`,b===""?"":`Beyond the baseline: ${b} (90%)`].filter(Boolean).join(`
237
+ `)}});if(c.length>0){let y={tool:Bn,results:0,shaped:0,inTokens:0,plainTokens:0,outTokens:0,savedTokens:0,fullSavedTokens:0},m=null;for(let b of c){y.results+=b.results,y.shaped+=b.shaped,y.savedTokens+=b.savedTokens;let p=s.get(b.tool)?.excessTokens.value??null;if(p!==null)m=(m??0)+p}g.push({tool:Bn,totals:y,excess:m,title:`${R(c.length)} more tools: ${c.map((b)=>b.tool).join(", ")}`})}let h=Math.max(0,...g.map((y)=>y.totals.savedTokens));return gt.jsxDEV("ul",{className:"spot-tool-net",children:g.map(({tool:y,totals:m,excess:b,title:p})=>{let x=b===null?null:m.savedTokens-b,L=zn(y),w=h>0?Math.max(0,m.savedTokens)/h*100:0,C=b!==null&&m.savedTokens>0?Math.min(1,b/m.savedTokens):0;return gt.jsxDEV("li",{className:"spot-tool-net-row",title:p,children:[gt.jsxDEV("div",{className:"row spot-tool-net-head",children:[gt.jsxDEV(L,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),gt.jsxDEV("span",{className:"cell-primary",children:y},void 0,!1,void 0,this),gt.jsxDEV("span",{className:"dim num",children:[R(m.shaped)," of ",R(m.results)," shortened"]},void 0,!0,void 0,this),gt.jsxDEV("span",{className:"spot-tool-net-value num",title:x===null?"No holdout baseline yet":void 0,children:lo(x??m.savedTokens)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),gt.jsxDEV("div",{className:"spot-tool-net-track","aria-hidden":"true",children:gt.jsxDEV("span",{className:"spot-tool-net-bar",style:{width:`${w}%`},children:gt.jsxDEV("span",{className:"spot-tool-net-excess",style:{width:`${C*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),gt.jsxDEV("div",{className:"micro spot-tool-net-detail",children:[lo(m.savedTokens)," gross",b!==null&&gt.jsxDEV(gt.Fragment,{children:[" − ",re(b)," beyond baseline"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},y,!0,void 0,this)})},void 0,!1,void 0,this)}var c2=U(et(),1);var $h=U(te(),1),d2=7,rO=[{group:"shaped",label:"Shaped sessions",color:"var(--spot-shaped)"},{group:"outside",label:"Outside the experiment",color:"var(--spot-outside)"}];function f2({stats:n,range:i,stale:s}){let d=Kt(i),c=c2.useMemo(()=>{let g=mo(i,n.share.map((b)=>b.timestamp),d.bucketMs),h=[],y=[];for(let{group:b,label:p,color:x}of rO){let L=n.share.filter((B)=>B.group===b),w=sa(L,g,(B)=>B.toolTokens),C=sa(L,g,(B)=>B.contextTokens),T=0,I=0,O=g.map((B,F)=>{let X=0,ie=0;for(let Q=Math.max(0,F-d2+1);Q<=F;Q++)X+=w[Q],ie+=C[Q];return T+=w[F],I+=C[F],ie>0?X/ie:null});if(I===0)continue;h.push({key:`${b}:raw`,label:`${p} · bucket`,color:x,kind:"dots",values:g.map((B,F)=>C[F]>0?w[F]/C[F]:null)},{key:`${b}:avg`,label:`${p} · rolling`,color:x,kind:"line",values:O}),y.push({key:b,label:p,color:x,value:Qt(T/I)})}let m=[];if(n.experimentStart!==null){let b=Math.floor(n.experimentStart/d.bucketMs)*d.bucketMs,p=g.indexOf(b);if(p>=0)m.push({index:p,label:"experiment starts"})}return{buckets:g,series:h,legend:y,markers:m}},[n.share,n.experimentStart,i,d.bucketMs]);return $h.jsxDEV(ve,{index:4,title:"Tool-output share of context",description:n.experimentStart!==null&&c.markers.length===0?`Since ${Wu(n.experimentStart,86400000)}, shaped sessions should carry less tool output`:"Shaped sessions should carry less tool output than the rest of your history",actions:$h.jsxDEV(ra,{items:c.legend},void 0,!1,void 0,this),stale:s,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 ${Fh(d.bucketMs)}); lines are the trailing ${d2}-bucket ratio of sums.`,children:$h.jsxDEV(mn,{buckets:c.buckets,bucketMs:d.bucketMs,series:c.series,markers:c.markers,stacked:!1,height:260,format:(g)=>He(g,0),formatTooltip:(g)=>He(g),showTotal:!1,emptyLabel:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var jh=U(et(),1);var $e=U(te(),1),h2=10,sO=30,p2=4;function iO(n,i){let s=new Map;for(let d of n){if(d.tool!==i)continue;let c=s.get(d.steps);if(c===void 0)c={steps:d.steps,bySize:new Map,total:{cuts:0,savedTokens:0,excessTokens:0}},s.set(d.steps,c);c.bySize.set(d.size,d),c.total.cuts+=d.cuts,c.total.savedTokens+=d.savedTokens,c.total.excessTokens+=d.excessTokens}return[...s.values()].sort((d,c)=>Number(d.steps==="other")-Number(c.steps==="other")||c.total.savedTokens-d.total.savedTokens)}function m2({kept:n,cuts:i,title:s,children:d}){if(n===null)return $e.jsxDEV("div",{className:"spot-econ-cell","data-empty":"true",title:s,children:$e.jsxDEV("span",{className:"dim",children:"No saving"},void 0,!1,void 0,this)},void 0,!1,void 0,this);let c=p2+Math.min(1,Math.abs(n-0.5)*2)*(sO-p2);return $e.jsxDEV("div",{className:"spot-econ-cell","data-tone":n>=0.5?"ok":"bad","data-thin":i<h2,style:{"--tint":`${c}%`},title:s,children:[$e.jsxDEV("span",{className:"spot-econ-net num",children:[Qt(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:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function g2({stats:n,stale:i}){let[s,d]=jh.useState(!1),c=Ui(n).flatMap((m)=>{let b=iO(n.steps,m);return b.length===0?[]:[{tool:m,rows:b}]}),{listed:g,rest:h}=Vo(c),y=s?c:g;return $e.jsxDEV(ve,{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 ${h2} cuts are dimmed.`,children:y.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),Hh.map((m)=>$e.jsxDEV("th",{scope:"col",className:"num",children:[m," ",$e.jsxDEV("span",{className:"dim",children:"saved"},void 0,!1,void 0,this)]},m,!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:y.map(({tool:m,rows:b})=>{let p=zn(m);return $e.jsxDEV(jh.Fragment,{children:[$e.jsxDEV("tr",{className:"spot-steps-tool",children:$e.jsxDEV("th",{scope:"rowgroup",colSpan:Hh.length+2,children:$e.jsxDEV("span",{className:"row spot-econ-tool",children:[$e.jsxDEV(p,{size:13,"aria-hidden":"true"},void 0,!1,void 0,this),m]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),b.map((x)=>{let{total:L}=x,w=L.savedTokens>0?(L.savedTokens-L.excessTokens)/L.savedTokens:null;return $e.jsxDEV("tr",{children:[$e.jsxDEV("th",{scope:"row",className:"spot-steps-name",title:x.steps,children:x.steps},void 0,!1,void 0,this),Hh.map((C)=>{let T=x.bySize.get(C);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)},C,!1,void 0,this);let I=Gl(T.fetchBackRate,Qt);return $e.jsxDEV("td",{children:$e.jsxDEV(m2,{kept:T.keptShare,cuts:T.cuts,title:[`${m} · ${x.steps} · ${C} saved: ${R(T.cuts)} cuts`,`Saved ${re(T.savedTokens)}, fetched back ${re(T.recoveredTokens)}, ${re(T.excessTokens)} beyond the baseline`,`Fetched back after ${Qt(T.fetchBackRate.value)} of cuts${I===""?"":` (${I})`}`].join(`
238
+ `),children:[$e.jsxDEV("div",{children:[$e.jsxDEV("dt",{children:"cuts"},void 0,!1,void 0,this),$e.jsxDEV("dd",{className:"num",children:R(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:Qt(T.fetchBackRate.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},C,!1,void 0,this)}),$e.jsxDEV("td",{children:$e.jsxDEV(m2,{kept:w,cuts:L.cuts,title:`${m} · ${x.steps}: ${R(L.cuts)} cuts saved ${re(L.savedTokens)}, ${re(L.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:R(L.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:re(L.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)]},x.steps,!0,void 0,this)})]},m,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),h.length>0&&$e.jsxDEV($f,{hidden:h.map((m)=>m.tool),expanded:s,onToggle:()=>d((m)=>!m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var go=U(te(),1),uO=[{key:"fetch",label:"Fetch-back turns",color:"var(--spot-turns)"},{key:"shape",label:"Shaping",color:"var(--spot-cost)"}];function y2({stats:n,stale:i}){let s=n.timeCost,d=s.agentMs>0?s.fetchBackMs/s.agentMs:0,c=s.agentMs>0?s.shapeMs/s.agentMs:0,g=d+c,h=g>0?g*1.15:1,y=d/h*100,m=c/h*100;return go.jsxDEV(ve,{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:go.jsxDEV(ra,{items:uO},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(h)} of model time.`,children:s.agentMs===0?go.jsxDEV("div",{className:"empty",children:"No experiment requests in this range."},void 0,!1,void 0,this):go.jsxDEV("ul",{className:"spot-time",children:go.jsxDEV("li",{className:"spot-time-row",children:[go.jsxDEV("span",{className:"spot-time-label",children:"Shaped sessions"},void 0,!1,void 0,this),go.jsxDEV("span",{className:"spot-time-track","aria-hidden":"true",children:[go.jsxDEV("span",{className:"spot-time-fill",style:{width:`${y}%`,background:"var(--spot-turns)"}},void 0,!1,void 0,this),go.jsxDEV("span",{className:"spot-time-fill",style:{width:`${m}%`,background:"var(--spot-cost)"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),go.jsxDEV("span",{className:"spot-time-share num",children:Qt(g)},void 0,!1,void 0,this),go.jsxDEV("span",{className:"spot-time-detail",children:[go.jsxDEV("span",{className:"num",children:fn(s.fetchBackMs)},void 0,!1,void 0,this)," in"," ",go.jsxDEV("span",{className:"num",children:R(s.fetchBackTurns)},void 0,!1,void 0,this)," ",s.fetchBackTurns===1?"turn":"turns"," ·"," ",go.jsxDEV("span",{className:"num",children:fn(s.shapeMs)},void 0,!1,void 0,this)," shaping",go.jsxDEV("span",{className:"dim",children:[" ","of ",go.jsxDEV("span",{className:"num",children:fn(s.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 yt=U(te(),1),dO=[{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"}],cO={all:"",main:"main-agent ",subagent:"subagent "};function Xh({id:n,title:i,children:s}){return yt.jsxDEV("header",{className:"spot-section rise",id:n,children:[yt.jsxDEV("h2",{className:"spot-section-title",children:i},void 0,!1,void 0,this),yt.jsxDEV("p",{className:"spot-section-copy",children:s},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function b2({active:n,range:i}){let[s,d]=v2.useState("all"),c=Pt(["spotlight",i,s],({signal:y})=>AT(i,s,y),{enabled:n}),g=Kt(i),h=c.data?.experimentStart??null;return yt.jsxDEV("div",{className:"page spot-page",children:[yt.jsxDEV(pa,{title:"Spotlight",description:`What shaping tool output saved in ${g.windowLabel} against what pi would have shown unshaped, after taking back what the agent fetched again because of a cut.`,actions:yt.jsxDEV(Da,{"aria-label":"Sessions",options:dO,value:s,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),yt.jsxDEV(Xe,{query:c,skeleton:yt.jsxDEV(Ot,{height:220},void 0,!1,void 0,this),isEmpty:(y)=>y.sessions===0&&y.recent.length===0,empty:yt.jsxDEV(ve,{children:yt.jsxDEV("div",{className:"spot-empty",children:[yt.jsxDEV("span",{className:"spot-empty-icon","aria-hidden":"true",children:yt.jsxDEV(br,{size:20},void 0,!1,void 0,this)},void 0,!1,void 0,this),yt.jsxDEV("h2",{className:"spot-empty-title",children:h===null?"The Spotlight experiment hasn't run yet":`No ${cO[s]}experiment sessions in ${g.windowLabel}`},void 0,!1,void 0,this),yt.jsxDEV("p",{className:"spot-empty-hint",children:h===null?yt.jsxDEV(yt.Fragment,{children:["Turn it on with ",yt.jsxDEV("code",{children:"spotlight.experiment.enabled"},void 0,!1,void 0,this)," in your settings or"," ",yt.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):s==="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:(y)=>yt.jsxDEV(yt.Fragment,{children:[yt.jsxDEV(JI,{stats:y,windowLabel:g.windowLabel,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(Xh,{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),yt.jsxDEV("div",{className:"grid grid-main-side",children:[yt.jsxDEV(i2,{stats:y,range:i,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(u2,{stats:y,stale:c.stale},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yt.jsxDEV(jI,{stats:y,active:n,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(f2,{stats:y,range:i,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(Xh,{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),yt.jsxDEV(y2,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(t2,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(Xh,{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),yt.jsxDEV(a2,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(ZI,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(KI,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(Xh,{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),yt.jsxDEV(g2,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(QI,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(XI,{stats:y,stale:c.stale},void 0,!1,void 0,this),yt.jsxDEV(r2,{rows:y.recent,stale:c.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 _i=U(et(),1);var xe=U(te(),1),fO=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],x2=6,Pi="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",l0=xe.jsxDEV(wt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function S2({active:n,range:i}){let s=Pt(["tools",i],({signal:C})=>ET(i,C),{enabled:n}),[d,c]=_i.useState("calls"),[g,h]=qn(),[y,m]=_i.useState(null),b=Kt(i),p=_i.useMemo(()=>pO(s.data,i),[s.data,i]),x=y!==null&&p.toolNames.includes(y)?y:null,L=d==="calls"?p.callSeries:p.errorSeries,w=(C)=>C.byTool.length===0;return xe.jsxDEV("div",{className:"page",children:[xe.jsxDEV(pa,{title:"Tools",description:`Which tools omp called in ${b.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),xe.jsxDEV(Xe,{query:s,skeleton:xe.jsxDEV(Ot,{height:112},void 0,!1,void 0,this),children:()=>{let C=p.totals;return xe.jsxDEV("div",{"data-stale":s.stale,className:"stack",style:{gap:16},children:[xe.jsxDEV(Ca,{min:190,children:[xe.jsxDEV(ce,{label:"Tool calls",value:R(C.calls),hint:`${R(C.errors)} failed`,spark:p.totalCalls},void 0,!1,void 0,this),xe.jsxDEV(ce,{label:"Distinct tools",value:R(C.tools),hint:p.rows[0]?`Most used: ${p.rows[0].tool}`:void 0},void 0,!1,void 0,this),xe.jsxDEV(ce,{label:"Error rate",title:"Tool results that came back flagged as errors",value:ko(C.calls>0?C.errors/C.calls:0),hint:`${R(C.calls-C.errors)} succeeded`,spark:p.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),xe.jsxDEV(ce,{label:"Attributed tokens",title:Pi,value:re(Math.round(C.tokens)),hint:`${re(Math.round(C.output))} output`},void 0,!1,void 0,this),xe.jsxDEV(ce,{label:"Attributed cost",title:`${Pi}; API-equivalent estimate`,value:Jt(C.cost,C.unpriced),hint:C.unpriced>0?`${R(Math.round(C.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV(Ca,{min:150,children:[xe.jsxDEV(ce,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${re(C.resultChars)} chars`},void 0,!1,void 0,this),xe.jsxDEV(ce,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${re(C.argsChars)} chars`},void 0,!1,void 0,this),xe.jsxDEV(ce,{size:"sm",label:"Avg result per call",value:`${re(C.calls>0?Math.round(C.resultChars/C.calls):0)} chars`},void 0,!1,void 0,this),xe.jsxDEV(ce,{size:"sm",label:"Avg arguments per call",value:`${re(C.calls>0?Math.round(C.argsChars/C.calls):0)} chars`},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(ve,{index:1,title:d==="calls"?"Calls over time":"Errors over time",description:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}, top ${x2} tools stacked`,actions:xe.jsxDEV(Da,{size:"sm",options:fO,value:d,onChange:c},void 0,!1,void 0,this),stale:s.stale,children:xe.jsxDEV(Xe,{query:s,skeleton:xe.jsxDEV(Ot,{height:260},void 0,!1,void 0,this),isEmpty:w,empty:l0,children:()=>xe.jsxDEV("div",{className:"stack",style:{gap:12},children:[xe.jsxDEV(mn,{buckets:p.buckets,bucketMs:b.bucketMs,series:L,hidden:g,height:260,formatTooltip:R,emptyLabel:d==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),xe.jsxDEV(ra,{items:L.map((C)=>({key:C.key,label:C.label,color:C.color,value:re(C.values.reduce((T,I)=>T+(I??0),0))})),hidden:g,onToggle:h},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(ve,{index:2,title:"By tool",description:`${Pi}. Select a tool to break it down by model.`,flush:!0,stale:s.stale,children:xe.jsxDEV(Xe,{query:s,skeleton:xe.jsxDEV(Ta,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:l0,children:()=>xe.jsxDEV(Ft,{rows:p.rows,rowKey:(C)=>C.tool,columns:p.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:x,onRowClick:(C)=>m((T)=>T===C.tool?null:C.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xe.jsxDEV(ve,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:s.stale,actions:xe.jsxDEV("div",{className:"row",style:{gap:6},children:[xe.jsxDEV("select",{className:"input tools-filter",value:x??"",onChange:(C)=>m(C.target.value||null),"aria-label":"Filter by tool",children:[xe.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),p.toolNames.map((C)=>xe.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))]},void 0,!0,void 0,this),x!==null&&xe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>m(null),children:xe.jsxDEV(So,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:xe.jsxDEV(Xe,{query:s,skeleton:xe.jsxDEV(Ta,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:l0,children:(C)=>xe.jsxDEV(hO,{rows:C.byToolModel,tool:x,colors:p.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 pO(n,i){let s=n?.byTool??[],d=n?.series??[],c=xI(s).sort((w,C)=>C.calls-w.calls),g=qf(s.map((w)=>({key:w.tool,weight:w.calls}))),h=mo(i,d.map((w)=>w.timestamp)),y={calls:0,errors:0,tools:s.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let w of s)y.calls+=w.calls,y.errors+=w.errors,y.tokens+=w.totalTokensShare,y.output+=w.outputTokensShare,y.cost+=w.costShare,y.unpriced+=w.unpricedRequestsShare,y.resultChars+=w.resultChars,y.argsChars+=w.argsChars;let[m,b]=[(w)=>w.calls,(w)=>w.errors].map((w)=>Fl(d,{buckets:h,key:(C)=>C.tool,value:w,limit:x2,colors:g}).map((C)=>({...C,values:C.values.map((T)=>T||null)}))),p=new Map(Fl(d,{buckets:h,key:(w)=>w.tool,value:(w)=>w.calls}).map((w)=>[w.key,w.values])),x=c[0]?.calls??0,L=mO(x,g,p);return{rows:c,colors:g,buckets:h,totals:y,callSeries:m,errorSeries:b,totalCalls:sa(d,h,(w)=>w.calls),totalErrors:sa(d,h,(w)=>w.errors),toolNames:c.map((w)=>w.tool).sort((w,C)=>w.localeCompare(C)),toolColumns:L}}function mO(n,i,s){return[{key:"tool",header:"Tool",sort:(d)=>d.tool,render:(d)=>xe.jsxDEV("span",{className:"row",style:{gap:8},children:[xe.jsxDEV(Kn,{color:i.get(d.tool)??Co},void 0,!1,void 0,this),xe.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(d)=>{let c=s.get(d.tool);return c&&c.length>1?xe.jsxDEV(td,{values:c,width:80,height:20,color:i.get(d.tool)??Co},void 0,!1,void 0,this):xe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(d)=>d.calls,render:(d)=>xe.jsxDEV(Ia,{value:d.calls,max:n,display:xe.jsxDEV("span",{title:`${He(d.callFraction)} of all tool calls`,children:[R(d.calls),xe.jsxDEV("span",{className:"dim tools-share",children:He(d.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(d)=>d.errorRate,render:(d)=>xe.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[xe.jsxDEV("span",{className:"num dim",children:R(d.errors)},void 0,!1,void 0,this),xe.jsxDEV(ht,{tone:d.errors>0?cn(d.errorRate):"neutral",mono:!0,children:ko(d.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(d)=>d.argsChars,render:(d)=>xe.jsxDEV("span",{className:"num",children:re(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(d)=>d.resultChars,render:(d)=>xe.jsxDEV("span",{className:"num",children:re(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(d)=>d.avgResultChars,render:(d)=>xe.jsxDEV("span",{className:"num muted",children:re(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:Pi,align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>xe.jsxDEV("span",{className:"num",title:`${He(d.tokenFraction)} of attributed tokens`,children:[re(Math.round(d.totalTokensShare)),xe.jsxDEV("span",{className:"dim tools-share",children:He(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${Pi}; API-equivalent estimate`,align:"right",sort:(d)=>d.costShare,render:(d)=>xe.jsxDEV("span",{className:"num",title:`${He(d.costFraction)} of attributed cost`,children:[Jt(d.costShare,d.unpricedRequestsShare),xe.jsxDEV("span",{className:"dim tools-share",children:He(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(d)=>d.lastUsed,render:(d)=>xe.jsxDEV("span",{className:"muted",children:xa(d.lastUsed)},void 0,!1,void 0,this)}]}function hO({rows:n,tool:i,colors:s}){let d=_i.useMemo(()=>(i===null?n:n.filter((g)=>g.tool===i)).map((g)=>({...g,errorRate:g.calls>0?g.errors/g.calls:0})),[n,i]),c=_i.useMemo(()=>{let g=d.reduce((h,y)=>Math.max(h,y.calls),0);return[{key:"tool",header:"Tool",sort:(h)=>h.tool,render:(h)=>xe.jsxDEV("span",{className:"row",style:{gap:8},children:[xe.jsxDEV(Kn,{color:s.get(h.tool)??Co},void 0,!1,void 0,this),xe.jsxDEV("span",{className:"mono truncate tools-name",title:h.tool,children:h.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(h)=>h.model,render:(h)=>xe.jsxDEV(oo,{primary:xe.jsxDEV("span",{className:"mono",children:h.model||"(unknown)"},void 0,!1,void 0,this),secondary:h.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(h)=>h.calls,render:(h)=>xe.jsxDEV(Ia,{value:h.calls,max:g,display:R(h.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(h)=>h.errorRate,render:(h)=>xe.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[xe.jsxDEV("span",{className:"num dim",children:R(h.errors)},void 0,!1,void 0,this),xe.jsxDEV(ht,{tone:h.errors>0?cn(h.errorRate):"neutral",mono:!0,children:ko(h.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(h)=>h.resultChars,render:(h)=>xe.jsxDEV("span",{className:"num",children:re(h.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:Pi,align:"right",sort:(h)=>h.totalTokensShare,render:(h)=>xe.jsxDEV("span",{className:"num",children:re(Math.round(h.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${Pi}; API-equivalent estimate`,align:"right",sort:(h)=>h.costShare,render:(h)=>xe.jsxDEV("span",{className:"num",children:Jt(h.costShare,h.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(h)=>h.lastUsed,render:(h)=>xe.jsxDEV("span",{className:"muted",children:xa(h.lastUsed)},void 0,!1,void 0,this)}]},[d,s]);return xe.jsxDEV(Ft,{rows:d,rowKey:(g)=>`${g.tool}::${g.model}::${g.provider}`,columns:c,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:xe.jsxDEV(wt,{title:i?`No calls to ${i} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var pd=U(et(),1);var Ht=U(et(),1);var Vl=U(te(),1);function k2({toolStats:n,index:i}){if(n.length===0)return null;let s=Math.max(...n.map((c)=>c.totalMs)),d=[{key:"tool",header:"Tool",render:(c)=>Vl.jsxDEV("span",{className:"mono",children:c.tool},void 0,!1,void 0,this),sort:(c)=>c.tool},{key:"calls",header:"Calls",align:"right",render:(c)=>Vl.jsxDEV("span",{className:"num",children:R(c.calls)},void 0,!1,void 0,this),sort:(c)=>c.calls},{key:"errors",header:"Errors",align:"right",render:(c)=>c.errors>0?Vl.jsxDEV(ht,{tone:"bad",children:[R(c.errors)," failed"]},void 0,!0,void 0,this):Vl.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(c)=>c.errors},{key:"total",header:"Total",align:"right",width:200,render:(c)=>Vl.jsxDEV(Ia,{value:c.totalMs,max:s,display:St(c.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(c)=>c.totalMs},{key:"avg",header:"Avg",align:"right",render:(c)=>Vl.jsxDEV("span",{className:"num",children:St(c.calls>0?c.totalMs/c.calls:0)},void 0,!1,void 0,this),sort:(c)=>c.calls>0?c.totalMs/c.calls:0},{key:"max",header:"Max",align:"right",render:(c)=>Vl.jsxDEV("span",{className:"num",children:St(c.maxMs)},void 0,!1,void 0,this),sort:(c)=>c.maxMs}];return Vl.jsxDEV(ve,{title:"Tool aggregates",description:`${n.length} tools, by total time`,flush:!0,index:i,children:Vl.jsxDEV(Ft,{columns:d,rows:n,rowKey:(c)=>c.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var gn=U(et(),1);var $l=U(et(),1),gO=$l.createContext(null),Hi={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function yO(n){let i=getComputedStyle(n),s=(d,c)=>i.getPropertyValue(d).trim()||c;return{category:{turn:s(Hi.turn,"#a0a0a8"),model:s(Hi.model,"#5ad8e6"),tool:s(Hi.tool,"#f5a524"),subagent:s(Hi.subagent,"#ed4abf"),background:s(Hi.background,"#46464c")},error:s("--bad","#ff6166"),errorSoft:s("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:s("--ink-1","#ededef"),turnBand:s("--hover","rgba(255, 255, 255, 0.035)"),grid:s("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:s("--chart-axis","#5c5c64"),spanText:s("--ink-inverse","#0a0a0b"),selection:s("--focus","#5ad8e6"),brush:s("--selected","rgba(255, 255, 255, 0.075)"),fontSans:s("--font-sans","system-ui, sans-serif"),fontMono:s("--font-mono","ui-monospace, monospace")}}function ud(){let n=$l.useContext(gO)??document.documentElement,[i,s]=$l.useState(0);return $l.useEffect(()=>{let d=new MutationObserver(()=>s((g)=>g+1)),c={attributes:!0,attributeFilter:["data-theme","style","class"]};if(d.observe(document.documentElement,c),n!==document.documentElement)d.observe(n,c);return()=>d.disconnect()},[n]),$l.useMemo(()=>yO(n),[n,i])}var w2=U(te(),1),Os=44,Xf=["turn","model","tool","subagent"],C2=6,dd=10;function vO(n,i,s,d){let c=devicePixelRatio,g=Math.floor(s*c),h=Math.floor(Os*c),y,m;if(typeof OffscreenCanvas>"u"){let C=document.createElement("canvas");C.width=g,C.height=h,y=C,m=C.getContext("2d")}else{let C=new OffscreenCanvas(g,h);y=C,m=C.getContext("2d")}if(!m)return y;m.setTransform(c,0,0,c,0,0);let[b,p]=i.domain,x=Math.max(p-b,0.000000001),L=Xf.map(()=>new Float32Array(s));for(let C of n)for(let T of C.spans){let I=Xf.indexOf(T.kind);if(I===-1)continue;let O=L[I],B=Math.max(0,Math.floor((i.toU(T.start)-b)/x*s)),F=Math.min(s-1,Math.ceil((i.toU(T.end)-b)/x*s));for(let X=B;X<=F;X++)O[X]=Math.min(1,O[X]+0.34)}let w=Os/Xf.length;for(let C=0;C<Xf.length;C++){let T=L[C];m.fillStyle=d.category[Xf[C]];for(let I=0;I<s;I++){if(T[I]<=0)continue;m.globalAlpha=0.25+T[I]*0.75,m.fillRect(I,C*w+1,1,w-2)}m.globalAlpha=1}return y}function L2({tracks:n,scale:i,viewport:s,onViewportChange:d}){let c=ud(),g=gn.useRef(null),[h,y]=gn.useState(800),m=gn.useRef(null);gn.useEffect(()=>{let B=g.current;if(!B)return;let F=new ResizeObserver((X)=>{y(Math.max(100,Math.floor(X[0].contentRect.width)))});return F.observe(B),()=>F.disconnect()},[]);let[b,p]=i.domain,x=Math.max(p-b,0.000000001),L=gn.useCallback((B)=>(B-b)/x*h,[b,x,h]),w=gn.useCallback((B)=>b+B/Math.max(h,1)*x,[b,x,h]),C=gn.useMemo(()=>vO(n,i,h,c),[n,i,h,c]);gn.useEffect(()=>{let B=g.current;if(!B)return;let F=B.getContext("2d");if(!F)return;let X=devicePixelRatio;F.setTransform(1,0,0,1,0,0),F.clearRect(0,0,B.width,B.height),F.drawImage(C,0,0),F.setTransform(X,0,0,X,0,0);let ie=L(s.u0),Q=L(s.u1);F.fillStyle=c.brush,F.fillRect(ie,0,Q-ie,Os),F.strokeStyle=c.selection,F.strokeRect(ie+0.5,0.5,Q-ie-1,Os-1),F.fillStyle=c.selection,F.fillRect(ie,0,2,Os),F.fillRect(Q-2,0,2,Os)},[C,s,c,L]);let T=(B)=>{let F=B.currentTarget.getBoundingClientRect(),X=B.clientX-F.left,ie=L(s.u0),Q=L(s.u1),de;if(Math.abs(X-ie)<=C2)de="left";else if(Math.abs(X-Q)<=C2)de="right";else if(X>ie&&X<Q)de="move";else{de="create";let J=w(X);d(Yf({u0:J,u1:J+dd},b,p))}m.current={mode:de,startX:X,startViewport:s},B.currentTarget.setPointerCapture(B.pointerId)},I=(B)=>{let F=m.current;if(!F)return;let X=B.currentTarget.getBoundingClientRect(),ie=B.clientX-X.left,Q=w(ie)-w(F.startX),{u0:de,u1:J}=F.startViewport;if(F.mode==="move")d(Yf({u0:de+Q,u1:J+Q},b,p));else if(F.mode==="left")d(Yf({u0:Math.min(de+Q,J-dd),u1:J},b,p));else if(F.mode==="right")d(Yf({u0:de,u1:Math.max(J+Q,de+dd)},b,p));else{let P=w(F.startX),V=w(ie);d(Yf({u0:Math.min(P,V),u1:Math.max(P,V,Math.min(P,V)+dd)},b,p))}},O=()=>{m.current=null};return w2.jsxDEV("canvas",{ref:g,width:Math.floor(h*devicePixelRatio),height:Math.floor(Os*devicePixelRatio),className:"traces-minimap",style:{height:Os},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((s.u0-b)/x*100),tabIndex:-1,onPointerDown:T,onPointerMove:I,onPointerUp:O},void 0,!1,void 0,this)}function Yf(n,i,s){let d=Math.max(dd,n.u1-n.u0);d=Math.min(d,s-i||dd);let c=n.u0;if(c<i)c=i;if(c+d>s)c=s-d;return{u0:c,u1:c+d}}var jl=U(et(),1);var Ge=U(te(),1);function bO(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 s of n){if(!s||typeof s!=="object"||!("type"in s))continue;if((s.type==="text"||s.type==="thinking")&&"text"in s&&typeof s.text==="string")i.push({kind:String(s.type),text:s.text})}return i}function xO({title:n,subtitle:i,actions:s,onClose:d,children:c}){return Ge.jsxDEV("section",{className:"traces-inline-detail","aria-label":"Selected span details",children:[Ge.jsxDEV("header",{className:"drawer-header",children:[Ge.jsxDEV("div",{className:"drawer-titles",children:[Ge.jsxDEV("h2",{className:"drawer-title",children:n},void 0,!1,void 0,this),i!==void 0&&Ge.jsxDEV("div",{className:"drawer-subtitle",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s,Ge.jsxDEV("button",{type:"button",className:"btn","data-icon":"true",onClick:d,"aria-label":"Close span details",children:Ge.jsxDEV(So,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ge.jsxDEV("div",{className:"drawer-body",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function T2({span:n,track:i,onClose:s,onOpenChildTrack:d,loadEntry:c=BT,inline:g=!1,onNavigate:h}){let[y,m]=jl.useState(null),[b,p]=jl.useState(!1),[x,L]=jl.useState(null),[w,C]=jl.useState(!1),T=jl.useRef(0);if(jl.useEffect(()=>{if(m(null),L(null),C(!1),p(!1),!n||!i||!n.entryId)return;p(!0);let Q=new AbortController;return c(i.file,n.entryId,Q.signal).then((de)=>{if(!Q.signal.aborted)m(de.entry)}).catch((de)=>{if(Q.signal.aborted)return;L(Oh(de))}).finally(()=>{if(!Q.signal.aborted)p(!1)}),()=>Q.abort()},[n,i,c]),jl.useEffect(()=>()=>window.clearTimeout(T.current),[]),!n)return null;let I=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(y??n,null,2)),C(!0),window.clearTimeout(T.current),T.current=window.setTimeout(()=>C(!1),1500)}catch{}},B=(y&&typeof y==="object"?y:{}).message,F=B?.usage,X=[{key:"duration",label:"Duration",value:Ge.jsxDEV("span",{className:"num",children:[St(n.end-n.start),n.unterminated&&Ge.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:Ge.jsxDEV("span",{className:"num",children:new Date(n.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:Ge.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(n.kind==="model"){if(X.push({key:"tokens",label:"Tokens",value:Ge.jsxDEV("span",{className:"num",children:R(n.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:Ge.jsxDEV("span",{className:"num",children:["$",(n.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:Ge.jsxDEV("span",{className:"num",children:St(n.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:Ge.jsxDEV("span",{className:"mono",children:B?.model??n.model??"-"},void 0,!1,void 0,this)}),F)X.push({key:"split",label:"Input / output / cached",value:Ge.jsxDEV("span",{className:"num",children:[R(F.input??0)," / ",R(F.output??0)," /"," ",R(F.cacheRead??0)]},void 0,!0,void 0,this)});if(B?.provider)X.push({key:"provider",label:"Provider",value:Ge.jsxDEV("span",{className:"mono",children:B.provider},void 0,!1,void 0,this)});if(B?.stopReason)X.push({key:"stop",label:"Stop reason",value:Ge.jsxDEV("span",{className:"mono",children:B.stopReason},void 0,!1,void 0,this)})}return Ge.jsxDEV(g?xO:Zu,{open:!0,onClose:s,title:n.label,subtitle:Ge.jsxDEV("span",{className:"row",style:{gap:6},children:Ge.jsxDEV(ht,{tone:n.isError?"bad":"neutral",children:n.isError?`${n.kind} · error`:n.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:Ge.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:I,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:w?Ge.jsxDEV(Ti,{size:15},void 0,!1,void 0,this):Ge.jsxDEV(Ri,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:Ge.jsxDEV("div",{className:"stack traces-drawer",children:[Ge.jsxDEV(No,{items:X},void 0,!1,void 0,this),h&&i&&n.entryId&&Ge.jsxDEV("div",{children:Ge.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>{if(n.entryId)h(i.id,n.entryId)},children:"Jump to transcript"},void 0,!1,void 0,this)},void 0,!1,void 0,this),B?.errorMessage&&Ge.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ge.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),Ge.jsxDEV("pre",{className:"code-block traces-pre",children:B.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.kind==="subagent"&&Ge.jsxDEV("div",{className:"stack",style:{gap:8},children:[n.detail&&Ge.jsxDEV(Ge.Fragment,{children:[Ge.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),Ge.jsxDEV("pre",{className:"code-block traces-pre",children:n.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n.childTrackId&&d&&Ge.jsxDEV("div",{children:Ge.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(n.childTrackId??""),children:["Open child track ",Ge.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&&Ge.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ge.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),Ge.jsxDEV("pre",{className:"code-block traces-pre",children:n.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b&&Ge.jsxDEV("div",{className:"stack",children:[Ge.jsxDEV(Za,{height:80},void 0,!1,void 0,this),Ge.jsxDEV(Za,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&Ge.jsxDEV(Ds,{error:`Failed to load entry: ${x.message}`},void 0,!1,void 0,this),!b&&y!==null&&bO(B?.content).map((Q,de)=>Ge.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ge.jsxDEV("div",{className:"section-label",children:Q.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),Ge.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:Q.text},void 0,!1,void 0,this)]},`${Q.kind}-${de}`,!0,void 0,this)),!b&&y!==null&&Ge.jsxDEV(Ku,{data:y,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var nl=U(te(),1);function I2({summary:n}){let i=(s)=>n.wallMs>0?`${He(s/n.wallMs)} of wall`:void 0;return nl.jsxDEV(Ca,{min:112,children:[nl.jsxDEV(ce,{size:"sm",label:"Wall time",value:fn(n.wallMs)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Model time",value:fn(n.modelMs),hint:i(n.modelMs)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Tool time",value:fn(n.toolMs),hint:i(n.toolMs)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Idle",value:fn(n.idleMs),hint:i(n.idleMs)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Turns",value:R(n.turns)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Requests",value:R(n.requests),hint:`${R(n.toolCalls)} tool calls`},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Agents",value:R(n.subagents)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Tokens",value:re(n.totalTokens)},void 0,!1,void 0,this),nl.jsxDEV(ce,{size:"sm",label:"Cost",value:Jt(n.costTotal,n.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vt=U(et(),1),O2=U(Xc(),1);function Yh(n,i){let s=n.length,d=[i[0],i[s-1]],c=(g,h)=>{let y=0,m=s-1;while(y<m){let b=y+m+1>>1;if(g[b]<=h)y=b;else m=b-1}return Math.min(y,s-2)};return{toU(g){if(g<=n[0])return i[0];if(g>=n[s-1])return i[s-1];let h=c(n,g),y=n[h+1]-n[h];if(y<=0)return i[h];return i[h]+(g-n[h])/y*(i[h+1]-i[h])},toT(g){if(g<=i[0])return n[0];if(g>=i[s-1])return n[s-1];let h=c(i,g),y=i[h+1]-i[h];if(y<=0)return n[h];return n[h]+(g-i[h])/y*(n[h+1]-n[h])},domain:d,gaps:[]}}function SO(n){let i=[];for(let s of n)for(let d of s.spans)i.push([d.start,d.end]);return i.sort((s,d)=>s[0]-d[0]),i}function kO(n){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:s}=Number;for(let d of n)for(let c of d.spans){if(c.start<i)i=c.start;if(c.end>s)s=c.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(s,i+1)]}function R2(n,i,s){let d=[...new Set(n.filter((y)=>y>=i&&y<=s))].sort((y,m)=>y-m);if(d[0]!==i)d.unshift(i);if(d[d.length-1]!==s)d.push(s);if(d.length<2)return Yh([i,s],[i,s]);let g=(s-i)/(d.length-1),h=d.map((y,m)=>i+m*g);return Yh(d,h)}function CO(n,i,s){let d=SO(n),c=[];for(let[p,x]of d){let L=p-2000,w=x+2000,C=c[c.length-1];if(C&&L<=C[1]){if(w>C[1])C[1]=w}else c.push([L,w])}if(c.length===0)c.push([i,s]);c[0][0]=Math.max(c[0][0],i),c[c.length-1][1]=Math.min(Math.max(c[c.length-1][1],c[c.length-1][0]),s);let g=[],h=[],y=[],m=c[0][0];for(let p=0;p<c.length;p++){let[x,L]=c[p];if(p===0)g.push(x),h.push(m);else{let w=c[p-1][1],C=x-w;if(C>30000)m+=8000,y.push({t0:w,t1:x,uMid:m-4000});else m+=C;g.push(x),h.push(m)}m+=Math.max(0,L-x),g.push(L),h.push(m)}return{...Yh(g,h),gaps:y}}function M2(n,i,s){let[d,c]=kO(n);if(i==="turns"){let h=(n.find((y)=>y.id==="main")?.spans??[]).filter((y)=>y.kind==="turn").map((y)=>y.start);return R2(h,d,c)}if(i==="calls"){let g=[];for(let h of n)for(let y of h.spans)if(y.kind==="model"||y.kind==="tool"||y.kind==="background")g.push(y.start,y.end);return R2(g,d,c)}if(s)return CO(n,d,c);return Yh([d,c],[d,c])}var LO=90;function wO(n){let i=10**Math.floor(Math.log10(Math.max(n,1)));for(let s of[1,2,5,10])if(i*s>=n)return i*s;return i*10}function TO(n){let i=new Date(n),s=String(i.getHours()).padStart(2,"0"),d=String(i.getMinutes()).padStart(2,"0"),c=String(i.getSeconds()).padStart(2,"0");return`${s}:${d}:${c}`}function cd(n){let i=n<0?"-":"+",s=Math.abs(n),d=Math.floor(s/3600000),c=Math.floor(s%3600000/60000),g=Math.floor(s%60000/1000),h=Math.floor(s%1000),y=s%1000!==0,m=`${String(c).padStart(2,"0")}:${String(g).padStart(2,"0")}${y?".":""}${y?String(h).padStart(3,"0"):""}`;return d>0?`${i}${d}:${m}`:`${i}${m}`}function A2(n,i,s,d){let c=s-i;if(c<=0||d<=0)return[];let g=[],h=n.domain[0],y=wO(c*LO/d),m=h+Math.ceil((i-h)/y)*y,b=0;for(let p=m;p<=s&&b<200;p+=y,b++){let x=n.toT(p),L=Math.round((p-h)/y)%5===0;g.push({u:p,label:L?TO(x):cd(p-h),major:L})}return g}var zt=U(te(),1),Rr=28,u0=22,$o=18,D2=3,IO=14,E2=200,r0=10,q2=2,RO=4,MO=56,Qh=3,i0=0.3,AO=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function DO(n,i){let s=new Map(n.map((m)=>[m.id,m])),d=new Set;for(let m of n)if(m.parentId)d.add(m.parentId);let c=(m)=>{let b=m.parentId;while(b){if(i.has(b))return!0;b=s.get(b)?.parentId??null}return!1},g=[],h=[],y=Rr+6;for(let m of n){if(c(m))continue;let b=m.id==="main"?0:m.id.split("/").length,p={turn:[],model:[],tool:[],subagent:[],background:[]};for(let L of m.spans)p[L.kind].push(L);let x={track:m,depth:b,hasChildren:d.has(m.id),headerY:y,lanes:[],turnSpans:p.turn,y0:y,y1:y};y+=u0;for(let{kind:L,label:w}of AO){let C=p[L],T=L==="turn"||L==="model"||L==="tool";if(C.length===0&&!(m.id==="main"&&T))continue;let I={track:m,kind:L,label:w,y,spans:C};x.lanes.push(I),h.push(I),y+=$o+D2}x.y1=y-D2,g.push(x),y+=IO}return{blocks:g,lanes:h,totalHeight:Math.max(y,Rr+48)}}function EO(n,i){return n.lanes.map((s)=>{let d=s.spans.length,c=new Float64Array(d),g=new Float64Array(d),h=new Float64Array(d),y=Number.NEGATIVE_INFINITY;for(let m=0;m<d;m++){let b=s.spans[m];c[m]=i.toU(b.start),g[m]=i.toU(b.end),y=Math.max(y,g[m]),h[m]=y}return{startU:c,endU:g,maxEndU:h}})}function NO(n,i){let s=0,d=n.length;while(s<d){let c=s+d>>>1;if(n[c]<i)s=c+1;else d=c}return s}function OO(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 B2({tracks:n,scale:i,viewport:s,onViewportChange:d,selected:c,onSelect:g,matchIds:h,collapsed:y,onToggleCollapse:m,traceStart:b,autoFocus:p=!0}){let x=ud(),L=Vt.useRef(null),w=Vt.useRef(null),C=Vt.useRef(null),[T,I]=Vt.useState(800),[O,B]=Vt.useState(null),F=Vt.useRef(null);F.current=O;let X=Vt.useRef({clientX:0,clientY:0}),ie=Vt.useRef([]),Q=Vt.useRef(null),de=Vt.useRef(null),J=Vt.useRef(s);J.current=s;let P=Vt.useMemo(()=>DO(n,y),[n,y]),V=Vt.useMemo(()=>EO(P,i),[P,i]);Vt.useEffect(()=>{let ee=L.current;if(!ee)return;let Y=new ResizeObserver((Se)=>{let Ae=Math.max(100,Math.floor(Se[0].contentRect.width-E2));I(Ae)});return Y.observe(ee),()=>Y.disconnect()},[]);let ke=Vt.useCallback((ee,Y)=>{let[Se,Ae]=i.domain,rt=Math.max(r0,Y-ee);rt=Math.min(rt,Ae-Se||r0);let Ue=ee;if(Ue<Se)Ue=Se;if(Ue+rt>Ae)Ue=Ae-rt;return{u0:Ue,u1:Ue+rt}},[i]),pe=Vt.useCallback((ee)=>{J.current=ee,d(ee)},[d]),Oe=Vt.useCallback((ee,Y)=>{let Se=T,{u0:Ae,u1:rt}=J.current,Ue=rt-Ae,we=Y===null?0.5:Math.min(1,Math.max(0,Y/Se)),ya=Ae+Ue*we,Ee=Ue*ee;pe(ke(ya-Ee*we,ya+Ee*(1-we)))},[T,pe,ke]),Le=Vt.useCallback((ee)=>{let{u0:Y,u1:Se}=J.current;pe(ke(Y+ee,Se+ee))},[pe,ke]),oe=Vt.useCallback((ee)=>{let Y=i.toU(ee.start),Se=i.toU(ee.end),Ae=Math.max((Se-Y)*0.1,r0/2);pe(ke(Y-Ae,Se+Ae))},[i,pe,ke]);Vt.useEffect(()=>{let ee=w.current;if(!ee)return;let Y=(Se)=>{Se.preventDefault();let Ae=ee.getBoundingClientRect(),rt=Se.clientX-Ae.left;de.current=rt,B(null);let Ue=ee.clientWidth||1,we=()=>J.current.u1-J.current.u0;if(Se.shiftKey){let ya=Math.abs(Se.deltaY)>=Math.abs(Se.deltaX)?Se.deltaY:Se.deltaX;Le(ya/Ue*we());return}if(Se.deltaX!==0)Le(Se.deltaX/Ue*we());if(Se.deltaY!==0)Oe(1.0015**Se.deltaY,rt)};return ee.addEventListener("wheel",Y,{passive:!1}),()=>ee.removeEventListener("wheel",Y)},[Oe,Le]);let be=Vt.useCallback((ee,Y)=>{let Se=w.current;if(!Se)return null;let Ae=Se.getBoundingClientRect(),rt=ee-Ae.left,Ue=Y-Ae.top,we=ie.current;for(let ya=we.length-1;ya>=0;ya--){let Ee=we[ya];if(rt>=Ee.x&&rt<=Ee.x+Ee.w&&Ue>=Ee.y&&Ue<=Ee.y+Ee.h)return Ee}return null},[]),Me=Vt.useCallback(()=>{let ee=C.current;if(!ee)return;let{clientX:Y,clientY:Se}=X.current,Ae=Math.min(Y+14,window.innerWidth-320),rt=Se+16>window.innerHeight-140?Se-120:Se+16;ee.style.transform=`translate(${Ae}px, ${rt}px)`},[]),Ze=(ee)=>{ee.currentTarget.setPointerCapture(ee.pointerId),Q.current={pointerId:ee.pointerId,lastX:ee.clientX,moved:!1},ee.currentTarget.focus()},pt=(ee)=>{let Y=ee.currentTarget.getBoundingClientRect();de.current=ee.clientX-Y.left;let Se=Q.current;if(Se&&Se.pointerId===ee.pointerId){let rt=ee.clientX-Se.lastX;if(Math.abs(rt)>0){if(Math.abs(rt)>2)Se.moved=!0;Se.lastX=ee.clientX;let Ue=J.current.u1-J.current.u0;Le(-rt/(T||1)*Ue)}B(null);return}X.current={clientX:ee.clientX,clientY:ee.clientY};let Ae=be(ee.clientX,ee.clientY);if(OO(Ae,F.current))Me();else B(Ae)},W=(ee)=>{let Y=Q.current;if(Q.current=null,Y?.moved)return;let Se=be(ee.clientX,ee.clientY);if(Se?.kind==="span")g(Se.span.id);else g(null)},Pe=(ee)=>{let Y=be(ee.clientX,ee.clientY);if(Y?.kind==="span")oe(Y.span)},kt=Vt.useCallback((ee)=>{let Y=c?.span.id;if(!Y)return;for(let Se of P.lanes){let Ae=Se.spans.findIndex((we)=>we.id===Y);if(Ae===-1)continue;let rt=Se.spans[Ae+ee];if(!rt)return;g(rt.id);let Ue=i.toU(rt.start);if(Ue<s.u0||Ue>s.u1){let we=s.u1-s.u0;d(ke(Ue-we/2,Ue+we/2))}return}},[c,P,g,i,s,d,ke]),Ct=(ee)=>{let Y=s.u1-s.u0;switch(ee.key){case"w":case"W":Oe(0.7692307692307692,de.current);break;case"s":case"S":Oe(1.3,de.current);break;case"a":case"A":Le(-Y*0.2);break;case"d":case"D":Le(Y*0.2);break;case"0":d({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":if(c)oe(c.span);break;case"Escape":g(null);break;case",":kt(-1);break;case".":kt(1);break;default:return}ee.preventDefault(),ee.stopPropagation()};Vt.useEffect(()=>{if(p)w.current?.focus({preventScroll:!0})},[p]),Vt.useEffect(()=>{let ee=w.current;if(!ee)return;let Y=requestAnimationFrame(()=>{ie.current=qO(ee,P,V,i,s,x,T,h)});return()=>cancelAnimationFrame(Y)},[P,V,i,s,x,T,h]);let me=O?.kind==="span"?N2(O,P,i,s,T):null,je=c?N2(c,P,i,s,T):null;Vt.useLayoutEffect(()=>{if(O)Me()},[O,Me]);let _e=O?BO(O,b,C):null,ia=Math.floor(T*devicePixelRatio),oa=Math.floor(P.totalHeight*devicePixelRatio),H={width:T,height:P.totalHeight};return zt.jsxDEV("div",{ref:L,className:"traces-timeline",children:[zt.jsxDEV("div",{style:{width:E2,flexShrink:0,position:"relative",height:P.totalHeight},children:P.blocks.map((ee)=>zt.jsxDEV("div",{children:[zt.jsxDEV("div",{style:{position:"absolute",top:ee.headerY,left:4+ee.depth*14,right:8,height:u0,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ee.hasChildren?zt.jsxDEV("button",{type:"button",onClick:()=>m(ee.track.id),"aria-label":y.has(ee.track.id)?`Expand ${ee.track.label}`:`Collapse ${ee.track.label}`,className:"traces-chevron",children:y.has(ee.track.id)?zt.jsxDEV(Zn,{size:12},void 0,!1,void 0,this):zt.jsxDEV(Ii,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):zt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),zt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ee.track.label},void 0,!1,void 0,this),ee.track.model&&zt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ee.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ee.lanes.map((Y)=>zt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:Y.y,left:20+ee.depth*14,lineHeight:`${$o}px`},children:Y.label},`${Y.track.id}:${Y.kind}`,!1,void 0,this))]},ee.track.id,!0,void 0,this))},void 0,!1,void 0,this),zt.jsxDEV("div",{className:"traces-canvas-stack",style:H,children:[zt.jsxDEV("canvas",{ref:w,className:"traces-canvas",width:ia,height:oa,style:H,tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:Ze,onPointerMove:pt,onPointerUp:W,onPointerLeave:()=>{de.current=null,B(null)},onDoubleClick:Pe,onKeyDown:Ct},void 0,!1,void 0,this),me&&O?.kind==="span"&&zt.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:me.x,top:me.y,width:me.w,height:$o,borderRadius:Qh,opacity:h===null||h.has(O.span.id)?1:i0}},void 0,!1,void 0,this),je&&c&&zt.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:je.x-1,top:je.y-1,width:je.w+2,height:$o+2,borderRadius:Qh,borderColor:x.selection,opacity:h===null||h.has(c.span.id)?1:i0}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_e&&O2.createPortal(_e,L.current?.getRootNode()instanceof ShadowRoot?L.current.getRootNode():document.body)]},void 0,!0,void 0,this)}function s0(n,i,s,d,c){if(n.beginPath(),d>=Qh*2+1)n.roundRect(i,s,d,c,Qh);else n.rect(i,s,d,c)}function qO(n,i,s,d,c,g,h,y){let m=[],b=n.getContext("2d");if(!b)return m;let p=i.totalHeight,x=devicePixelRatio;b.setTransform(x,0,0,x,0,0),b.clearRect(0,0,h,p);let{u0:L,u1:w}=c,C=Math.max(w-L,0.000000001),T=(I)=>(I-L)/C*h;for(let I of i.blocks){let O=I.turnSpans;for(let B=0;B<O.length;B++){let F=T(d.toU(O[B].start)),X=B+1<O.length?T(d.toU(O[B+1].start)):h;if(X<0||F>h)continue;if(B%2===1)b.fillStyle=g.turnBand,b.fillRect(Math.max(0,F),I.y0,Math.min(h,X)-Math.max(0,F),I.y1-I.y0);if(F>=0&&F<=h)b.strokeStyle=g.grid,b.beginPath(),b.moveTo(Math.round(F)+0.5,I.y0),b.lineTo(Math.round(F)+0.5,I.y1),b.stroke()}}b.font=`9px ${g.fontMono}`;for(let I of d.gaps){let O=T(I.uMid);if(O<-24||O>h+24)continue;b.save(),b.strokeStyle=g.grid,b.setLineDash([2,4]),b.beginPath(),b.moveTo(O,Rr),b.lineTo(O,p),b.stroke(),b.restore(),b.fillStyle=g.tick,b.textAlign="center",b.fillText(`⋯ ${St(I.t1-I.t0)}`,O,Rr-4),b.textAlign="left"}for(let I of A2(d,L,w,h)){let O=Math.round(T(I.u))+0.5;if(b.strokeStyle=g.grid,b.beginPath(),I.major)b.moveTo(O,4),b.lineTo(O,p);else b.moveTo(O,Rr-8),b.lineTo(O,Rr);if(b.stroke(),b.fillStyle=g.tick,I.major)b.fillText(I.label,O+4,11);else b.globalAlpha=0.75,b.fillText(I.label,O+3,Rr-10),b.globalAlpha=1}b.strokeStyle=g.grid,b.beginPath(),b.moveTo(0,Rr+0.5),b.lineTo(h,Rr+0.5),b.stroke(),b.font=`10px ${g.fontSans}`;for(let I=0;I<i.lanes.length;I++){let O=i.lanes[I],{startU:B,endU:F,maxEndU:X}=s[I],ie=O.kind==="turn";for(let Q=NO(X,L);Q<O.spans.length;Q++){let de=B[Q];if(de>w)break;let J=F[Q];if(J<L)continue;let P=O.spans[Q],V=T(de),ke=Math.max(q2,T(J)-V),pe=O.y,Oe=y===null||y.has(P.id)?1:i0,Le=g.category[P.kind];if(b.globalAlpha=Oe,ie)b.fillStyle=Le,b.globalAlpha=Oe*0.23,s0(b,V,pe,ke,$o),b.fill(),b.globalAlpha=Oe,b.fillStyle=Le,b.fillRect(V,pe,2,$o);else b.fillStyle=Le,s0(b,V,pe,ke,$o),b.fill();if(P.isError)b.fillStyle=g.errorSoft,s0(b,V,pe,ke,$o),b.fill(),b.fillStyle=g.error,b.fillRect(V,pe,2,$o);if(P.kind==="model"&&typeof P.ttft==="number"&&P.ttft>0&&ke>20){let be=T(d.toU(P.start+P.ttft));if(be>V+1&&be<V+ke-1)b.fillStyle="rgba(0,0,0,0.5)",b.fillRect(be,pe+3,1,$o-6)}if(P.unterminated)b.save(),b.strokeStyle=g.tick,b.setLineDash([2,2]),b.beginPath(),b.moveTo(V+ke-0.5,pe),b.lineTo(V+ke-0.5,pe+$o),b.stroke(),b.restore();if(ke>MO)b.save(),b.beginPath(),b.rect(V+3,pe,ke-6,$o),b.clip(),b.fillStyle=ie?g.tick:g.spanText,b.fillText(P.label,V+5,pe+$o-5),b.restore();b.globalAlpha=1;let oe=Math.max(ke,RO);m.push({kind:"span",x:V-(oe-ke)/2,y:pe,w:oe,h:$o,span:P,track:O.track})}}for(let I of i.blocks)for(let O of I.track.markers){let B=T(d.toU(O.time));if(B<-6||B>h+6)continue;let F=I.headerY+u0/2;b.fillStyle=g.marker,b.beginPath(),b.moveTo(B,F-4),b.lineTo(B+4,F),b.lineTo(B,F+4),b.lineTo(B-4,F),b.closePath(),b.fill(),m.push({kind:"marker",x:B-5,y:F-5,w:10,h:10,marker:O,track:I.track})}return m}function N2({span:n,track:i},s,d,c,g){let{u0:h,u1:y}=c,m=d.toU(n.start),b=d.toU(n.end);if(m>y||b<h)return null;let p=s.lanes.find((C)=>C.track===i&&C.kind===n.kind);if(!p)return null;let x=Math.max(y-h,0.000000001),L=(m-h)/x*g,w=(b-h)/x*g;return{x:L,y:p.y,w:Math.max(q2,w-L)}}function BO(n,i,s){let d={left:0,top:0};if(n.kind==="marker"){let{marker:g}=n;return zt.jsxDEV("div",{ref:s,className:"traces-tooltip",style:d,children:[zt.jsxDEV("div",{className:"traces-tooltip-title",children:g.label},void 0,!1,void 0,this),zt.jsxDEV("div",{className:"muted num",children:[new Date(g.time).toLocaleTimeString()," (",cd(g.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:c}=n;return zt.jsxDEV("div",{ref:s,className:"traces-tooltip",style:d,children:[zt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:c.label},void 0,!1,void 0,this),zt.jsxDEV("div",{className:"muted num",children:[St(c.end-c.start)," · ",new Date(c.start).toLocaleTimeString()," (",cd(c.start-i),")",c.unterminated?" · unterminated":""]},void 0,!0,void 0,this),c.kind==="model"&&zt.jsxDEV("div",{className:"muted num",children:[c.tokens!==void 0&&zt.jsxDEV(zt.Fragment,{children:[R(c.tokens)," tok"]},void 0,!0,void 0,this),c.cost!==void 0&&zt.jsxDEV(zt.Fragment,{children:[" · $",c.cost.toFixed(4)]},void 0,!0,void 0,this),c.ttft!==void 0&&zt.jsxDEV(zt.Fragment,{children:[" · TTFT ",St(c.ttft)]},void 0,!0,void 0,this),c.isError&&zt.jsxDEV(zt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.kind==="subagent"&&c.model&&zt.jsxDEV("div",{className:"muted num",children:c.model},void 0,!1,void 0,this),c.detail&&zt.jsxDEV("div",{className:"traces-tooltip-detail",children:c.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ll=U(et(),1);var ro=U(te(),1),fd=28,z2=20,zO=340;function UO(n){let i=[];for(let s of n){let d=s.id==="main"?0:s.id.split("/").length;for(let c of s.spans)i.push({key:c.id,time:c.start,span:c,track:s,depth:d});for(let c=0;c<s.markers.length;c++){let g=s.markers[c];i.push({key:`${s.id}:marker:${c}`,time:g.time,marker:g,track:s,depth:d})}}return i.sort((s,d)=>s.time-d.time),i}var U2=ll.memo(function({tracks:i,selection:s,onSelect:d,search:c,matchIds:g,traceStart:h}){let y=ud(),m=ll.useRef(null),[b,p]=ll.useState(0),x=ll.useMemo(()=>UO(i),[i]),L=ll.useMemo(()=>{if(!g)return x;let I=c.trim().toLowerCase();return x.filter((O)=>O.span?g.has(O.span.id):(O.marker?.label??"").toLowerCase().includes(I))},[x,c,g]);ll.useEffect(()=>{if(!s)return;let I=m.current;if(!I)return;let O=L.findIndex((F)=>F.span?.id===s);if(O===-1)return;let B=O*fd;if(B<I.scrollTop||B+fd>I.scrollTop+I.clientHeight)I.scrollTop=Math.max(0,B-I.clientHeight/2)},[s,L]);let w=Math.max(0,Math.floor(b/fd)-z2),C=Math.min(L.length,Math.ceil((b+zO)/fd)+z2),T=L.slice(w,C);return ro.jsxDEV("div",{ref:m,onScroll:(I)=>p(I.currentTarget.scrollTop),className:"traces-list",children:[ro.jsxDEV("div",{style:{height:L.length*fd,position:"relative"},children:ro.jsxDEV("div",{style:{position:"absolute",top:w*fd,left:0,right:0},children:T.map((I)=>{let O=I.span,B=O!==void 0&&O.id===s,F=I.span?y.category[I.span.kind]:y.marker,X=I.span?.label??I.marker?.label??"",ie=I.span?.detail,Q=I.span?St(I.span.end-I.span.start):"",de=I.span?.kind??I.marker?.kind??"",J=ro.jsxDEV(ro.Fragment,{children:[ro.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":F},children:de},void 0,!1,void 0,this),I.depth>0&&ro.jsxDEV("span",{className:"traces-row-track mono truncate",title:I.track.label,children:I.track.id},void 0,!1,void 0,this),ro.jsxDEV("span",{className:"traces-row-label truncate",children:X},void 0,!1,void 0,this),ie&&ro.jsxDEV("span",{className:"traces-row-detail truncate",children:ie},void 0,!1,void 0,this),ro.jsxDEV("span",{className:"traces-row-meta num",children:[I.span?.isError&&ro.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),ro.jsxDEV("span",{children:Q},void 0,!1,void 0,this),ro.jsxDEV("span",{children:cd(I.time-h)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),P={paddingLeft:12+I.depth*12};return O?ro.jsxDEV("button",{type:"button",onClick:()=>d(O.id),className:"traces-row","data-selected":B?"true":"false",style:P,children:J},I.key,!1,void 0,this):ro.jsxDEV("div",{className:"traces-row","data-static":"true",style:P,children:J},I.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),L.length===0&&ro.jsxDEV(wt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var ot=U(te(),1),PO=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],_O=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function P2({file:n,active:i,onBack:s}){let d=Pt(["trace",n],({signal:g},h)=>qT(n,g,h),{pollMs:15000,enabled:i}),c=d.stale?null:d.data;return ot.jsxDEV("div",{className:"stack traces-view",children:[ot.jsxDEV("div",{children:ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:s,children:[ot.jsxDEV(Jc,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ot.jsxDEV(pa,{title:ot.jsxDEV("span",{className:"traces-title truncate",children:c?.title??n.split("/").pop()},void 0,!1,void 0,this),description:c?.cwd?ot.jsxDEV("span",{className:"mono",children:c.cwd},void 0,!1,void 0,this):void 0,actions:ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:ot.jsxDEV(Is,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),ot.jsxDEV(Xe,{query:{...d,data:c},skeleton:ot.jsxDEV(Ot,{height:420},void 0,!1,void 0,this),children:(g)=>ot.jsxDEV(HO,{trace:g},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HO({trace:n,view:i="full",loadEntry:s,embedded:d=!1,onNavigate:c}){let[g,h]=Ht.useState("time"),[y,m]=Ht.useState(!0),[b,p]=Ht.useState(null),[x,L]=Ht.useState(!1),[w,C]=Ht.useState(""),[T,I]=Ht.useState(0),[O,B]=Ht.useState(new Set),[F,X]=Ht.useState(null),ie=Ht.useMemo(()=>n?.tracks??[],[n]),Q=Ht.useMemo(()=>M2(ie,g,y),[ie,g,y]),de=Ht.useRef(Q),J=Ht.useRef(null);Ht.useEffect(()=>{if(!n)return;if(J.current===n.file)return;J.current=n.file,p(null),C(""),X(null);let me=new Set;for(let je of n.tracks)if((je.id==="main"?0:je.id.split("/").length)>=1)me.add(je.id);B(me)},[n]),Ht.useEffect(()=>{let me=de.current;de.current=Q,X((je)=>{if(!je)return je;let _e=me.toT(je.u0),ia=me.toT(je.u1),oa=Q.toU(_e),H=Q.toU(ia);return H-oa>0?{u0:oa,u1:H}:null})},[Q]);let P=Ht.useMemo(()=>F??{u0:Q.domain[0],u1:Q.domain[1]},[F,Q]),V=Ht.useMemo(()=>{let me=[];for(let je of ie)for(let _e of je.spans)me.push({span:_e,track:je});return me.sort((je,_e)=>je.span.start-_e.span.start),me},[ie]),ke=Ht.useMemo(()=>{let me=w.trim().toLowerCase();if(!me)return[];return V.filter(({span:je})=>`${je.label} ${je.detail??""}`.toLowerCase().includes(me))},[V,w]),pe=Ht.useMemo(()=>w.trim()?new Set(ke.map(({span:me})=>me.id)):null,[ke,w]),Oe=Ht.useCallback((me)=>{let je=Q.toU(me.start),_e=Q.toU(me.end);X((ia)=>{let oa=ia??{u0:Q.domain[0],u1:Q.domain[1]};if(je>=oa.u0&&_e<=oa.u1)return ia;let H=oa.u1-oa.u0,ee=(je+_e)/2,[Y,Se]=Q.domain,Ae=ee-H/2;if(Ae<Y)Ae=Y;if(Ae+H>Se)Ae=Math.max(Y,Se-H);return{u0:Ae,u1:Ae+H}})},[Q]),Le=Ht.useCallback((me)=>{p(me);let je=V.find(({span:_e})=>_e.id===me);if(je)Oe(je.span)},[V,Oe]),oe=Ht.useCallback((me)=>{p(me),L(me!==null)},[]),be=Ht.useCallback((me)=>{if(ke.length===0)return;let je=((T+me)%ke.length+ke.length)%ke.length;I(je),Le(ke[je].span.id)},[ke,T,Le]),Me=Ht.useCallback((me)=>{B((je)=>{let _e=new Set(je);if(_e.has(me))_e.delete(me);else _e.add(me);return _e})},[]),Ze=Ht.useMemo(()=>{if(!b)return null;return V.find(({span:me})=>me.id===b)??null},[b,V]),pt=Ht.useCallback((me)=>{let je=ie.find((ia)=>ia.id===me),_e=je?.spans[0];if(B((ia)=>{let oa=new Set(ia),H=je;while(H?.parentId)oa.delete(H.parentId),H=ie.find((ee)=>ee.id===H?.parentId);return oa}),_e)Le(_e.id)},[ie,Le]),W=Ht.useCallback((me)=>{if(!me){B(new Set);return}let je=new Set;for(let _e of ie)if(_e.id!=="main")je.add(_e.id);B(je)},[ie]),Pe=Ht.useCallback((me)=>{Le(me),L(!0)},[Le]),kt=Ht.useCallback(()=>L(!1),[]),Ct=n.startedAt;return ot.jsxDEV("div",{className:"stack traces-view","data-view":i,children:[i==="full"&&ot.jsxDEV(I2,{summary:n.summary},void 0,!1,void 0,this),V.length===0&&ot.jsxDEV("p",{className:"muted",children:"No spans recorded in this session."},void 0,!1,void 0,this),ot.jsxDEV(ve,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!1),children:"Expand all"},void 0,!1,void 0,this),ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:ot.jsxDEV("div",{className:"stack",children:[ot.jsxDEV("div",{className:"traces-toolbar",children:[ot.jsxDEV(Da,{options:PO,value:g,onChange:h,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),g==="time"&&ot.jsxDEV("label",{className:"traces-check",children:[ot.jsxDEV("input",{type:"checkbox",checked:y,onChange:(me)=>m(me.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),ot.jsxDEV("div",{className:"traces-search",children:[ot.jsxDEV(zl,{value:w,onChange:(me)=>{C(me),I(0)},label:"Search spans",placeholder:"Search spans…",width:200},void 0,!1,void 0,this),w.trim()&&ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV("span",{className:"num muted traces-match-count",children:ke.length===0?"0":`${T%Math.max(ke.length,1)+1}/${ke.length}`},void 0,!1,void 0,this),ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>be(-1),"aria-label":"Previous match",disabled:ke.length===0,children:ot.jsxDEV(nf,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>be(1),"aria-label":"Next match",disabled:ke.length===0,children:ot.jsxDEV(Zn,{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),ot.jsxDEV("div",{className:"traces-legend",children:_O.map((me)=>ot.jsxDEV("span",{className:"traces-legend-item",children:[ot.jsxDEV("span",{className:"swatch",style:{background:`var(${Hi[me.kind]})`}},void 0,!1,void 0,this),me.label]},me.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ot.jsxDEV(L2,{tracks:ie,scale:Q,viewport:P,onViewportChange:X},void 0,!1,void 0,this),ot.jsxDEV(B2,{tracks:ie,scale:Q,viewport:P,onViewportChange:X,selected:Ze,onSelect:oe,matchIds:pe,collapsed:O,onToggleCollapse:Me,traceStart:Ct,autoFocus:!d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),ot.jsxDEV(T2,{span:x?Ze?.span??null:null,track:Ze?.track??null,onClose:kt,onOpenChildTrack:pt,loadEntry:s,inline:d,onNavigate:c},void 0,!1,void 0,this),i==="full"&&ot.jsxDEV(ve,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:ot.jsxDEV(U2,{tracks:ie,selection:b,onSelect:Pe,search:w,matchIds:pe,traceStart:Ct},void 0,!1,void 0,this)},void 0,!1,void 0,this),i==="full"&&ot.jsxDEV(k2,{toolStats:n.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var ga=U(te(),1),_2=200;function FO({models:n}){if(n.length===0)return ga.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return ga.jsxDEV("span",{className:"traces-models",title:n.join(`
239
+ `),children:[ga.jsxDEV("span",{className:"mono truncate",children:n[0]},void 0,!1,void 0,this),n.length>1&&ga.jsxDEV("span",{className:"badge",children:["+",n.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function H2({active:n,session:i,onOpenSession:s}){let[d,c]=pd.useState(""),g=Pt(["sessions",_2],({signal:p})=>OT(_2,void 0,p),{pollMs:30000,enabled:n&&i===null}),h=pd.useMemo(()=>{let p=g.data??[],x=d.trim().toLowerCase();if(!x)return p;return p.filter((L)=>(L.title??"").toLowerCase().includes(x)||L.folder.toLowerCase().includes(x)||L.models.some((w)=>w.toLowerCase().includes(x)))},[g.data,d]),y=pd.useMemo(()=>Math.max(0,...h.map((p)=>p.costTotal)),[h]),m=pd.useMemo(()=>[{key:"title",header:"Session",width:"32%",render:(p)=>ga.jsxDEV(oo,{primary:p.title??p.file.split("/").pop(),secondary:ga.jsxDEV("span",{className:"mono",children:p.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(p)=>(p.title??p.file).toLowerCase()},{key:"models",header:"Models",render:(p)=>ga.jsxDEV(FO,{models:p.models},void 0,!1,void 0,this)},{key:"started",header:"Started",align:"right",render:(p)=>ga.jsxDEV("span",{className:"muted",title:new Date(p.startedAt).toLocaleString(),children:xa(p.startedAt)},void 0,!1,void 0,this),sort:(p)=>p.startedAt},{key:"duration",header:"Duration",align:"right",render:(p)=>ga.jsxDEV("span",{className:"num",children:fn(p.endedAt-p.startedAt)},void 0,!1,void 0,this),sort:(p)=>p.endedAt-p.startedAt},{key:"requests",header:"Requests",align:"right",render:(p)=>ga.jsxDEV("span",{className:"num",children:R(p.requests)},void 0,!1,void 0,this),sort:(p)=>p.requests},{key:"toolCalls",header:"Tools",align:"right",render:(p)=>ga.jsxDEV("span",{className:"num",children:R(p.toolCalls)},void 0,!1,void 0,this),sort:(p)=>p.toolCalls},{key:"subagents",header:"Agents",align:"right",render:(p)=>p.subagents>0?ga.jsxDEV("span",{className:"num",children:R(p.subagents)},void 0,!1,void 0,this):ga.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(p)=>p.subagents},{key:"tokens",header:"Tokens",align:"right",render:(p)=>ga.jsxDEV("span",{className:"num",children:re(p.totalTokens)},void 0,!1,void 0,this),sort:(p)=>p.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(p)=>ga.jsxDEV(Ia,{value:p.costTotal,max:y,display:Jt(p.costTotal,p.unpricedRequests)},void 0,!1,void 0,this),sort:(p)=>p.costTotal}],[y]);if(i!==null)return ga.jsxDEV(P2,{file:i,active:n,onBack:()=>s(null)},void 0,!1,void 0,this);let b=g.data?.length??0;return ga.jsxDEV("div",{className:"stack traces-page",children:[ga.jsxDEV(pa,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),ga.jsxDEV(ve,{title:"Sessions",description:g.data?d.trim()?`${R(h.length)} of ${R(b)} most recent`:`${R(b)} most recent`:void 0,actions:ga.jsxDEV(zl,{value:d,onChange:c,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:g.stale,children:ga.jsxDEV(Xe,{query:g,skeleton:ga.jsxDEV(Ta,{rows:10},void 0,!1,void 0,this),isEmpty:(p)=>p.length===0,empty:ga.jsxDEV(wt,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>ga.jsxDEV(Ft,{columns:m,rows:h,rowKey:(p)=>p.file,onRowClick:(p)=>s(p.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:ga.jsxDEV(wt,{title:"No matching sessions",hint:"Try a different filter."},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 Pa=U(te(),1);function d0(){return Pa.jsxDEV(HT,{children:Pa.jsxDEV(GO,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function GO(){let{section:n,setSection:i,range:s,setRange:d,session:c,setSession:g}=lI(),[h,y]=md.useState(null),m=md.useCallback(()=>y(null),[]),b=md.useRef(new Set);b.current.add(n);let p=(x)=>{let L=x===n;switch(x){case"overview":return Pa.jsxDEV(qI,{active:L,range:s,onRequestClick:y},void 0,!1,void 0,this);case"requests":return Pa.jsxDEV(GI,{active:L,range:s,onRequestClick:y},void 0,!1,void 0,this);case"errors":return Pa.jsxDEV(wI,{active:L,range:s,onRequestClick:y},void 0,!1,void 0,this);case"traces":return Pa.jsxDEV(H2,{active:L,session:c,onOpenSession:g},void 0,!1,void 0,this);case"models":return Pa.jsxDEV(DI,{active:L,range:s},void 0,!1,void 0,this);case"providers":return Pa.jsxDEV(HI,{active:L,range:s},void 0,!1,void 0,this);case"costs":return Pa.jsxDEV(CI,{active:L,range:s},void 0,!1,void 0,this);case"tools":return Pa.jsxDEV(S2,{active:L,range:s},void 0,!1,void 0,this);case"frustration":return Pa.jsxDEV(II,{active:L,range:s},void 0,!1,void 0,this);case"projects":return Pa.jsxDEV(zI,{active:L,range:s},void 0,!1,void 0,this);case"gain":return Pa.jsxDEV(MI,{active:L,range:s},void 0,!1,void 0,this);case"spotlight":return Pa.jsxDEV(b2,{active:L,range:s},void 0,!1,void 0,this)}};return Pa.jsxDEV(Pa.Fragment,{children:[Pa.jsxDEV(nI,{section:n,onSectionChange:i,range:s,onRangeChange:d,children:[...b.current].map((x)=>Pa.jsxDEV("div",{hidden:x!==n,children:p(x)},x,!1,void 0,this))},void 0,!1,void 0,this),Pa.jsxDEV(FI,{id:h,onClose:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var V2=U(te(),1),G2=document.getElementById("root");if(!G2)throw Error("missing #root");F2.createRoot(G2).render(V2.jsxDEV(d0,{},void 0,!1,void 0,this));