@mono-agent/session-web 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aggregator.d.ts +22 -2
- package/dist/aggregator.d.ts.map +1 -1
- package/dist/aggregator.js +40 -7
- package/dist/aggregator.js.map +1 -1
- package/dist/history.d.ts.map +1 -1
- package/dist/history.js +9 -4
- package/dist/history.js.map +1 -1
- package/package.json +3 -3
- package/webapp/dist/assets/index-B1Mm-QBC.js +143 -0
- package/webapp/dist/index.html +1 -1
- package/webapp/dist/sw.js +1 -1
- package/webapp/dist/assets/index-ByXpmZqx.js +0 -138
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))r(v);new MutationObserver(v=>{for(const y of v)if(y.type==="childList")for(const N of y.addedNodes)N.tagName==="LINK"&&N.rel==="modulepreload"&&r(N)}).observe(document,{childList:!0,subtree:!0});function p(v){const y={};return v.integrity&&(y.integrity=v.integrity),v.referrerPolicy&&(y.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?y.credentials="include":v.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function r(v){if(v.ep)return;v.ep=!0;const y=p(v);fetch(v.href,y)}})();var Xo={exports:{}},ei={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var n0;function a1(){if(n0)return ei;n0=1;var c=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function p(r,v,y){var N=null;if(y!==void 0&&(N=""+y),v.key!==void 0&&(N=""+v.key),"key"in v){y={};for(var Q in v)Q!=="key"&&(y[Q]=v[Q])}else y=v;return v=y.ref,{$$typeof:c,type:r,key:N,ref:v!==void 0?v:null,props:y}}return ei.Fragment=f,ei.jsx=p,ei.jsxs=p,ei}var i0;function n1(){return i0||(i0=1,Xo.exports=a1()),Xo.exports}var s=n1(),Qo={exports:{}},it={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var u0;function i1(){if(u0)return it;u0=1;var c=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),N=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),R=Symbol.iterator;function lt(d){return d===null||typeof d!="object"?null:(d=R&&d[R]||d["@@iterator"],typeof d=="function"?d:null)}var ot={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,ft={};function St(d,j,U){this.props=d,this.context=j,this.refs=ft,this.updater=U||ot}St.prototype.isReactComponent={},St.prototype.setState=function(d,j){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,j,"setState")},St.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function at(){}at.prototype=St.prototype;function yt(d,j,U){this.props=d,this.context=j,this.refs=ft,this.updater=U||ot}var $=yt.prototype=new at;$.constructor=yt,P($,St.prototype),$.isPureReactComponent=!0;var Tt=Array.isArray;function zt(){}var m={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function et(d,j,U){var q=U.ref;return{$$typeof:c,type:d,key:j,ref:q!==void 0?q:null,props:U}}function dt(d,j){return et(d.type,j,d.props)}function M(d){return typeof d=="object"&&d!==null&&d.$$typeof===c}function Z(d){var j={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(U){return j[U]})}var ht=/\/+/g;function ee(d,j){return typeof d=="object"&&d!==null&&d.key!=null?Z(""+d.key):j.toString(36)}function $t(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(zt,zt):(d.status="pending",d.then(function(j){d.status==="pending"&&(d.status="fulfilled",d.value=j)},function(j){d.status==="pending"&&(d.status="rejected",d.reason=j)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function A(d,j,U,q,Y){var V=typeof d;(V==="undefined"||V==="boolean")&&(d=null);var nt=!1;if(d===null)nt=!0;else switch(V){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(d.$$typeof){case c:case f:nt=!0;break;case K:return nt=d._init,A(nt(d._payload),j,U,q,Y)}}if(nt)return Y=Y(d),nt=q===""?"."+ee(d,0):q,Tt(Y)?(U="",nt!=null&&(U=nt.replace(ht,"$&/")+"/"),A(Y,j,U,"",function(G){return G})):Y!=null&&(M(Y)&&(Y=dt(Y,U+(Y.key==null||d&&d.key===Y.key?"":(""+Y.key).replace(ht,"$&/")+"/")+nt)),j.push(Y)),1;nt=0;var Rt=q===""?".":q+":";if(Tt(d))for(var At=0;At<d.length;At++)q=d[At],V=Rt+ee(q,At),nt+=A(q,j,U,V,Y);else if(At=lt(d),typeof At=="function")for(d=At.call(d),At=0;!(q=d.next()).done;)q=q.value,V=Rt+ee(q,At++),nt+=A(q,j,U,V,Y);else if(V==="object"){if(typeof d.then=="function")return A($t(d),j,U,q,Y);throw j=String(d),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return nt}function k(d,j,U){if(d==null)return d;var q=[],Y=0;return A(d,q,"","",function(V){return j.call(U,V,Y++)}),q}function F(d){if(d._status===-1){var j=d._result;j=j(),j.then(function(U){(d._status===0||d._status===-1)&&(d._status=1,d._result=U)},function(U){(d._status===0||d._status===-1)&&(d._status=2,d._result=U)}),d._status===-1&&(d._status=0,d._result=j)}if(d._status===1)return d._result.default;throw d._result}var ut=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},bt={map:k,forEach:function(d,j,U){k(d,function(){j.apply(this,arguments)},U)},count:function(d){var j=0;return k(d,function(){j++}),j},toArray:function(d){return k(d,function(j){return j})||[]},only:function(d){if(!M(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return it.Activity=L,it.Children=bt,it.Component=St,it.Fragment=p,it.Profiler=v,it.PureComponent=yt,it.StrictMode=r,it.Suspense=B,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,it.__COMPILER_RUNTIME={__proto__:null,c:function(d){return m.H.useMemoCache(d)}},it.cache=function(d){return function(){return d.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(d,j,U){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var q=P({},d.props),Y=d.key;if(j!=null)for(V in j.key!==void 0&&(Y=""+j.key),j)!H.call(j,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&j.ref===void 0||(q[V]=j[V]);var V=arguments.length-2;if(V===1)q.children=U;else if(1<V){for(var nt=Array(V),Rt=0;Rt<V;Rt++)nt[Rt]=arguments[Rt+2];q.children=nt}return et(d.type,Y,q)},it.createContext=function(d){return d={$$typeof:N,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:y,_context:d},d},it.createElement=function(d,j,U){var q,Y={},V=null;if(j!=null)for(q in j.key!==void 0&&(V=""+j.key),j)H.call(j,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(Y[q]=j[q]);var nt=arguments.length-2;if(nt===1)Y.children=U;else if(1<nt){for(var Rt=Array(nt),At=0;At<nt;At++)Rt[At]=arguments[At+2];Y.children=Rt}if(d&&d.defaultProps)for(q in nt=d.defaultProps,nt)Y[q]===void 0&&(Y[q]=nt[q]);return et(d,V,Y)},it.createRef=function(){return{current:null}},it.forwardRef=function(d){return{$$typeof:Q,render:d}},it.isValidElement=M,it.lazy=function(d){return{$$typeof:K,_payload:{_status:-1,_result:d},_init:F}},it.memo=function(d,j){return{$$typeof:z,type:d,compare:j===void 0?null:j}},it.startTransition=function(d){var j=m.T,U={};m.T=U;try{var q=d(),Y=m.S;Y!==null&&Y(U,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(zt,ut)}catch(V){ut(V)}finally{j!==null&&U.types!==null&&(j.types=U.types),m.T=j}},it.unstable_useCacheRefresh=function(){return m.H.useCacheRefresh()},it.use=function(d){return m.H.use(d)},it.useActionState=function(d,j,U){return m.H.useActionState(d,j,U)},it.useCallback=function(d,j){return m.H.useCallback(d,j)},it.useContext=function(d){return m.H.useContext(d)},it.useDebugValue=function(){},it.useDeferredValue=function(d,j){return m.H.useDeferredValue(d,j)},it.useEffect=function(d,j){return m.H.useEffect(d,j)},it.useEffectEvent=function(d){return m.H.useEffectEvent(d)},it.useId=function(){return m.H.useId()},it.useImperativeHandle=function(d,j,U){return m.H.useImperativeHandle(d,j,U)},it.useInsertionEffect=function(d,j){return m.H.useInsertionEffect(d,j)},it.useLayoutEffect=function(d,j){return m.H.useLayoutEffect(d,j)},it.useMemo=function(d,j){return m.H.useMemo(d,j)},it.useOptimistic=function(d,j){return m.H.useOptimistic(d,j)},it.useReducer=function(d,j,U){return m.H.useReducer(d,j,U)},it.useRef=function(d){return m.H.useRef(d)},it.useState=function(d){return m.H.useState(d)},it.useSyncExternalStore=function(d,j,U){return m.H.useSyncExternalStore(d,j,U)},it.useTransition=function(){return m.H.useTransition()},it.version="19.2.7",it}var c0;function Po(){return c0||(c0=1,Qo.exports=i1()),Qo.exports}var I=Po(),Ko={exports:{}},li={},Vo={exports:{}},Jo={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var o0;function u1(){return o0||(o0=1,(function(c){function f(A,k){var F=A.length;A.push(k);t:for(;0<F;){var ut=F-1>>>1,bt=A[ut];if(0<v(bt,k))A[ut]=k,A[F]=bt,F=ut;else break t}}function p(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var k=A[0],F=A.pop();if(F!==k){A[0]=F;t:for(var ut=0,bt=A.length,d=bt>>>1;ut<d;){var j=2*(ut+1)-1,U=A[j],q=j+1,Y=A[q];if(0>v(U,F))q<bt&&0>v(Y,U)?(A[ut]=Y,A[q]=F,ut=q):(A[ut]=U,A[j]=F,ut=j);else if(q<bt&&0>v(Y,F))A[ut]=Y,A[q]=F,ut=q;else break t}}return k}function v(A,k){var F=A.sortIndex-k.sortIndex;return F!==0?F:A.id-k.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var N=Date,Q=N.now();c.unstable_now=function(){return N.now()-Q}}var B=[],z=[],K=1,L=null,R=3,lt=!1,ot=!1,P=!1,ft=!1,St=typeof setTimeout=="function"?setTimeout:null,at=typeof clearTimeout=="function"?clearTimeout:null,yt=typeof setImmediate<"u"?setImmediate:null;function $(A){for(var k=p(z);k!==null;){if(k.callback===null)r(z);else if(k.startTime<=A)r(z),k.sortIndex=k.expirationTime,f(B,k);else break;k=p(z)}}function Tt(A){if(P=!1,$(A),!ot)if(p(B)!==null)ot=!0,zt||(zt=!0,Z());else{var k=p(z);k!==null&&$t(Tt,k.startTime-A)}}var zt=!1,m=-1,H=5,et=-1;function dt(){return ft?!0:!(c.unstable_now()-et<H)}function M(){if(ft=!1,zt){var A=c.unstable_now();et=A;var k=!0;try{t:{ot=!1,P&&(P=!1,at(m),m=-1),lt=!0;var F=R;try{e:{for($(A),L=p(B);L!==null&&!(L.expirationTime>A&&dt());){var ut=L.callback;if(typeof ut=="function"){L.callback=null,R=L.priorityLevel;var bt=ut(L.expirationTime<=A);if(A=c.unstable_now(),typeof bt=="function"){L.callback=bt,$(A),k=!0;break e}L===p(B)&&r(B),$(A)}else r(B);L=p(B)}if(L!==null)k=!0;else{var d=p(z);d!==null&&$t(Tt,d.startTime-A),k=!1}}break t}finally{L=null,R=F,lt=!1}k=void 0}}finally{k?Z():zt=!1}}}var Z;if(typeof yt=="function")Z=function(){yt(M)};else if(typeof MessageChannel<"u"){var ht=new MessageChannel,ee=ht.port2;ht.port1.onmessage=M,Z=function(){ee.postMessage(null)}}else Z=function(){St(M,0)};function $t(A,k){m=St(function(){A(c.unstable_now())},k)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(A){A.callback=null},c.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<A?Math.floor(1e3/A):5},c.unstable_getCurrentPriorityLevel=function(){return R},c.unstable_next=function(A){switch(R){case 1:case 2:case 3:var k=3;break;default:k=R}var F=R;R=k;try{return A()}finally{R=F}},c.unstable_requestPaint=function(){ft=!0},c.unstable_runWithPriority=function(A,k){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var F=R;R=A;try{return k()}finally{R=F}},c.unstable_scheduleCallback=function(A,k,F){var ut=c.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ut+F:ut):F=ut,A){case 1:var bt=-1;break;case 2:bt=250;break;case 5:bt=1073741823;break;case 4:bt=1e4;break;default:bt=5e3}return bt=F+bt,A={id:K++,callback:k,priorityLevel:A,startTime:F,expirationTime:bt,sortIndex:-1},F>ut?(A.sortIndex=F,f(z,A),p(B)===null&&A===p(z)&&(P?(at(m),m=-1):P=!0,$t(Tt,F-ut))):(A.sortIndex=bt,f(B,A),ot||lt||(ot=!0,zt||(zt=!0,Z()))),A},c.unstable_shouldYield=dt,c.unstable_wrapCallback=function(A){var k=R;return function(){var F=R;R=k;try{return A.apply(this,arguments)}finally{R=F}}}})(Jo)),Jo}var s0;function c1(){return s0||(s0=1,Vo.exports=u1()),Vo.exports}var Fo={exports:{}},re={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var r0;function o1(){if(r0)return re;r0=1;var c=Po();function f(B){var z="https://react.dev/errors/"+B;if(1<arguments.length){z+="?args[]="+encodeURIComponent(arguments[1]);for(var K=2;K<arguments.length;K++)z+="&args[]="+encodeURIComponent(arguments[K])}return"Minified React error #"+B+"; visit "+z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(){}var r={d:{f:p,r:function(){throw Error(f(522))},D:p,C:p,L:p,m:p,X:p,S:p,M:p},p:0,findDOMNode:null},v=Symbol.for("react.portal");function y(B,z,K){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:L==null?null:""+L,children:B,containerInfo:z,implementation:K}}var N=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(B,z){if(B==="font")return"";if(typeof z=="string")return z==="use-credentials"?z:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,re.createPortal=function(B,z){var K=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)throw Error(f(299));return y(B,z,null,K)},re.flushSync=function(B){var z=N.T,K=r.p;try{if(N.T=null,r.p=2,B)return B()}finally{N.T=z,r.p=K,r.d.f()}},re.preconnect=function(B,z){typeof B=="string"&&(z?(z=z.crossOrigin,z=typeof z=="string"?z==="use-credentials"?z:"":void 0):z=null,r.d.C(B,z))},re.prefetchDNS=function(B){typeof B=="string"&&r.d.D(B)},re.preinit=function(B,z){if(typeof B=="string"&&z&&typeof z.as=="string"){var K=z.as,L=Q(K,z.crossOrigin),R=typeof z.integrity=="string"?z.integrity:void 0,lt=typeof z.fetchPriority=="string"?z.fetchPriority:void 0;K==="style"?r.d.S(B,typeof z.precedence=="string"?z.precedence:void 0,{crossOrigin:L,integrity:R,fetchPriority:lt}):K==="script"&&r.d.X(B,{crossOrigin:L,integrity:R,fetchPriority:lt,nonce:typeof z.nonce=="string"?z.nonce:void 0})}},re.preinitModule=function(B,z){if(typeof B=="string")if(typeof z=="object"&&z!==null){if(z.as==null||z.as==="script"){var K=Q(z.as,z.crossOrigin);r.d.M(B,{crossOrigin:K,integrity:typeof z.integrity=="string"?z.integrity:void 0,nonce:typeof z.nonce=="string"?z.nonce:void 0})}}else z==null&&r.d.M(B)},re.preload=function(B,z){if(typeof B=="string"&&typeof z=="object"&&z!==null&&typeof z.as=="string"){var K=z.as,L=Q(K,z.crossOrigin);r.d.L(B,K,{crossOrigin:L,integrity:typeof z.integrity=="string"?z.integrity:void 0,nonce:typeof z.nonce=="string"?z.nonce:void 0,type:typeof z.type=="string"?z.type:void 0,fetchPriority:typeof z.fetchPriority=="string"?z.fetchPriority:void 0,referrerPolicy:typeof z.referrerPolicy=="string"?z.referrerPolicy:void 0,imageSrcSet:typeof z.imageSrcSet=="string"?z.imageSrcSet:void 0,imageSizes:typeof z.imageSizes=="string"?z.imageSizes:void 0,media:typeof z.media=="string"?z.media:void 0})}},re.preloadModule=function(B,z){if(typeof B=="string")if(z){var K=Q(z.as,z.crossOrigin);r.d.m(B,{as:typeof z.as=="string"&&z.as!=="script"?z.as:void 0,crossOrigin:K,integrity:typeof z.integrity=="string"?z.integrity:void 0})}else r.d.m(B)},re.requestFormReset=function(B){r.d.r(B)},re.unstable_batchedUpdates=function(B,z){return B(z)},re.useFormState=function(B,z,K){return N.H.useFormState(B,z,K)},re.useFormStatus=function(){return N.H.useHostTransitionStatus()},re.version="19.2.7",re}var f0;function s1(){if(f0)return Fo.exports;f0=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(f){console.error(f)}}return c(),Fo.exports=o1(),Fo.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var d0;function r1(){if(d0)return li;d0=1;var c=c1(),f=Po(),p=s1();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function v(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function N(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Q(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function B(t){if(y(t)!==t)throw Error(r(188))}function z(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return B(n),t;if(i===a)return B(n),e;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,o=n.child;o;){if(o===l){u=!0,l=n,a=i;break}if(o===a){u=!0,a=n,l=i;break}o=o.sibling}if(!u){for(o=i.child;o;){if(o===l){u=!0,l=i,a=n;break}if(o===a){u=!0,a=i,l=n;break}o=o.sibling}if(!u)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function K(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=K(t),e!==null)return e;t=t.sibling}return null}var L=Object.assign,R=Symbol.for("react.element"),lt=Symbol.for("react.transitional.element"),ot=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),ft=Symbol.for("react.strict_mode"),St=Symbol.for("react.profiler"),at=Symbol.for("react.consumer"),yt=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Tt=Symbol.for("react.suspense"),zt=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),et=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function Z(t){return t===null||typeof t!="object"?null:(t=M&&t[M]||t["@@iterator"],typeof t=="function"?t:null)}var ht=Symbol.for("react.client.reference");function ee(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case P:return"Fragment";case St:return"Profiler";case ft:return"StrictMode";case Tt:return"Suspense";case zt:return"SuspenseList";case et:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case ot:return"Portal";case yt:return t.displayName||"Context";case at:return(t._context.displayName||"Context")+".Consumer";case $:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case m:return e=t.displayName||null,e!==null?e:ee(t.type)||"Memo";case H:e=t._payload,t=t._init;try{return ee(t(e))}catch{}}return null}var $t=Array.isArray,A=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=p.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ut=[],bt=-1;function d(t){return{current:t}}function j(t){0>bt||(t.current=ut[bt],ut[bt]=null,bt--)}function U(t,e){bt++,ut[bt]=t.current,t.current=e}var q=d(null),Y=d(null),V=d(null),nt=d(null);function Rt(t,e){switch(U(V,e),U(Y,t),U(q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?_d(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=_d(e),t=Md(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(q),U(q,t)}function At(){j(q),j(Y),j(V)}function G(t){t.memoizedState!==null&&U(nt,t);var e=q.current,l=Md(e,t.type);e!==l&&(U(Y,t),U(q,l))}function Mt(t){Y.current===t&&(j(q),j(Y)),nt.current===t&&(j(nt),Wn._currentValue=F)}var Zt,nl;function ze(t){if(Zt===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Zt=e&&e[1]||"",nl=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Zt+t+nl}var we=!1;function me(t,e){if(!t||we)return"";we=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(E){var T=E}Reflect.construct(t,[],C)}else{try{C.call()}catch(E){T=E}t.call(C.prototype)}}else{try{throw Error()}catch(E){T=E}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(E){if(E&&T&&typeof E.stack=="string")return[E.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],o=i[1];if(u&&o){var h=u.split(`
|
|
44
|
-
`),S=o.split(`
|
|
45
|
-
`);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===S.length)for(a=h.length-1,n=S.length-1;1<=a&&0<=n&&h[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==S[n]){var _=`
|
|
46
|
-
`+h[a].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=a&&0<=n);break}}}finally{we=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ze(l):""}function ba(t,e){switch(t.tag){case 26:case 27:case 5:return ze(t.type);case 16:return ze("Lazy");case 13:return t.child!==e&&e!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return me(t.type,!1);case 11:return me(t.type.render,!1);case 1:return me(t.type,!0);case 31:return ze("Activity");default:return""}}function Be(t){try{var e="",l=null;do e+=ba(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var El=Object.prototype.hasOwnProperty,Wl=c.unstable_scheduleCallback,w=c.unstable_cancelCallback,Nt=c.unstable_shouldYield,Yt=c.unstable_requestPaint,Qt=c.unstable_now,Ke=c.unstable_getCurrentPriorityLevel,xa=c.unstable_ImmediatePriority,ui=c.unstable_UserBlockingPriority,ci=c.unstable_NormalPriority,k0=c.unstable_LowPriority,us=c.unstable_IdlePriority,q0=c.log,L0=c.unstable_setDisableYieldValue,sn=null,Ee=null;function jl(t){if(typeof q0=="function"&&L0(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(sn,t)}catch{}}var je=Math.clz32?Math.clz32:Z0,Y0=Math.log,G0=Math.LN2;function Z0(t){return t>>>=0,t===0?32:31-(Y0(t)/G0|0)|0}var oi=256,si=262144,ri=4194304;function Il(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function fi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,u=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?n=Il(a):(u&=o,u!==0?n=Il(u):l||(l=o&~t,l!==0&&(n=Il(l))))):(o=a&~i,o!==0?n=Il(o):u!==0?n=Il(u):l||(l=a&~t,l!==0&&(n=Il(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function rn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function X0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cs(){var t=ri;return ri<<=1,(ri&62914560)===0&&(ri=4194304),t}function Ru(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function fn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Q0(t,e,l,a,n,i){var u=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,h=t.expirationTimes,S=t.hiddenUpdates;for(l=u&~l;0<l;){var _=31-je(l),C=1<<_;o[_]=0,h[_]=-1;var T=S[_];if(T!==null)for(S[_]=null,_=0;_<T.length;_++){var E=T[_];E!==null&&(E.lane&=-536870913)}l&=~C}a!==0&&os(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(u&~e))}function os(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-je(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function ss(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-je(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function rs(t,e){var l=e&-e;return l=(l&42)!==0?1:Du(l),(l&(t.suspendedLanes|e))!==0?0:l}function Du(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function wu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function fs(){var t=k.p;return t!==0?t:(t=window.event,t===void 0?32:Wd(t.type))}function ds(t,e){var l=k.p;try{return k.p=t,e()}finally{k.p=l}}var Al=Math.random().toString(36).slice(2),ie="__reactFiber$"+Al,ge="__reactProps$"+Al,Sa="__reactContainer$"+Al,Bu="__reactEvents$"+Al,K0="__reactListeners$"+Al,V0="__reactHandles$"+Al,hs="__reactResources$"+Al,dn="__reactMarker$"+Al;function Uu(t){delete t[ie],delete t[ge],delete t[Bu],delete t[K0],delete t[V0]}function Ta(t){var e=t[ie];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Sa]||l[ie]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Ud(t);t!==null;){if(l=t[ie])return l;t=Ud(t)}return e}t=l,l=t.parentNode}return null}function za(t){if(t=t[ie]||t[Sa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function hn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ea(t){var e=t[hs];return e||(e=t[hs]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[dn]=!0}var ms=new Set,gs={};function Pl(t,e){ja(t,e),ja(t+"Capture",e)}function ja(t,e){for(gs[t]=e,t=0;t<e.length;t++)ms.add(e[t])}var J0=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]*$"),ys={},ps={};function F0(t){return El.call(ps,t)?!0:El.call(ys,t)?!1:J0.test(t)?ps[t]=!0:(ys[t]=!0,!1)}function di(t,e,l){if(F0(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function hi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function il(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Ue(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function vs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $0(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){if(!t._valueTracker){var e=vs(t)?"checked":"value";t._valueTracker=$0(t,e,""+t[e])}}function bs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=vs(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function mi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var W0=/[\n"\\]/g;function He(t){return t.replace(W0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Nu(t,e,l,a,n,i,u,o){t.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?t.type=u:t.removeAttribute("type"),e!=null?u==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ue(e)):t.value!==""+Ue(e)&&(t.value=""+Ue(e)):u!=="submit"&&u!=="reset"||t.removeAttribute("value"),e!=null?ku(t,u,Ue(e)):l!=null?ku(t,u,Ue(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+Ue(o):t.removeAttribute("name")}function xs(t,e,l,a,n,i,u,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Hu(t);return}l=l!=null?""+Ue(l):"",e=e!=null?""+Ue(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.name=u),Hu(t)}function ku(t,e,l){e==="number"&&mi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Aa(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ue(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Ss(t,e,l){if(e!=null&&(e=""+Ue(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ue(l):""}function Ts(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if($t(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ue(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Hu(t)}function _a(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var I0=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(" "));function zs(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||I0.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Es(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&zs(t,n,a)}else for(var i in e)e.hasOwnProperty(i)&&zs(t,i,e[i])}function qu(t){if(t.indexOf("-")===-1)return!1;switch(t){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}}var P0=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"]]),th=/^[\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;function gi(t){return th.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ul(){}var Lu=null;function Yu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ma=null,Oa=null;function js(t){var e=za(t);if(e&&(t=e.stateNode)){var l=t[ge]||null;t:switch(t=e.stateNode,e.type){case"input":if(Nu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+He(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[ge]||null;if(!n)throw Error(r(90));Nu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&bs(a)}break t;case"textarea":Ss(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Aa(t,!!l.multiple,e,!1)}}}var Gu=!1;function As(t,e,l){if(Gu)return t(e,l);Gu=!0;try{var a=t(e);return a}finally{if(Gu=!1,(Ma!==null||Oa!==null)&&(lu(),Ma&&(e=Ma,t=Oa,Oa=Ma=null,js(e),t)))for(e=0;e<t.length;e++)js(t[e])}}function mn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[ge]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var cl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zu=!1;if(cl)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{Zu=!1}var _l=null,Xu=null,yi=null;function _s(){if(yi)return yi;var t,e=Xu,l=e.length,a,n="value"in _l?_l.value:_l.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var u=l-t;for(a=1;a<=u&&e[l-a]===n[i-a];a++);return yi=n.slice(t,1<a?1-a:void 0)}function pi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function vi(){return!0}function Ms(){return!1}function ye(t){function e(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?vi:Ms,this.isPropagationStopped=Ms,this}return L(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),e}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bi=ye(ta),yn=L({},ta,{view:0,detail:0}),eh=ye(yn),Qu,Ku,pn,xi=L({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ju,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==pn&&(pn&&t.type==="mousemove"?(Qu=t.screenX-pn.screenX,Ku=t.screenY-pn.screenY):Ku=Qu=0,pn=t),Qu)},movementY:function(t){return"movementY"in t?t.movementY:Ku}}),Os=ye(xi),lh=L({},xi,{dataTransfer:0}),ah=ye(lh),nh=L({},yn,{relatedTarget:0}),Vu=ye(nh),ih=L({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=ye(ih),ch=L({},ta,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),oh=ye(ch),sh=L({},ta,{data:0}),Cs=ye(sh),rh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fh={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"},dh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hh(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=dh[t])?!!e[t]:!1}function Ju(){return hh}var mh=L({},yn,{key:function(t){if(t.key){var e=rh[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=pi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?fh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ju,charCode:function(t){return t.type==="keypress"?pi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?pi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gh=ye(mh),yh=L({},xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rs=ye(yh),ph=L({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ju}),vh=ye(ph),bh=L({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),xh=ye(bh),Sh=L({},xi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Th=ye(Sh),zh=L({},ta,{newState:0,oldState:0}),Eh=ye(zh),jh=[9,13,27,32],Fu=cl&&"CompositionEvent"in window,vn=null;cl&&"documentMode"in document&&(vn=document.documentMode);var Ah=cl&&"TextEvent"in window&&!vn,Ds=cl&&(!Fu||vn&&8<vn&&11>=vn),ws=" ",Bs=!1;function Us(t,e){switch(t){case"keyup":return jh.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ca=!1;function _h(t,e){switch(t){case"compositionend":return Hs(e);case"keypress":return e.which!==32?null:(Bs=!0,ws);case"textInput":return t=e.data,t===ws&&Bs?null:t;default:return null}}function Mh(t,e){if(Ca)return t==="compositionend"||!Fu&&Us(t,e)?(t=_s(),yi=Xu=_l=null,Ca=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Ds&&e.locale!=="ko"?null:e.data;default:return null}}var Oh={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};function Ns(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Oh[t.type]:e==="textarea"}function ks(t,e,l,a){Ma?Oa?Oa.push(a):Oa=[a]:Ma=a,e=su(e,"onChange"),0<e.length&&(l=new bi("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var bn=null,xn=null;function Ch(t){Sd(t,0)}function Si(t){var e=hn(t);if(bs(e))return t}function qs(t,e){if(t==="change")return e}var Ls=!1;if(cl){var $u;if(cl){var Wu="oninput"in document;if(!Wu){var Ys=document.createElement("div");Ys.setAttribute("oninput","return;"),Wu=typeof Ys.oninput=="function"}$u=Wu}else $u=!1;Ls=$u&&(!document.documentMode||9<document.documentMode)}function Gs(){bn&&(bn.detachEvent("onpropertychange",Zs),xn=bn=null)}function Zs(t){if(t.propertyName==="value"&&Si(xn)){var e=[];ks(e,xn,t,Yu(t)),As(Ch,e)}}function Rh(t,e,l){t==="focusin"?(Gs(),bn=e,xn=l,bn.attachEvent("onpropertychange",Zs)):t==="focusout"&&Gs()}function Dh(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Si(xn)}function wh(t,e){if(t==="click")return Si(e)}function Bh(t,e){if(t==="input"||t==="change")return Si(e)}function Uh(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:Uh;function Sn(t,e){if(Ae(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!El.call(e,n)||!Ae(t[n],e[n]))return!1}return!0}function Xs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Qs(t,e){var l=Xs(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Xs(l)}}function Ks(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ks(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Vs(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=mi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=mi(t.document)}return e}function Iu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Hh=cl&&"documentMode"in document&&11>=document.documentMode,Ra=null,Pu=null,Tn=null,tc=!1;function Js(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;tc||Ra==null||Ra!==mi(a)||(a=Ra,"selectionStart"in a&&Iu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Tn&&Sn(Tn,a)||(Tn=a,a=su(Pu,"onSelect"),0<a.length&&(e=new bi("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Ra)))}function ea(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Da={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},ec={},Fs={};cl&&(Fs=document.createElement("div").style,"AnimationEvent"in window||(delete Da.animationend.animation,delete Da.animationiteration.animation,delete Da.animationstart.animation),"TransitionEvent"in window||delete Da.transitionend.transition);function la(t){if(ec[t])return ec[t];if(!Da[t])return t;var e=Da[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Fs)return ec[t]=e[l];return t}var $s=la("animationend"),Ws=la("animationiteration"),Is=la("animationstart"),Nh=la("transitionrun"),kh=la("transitionstart"),qh=la("transitioncancel"),Ps=la("transitionend"),tr=new Map,lc="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(" ");lc.push("scrollEnd");function Ve(t,e){tr.set(t,e),Pl(e,[t])}var Ti=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ne=[],wa=0,ac=0;function zi(){for(var t=wa,e=ac=wa=0;e<t;){var l=Ne[e];Ne[e++]=null;var a=Ne[e];Ne[e++]=null;var n=Ne[e];Ne[e++]=null;var i=Ne[e];if(Ne[e++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&er(l,n,i)}}function Ei(t,e,l,a){Ne[wa++]=t,Ne[wa++]=e,Ne[wa++]=l,Ne[wa++]=a,ac|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function nc(t,e,l,a){return Ei(t,e,l,a),ji(t)}function aa(t,e){return Ei(t,null,null,e),ji(t)}function er(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-je(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function ji(t){if(50<Xn)throw Xn=0,mo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ba={};function Lh(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,l,a){return new Lh(t,e,l,a)}function ic(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ol(t,e){var l=t.alternate;return l===null?(l=_e(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function lr(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ai(t,e,l,a,n,i){var u=0;if(a=t,typeof t=="function")ic(t)&&(u=1);else if(typeof t=="string")u=Qm(t,l,q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case et:return t=_e(31,l,e,n),t.elementType=et,t.lanes=i,t;case P:return na(l.children,n,i,e);case ft:u=8,n|=24;break;case St:return t=_e(12,l,e,n|2),t.elementType=St,t.lanes=i,t;case Tt:return t=_e(13,l,e,n),t.elementType=Tt,t.lanes=i,t;case zt:return t=_e(19,l,e,n),t.elementType=zt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case yt:u=10;break t;case at:u=9;break t;case $:u=11;break t;case m:u=14;break t;case H:u=16,a=null;break t}u=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=_e(u,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function na(t,e,l,a){return t=_e(7,t,a,e),t.lanes=l,t}function uc(t,e,l){return t=_e(6,t,null,e),t.lanes=l,t}function ar(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function cc(t,e,l){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var nr=new WeakMap;function ke(t,e){if(typeof t=="object"&&t!==null){var l=nr.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Be(e)},nr.set(t,e),e)}return{value:t,source:e,stack:Be(e)}}var Ua=[],Ha=0,_i=null,zn=0,qe=[],Le=0,Ml=null,$e=1,We="";function sl(t,e){Ua[Ha++]=zn,Ua[Ha++]=_i,_i=t,zn=e}function ir(t,e,l){qe[Le++]=$e,qe[Le++]=We,qe[Le++]=Ml,Ml=t;var a=$e;t=We;var n=32-je(a)-1;a&=~(1<<n),l+=1;var i=32-je(e)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,$e=1<<32-je(e)+n|l<<n|a,We=i+t}else $e=1<<i|l<<n|a,We=t}function oc(t){t.return!==null&&(sl(t,1),ir(t,1,0))}function sc(t){for(;t===_i;)_i=Ua[--Ha],Ua[Ha]=null,zn=Ua[--Ha],Ua[Ha]=null;for(;t===Ml;)Ml=qe[--Le],qe[Le]=null,We=qe[--Le],qe[Le]=null,$e=qe[--Le],qe[Le]=null}function ur(t,e){qe[Le++]=$e,qe[Le++]=We,qe[Le++]=Ml,$e=e.id,We=e.overflow,Ml=t}var ue=null,kt=null,xt=!1,Ol=null,Ye=!1,rc=Error(r(519));function Cl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw En(ke(e,t)),rc}function cr(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[ie]=t,e[ge]=a,l){case"dialog":gt("cancel",e),gt("close",e);break;case"iframe":case"object":case"embed":gt("load",e);break;case"video":case"audio":for(l=0;l<Kn.length;l++)gt(Kn[l],e);break;case"source":gt("error",e);break;case"img":case"image":case"link":gt("error",e),gt("load",e);break;case"details":gt("toggle",e);break;case"input":gt("invalid",e),xs(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":gt("invalid",e);break;case"textarea":gt("invalid",e),Ts(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||jd(e.textContent,l)?(a.popover!=null&&(gt("beforetoggle",e),gt("toggle",e)),a.onScroll!=null&>("scroll",e),a.onScrollEnd!=null&>("scrollend",e),a.onClick!=null&&(e.onclick=ul),e=!0):e=!1,e||Cl(t,!0)}function or(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 31:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ue=ue.return}}function Na(t){if(t!==ue)return!1;if(!xt)return or(t),xt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Oo(t.type,t.memoizedProps)),l=!l),l&&kt&&Cl(t),or(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));kt=Bd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));kt=Bd(t)}else e===27?(e=kt,Xl(t.type)?(t=Bo,Bo=null,kt=t):kt=e):kt=ue?Ze(t.stateNode.nextSibling):null;return!0}function ia(){kt=ue=null,xt=!1}function fc(){var t=Ol;return t!==null&&(xe===null?xe=t:xe.push.apply(xe,t),Ol=null),t}function En(t){Ol===null?Ol=[t]:Ol.push(t)}var dc=d(null),ua=null,rl=null;function Rl(t,e,l){U(dc,e._currentValue),e._currentValue=l}function fl(t){t._currentValue=dc.current,j(dc)}function hc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function mc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;t:for(;i!==null;){var o=i;i=n;for(var h=0;h<e.length;h++)if(o.context===e[h]){i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),hc(i.return,l,t),a||(u=null);break t}i=o.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(r(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),hc(u,l,t),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===t){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function ka(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(r(387));if(u=u.memoizedProps,u!==null){var o=n.type;Ae(n.pendingProps.value,u.value)||(t!==null?t.push(o):t=[o])}}else if(n===nt.current){if(u=n.alternate,u===null)throw Error(r(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Wn):t=[Wn])}n=n.return}t!==null&&mc(e,t,l,a),e.flags|=262144}function Mi(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ca(t){ua=t,rl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ce(t){return sr(ua,t)}function Oi(t,e){return ua===null&&ca(t),sr(t,e)}function sr(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},rl===null){if(t===null)throw Error(r(308));rl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else rl=rl.next=e;return l}var Yh=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Gh=c.unstable_scheduleCallback,Zh=c.unstable_NormalPriority,Wt={$$typeof:yt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gc(){return{controller:new Yh,data:new Map,refCount:0}}function jn(t){t.refCount--,t.refCount===0&&Gh(Zh,function(){t.controller.abort()})}var An=null,yc=0,qa=0,La=null;function Xh(t,e){if(An===null){var l=An=[];yc=0,qa=xo(),La={status:"pending",value:void 0,then:function(a){l.push(a)}}}return yc++,e.then(rr,rr),e}function rr(){if(--yc===0&&An!==null){La!==null&&(La.status="fulfilled");var t=An;An=null,qa=0,La=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Qh(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var fr=A.S;A.S=function(t,e){Ff=Qt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Xh(t,e),fr!==null&&fr(t,e)};var oa=d(null);function pc(){var t=oa.current;return t!==null?t:Ut.pooledCache}function Ci(t,e){e===null?U(oa,oa.current):U(oa,e.pool)}function dr(){var t=pc();return t===null?null:{parent:Wt._currentValue,pool:t}}var Ya=Error(r(460)),vc=Error(r(474)),Ri=Error(r(542)),Di={then:function(){}};function hr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function mr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(ul,ul),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,yr(t),t;default:if(typeof e.status=="string")e.then(ul,ul);else{if(t=Ut,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,yr(t),t}throw ra=e,Ya}}function sa(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ra=l,Ya):l}}var ra=null;function gr(){if(ra===null)throw Error(r(459));var t=ra;return ra=null,t}function yr(t){if(t===Ya||t===Ri)throw Error(r(483))}var Ga=null,_n=0;function wi(t){var e=_n;return _n+=1,Ga===null&&(Ga=[]),mr(Ga,t,e)}function Mn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Bi(t,e){throw e.$$typeof===R?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function pr(t){function e(b,g){if(t){var x=b.deletions;x===null?(b.deletions=[g],b.flags|=16):x.push(g)}}function l(b,g){if(!t)return null;for(;g!==null;)e(b,g),g=g.sibling;return null}function a(b){for(var g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function n(b,g){return b=ol(b,g),b.index=0,b.sibling=null,b}function i(b,g,x){return b.index=x,t?(x=b.alternate,x!==null?(x=x.index,x<g?(b.flags|=67108866,g):x):(b.flags|=67108866,g)):(b.flags|=1048576,g)}function u(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function o(b,g,x,O){return g===null||g.tag!==6?(g=uc(x,b.mode,O),g.return=b,g):(g=n(g,x),g.return=b,g)}function h(b,g,x,O){var W=x.type;return W===P?_(b,g,x.props.children,O,x.key):g!==null&&(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===H&&sa(W)===g.type)?(g=n(g,x.props),Mn(g,x),g.return=b,g):(g=Ai(x.type,x.key,x.props,null,b.mode,O),Mn(g,x),g.return=b,g)}function S(b,g,x,O){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=cc(x,b.mode,O),g.return=b,g):(g=n(g,x.children||[]),g.return=b,g)}function _(b,g,x,O,W){return g===null||g.tag!==7?(g=na(x,b.mode,O,W),g.return=b,g):(g=n(g,x),g.return=b,g)}function C(b,g,x){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=uc(""+g,b.mode,x),g.return=b,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case lt:return x=Ai(g.type,g.key,g.props,null,b.mode,x),Mn(x,g),x.return=b,x;case ot:return g=cc(g,b.mode,x),g.return=b,g;case H:return g=sa(g),C(b,g,x)}if($t(g)||Z(g))return g=na(g,b.mode,x,null),g.return=b,g;if(typeof g.then=="function")return C(b,wi(g),x);if(g.$$typeof===yt)return C(b,Oi(b,g),x);Bi(b,g)}return null}function T(b,g,x,O){var W=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return W!==null?null:o(b,g,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case lt:return x.key===W?h(b,g,x,O):null;case ot:return x.key===W?S(b,g,x,O):null;case H:return x=sa(x),T(b,g,x,O)}if($t(x)||Z(x))return W!==null?null:_(b,g,x,O,null);if(typeof x.then=="function")return T(b,g,wi(x),O);if(x.$$typeof===yt)return T(b,g,Oi(b,x),O);Bi(b,x)}return null}function E(b,g,x,O,W){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return b=b.get(x)||null,o(g,b,""+O,W);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case lt:return b=b.get(O.key===null?x:O.key)||null,h(g,b,O,W);case ot:return b=b.get(O.key===null?x:O.key)||null,S(g,b,O,W);case H:return O=sa(O),E(b,g,x,O,W)}if($t(O)||Z(O))return b=b.get(x)||null,_(g,b,O,W,null);if(typeof O.then=="function")return E(b,g,x,wi(O),W);if(O.$$typeof===yt)return E(b,g,x,Oi(g,O),W);Bi(g,O)}return null}function X(b,g,x,O){for(var W=null,Et=null,J=g,st=g=0,vt=null;J!==null&&st<x.length;st++){J.index>st?(vt=J,J=null):vt=J.sibling;var jt=T(b,J,x[st],O);if(jt===null){J===null&&(J=vt);break}t&&J&&jt.alternate===null&&e(b,J),g=i(jt,g,st),Et===null?W=jt:Et.sibling=jt,Et=jt,J=vt}if(st===x.length)return l(b,J),xt&&sl(b,st),W;if(J===null){for(;st<x.length;st++)J=C(b,x[st],O),J!==null&&(g=i(J,g,st),Et===null?W=J:Et.sibling=J,Et=J);return xt&&sl(b,st),W}for(J=a(J);st<x.length;st++)vt=E(J,b,st,x[st],O),vt!==null&&(t&&vt.alternate!==null&&J.delete(vt.key===null?st:vt.key),g=i(vt,g,st),Et===null?W=vt:Et.sibling=vt,Et=vt);return t&&J.forEach(function(Fl){return e(b,Fl)}),xt&&sl(b,st),W}function tt(b,g,x,O){if(x==null)throw Error(r(151));for(var W=null,Et=null,J=g,st=g=0,vt=null,jt=x.next();J!==null&&!jt.done;st++,jt=x.next()){J.index>st?(vt=J,J=null):vt=J.sibling;var Fl=T(b,J,jt.value,O);if(Fl===null){J===null&&(J=vt);break}t&&J&&Fl.alternate===null&&e(b,J),g=i(Fl,g,st),Et===null?W=Fl:Et.sibling=Fl,Et=Fl,J=vt}if(jt.done)return l(b,J),xt&&sl(b,st),W;if(J===null){for(;!jt.done;st++,jt=x.next())jt=C(b,jt.value,O),jt!==null&&(g=i(jt,g,st),Et===null?W=jt:Et.sibling=jt,Et=jt);return xt&&sl(b,st),W}for(J=a(J);!jt.done;st++,jt=x.next())jt=E(J,b,st,jt.value,O),jt!==null&&(t&&jt.alternate!==null&&J.delete(jt.key===null?st:jt.key),g=i(jt,g,st),Et===null?W=jt:Et.sibling=jt,Et=jt);return t&&J.forEach(function(l1){return e(b,l1)}),xt&&sl(b,st),W}function Bt(b,g,x,O){if(typeof x=="object"&&x!==null&&x.type===P&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case lt:t:{for(var W=x.key;g!==null;){if(g.key===W){if(W=x.type,W===P){if(g.tag===7){l(b,g.sibling),O=n(g,x.props.children),O.return=b,b=O;break t}}else if(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===H&&sa(W)===g.type){l(b,g.sibling),O=n(g,x.props),Mn(O,x),O.return=b,b=O;break t}l(b,g);break}else e(b,g);g=g.sibling}x.type===P?(O=na(x.props.children,b.mode,O,x.key),O.return=b,b=O):(O=Ai(x.type,x.key,x.props,null,b.mode,O),Mn(O,x),O.return=b,b=O)}return u(b);case ot:t:{for(W=x.key;g!==null;){if(g.key===W)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){l(b,g.sibling),O=n(g,x.children||[]),O.return=b,b=O;break t}else{l(b,g);break}else e(b,g);g=g.sibling}O=cc(x,b.mode,O),O.return=b,b=O}return u(b);case H:return x=sa(x),Bt(b,g,x,O)}if($t(x))return X(b,g,x,O);if(Z(x)){if(W=Z(x),typeof W!="function")throw Error(r(150));return x=W.call(x),tt(b,g,x,O)}if(typeof x.then=="function")return Bt(b,g,wi(x),O);if(x.$$typeof===yt)return Bt(b,g,Oi(b,x),O);Bi(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,g!==null&&g.tag===6?(l(b,g.sibling),O=n(g,x),O.return=b,b=O):(l(b,g),O=uc(x,b.mode,O),O.return=b,b=O),u(b)):l(b,g)}return function(b,g,x,O){try{_n=0;var W=Bt(b,g,x,O);return Ga=null,W}catch(J){if(J===Ya||J===Ri)throw J;var Et=_e(29,J,null,b.mode);return Et.lanes=O,Et.return=b,Et}finally{}}}var fa=pr(!0),vr=pr(!1),Dl=!1;function bc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function wl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Bl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(_t&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ji(t),er(t,null,l),e}return Ei(t,a,e,l),ji(t)}function On(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,ss(t,l)}}function Sc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Tc=!1;function Cn(){if(Tc){var t=La;if(t!==null)throw t}}function Rn(t,e,l,a){Tc=!1;var n=t.updateQueue;Dl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var h=o,S=h.next;h.next=null,u===null?i=S:u.next=S,u=h;var _=t.alternate;_!==null&&(_=_.updateQueue,o=_.lastBaseUpdate,o!==u&&(o===null?_.firstBaseUpdate=S:o.next=S,_.lastBaseUpdate=h))}if(i!==null){var C=n.baseState;u=0,_=S=h=null,o=i;do{var T=o.lane&-536870913,E=T!==o.lane;if(E?(pt&T)===T:(a&T)===T){T!==0&&T===qa&&(Tc=!0),_!==null&&(_=_.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var X=t,tt=o;T=e;var Bt=l;switch(tt.tag){case 1:if(X=tt.payload,typeof X=="function"){C=X.call(Bt,C,T);break t}C=X;break t;case 3:X.flags=X.flags&-65537|128;case 0:if(X=tt.payload,T=typeof X=="function"?X.call(Bt,C,T):X,T==null)break t;C=L({},C,T);break t;case 2:Dl=!0}}T=o.callback,T!==null&&(t.flags|=64,E&&(t.flags|=8192),E=n.callbacks,E===null?n.callbacks=[T]:E.push(T))}else E={lane:T,tag:o.tag,payload:o.payload,callback:o.callback,next:null},_===null?(S=_=E,h=C):_=_.next=E,u|=T;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;E=o,o=E.next,E.next=null,n.lastBaseUpdate=E,n.shared.pending=null}}while(!0);_===null&&(h=C),n.baseState=h,n.firstBaseUpdate=S,n.lastBaseUpdate=_,i===null&&(n.shared.lanes=0),ql|=u,t.lanes=u,t.memoizedState=C}}function br(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function xr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)br(l[t],e)}var Za=d(null),Ui=d(0);function Sr(t,e){t=xl,U(Ui,t),U(Za,e),xl=t|e.baseLanes}function zc(){U(Ui,xl),U(Za,Za.current)}function Ec(){xl=Ui.current,j(Za),j(Ui)}var Me=d(null),Ge=null;function Ul(t){var e=t.alternate;U(Jt,Jt.current&1),U(Me,t),Ge===null&&(e===null||Za.current!==null||e.memoizedState!==null)&&(Ge=t)}function jc(t){U(Jt,Jt.current),U(Me,t),Ge===null&&(Ge=t)}function Tr(t){t.tag===22?(U(Jt,Jt.current),U(Me,t),Ge===null&&(Ge=t)):Hl()}function Hl(){U(Jt,Jt.current),U(Me,Me.current)}function Oe(t){j(Me),Ge===t&&(Ge=null),j(Jt)}var Jt=d(0);function Hi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Do(l)||wo(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var dl=0,ct=null,Dt=null,It=null,Ni=!1,Xa=!1,da=!1,ki=0,Dn=0,Qa=null,Kh=0;function Kt(){throw Error(r(321))}function Ac(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ae(t[l],e[l]))return!1;return!0}function _c(t,e,l,a,n,i){return dl=i,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?uf:Gc,da=!1,i=l(a,n),da=!1,Xa&&(i=Er(e,l,a,n)),zr(t),i}function zr(t){A.H=Un;var e=Dt!==null&&Dt.next!==null;if(dl=0,It=Dt=ct=null,Ni=!1,Dn=0,Qa=null,e)throw Error(r(300));t===null||Pt||(t=t.dependencies,t!==null&&Mi(t)&&(Pt=!0))}function Er(t,e,l,a){ct=t;var n=0;do{if(Xa&&(Qa=null),Dn=0,Xa=!1,25<=n)throw Error(r(301));if(n+=1,It=Dt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=cf,i=e(l,a)}while(Xa);return i}function Vh(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?wn(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(ct.flags|=1024),e}function Mc(){var t=ki!==0;return ki=0,t}function Oc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Cc(t){if(Ni){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ni=!1}dl=0,It=Dt=ct=null,Xa=!1,Dn=ki=0,Qa=null}function de(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ct.memoizedState=It=t:It=It.next=t,It}function Ft(){if(Dt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=It===null?ct.memoizedState:It.next;if(e!==null)It=e,Dt=t;else{if(t===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},It===null?ct.memoizedState=It=t:It=It.next=t}return It}function qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wn(t){var e=Dn;return Dn+=1,Qa===null&&(Qa=[]),t=mr(Qa,t,e),e=ct,(It===null?e.memoizedState:It.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?uf:Gc),t}function Li(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return wn(t);if(t.$$typeof===yt)return ce(t)}throw Error(r(438,String(t)))}function Rc(t){var e=null,l=ct.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=qi(),ct.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=dt;return e.index++,l}function hl(t,e){return typeof e=="function"?e(t):e}function Yi(t){var e=Ft();return Dc(e,Dt,t)}function Dc(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var o=u=null,h=null,S=e,_=!1;do{var C=S.lane&-536870913;if(C!==S.lane?(pt&C)===C:(dl&C)===C){var T=S.revertLane;if(T===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),C===qa&&(_=!0);else if((dl&T)===T){S=S.next,T===qa&&(_=!0);continue}else C={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=C,u=i):h=h.next=C,ct.lanes|=T,ql|=T;C=S.action,da&&l(i,C),i=S.hasEagerState?S.eagerState:l(i,C)}else T={lane:C,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=T,u=i):h=h.next=T,ct.lanes|=C,ql|=C;S=S.next}while(S!==null&&S!==e);if(h===null?u=i:h.next=o,!Ae(i,t.memoizedState)&&(Pt=!0,_&&(l=La,l!==null)))throw l;t.memoizedState=i,t.baseState=u,t.baseQueue=h,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function wc(t){var e=Ft(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=t(i,u.action),u=u.next;while(u!==n);Ae(i,e.memoizedState)||(Pt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function jr(t,e,l){var a=ct,n=Ft(),i=xt;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=e();var u=!Ae((Dt||n).memoizedState,l);if(u&&(n.memoizedState=l,Pt=!0),n=n.queue,Hc(Mr.bind(null,a,n,t),[t]),n.getSnapshot!==e||u||It!==null&&It.memoizedState.tag&1){if(a.flags|=2048,Ka(9,{destroy:void 0},_r.bind(null,a,n,l,e),null),Ut===null)throw Error(r(349));i||(dl&127)!==0||Ar(a,e,l)}return l}function Ar(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ct.updateQueue,e===null?(e=qi(),ct.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function _r(t,e,l,a){e.value=l,e.getSnapshot=a,Or(e)&&Cr(t)}function Mr(t,e,l){return l(function(){Or(e)&&Cr(t)})}function Or(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ae(t,l)}catch{return!0}}function Cr(t){var e=aa(t,2);e!==null&&Se(e,t,2)}function Bc(t){var e=de();if(typeof t=="function"){var l=t;if(t=l(),da){jl(!0);try{l()}finally{jl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:t},e}function Rr(t,e,l,a){return t.baseState=l,Dc(t,Dt,typeof a=="function"?a:hl)}function Jh(t,e,l,a,n){if(Xi(t))throw Error(r(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};A.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,Dr(e,i)):(i.next=l.next,e.pending=l.next=i)}}function Dr(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=A.T,u={};A.T=u;try{var o=l(n,a),h=A.S;h!==null&&h(u,o),wr(t,e,o)}catch(S){Uc(t,e,S)}finally{i!==null&&u.types!==null&&(i.types=u.types),A.T=i}}else try{i=l(n,a),wr(t,e,i)}catch(S){Uc(t,e,S)}}function wr(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Br(t,e,a)},function(a){return Uc(t,e,a)}):Br(t,e,l)}function Br(t,e,l){e.status="fulfilled",e.value=l,Ur(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Dr(t,l)))}function Uc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Ur(e),e=e.next;while(e!==a)}t.action=null}function Ur(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Hr(t,e){return e}function Nr(t,e){if(xt){var l=Ut.formState;if(l!==null){t:{var a=ct;if(xt){if(kt){e:{for(var n=kt,i=Ye;n.nodeType!==8;){if(!i){n=null;break e}if(n=Ze(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){kt=Ze(n.nextSibling),a=n.data==="F!";break t}}Cl(a)}a=!1}a&&(e=l[0])}}return l=de(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hr,lastRenderedState:e},l.queue=a,l=lf.bind(null,ct,a),a.dispatch=l,a=Bc(!1),i=Yc.bind(null,ct,!1,a.queue),a=de(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Jh.bind(null,ct,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function kr(t){var e=Ft();return qr(e,Dt,t)}function qr(t,e,l){if(e=Dc(t,e,Hr)[0],t=Yi(hl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=wn(e)}catch(u){throw u===Ya?Ri:u}else a=e;e=Ft();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(ct.flags|=2048,Ka(9,{destroy:void 0},Fh.bind(null,n,l),null)),[a,i,t]}function Fh(t,e){t.action=e}function Lr(t){var e=Ft(),l=Dt;if(l!==null)return qr(e,l,t);Ft(),e=e.memoizedState,l=Ft();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Ka(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=qi(),ct.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Yr(){return Ft().memoizedState}function Gi(t,e,l,a){var n=de();ct.flags|=t,n.memoizedState=Ka(1|e,{destroy:void 0},l,a===void 0?null:a)}function Zi(t,e,l,a){var n=Ft();a=a===void 0?null:a;var i=n.memoizedState.inst;Dt!==null&&a!==null&&Ac(a,Dt.memoizedState.deps)?n.memoizedState=Ka(e,i,l,a):(ct.flags|=t,n.memoizedState=Ka(1|e,i,l,a))}function Gr(t,e){Gi(8390656,8,t,e)}function Hc(t,e){Zi(2048,8,t,e)}function $h(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=qi(),ct.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Zr(t){var e=Ft().memoizedState;return $h({ref:e,nextImpl:t}),function(){if((_t&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Xr(t,e){return Zi(4,2,t,e)}function Qr(t,e){return Zi(4,4,t,e)}function Kr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Vr(t,e,l){l=l!=null?l.concat([t]):null,Zi(4,4,Kr.bind(null,e,t),l)}function Nc(){}function Jr(t,e){var l=Ft();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Ac(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Fr(t,e){var l=Ft();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Ac(e,a[1]))return a[0];if(a=t(),da){jl(!0);try{t()}finally{jl(!1)}}return l.memoizedState=[a,e],a}function kc(t,e,l){return l===void 0||(dl&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Wf(),ct.lanes|=t,ql|=t,l)}function $r(t,e,l,a){return Ae(l,e)?l:Za.current!==null?(t=kc(t,l,a),Ae(t,e)||(Pt=!0),t):(dl&42)===0||(dl&1073741824)!==0&&(pt&261930)===0?(Pt=!0,t.memoizedState=l):(t=Wf(),ct.lanes|=t,ql|=t,e)}function Wr(t,e,l,a,n){var i=k.p;k.p=i!==0&&8>i?i:8;var u=A.T,o={};A.T=o,Yc(t,!1,e,l);try{var h=n(),S=A.S;if(S!==null&&S(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var _=Qh(h,a);Bn(t,e,_,De(t))}else Bn(t,e,a,De(t))}catch(C){Bn(t,e,{then:function(){},status:"rejected",reason:C},De())}finally{k.p=i,u!==null&&o.types!==null&&(u.types=o.types),A.T=u}}function Wh(){}function qc(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=Ir(t).queue;Wr(t,n,e,F,l===null?Wh:function(){return Pr(t),l(a)})}function Ir(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:F},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Pr(t){var e=Ir(t);e.next===null&&(e=t.alternate.memoizedState),Bn(t,e.next.queue,{},De())}function Lc(){return ce(Wn)}function tf(){return Ft().memoizedState}function ef(){return Ft().memoizedState}function Ih(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=De();t=wl(l);var a=Bl(e,t,l);a!==null&&(Se(a,e,l),On(a,e,l)),e={cache:gc()},t.payload=e;return}e=e.return}}function Ph(t,e,l){var a=De();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xi(t)?af(e,l):(l=nc(t,e,l,a),l!==null&&(Se(l,t,a),nf(l,e,a)))}function lf(t,e,l){var a=De();Bn(t,e,l,a)}function Bn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xi(t))af(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var u=e.lastRenderedState,o=i(u,l);if(n.hasEagerState=!0,n.eagerState=o,Ae(o,u))return Ei(t,e,n,0),Ut===null&&zi(),!1}catch{}finally{}if(l=nc(t,e,n,a),l!==null)return Se(l,t,a),nf(l,e,a),!0}return!1}function Yc(t,e,l,a){if(a={lane:2,revertLane:xo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xi(t)){if(e)throw Error(r(479))}else e=nc(t,l,a,2),e!==null&&Se(e,t,2)}function Xi(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function af(t,e){Xa=Ni=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function nf(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,ss(t,l)}}var Un={readContext:ce,use:Li,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt};Un.useEffectEvent=Kt;var uf={readContext:ce,use:Li,useCallback:function(t,e){return de().memoizedState=[t,e===void 0?null:e],t},useContext:ce,useEffect:Gr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Gi(4194308,4,Kr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Gi(4194308,4,t,e)},useInsertionEffect:function(t,e){Gi(4,2,t,e)},useMemo:function(t,e){var l=de();e=e===void 0?null:e;var a=t();if(da){jl(!0);try{t()}finally{jl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=de();if(l!==void 0){var n=l(e);if(da){jl(!0);try{l(e)}finally{jl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Ph.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=de();return t={current:t},e.memoizedState=t},useState:function(t){t=Bc(t);var e=t.queue,l=lf.bind(null,ct,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Nc,useDeferredValue:function(t,e){var l=de();return kc(l,t,e)},useTransition:function(){var t=Bc(!1);return t=Wr.bind(null,ct,t.queue,!0,!1),de().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=ct,n=de();if(xt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Ut===null)throw Error(r(349));(pt&127)!==0||Ar(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,Gr(Mr.bind(null,a,i,t),[t]),a.flags|=2048,Ka(9,{destroy:void 0},_r.bind(null,a,i,l,e),null),l},useId:function(){var t=de(),e=Ut.identifierPrefix;if(xt){var l=We,a=$e;l=(a&~(1<<32-je(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=ki++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Kh++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Lc,useFormState:Nr,useActionState:Nr,useOptimistic:function(t){var e=de();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Yc.bind(null,ct,!0,l),l.dispatch=e,[t,e]},useMemoCache:Rc,useCacheRefresh:function(){return de().memoizedState=Ih.bind(null,ct)},useEffectEvent:function(t){var e=de(),l={impl:t};return e.memoizedState=l,function(){if((_t&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Gc={readContext:ce,use:Li,useCallback:Jr,useContext:ce,useEffect:Hc,useImperativeHandle:Vr,useInsertionEffect:Xr,useLayoutEffect:Qr,useMemo:Fr,useReducer:Yi,useRef:Yr,useState:function(){return Yi(hl)},useDebugValue:Nc,useDeferredValue:function(t,e){var l=Ft();return $r(l,Dt.memoizedState,t,e)},useTransition:function(){var t=Yi(hl)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:wn(t),e]},useSyncExternalStore:jr,useId:tf,useHostTransitionStatus:Lc,useFormState:kr,useActionState:kr,useOptimistic:function(t,e){var l=Ft();return Rr(l,Dt,t,e)},useMemoCache:Rc,useCacheRefresh:ef};Gc.useEffectEvent=Zr;var cf={readContext:ce,use:Li,useCallback:Jr,useContext:ce,useEffect:Hc,useImperativeHandle:Vr,useInsertionEffect:Xr,useLayoutEffect:Qr,useMemo:Fr,useReducer:wc,useRef:Yr,useState:function(){return wc(hl)},useDebugValue:Nc,useDeferredValue:function(t,e){var l=Ft();return Dt===null?kc(l,t,e):$r(l,Dt.memoizedState,t,e)},useTransition:function(){var t=wc(hl)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:wn(t),e]},useSyncExternalStore:jr,useId:tf,useHostTransitionStatus:Lc,useFormState:Lr,useActionState:Lr,useOptimistic:function(t,e){var l=Ft();return Dt!==null?Rr(l,Dt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:ef};cf.useEffectEvent=Zr;function Zc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:L({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Xc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=De(),n=wl(a);n.payload=e,l!=null&&(n.callback=l),e=Bl(t,n,a),e!==null&&(Se(e,t,a),On(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=De(),n=wl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Bl(t,n,a),e!==null&&(Se(e,t,a),On(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=De(),a=wl(l);a.tag=2,e!=null&&(a.callback=e),e=Bl(t,a,l),e!==null&&(Se(e,t,l),On(e,t,l))}};function of(t,e,l,a,n,i,u){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,u):e.prototype&&e.prototype.isPureReactComponent?!Sn(l,a)||!Sn(n,i):!0}function sf(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Xc.enqueueReplaceState(e,e.state,null)}function ha(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=L({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function rf(t){Ti(t)}function ff(t){console.error(t)}function df(t){Ti(t)}function Qi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function hf(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Qc(t,e,l){return l=wl(l),l.tag=3,l.payload={element:null},l.callback=function(){Qi(t,e)},l}function mf(t){return t=wl(t),t.tag=3,t}function gf(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){hf(e,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(t.callback=function(){hf(e,l,a),typeof n!="function"&&(Ll===null?Ll=new Set([this]):Ll.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function tm(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&ka(e,l,n,!0),l=Me.current,l!==null){switch(l.tag){case 31:case 13:return Ge===null?au():l.alternate===null&&Vt===0&&(Vt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Di?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),po(t,a,n)),!1;case 22:return l.flags|=65536,a===Di?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),po(t,a,n)),!1}throw Error(r(435,l.tag))}return po(t,a,n),au(),!1}if(xt)return e=Me.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==rc&&(t=Error(r(422),{cause:a}),En(ke(t,l)))):(a!==rc&&(e=Error(r(423),{cause:a}),En(ke(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=ke(a,l),n=Qc(t.stateNode,a,n),Sc(t,n),Vt!==4&&(Vt=2)),!1;var i=Error(r(520),{cause:a});if(i=ke(i,l),Zn===null?Zn=[i]:Zn.push(i),Vt!==4&&(Vt=2),e===null)return!0;a=ke(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Qc(l.stateNode,a,t),Sc(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ll===null||!Ll.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=mf(n),gf(n,t,l,a),Sc(l,n),!1}l=l.return}while(l!==null);return!1}var Kc=Error(r(461)),Pt=!1;function oe(t,e,l,a){e.child=t===null?vr(e,null,l,a):fa(e,t.child,l,a)}function yf(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}else u=a;return ca(e),a=_c(t,e,l,u,i,n),o=Mc(),t!==null&&!Pt?(Oc(t,e,n),ml(t,e,n)):(xt&&o&&oc(e),e.flags|=1,oe(t,e,a,n),e.child)}function pf(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!ic(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,vf(t,e,i,a,n)):(t=Ai(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!to(t,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Sn,l(u,a)&&t.ref===e.ref)return ml(t,e,n)}return e.flags|=1,t=ol(i,a),t.ref=e.ref,t.return=e,e.child=t}function vf(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(Sn(i,a)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=a=i,to(t,n))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,ml(t,e,n)}return Vc(t,e,l,a,n)}function bf(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return xf(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ci(e,i!==null?i.cachePool:null),i!==null?Sr(e,i):zc(),Tr(e);else return a=e.lanes=536870912,xf(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ci(e,i.cachePool),Sr(e,i),Hl(),e.memoizedState=null):(t!==null&&Ci(e,null),zc(),Hl());return oe(t,e,n,l),e.child}function Hn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function xf(t,e,l,a,n){var i=pc();return i=i===null?null:{parent:Wt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&Ci(e,null),zc(),Tr(e),t!==null&&ka(t,e,a,!0),e.childLanes=n,null}function Ki(t,e){return e=Ji({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Sf(t,e,l){return fa(e,t.child,null,l),t=Ki(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function em(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(xt){if(a.mode==="hidden")return t=Ki(e,a),e.lanes=536870912,Hn(null,t);if(jc(e),(t=kt)?(t=wd(t,Ye),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ml!==null?{id:$e,overflow:We}:null,retryLane:536870912,hydrationErrors:null},l=ar(t),l.return=e,e.child=l,ue=e,kt=null)):t=null,t===null)throw Cl(e);return e.lanes=536870912,null}return Ki(e,a)}var i=t.memoizedState;if(i!==null){var u=i.dehydrated;if(jc(e),n)if(e.flags&256)e.flags&=-257,e=Sf(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Pt||ka(t,e,l,!1),n=(l&t.childLanes)!==0,Pt||n){if(a=Ut,a!==null&&(u=rs(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,aa(t,u),Se(a,t,u),Kc;au(),e=Sf(t,e,l)}else t=i.treeContext,kt=Ze(u.nextSibling),ue=e,xt=!0,Ol=null,Ye=!1,t!==null&&ur(e,t),e=Ki(e,a),e.flags|=4096;return e}return t=ol(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Vi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Vc(t,e,l,a,n){return ca(e),l=_c(t,e,l,a,void 0,n),a=Mc(),t!==null&&!Pt?(Oc(t,e,n),ml(t,e,n)):(xt&&a&&oc(e),e.flags|=1,oe(t,e,l,n),e.child)}function Tf(t,e,l,a,n,i){return ca(e),e.updateQueue=null,l=Er(e,a,l,n),zr(t),a=Mc(),t!==null&&!Pt?(Oc(t,e,i),ml(t,e,i)):(xt&&a&&oc(e),e.flags|=1,oe(t,e,l,i),e.child)}function zf(t,e,l,a,n){if(ca(e),e.stateNode===null){var i=Ba,u=l.contextType;typeof u=="object"&&u!==null&&(i=ce(u)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Xc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},bc(e),u=l.contextType,i.context=typeof u=="object"&&u!==null?ce(u):Ba,i.state=e.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Zc(e,l,u,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&Xc.enqueueReplaceState(i,i.state,null),Rn(e,a,i,n),Cn(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var o=e.memoizedProps,h=ha(l,o);i.props=h;var S=i.context,_=l.contextType;u=Ba,typeof _=="object"&&_!==null&&(u=ce(_));var C=l.getDerivedStateFromProps;_=typeof C=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,_||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||S!==u)&&sf(e,i,a,u),Dl=!1;var T=e.memoizedState;i.state=T,Rn(e,a,i,n),Cn(),S=e.memoizedState,o||T!==S||Dl?(typeof C=="function"&&(Zc(e,l,C,a),S=e.memoizedState),(h=Dl||of(e,l,h,a,T,S,u))?(_||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=S),i.props=a,i.state=S,i.context=u,a=h):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,xc(t,e),u=e.memoizedProps,_=ha(l,u),i.props=_,C=e.pendingProps,T=i.context,S=l.contextType,h=Ba,typeof S=="object"&&S!==null&&(h=ce(S)),o=l.getDerivedStateFromProps,(S=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==C||T!==h)&&sf(e,i,a,h),Dl=!1,T=e.memoizedState,i.state=T,Rn(e,a,i,n),Cn();var E=e.memoizedState;u!==C||T!==E||Dl||t!==null&&t.dependencies!==null&&Mi(t.dependencies)?(typeof o=="function"&&(Zc(e,l,o,a),E=e.memoizedState),(_=Dl||of(e,l,_,a,T,E,h)||t!==null&&t.dependencies!==null&&Mi(t.dependencies))?(S||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,E,h),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,E,h)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&T===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&T===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=E),i.props=a,i.state=E,i.context=h,a=_):(typeof i.componentDidUpdate!="function"||u===t.memoizedProps&&T===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===t.memoizedProps&&T===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,Vi(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=fa(e,t.child,null,n),e.child=fa(e,null,l,n)):oe(t,e,l,n),e.memoizedState=i.state,t=e.child):t=ml(t,e,n),t}function Ef(t,e,l,a){return ia(),e.flags|=256,oe(t,e,l,a),e.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fc(t){return{baseLanes:t,cachePool:dr()}}function $c(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Re),t}function jf(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,u;if((u=i)||(u=t!==null&&t.memoizedState===null?!1:(Jt.current&2)!==0),u&&(n=!0,e.flags&=-129),u=(e.flags&32)!==0,e.flags&=-33,t===null){if(xt){if(n?Ul(e):Hl(),(t=kt)?(t=wd(t,Ye),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ml!==null?{id:$e,overflow:We}:null,retryLane:536870912,hydrationErrors:null},l=ar(t),l.return=e,e.child=l,ue=e,kt=null)):t=null,t===null)throw Cl(e);return wo(t)?e.lanes=32:e.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Hl(),n=e.mode,o=Ji({mode:"hidden",children:o},n),a=na(a,n,l,null),o.return=e,a.return=e,o.sibling=a,e.child=o,a=e.child,a.memoizedState=Fc(l),a.childLanes=$c(t,u,l),e.memoizedState=Jc,Hn(null,a)):(Ul(e),Wc(e,o))}var h=t.memoizedState;if(h!==null&&(o=h.dehydrated,o!==null)){if(i)e.flags&256?(Ul(e),e.flags&=-257,e=Ic(t,e,l)):e.memoizedState!==null?(Hl(),e.child=t.child,e.flags|=128,e=null):(Hl(),o=a.fallback,n=e.mode,a=Ji({mode:"visible",children:a.children},n),o=na(o,n,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,fa(e,t.child,null,l),a=e.child,a.memoizedState=Fc(l),a.childLanes=$c(t,u,l),e.memoizedState=Jc,e=Hn(null,a));else if(Ul(e),wo(o)){if(u=o.nextSibling&&o.nextSibling.dataset,u)var S=u.dgst;u=S,a=Error(r(419)),a.stack="",a.digest=u,En({value:a,source:null,stack:null}),e=Ic(t,e,l)}else if(Pt||ka(t,e,l,!1),u=(l&t.childLanes)!==0,Pt||u){if(u=Ut,u!==null&&(a=rs(u,l),a!==0&&a!==h.retryLane))throw h.retryLane=a,aa(t,a),Se(u,t,a),Kc;Do(o)||au(),e=Ic(t,e,l)}else Do(o)?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,kt=Ze(o.nextSibling),ue=e,xt=!0,Ol=null,Ye=!1,t!==null&&ur(e,t),e=Wc(e,a.children),e.flags|=4096);return e}return n?(Hl(),o=a.fallback,n=e.mode,h=t.child,S=h.sibling,a=ol(h,{mode:"hidden",children:a.children}),a.subtreeFlags=h.subtreeFlags&65011712,S!==null?o=ol(S,o):(o=na(o,n,l,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,Hn(null,a),a=e.child,o=t.child.memoizedState,o===null?o=Fc(l):(n=o.cachePool,n!==null?(h=Wt._currentValue,n=n.parent!==h?{parent:h,pool:h}:n):n=dr(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=$c(t,u,l),e.memoizedState=Jc,Hn(t.child,a)):(Ul(e),l=t.child,t=l.sibling,l=ol(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(u=e.deletions,u===null?(e.deletions=[t],e.flags|=16):u.push(t)),e.child=l,e.memoizedState=null,l)}function Wc(t,e){return e=Ji({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ji(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function Ic(t,e,l){return fa(e,t.child,null,l),t=Wc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Af(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),hc(t.return,e,l)}function Pc(t,e,l,a,n,i){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function _f(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Jt.current,o=(u&2)!==0;if(o?(u=u&1|2,e.flags|=128):u&=1,U(Jt,u),oe(t,e,a,l),a=xt?zn:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Af(t,l,e);else if(t.tag===19)Af(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Hi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Pc(e,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Hi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Pc(e,!0,l,null,i,a);break;case"together":Pc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ml(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),ql|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ka(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=ol(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ol(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function to(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Mi(t)))}function lm(t,e,l){switch(e.tag){case 3:Rt(e,e.stateNode.containerInfo),Rl(e,Wt,t.memoizedState.cache),ia();break;case 27:case 5:G(e);break;case 4:Rt(e,e.stateNode.containerInfo);break;case 10:Rl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,jc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Ul(e),e.flags|=128,null):(l&e.child.childLanes)!==0?jf(t,e,l):(Ul(e),t=ml(t,e,l),t!==null?t.sibling:null);Ul(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(ka(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return _f(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(Jt,Jt.current),a)break;return null;case 22:return e.lanes=0,bf(t,e,l,e.pendingProps);case 24:Rl(e,Wt,t.memoizedState.cache)}return ml(t,e,l)}function Mf(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!to(t,l)&&(e.flags&128)===0)return Pt=!1,lm(t,e,l);Pt=(t.flags&131072)!==0}else Pt=!1,xt&&(e.flags&1048576)!==0&&ir(e,zn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=sa(e.elementType),e.type=t,typeof t=="function")ic(t)?(a=ha(t,a),e.tag=1,e=zf(null,e,t,a,l)):(e.tag=0,e=Vc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===$){e.tag=11,e=yf(null,e,t,a,l);break t}else if(n===m){e.tag=14,e=pf(null,e,t,a,l);break t}}throw e=ee(t)||t,Error(r(306,e,""))}}return e;case 0:return Vc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=ha(a,e.pendingProps),zf(t,e,a,n,l);case 3:t:{if(Rt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,xc(t,e),Rn(e,a,null,l);var u=e.memoizedState;if(a=u.cache,Rl(e,Wt,a),a!==i.cache&&mc(e,[Wt],l,!0),Cn(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Ef(t,e,a,l);break t}else if(a!==n){n=ke(Error(r(424)),e),En(n),e=Ef(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(kt=Ze(t.firstChild),ue=e,xt=!0,Ol=null,Ye=!0,l=vr(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ia(),a===n){e=ml(t,e,l);break t}oe(t,e,a,l)}e=e.child}return e;case 26:return Vi(t,e),t===null?(l=qd(e.type,null,e.pendingProps,null))?e.memoizedState=l:xt||(l=e.type,t=e.pendingProps,a=ru(V.current).createElement(l),a[ie]=e,a[ge]=t,se(a,l,t),ae(a),e.stateNode=a):e.memoizedState=qd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return G(e),t===null&&xt&&(a=e.stateNode=Hd(e.type,e.pendingProps,V.current),ue=e,Ye=!0,n=kt,Xl(e.type)?(Bo=n,kt=Ze(a.firstChild)):kt=n),oe(t,e,e.pendingProps.children,l),Vi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&xt&&((n=a=kt)&&(a=Dm(a,e.type,e.pendingProps,Ye),a!==null?(e.stateNode=a,ue=e,kt=Ze(a.firstChild),Ye=!1,n=!0):n=!1),n||Cl(e)),G(e),n=e.type,i=e.pendingProps,u=t!==null?t.memoizedProps:null,a=i.children,Oo(n,i)?a=null:u!==null&&Oo(n,u)&&(e.flags|=32),e.memoizedState!==null&&(n=_c(t,e,Vh,null,null,l),Wn._currentValue=n),Vi(t,e),oe(t,e,a,l),e.child;case 6:return t===null&&xt&&((t=l=kt)&&(l=wm(l,e.pendingProps,Ye),l!==null?(e.stateNode=l,ue=e,kt=null,t=!0):t=!1),t||Cl(e)),null;case 13:return jf(t,e,l);case 4:return Rt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=fa(e,null,a,l):oe(t,e,a,l),e.child;case 11:return yf(t,e,e.type,e.pendingProps,l);case 7:return oe(t,e,e.pendingProps,l),e.child;case 8:return oe(t,e,e.pendingProps.children,l),e.child;case 12:return oe(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Rl(e,e.type,a.value),oe(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,ca(e),n=ce(n),a=a(n),e.flags|=1,oe(t,e,a,l),e.child;case 14:return pf(t,e,e.type,e.pendingProps,l);case 15:return vf(t,e,e.type,e.pendingProps,l);case 19:return _f(t,e,l);case 31:return em(t,e,l);case 22:return bf(t,e,l,e.pendingProps);case 24:return ca(e),a=ce(Wt),t===null?(n=pc(),n===null&&(n=Ut,i=gc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},bc(e),Rl(e,Wt,n)):((t.lanes&l)!==0&&(xc(t,e),Rn(e,null,null,l),Cn()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Rl(e,Wt,a)):(a=i.cache,Rl(e,Wt,a),a!==n.cache&&mc(e,[Wt],l,!0))),oe(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function gl(t){t.flags|=4}function eo(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(ed())t.flags|=8192;else throw ra=Di,vc}else t.flags&=-16777217}function Of(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Xd(e))if(ed())t.flags|=8192;else throw ra=Di,vc}function Fi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?cs():536870912,t.lanes|=e,$a|=e)}function Nn(t,e){if(!xt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function am(t,e,l){var a=e.pendingProps;switch(sc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qt(e),null;case 1:return qt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),fl(Wt),At(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Na(e)?gl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,fc())),qt(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(gl(e),i!==null?(qt(e),Of(e,i)):(qt(e),eo(e,n,null,a,l))):i?i!==t.memoizedState?(gl(e),qt(e),Of(e,i)):(qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&gl(e),qt(e),eo(e,n,t,a,l)),null;case 27:if(Mt(e),l=V.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&gl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return qt(e),null}t=q.current,Na(e)?cr(e):(t=Hd(n,a,l),e.stateNode=t,gl(e))}return qt(e),null;case 5:if(Mt(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&gl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return qt(e),null}if(i=q.current,Na(e))cr(e);else{var u=ru(V.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[ie]=e,i[ge]=a;t:for(u=e.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;u=u.return}u.sibling.return=u.return,u=u.sibling}e.stateNode=i;t:switch(se(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&gl(e)}}return qt(e),eo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&gl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=V.current,Na(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=ue,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[ie]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(t.nodeValue,l)),t||Cl(e,!0)}else t=ru(t).createTextNode(a),t[ie]=e,e.stateNode=t}return qt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=Na(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ie]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),t=!1}else l=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(r(558))}return qt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=Na(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[ie]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;qt(e),n=!1}else n=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Fi(e,e.updateQueue),qt(e),null);case 4:return At(),t===null&&Eo(e.stateNode.containerInfo),qt(e),null;case 10:return fl(e.type),qt(e),null;case 19:if(j(Jt),a=e.memoizedState,a===null)return qt(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)Nn(a,!1);else{if(Vt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Hi(t),i!==null){for(e.flags|=128,Nn(a,!1),t=i.updateQueue,e.updateQueue=t,Fi(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)lr(l,t),l=l.sibling;return U(Jt,Jt.current&1|2),xt&&sl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Qt()>tu&&(e.flags|=128,n=!0,Nn(a,!1),e.lanes=4194304)}else{if(!n)if(t=Hi(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Fi(e,t),Nn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!xt)return qt(e),null}else 2*Qt()-a.renderingStartTime>tu&&l!==536870912&&(e.flags|=128,n=!0,Nn(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qt(),t.sibling=null,l=Jt.current,U(Jt,n?l&1|2:l&1),xt&&sl(e,a.treeForkCount),t):(qt(e),null);case 22:case 23:return Oe(e),Ec(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),l=e.updateQueue,l!==null&&Fi(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&j(oa),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),fl(Wt),qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function nm(t,e){switch(sc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return fl(Wt),At(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Mt(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(r(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Jt),null;case 4:return At(),null;case 10:return fl(e.type),null;case 22:case 23:return Oe(e),Ec(),t!==null&&j(oa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return fl(Wt),null;case 25:return null;default:return null}}function Cf(t,e){switch(sc(e),e.tag){case 3:fl(Wt),At();break;case 26:case 27:case 5:Mt(e);break;case 4:At();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:j(Jt);break;case 10:fl(e.type);break;case 22:case 23:Oe(e),Ec(),t!==null&&j(oa);break;case 24:fl(Wt)}}function kn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(o){Ct(e,e.return,o)}}function Nl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var u=a.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,n=e;var h=l,S=o;try{S()}catch(_){Ct(n,h,_)}}}a=a.next}while(a!==i)}}catch(_){Ct(e,e.return,_)}}function Rf(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{xr(e,l)}catch(a){Ct(t,t.return,a)}}}function Df(t,e,l){l.props=ha(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Ct(t,e,a)}}function qn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Ct(t,e,n)}}function Ie(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ct(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ct(t,e,n)}else l.current=null}function wf(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ct(t,t.return,n)}}function lo(t,e,l){try{var a=t.stateNode;Am(a,t.type,l,e),a[ge]=e}catch(n){Ct(t,t.return,n)}}function Bf(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Xl(t.type)||t.tag===4}function ao(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Bf(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Xl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function no(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=ul));else if(a!==4&&(a===27&&Xl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(no(t,e,l),t=t.sibling;t!==null;)no(t,e,l),t=t.sibling}function $i(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Xl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for($i(t,e,l),t=t.sibling;t!==null;)$i(t,e,l),t=t.sibling}function Uf(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);se(e,a,l),e[ie]=t,e[ge]=l}catch(i){Ct(t,t.return,i)}}var yl=!1,te=!1,io=!1,Hf=typeof WeakSet=="function"?WeakSet:Set,ne=null;function im(t,e){if(t=t.containerInfo,_o=pu,t=Vs(t),Iu(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var u=0,o=-1,h=-1,S=0,_=0,C=t,T=null;e:for(;;){for(var E;C!==l||n!==0&&C.nodeType!==3||(o=u+n),C!==i||a!==0&&C.nodeType!==3||(h=u+a),C.nodeType===3&&(u+=C.nodeValue.length),(E=C.firstChild)!==null;)T=C,C=E;for(;;){if(C===t)break e;if(T===l&&++S===n&&(o=u),T===i&&++_===a&&(h=u),(E=C.nextSibling)!==null)break;C=T,T=C.parentNode}C=E}l=o===-1||h===-1?null:{start:o,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mo={focusedElem:t,selectionRange:l},pu=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var X=ha(l.type,n);t=a.getSnapshotBeforeUpdate(X,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(tt){Ct(l,l.return,tt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Ro(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ro(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function Nf(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:vl(t,l),a&4&&kn(5,l);break;case 1:if(vl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(u){Ct(l,l.return,u)}else{var n=ha(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(u){Ct(l,l.return,u)}}a&64&&Rf(l),a&512&&qn(l,l.return);break;case 3:if(vl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{xr(t,e)}catch(u){Ct(l,l.return,u)}}break;case 27:e===null&&a&4&&Uf(l);case 26:case 5:vl(t,l),e===null&&a&4&&wf(l),a&512&&qn(l,l.return);break;case 12:vl(t,l);break;case 31:vl(t,l),a&4&&Lf(t,l);break;case 13:vl(t,l),a&4&&Yf(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=mm.bind(null,l),Bm(t,l))));break;case 22:if(a=l.memoizedState!==null||yl,!a){e=e!==null&&e.memoizedState!==null||te,n=yl;var i=te;yl=a,(te=e)&&!i?bl(t,l,(l.subtreeFlags&8772)!==0):vl(t,l),yl=n,te=i}break;case 30:break;default:vl(t,l)}}function kf(t){var e=t.alternate;e!==null&&(t.alternate=null,kf(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Uu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Gt=null,pe=!1;function pl(t,e,l){for(l=l.child;l!==null;)qf(t,e,l),l=l.sibling}function qf(t,e,l){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(sn,l)}catch{}switch(l.tag){case 26:te||Ie(l,e),pl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:te||Ie(l,e);var a=Gt,n=pe;Xl(l.type)&&(Gt=l.stateNode,pe=!1),pl(t,e,l),Jn(l.stateNode),Gt=a,pe=n;break;case 5:te||Ie(l,e);case 6:if(a=Gt,n=pe,Gt=null,pl(t,e,l),Gt=a,pe=n,Gt!==null)if(pe)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(l.stateNode)}catch(i){Ct(l,e,i)}else try{Gt.removeChild(l.stateNode)}catch(i){Ct(l,e,i)}break;case 18:Gt!==null&&(pe?(t=Gt,Rd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),nn(t)):Rd(Gt,l.stateNode));break;case 4:a=Gt,n=pe,Gt=l.stateNode.containerInfo,pe=!0,pl(t,e,l),Gt=a,pe=n;break;case 0:case 11:case 14:case 15:Nl(2,l,e),te||Nl(4,l,e),pl(t,e,l);break;case 1:te||(Ie(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Df(l,e,a)),pl(t,e,l);break;case 21:pl(t,e,l);break;case 22:te=(a=te)||l.memoizedState!==null,pl(t,e,l),te=a;break;default:pl(t,e,l)}}function Lf(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{nn(t)}catch(l){Ct(e,e.return,l)}}}function Yf(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{nn(t)}catch(l){Ct(e,e.return,l)}}function um(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Hf),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Hf),e;default:throw Error(r(435,t.tag))}}function Wi(t,e){var l=um(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=gm.bind(null,t,a);a.then(n,n)}})}function ve(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=t,u=e,o=u;t:for(;o!==null;){switch(o.tag){case 27:if(Xl(o.type)){Gt=o.stateNode,pe=!1;break t}break;case 5:Gt=o.stateNode,pe=!1;break t;case 3:case 4:Gt=o.stateNode.containerInfo,pe=!0;break t}o=o.return}if(Gt===null)throw Error(r(160));qf(i,u,n),Gt=null,pe=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Gf(e,t),e=e.sibling}var Je=null;function Gf(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),be(t),a&4&&(Nl(3,t,t.return),kn(3,t),Nl(5,t,t.return));break;case 1:ve(e,t),be(t),a&512&&(te||l===null||Ie(l,l.return)),a&64&&yl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Je;if(ve(e,t),be(t),a&512&&(te||l===null||Ie(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[dn]||i[ie]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),se(i,a,l),i[ie]=t,ae(i),a=i;break t;case"link":var u=Gd("link","href",n).get(a+(l.href||""));if(u){for(var o=0;o<u.length;o++)if(i=u[o],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break e}}i=n.createElement(a),se(i,a,l),n.head.appendChild(i);break;case"meta":if(u=Gd("meta","content",n).get(a+(l.content||""))){for(o=0;o<u.length;o++)if(i=u[o],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break e}}i=n.createElement(a),se(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[ie]=t,ae(i),a=i}t.stateNode=a}else Zd(n,t.type,t.stateNode);else t.stateNode=Yd(n,a,t.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?Zd(n,t.type,t.stateNode):Yd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&lo(t,t.memoizedProps,l.memoizedProps)}break;case 27:ve(e,t),be(t),a&512&&(te||l===null||Ie(l,l.return)),l!==null&&a&4&&lo(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ve(e,t),be(t),a&512&&(te||l===null||Ie(l,l.return)),t.flags&32){n=t.stateNode;try{_a(n,"")}catch(X){Ct(t,t.return,X)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,lo(t,n,l!==null?l.memoizedProps:n)),a&1024&&(io=!0);break;case 6:if(ve(e,t),be(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(X){Ct(t,t.return,X)}}break;case 3:if(hu=null,n=Je,Je=fu(e.containerInfo),ve(e,t),Je=n,be(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{nn(e.containerInfo)}catch(X){Ct(t,t.return,X)}io&&(io=!1,Zf(t));break;case 4:a=Je,Je=fu(t.stateNode.containerInfo),ve(e,t),be(t),Je=a;break;case 12:ve(e,t),be(t);break;case 31:ve(e,t),be(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Wi(t,a)));break;case 13:ve(e,t),be(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Pi=Qt()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Wi(t,a)));break;case 22:n=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,S=yl,_=te;if(yl=S||n,te=_||h,ve(e,t),te=_,yl=S,be(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||h||yl||te||ma(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(i=h.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{o=h.stateNode;var C=h.memoizedProps.style,T=C!=null&&C.hasOwnProperty("display")?C.display:null;o.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(X){Ct(h,h.return,X)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=n?"":h.memoizedProps}catch(X){Ct(h,h.return,X)}}}else if(e.tag===18){if(l===null){h=e;try{var E=h.stateNode;n?Dd(E,!0):Dd(h.stateNode,!1)}catch(X){Ct(h,h.return,X)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Wi(t,l))));break;case 19:ve(e,t),be(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Wi(t,a)));break;case 30:break;case 21:break;default:ve(e,t),be(t)}}function be(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Bf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=ao(t);$i(t,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(_a(u,""),l.flags&=-33);var o=ao(t);$i(t,o,u);break;case 3:case 4:var h=l.stateNode.containerInfo,S=ao(t);no(t,S,h);break;default:throw Error(r(161))}}catch(_){Ct(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Zf(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Zf(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function vl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Nf(t,e.alternate,e),e=e.sibling}function ma(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Nl(4,e,e.return),ma(e);break;case 1:Ie(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Df(e,e.return,l),ma(e);break;case 27:Jn(e.stateNode);case 26:case 5:Ie(e,e.return),ma(e);break;case 22:e.memoizedState===null&&ma(e);break;case 30:ma(e);break;default:ma(e)}t=t.sibling}}function bl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,u=i.flags;switch(i.tag){case 0:case 11:case 15:bl(n,i,l),kn(4,i);break;case 1:if(bl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(S){Ct(a,a.return,S)}if(a=i,n=a.updateQueue,n!==null){var o=a.stateNode;try{var h=n.shared.hiddenCallbacks;if(h!==null)for(n.shared.hiddenCallbacks=null,n=0;n<h.length;n++)br(h[n],o)}catch(S){Ct(a,a.return,S)}}l&&u&64&&Rf(i),qn(i,i.return);break;case 27:Uf(i);case 26:case 5:bl(n,i,l),l&&a===null&&u&4&&wf(i),qn(i,i.return);break;case 12:bl(n,i,l);break;case 31:bl(n,i,l),l&&u&4&&Lf(n,i);break;case 13:bl(n,i,l),l&&u&4&&Yf(n,i);break;case 22:i.memoizedState===null&&bl(n,i,l),qn(i,i.return);break;case 30:break;default:bl(n,i,l)}e=e.sibling}}function uo(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&jn(l))}function co(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&jn(t))}function Fe(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xf(t,e,l,a),e=e.sibling}function Xf(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,l,a),n&2048&&kn(9,e);break;case 1:Fe(t,e,l,a);break;case 3:Fe(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&jn(t)));break;case 12:if(n&2048){Fe(t,e,l,a),t=e.stateNode;try{var i=e.memoizedProps,u=i.id,o=i.onPostCommit;typeof o=="function"&&o(u,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){Ct(e,e.return,h)}}else Fe(t,e,l,a);break;case 31:Fe(t,e,l,a);break;case 13:Fe(t,e,l,a);break;case 23:break;case 22:i=e.stateNode,u=e.alternate,e.memoizedState!==null?i._visibility&2?Fe(t,e,l,a):Ln(t,e):i._visibility&2?Fe(t,e,l,a):(i._visibility|=2,Va(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&uo(u,e);break;case 24:Fe(t,e,l,a),n&2048&&co(e.alternate,e);break;default:Fe(t,e,l,a)}}function Va(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,u=e,o=l,h=a,S=u.flags;switch(u.tag){case 0:case 11:case 15:Va(i,u,o,h,n),kn(8,u);break;case 23:break;case 22:var _=u.stateNode;u.memoizedState!==null?_._visibility&2?Va(i,u,o,h,n):Ln(i,u):(_._visibility|=2,Va(i,u,o,h,n)),n&&S&2048&&uo(u.alternate,u);break;case 24:Va(i,u,o,h,n),n&&S&2048&&co(u.alternate,u);break;default:Va(i,u,o,h,n)}e=e.sibling}}function Ln(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Ln(l,a),n&2048&&uo(a.alternate,a);break;case 24:Ln(l,a),n&2048&&co(a.alternate,a);break;default:Ln(l,a)}e=e.sibling}}var Yn=8192;function Ja(t,e,l){if(t.subtreeFlags&Yn)for(t=t.child;t!==null;)Qf(t,e,l),t=t.sibling}function Qf(t,e,l){switch(t.tag){case 26:Ja(t,e,l),t.flags&Yn&&t.memoizedState!==null&&Km(l,Je,t.memoizedState,t.memoizedProps);break;case 5:Ja(t,e,l);break;case 3:case 4:var a=Je;Je=fu(t.stateNode.containerInfo),Ja(t,e,l),Je=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Yn,Yn=16777216,Ja(t,e,l),Yn=a):Ja(t,e,l));break;default:Ja(t,e,l)}}function Kf(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Gn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];ne=a,Jf(a,t)}Kf(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Vf(t),t=t.sibling}function Vf(t){switch(t.tag){case 0:case 11:case 15:Gn(t),t.flags&2048&&Nl(9,t,t.return);break;case 3:Gn(t);break;case 12:Gn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ii(t)):Gn(t);break;default:Gn(t)}}function Ii(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];ne=a,Jf(a,t)}Kf(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Nl(8,e,e.return),Ii(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ii(e));break;default:Ii(e)}t=t.sibling}}function Jf(t,e){for(;ne!==null;){var l=ne;switch(l.tag){case 0:case 11:case 15:Nl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:jn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ne=a;else t:for(l=t;ne!==null;){a=ne;var n=a.sibling,i=a.return;if(kf(a),a===l){ne=null;break t}if(n!==null){n.return=i,ne=n;break t}ne=i}}}var cm={getCacheForType:function(t){var e=ce(Wt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ce(Wt).controller.signal}},om=typeof WeakMap=="function"?WeakMap:Map,_t=0,Ut=null,mt=null,pt=0,Ot=0,Ce=null,kl=!1,Fa=!1,oo=!1,xl=0,Vt=0,ql=0,ga=0,so=0,Re=0,$a=0,Zn=null,xe=null,ro=!1,Pi=0,Ff=0,tu=1/0,eu=null,Ll=null,le=0,Yl=null,Wa=null,Sl=0,fo=0,ho=null,$f=null,Xn=0,mo=null;function De(){return(_t&2)!==0&&pt!==0?pt&-pt:A.T!==null?xo():fs()}function Wf(){if(Re===0)if((pt&536870912)===0||xt){var t=si;si<<=1,(si&3932160)===0&&(si=262144),Re=t}else Re=536870912;return t=Me.current,t!==null&&(t.flags|=32),Re}function Se(t,e,l){(t===Ut&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(Ia(t,0),Gl(t,pt,Re,!1)),fn(t,l),((_t&2)===0||t!==Ut)&&(t===Ut&&((_t&2)===0&&(ga|=l),Vt===4&&Gl(t,pt,Re,!1)),Pe(t))}function If(t,e,l){if((_t&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||rn(t,e),n=a?fm(t,e):yo(t,e,!0),i=a;do{if(n===0){Fa&&!a&&Gl(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!sm(l)){n=yo(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var u=0;else u=t.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){e=u;t:{var o=t;n=Zn;var h=o.current.memoizedState.isDehydrated;if(h&&(Ia(o,u).flags|=256),u=yo(o,u,!1),u!==2){if(oo&&!h){o.errorRecoveryDisabledLanes|=i,ga|=i,n=4;break t}i=xe,xe=n,i!==null&&(xe===null?xe=i:xe.push.apply(xe,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){Ia(t,0),Gl(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Gl(a,e,Re,!kl);break t;case 2:xe=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=Pi+300-Qt(),10<n)){if(Gl(a,e,Re,!kl),fi(a,0,!0)!==0)break t;Sl=e,a.timeoutHandle=Od(Pf.bind(null,a,l,xe,eu,ro,e,Re,ga,$a,kl,i,"Throttled",-0,0),n);break t}Pf(a,l,xe,eu,ro,e,Re,ga,$a,kl,i,null,-0,0)}}break}while(!0);Pe(t)}function Pf(t,e,l,a,n,i,u,o,h,S,_,C,T,E){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ul},Qf(e,i,C);var X=(i&62914560)===i?Pi-Qt():(i&4194048)===i?Ff-Qt():0;if(X=Vm(C,X),X!==null){Sl=i,t.cancelPendingCommit=X(cd.bind(null,t,e,i,l,a,n,u,o,h,_,C,null,T,E)),Gl(t,i,u,!S);return}}cd(t,e,i,l,a,n,u,o,h)}function sm(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!Ae(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Gl(t,e,l,a){e&=~so,e&=~ga,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-je(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&os(t,l,e)}function lu(){return(_t&6)===0?(Qn(0),!1):!0}function go(){if(mt!==null){if(Ot===0)var t=mt.return;else t=mt,rl=ua=null,Cc(t),Ga=null,_n=0,t=mt;for(;t!==null;)Cf(t.alternate,t),t=t.return;mt=null}}function Ia(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Om(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Sl=0,go(),Ut=t,mt=l=ol(t.current,null),pt=e,Ot=0,Ce=null,kl=!1,Fa=rn(t,e),oo=!1,$a=Re=so=ga=ql=Vt=0,xe=Zn=null,ro=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-je(a),i=1<<n;e|=t[n],a&=~i}return xl=e,zi(),l}function td(t,e){ct=null,A.H=Un,e===Ya||e===Ri?(e=gr(),Ot=3):e===vc?(e=gr(),Ot=4):Ot=e===Kc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,mt===null&&(Vt=1,Qi(t,ke(e,t.current)))}function ed(){var t=Me.current;return t===null?!0:(pt&4194048)===pt?Ge===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Ge:!1}function ld(){var t=A.H;return A.H=Un,t===null?Un:t}function ad(){var t=A.A;return A.A=cm,t}function au(){Vt=4,kl||(pt&4194048)!==pt&&Me.current!==null||(Fa=!0),(ql&134217727)===0&&(ga&134217727)===0||Ut===null||Gl(Ut,pt,Re,!1)}function yo(t,e,l){var a=_t;_t|=2;var n=ld(),i=ad();(Ut!==t||pt!==e)&&(eu=null,Ia(t,e)),e=!1;var u=Vt;t:do try{if(Ot!==0&&mt!==null){var o=mt,h=Ce;switch(Ot){case 8:go(),u=6;break t;case 3:case 2:case 9:case 6:Me.current===null&&(e=!0);var S=Ot;if(Ot=0,Ce=null,Pa(t,o,h,S),l&&Fa){u=0;break t}break;default:S=Ot,Ot=0,Ce=null,Pa(t,o,h,S)}}rm(),u=Vt;break}catch(_){td(t,_)}while(!0);return e&&t.shellSuspendCounter++,rl=ua=null,_t=a,A.H=n,A.A=i,mt===null&&(Ut=null,pt=0,zi()),u}function rm(){for(;mt!==null;)nd(mt)}function fm(t,e){var l=_t;_t|=2;var a=ld(),n=ad();Ut!==t||pt!==e?(eu=null,tu=Qt()+500,Ia(t,e)):Fa=rn(t,e);t:do try{if(Ot!==0&&mt!==null){e=mt;var i=Ce;e:switch(Ot){case 1:Ot=0,Ce=null,Pa(t,e,i,1);break;case 2:case 9:if(hr(i)){Ot=0,Ce=null,id(e);break}e=function(){Ot!==2&&Ot!==9||Ut!==t||(Ot=7),Pe(t)},i.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:hr(i)?(Ot=0,Ce=null,id(e)):(Ot=0,Ce=null,Pa(t,e,i,7));break;case 5:var u=null;switch(mt.tag){case 26:u=mt.memoizedState;case 5:case 27:var o=mt;if(u?Xd(u):o.stateNode.complete){Ot=0,Ce=null;var h=o.sibling;if(h!==null)mt=h;else{var S=o.return;S!==null?(mt=S,nu(S)):mt=null}break e}}Ot=0,Ce=null,Pa(t,e,i,5);break;case 6:Ot=0,Ce=null,Pa(t,e,i,6);break;case 8:go(),Vt=6;break t;default:throw Error(r(462))}}dm();break}catch(_){td(t,_)}while(!0);return rl=ua=null,A.H=a,A.A=n,_t=l,mt!==null?0:(Ut=null,pt=0,zi(),Vt)}function dm(){for(;mt!==null&&!Nt();)nd(mt)}function nd(t){var e=Mf(t.alternate,t,xl);t.memoizedProps=t.pendingProps,e===null?nu(t):mt=e}function id(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Tf(l,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=Tf(l,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:Cc(e);default:Cf(l,e),e=mt=lr(e,xl),e=Mf(l,e,xl)}t.memoizedProps=t.pendingProps,e===null?nu(t):mt=e}function Pa(t,e,l,a){rl=ua=null,Cc(e),Ga=null,_n=0;var n=e.return;try{if(tm(t,n,e,l,pt)){Vt=1,Qi(t,ke(l,t.current)),mt=null;return}}catch(i){if(n!==null)throw mt=n,i;Vt=1,Qi(t,ke(l,t.current)),mt=null;return}e.flags&32768?(xt||a===1?t=!0:Fa||(pt&536870912)!==0?t=!1:(kl=t=!0,(a===2||a===9||a===3||a===6)&&(a=Me.current,a!==null&&a.tag===13&&(a.flags|=16384))),ud(e,t)):nu(e)}function nu(t){var e=t;do{if((e.flags&32768)!==0){ud(e,kl);return}t=e.return;var l=am(e.alternate,e,xl);if(l!==null){mt=l;return}if(e=e.sibling,e!==null){mt=e;return}mt=e=t}while(e!==null);Vt===0&&(Vt=5)}function ud(t,e){do{var l=nm(t.alternate,t);if(l!==null){l.flags&=32767,mt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){mt=t;return}mt=t=l}while(t!==null);Vt=6,mt=null}function cd(t,e,l,a,n,i,u,o,h){t.cancelPendingCommit=null;do iu();while(le!==0);if((_t&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(i=e.lanes|e.childLanes,i|=ac,Q0(t,l,i,u,o,h),t===Ut&&(mt=Ut=null,pt=0),Wa=e,Yl=t,Sl=l,fo=i,ho=n,$f=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ym(ci,function(){return dd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=k.p,k.p=2,u=_t,_t|=4;try{im(t,e,l)}finally{_t=u,k.p=n,A.T=a}}le=1,od(),sd(),rd()}}function od(){if(le===1){le=0;var t=Yl,e=Wa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=k.p;k.p=2;var n=_t;_t|=4;try{Gf(e,t);var i=Mo,u=Vs(t.containerInfo),o=i.focusedElem,h=i.selectionRange;if(u!==o&&o&&o.ownerDocument&&Ks(o.ownerDocument.documentElement,o)){if(h!==null&&Iu(o)){var S=h.start,_=h.end;if(_===void 0&&(_=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(_,o.value.length);else{var C=o.ownerDocument||document,T=C&&C.defaultView||window;if(T.getSelection){var E=T.getSelection(),X=o.textContent.length,tt=Math.min(h.start,X),Bt=h.end===void 0?tt:Math.min(h.end,X);!E.extend&&tt>Bt&&(u=Bt,Bt=tt,tt=u);var b=Qs(o,tt),g=Qs(o,Bt);if(b&&g&&(E.rangeCount!==1||E.anchorNode!==b.node||E.anchorOffset!==b.offset||E.focusNode!==g.node||E.focusOffset!==g.offset)){var x=C.createRange();x.setStart(b.node,b.offset),E.removeAllRanges(),tt>Bt?(E.addRange(x),E.extend(g.node,g.offset)):(x.setEnd(g.node,g.offset),E.addRange(x))}}}}for(C=[],E=o;E=E.parentNode;)E.nodeType===1&&C.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<C.length;o++){var O=C[o];O.element.scrollLeft=O.left,O.element.scrollTop=O.top}}pu=!!_o,Mo=_o=null}finally{_t=n,k.p=a,A.T=l}}t.current=e,le=2}}function sd(){if(le===2){le=0;var t=Yl,e=Wa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=k.p;k.p=2;var n=_t;_t|=4;try{Nf(t,e.alternate,e)}finally{_t=n,k.p=a,A.T=l}}le=3}}function rd(){if(le===4||le===3){le=0,Yt();var t=Yl,e=Wa,l=Sl,a=$f;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?le=5:(le=0,Wa=Yl=null,fd(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Ll=null),wu(l),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(sn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=A.T,n=k.p,k.p=2,A.T=null;try{for(var i=t.onRecoverableError,u=0;u<a.length;u++){var o=a[u];i(o.value,{componentStack:o.stack})}}finally{A.T=e,k.p=n}}(Sl&3)!==0&&iu(),Pe(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===mo?Xn++:(Xn=0,mo=t):Xn=0,Qn(0)}}function fd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,jn(e)))}function iu(){return od(),sd(),rd(),dd()}function dd(){if(le!==5)return!1;var t=Yl,e=fo;fo=0;var l=wu(Sl),a=A.T,n=k.p;try{k.p=32>l?32:l,A.T=null,l=ho,ho=null;var i=Yl,u=Sl;if(le=0,Wa=Yl=null,Sl=0,(_t&6)!==0)throw Error(r(331));var o=_t;if(_t|=4,Vf(i.current),Xf(i,i.current,u,l),_t=o,Qn(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(sn,i)}catch{}return!0}finally{k.p=n,A.T=a,fd(t,e)}}function hd(t,e,l){e=ke(l,e),e=Qc(t.stateNode,e,2),t=Bl(t,e,2),t!==null&&(fn(t,2),Pe(t))}function Ct(t,e,l){if(t.tag===3)hd(t,t,l);else for(;e!==null;){if(e.tag===3){hd(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ll===null||!Ll.has(a))){t=ke(l,t),l=mf(2),a=Bl(e,l,2),a!==null&&(gf(l,a,e,t),fn(a,2),Pe(a));break}}e=e.return}}function po(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new om;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(oo=!0,n.add(l),t=hm.bind(null,t,e,l),e.then(t,t))}function hm(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Ut===t&&(pt&l)===l&&(Vt===4||Vt===3&&(pt&62914560)===pt&&300>Qt()-Pi?(_t&2)===0&&Ia(t,0):so|=l,$a===pt&&($a=0)),Pe(t)}function md(t,e){e===0&&(e=cs()),t=aa(t,e),t!==null&&(fn(t,e),Pe(t))}function mm(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),md(t,l)}function gm(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),md(t,l)}function ym(t,e){return Wl(t,e)}var uu=null,tn=null,vo=!1,cu=!1,bo=!1,Zl=0;function Pe(t){t!==tn&&t.next===null&&(tn===null?uu=tn=t:tn=tn.next=t),cu=!0,vo||(vo=!0,vm())}function Qn(t,e){if(!bo&&cu){bo=!0;do for(var l=!1,a=uu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-je(42|t)+1)-1,i&=n&~(u&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,vd(a,i))}else i=pt,i=fi(a,a===Ut?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||rn(a,i)||(l=!0,vd(a,i));a=a.next}while(l);bo=!1}}function pm(){gd()}function gd(){cu=vo=!1;var t=0;Zl!==0&&Mm()&&(t=Zl);for(var e=Qt(),l=null,a=uu;a!==null;){var n=a.next,i=yd(a,e);i===0?(a.next=null,l===null?uu=n:l.next=n,n===null&&(tn=l)):(l=a,(t!==0||(i&3)!==0)&&(cu=!0)),a=n}le!==0&&le!==5||Qn(t),Zl!==0&&(Zl=0)}function yd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var u=31-je(i),o=1<<u,h=n[u];h===-1?((o&l)===0||(o&a)!==0)&&(n[u]=X0(o,e)):h<=e&&(t.expiredLanes|=o),i&=~o}if(e=Ut,l=pt,l=fi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&w(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||rn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&w(a),wu(l)){case 2:case 8:l=ui;break;case 32:l=ci;break;case 268435456:l=us;break;default:l=ci}return a=pd.bind(null,t),l=Wl(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&w(a),t.callbackPriority=2,t.callbackNode=null,2}function pd(t,e){if(le!==0&&le!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(iu()&&t.callbackNode!==l)return null;var a=pt;return a=fi(t,t===Ut?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(If(t,a,e),yd(t,Qt()),t.callbackNode!=null&&t.callbackNode===l?pd.bind(null,t):null)}function vd(t,e){if(iu())return null;If(t,e,!0)}function vm(){Cm(function(){(_t&6)!==0?Wl(xa,pm):gd()})}function xo(){if(Zl===0){var t=qa;t===0&&(t=oi,oi<<=1,(oi&261888)===0&&(oi=256)),Zl=t}return Zl}function bd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:gi(""+t)}function xd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function bm(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=bd((n[ge]||null).action),u=a.submitter;u&&(e=(e=u[ge]||null)?bd(e.formAction):u.getAttribute("formAction"),e!==null&&(i=e,u=null));var o=new bi("action","action",null,a,n);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Zl!==0){var h=u?xd(n,u):new FormData(n);qc(l,{pending:!0,data:h,method:n.method,action:i},null,h)}}else typeof i=="function"&&(o.preventDefault(),h=u?xd(n,u):new FormData(n),qc(l,{pending:!0,data:h,method:n.method,action:i},i,h))},currentTarget:n}]})}}for(var So=0;So<lc.length;So++){var To=lc[So],xm=To.toLowerCase(),Sm=To[0].toUpperCase()+To.slice(1);Ve(xm,"on"+Sm)}Ve($s,"onAnimationEnd"),Ve(Ws,"onAnimationIteration"),Ve(Is,"onAnimationStart"),Ve("dblclick","onDoubleClick"),Ve("focusin","onFocus"),Ve("focusout","onBlur"),Ve(Nh,"onTransitionRun"),Ve(kh,"onTransitionStart"),Ve(qh,"onTransitionCancel"),Ve(Ps,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),Pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kn="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(" "),Tm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kn));function Sd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var u=a.length-1;0<=u;u--){var o=a[u],h=o.instance,S=o.currentTarget;if(o=o.listener,h!==i&&n.isPropagationStopped())break t;i=o,n.currentTarget=S;try{i(n)}catch(_){Ti(_)}n.currentTarget=null,i=h}else for(u=0;u<a.length;u++){if(o=a[u],h=o.instance,S=o.currentTarget,o=o.listener,h!==i&&n.isPropagationStopped())break t;i=o,n.currentTarget=S;try{i(n)}catch(_){Ti(_)}n.currentTarget=null,i=h}}}}function gt(t,e){var l=e[Bu];l===void 0&&(l=e[Bu]=new Set);var a=t+"__bubble";l.has(a)||(Td(e,t,2,!1),l.add(a))}function zo(t,e,l){var a=0;e&&(a|=4),Td(l,t,a,e)}var ou="_reactListening"+Math.random().toString(36).slice(2);function Eo(t){if(!t[ou]){t[ou]=!0,ms.forEach(function(l){l!=="selectionchange"&&(Tm.has(l)||zo(l,!1,t),zo(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ou]||(e[ou]=!0,zo("selectionchange",!1,e))}}function Td(t,e,l,a){switch(Wd(e)){case 2:var n=$m;break;case 8:n=Wm;break;default:n=qo}l=n.bind(null,e,l,t),n=void 0,!Zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function jo(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var o=a.stateNode.containerInfo;if(o===n)break;if(u===4)for(u=a.return;u!==null;){var h=u.tag;if((h===3||h===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;o!==null;){if(u=Ta(o),u===null)return;if(h=u.tag,h===5||h===6||h===26||h===27){a=i=u;continue t}o=o.parentNode}}a=a.return}As(function(){var S=i,_=Yu(l),C=[];t:{var T=tr.get(t);if(T!==void 0){var E=bi,X=t;switch(t){case"keypress":if(pi(l)===0)break t;case"keydown":case"keyup":E=gh;break;case"focusin":X="focus",E=Vu;break;case"focusout":X="blur",E=Vu;break;case"beforeblur":case"afterblur":E=Vu;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=Os;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=ah;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=vh;break;case $s:case Ws:case Is:E=uh;break;case Ps:E=xh;break;case"scroll":case"scrollend":E=eh;break;case"wheel":E=Th;break;case"copy":case"cut":case"paste":E=oh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Rs;break;case"toggle":case"beforetoggle":E=Eh}var tt=(e&4)!==0,Bt=!tt&&(t==="scroll"||t==="scrollend"),b=tt?T!==null?T+"Capture":null:T;tt=[];for(var g=S,x;g!==null;){var O=g;if(x=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||x===null||b===null||(O=mn(g,b),O!=null&&tt.push(Vn(g,O,x))),Bt)break;g=g.return}0<tt.length&&(T=new E(T,X,null,l,_),C.push({event:T,listeners:tt}))}}if((e&7)===0){t:{if(T=t==="mouseover"||t==="pointerover",E=t==="mouseout"||t==="pointerout",T&&l!==Lu&&(X=l.relatedTarget||l.fromElement)&&(Ta(X)||X[Sa]))break t;if((E||T)&&(T=_.window===_?_:(T=_.ownerDocument)?T.defaultView||T.parentWindow:window,E?(X=l.relatedTarget||l.toElement,E=S,X=X?Ta(X):null,X!==null&&(Bt=y(X),tt=X.tag,X!==Bt||tt!==5&&tt!==27&&tt!==6)&&(X=null)):(E=null,X=S),E!==X)){if(tt=Os,O="onMouseLeave",b="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(tt=Rs,O="onPointerLeave",b="onPointerEnter",g="pointer"),Bt=E==null?T:hn(E),x=X==null?T:hn(X),T=new tt(O,g+"leave",E,l,_),T.target=Bt,T.relatedTarget=x,O=null,Ta(_)===S&&(tt=new tt(b,g+"enter",X,l,_),tt.target=x,tt.relatedTarget=Bt,O=tt),Bt=O,E&&X)e:{for(tt=zm,b=E,g=X,x=0,O=b;O;O=tt(O))x++;O=0;for(var W=g;W;W=tt(W))O++;for(;0<x-O;)b=tt(b),x--;for(;0<O-x;)g=tt(g),O--;for(;x--;){if(b===g||g!==null&&b===g.alternate){tt=b;break e}b=tt(b),g=tt(g)}tt=null}else tt=null;E!==null&&zd(C,T,E,tt,!1),X!==null&&Bt!==null&&zd(C,Bt,X,tt,!0)}}t:{if(T=S?hn(S):window,E=T.nodeName&&T.nodeName.toLowerCase(),E==="select"||E==="input"&&T.type==="file")var Et=qs;else if(Ns(T))if(Ls)Et=Bh;else{Et=Dh;var J=Rh}else E=T.nodeName,!E||E.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?S&&qu(S.elementType)&&(Et=qs):Et=wh;if(Et&&(Et=Et(t,S))){ks(C,Et,l,_);break t}J&&J(t,T,S),t==="focusout"&&S&&T.type==="number"&&S.memoizedProps.value!=null&&ku(T,"number",T.value)}switch(J=S?hn(S):window,t){case"focusin":(Ns(J)||J.contentEditable==="true")&&(Ra=J,Pu=S,Tn=null);break;case"focusout":Tn=Pu=Ra=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,Js(C,l,_);break;case"selectionchange":if(Hh)break;case"keydown":case"keyup":Js(C,l,_)}var st;if(Fu)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else Ca?Us(t,l)&&(vt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(vt="onCompositionStart");vt&&(Ds&&l.locale!=="ko"&&(Ca||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Ca&&(st=_s()):(_l=_,Xu="value"in _l?_l.value:_l.textContent,Ca=!0)),J=su(S,vt),0<J.length&&(vt=new Cs(vt,t,null,l,_),C.push({event:vt,listeners:J}),st?vt.data=st:(st=Hs(l),st!==null&&(vt.data=st)))),(st=Ah?_h(t,l):Mh(t,l))&&(vt=su(S,"onBeforeInput"),0<vt.length&&(J=new Cs("onBeforeInput","beforeinput",null,l,_),C.push({event:J,listeners:vt}),J.data=st)),bm(C,t,S,l,_)}Sd(C,e)})}function Vn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function su(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=mn(t,l),n!=null&&a.unshift(Vn(t,n,i)),n=mn(t,e),n!=null&&a.push(Vn(t,n,i))),t.tag===3)return a;t=t.return}return[]}function zm(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function zd(t,e,l,a,n){for(var i=e._reactName,u=[];l!==null&&l!==a;){var o=l,h=o.alternate,S=o.stateNode;if(o=o.tag,h!==null&&h===a)break;o!==5&&o!==26&&o!==27||S===null||(h=S,n?(S=mn(l,i),S!=null&&u.unshift(Vn(l,S,h))):n||(S=mn(l,i),S!=null&&u.push(Vn(l,S,h)))),l=l.return}u.length!==0&&t.push({event:e,listeners:u})}var Em=/\r\n?/g,jm=/\u0000|\uFFFD/g;function Ed(t){return(typeof t=="string"?t:""+t).replace(Em,`
|
|
49
|
-
`).replace(jm,"")}function jd(t,e){return e=Ed(e),Ed(t)===e}function wt(t,e,l,a,n,i){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||_a(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&_a(t,""+a);break;case"className":hi(t,"class",a);break;case"tabIndex":hi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":hi(t,l,a);break;case"style":Es(t,a,i);break;case"data":if(e!=="object"){hi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=gi(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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 i=="function"&&(l==="formAction"?(e!=="input"&&wt(t,e,"name",n.name,n,null),wt(t,e,"formEncType",n.formEncType,n,null),wt(t,e,"formMethod",n.formMethod,n,null),wt(t,e,"formTarget",n.formTarget,n,null)):(wt(t,e,"encType",n.encType,n,null),wt(t,e,"method",n.method,n,null),wt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=gi(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=ul);break;case"onScroll":a!=null&>("scroll",t);break;case"onScrollEnd":a!=null&>("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=gi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":gt("beforetoggle",t),gt("toggle",t),di(t,"popover",a);break;case"xlinkActuate":il(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":il(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":il(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":il(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":il(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":il(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":il(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":il(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":il(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":di(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=P0.get(l)||l,di(t,l,a))}}function Ao(t,e,l,a,n,i){switch(l){case"style":Es(t,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?_a(t,a):(typeof a=="number"||typeof a=="bigint")&&_a(t,""+a);break;case"onScroll":a!=null&>("scroll",t);break;case"onScrollEnd":a!=null&>("scrollend",t);break;case"onClick":a!=null&&(t.onclick=ul);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gs.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),i=t[ge]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):di(t,l,a)}}}function se(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":gt("error",t),gt("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:wt(t,e,i,u,l,null)}}n&&wt(t,e,"srcSet",l.srcSet,l,null),a&&wt(t,e,"src",l.src,l,null);return;case"input":gt("invalid",t);var o=i=u=n=null,h=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var _=l[a];if(_!=null)switch(a){case"name":n=_;break;case"type":u=_;break;case"checked":h=_;break;case"defaultChecked":S=_;break;case"value":i=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,e));break;default:wt(t,e,a,_,l,null)}}xs(t,i,o,h,S,u,n,!1);return;case"select":gt("invalid",t),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":i=o;break;case"defaultValue":u=o;break;case"multiple":a=o;default:wt(t,e,n,o,l,null)}e=i,l=u,t.multiple=!!a,e!=null?Aa(t,!!a,e,!1):l!=null&&Aa(t,!!a,l,!0);return;case"textarea":gt("invalid",t),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(o=l[u],o!=null))switch(u){case"value":a=o;break;case"defaultValue":n=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:wt(t,e,u,o,l,null)}Ts(t,a,n,i);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(a=l[h],a!=null))switch(h){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:wt(t,e,h,a,l,null)}return;case"dialog":gt("beforetoggle",t),gt("toggle",t),gt("cancel",t),gt("close",t);break;case"iframe":case"object":gt("load",t);break;case"video":case"audio":for(a=0;a<Kn.length;a++)gt(Kn[a],t);break;case"image":gt("error",t),gt("load",t);break;case"details":gt("toggle",t);break;case"embed":case"source":case"link":gt("error",t),gt("load",t);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 l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:wt(t,e,S,a,l,null)}return;default:if(qu(e)){for(_ in l)l.hasOwnProperty(_)&&(a=l[_],a!==void 0&&Ao(t,e,_,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&wt(t,e,o,a,l,null))}function Am(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,o=null,h=null,S=null,_=null;for(E in l){var C=l[E];if(l.hasOwnProperty(E)&&C!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":h=C;default:a.hasOwnProperty(E)||wt(t,e,E,null,a,C)}}for(var T in a){var E=a[T];if(C=l[T],a.hasOwnProperty(T)&&(E!=null||C!=null))switch(T){case"type":i=E;break;case"name":n=E;break;case"checked":S=E;break;case"defaultChecked":_=E;break;case"value":u=E;break;case"defaultValue":o=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,e));break;default:E!==C&&wt(t,e,T,E,a,C)}}Nu(t,u,o,h,S,_,i,n);return;case"select":E=u=o=T=null;for(i in l)if(h=l[i],l.hasOwnProperty(i)&&h!=null)switch(i){case"value":break;case"multiple":E=h;default:a.hasOwnProperty(i)||wt(t,e,i,null,a,h)}for(n in a)if(i=a[n],h=l[n],a.hasOwnProperty(n)&&(i!=null||h!=null))switch(n){case"value":T=i;break;case"defaultValue":o=i;break;case"multiple":u=i;default:i!==h&&wt(t,e,n,i,a,h)}e=o,l=u,a=E,T!=null?Aa(t,!!l,T,!1):!!a!=!!l&&(e!=null?Aa(t,!!l,e,!0):Aa(t,!!l,l?[]:"",!1));return;case"textarea":E=T=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:wt(t,e,o,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":T=n;break;case"defaultValue":E=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&wt(t,e,u,n,a,i)}Ss(t,T,E);return;case"option":for(var X in l)if(T=l[X],l.hasOwnProperty(X)&&T!=null&&!a.hasOwnProperty(X))switch(X){case"selected":t.selected=!1;break;default:wt(t,e,X,null,a,T)}for(h in a)if(T=a[h],E=l[h],a.hasOwnProperty(h)&&T!==E&&(T!=null||E!=null))switch(h){case"selected":t.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:wt(t,e,h,T,a,E)}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 tt in l)T=l[tt],l.hasOwnProperty(tt)&&T!=null&&!a.hasOwnProperty(tt)&&wt(t,e,tt,null,a,T);for(S in a)if(T=a[S],E=l[S],a.hasOwnProperty(S)&&T!==E&&(T!=null||E!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,e));break;default:wt(t,e,S,T,a,E)}return;default:if(qu(e)){for(var Bt in l)T=l[Bt],l.hasOwnProperty(Bt)&&T!==void 0&&!a.hasOwnProperty(Bt)&&Ao(t,e,Bt,void 0,a,T);for(_ in a)T=a[_],E=l[_],!a.hasOwnProperty(_)||T===E||T===void 0&&E===void 0||Ao(t,e,_,T,a,E);return}}for(var b in l)T=l[b],l.hasOwnProperty(b)&&T!=null&&!a.hasOwnProperty(b)&&wt(t,e,b,null,a,T);for(C in a)T=a[C],E=l[C],!a.hasOwnProperty(C)||T===E||T==null&&E==null||wt(t,e,C,T,a,E)}function Ad(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _m(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,u=n.initiatorType,o=n.duration;if(i&&o&&Ad(u)){for(u=0,o=n.responseEnd,a+=1;a<l.length;a++){var h=l[a],S=h.startTime;if(S>o)break;var _=h.transferSize,C=h.initiatorType;_&&Ad(C)&&(h=h.responseEnd,u+=_*(h<o?1:(o-S)/(h-S)))}if(--a,e+=8*(i+u)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var _o=null,Mo=null;function ru(t){return t.nodeType===9?t:t.ownerDocument}function _d(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Md(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Oo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Co=null;function Mm(){var t=window.event;return t&&t.type==="popstate"?t===Co?!1:(Co=t,!0):(Co=null,!1)}var Od=typeof setTimeout=="function"?setTimeout:void 0,Om=typeof clearTimeout=="function"?clearTimeout:void 0,Cd=typeof Promise=="function"?Promise:void 0,Cm=typeof queueMicrotask=="function"?queueMicrotask:typeof Cd<"u"?function(t){return Cd.resolve(null).then(t).catch(Rm)}:Od;function Rm(t){setTimeout(function(){throw t})}function Xl(t){return t==="head"}function Rd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),nn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Jn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Jn(l);for(var i=l.firstChild;i;){var u=i.nextSibling,o=i.nodeName;i[dn]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&Jn(t.ownerDocument.body);l=n}while(l);nn(e)}function Dd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function Ro(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Ro(l),Uu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Dm(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[dn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function wm(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ze(t.nextSibling),t===null))return null;return t}function wd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function Do(t){return t.data==="$?"||t.data==="$~"}function wo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Bm(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Bo=null;function Bd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ze(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Ud(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Hd(t,e,l){switch(e=ru(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Jn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Uu(t)}var Xe=new Map,Nd=new Set;function fu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Tl=k.d;k.d={f:Um,r:Hm,D:Nm,C:km,L:qm,m:Lm,X:Gm,S:Ym,M:Zm};function Um(){var t=Tl.f(),e=lu();return t||e}function Hm(t){var e=za(t);e!==null&&e.tag===5&&e.type==="form"?Pr(e):Tl.r(t)}var en=typeof document>"u"?null:document;function kd(t,e,l){var a=en;if(a&&typeof e=="string"&&e){var n=He(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Nd.has(n)||(Nd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),se(e,"link",t),ae(e),a.head.appendChild(e)))}}function Nm(t){Tl.D(t),kd("dns-prefetch",t,null)}function km(t,e){Tl.C(t,e),kd("preconnect",t,e)}function qm(t,e,l){Tl.L(t,e,l);var a=en;if(a&&t&&e){var n='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+He(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+He(l.imageSizes)+'"]')):n+='[href="'+He(t)+'"]';var i=n;switch(e){case"style":i=ln(t);break;case"script":i=an(t)}Xe.has(i)||(t=L({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Xe.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Fn(i))||e==="script"&&a.querySelector($n(i))||(e=a.createElement("link"),se(e,"link",t),ae(e),a.head.appendChild(e)))}}function Lm(t,e){Tl.m(t,e);var l=en;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+He(a)+'"][href="'+He(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=an(t)}if(!Xe.has(i)&&(t=L({rel:"modulepreload",href:t},e),Xe.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector($n(i)))return}a=l.createElement("link"),se(a,"link",t),ae(a),l.head.appendChild(a)}}}function Ym(t,e,l){Tl.S(t,e,l);var a=en;if(a&&t){var n=Ea(a).hoistableStyles,i=ln(t);e=e||"default";var u=n.get(i);if(!u){var o={loading:0,preload:null};if(u=a.querySelector(Fn(i)))o.loading=5;else{t=L({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Xe.get(i))&&Uo(t,l);var h=u=a.createElement("link");ae(h),se(h,"link",t),h._p=new Promise(function(S,_){h.onload=S,h.onerror=_}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,du(u,e,a)}u={type:"stylesheet",instance:u,count:1,state:o},n.set(i,u)}}}function Gm(t,e){Tl.X(t,e);var l=en;if(l&&t){var a=Ea(l).hoistableScripts,n=an(t),i=a.get(n);i||(i=l.querySelector($n(n)),i||(t=L({src:t,async:!0},e),(e=Xe.get(n))&&Ho(t,e),i=l.createElement("script"),ae(i),se(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Zm(t,e){Tl.M(t,e);var l=en;if(l&&t){var a=Ea(l).hoistableScripts,n=an(t),i=a.get(n);i||(i=l.querySelector($n(n)),i||(t=L({src:t,async:!0,type:"module"},e),(e=Xe.get(n))&&Ho(t,e),i=l.createElement("script"),ae(i),se(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function qd(t,e,l,a){var n=(n=V.current)?fu(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=ln(l.href),l=Ea(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ln(l.href);var i=Ea(n).hoistableStyles,u=i.get(t);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,u),(i=n.querySelector(Fn(t)))&&!i._p&&(u.instance=i,u.state.loading=5),Xe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xe.set(t,l),i||Xm(n,t,l,u.state))),e&&a===null)throw Error(r(528,""));return u}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=an(l),l=Ea(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ln(t){return'href="'+He(t)+'"'}function Fn(t){return'link[rel="stylesheet"]['+t+"]"}function Ld(t){return L({},t,{"data-precedence":t.precedence,precedence:null})}function Xm(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),se(e,"link",l),ae(e),t.head.appendChild(e))}function an(t){return'[src="'+He(t)+'"]'}function $n(t){return"script[async]"+t}function Yd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+He(l.href)+'"]');if(a)return e.instance=a,ae(a),a;var n=L({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),ae(a),se(a,"style",n),du(a,l.precedence,t),e.instance=a;case"stylesheet":n=ln(l.href);var i=t.querySelector(Fn(n));if(i)return e.state.loading|=4,e.instance=i,ae(i),i;a=Ld(l),(n=Xe.get(n))&&Uo(a,n),i=(t.ownerDocument||t).createElement("link"),ae(i);var u=i;return u._p=new Promise(function(o,h){u.onload=o,u.onerror=h}),se(i,"link",a),e.state.loading|=4,du(i,l.precedence,t),e.instance=i;case"script":return i=an(l.src),(n=t.querySelector($n(i)))?(e.instance=n,ae(n),n):(a=l,(n=Xe.get(i))&&(a=L({},l),Ho(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),ae(n),se(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,du(a,l.precedence,t));return e.instance}function du(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var o=a[u];if(o.dataset.precedence===e)i=o;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Uo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ho(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var hu=null;function Gd(t,e,l){if(hu===null){var a=new Map,n=hu=new Map;n.set(l,a)}else n=hu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[dn]||i[ie]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(e)||"";u=t+u;var o=a.get(u);o?o.push(i):a.set(u,[i])}}return a}function Zd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Qm(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Xd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Km(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=ln(a.href),i=e.querySelector(Fn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=mu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,ae(i);return}i=e.ownerDocument||e,a=Ld(a),(n=Xe.get(n))&&Uo(a,n),i=i.createElement("link"),ae(i);var u=i;u._p=new Promise(function(o,h){u.onload=o,u.onerror=h}),se(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=mu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var No=0;function Vm(t,e){return t.stylesheets&&t.count===0&&yu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&yu(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&No===0&&(No=62500*_m());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&yu(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>No?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function mu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var gu=null;function yu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,gu=new Map,e.forEach(Jm,t),gu=null,mu.call(t))}function Jm(t,e){if(!(e.state.loading&4)){var l=gu.get(t);if(l)var a=l.get(null);else{l=new Map,gu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=e.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=mu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Wn={$$typeof:yt,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Fm(t,e,l,a,n,i,u,o,h){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.hiddenUpdates=Ru(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function Qd(t,e,l,a,n,i,u,o,h,S,_,C){return t=new Fm(t,e,l,u,h,S,_,C,o),e=1,i===!0&&(e|=24),i=_e(3,null,null,e),t.current=i,i.stateNode=t,e=gc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},bc(i),t}function Kd(t){return t?(t=Ba,t):Ba}function Vd(t,e,l,a,n,i){n=Kd(n),a.context===null?a.context=n:a.pendingContext=n,a=wl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Bl(t,a,e),l!==null&&(Se(l,t,e),On(l,t,e))}function Jd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function ko(t,e){Jd(t,e),(t=t.alternate)&&Jd(t,e)}function Fd(t){if(t.tag===13||t.tag===31){var e=aa(t,67108864);e!==null&&Se(e,t,67108864),ko(t,67108864)}}function $d(t){if(t.tag===13||t.tag===31){var e=De();e=Du(e);var l=aa(t,e);l!==null&&Se(l,t,e),ko(t,e)}}var pu=!0;function $m(t,e,l,a){var n=A.T;A.T=null;var i=k.p;try{k.p=2,qo(t,e,l,a)}finally{k.p=i,A.T=n}}function Wm(t,e,l,a){var n=A.T;A.T=null;var i=k.p;try{k.p=8,qo(t,e,l,a)}finally{k.p=i,A.T=n}}function qo(t,e,l,a){if(pu){var n=Lo(a);if(n===null)jo(t,e,a,vu,l),Id(t,a);else if(Pm(n,t,e,l,a))a.stopPropagation();else if(Id(t,a),e&4&&-1<Im.indexOf(t)){for(;n!==null;){var i=za(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=Il(i.pendingLanes);if(u!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var h=1<<31-je(u);o.entanglements[1]|=h,u&=~h}Pe(i),(_t&6)===0&&(tu=Qt()+500,Qn(0))}}break;case 31:case 13:o=aa(i,2),o!==null&&Se(o,i,2),lu(),ko(i,2)}if(i=Lo(a),i===null&&jo(t,e,a,vu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else jo(t,e,a,null,l)}}function Lo(t){return t=Yu(t),Yo(t)}var vu=null;function Yo(t){if(vu=null,t=Ta(t),t!==null){var e=y(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=N(e),t!==null)return t;t=null}else if(l===31){if(t=Q(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return vu=t,null}function Wd(t){switch(t){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 2;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 8;case"message":switch(Ke()){case xa:return 2;case ui:return 8;case ci:case k0:return 32;case us:return 268435456;default:return 32}default:return 32}}var Go=!1,Ql=null,Kl=null,Vl=null,In=new Map,Pn=new Map,Jl=[],Im="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(" ");function Id(t,e){switch(t){case"focusin":case"focusout":Ql=null;break;case"dragenter":case"dragleave":Kl=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":In.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pn.delete(e.pointerId)}}function ti(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=za(e),e!==null&&Fd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Pm(t,e,l,a,n){switch(e){case"focusin":return Ql=ti(Ql,t,e,l,a,n),!0;case"dragenter":return Kl=ti(Kl,t,e,l,a,n),!0;case"mouseover":return Vl=ti(Vl,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return In.set(i,ti(In.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Pn.set(i,ti(Pn.get(i)||null,t,e,l,a,n)),!0}return!1}function Pd(t){var e=Ta(t.target);if(e!==null){var l=y(e);if(l!==null){if(e=l.tag,e===13){if(e=N(l),e!==null){t.blockedOn=e,ds(t.priority,function(){$d(l)});return}}else if(e===31){if(e=Q(l),e!==null){t.blockedOn=e,ds(t.priority,function(){$d(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function bu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Lo(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Lu=a,l.target.dispatchEvent(a),Lu=null}else return e=za(l),e!==null&&Fd(e),t.blockedOn=l,!1;e.shift()}return!0}function t0(t,e,l){bu(t)&&l.delete(e)}function t1(){Go=!1,Ql!==null&&bu(Ql)&&(Ql=null),Kl!==null&&bu(Kl)&&(Kl=null),Vl!==null&&bu(Vl)&&(Vl=null),In.forEach(t0),Pn.forEach(t0)}function xu(t,e){t.blockedOn===e&&(t.blockedOn=null,Go||(Go=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,t1)))}var Su=null;function e0(t){Su!==t&&(Su=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){Su===t&&(Su=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Yo(a||l)===null)continue;break}var i=za(l);i!==null&&(t.splice(e,3),e-=3,qc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function nn(t){function e(h){return xu(h,t)}Ql!==null&&xu(Ql,t),Kl!==null&&xu(Kl,t),Vl!==null&&xu(Vl,t),In.forEach(e),Pn.forEach(e);for(var l=0;l<Jl.length;l++){var a=Jl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Jl.length&&(l=Jl[0],l.blockedOn===null);)Pd(l),l.blockedOn===null&&Jl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[ge]||null;if(typeof i=="function")u||e0(l);else if(u){var o=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[ge]||null)o=u.formAction;else if(Yo(n)!==null)continue}else o=u.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),e0(l)}}}function l0(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Zo(t){this._internalRoot=t}Tu.prototype.render=Zo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=De();Vd(l,a,t,e,null,null)},Tu.prototype.unmount=Zo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Vd(t.current,2,null,t,null,null),lu(),e[Sa]=null}};function Tu(t){this._internalRoot=t}Tu.prototype.unstable_scheduleHydration=function(t){if(t){var e=fs();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Jl.length&&e!==0&&e<Jl[l].priority;l++);Jl.splice(l,0,t),l===0&&Pd(t)}};var a0=f.version;if(a0!=="19.2.7")throw Error(r(527,a0,"19.2.7"));k.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=z(e),t=t!==null?K(t):null,t=t===null?null:t.stateNode,t};var e1={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{sn=zu.inject(e1),Ee=zu}catch{}}return li.createRoot=function(t,e){if(!v(t))throw Error(r(299));var l=!1,a="",n=rf,i=ff,u=df;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(u=e.onRecoverableError)),e=Qd(t,1,!1,null,null,l,a,null,n,i,u,l0),t[Sa]=e.current,Eo(t),new Zo(e)},li.hydrateRoot=function(t,e,l){if(!v(t))throw Error(r(299));var a=!1,n="",i=rf,u=ff,o=df,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),e=Qd(t,1,!0,e,l??null,a,n,h,i,u,o,l0),e.context=Kd(null),l=e.current,a=De(),a=Du(a),n=wl(a),n.callback=null,Bl(l,n,a),l=a,e.current.lanes=l,fn(e,l),Pe(e),t[Sa]=e.current,Eo(t),new Tu(e)},li.version="19.2.7",li}var h0;function f1(){if(h0)return Ko.exports;h0=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(f){console.error(f)}}return c(),Ko.exports=r1(),Ko.exports}var d1=f1();const Au="token",ts="mono-agent.session-web.authToken",es="mono-agent.session-web.authToken.persisted";let un;class $o extends Error{status;contentType;constructor(f,p,r={}){super(`${f} -> ${p}`),this.name="ApiError",this.status=r.status,this.contentType=r.contentType}}async function ls(c){const f={accept:"application/json"},p=M0();p!==void 0&&(f.authorization=`Bearer ${p}`);const r=await fetch(c,{headers:f});if(!r.ok)throw new $o(c,String(r.status),{status:r.status,contentType:r.headers.get("content-type")||void 0});const v=r.headers.get("content-type")||"";if(!v.includes("application/json"))throw new $o(c,`non-JSON (${v})`,{status:r.status,contentType:v});return await r.json()}async function h1(){return(await ls("/api/instances")).instances||[]}async function m0(c,f={}){const p=f.limit??200,r=f.offset??0,v=new URLSearchParams;v.set("instance",c),v.set("limit",String(p)),r>0&&v.set("offset",String(r));const y=await ls(`/api/sessions?${v.toString()}`),N=y.sessions||[],Q=typeof y.offset=="number"?y.offset:r,B=typeof y.limit=="number"?y.limit:p;return{sessions:N,...typeof y.total=="number"?{total:y.total}:{},offset:Q,limit:B,hasMore:y.hasMore===!0}}async function m1(c,f){const p=`/api/sessions/${encodeURIComponent(c)}/${encodeURIComponent(f)}`;return(await ls(p)).session}function g1({onMessage:c,onOpen:f,onError:p}){let r=null;try{r=new EventSource(y1("/api/stream"))}catch{return p?.(),()=>{}}return r.onopen=()=>f?.(),r.onerror=()=>p?.(),r.onmessage=v=>{try{c(JSON.parse(v.data))}catch{}},()=>r?.close()}function y1(c){const f=M0();if(f===void 0||typeof window>"u")return c;const p=new URL(c,window.location.origin);return p.searchParams.set(Au,f),`${p.pathname}${p.search}${p.hash}`}function M0(){if(typeof window>"u")return;const c=new URLSearchParams(window.location.search).get(Au)?.trim();if(c!==void 0&&c.length>0)return O0(c),C0(),c;if(un!==void 0)return un;try{const f=window.sessionStorage.getItem(ts)?.trim();if(f!==void 0&&f.length>0)return un=f,f}catch{}try{const f=window.localStorage.getItem(es)?.trim();return f===void 0||f.length===0?void 0:(un=f,f)}catch{return}}function O0(c){if(typeof window>"u")return;const f=c.trim();if(f){un=f;try{window.sessionStorage.setItem(ts,f)}catch{}try{window.localStorage.setItem(es,f)}catch{}}}function p1(){if(un=void 0,!(typeof window>"u")){try{window.sessionStorage.removeItem(ts)}catch{}try{window.localStorage.removeItem(es)}catch{}C0()}}function C0(){if(!(typeof window>"u"))try{const c=new URL(window.location.href);if(!c.searchParams.has(Au))return;c.searchParams.delete(Au);const f=`${c.pathname}${c.search}${c.hash}`;window.history.replaceState(window.history.state,"",f)}catch{}}const v1=[{sourceId:"personal-agent",label:"personal-agent",cwd:"/Users/example/personal-agent",artifactDir:"/Users/example/personal-agent/.mono-agent/runs",health:"ok",liveConnected:!0,counts:{runs:4}},{sourceId:"orchestrator",label:"orchestrator",cwd:"/Users/example/a8c-agents/orchestrator",artifactDir:"/Users/example/a8c-agents/orchestrator/.mono-agent/runs",health:"ok",liveConnected:!0,counts:{runs:2}}],b1=[{id:"2582cf1d-636e-475c-ac72-eab20e09d829",conversationId:"cron:daily-focus",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T07:10:00.153Z",durMs:428230,kind:"focus-scan",trigger:"cron",source:"cron",title:"Hourly focus scan",outcome:"silent",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"medium",instr:"Run the hourly focus scan. Follow the `focus-scan` skill for the bounded delta-first workflow across Robert and Paola Gmail/Calendar, the A8C Maven-only Gmail check, WhatsApp, the Drafts inbox and the `inbox/` drop-zone, Todoist capture, KB filing, the dashboard regen, memory, and the notification.\n\nAfter capture/KB updates are attempted, your **final answer is the delta card** per `telegram-notifications` (native notify — delivered verbatim) when there is a new/changed item worth interrupting Robert; otherwise reply exactly `NOTHING_TO_REPORT`.",instrTr:!1,recalled:`## Memory (recalled)
|
|
50
|
-
|
|
51
|
-
- After capture and KB updates, return a delta card only for a new/changed item needing interruption; otherwise reply exactly NOTHING_TO_REPORT.
|
|
52
|
-
- Scan Robert and Paola Gmail/Calendar, A8C Maven-only Gmail, WhatsApp, Drafts inbox, \`inbox/\` drop-zone, Todoist capture, KB, dashboard regen, memory, and notifications.
|
|
53
|
-
- Quiet hours are 22:00–07:00 Europe/Rome; suppress non-urgent notifications in that window.`,recalledTr:!1,hasRecall:!0,finalText:"NOTHING_TO_REPORT",finalTr:!1,status:"done",totals:{asst:3,tcalls:3,think:2,tokIn:59489,tokOut:9851,tokCache:797184,cost:.6415,steps:7},toolCounts:{read_skill:1,Bash:1,Grep:1},steps:[{k:"prompt",ts:"2026-07-04T07:10:00.379Z",text:"Run the hourly focus scan. Follow the `focus-scan` skill for the bounded delta-first workflow.",tr:!1},{k:"assistant",ts:"2026-07-04T07:10:11.141Z",think:[{t:"**Running a focus scan.** I'll read the `focus-scan` skill first, then sweep the mailboxes and Drafts inbox in a bounded pass. Memory recall is already attached, so I can go straight to the skill.",tr:!1}],calls:[{id:"call_readskill_1",name:"read_skill",dig:"focus-scan",raw:`{
|
|
54
|
-
"name": "focus-scan"
|
|
55
|
-
}`,ok:!0},{id:"call_bash_1",name:"Bash",dig:"gmail delta --since 1h --label maven",raw:`{
|
|
56
|
-
"command": "gmail delta --since 1h --label maven"
|
|
57
|
-
}`,ok:!0}],text:"",u:{i:7148,o:258,c:0,cost:.3348}},{k:"result",ts:"2026-07-04T07:10:14.221Z",tcid:"call_readskill_1",tool:"read_skill",ok:!0,dig:"Configured skills root: /Users/example/personal-agent/skills",text:`Skill directory: /Users/example/personal-agent/skills/focus-scan
|
|
58
|
-
Path rule: files referenced by SKILL.md are bundled with the skill.`},{k:"result",ts:"2026-07-04T07:10:22.882Z",tcid:"call_bash_1",tool:"Bash",ok:!0,dig:"0 new messages in the last hour",text:`maven: 0 new · robert: 0 new · paola: 0 new
|
|
59
|
-
No delta in the trailing 1h window.`},{k:"assistant",ts:"2026-07-04T07:12:40.512Z",think:[{t:"Mailboxes are clean. Let me confirm the Drafts inbox and `inbox/` drop-zone are empty before I settle on staying silent.",tr:!1}],calls:[{id:"call_grep_1",name:"Grep",dig:"TODO|URGENT in inbox/",raw:`{
|
|
60
|
-
"pattern": "TODO|URGENT",
|
|
61
|
-
"path": "inbox/"
|
|
62
|
-
}`,ok:!0}],text:"",u:{i:15194,o:412,c:660608,cost:.2617}},{k:"result",ts:"2026-07-04T07:12:44.101Z",tcid:"call_grep_1",tool:"Grep",ok:!0,dig:"No matches",text:"No matches found in inbox/."},{k:"assistant",ts:"2026-07-04T07:17:08.383Z",think:[],calls:[],text:"NOTHING_TO_REPORT",u:{i:2272,o:205,c:136576,cost:.045}}]},{id:"d1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6",conversationId:"webhook:github-build",cwd:"/Users/example/a8c-agents/orchestrator",instance:"orchestrator",sourceId:"orchestrator",startTs:"2026-07-04T09:42:11.020Z",durMs:73400,kind:"proactive",trigger:"webhook",source:"webhook",title:"CI failure on main — jetpack build",outcome:"notified",model:"claude-opus-4-8",provider:"anthropic",api:"anthropic-messages",effort:"high",instr:"A GitHub webhook fired: the `build` job failed on `main`. Investigate the failing step, decide whether it is a flake or a real regression, and if actionable, notify Robert with a one-paragraph summary and the fix direction.",instrTr:!1,hasRecall:!1,finalText:"**Build broke on `main` — real regression, not a flake.**\n\nThe `jetpack build` job failed at the *typecheck* step: `packages/session-web/src/index.ts` exports a type that no longer exists after the observability rename (`RunSummary.failoverHistory`).\n\n- Root cause: PR #84 renamed the field but the re-export wasn't updated.\n- Fix: update the `export type` line and re-run `pnpm -r typecheck`.\n- Blast radius: build-only; nothing shipped.\n\nWant me to open the one-line fix PR?",finalTr:!1,status:"done",totals:{asst:2,tcalls:3,think:2,tokIn:38210,tokOut:4120,tokCache:122880,cost:.412,steps:6},toolCounts:{Bash:2,Read:1},steps:[{k:"prompt",ts:"2026-07-04T09:42:11.220Z",text:"A GitHub webhook fired: the `build` job failed on `main`. Investigate and, if actionable, notify Robert."},{k:"assistant",ts:"2026-07-04T09:42:24.900Z",think:[{t:"I'll pull the failing job's log tail first to see which step broke, then read the offending file. A typecheck failure right after a rename is almost always a stale re-export.",tr:!1}],calls:[{id:"call_gh_1",name:"Bash",dig:"gh run view --log-failed",raw:`{
|
|
63
|
-
"command": "gh run view 998321 --log-failed | tail -40"
|
|
64
|
-
}`,ok:!0},{id:"call_read_1",name:"Read",dig:"packages/session-web/src/index.ts",raw:`{
|
|
65
|
-
"file_path": "packages/session-web/src/index.ts"
|
|
66
|
-
}`,ok:!0}],text:"",u:{i:21100,o:1980,c:0,cost:.263}},{k:"result",ts:"2026-07-04T09:42:31.410Z",tcid:"call_gh_1",tool:"Bash",ok:!1,dig:"TS2305: Module has no exported member 'failoverHistory'",text:`src/index.ts(3,10): error TS2305: Module '"@mono-agent/observability"' has no exported member 'failoverHistory'.
|
|
67
|
-
Error: Process completed with exit code 2.`},{k:"result",ts:"2026-07-04T09:42:33.980Z",tcid:"call_read_1",tool:"Read",ok:!0,dig:"re-exports RunSummary.failoverHistory (stale)",text:'export type { RunSummary, failoverHistory } from "@mono-agent/observability";'},{k:"assistant",ts:"2026-07-04T09:43:19.640Z",think:[{t:"Confirmed: it's a stale re-export from the PR #84 rename, not a flake. I'll write the delta card for Robert with the root cause and the one-line fix.",tr:!1}],calls:[{id:"call_gh_2",name:"Bash",dig:"git log --oneline -1 -- src/index.ts",raw:`{
|
|
68
|
-
"command": "git log --oneline -1 -- packages/session-web/src/index.ts"
|
|
69
|
-
}`,ok:!0}],text:"**Build broke on `main` — real regression, not a flake.** The typecheck step fails on a stale re-export after the PR #84 observability rename.",u:{i:17110,o:2140,c:122880,cost:.149}},{k:"result",ts:"2026-07-04T09:43:22.110Z",tcid:"call_gh_2",tool:"Bash",ok:!0,dig:"af409eb TUI polish (#117)",text:"af409eb TUI polish: agent effort visibility (#117)"}]},{id:"b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2",conversationId:"chat:paola",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T11:05:44.700Z",durMs:21980,kind:"chat",trigger:"chat",source:"chat",title:"What's on my calendar tomorrow afternoon?",outcome:"notified",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"low",instr:"What's on my calendar tomorrow afternoon?",instrTr:!1,hasRecall:!1,finalText:`Tomorrow afternoon (Europe/Rome) you have:
|
|
70
|
-
|
|
71
|
-
- **14:00** — 1:1 with Paola (30m)
|
|
72
|
-
- **16:30** — Dentist, Via Roma
|
|
73
|
-
|
|
74
|
-
The 15:00–16:00 slot is free if you want to hold focus time.`,finalTr:!1,status:"done",totals:{asst:1,tcalls:1,think:0,tokIn:4210,tokOut:320,tokCache:0,cost:.028,steps:3},toolCounts:{Bash:1},steps:[{k:"prompt",ts:"2026-07-04T11:05:44.900Z",text:"What's on my calendar tomorrow afternoon?"},{k:"assistant",ts:"2026-07-04T11:05:52.100Z",think:[],calls:[{id:"call_cal_1",name:"Bash",dig:"gcal agenda --date tomorrow --after 12:00",raw:`{
|
|
75
|
-
"command": "gcal agenda --date tomorrow --after 12:00"
|
|
76
|
-
}`,ok:!0}],text:"Tomorrow afternoon you have a 1:1 with Paola at 14:00 and the dentist at 16:30.",u:{i:4210,o:320,c:0,cost:.028}},{k:"result",ts:"2026-07-04T11:05:55.400Z",tcid:"call_cal_1",tool:"Bash",ok:!0,dig:"2 events",text:`14:00 1:1 Paola (30m)
|
|
77
|
-
16:30 Dentist — Via Roma`}]},{id:"f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8",conversationId:"memory:capture:distill",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T03:00:02.010Z",durMs:96120,kind:"proactive",trigger:"cron",source:"memory",title:"Nightly memory curation",outcome:"silent",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"low",instr:"Run the nightly memory-curation pass: consolidate the day's journal entries into the BuJo tiers, dedupe recalled facts, and prune stale reminders. Stay silent unless a consolidation error needs attention.",instrTr:!1,hasRecall:!0,recalled:`## Memory (recalled)
|
|
78
|
-
|
|
79
|
-
- BuJo tiers: lite (rolling), journal (daily), bujo (curated).
|
|
80
|
-
- Prune reminders older than 30 days unless pinned.
|
|
81
|
-
- Embeddings via nomic-embed-text:v1.5.`,recalledTr:!1,finalText:"NOTHING_TO_REPORT",finalTr:!1,status:"done",totals:{asst:2,tcalls:2,think:1,tokIn:12040,tokOut:880,tokCache:24e4,cost:.071,steps:5},toolCounts:{memory_recall:1,Edit:1},steps:[{k:"prompt",ts:"2026-07-04T03:00:02.210Z",text:"Run the nightly memory-curation pass. Stay silent unless a consolidation error needs attention."},{k:"assistant",ts:"2026-07-04T03:00:14.400Z",think:[{t:"Consolidating the day's journal into the BuJo tiers. I'll recall the current curated set, dedupe, then write back the consolidated entries.",tr:!1}],calls:[{id:"call_mem_1",name:"memory_recall",dig:"today's journal entries",raw:`{
|
|
82
|
-
"query": "today journal entries",
|
|
83
|
-
"k": 40
|
|
84
|
-
}`,ok:!0}],text:"",u:{i:8020,o:410,c:12e4,cost:.041}},{k:"result",ts:"2026-07-04T03:00:19.900Z",tcid:"call_mem_1",tool:"memory_recall",ok:!0,dig:"17 entries recalled",text:"17 journal entries recalled; 3 near-duplicates flagged for merge."},{k:"assistant",ts:"2026-07-04T03:01:31.500Z",think:[],calls:[{id:"call_edit_1",name:"Edit",dig:"memory/bujo/2026-07-03.md",raw:`{
|
|
85
|
-
"file_path": "memory/bujo/2026-07-03.md",
|
|
86
|
-
"consolidated": 14
|
|
87
|
-
}`,ok:!0}],text:"NOTHING_TO_REPORT",u:{i:4020,o:470,c:12e4,cost:.03}},{k:"result",ts:"2026-07-04T03:01:38.130Z",tcid:"call_edit_1",tool:"Edit",ok:!0,dig:"14 entries consolidated",text:"Wrote 14 consolidated entries; pruned 2 stale reminders."}]},{id:"a1b2c3d4e5f60718293a4b5c6d7e8f90",conversationId:"cron:morning-briefing",cwd:"/Users/example/personal-agent",instance:"personal-agent",sourceId:"personal-agent",startTs:"2026-07-04T06:30:00.400Z",durMs:152300,kind:"briefing",trigger:"cron",source:"cron",title:"Morning briefing",outcome:"notified",model:"gpt-5.5",provider:"openai-codex",api:"openai-codex-responses",effort:"high",instr:"Compose the morning briefing: overnight email deltas worth knowing, today's calendar, the top 3 Todoist priorities, and one gentle nudge. Deliver it as the notification, verbatim.",instrTr:!1,hasRecall:!0,recalled:`## Memory (recalled)
|
|
88
|
-
|
|
89
|
-
- Robert prefers the briefing under 120 words with a single nudge.
|
|
90
|
-
- Focus block preference: 09:00–11:00.
|
|
91
|
-
- Paola's schedule is shared read-only.`,recalledTr:!1,finalText:`### Morning briefing
|
|
92
|
-
|
|
93
|
-
**Overnight:** nothing urgent — 2 newsletters filed, 0 action emails.
|
|
94
|
-
|
|
95
|
-
**Today**
|
|
96
|
-
1. 09:00 Focus block (held)
|
|
97
|
-
2. 14:00 1:1 with Paola
|
|
98
|
-
3. 16:30 Dentist
|
|
99
|
-
|
|
100
|
-
**Top priorities**
|
|
101
|
-
- Ship the \`session-web\` PWA
|
|
102
|
-
- Review PR #117
|
|
103
|
-
- Reply to the Maven thread
|
|
104
|
-
|
|
105
|
-
*Nudge:* your 09:00 focus block is protected — start with the PWA before standup.`,finalTr:!1,status:"done",totals:{asst:3,tcalls:4,think:3,tokIn:41200,tokOut:5210,tokCache:41e4,cost:.523,steps:8},toolCounts:{Bash:3,read_skill:1},steps:[{k:"prompt",ts:"2026-07-04T06:30:00.700Z",text:"Compose the morning briefing and deliver it as the notification, verbatim."},{k:"assistant",ts:"2026-07-04T06:30:12.100Z",think:[{t:"I'll gather the three inputs in parallel: overnight mail deltas, today's calendar, and the top Todoist priorities. Then compose under 120 words with one nudge, per Robert's preference.",tr:!1}],calls:[{id:"call_b_mail",name:"Bash",dig:"gmail delta --since 12h",raw:`{
|
|
106
|
-
"command": "gmail delta --since 12h"
|
|
107
|
-
}`,ok:!0},{id:"call_b_cal",name:"Bash",dig:"gcal agenda --date today",raw:`{
|
|
108
|
-
"command": "gcal agenda --date today"
|
|
109
|
-
}`,ok:!0},{id:"call_b_td",name:"Bash",dig:"td list --filter 'today | p1'",raw:`{
|
|
110
|
-
"command": "td list --filter 'today | p1'"
|
|
111
|
-
}`,ok:!0}],text:"",u:{i:22100,o:1210,c:0,cost:.284}},{k:"result",ts:"2026-07-04T06:30:18.400Z",tcid:"call_b_mail",tool:"Bash",ok:!0,dig:"2 newsletters, 0 action",text:"filed: 2 newsletters · action-needed: 0"},{k:"result",ts:"2026-07-04T06:30:19.100Z",tcid:"call_b_cal",tool:"Bash",ok:!0,dig:"3 events today",text:`09:00 Focus block
|
|
112
|
-
14:00 1:1 Paola
|
|
113
|
-
16:30 Dentist`},{k:"result",ts:"2026-07-04T06:30:20.050Z",tcid:"call_b_td",tool:"Bash",ok:!0,dig:"3 priorities",text:`Ship session-web PWA
|
|
114
|
-
Review PR #117
|
|
115
|
-
Reply to Maven thread`},{k:"assistant",ts:"2026-07-04T06:31:40.900Z",think:[{t:"Good, all three inputs are in. Let me double-check the focus-block preference in the briefing skill before I compose, so the nudge lands right.",tr:!1}],calls:[{id:"call_skill_b",name:"read_skill",dig:"briefing",raw:`{
|
|
116
|
-
"name": "briefing"
|
|
117
|
-
}`,ok:!0}],text:"",u:{i:9100,o:640,c:21e4,cost:.121}},{k:"result",ts:"2026-07-04T06:31:44.220Z",tcid:"call_skill_b",tool:"read_skill",ok:!0,dig:"briefing skill: under 120 words, one nudge",text:"Keep the briefing under 120 words. Exactly one gentle nudge. Deliver verbatim via native notify."},{k:"assistant",ts:"2026-07-04T06:32:32.700Z",think:[{t:"Composing now — overnight, today, priorities, one nudge. Under 120 words.",tr:!1}],calls:[],text:`### Morning briefing
|
|
118
|
-
|
|
119
|
-
**Overnight:** nothing urgent — 2 newsletters filed, 0 action emails.
|
|
120
|
-
|
|
121
|
-
**Today**
|
|
122
|
-
1. 09:00 Focus block (held)
|
|
123
|
-
2. 14:00 1:1 with Paola
|
|
124
|
-
3. 16:30 Dentist`,u:{i:1e4,o:3360,c:2e5,cost:.118}}]},{id:"c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4",conversationId:"tui-local",cwd:"/Users/example/a8c-agents/orchestrator",instance:"orchestrator",sourceId:"orchestrator",startTs:"2026-07-04T12:00:00.900Z",durMs:41200,kind:"focus-scan",trigger:"cron",source:"cron",title:"Midday orchestrator sweep",outcome:"notified",model:"claude-opus-4-8",provider:"anthropic",api:"anthropic-messages",effort:"medium",instr:"Run the midday sweep across the delegated task queues: check for blocked sub-agents, stale PRs awaiting review, and any failed runs since the morning sweep.",instrTr:!1,hasRecall:!1,finalText:"",finalTr:!1,status:"running",totals:{asst:1,tcalls:2,think:1,tokIn:9800,tokOut:410,tokCache:0,cost:.118,steps:3},toolCounts:{Bash:2},steps:[{k:"prompt",ts:"2026-07-04T12:00:01.100Z",text:"Run the midday sweep across the delegated task queues."},{k:"assistant",ts:"2026-07-04T12:00:12.700Z",think:[{t:"Starting the sweep — I'll check the blocked-task queue and stale PRs in parallel first, then triage anything that comes back.",tr:!1}],calls:[{id:"call_run_1",name:"Bash",dig:"forge status --blocked",raw:`{
|
|
125
|
-
"command": "forge status --blocked"
|
|
126
|
-
}`,ok:!0},{id:"call_run_2",name:"Bash",dig:"gh pr list --search 'review:required updated:<-2d'",raw:`{
|
|
127
|
-
"command": "gh pr list --search 'review:required updated:<-2d'"
|
|
128
|
-
}`}],text:"",u:{i:9800,o:410,c:0,cost:.118}},{k:"result",ts:"2026-07-04T12:00:18.300Z",tcid:"call_run_1",tool:"Bash",ok:!0,dig:"1 blocked task",text:"task#42 blocked: waiting on upstream lockfile"}]}],R0=I.createContext(null),g0=200,Wo=(c,f)=>+new Date(f.startTs)-+new Date(c.startTs);function Mu(c,f){return`${c}::${f}`}function he(c){return Mu(c.sourceId??c.instance,c.id)}function y0(c,f){const p=new Map(c.map(r=>[he(r),r]));for(const r of f)if(r.type==="remove")p.delete(Mu(r.sourceId,r.runId));else{const v=he(r.session);p.set(v,x1(p.get(v),r.session))}return[...p.values()].sort(Wo)}function x1(c,f){if(c===void 0)return f;const p=c.steps.length>0&&(f.steps.length<c.steps.length||f.totals.steps<c.totals.steps),r=c.finalText.trim().length>0&&f.finalText.trim().length===0;return!p&&!r?f:{...f,...p?{steps:c.steps,toolCounts:c.toolCounts,totals:{...f.totals,asst:Math.max(f.totals.asst,c.totals.asst),tcalls:Math.max(f.totals.tcalls,c.totals.tcalls),think:Math.max(f.totals.think,c.totals.think),steps:Math.max(f.totals.steps,c.totals.steps)}}:{},...r?{finalText:c.finalText,outcome:c.outcome,...c.finalTr===void 0?{}:{finalTr:c.finalTr}}:{}}}function S1(c,f=!1){return f?!0:!(c instanceof $o)||c.contentType?.includes("application/json")?!1:c.status===404||c.status!==void 0&&c.status>=200&&c.status<300}function T1(c,f){return c.sourceId?c.sourceId:f.find(r=>r.label===c.instance)?.sourceId||c.instance}function Ou(c){const f=c?.trim();return f===void 0||f.length===0?"all":f}function as(c){return c.sourceId??c.instance}function p0(c,f){const p=Ou(f);return p==="all"?c.length:c.filter(r=>as(r)===p).length}function v0(c,f,p){const r=c[f];return r!==void 0?r:{offset:0,hasMore:c.all?.hasMore??!0,loading:!1}}function b0(c,f,p){const r=new Set(c.loadedKeys??[]);for(const B of f)r.add(he(B));const v=r.size,y=p===void 0?0:p.offset+f.length,N=Math.max(c.offset,v,y),Q=p?.total??c.total;return{...c,offset:N,hasMore:Q===void 0?p?.hasMore??c.hasMore:N<Q,loading:p===void 0?c.loading:!1,loadedKeys:r,...Q===void 0?{}:{total:Q}}}function z1(c,f){if(c.loadedKeys===void 0)return c;const p=new Set(c.loadedKeys);let r=!1;for(const y of f)r=p.delete(y)||r;if(!r)return c;const v=Math.min(c.offset,p.size);return{...c,offset:v,hasMore:c.total===void 0?c.hasMore:v<c.total,loadedKeys:p}}function D0(c,f,p="all",r){const v=Ou(p),y={...c};if(y[v]=b0(v0(y,v),f,r),v==="all"){const N=new Map;for(const Q of f){const B=as(Q),z=N.get(B)??[];z.push(Q),N.set(B,z)}for(const[Q,B]of N)y[Q]=b0(v0(y,Q),B)}return y}function E1(c,f){const p=f.filter(y=>y.type==="upsert");let r=p.length>0?D0(c,p.map(y=>y.session),"all"):{...c};const v=new Set(f.filter(y=>y.type==="remove").map(y=>Mu(y.sourceId,y.runId)));if(v.size===0)return r;r={...r};for(const[y,N]of Object.entries(r))r[y]=z1(N,v);return r}function j1(c,f,p){const r=p.total,v=p.offset+f.length,y=new Set(f.map(B=>he(B))),N={all:{offset:v,hasMore:r===void 0?p.hasMore:v<r,loading:!1,loadedKeys:y,...r===void 0?{}:{total:r}}},Q=new Map;for(const B of f){const z=as(B),K=Q.get(z)??new Set;K.add(he(B)),Q.set(z,K)}for(const B of c){const z=Q.get(B.sourceId)??new Set,K=z.size,L=p.hasMore?void 0:K;N[B.sourceId]={offset:K,hasMore:L===void 0?p.hasMore:K<L,loading:!1,loadedKeys:z,...L===void 0?{}:{total:L}}}return N}function ya(c,f,p,r=[]){const v=Ou(f);if(p!=="live"&&p!=="reconnecting")return{offset:0,hasMore:!1,loading:!1};const y=c[v];if(y!==void 0){const Q=y.loadedKeys?.size??p0(r,v),B=Math.max(y.offset,Q);return{...y,offset:B,hasMore:y.total===void 0?y.hasMore:B<y.total}}const N=c.all;return v==="all"?N??{offset:0,hasMore:!1,loading:!1}:{offset:p0(r,v),hasMore:N?.hasMore??!0,loading:!1}}function A1({children:c}){const[f,p]=I.useState([]),[r,v]=I.useState([]),[y,N]=I.useState("loading"),[Q,B]=I.useState(void 0),[z,K]=I.useState({}),[L,R]=I.useState({}),[lt,ot]=I.useState(0),P=I.useRef([]);P.current=f;const ft=I.useRef("loading");ft.current=y;const St=I.useRef([]);St.current=r;const at=I.useRef(new Set),yt=I.useRef({});yt.current=z;const $=I.useRef(new Set),Tt=I.useRef(new Map),zt=I.useRef(!1),m=I.useCallback(()=>{zt.current=!1;const d=Tt.current;if(d.size===0)return;Tt.current=new Map;const j=[...d.values()];v(U=>y0(U,j)),K(U=>E1(U,j))},[]),H=I.useCallback(()=>{zt.current||(zt.current=!0,queueMicrotask(m))},[m]),et=I.useCallback(d=>{Tt.current.set(he(d),{type:"upsert",session:d}),H()},[H]),dt=I.useCallback((d,j)=>{Tt.current.set(Mu(d,j),{type:"remove",sourceId:d,runId:j}),H()},[H]);I.useEffect(()=>{let d=!1,j=null,U;const q=()=>{U!==void 0&&(window.clearTimeout(U),U=void 0)},Y=()=>{q(),U=window.setTimeout(()=>{d||N("reconnecting")},800)};return(async()=>{try{N("loading"),B(void 0),K({});const[V,nt]=await Promise.all([h1(),m0("all",{limit:g0})]);if(d)return;p(V),v([...nt.sessions].sort(Wo)),K(j1(V,nt.sessions,nt)),N("reconnecting"),j=g1({onOpen:()=>{q(),d||N("live")},onError:()=>{d||Y()},onMessage:Rt=>{Rt.t==="instances"?p(Rt.instances):Rt.t==="session_upsert"?et(Rt.session):Rt.t==="session_removed"&&dt(Rt.sourceId,Rt.runId)}})}catch(V){if(d)return;if(!S1(V)){p([]),v([]),K({}),N("error"),B(V instanceof Error?V.message:String(V));return}p(v1),v([...b1].sort(Wo)),K({}),N("fixture"),B(void 0)}})(),()=>{d=!0,q(),j?.()}},[et,dt,lt]);const M=I.useCallback((d,j=!1)=>{if(ft.current!=="live"&&ft.current!=="reconnecting"||at.current.has(d)||$.current.has(d))return;const U=St.current.find(Y=>he(Y)===d);if(!U)return;if(!j&&(U.steps?.length??0)>0){$.current.add(d),R(Y=>{if(Y[d]===void 0)return Y;const V={...Y};return delete V[d],V});return}at.current.add(d),R(Y=>({...Y,[d]:{loading:!0}}));const q=T1(U,P.current);m1(q,U.id).then(Y=>{$.current.add(d),et(Y),R(V=>{if(V[d]===void 0)return V;const nt={...V};return delete nt[d],nt})}).catch(Y=>{$.current.delete(d),R(V=>({...V,[d]:{error:Y instanceof Error?Y.message:String(Y)}}))}).finally(()=>at.current.delete(d))},[et]),Z=I.useCallback(d=>{if(ft.current!=="live"&&ft.current!=="reconnecting")return;const j=Ou(d),U=ya(yt.current,j,ft.current,St.current);U.loading||!U.hasMore||(K(q=>({...q,[j]:{...ya(q,j,ft.current,St.current),loading:!0,error:void 0}})),m0(j,{limit:g0,offset:U.offset}).then(q=>{v(Y=>y0(Y,q.sessions.map(V=>({type:"upsert",session:V})))),K(Y=>D0(Y,q.sessions,j,q))}).catch(q=>{K(Y=>({...Y,[j]:{...ya(Y,j,ft.current,St.current),loading:!1,error:q instanceof Error?q.message:String(q)}}))}))},[]),ht=I.useCallback(d=>M(d,!1),[M]),ee=I.useCallback(d=>{$.current.delete(d),M(d,!0)},[M]),$t=I.useCallback(()=>{ot(d=>d+1)},[]),A=ya(z,"all",y,r),k=I.useCallback(d=>ya(z,d,y,r).hasMore,[z,r,y]),F=I.useCallback(d=>ya(z,d,y,r).loading,[z,r,y]),ut=I.useCallback(d=>ya(z,d,y,r).error,[z,r,y]),bt={instances:f,sessions:r,status:y,error:Q,canLoadOlder:A.hasMore,loadingOlder:A.loading,historyError:A.error,canLoadOlderFor:k,loadingOlderFor:F,historyErrorFor:ut,detailStatus:L,loadOlder:Z,ensureDetail:ht,retryDetail:ee,reload:$t};return I.createElement(R0.Provider,{value:bt},c)}function w0(){const c=I.useContext(R0);if(!c)throw new Error("useRecorder must be used within <RecorderProvider>");return c}function ns(c=640){const f=`(max-width: ${c}px)`,[p,r]=I.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia(f).matches:!1);return I.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const v=window.matchMedia(f),y=()=>r(v.matches);return y(),typeof v.addEventListener=="function"?(v.addEventListener("change",y),()=>v.removeEventListener("change",y)):(v.addListener(y),()=>v.removeListener(y))},[f]),p}const _1="#0a0b0e",M1="radial-gradient(1200px 600px at 78% -8%, rgba(232,162,74,.10), transparent 60%),radial-gradient(900px 500px at 8% 8%, rgba(79,182,166,.07), transparent 55%),"+_1,Xt="#ECEAE3",fe="#9A9CA4",rt="#868a93",Te="#8a8d95",O1={cron:"#4FB6A6",webhook:"#B18AE0",chat:"#6FA8DC",memory:"#E0955A",slack:"#6FBF8E",telegram:"#5EC8E8","openai-api":"#C6B85E",a2a:"#D98BB0",tui:"#E8A24A",other:"#8b8d94"},C1={cron:"Cron",webhook:"Webhook",chat:"Chat",memory:"Memory",slack:"Slack",telegram:"Telegram","openai-api":"OpenAI API",a2a:"A2A",tui:"TUI",other:"Other"},Io=["cron","webhook","chat","memory","slack","telegram","openai-api","a2a","tui","other"],Lt="#E8A24A",el="#6FA8DC",$l="#4FB6A6",ll="#B18AE0",B0="#6FBF8E",is="#E0685B",cn="'Space Grotesk', system-ui, sans-serif",D="'IBM Plex Mono', monospace",R1="'Newsreader', Georgia, serif";function Cu(c,f,p){const r=new Date(c);try{return new Intl.DateTimeFormat(void 0,{...p===void 0?{}:{timeZone:p},...f}).format(r)}catch{if(p===void 0)return"";try{return new Intl.DateTimeFormat(void 0,f).format(r)}catch{return""}}}const Qe=(c,f)=>Cu(c,{hour:"2-digit",minute:"2-digit",hour12:!1},f),al=(c,f)=>Cu(c,{day:"2-digit",month:"short"},f),U0=(c,f)=>Cu(c,{weekday:"short"},f),D1=(c,f)=>Cu(c,{year:"numeric",month:"2-digit",day:"2-digit"},f);function on(c){if(!c||c<0)return"0s";if(c<1e3)return c+"ms";const f=c/1e3;if(f<60)return(f<10?f.toFixed(1):Math.round(f))+"s";const p=Math.floor(f/60),r=Math.round(f%60);return p+"m"+(r?" "+r+"s":"")}function tl(c){return c=c||0,c>=1e6?(c/1e6).toFixed(2)+"M":c>=1e3?(c/1e3).toFixed(c>=1e5?0:1)+"k":""+c}function pa(c){return c=c||0,c<1?"$"+c.toFixed(3):"$"+c.toFixed(2)}function Ht(c,f){const p=c.replace("#",""),r=parseInt(p.slice(0,2),16),v=parseInt(p.slice(2,4),16),y=parseInt(p.slice(4,6),16);return`rgba(${r},${v},${y},${f})`}function w1(c){return c.k==="prompt"?el:c.k==="assistant"?Lt:c.k==="boundary"?ll:c.k==="runtime"?c.type==="runtime_warning"?Lt:ll:c.k==="result"?c.ok?B0:is:fe}const ii=c=>c.source,va=c=>O1[c]||fe,zl=c=>C1[c]||c;function H0(c){if(c.status==="running")return{label:"LIVE",color:"#4FB6A6",running:!0,silent:!1};if(c.status==="stalled")return{label:"STALLED",color:"#E8955A",running:!1,silent:!1};if(c.status==="failed")return{label:"FAILED",color:is,running:!1,silent:!1};if(c.status==="cancelled")return{label:"CANCELLED",color:"#E8955A",running:!1,silent:!1};if(c.status==="interrupted")return{label:"INTERRUPTED",color:"#E8955A",running:!1,silent:!1};const f=c.outcome==="silent";return{label:f?"SILENT":"REPLIED",color:f?"#8b8d94":Lt,running:!1,silent:f}}function B1(c){const f=c.totals,p=f.asst?f.think/f.asst:0,r=p>=.6?"High":p>=.3?"Medium":"Low",v=p>=.6?ll:p>=.3?el:"#8b8d94";return{label:c.effort?c.effort.charAt(0).toUpperCase()+c.effort.slice(1):r,color:v,detail:"· "+p.toFixed(1)+" reasoning/turn"}}function U1(c){const f=c.steps||[],p=42;let r=f.map(v=>({color:w1(v),flex:1}));if(r.length>p){const v=[],y=r.length/p;for(let N=0;N<p;N++)v.push(r[Math.floor(N*y)]);r=v}return r.length===0&&(r=[{color:"#3a3d45",flex:1}]),r}const H1=["memory"];function x0(){return new Set(H1)}function N1(){return new Set}function k1(c,f){const p=new Set(c);return p.has(f)?p.delete(f):p.add(f),p}function q1(c){return c?8:28}function _u(c){return c.sourceId??c.instance}function L1(c){const f=c.conversationId?.trim();if(f===void 0||f.length===0)return he(c);const p=f.indexOf("#");return p>=0?f.slice(0,p):f}function Y1(c,f={}){const p=new Map;for(const r of c){const v=f.timeZoneForSession?.(r),y=D1(r.startTs,v)||al(r.startTs,v)||"unknown",N=al(r.startTs,v)||"Unknown date",Q=p.get(y)??{label:N,lanes:new Map},B=L1(r),z=Q.lanes.get(B)??[];z.push(r),Q.lanes.set(B,z),p.set(y,Q)}return[...p.entries()].map(([r,v])=>({key:r,label:v.label,lanes:[...v.lanes.entries()].map(([y,N])=>({key:y,label:y,items:G1(N)}))}))}function G1(c){const f=[];let p;for(const r of c){if(p!==void 0){const v=Z1(p,r);v!==void 0&&f.push({type:"tick",tick:v})}f.push({type:"session",session:r}),p=r}return f}function Z1(c,f){const p=S0(c.providerSessionId),r=S0(f.providerSessionId);if(!(p===r||p===void 0&&r===void 0))return{type:"provider_session_changed",key:`${he(c)}=>${he(f)}`,...p===void 0?{}:{from:p},...r===void 0?{}:{to:r},label:`provider session ${T0(p)} -> ${T0(r)}`}}function S0(c){if(c==null)return;const f=c.trim();return f.length>0?f:void 0}function T0(c){return c===void 0?"unknown":c.length>18?`${c.slice(0,8)}...${c.slice(-6)}`:c}function N0(c){const f=new Set(c.map(y=>y.source)),p=Io.filter(y=>f.has(y)),r=new Set(Io),v=[...f].filter(y=>!r.has(y)).sort((y,N)=>y.localeCompare(N));return[...p,...v]}function z0(c,f){const p=c.filter(v=>!(f.excludedChannels.has(v.source)||f.outcome!=="all"&&v.outcome!==f.outcome||f.instance!=="all"&&_u(v)!==f.instance));if(!f.selectedBucket)return p;const r=new Set(f.selectedBucket.runKeys);return p.filter(v=>r.has(he(v)))}function X1(c,f){const p=c.filter(y=>!(f.outcome!=="all"&&y.outcome!==f.outcome||f.instance!=="all"&&_u(y)!==f.instance)),r=N0(p),v=r.every(y=>!f.excludedChannels.has(y));return["all",...r].map(y=>{const N=y==="all"?v:!f.excludedChannels.has(y),Q=y==="all"?Xt:va(y),B=y==="all"?p.length:p.filter(z=>z.source===y).length;return{key:y,label:y==="all"?"All":zl(y),active:N,n:B,bg:N?y==="all"?"rgba(255,255,255,.14)":Ht(Q,.16):"rgba(255,255,255,.03)",border:N?Ht(Q,.5):"rgba(255,255,255,.1)",color:N?Q:fe}})}function Q1(c,f){if(c.length===0)return[];const p=Math.max(1,Math.floor(f.maxBuckets)),r=c.map(R=>+new Date(R.startTs)).filter(R=>Number.isFinite(R));if(r.length===0)return[];const v=Math.min(...r),y=Math.max(...r),N=Math.max(1,y-v),Q=y===v,B=Math.min(p,Math.max(1,c.length)),z=new Map;for(const R of c){const lt=+new Date(R.startTs),ot=Q?0:Math.max(0,Math.min(B-1,Math.floor((lt-v)/N*B))),P=z.get(ot)??[];P.push(R),z.set(ot,P)}const K=[...z.entries()].sort((R,lt)=>R[0]-lt[0]),L=Math.max(1,...K.map(([,R])=>R.length));return K.map(([R,lt])=>{const ot=Q?v:v+R/B*N,P=Q||R===B-1?y:v+(R+1)/B*N,ft=new Map;let St=0,at=0;for(const Z of lt)St+=Z.totals.cost,Z.outcome!=="silent"&&at++,ft.set(Z.source,(ft.get(Z.source)??0)+1);const yt=lt.length-at,$=[...ft.entries()].sort((Z,ht)=>ht[1]-Z[1]||Z[0].localeCompare(ht[0])),Tt=$[0]?.[0]??"other",zt=ot===P?`${al(ot,f.timeZone)} ${Qe(ot,f.timeZone)}`:`${al(ot,f.timeZone)} ${Qe(ot,f.timeZone)} - ${al(P,f.timeZone)} ${Qe(P,f.timeZone)}`,m=pa(St),H=zl(Tt),et=lt.length===1?"run":"runs",dt=at===0?"all silent":`${at} replied, ${yt} silent`,M=$.map(([Z,ht])=>({key:Z,label:zl(Z),color:va(Z),pct:ht/lt.length*100,count:ht}));return{id:`${R}:${Math.round(ot)}:${Math.round(P)}`,index:R,startMs:ot,endMs:P,rangeLabel:zt,runCount:lt.length,repliedCount:at,notifiedCount:at,silentCount:yt,cost:St,costLabel:m,dominantChannel:Tt,dominantLabel:H,dominantColor:va(Tt),intensityPct:Math.round(lt.length/L*100),channelSegments:M,runKeys:lt.map(Z=>he(Z)),ariaLabel:`${zt}: ${lt.length} ${et}, ${dt}, ${m}, mostly ${H}.`,title:`${lt.length} ${et} - ${zt} - ${dt} - ${m}`}})}const E0={fontFamily:D,fontSize:10,letterSpacing:".16em",color:rt,textTransform:"uppercase"};function K1(c){if(!c)return{label:"unknown",color:rt};if(c.liveConnected)return{label:"live",color:"#6FBF8E"};const f=c.health.toLowerCase();return f==="running"||f==="ok"?{label:"running",color:"#6FBF8E"}:f==="stale"?{label:"stale",color:Lt}:f==="failed"||f==="error"||f==="stopped"?{label:f,color:"#E0685B"}:{label:f||"unknown",color:rt}}function V1(c){if(!["failed","cancelled","interrupted"].includes(c.status))return;const f=[c.failureKind,c.error,c.failoverHistory!==void 0&&c.failoverHistory.length>0?`${c.failoverHistory.length} provider ${c.failoverHistory.length===1?"attempt":"attempts"}`:void 0].filter(p=>p!==void 0&&p.trim().length>0);return f.length>0?f.join(" | "):c.status}function J1(c){const{sessions:f,instances:p,excludedChannels:r,fOut:v,fInstance:y,setExcludedChannels:N,setFOut:Q,setFInstance:B,onOpen:z,canLoadOlder:K,loadingOlder:L,historyError:R,onLoadOlder:lt}=c,[ot,P]=I.useState(!1),[ft,St]=I.useState(null),at=ns(),yt=[...r].sort().join("|");I.useEffect(()=>{if(!ot)return;const m=H=>{H.key==="Escape"&&P(!1)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[ot]),I.useEffect(()=>{St(null)},[yt,v,y]);const $=I.useMemo(()=>{const m=new Map(p.map(w=>[w.sourceId,w.timeZone])),H=w=>m.get(_u(w)),et={};f.forEach(w=>{const Nt=_u(w);et[Nt]||(et[Nt]={count:0,cwd:w.cwd,label:w.instance}),et[Nt].count++});const dt=p.length>0?[...p].map(w=>({sourceId:w.sourceId,label:w.label,cwd:w.cwd,health:w.health,liveConnected:w.liveConnected})).sort((w,Nt)=>w.label.localeCompare(Nt.label)||w.sourceId.localeCompare(Nt.sourceId)):Object.entries(et).map(([w,Nt])=>({sourceId:w,label:Nt.label,cwd:Nt.cwd,health:"unknown",liveConnected:!1})).sort((w,Nt)=>w.label.localeCompare(Nt.label)||w.sourceId.localeCompare(Nt.sourceId)),M=[{key:"all",label:"All instances",count:f.length,cwd:`${dt.length} instance${dt.length!==1?"s":""} on this machine`,healthLabel:"all",healthColor:Te,active:y==="all"}].concat(dt.map(w=>{const Nt=K1(w);return{key:w.sourceId,label:w.label,count:et[w.sourceId]?.count??0,cwd:w.cwd,healthLabel:Nt.label,healthColor:Nt.color,active:y===w.sourceId}})).map(w=>({key:w.key,label:w.label,count:w.count,cwd:w.cwd,healthLabel:w.healthLabel,healthColor:w.healthColor,bg:w.active?"rgba(255,255,255,.07)":"transparent",fg:w.active?Xt:"#C9CBD1",dot:w.key==="all"?w.active?"#6FBF8E":Te:w.healthColor})),Z=dt.find(w=>w.sourceId===y),ht=y==="all"?"All instances":Z?.label??et[y]?.label??y,ee=y==="all"?f.length:et[y]?.count||0,$t=y==="all"?void 0:m.get(y),A=z0(f,{excludedChannels:r,outcome:v,instance:y}),k=Q1(A,{maxBuckets:q1(at),timeZone:$t}),F=ft?k.find(w=>w.id===ft):void 0,ut=F?z0(f,{excludedChannels:r,outcome:v,instance:y,selectedBucket:F}):A;let bt=0,d=0,j=0,U=0;ut.forEach(w=>{bt+=w.totals.cost,d+=w.totals.tokIn+w.totals.tokOut,j+=w.totals.tcalls,U+=w.totals.think});const q=ut.length||1,Y=ut.map(w=>w.startTs).sort(),V=Y.length?al(Y[0],$t)+" – "+al(Y[Y.length-1],$t):"—",nt=ut.filter(w=>w.outcome==="silent").length,Rt=[{label:"Total cost",value:pa(bt),sub:"≈ "+pa(bt/q)+" / run",color:Lt},{label:"Tokens",value:tl(d),sub:"in + out",color:el},{label:"Tool calls",value:j.toLocaleString(),sub:"across all runs",color:$l},{label:"Reasoning",value:U.toLocaleString(),sub:"thinking blocks",color:ll},{label:"Silent runs",value:""+nt,sub:"stayed quiet, no interrupt",color:"#8b8d94"}],At=X1(f,{excludedChannels:r,outcome:v,instance:y}),Mt=[["all","All"],["notified","Replied"],["silent","Silent"]].map(([w,Nt])=>{const Yt=v===w,Qt=w==="silent"?"#8b8d94":w==="notified"?Lt:Xt;return{key:w,label:Nt,active:Yt,bg:Yt?Ht(Qt,.16):"rgba(255,255,255,.03)",border:Yt?Ht(Qt,.5):"rgba(255,255,255,.1)",color:Yt?Qt:fe}}),Zt=ut.map(w=>{const Nt=ii(w),Yt=va(Nt),Qt=Nt==="chat",Ke=H0(w),xa=H(w),ui=V1(w);return{id:w.id,key:he(w),timeStr:Qe(w.startTs,xa),dateStr:al(w.startTs,xa),dow:U0(w.startTs,xa),title:w.title,conversationId:w.conversationId,accent:Yt,glow:Ht(Yt,.45),kindLabel:zl(Nt),kindBg:Ht(Yt,.12),kindBorder:Ht(Yt,.3),tools:w.totals.tcalls,think:w.totals.think,durStr:on(w.durMs),costStr:pa(w.totals.cost),showOutcome:!Qt||Ke.running||["failed","cancelled","interrupted","stalled"].includes(w.status),outcomeLabel:Ke.label,outcomeColor:Ke.color,outcomeBg:Ht(Ke.color,.12),outcomeBorder:Ht(Ke.color,.32),running:Ke.running,failureSummary:ui,segs:U1(w)}}),nl=Object.fromEntries(Zt.map(w=>[w.key,w])),ze=Y1(ut,{timeZoneForSession:H}),me=N0(A).map(w=>({label:zl(w),color:va(w)})),ba=A.filter(w=>w.outcome!=="silent").length,Be=A.length-ba,El=k.length?Math.max(...k.map(w=>w.runCount)):0,Wl=F?`${ut.length} ${ut.length===1?"run":"runs"} in ${F.rangeLabel}`:`${A.length} ${A.length===1?"run":"runs"} across ${k.length} active ${k.length===1?"bucket":"buckets"}`;return{instances:M,activeInst:ht,activeCount:ee,range:V,aggTiles:Rt,kindChips:At,outcomeChips:Mt,cards:Zt,cardsByKey:nl,groups:ze,activity:k,selectedBucket:F,bucketStatus:Wl,activityReplied:ba,activitySilent:Be,activityPeak:El,activeTimeZone:$t,legend:me,emptyMessage:f.length===0?"No runs recorded yet.":"No sessions match this filter."}},[f,p,r,v,y,at,ft]),Tt=m=>s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9,minHeight:34,margin:"2px 0",fontFamily:D,fontSize:10,letterSpacing:".08em",textTransform:"uppercase",color:"#9A90AA"},children:[s.jsx("span",{style:{flex:1,height:1,background:"rgba(177,138,224,.18)"}}),s.jsx("span",{title:m.label,style:{maxWidth:"min(460px, 76vw)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",border:"1px solid rgba(177,138,224,.22)",borderRadius:6,padding:"5px 9px",background:"rgba(177,138,224,.06)"},children:m.label}),s.jsx("span",{style:{flex:1,height:1,background:"rgba(177,138,224,.18)"}})]},m.key),zt=m=>m===void 0?null:s.jsx("div",{className:"rec-card",role:"button",tabIndex:0,onClick:()=>z(m.key),onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),z(m.key))},"aria-label":`Open run: ${m.title} — ${m.kindLabel}, ${m.dateStr} ${m.timeStr}`,style:{cursor:"pointer",position:"relative",background:"linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.014))",border:"1px solid rgba(255,255,255,.08)",borderLeft:`3px solid ${m.accent}`,borderRadius:15,padding:at?"16px 16px":"17px 20px",transition:"transform .16s,border-color .16s,background .16s,box-shadow .16s","--glow":m.glow},children:s.jsxs("div",{style:{display:"flex",gap:16,alignItems:"flex-start",flexWrap:"wrap"},children:[s.jsxs("div",{style:{minWidth:58,fontFamily:D},children:[s.jsx("div",{style:{fontSize:19,fontWeight:600,color:Xt,lineHeight:1},children:m.timeStr}),s.jsxs("div",{style:{fontSize:11,color:rt,marginTop:4},children:[m.dow," ",m.dateStr]})]}),s.jsxs("div",{style:{flex:"1 1 220px",minWidth:at?0:220},children:[s.jsx("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap",marginBottom:7},children:s.jsx("span",{style:{fontFamily:D,fontSize:10,letterSpacing:".1em",textTransform:"uppercase",padding:"3px 8px",borderRadius:5,background:m.kindBg,color:m.accent,border:`1px solid ${m.kindBorder}`},children:m.kindLabel})}),s.jsx("div",{style:{fontSize:15.5,color:"#E4E2DB",lineHeight:1.4,fontWeight:500,maxWidth:"60ch",overflowWrap:"anywhere",wordBreak:"break-word",textWrap:"pretty"},children:m.title}),m.failureSummary!==void 0&&s.jsx("div",{style:{marginTop:8,fontFamily:D,fontSize:11,lineHeight:1.45,color:"#E0988F",overflowWrap:"anywhere"},children:m.failureSummary}),s.jsx("div",{style:{display:"flex",gap:2,height:9,marginTop:13,borderRadius:4,overflow:"hidden",maxWidth:380,padding:1,background:"rgba(0,0,0,.25)",boxShadow:"inset 0 0 0 1px rgba(255,255,255,.04)"},children:m.segs.map((H,et)=>s.jsx("span",{style:{flex:H.flex,background:H.color,borderRadius:1.5,minWidth:2}},et))})]}),s.jsxs("div",{style:{minWidth:at?0:158,flex:at?"1 1 100%":"0 0 auto",display:"flex",flexDirection:"column",alignItems:at?"flex-start":"flex-end",gap:12},children:[m.showOutcome&&s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:D,fontSize:10,letterSpacing:".1em",textTransform:"uppercase",padding:"5px 11px",borderRadius:7,background:m.outcomeBg,color:m.outcomeColor,border:`1px solid ${m.outcomeBorder}`},children:[m.running&&s.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:m.outcomeColor,boxShadow:`0 0 7px ${m.outcomeColor}`,animation:"rec-blink 1.4s ease-in-out infinite"}}),m.outcomeLabel]}),s.jsxs("div",{style:{display:"flex",gap:14,alignItems:"center",fontFamily:D,fontSize:12.5},children:[s.jsxs("span",{title:"duration",role:"img","aria-label":`Duration ${m.durStr}`,style:{display:"flex",alignItems:"center",gap:5,color:"#8b8d94"},children:[s.jsxs("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"9"}),s.jsx("path",{d:"M12 7.5v5l3.2 1.8"})]}),m.durStr]}),s.jsxs("span",{title:"tool calls",role:"img","aria-label":`${m.tools} tool calls`,style:{display:"flex",alignItems:"center",gap:5,color:$l},children:[s.jsx("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M8.5 6L3.5 12l5 6M15.5 6l5 6-5 6"})}),m.tools]}),s.jsxs("span",{title:"reasoning",role:"img","aria-label":`${m.think} reasoning blocks`,style:{display:"flex",alignItems:"center",gap:5,color:ll},children:[s.jsx("svg",{"aria-hidden":"true",width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 3l1.7 5.6L19 10l-5.3 1.4L12 17l-1.7-5.6L5 10l5.3-1.4z"})}),m.think]})]}),s.jsx("span",{style:{fontFamily:D,fontSize:16,fontWeight:600,color:Lt,letterSpacing:"-.01em"},children:m.costStr})]})]})},m.key);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:20,flexWrap:"wrap",animation:"rec-rise .5s ease both",position:"relative",...ot?{zIndex:60}:{}},children:[s.jsxs("div",{children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12},children:[s.jsx("span",{style:{width:9,height:9,borderRadius:"50%",background:"#E0685B",boxShadow:"0 0 10px #E0685B",animation:"rec-blink 1.8s ease-in-out infinite",display:"inline-block"}}),s.jsx("span",{style:{fontFamily:D,fontSize:11,letterSpacing:".28em",color:fe,textTransform:"uppercase"},children:"Session Recorder"})]}),s.jsx("h1",{style:{margin:0,fontSize:"clamp(27px, 8vw, 40px)",lineHeight:1.02,fontWeight:600,letterSpacing:"-.02em",maxWidth:"16ch"},children:"The agent's flight recorder"}),s.jsx("p",{style:{margin:"12px 0 0",color:fe,fontSize:15,maxWidth:"52ch",lineHeight:1.5},children:"Every run of your agents — prompt, reasoning, tool calls and cost — captured and laid out to scan fast or dig deep."})]}),s.jsxs("div",{style:{position:"relative",textAlign:at?"left":"right",width:at?"100%":void 0,maxWidth:"100%",minWidth:0},children:[s.jsx("div",{style:{fontFamily:D,fontSize:9,letterSpacing:".18em",color:Te,textTransform:"uppercase",marginBottom:7},children:"Instance"}),s.jsxs("button",{className:"rec-btn",onClick:()=>P(m=>!m),"aria-haspopup":"menu","aria-expanded":ot,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",gap:10,background:"linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02))",border:"1px solid rgba(255,255,255,.14)",borderRadius:11,padding:"9px 13px",minHeight:44,color:Xt,fontFamily:D,transition:"border-color .15s",maxWidth:"100%"},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:"50%",background:"#6FBF8E",boxShadow:"0 0 8px #6FBF8E",animation:"rec-blink 2.4s ease-in-out infinite"}}),s.jsx("span",{style:{fontSize:14,fontWeight:600,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:$.activeInst}),s.jsx("span",{style:{fontSize:11,color:"#8b8d94",background:"rgba(255,255,255,.06)",padding:"2px 7px",borderRadius:5},children:$.activeCount}),s.jsx("span",{style:{color:rt,fontSize:11},children:"▾"})]}),s.jsx("div",{style:{fontFamily:D,fontSize:11,color:Te,marginTop:7},children:$.range}),ot&&s.jsx("div",{role:"menu","aria-label":"Instance",style:{position:"absolute",right:0,top:64,zIndex:50,minWidth:250,background:"#15171d",border:"1px solid rgba(255,255,255,.14)",borderRadius:13,padding:6,boxShadow:"0 24px 60px -16px rgba(0,0,0,.7)",textAlign:"left",...at?{left:0,right:"auto",minWidth:0,width:"min(250px, calc(100vw - 32px))",maxWidth:"calc(100vw - 32px)"}:{}},children:$.instances.map(m=>s.jsxs("button",{className:"menu-item",role:"menuitemradio","aria-checked":m.key===y,"aria-label":`${m.label}, ${m.count} runs, ${m.healthLabel}`,onClick:()=>{B(m.key),P(!1)},style:{cursor:"pointer",width:"100%",display:"flex",alignItems:"center",gap:10,minHeight:44,background:m.bg,border:"none",borderRadius:9,padding:"10px 11px",textAlign:"left"},children:[s.jsx("span",{title:m.healthLabel,style:{width:7,height:7,borderRadius:"50%",background:m.dot,flex:"none"}}),s.jsxs("span",{style:{flex:1,minWidth:0},children:[s.jsx("span",{style:{display:"block",fontFamily:cn,fontSize:14,fontWeight:600,color:m.fg,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.label}),s.jsx("span",{style:{display:"block",fontFamily:D,fontSize:10,color:rt,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:m.cwd})]}),s.jsx("span",{style:{fontFamily:D,fontSize:11,color:"#8b8d94"},children:m.count}),m.key!=="all"&&s.jsx("span",{style:{fontFamily:D,fontSize:9,color:m.healthColor,textTransform:"uppercase",whiteSpace:"nowrap"},children:m.healthLabel})]},m.key))})]})]}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))",gap:12,marginTop:28},children:$.aggTiles.map(m=>s.jsxs("div",{style:{background:"linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.012))",border:"1px solid rgba(255,255,255,.08)",borderRadius:15,padding:"15px 17px"},children:[s.jsx("div",{style:{width:20,height:3,borderRadius:2,background:m.color,marginBottom:12,boxShadow:`0 0 10px ${m.color}`}}),s.jsx("div",{style:E0,children:m.label}),s.jsx("div",{style:{fontFamily:D,fontSize:29,fontWeight:600,marginTop:7,letterSpacing:"-.02em",color:m.color},children:m.value}),s.jsx("div",{style:{fontSize:12,color:fe,marginTop:4},children:m.sub})]},m.label))}),s.jsxs("div",{style:{marginTop:16,background:"linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.006))",border:"1px solid rgba(255,255,255,.08)",borderRadius:16,padding:at?"16px 14px 18px":"18px 22px 20px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:16,flexWrap:"wrap",gap:12},children:[s.jsxs("div",{style:{minWidth:0},children:[s.jsx("div",{style:E0,children:"Activity rhythm"}),s.jsxs("div",{style:{marginTop:6,fontFamily:D,fontSize:11,color:rt,lineHeight:1.45},children:[$.bucketStatus,$.activityPeak>0?` · peak ${$.activityPeak}`:""]})]}),$.selectedBucket&&s.jsx("button",{className:"rec-btn",type:"button",onClick:()=>St(null),style:{cursor:"pointer",minHeight:38,borderRadius:9,border:"1px solid rgba(255,255,255,.12)",background:"rgba(255,255,255,.045)",color:"#C9CBD1",fontFamily:D,fontSize:11,padding:"8px 11px"},children:"Clear bucket"})]}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",gap:12,flexWrap:"wrap",marginBottom:15},children:[s.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:[{label:"Runs",value:String($.activity.reduce((m,H)=>m+H.runCount,0)),color:Xt},{label:"Replied",value:String($.activityReplied),color:Lt},{label:"Silent",value:String($.activitySilent),color:"#8b8d94"}].map(m=>s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:7,minHeight:30,borderRadius:8,border:"1px solid rgba(255,255,255,.08)",background:"rgba(255,255,255,.03)",padding:"5px 9px",fontFamily:D,fontSize:11,color:rt},children:[s.jsx("span",{style:{color:m.color,fontWeight:700},children:m.value}),m.label]},m.label))}),s.jsx("div",{style:{display:"flex",gap:12,flexWrap:"wrap",alignItems:"center"},children:$.legend.map(m=>s.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,fontFamily:D,fontSize:11,color:fe},children:[s.jsx("span",{style:{width:8,height:8,borderRadius:2,background:m.color}}),m.label]},m.label))})]}),$.activity.length>0?at?s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:$.activity.map(m=>{const H=$.selectedBucket?.id===m.id,et=Math.max(12,m.intensityPct);return s.jsxs("button",{className:"rec-btn",type:"button","aria-pressed":H,"aria-label":m.ariaLabel,title:m.title,onClick:()=>St(H?null:m.id),style:{cursor:"pointer",width:"100%",minHeight:76,borderRadius:10,border:`1px solid ${H?Ht(m.dominantColor,.72):"rgba(255,255,255,.1)"}`,background:H?Ht(m.dominantColor,.14):"rgba(255,255,255,.026)",color:Xt,padding:"10px 11px",display:"flex",flexDirection:"column",alignItems:"stretch",gap:8,boxShadow:H?`0 0 0 1px ${Ht(m.dominantColor,.2)}`:"none",textAlign:"left"},children:[s.jsxs("span",{style:{display:"flex",alignItems:"baseline",gap:8,minWidth:0},children:[s.jsx("span",{style:{fontFamily:D,fontSize:18,fontWeight:700,color:Xt,lineHeight:1,flex:"none"},children:m.runCount}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:m.dominantColor,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:m.dominantLabel}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:rt,marginLeft:"auto",whiteSpace:"nowrap"},children:Qe(m.startMs,$.activeTimeZone)}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:Lt,whiteSpace:"nowrap"},children:m.costLabel})]}),s.jsx("span",{"aria-hidden":"true",style:{height:13,borderRadius:999,background:"rgba(0,0,0,.24)",border:"1px solid rgba(255,255,255,.07)",overflow:"hidden",display:"flex"},children:s.jsx("span",{style:{width:`${et}%`,minWidth:24,maxWidth:"100%",display:"flex",borderRadius:999,overflow:"hidden",boxShadow:`0 0 12px ${Ht(m.dominantColor,.18)}`},children:m.channelSegments.map(dt=>s.jsx("span",{style:{flex:`${dt.pct} 1 0`,minWidth:3,background:dt.color}},dt.key))})}),s.jsxs("span",{style:{display:"flex",gap:10,alignItems:"center",minWidth:0,fontFamily:D,fontSize:10,color:rt},children:[s.jsxs("span",{style:{whiteSpace:"nowrap"},children:[m.repliedCount," replied"]}),s.jsxs("span",{style:{whiteSpace:"nowrap"},children:[m.silentCount," silent"]}),s.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:m.rangeLabel})]})]},m.id)})}):s.jsx("div",{style:{overflowX:"auto",overflowY:"hidden",paddingBottom:3,margin:at?"0 -4px":0,maxWidth:"100%"},children:s.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${$.activity.length}, minmax(48px, 1fr))`,gap:8,minWidth:0},children:$.activity.map(m=>{const H=$.selectedBucket?.id===m.id,et=Math.max(14,Math.round(m.intensityPct*.58));return s.jsxs("button",{className:"rec-btn",type:"button","aria-pressed":H,"aria-label":m.ariaLabel,title:m.title,onClick:()=>St(H?null:m.id),style:{cursor:"pointer",minHeight:128,borderRadius:10,border:`1px solid ${H?Ht(m.dominantColor,.72):"rgba(255,255,255,.1)"}`,background:H?Ht(m.dominantColor,.14):"rgba(255,255,255,.026)",color:Xt,padding:"9px 8px",display:"flex",flexDirection:"column",alignItems:"stretch",gap:7,boxShadow:H?`0 0 0 1px ${Ht(m.dominantColor,.2)}, 0 12px 30px -22px ${m.dominantColor}`:"none"},children:[s.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:5,minWidth:0},children:[s.jsx("span",{style:{fontFamily:D,fontSize:17,fontWeight:700,color:Xt,lineHeight:1},children:m.runCount}),s.jsx("span",{style:{fontFamily:D,fontSize:9,color:rt,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Qe(m.startMs,$.activeTimeZone)})]}),s.jsx("span",{"aria-hidden":"true",style:{flex:1,minHeight:58,display:"flex",alignItems:"flex-end",justifyContent:"center",borderRadius:8,background:"rgba(0,0,0,.22)",padding:"7px 5px"},children:s.jsx("span",{style:{width:"100%",height:`${et}%`,minHeight:12,borderRadius:6,overflow:"hidden",border:`1px solid ${Ht(m.dominantColor,.48)}`,display:"flex",flexDirection:"column-reverse",boxShadow:`0 0 14px ${Ht(m.dominantColor,.22)}`},children:m.channelSegments.map(dt=>s.jsx("span",{style:{flex:`${dt.pct} 1 0`,minHeight:3,background:dt.color}},dt.key))})}),s.jsxs("span",{"aria-hidden":"true",style:{display:"flex",height:4,borderRadius:999,overflow:"hidden",background:"rgba(255,255,255,.06)"},children:[s.jsx("span",{style:{width:`${m.repliedCount/m.runCount*100}%`,background:Lt}}),s.jsx("span",{style:{width:`${m.silentCount/m.runCount*100}%`,background:"#8b8d94"}})]}),s.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:5,minWidth:0},children:[s.jsx("span",{style:{fontFamily:D,fontSize:9,color:m.dominantColor,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:m.dominantLabel}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:Lt,flex:"none"},children:m.costLabel})]})]},m.id)})})}):s.jsx("div",{style:{border:"1px dashed rgba(255,255,255,.1)",borderRadius:10,padding:"18px 14px",color:rt,fontFamily:D,fontSize:12},children:"No activity in this filter."})]}),s.jsxs("div",{style:{display:"flex",gap:20,flexWrap:"wrap",marginTop:26,alignItems:"center"},children:[s.jsx("div",{style:{display:"flex",gap:7,flexWrap:"wrap"},children:$.kindChips.map(m=>s.jsxs("button",{className:"rec-chip","aria-pressed":m.active,onClick:()=>{St(null),N(m.key==="all"?N1():k1(r,m.key))},style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:44,fontFamily:D,fontSize:11,letterSpacing:".06em",textTransform:"uppercase",padding:"9px 14px",borderRadius:999,border:`1px solid ${m.border}`,background:m.bg,color:m.color},children:[m.label,s.jsx("span",{style:{opacity:.55,marginLeft:6},children:m.n})]},m.key))}),s.jsx("div",{style:{display:"flex",gap:7,flexWrap:"wrap",...at?{}:{marginLeft:"auto"}},children:$.outcomeChips.map(m=>s.jsx("button",{className:"rec-chip","aria-pressed":m.active,onClick:()=>Q(m.key),style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:44,fontFamily:D,fontSize:11,letterSpacing:".06em",textTransform:"uppercase",padding:"9px 14px",borderRadius:999,border:`1px solid ${m.border}`,background:m.bg,color:m.color},children:m.label},m.key))})]}),s.jsx("div",{style:{marginTop:18,display:"flex",flexDirection:"column",gap:18},children:$.groups.map(m=>s.jsxs("section",{"aria-label":m.label,style:{display:"flex",flexDirection:"column",gap:10},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:11,fontFamily:D,fontSize:10,letterSpacing:".18em",textTransform:"uppercase",color:rt},children:[s.jsx("span",{style:{flex:1,height:1,background:"rgba(255,255,255,.08)"}}),s.jsx("span",{style:{whiteSpace:"nowrap"},children:m.label}),s.jsx("span",{style:{flex:1,height:1,background:"rgba(255,255,255,.08)"}})]}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:m.lanes.map(H=>s.jsxs("div",{style:{display:"grid",gridTemplateColumns:at?"1fr":"minmax(112px, 168px) minmax(0, 1fr)",gap:at?7:12,alignItems:"start"},children:[s.jsx("div",{title:H.label,style:{position:at?"static":"sticky",top:76,minWidth:0,fontFamily:D,fontSize:10,lineHeight:1.4,color:"#8b8d94",border:"1px solid rgba(255,255,255,.07)",borderRadius:8,padding:at?"6px 8px":"8px 9px",background:"rgba(255,255,255,.025)",overflowWrap:"anywhere"},children:H.label}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:H.items.map(et=>et.type==="tick"?Tt(et.tick):zt($.cardsByKey[he(et.session)]))})]},H.key))})]},m.key))}),R!==void 0&&s.jsx("div",{role:"alert",style:{marginTop:16,border:"1px solid rgba(224,104,91,.28)",borderRadius:10,padding:"12px 13px",background:"rgba(224,104,91,.07)",color:"#E0988F",fontFamily:D,fontSize:12,overflowWrap:"anywhere"},children:R}),(K||L)&&s.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:22},children:s.jsx("button",{className:"rec-btn",type:"button",disabled:L,onClick:lt,style:{cursor:L?"wait":"pointer",minHeight:44,borderRadius:9,border:"1px solid rgba(255,255,255,.14)",background:L?"rgba(255,255,255,.03)":"rgba(255,255,255,.055)",color:L?rt:"#C9CBD1",fontFamily:D,fontSize:12,padding:"10px 14px"},children:L?"Loading older":"Load older"})}),$.cards.length===0&&s.jsx("div",{style:{textAlign:"center",color:rt,padding:50,fontFamily:D,fontSize:13},children:K?"No loaded sessions match this filter.":$.emptyMessage}),ot&&s.jsx("div",{onClick:()=>P(!1),style:{position:"fixed",inset:0,zIndex:40}})]})}const j0=Io;function F1(c){if(c.liveConnected)return{label:"live",color:"#6FBF8E"};const f=c.health.toLowerCase();return f==="running"||f==="ok"?{label:"running",color:"#6FBF8E"}:f==="stale"?{label:"stale",color:Lt}:f==="failed"||f==="error"||f==="stopped"?{label:f,color:"#E0685B"}:{label:f||"unknown",color:rt}}function $1(c){const f=c.toLowerCase();return f==="running"?{label:"running",color:$l}:f==="failed"||f==="error"?{label:"failed",color:"#E0685B"}:f==="cancelled"||f==="interrupted"?{label:f,color:Lt}:{label:f||"unknown",color:rt}}function W1(c,f){const p=new Map;for(const v of f){const y=v.sourceId??v.instance,N=p.get(y)??[];N.push(v),p.set(y,N)}return[...c.length>0?c:[...p.entries()].map(([v,y])=>({sourceId:v,label:y[0]?.instance??v,cwd:y[0]?.cwd??"",artifactDir:"",health:"unknown",liveConnected:!1,counts:{runs:y.length}}))].sort((v,y)=>v.label.localeCompare(y.label)||v.sourceId.localeCompare(y.sourceId)).map(v=>{const y=p.get(v.sourceId)??[];let N=0,Q=0,B=0,z=0,K=0,L=0;const R={},lt={};y.forEach(H=>{N+=H.totals.cost,Q+=H.totals.tokIn+H.totals.tokOut,B+=H.totals.tcalls,z+=H.totals.think,H.outcome==="silent"?K++:L++;const et=ii(H);R[et]=(R[et]||0)+1;const dt=H.status||"unknown";["succeeded","success","completed","done"].includes(dt.toLowerCase())||(lt[dt]=(lt[dt]||0)+1)});const ot=y.map(H=>+new Date(H.startTs)),P=ot.length>0?Math.max(...ot):void 0,ft=F1(v),at=[...j0.filter(H=>R[H]),...Object.keys(R).filter(H=>!j0.includes(H)).sort()].map(H=>({label:zl(H),color:va(H),n:R[H]??0})),yt=Object.entries(lt).sort((H,et)=>et[1]-H[1]||H[0].localeCompare(et[0])).map(([H,et])=>{const dt=$1(H);return{label:dt.label,n:et,color:dt.color}}),$=P===void 0?"no runs":al(P,v.timeZone)+" · "+Qe(P,v.timeZone),Tt=[{label:"Cost",value:pa(N),color:Lt},{label:"Tokens",value:tl(Q),color:el},{label:"Tool calls",value:""+B,color:$l},{label:"Reasoning",value:""+z,color:ll}],zt=at.length?at.map(H=>`${H.label} ${H.n}`).join(", "):"no channels",m=yt.length?yt.map(H=>`${H.label} ${H.n}`).join(", "):"no active or failed statuses";return{sourceId:v.sourceId,name:v.label,cwd:v.cwd,count:y.length,health:v.health,liveConnected:v.liveConnected,healthLabel:ft.label,healthColor:ft.color,stats:Tt,chSegs:at,statusBadges:yt,noti:L,sil:K,last:$,ariaSummary:`${v.label}: ${y.length} runs, ${ft.label}. ${Tt.map(H=>`${H.label} ${H.value}`).join(", ")}. ${zt}. ${m}. ${L} replied, ${K} silent. Last ${$}.`}})}function I1({instances:c,sessions:f,onOpenInstance:p}){const r=I.useMemo(()=>W1(c,f),[c,f]);return s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{marginBottom:24},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:12},children:[s.jsx("span",{style:{width:9,height:9,borderRadius:"50%",background:"#6FBF8E",boxShadow:"0 0 10px #6FBF8E",animation:"rec-blink 2.4s ease-in-out infinite",display:"inline-block"}}),s.jsx("span",{style:{fontFamily:D,fontSize:11,letterSpacing:".28em",color:fe,textTransform:"uppercase"},children:"Instances"})]}),s.jsx("h1",{style:{margin:0,color:Xt,fontSize:"clamp(26px, 7vw, 36px)",lineHeight:1.04,fontWeight:600,letterSpacing:"-.02em"},children:"Agents on this machine"}),s.jsxs("p",{style:{margin:"11px 0 0",color:fe,fontSize:15,lineHeight:1.45,maxWidth:"48ch"},children:[r.length," agent instance",r.length!==1?"s":""," recording sessions — open one to dig into its runs."]})]}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill,minmax(min(330px, 100%),1fr))",gap:14},children:r.map(v=>s.jsxs("div",{className:"inst-card",role:"button",tabIndex:0,"aria-label":`Open instance ${v.ariaSummary}`,onClick:()=>p(v.sourceId),onKeyDown:y=>{(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),p(v.sourceId))},style:{cursor:"pointer",background:"linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.014))",border:"1px solid rgba(255,255,255,.1)",borderRadius:16,padding:20,transition:"transform .16s,border-color .16s,box-shadow .16s"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:11,marginBottom:6},children:[s.jsx("span",{title:v.healthLabel,"aria-label":v.healthLabel,style:{width:10,height:10,borderRadius:"50%",background:v.healthColor,boxShadow:`0 0 10px ${v.healthColor}`,flex:"none"}}),s.jsx("span",{style:{fontSize:20,fontWeight:600,color:Xt,flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:v.name}),s.jsxs("span",{style:{fontFamily:D,fontSize:12,color:"#C9CBD1",background:"rgba(255,255,255,.06)",padding:"3px 9px",borderRadius:6},children:[v.count," runs"]}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:v.healthColor,background:"rgba(255,255,255,.04)",border:`1px solid ${v.healthColor}55`,padding:"3px 7px",borderRadius:6,textTransform:"uppercase",whiteSpace:"nowrap"},children:v.healthLabel})]}),s.jsx("div",{style:{fontFamily:D,fontSize:11,color:rt,marginBottom:17,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:v.cwd}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(88px, 1fr))",gap:10,marginBottom:17},children:v.stats.map(y=>s.jsxs("div",{children:[s.jsx("div",{style:{fontFamily:D,fontSize:9,letterSpacing:".1em",color:rt,textTransform:"uppercase"},children:y.label}),s.jsx("div",{style:{fontFamily:D,fontSize:"clamp(16px, 4.6vw, 18px)",fontWeight:600,marginTop:4,color:y.color},children:y.value})]},y.label))}),s.jsx("div",{style:{display:"flex",height:8,borderRadius:5,overflow:"hidden",background:"rgba(255,255,255,.05)",marginBottom:10},children:v.chSegs.map(y=>s.jsx("div",{title:`${y.label} ${y.n}`,style:{flex:y.n,minWidth:3,background:y.color}},y.label))}),s.jsx("div",{style:{display:"flex",gap:13,flexWrap:"wrap"},children:v.chSegs.map(y=>s.jsxs("span",{style:{display:"flex",alignItems:"center",gap:6,fontFamily:D,fontSize:11,color:fe},children:[s.jsx("span",{style:{width:7,height:7,borderRadius:2,background:y.color}}),y.label," ",y.n]},y.label))}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"4px 12px",marginTop:14,paddingTop:13,borderTop:"1px solid rgba(255,255,255,.07)",fontFamily:D,fontSize:11},children:[s.jsxs("span",{style:{color:fe,display:"flex",gap:8,flexWrap:"wrap"},children:[v.statusBadges.map(y=>s.jsxs("span",{style:{whiteSpace:"nowrap"},children:[s.jsx("span",{style:{color:y.color},children:y.n})," ",y.label]},y.label)),s.jsxs("span",{style:{whiteSpace:"nowrap"},children:[s.jsx("span",{style:{color:Lt},children:v.noti})," replied · ",s.jsx("span",{style:{color:"#8b8d94"},children:v.sil})," silent"]})]}),s.jsxs("span",{style:{color:rt,whiteSpace:"nowrap"},children:["last ",v.last]})]})]},v.sourceId))}),r.length===0&&s.jsx("div",{style:{textAlign:"center",color:rt,padding:50,fontFamily:D,fontSize:13},children:"No instances discovered yet."})]})}function P1(c){return String(c).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Eu(c){let f=P1(c);return f=f.replace(/`([^`]+)`/g,`<code style="font-family:${D};background:rgba(255,255,255,.08);padding:1px 5px;border-radius:4px;font-size:.88em;color:#D9C9A8;overflow-wrap:anywhere;word-break:break-word">$1</code>`),f=f.replace(/\[([^\]]+)\]\((https?:\/\/[^)\s]+)\)/g,'<a href="$2" target="_blank" rel="noopener" style="color:#7FB0E4;text-decoration:underline;overflow-wrap:anywhere;word-break:break-word">$1</a>'),f=f.replace(/\*\*([^*]+)\*\*/g,'<strong style="font-weight:600;color:#F2F0EA">$1</strong>'),f=f.replace(/(^|[^*])\*([^*\n]+)\*/g,'$1<em style="color:#DAD7D0">$2</em>'),f}function tg(c){if(!c)return"";const f=String(c).split(`
|
|
129
|
-
`);let p="",r=null;const v=()=>{r&&(p+="</"+r+">",r=null)};for(const y of f){if(/^\s*$/.test(y)){v(),p+='<div style="height:7px"></div>';continue}let N;if(N=y.match(/^(#{1,4})\s+(.*)$/)){v();const Q=N[1].length,B=Q<=1?17:Q===2?15:13;p+='<div style="font-weight:600;font-size:'+B+'px;color:#F2F0EA;margin:9px 0 3px">'+Eu(N[2])+"</div>";continue}if(N=y.match(/^\s*[-*]\s+(.*)$/)){r!=="ul"&&(v(),p+='<ul style="margin:4px 0;padding-left:19px">',r="ul"),p+='<li style="margin:3px 0">'+Eu(N[1])+"</li>";continue}if(N=y.match(/^\s*\d+\.\s+(.*)$/)){r!=="ol"&&(v(),p+='<ol style="margin:4px 0;padding-left:19px">',r="ol"),p+='<li style="margin:3px 0">'+Eu(N[1])+"</li>";continue}v(),p+="<div>"+Eu(y)+"</div>"}return v(),p}function ai({src:c,style:f}){return I.createElement("div",{style:{overflowWrap:"anywhere",wordBreak:"break-word",...f||{}},dangerouslySetInnerHTML:{__html:tg(c)}})}const ju=["#4FB6A6","#6FA8DC","#B18AE0","#E8A24A","#6FBF8E","#E0955A","#D98BB0"],ni=c=>({fontFamily:D,fontSize:10,letterSpacing:".18em",textTransform:"uppercase",color:c});function eg(c,f){if(!(f>0))return c==="running"?"Waiting for live events...":"No timeline events captured."}function lg(c){return c==="rollover"?"Session rollover":c==="isolated"?"Isolated session":c==="resume_replay"?"Resume replay":c.length>0?c.replace(/_/gu," "):"Session boundary"}function ag(c){return[c.previousConversationId===void 0?void 0:`previous ${c.previousConversationId}`,c.baseConversationId===void 0?void 0:`base ${c.baseConversationId}`,c.conversationId===void 0?void 0:`current ${c.conversationId}`,c.providerSessionId===void 0?void 0:`provider ${c.providerSessionId}`].filter(p=>p!==void 0&&p.length>0).join(" | ")}function ng(c){return c.type==="runtime_warning"?c.kind??"Runtime warning":c.type==="provider_status"?c.kind.replace(/_/gu," "):c.kind.replace(/_/gu," ")}function ig(c){return c.type==="runtime_warning"?c.message:c.type==="provider_status"?[c.model===void 0?void 0:`model ${c.model}`,c.from===void 0?void 0:`from ${c.from}`,c.to===void 0?void 0:`to ${c.to}`,c.attemptIndex===void 0?void 0:`attempt ${c.attemptIndex}`,c.durationMs===void 0?void 0:on(c.durationMs),c.cancelled===!0?"cancelled":void 0].filter(p=>p!==void 0&&p.length>0).join(" | "):c.type}function ug({id:c,onBack:f}){const{sessions:p,instances:r,detailStatus:v,retryDetail:y}=w0(),N=ns(),[Q,B]=I.useState({}),[z,K]=I.useState(!1),L=M=>B(Z=>({...Z,[M]:!Z[M]})),R=I.useMemo(()=>p.find(M=>he(M)===c),[p,c]),lt=I.useMemo(()=>{if(!R)return null;const M=R.totals,Z=ii(R),ht=r.find(G=>G.sourceId===(R.sourceId??R.instance))?.timeZone,ee=va(Z),$t=Z==="chat",A=H0(R),k=B1(R),F=M.tokIn+M.tokOut+M.tokCache,ut=F||1,bt=[{label:"Duration",value:on(R.durMs),sub:M.asst+" agent turns",color:Xt},{label:"Steps",value:""+M.steps,sub:"events logged",color:Xt},{label:"Tool calls",value:""+M.tcalls,sub:Object.keys(R.toolCounts).length+" distinct",color:$l},{label:"Reasoning",value:""+M.think,sub:"thinking blocks",color:ll},{label:"Cost",value:pa(M.cost),sub:"this session",color:Lt},{label:"Tokens",value:tl(M.tokIn+M.tokOut),sub:tl(M.tokCache)+" cached",color:el}],d={};(R.steps||[]).forEach(G=>{G.k==="assistant"&&(G.calls||[]).forEach(Mt=>d[Mt.id]={ts:G.ts,name:Mt.name})});const j={};(R.steps||[]).forEach(G=>{if(G.k==="result"&&G.tcid&&d[G.tcid]){const Mt=d[G.tcid].name,Zt=+new Date(G.ts)-+new Date(d[G.tcid].ts);j[Mt]||(j[Mt]={sum:0,n:0}),Zt>=0&&(j[Mt].sum+=Zt,j[Mt].n++)}});const U=Object.entries(R.toolCounts).sort((G,Mt)=>Mt[1]-G[1]),q=U.length?U[0][1]:1,Y=U.map((G,Mt)=>{const Zt=j[G[0]],nl=Zt&&Zt.n?on(Math.round(Zt.sum/Zt.n)):"";return{name:G[0],n:G[1],w:Math.max(6,G[1]/q*100),c1:Ht(ju[Mt%ju.length],.55),c2:ju[Mt%ju.length],avg:nl}}),V={};(R.steps||[]).forEach(G=>{G.k==="result"&&G.tcid&&(V[G.tcid]=G)});let nt=null,Rt=!1;const At=[];if((R.steps||[]).forEach((G,Mt)=>{if(G.k==="result")return;if(G.k==="prompt"&&!Rt){Rt=!0,nt=G.ts;return}const Zt=G.k==="prompt"?el:G.k==="assistant"?Lt:G.k==="boundary"?ll:fe,nl=nt!=null?+new Date(G.ts)-+new Date(nt):0,ze=nt!=null&&nl>0?"+"+on(nl):"";if(nt=G.ts,G.k==="prompt"){let we=G.text||"";const me=we.indexOf("[Recalled long-term memory");me>=0&&(we=we.slice(0,me).trim()),At.push({kind:"prompt",key:"s"+Mt,color:Zt,glow:Ht(Zt,.5),timeStr:Qe(G.ts,ht),text:we+(G.tr?`
|
|
130
|
-
…`:"")})}else if(G.k==="boundary")At.push({kind:"boundary",key:"s"+Mt,color:Zt,glow:Ht(Zt,.5),timeStr:Qe(G.ts,ht),dt:ze,label:lg(G.kind),meta:ag(G),...G.reason===void 0?{}:{reason:G.reason}});else if(G.k==="runtime")At.push({kind:"runtime",key:"s"+Mt,color:Zt,glow:Ht(Zt,.5),timeStr:Qe(G.ts,ht),dt:ze,label:ng(G),meta:ig(G)});else if(G.k==="assistant"){const we=(G.think||[]).map(w=>w.t+(w.tr?"…":"")).join(`
|
|
131
|
-
|
|
132
|
-
`),me=(G.calls||[]).map((w,Nt)=>{const Yt=V[w.id];let Qt="";if(Yt){const Ke=+new Date(Yt.ts)-+new Date(G.ts);Ke>=0&&(Qt=on(Ke))}return{key:"x"+Mt+"_"+Nt,name:w.name,argDig:w.dig,argRaw:w.raw+(w.tr?`
|
|
133
|
-
…`:""),hasResult:!!Yt,resultDig:Yt?Yt.dig:"",resultRaw:Yt?Yt.text+(Yt.tr?`
|
|
134
|
-
…[truncated]`:""):"",durStr:Qt,statusColor:Yt?Yt.ok?B0:is:Te,statusWord:Yt?Yt.ok?"· ok":"· error":""}}),ba=!!(G.text&&G.text.trim()),Be=G.u,El=Be?Be.cost:0,Wl={kind:"assistant",key:"s"+Mt,color:Zt,glow:Ht(Zt,.5),timeStr:Qe(G.ts,ht),dt:ze,hasThink:!!we,thinkText:we,thinkKey:"t"+Mt,hasCalls:me.length>0,callHeader:me.length>1?"Called "+me.length+" tools in parallel":me.length===1?"Called 1 tool":"",calls:me,hasText:ba,text:(G.text||"")+(G.ttr?`
|
|
135
|
-
…`:""),hasUsage:Be!==void 0,uTok:tl(Be?Be.i:0)+" in · "+tl(Be?Be.o:0)+" out",uCost:pa(El),turnPct:Math.round(El/(M.cost||1)*100)};At.push(Wl)}}),R.finalText.trim())for(let G=At.length-1;G>=0;G--){const Mt=At[G];if(Mt.kind==="assistant"&&Mt.hasText){Mt.hasText=!1;break}}return{isChat:$t,col:ee,channel:zl(Z),outcome:A,eff:k,vitals:bt,toolBars:Y,toolEntries:U,steps:At,zone:ht,tokTot:F,tbInput:Math.round(M.tokIn/ut*100),tbOutput:Math.round(M.tokOut/ut*100),tbCache:Math.round(M.tokCache/ut*100)}},[R,r]);if(!R||!lt)return s.jsxs("div",{style:{maxWidth:920,margin:"0 auto",padding:60,textAlign:"center",color:rt,fontFamily:D},children:[s.jsx("button",{className:"back-btn",onClick:f,style:A0,"aria-label":"Back to all sessions",children:"← all sessions"}),s.jsx("div",{style:{marginTop:30},children:"This run is no longer available."})]});const{isChat:ot,outcome:P,eff:ft,vitals:St,toolBars:at,toolEntries:yt,steps:$}=lt,Tt=R.totals,zt=["failed","cancelled","interrupted"].includes(R.status),m=[R.failureKind===void 0?void 0:`kind ${R.failureKind}`,R.error].filter(M=>M!==void 0&&M.trim().length>0),H=eg(R.status,$.length),et=v[c],dt=P.running?"Running · streaming live":zt?`${P.label.toLowerCase()} · ${zl(ii(R))}`:`${zl(ii(R))} · replied`;return s.jsxs("div",{style:{maxWidth:920,margin:"0 auto",padding:"0 0 calc(48px + env(safe-area-inset-bottom))"},children:[s.jsx("div",{style:{position:"sticky",top:0,zIndex:20,backdropFilter:"blur(12px)",WebkitBackdropFilter:"blur(12px)",background:"rgba(10,11,14,.82)",borderBottom:"1px solid rgba(255,255,255,.08)"},children:s.jsxs("div",{style:{padding:"calc(14px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left))",display:"flex",alignItems:"center",gap:N?8:14},children:[s.jsx("button",{className:"back-btn",onClick:f,style:A0,"aria-label":"Back to all sessions",children:N?s.jsx(s.Fragment,{children:"←"}):s.jsx(s.Fragment,{children:"← all sessions"})}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsx("div",{style:{fontSize:15,fontWeight:600,color:Xt,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:R.title}),s.jsxs("div",{style:{fontFamily:D,fontSize:11,color:rt},children:[R.instance," · ",U0(R.startTs,lt.zone)," ",al(R.startTs,lt.zone)," · ",Qe(R.startTs,lt.zone)]})]}),(!ot||P.running||zt)&&s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:6,fontFamily:D,fontSize:10,letterSpacing:".08em",textTransform:"uppercase",padding:N?"4px 8px":"5px 11px",borderRadius:6,background:Ht(P.color,.14),color:P.color,border:`1px solid ${Ht(P.color,.34)}`,whiteSpace:"nowrap"},children:[P.running&&s.jsx("span",{style:{width:6,height:6,borderRadius:"50%",background:P.color,boxShadow:`0 0 7px ${P.color}`,animation:"rec-blink 1.4s ease-in-out infinite"}}),P.label]})]})}),s.jsxs("div",{style:{padding:"22px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left))"},children:[et?.error&&s.jsxs("div",{role:"alert",style:{marginBottom:16,border:"1px solid rgba(224,104,91,.28)",borderRadius:12,padding:"13px 14px",background:"rgba(224,104,91,.07)"},children:[s.jsx("div",{style:{fontFamily:D,fontSize:10,letterSpacing:".14em",color:"#E0685B",textTransform:"uppercase",marginBottom:7},children:"Detail load failed"}),s.jsx("div",{style:{color:rt,fontSize:13,lineHeight:1.5,overflowWrap:"anywhere"},children:et.error}),s.jsx("button",{className:"rec-btn",onClick:()=>y(c),style:{cursor:"pointer",marginTop:11,minHeight:44,borderRadius:9,border:"1px solid rgba(224,104,91,.32)",background:"rgba(224,104,91,.1)",color:"#F0988F",fontFamily:D,fontSize:12,padding:"10px 13px"},children:"Retry detail"})]}),et?.loading&&s.jsx("div",{role:"status","aria-live":"polite",style:{marginBottom:16,border:"1px solid rgba(232,162,74,.22)",borderRadius:12,padding:"11px 14px",background:"rgba(232,162,74,.06)",color:"#D7B278",fontFamily:D,fontSize:11,letterSpacing:".08em",textTransform:"uppercase"},children:"Loading full detail"}),s.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:9,marginBottom:16},children:[[{k:"Model",v:R.model||"—",strong:!0,color:Xt},{k:"API",v:R.api||"—",strong:!0,color:Xt},{k:"Provider",v:R.provider||"—",strong:!1,color:"#C9CBD1"}].map(M=>s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:"rgba(255,255,255,.03)",border:"1px solid rgba(255,255,255,.08)",borderRadius:9,padding:"8px 12px",maxWidth:"100%",minWidth:0},children:[s.jsx("span",{style:{fontFamily:D,fontSize:9,letterSpacing:".14em",color:Te,textTransform:"uppercase",flex:"none"},children:M.k}),s.jsx("span",{style:{fontFamily:D,fontSize:13,color:M.color,fontWeight:M.strong?600:400,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:M.v})]},M.k)),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,background:Ht(ft.color,.08),border:`1px solid ${Ht(ft.color,.24)}`,borderRadius:9,padding:"8px 12px"},children:[s.jsx("span",{style:{fontFamily:D,fontSize:9,letterSpacing:".14em",color:Te,textTransform:"uppercase"},children:"Effort"}),s.jsx("span",{style:{fontFamily:D,fontSize:13,color:ft.color,fontWeight:600},children:ft.label}),s.jsx("span",{style:{fontFamily:D,fontSize:11,color:rt},children:ft.detail})]})]}),zt&&(m.length>0||(R.failoverHistory?.length??0)>0)&&s.jsxs("div",{style:{marginTop:16,background:"rgba(224,104,91,.07)",border:"1px solid rgba(224,104,91,.24)",borderRadius:13,padding:"14px 16px"},children:[s.jsx("div",{style:{...ni("#E0988F"),marginBottom:9},children:"▼ Failure detail"}),m.length>0&&s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:m.map((M,Z)=>s.jsx("div",{style:{fontFamily:D,fontSize:12,lineHeight:1.5,color:"#E7B0A9",overflowWrap:"anywhere"},children:M},Z))}),(R.failoverHistory?.length??0)>0&&s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:7,marginTop:m.length>0?11:0},children:R.failoverHistory?.map((M,Z)=>s.jsxs("div",{style:{display:"flex",gap:8,flexWrap:"wrap",alignItems:"center",fontFamily:D,fontSize:11,color:"#D9A49D"},children:[s.jsxs("span",{style:{color:"#F0988F"},children:["#",Z+1]}),s.jsx("span",{style:{overflowWrap:"anywhere"},children:M.model??"unknown model"}),M.failureKind!==void 0&&s.jsx("span",{style:{color:rt},children:M.failureKind}),M.subkind!==void 0&&s.jsx("span",{style:{color:rt},children:M.subkind}),M.requestId!==void 0&&s.jsxs("span",{style:{color:rt},children:["request ",M.requestId]})]},`${M.model??"model"}-${Z}`))})]}),s.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit,minmax(104px,1fr))",gap:10},children:St.map(M=>s.jsxs("div",{style:{background:"rgba(255,255,255,.028)",border:"1px solid rgba(255,255,255,.07)",borderRadius:12,padding:"13px 14px"},children:[s.jsx("div",{style:{fontFamily:D,fontSize:9,letterSpacing:".14em",color:rt,textTransform:"uppercase"},children:M.label}),s.jsx("div",{style:{fontFamily:D,fontSize:21,fontWeight:600,marginTop:6,color:M.color},children:M.value}),s.jsx("div",{style:{fontSize:11,color:"#8b8d94",marginTop:2},children:M.sub})]},M.label))}),s.jsxs("div",{style:{marginTop:12,background:"rgba(255,255,255,.028)",border:"1px solid rgba(255,255,255,.07)",borderRadius:12,padding:"15px 16px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10,fontFamily:D,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:rt},children:[s.jsx("span",{children:"Token composition"}),s.jsxs("span",{children:[tl(lt.tokTot)," total"]})]}),s.jsxs("div",{style:{display:"flex",height:9,borderRadius:5,overflow:"hidden",background:"rgba(255,255,255,.05)"},children:[s.jsx("div",{style:{background:el,width:`${lt.tbInput}%`}}),s.jsx("div",{style:{background:Lt,width:`${lt.tbOutput}%`}}),s.jsx("div",{style:{background:"#4a4d55",width:`${lt.tbCache}%`}})]}),s.jsxs("div",{style:{display:"flex",gap:16,marginTop:9,fontFamily:D,fontSize:11,color:fe,flexWrap:"wrap"},children:[s.jsxs("span",{children:[s.jsx("span",{style:{color:el},children:"■"})," ",tl(Tt.tokIn)," input"]}),s.jsxs("span",{children:[s.jsx("span",{style:{color:Lt},children:"■"})," ",tl(Tt.tokOut)," output"]}),s.jsxs("span",{children:[s.jsx("span",{style:{color:"#8b8d94"},children:"■"})," ",tl(Tt.tokCache)," cache-read"]})]})]}),s.jsxs("div",{style:{marginTop:22},children:[s.jsx("div",{style:{...ni(el),marginBottom:9},children:"▼ Trigger"}),s.jsxs("div",{style:{background:"rgba(111,168,220,.06)",border:"1px solid rgba(111,168,220,.2)",borderRadius:13,padding:"16px 18px"},children:[s.jsx(ai,{src:R.instr+(R.instrTr?`
|
|
136
|
-
…`:""),style:{fontSize:14,lineHeight:1.55,color:"#D4D8DE",fontFamily:cn}}),R.hasRecall&&s.jsxs("div",{style:{marginTop:12,borderTop:"1px solid rgba(255,255,255,.08)",paddingTop:11},children:[s.jsx("button",{className:"link-btn",onClick:()=>K(M=>!M),"aria-expanded":z,style:{cursor:"pointer",background:"none",border:"none",color:"#8b8d94",fontFamily:D,fontSize:11,letterSpacing:".06em",padding:"8px 4px",margin:"0 0 0 -4px",minHeight:44,display:"flex",alignItems:"center",gap:6},children:z?"▾ hide recalled memory":"▸ show recalled long-term memory"}),z&&s.jsx("div",{style:{whiteSpace:"pre-wrap",fontFamily:D,fontSize:12,lineHeight:1.6,color:"#8b8d94",marginTop:10,maxHeight:260,overflow:"auto",padding:12,background:"rgba(0,0,0,.25)",borderRadius:9},children:(R.recalled||"")+(R.recalledTr?`
|
|
137
|
-
…`:"")})]})]})]}),at.length>0&&s.jsxs("div",{style:{marginTop:22},children:[s.jsxs("div",{style:{...ni($l),marginBottom:11},children:["▼ Tool usage ",s.jsxs("span",{style:{color:rt},children:[Tt.tcalls," calls · ",yt.length," tools"]})]}),s.jsx("div",{style:{background:"rgba(255,255,255,.028)",border:"1px solid rgba(255,255,255,.07)",borderRadius:14,padding:"15px 17px",display:"flex",flexDirection:"column",gap:12},children:at.map(M=>s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:13},children:[s.jsxs("div",{style:{width:"clamp(84px, 34vw, 144px)",flex:"none",display:"flex",alignItems:"center",gap:9,minWidth:0},children:[s.jsx("span",{style:{width:9,height:9,borderRadius:3,background:M.c2,boxShadow:`0 0 8px ${M.c1}`,flex:"none"}}),s.jsx("span",{style:{fontFamily:D,fontSize:12.5,color:"#DEDCD5",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:M.name})]}),s.jsxs("div",{style:{flex:1,height:23,background:"rgba(255,255,255,.035)",borderRadius:7,overflow:"hidden",position:"relative"},children:[s.jsx("div",{style:{height:"100%",width:`${M.w}%`,background:`linear-gradient(90deg,${M.c1},${M.c2})`,borderRadius:7,transition:"width .6s",boxShadow:"inset 0 1px 0 rgba(255,255,255,.16)"}}),s.jsx("span",{style:{position:"absolute",right:10,top:0,bottom:0,display:"flex",alignItems:"center",fontFamily:D,fontSize:10,color:"#8b8d94"},children:M.avg})]}),s.jsx("div",{style:{width:26,textAlign:"right",fontFamily:D,fontSize:15,color:Xt,fontWeight:600},children:M.n})]},M.name))})]}),s.jsxs("div",{style:{marginTop:30},children:[s.jsxs("div",{style:{...ni(fe),marginBottom:16},children:["▼ Session timeline ",s.jsxs("span",{style:{color:rt},children:[Tt.asst," agent turns · ",Tt.steps," events"]})]}),s.jsxs("div",{style:{position:"relative",paddingLeft:26,borderLeft:"1px solid rgba(255,255,255,.09)"},children:[$.map(M=>s.jsxs("div",{style:{position:"relative",marginBottom:14},children:[s.jsx("span",{style:{position:"absolute",left:-32,top:3,width:12,height:12,borderRadius:"50%",background:M.color,boxShadow:`0 0 0 4px #0a0b0e,0 0 10px ${M.glow}`}}),M.kind==="prompt"?s.jsxs("div",{style:{background:"rgba(111,168,220,.07)",border:"1px solid rgba(111,168,220,.2)",borderRadius:12,padding:"14px 16px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[s.jsx("span",{style:{fontFamily:D,fontSize:11,letterSpacing:".14em",textTransform:"uppercase",color:el,fontWeight:600},children:"User"}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:Te},children:M.timeStr})]}),s.jsx(ai,{src:M.text,style:{fontSize:14,lineHeight:1.55,color:"#D4D8DE",fontFamily:cn}})]}):M.kind==="boundary"?s.jsxs("div",{style:{background:"rgba(177,138,224,.055)",border:"1px solid rgba(177,138,224,.2)",borderRadius:10,padding:"11px 13px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,flexWrap:"wrap"},children:[s.jsx("span",{style:{fontFamily:D,fontSize:10,letterSpacing:".14em",textTransform:"uppercase",color:ll,fontWeight:600},children:"Session boundary"}),s.jsxs("span",{style:{fontFamily:D,fontSize:10,color:Te,whiteSpace:"nowrap"},children:[M.dt?M.dt+" · ":"",M.timeStr]})]}),s.jsx("div",{style:{marginTop:7,color:"#D8CEE8",fontSize:13,lineHeight:1.45,overflowWrap:"anywhere"},children:M.label}),M.meta.length>0&&s.jsx("div",{style:{marginTop:5,fontFamily:D,fontSize:11,lineHeight:1.45,color:"#9A90AA",overflowWrap:"anywhere"},children:M.meta}),M.reason!==void 0&&M.reason.length>0&&s.jsx("div",{style:{marginTop:6,fontSize:12,lineHeight:1.45,color:rt,overflowWrap:"anywhere"},children:M.reason})]}):M.kind==="runtime"?s.jsxs("div",{style:{background:"rgba(232,162,74,.045)",border:"1px solid rgba(232,162,74,.16)",borderRadius:10,padding:"10px 12px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,flexWrap:"wrap"},children:[s.jsx("span",{style:{fontFamily:D,fontSize:10,letterSpacing:".14em",textTransform:"uppercase",color:Lt,fontWeight:600},children:"Runtime"}),s.jsxs("span",{style:{fontFamily:D,fontSize:10,color:Te,whiteSpace:"nowrap"},children:[M.dt?M.dt+" · ":"",M.timeStr]})]}),s.jsx("div",{style:{marginTop:7,color:"#E0C28D",fontSize:13,lineHeight:1.45,overflowWrap:"anywhere"},children:M.label}),M.meta.length>0&&s.jsx("div",{style:{marginTop:5,fontFamily:D,fontSize:11,lineHeight:1.45,color:"#A99570",overflowWrap:"anywhere"},children:M.meta})]}):s.jsxs("div",{style:{background:"linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012))",border:"1px solid rgba(255,255,255,.09)",borderRadius:12,padding:"14px 16px"},children:[s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsx("span",{style:{fontFamily:D,fontSize:11,letterSpacing:".14em",textTransform:"uppercase",color:Lt,fontWeight:600},children:"Agent"}),s.jsxs("span",{style:{fontFamily:D,fontSize:10,color:Te},children:[M.dt?M.dt+" · ":"",M.timeStr]})]}),M.hasThink&&s.jsxs("div",{style:{marginTop:10},children:[s.jsxs("button",{className:"think-btn",onClick:()=>L(M.thinkKey),"aria-expanded":Q[M.thinkKey],style:{cursor:"pointer",background:"none",border:"none",padding:"8px 4px",margin:"0 0 0 -4px",minHeight:44,display:"flex",alignItems:"center",gap:7,color:ll,fontFamily:D,fontSize:11,letterSpacing:".04em"},children:[s.jsx("span",{style:{fontSize:13},children:Q[M.thinkKey]?"▾":"▸"})," reasoning"]}),Q[M.thinkKey]&&s.jsx("div",{style:{marginTop:8,padding:"12px 14px",background:"rgba(177,138,224,.06)",borderLeft:"2px solid rgba(177,138,224,.4)",borderRadius:"0 9px 9px 0"},children:s.jsx(ai,{src:M.thinkText,style:{fontFamily:R1,fontStyle:"italic",fontSize:15,lineHeight:1.62,color:"#CFC7DE"}})})]}),M.hasCalls&&s.jsxs("div",{style:{marginTop:11},children:[s.jsx("div",{style:{fontFamily:D,fontSize:10,color:$l,letterSpacing:".06em",marginBottom:7},children:M.callHeader}),s.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:M.calls.map(Z=>{const ht=!!Q[Z.key];return s.jsxs("div",{style:{background:"rgba(79,182,166,.05)",border:"1px solid rgba(79,182,166,.16)",borderRadius:9,overflow:"hidden"},children:[s.jsxs("div",{className:"call-head",role:"button",tabIndex:0,onClick:()=>L(Z.key),onKeyDown:ee=>{(ee.key==="Enter"||ee.key===" ")&&(ee.preventDefault(),L(Z.key))},"aria-expanded":ht,"aria-label":`${Z.name} tool call`,style:{cursor:"pointer",display:"flex",alignItems:"center",gap:9,padding:"12px 11px",minHeight:44},children:[s.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:Z.statusColor,flex:"none",boxShadow:`0 0 6px ${Z.statusColor}`}}),s.jsx("span",{style:{fontFamily:D,fontSize:12,fontWeight:600,color:"#6FD0C0",minWidth:0,maxWidth:"min(150px, 34vw)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:Z.name}),s.jsx("span",{style:{fontFamily:D,fontSize:11,color:"#8b8d94",flex:1,minWidth:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Z.argDig}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:"#9aa0a8",whiteSpace:"nowrap"},children:Z.durStr}),s.jsx("span",{style:{fontFamily:D,fontSize:11,color:Te},children:ht?"▾":"▸"})]}),Z.hasResult&&!ht&&s.jsx("div",{style:{padding:"0 11px 9px 27px",fontSize:12,color:"#8b8d94",lineHeight:1.4,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Z.resultDig}),ht&&s.jsxs("div",{style:{padding:"2px 11px 11px"},children:[s.jsx("div",{style:{fontFamily:D,fontSize:9,letterSpacing:".14em",textTransform:"uppercase",color:$l,margin:"4px 0 5px"},children:"Input"}),s.jsx("pre",{style:_0,children:Z.argRaw}),Z.hasResult&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,margin:"11px 0 5px"},children:[s.jsxs("span",{style:{fontFamily:D,fontSize:9,letterSpacing:".14em",textTransform:"uppercase",color:Z.statusColor},children:["Output ",Z.statusWord]}),s.jsx("span",{style:{fontFamily:D,fontSize:10,color:Te},children:Z.durStr})]}),s.jsx("pre",{style:{..._0,maxHeight:280},children:Z.resultRaw})]})]})]},Z.key)})})]}),M.hasText&&s.jsx("div",{style:{marginTop:11,borderTop:"1px solid rgba(255,255,255,.07)",paddingTop:11},children:s.jsx(ai,{src:M.text,style:{fontSize:14,lineHeight:1.55,color:"#DEDCD5",fontFamily:cn}})}),M.hasUsage&&s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px 11px",flexWrap:"wrap",marginTop:12,paddingTop:10,borderTop:"1px solid rgba(255,255,255,.06)"},children:[s.jsx("span",{style:{fontFamily:D,fontSize:10,color:rt,flex:"1 1 126px",minWidth:0,overflowWrap:"anywhere"},children:M.uTok}),s.jsx("div",{style:{flex:N?"1 1 100%":1,order:N?3:0,minWidth:N?"100%":70,height:4,background:"rgba(255,255,255,.06)",borderRadius:3,overflow:"hidden"},children:s.jsx("div",{style:{height:"100%",width:`${M.turnPct}%`,background:Lt,borderRadius:3}})}),s.jsxs("span",{style:{fontFamily:D,fontSize:10,color:Lt,whiteSpace:"nowrap"},children:[M.uCost," · ",M.turnPct,"% of run"]})]})]})]},M.key)),H!==void 0&&s.jsxs("div",{role:R.status==="running"?"status":void 0,style:{position:"relative",background:"rgba(255,255,255,.025)",border:"1px dashed rgba(255,255,255,.12)",borderRadius:12,padding:"14px 16px",color:rt,fontFamily:D,fontSize:12},children:[s.jsx("span",{style:{position:"absolute",left:-32,top:15,width:12,height:12,borderRadius:"50%",background:Te,boxShadow:"0 0 0 4px #0a0b0e"}}),H]})]})]}),s.jsxs("div",{style:{marginTop:26},children:[s.jsx("div",{style:{...ni(Lt),marginBottom:11},children:"▼ Agent output"}),P.silent?s.jsxs("div",{style:{background:"rgba(255,255,255,.02)",border:"1px dashed rgba(255,255,255,.14)",borderRadius:13,padding:20,textAlign:"center"},children:[s.jsx("div",{style:{fontFamily:D,fontSize:14,color:"#8b8d94",letterSpacing:".05em"},children:"NOTHING_TO_REPORT"}),s.jsx("div",{style:{fontSize:13,color:rt,marginTop:6},children:"Scan completed — nothing worth interrupting you. Stayed silent."})]}):s.jsxs("div",{style:{background:"linear-gradient(180deg,rgba(232,162,74,.1),rgba(232,162,74,.03))",border:"1px solid rgba(232,162,74,.28)",borderRadius:15,padding:"18px 20px",boxShadow:"0 12px 40px -18px rgba(232,162,74,.5)"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9,marginBottom:11},children:[s.jsx("span",{style:{width:26,height:26,borderRadius:7,background:Lt,display:"flex",alignItems:"center",justifyContent:"center",color:"#0a0b0e",fontWeight:700,fontFamily:D,fontSize:13},children:"A"}),s.jsxs("div",{style:{lineHeight:1.1},children:[s.jsx("div",{style:{fontSize:13,fontWeight:600,color:Xt},children:R.instance}),s.jsx("div",{style:{fontFamily:D,fontSize:10,color:"#c39a5e"},children:dt})]})]}),R.finalText.trim()?s.jsx(ai,{src:R.finalText+(R.finalTr?`
|
|
138
|
-
…`:""),style:{fontSize:14,lineHeight:1.6,color:"#ECE6DC",fontFamily:cn}}):P.running?s.jsx("div",{style:{fontFamily:D,fontSize:13,color:rt},children:"Still running — no final output yet."}):s.jsx("div",{style:{fontFamily:D,fontSize:13,color:rt},children:"No final output captured for this run."})]})]})]})]})}const A0={cursor:"pointer",display:"inline-flex",alignItems:"center",gap:7,background:"rgba(255,255,255,.05)",border:"1px solid rgba(255,255,255,.1)",color:"#C9CBD1",fontFamily:D,fontSize:12,minHeight:44,minWidth:44,justifyContent:"center",padding:"10px 13px",borderRadius:9,transition:"all .15s"},_0={margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",fontFamily:D,fontSize:11,lineHeight:1.5,color:fe,maxHeight:200,overflow:"auto",background:"rgba(0,0,0,.3)",padding:10,borderRadius:7};function cg({view:c,onNav:f,statusPill:p}){const r=v=>({cursor:"pointer",fontFamily:D,fontSize:12,letterSpacing:".04em",padding:"10px 16px",minHeight:44,display:"inline-flex",alignItems:"center",borderRadius:10,border:`1px solid ${v?"rgba(255,255,255,.2)":"rgba(255,255,255,.08)"}`,background:v?"rgba(255,255,255,.1)":"transparent",color:v?Xt:"#8b8d94",transition:"all .15s"});return s.jsxs("div",{style:{display:"flex",gap:7,marginBottom:26,alignItems:"center",flexWrap:"wrap",rowGap:8},children:[s.jsx("button",{className:"rec-chip",onClick:()=>f("list"),style:r(c!=="instances"),"aria-current":c!=="instances"?"page":void 0,children:"Sessions"}),s.jsx("button",{className:"rec-chip",onClick:()=>f("instances"),style:r(c==="instances"),"aria-current":c==="instances"?"page":void 0,children:"Instances"}),s.jsx("div",{style:{marginLeft:"auto"},children:p})]})}function og(){const{sessions:c,instances:f,status:p,error:r,canLoadOlderFor:v,loadingOlderFor:y,historyErrorFor:N,loadOlder:Q,ensureDetail:B,reload:z}=w0(),K=ns(),[L,R]=I.useState("list"),[lt,ot]=I.useState(null),[P,ft]=I.useState(()=>x0()),[St,at]=I.useState("all"),[yt,$]=I.useState("all"),[Tt,zt]=I.useState(""),m=I.useRef(null),H=I.useCallback(ht=>{B(ht),ot(ht),R("detail"),window.scrollTo?.(0,0)},[B]),et=I.useCallback(ht=>{$(ht),ft(x0()),at("all"),R("list"),window.scrollTo?.(0,0)},[]);I.useEffect(()=>{m.current?.focus({preventScroll:!0})},[L]);const dt={minHeight:"100dvh",background:M1,color:Xt,fontFamily:cn,WebkitFontSmoothing:"antialiased",outline:"none"};if(L==="detail"&<)return s.jsx("div",{ref:m,tabIndex:-1,style:dt,children:s.jsx(ug,{id:lt,onBack:()=>R("list")},lt)});const M=p==="fixture"?s.jsx("span",{title:"No backend reachable — showing bundled demo data","aria-label":"No backend reachable — showing bundled demo data",style:{fontFamily:D,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:rt,border:"1px solid rgba(255,255,255,.1)",borderRadius:999,padding:"5px 11px",background:"rgba(255,255,255,.03)",whiteSpace:"nowrap",flex:"none"},children:"demo data"}):p==="reconnecting"?s.jsx("span",{title:"Loaded latest snapshot — reconnecting to live updates","aria-label":"Loaded latest snapshot — reconnecting to live updates",style:{fontFamily:D,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:"#E8A24A",border:"1px solid rgba(232,162,74,.32)",borderRadius:999,padding:"5px 11px",background:"rgba(232,162,74,.09)",whiteSpace:"nowrap",flex:"none"},children:"reconnecting"}):p==="error"?s.jsx("span",{title:r||"Session web backend unavailable","aria-label":r||"Session web backend unavailable",style:{fontFamily:D,fontSize:10,letterSpacing:".12em",textTransform:"uppercase",color:"#E0685B",border:"1px solid rgba(224,104,91,.35)",borderRadius:999,padding:"5px 11px",background:"rgba(224,104,91,.1)",whiteSpace:"nowrap",flex:"none"},children:"backend error"}):null,Z=p==="error"&&/(?:^|[^0-9])40[13](?:[^0-9]|$)/.test(r||"");return s.jsx("div",{ref:m,tabIndex:-1,style:dt,children:s.jsxs("div",{style:{maxWidth:1160,margin:"0 auto",padding:`calc(${K?18:24}px + env(safe-area-inset-top)) max(${K?12:16}px, env(safe-area-inset-right)) calc(${K?72:84}px + env(safe-area-inset-bottom)) max(${K?12:16}px, env(safe-area-inset-left))`},children:[s.jsx(cg,{view:L,onNav:R,statusPill:M}),p==="error"?s.jsxs("div",{style:{margin:"48px auto",maxWidth:640,border:"1px solid rgba(224,104,91,.24)",borderRadius:14,padding:24,background:"rgba(224,104,91,.06)"},children:[s.jsx("div",{style:{fontFamily:D,fontSize:11,letterSpacing:".16em",color:"#E0685B",textTransform:"uppercase",marginBottom:10},children:Z?"Authentication required":"Backend error"}),s.jsx("div",{style:{color:Xt,fontSize:20,fontWeight:600,marginBottom:8},children:Z?"Enter the session-web token.":"Session data could not be loaded."}),s.jsx("div",{style:{color:rt,fontSize:14,lineHeight:1.55,overflowWrap:"anywhere"},children:r||"The session-web API returned an error."}),Z&&s.jsxs("form",{onSubmit:ht=>{ht.preventDefault(),O0(Tt),z()},style:{display:"flex",gap:9,flexWrap:"wrap",marginTop:16},children:[s.jsx("input",{value:Tt,onChange:ht=>zt(ht.currentTarget.value),placeholder:"Bearer token","aria-label":"Session-web bearer token",style:{flex:"1 1 220px",minWidth:0,minHeight:44,borderRadius:9,border:"1px solid rgba(255,255,255,.16)",background:"rgba(0,0,0,.28)",color:Xt,fontFamily:D,fontSize:13,padding:"10px 12px"}}),s.jsx("button",{className:"rec-btn",type:"submit",style:{cursor:"pointer",minHeight:44,borderRadius:9,border:"1px solid rgba(232,162,74,.36)",background:"rgba(232,162,74,.12)",color:"#F0BE73",fontFamily:D,fontSize:12,padding:"10px 14px"},children:"Retry"}),s.jsx("button",{className:"rec-btn",type:"button",onClick:()=>{p1(),zt(""),z()},style:{cursor:"pointer",minHeight:44,borderRadius:9,border:"1px solid rgba(255,255,255,.12)",background:"rgba(255,255,255,.04)",color:"#C9CBD1",fontFamily:D,fontSize:12,padding:"10px 14px"},children:"Clear"})]})]}):L==="instances"?s.jsx(I1,{instances:f,sessions:c,onOpenInstance:et}):s.jsx(J1,{sessions:c,instances:f,excludedChannels:P,fOut:St,fInstance:yt,setExcludedChannels:ft,setFOut:at,setFInstance:$,onOpen:H,canLoadOlder:v(yt),loadingOlder:y(yt),historyError:N(yt),onLoadOlder:()=>Q(yt)})]})})}d1.createRoot(document.getElementById("root")).render(s.jsx(I.StrictMode,{children:s.jsx(A1,{children:s.jsx(og,{})})}));
|