@openscout/scout 0.2.45 → 0.2.46
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/README.md +19 -0
- package/dist/client/assets/index-BIhZnptE.css +1 -0
- package/dist/client/assets/index-Dz8OkaKF.js +94 -0
- package/dist/client/index.html +2 -2
- package/dist/control-plane-client/assets/{arc.es-C-s36DjK.js → arc.es-CehM6B37.js} +1 -1
- package/dist/control-plane-client/assets/index-C3R8grI3.css +1 -0
- package/dist/control-plane-client/assets/index-D17d1jzn.js +9 -0
- package/dist/control-plane-client/index.html +2 -2
- package/dist/control-plane-client/openscout-icon.png +0 -0
- package/dist/main.mjs +4361 -1062
- package/dist/pair-supervisor.mjs +8382 -6708
- package/dist/scout-control-plane-web.mjs +4549 -362
- package/dist/scout-web-server.mjs +12242 -7147
- package/package.json +2 -2
- package/dist/client/assets/index-BcTyuj21.js +0 -94
- package/dist/client/assets/index-DAkydZKt.css +0 -1
- package/dist/control-plane-client/assets/index--5UC57U9.css +0 -1
- package/dist/control-plane-client/assets/index-B2VbvZaM.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function my(c,u){for(var o=0;o<u.length;o++){const f=u[o];if(typeof f!="string"&&!Array.isArray(f)){for(const h in f)if(h!=="default"&&!(h in c)){const v=Object.getOwnPropertyDescriptor(f,h);v&&Object.defineProperty(c,h,v.get?v:{enumerable:!0,get:()=>f[h]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))f(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const b of v.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&f(b)}).observe(document,{childList:!0,subtree:!0});function o(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function f(h){if(h.ep)return;h.ep=!0;const v=o(h);fetch(h.href,v)}})();function vy(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var Tu={exports:{}},Hn={};var th;function yy(){if(th)return Hn;th=1;var c=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function o(f,h,v){var b=null;if(v!==void 0&&(b=""+v),h.key!==void 0&&(b=""+h.key),"key"in h){v={};for(var w in h)w!=="key"&&(v[w]=h[w])}else v=h;return h=v.ref,{$$typeof:c,type:f,key:b,ref:h!==void 0?h:null,props:v}}return Hn.Fragment=u,Hn.jsx=o,Hn.jsxs=o,Hn}var ah;function gy(){return ah||(ah=1,Tu.exports=yy()),Tu.exports}var s=gy(),zu={exports:{}},se={};var lh;function py(){if(lh)return se;lh=1;var c=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),k=Symbol.iterator;function Y(p){return p===null||typeof p!="object"?null:(p=k&&p[k]||p["@@iterator"],typeof p=="function"?p:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,ce={};function le(p,D,X){this.props=p,this.context=D,this.refs=ce,this.updater=X||$}le.prototype.isReactComponent={},le.prototype.setState=function(p,D){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,D,"setState")},le.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function ge(){}ge.prototype=le.prototype;function ne(p,D,X){this.props=p,this.context=D,this.refs=ce,this.updater=X||$}var he=ne.prototype=new ge;he.constructor=ne,U(he,le.prototype),he.isPureReactComponent=!0;var V=Array.isArray;function G(){}var O={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Ee(p,D,X){var K=X.ref;return{$$typeof:c,type:p,key:D,ref:K!==void 0?K:null,props:X}}function B(p,D){return Ee(p.type,D,p.props)}function I(p){return typeof p=="object"&&p!==null&&p.$$typeof===c}function ie(p){var D={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(X){return D[X]})}var Pe=/\/+/g;function pe(p,D){return typeof p=="object"&&p!==null&&p.key!=null?ie(""+p.key):D.toString(36)}function we(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(G,G):(p.status="pending",p.then(function(D){p.status==="pending"&&(p.status="fulfilled",p.value=D)},function(D){p.status==="pending"&&(p.status="rejected",p.reason=D)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function z(p,D,X,K,q){var te=typeof p;(te==="undefined"||te==="boolean")&&(p=null);var oe=!1;if(p===null)oe=!0;else switch(te){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(p.$$typeof){case c:case u:oe=!0;break;case H:return oe=p._init,z(oe(p._payload),D,X,K,q)}}if(oe)return q=q(p),oe=K===""?"."+pe(p,0):K,V(q)?(X="",oe!=null&&(X=oe.replace(Pe,"$&/")+"/"),z(q,D,X,"",function(xe){return xe})):q!=null&&(I(q)&&(q=B(q,X+(q.key==null||p&&p.key===q.key?"":(""+q.key).replace(Pe,"$&/")+"/")+oe)),D.push(q)),1;oe=0;var L=K===""?".":K+":";if(V(p))for(var Z=0;Z<p.length;Z++)K=p[Z],te=L+pe(K,Z),oe+=z(K,D,X,te,q);else if(Z=Y(p),typeof Z=="function")for(p=Z.call(p),Z=0;!(K=p.next()).done;)K=K.value,te=L+pe(K,Z++),oe+=z(K,D,X,te,q);else if(te==="object"){if(typeof p.then=="function")return z(we(p),D,X,K,q);throw D=String(p),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return oe}function Q(p,D,X){if(p==null)return p;var K=[],q=0;return z(p,K,"","",function(te){return D.call(X,te,q++)}),K}function F(p){if(p._status===-1){var D=p._result;D=D(),D.then(function(X){(p._status===0||p._status===-1)&&(p._status=1,p._result=X)},function(X){(p._status===0||p._status===-1)&&(p._status=2,p._result=X)}),p._status===-1&&(p._status=0,p._result=D)}if(p._status===1)return p._result.default;throw p._result}var be=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},Ne={map:Q,forEach:function(p,D,X){Q(p,function(){D.apply(this,arguments)},X)},count:function(p){var D=0;return Q(p,function(){D++}),D},toArray:function(p){return Q(p,function(D){return D})||[]},only:function(p){if(!I(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return se.Activity=_,se.Children=Ne,se.Component=le,se.Fragment=o,se.Profiler=h,se.PureComponent=ne,se.StrictMode=f,se.Suspense=S,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,se.__COMPILER_RUNTIME={__proto__:null,c:function(p){return O.H.useMemoCache(p)}},se.cache=function(p){return function(){return p.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(p,D,X){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var K=U({},p.props),q=p.key;if(D!=null)for(te in D.key!==void 0&&(q=""+D.key),D)!P.call(D,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&D.ref===void 0||(K[te]=D[te]);var te=arguments.length-2;if(te===1)K.children=X;else if(1<te){for(var oe=Array(te),L=0;L<te;L++)oe[L]=arguments[L+2];K.children=oe}return Ee(p.type,q,K)},se.createContext=function(p){return p={$$typeof:b,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:v,_context:p},p},se.createElement=function(p,D,X){var K,q={},te=null;if(D!=null)for(K in D.key!==void 0&&(te=""+D.key),D)P.call(D,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(q[K]=D[K]);var oe=arguments.length-2;if(oe===1)q.children=X;else if(1<oe){for(var L=Array(oe),Z=0;Z<oe;Z++)L[Z]=arguments[Z+2];q.children=L}if(p&&p.defaultProps)for(K in oe=p.defaultProps,oe)q[K]===void 0&&(q[K]=oe[K]);return Ee(p,te,q)},se.createRef=function(){return{current:null}},se.forwardRef=function(p){return{$$typeof:w,render:p}},se.isValidElement=I,se.lazy=function(p){return{$$typeof:H,_payload:{_status:-1,_result:p},_init:F}},se.memo=function(p,D){return{$$typeof:y,type:p,compare:D===void 0?null:D}},se.startTransition=function(p){var D=O.T,X={};O.T=X;try{var K=p(),q=O.S;q!==null&&q(X,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(G,be)}catch(te){be(te)}finally{D!==null&&X.types!==null&&(D.types=X.types),O.T=D}},se.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},se.use=function(p){return O.H.use(p)},se.useActionState=function(p,D,X){return O.H.useActionState(p,D,X)},se.useCallback=function(p,D){return O.H.useCallback(p,D)},se.useContext=function(p){return O.H.useContext(p)},se.useDebugValue=function(){},se.useDeferredValue=function(p,D){return O.H.useDeferredValue(p,D)},se.useEffect=function(p,D){return O.H.useEffect(p,D)},se.useEffectEvent=function(p){return O.H.useEffectEvent(p)},se.useId=function(){return O.H.useId()},se.useImperativeHandle=function(p,D,X){return O.H.useImperativeHandle(p,D,X)},se.useInsertionEffect=function(p,D){return O.H.useInsertionEffect(p,D)},se.useLayoutEffect=function(p,D){return O.H.useLayoutEffect(p,D)},se.useMemo=function(p,D){return O.H.useMemo(p,D)},se.useOptimistic=function(p,D){return O.H.useOptimistic(p,D)},se.useReducer=function(p,D,X){return O.H.useReducer(p,D,X)},se.useRef=function(p){return O.H.useRef(p)},se.useState=function(p){return O.H.useState(p)},se.useSyncExternalStore=function(p,D,X){return O.H.useSyncExternalStore(p,D,X)},se.useTransition=function(){return O.H.useTransition()},se.version="19.2.3",se}var nh;function $u(){return nh||(nh=1,zu.exports=py()),zu.exports}var A=$u();const by=vy(A),I0=my({__proto__:null,default:by},[A]);var Mu={exports:{}},qn={},_u={exports:{}},Cu={};var sh;function xy(){return sh||(sh=1,(function(c){function u(z,Q){var F=z.length;z.push(Q);e:for(;0<F;){var be=F-1>>>1,Ne=z[be];if(0<h(Ne,Q))z[be]=Q,z[F]=Ne,F=be;else break e}}function o(z){return z.length===0?null:z[0]}function f(z){if(z.length===0)return null;var Q=z[0],F=z.pop();if(F!==Q){z[0]=F;e:for(var be=0,Ne=z.length,p=Ne>>>1;be<p;){var D=2*(be+1)-1,X=z[D],K=D+1,q=z[K];if(0>h(X,F))K<Ne&&0>h(q,X)?(z[be]=q,z[K]=F,be=K):(z[be]=X,z[D]=F,be=D);else if(K<Ne&&0>h(q,F))z[be]=q,z[K]=F,be=K;else break e}}return Q}function h(z,Q){var F=z.sortIndex-Q.sortIndex;return F!==0?F:z.id-Q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;c.unstable_now=function(){return v.now()}}else{var b=Date,w=b.now();c.unstable_now=function(){return b.now()-w}}var S=[],y=[],H=1,_=null,k=3,Y=!1,$=!1,U=!1,ce=!1,le=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,ne=typeof setImmediate<"u"?setImmediate:null;function he(z){for(var Q=o(y);Q!==null;){if(Q.callback===null)f(y);else if(Q.startTime<=z)f(y),Q.sortIndex=Q.expirationTime,u(S,Q);else break;Q=o(y)}}function V(z){if(U=!1,he(z),!$)if(o(S)!==null)$=!0,G||(G=!0,ie());else{var Q=o(y);Q!==null&&we(V,Q.startTime-z)}}var G=!1,O=-1,P=5,Ee=-1;function B(){return ce?!0:!(c.unstable_now()-Ee<P)}function I(){if(ce=!1,G){var z=c.unstable_now();Ee=z;var Q=!0;try{e:{$=!1,U&&(U=!1,ge(O),O=-1),Y=!0;var F=k;try{t:{for(he(z),_=o(S);_!==null&&!(_.expirationTime>z&&B());){var be=_.callback;if(typeof be=="function"){_.callback=null,k=_.priorityLevel;var Ne=be(_.expirationTime<=z);if(z=c.unstable_now(),typeof Ne=="function"){_.callback=Ne,he(z),Q=!0;break t}_===o(S)&&f(S),he(z)}else f(S);_=o(S)}if(_!==null)Q=!0;else{var p=o(y);p!==null&&we(V,p.startTime-z),Q=!1}}break e}finally{_=null,k=F,Y=!1}Q=void 0}}finally{Q?ie():G=!1}}}var ie;if(typeof ne=="function")ie=function(){ne(I)};else if(typeof MessageChannel<"u"){var Pe=new MessageChannel,pe=Pe.port2;Pe.port1.onmessage=I,ie=function(){pe.postMessage(null)}}else ie=function(){le(I,0)};function we(z,Q){O=le(function(){z(c.unstable_now())},Q)}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(z){z.callback=null},c.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<z?Math.floor(1e3/z):5},c.unstable_getCurrentPriorityLevel=function(){return k},c.unstable_next=function(z){switch(k){case 1:case 2:case 3:var Q=3;break;default:Q=k}var F=k;k=Q;try{return z()}finally{k=F}},c.unstable_requestPaint=function(){ce=!0},c.unstable_runWithPriority=function(z,Q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=k;k=z;try{return Q()}finally{k=F}},c.unstable_scheduleCallback=function(z,Q,F){var be=c.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?be+F:be):F=be,z){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=F+Ne,z={id:H++,callback:Q,priorityLevel:z,startTime:F,expirationTime:Ne,sortIndex:-1},F>be?(z.sortIndex=F,u(y,z),o(S)===null&&z===o(y)&&(U?(ge(O),O=-1):U=!0,we(V,F-be))):(z.sortIndex=Ne,u(S,z),$||Y||($=!0,G||(G=!0,ie()))),z},c.unstable_shouldYield=B,c.unstable_wrapCallback=function(z){var Q=k;return function(){var F=k;k=Q;try{return z.apply(this,arguments)}finally{k=F}}}})(Cu)),Cu}var ih;function Ny(){return ih||(ih=1,_u.exports=xy()),_u.exports}var Du={exports:{}},st={};var ch;function jy(){if(ch)return st;ch=1;var c=$u();function u(S){var y="https://react.dev/errors/"+S;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)y+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+S+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var f={d:{f:o,r:function(){throw Error(u(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(S,y,H){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:_==null?null:""+_,children:S,containerInfo:y,implementation:H}}var b=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(S,y){if(S==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,st.createPortal=function(S,y){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return v(S,y,null,H)},st.flushSync=function(S){var y=b.T,H=f.p;try{if(b.T=null,f.p=2,S)return S()}finally{b.T=y,f.p=H,f.d.f()}},st.preconnect=function(S,y){typeof S=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,f.d.C(S,y))},st.prefetchDNS=function(S){typeof S=="string"&&f.d.D(S)},st.preinit=function(S,y){if(typeof S=="string"&&y&&typeof y.as=="string"){var H=y.as,_=w(H,y.crossOrigin),k=typeof y.integrity=="string"?y.integrity:void 0,Y=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;H==="style"?f.d.S(S,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:_,integrity:k,fetchPriority:Y}):H==="script"&&f.d.X(S,{crossOrigin:_,integrity:k,fetchPriority:Y,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},st.preinitModule=function(S,y){if(typeof S=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var H=w(y.as,y.crossOrigin);f.d.M(S,{crossOrigin:H,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&f.d.M(S)},st.preload=function(S,y){if(typeof S=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var H=y.as,_=w(H,y.crossOrigin);f.d.L(S,H,{crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},st.preloadModule=function(S,y){if(typeof S=="string")if(y){var H=w(y.as,y.crossOrigin);f.d.m(S,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:H,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else f.d.m(S)},st.requestFormReset=function(S){f.d.r(S)},st.unstable_batchedUpdates=function(S,y){return S(y)},st.useFormState=function(S,y,H){return b.H.useFormState(S,y,H)},st.useFormStatus=function(){return b.H.useHostTransitionStatus()},st.version="19.2.3",st}var uh;function Sy(){if(uh)return Du.exports;uh=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(u){console.error(u)}}return c(),Du.exports=jy(),Du.exports}var rh;function Ay(){if(rh)return qn;rh=1;var c=Ny(),u=$u(),o=Sy();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function b(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function w(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function S(e){if(v(e)!==e)throw Error(f(188))}function y(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(f(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return S(n),e;if(i===l)return S(n),t;i=i.sibling}throw Error(f(188))}if(a.return!==l.return)a=n,l=i;else{for(var r=!1,d=n.child;d;){if(d===a){r=!0,a=n,l=i;break}if(d===l){r=!0,l=n,a=i;break}d=d.sibling}if(!r){for(d=i.child;d;){if(d===a){r=!0,a=i,l=n;break}if(d===l){r=!0,l=i,a=n;break}d=d.sibling}if(!r)throw Error(f(189))}}if(a.alternate!==l)throw Error(f(190))}if(a.tag!==3)throw Error(f(188));return a.stateNode.current===a?e:t}function H(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=H(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,k=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),ce=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),ge=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=I&&e[I]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case le:return"Profiler";case ce:return"StrictMode";case V:return"Suspense";case G:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case $:return"Portal";case ne:return e.displayName||"Context";case ge:return(e._context.displayName||"Context")+".Consumer";case he:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case O:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var we=Array.isArray,z=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},be=[],Ne=-1;function p(e){return{current:e}}function D(e){0>Ne||(e.current=be[Ne],be[Ne]=null,Ne--)}function X(e,t){Ne++,be[Ne]=e.current,e.current=t}var K=p(null),q=p(null),te=p(null),oe=p(null);function L(e,t){switch(X(te,t),X(q,e),X(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ad(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ad(t),e=Ed(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(K),X(K,e)}function Z(){D(K),D(q),D(te)}function xe(e){e.memoizedState!==null&&X(oe,e);var t=K.current,a=Ed(t,e.type);t!==a&&(X(q,e),X(K,a))}function Re(e){q.current===e&&(D(K),D(q)),oe.current===e&&(D(oe),On._currentValue=F)}var Oe,qe;function Le(e){if(Oe===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||"",qe=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Oe+e+qe}var sl=!1;function wt(e,t){if(!e||sl)return"";sl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(T){var E=T}Reflect.construct(e,[],R)}else{try{R.call()}catch(T){E=T}e.call(R.prototype)}}else{try{throw Error()}catch(T){E=T}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(T){if(T&&E&&typeof T.stack=="string")return[T.stack,E.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),r=i[0],d=i[1];if(r&&d){var m=r.split(`
|
|
4
|
+
`),j=d.split(`
|
|
5
|
+
`);for(n=l=0;l<m.length&&!m[l].includes("DetermineComponentFrameRoot");)l++;for(;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;if(l===m.length||n===j.length)for(l=m.length-1,n=j.length-1;1<=l&&0<=n&&m[l]!==j[n];)n--;for(;1<=l&&0<=n;l--,n--)if(m[l]!==j[n]){if(l!==1||n!==1)do if(l--,n--,0>n||m[l]!==j[n]){var M=`
|
|
6
|
+
`+m[l].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=l&&0<=n);break}}}finally{sl=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Le(a):""}function Zh(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le("Lazy");case 13:return e.child!==t&&t!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return wt(e.type,!1);case 11:return wt(e.type.render,!1);case 1:return wt(e.type,!0);case 31:return Le("Activity");default:return""}}function Pu(e){try{var t="",a=null;do t+=Zh(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var di=Object.prototype.hasOwnProperty,hi=c.unstable_scheduleCallback,mi=c.unstable_cancelCallback,Vh=c.unstable_shouldYield,Kh=c.unstable_requestPaint,vt=c.unstable_now,Jh=c.unstable_getCurrentPriorityLevel,er=c.unstable_ImmediatePriority,tr=c.unstable_UserBlockingPriority,Qn=c.unstable_NormalPriority,$h=c.unstable_LowPriority,ar=c.unstable_IdlePriority,Wh=c.log,Ih=c.unstable_setDisableYieldValue,Zl=null,yt=null;function ma(e){if(typeof Wh=="function"&&Ih(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(Zl,e)}catch{}}var gt=Math.clz32?Math.clz32:em,Fh=Math.log,Ph=Math.LN2;function em(e){return e>>>=0,e===0?32:31-(Fh(e)/Ph|0)|0}var Gn=256,Xn=262144,Zn=4194304;function qa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Vn(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~i,l!==0?n=qa(l):(r&=d,r!==0?n=qa(r):a||(a=d&~e,a!==0&&(n=qa(a))))):(d=l&~i,d!==0?n=qa(d):r!==0?n=qa(r):a||(a=l&~e,a!==0&&(n=qa(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function Vl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+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 lr(){var e=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),e}function vi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function am(e,t,a,l,n,i){var r=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(a=r&~a;0<a;){var M=31-gt(a),R=1<<M;d[M]=0,m[M]=-1;var E=j[M];if(E!==null)for(j[M]=null,M=0;M<E.length;M++){var T=E[M];T!==null&&(T.lane&=-536870913)}a&=~R}l!==0&&nr(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(r&~t))}function nr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-gt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function sr(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-gt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function ir(e,t){var a=t&-t;return a=(a&42)!==0?1:yi(a),(a&(e.suspendedLanes|t))!==0?0:a}function yi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cr(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function ur(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var va=Math.random().toString(36).slice(2),et="__reactFiber$"+va,ct="__reactProps$"+va,il="__reactContainer$"+va,pi="__reactEvents$"+va,lm="__reactListeners$"+va,nm="__reactHandles$"+va,rr="__reactResources$"+va,Jl="__reactMarker$"+va;function bi(e){delete e[et],delete e[ct],delete e[pi],delete e[lm],delete e[nm]}function cl(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[il]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Dd(e);e!==null;){if(a=e[et])return a;e=Dd(e)}return t}e=a,a=e.parentNode}return null}function ul(e){if(e=e[et]||e[il]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $l(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function rl(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Jl]=!0}var or=new Set,fr={};function La(e,t){ol(e,t),ol(e+"Capture",t)}function ol(e,t){for(fr[e]=t,e=0;e<t.length;e++)or.add(t[e])}var sm=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]*$"),dr={},hr={};function im(e){return di.call(hr,e)?!0:di.call(dr,e)?!1:sm.test(e)?hr[e]=!0:(dr[e]=!0,!1)}function Kn(e,t,a){if(im(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Jn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Jt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cm(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(r){a=""+r,i.call(this,r)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(r){a=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){if(!e._valueTracker){var t=mr(e)?"checked":"value";e._valueTracker=cm(e,t,""+e[t])}}function vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=mr(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function $n(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var um=/[\n"\\]/g;function zt(e){return e.replace(um,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,a,l,n,i,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?ji(e,r,Tt(t)):a!=null?ji(e,r,Tt(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Tt(d):e.removeAttribute("name")}function yr(e,t,a,l,n,i,r,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){xi(e);return}a=a!=null?""+Tt(a):"",t=t!=null?""+Tt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),xi(e)}function ji(e,t,a){t==="number"&&$n(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function fl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Tt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function gr(e,t,a){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Tt(a):""}function pr(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(f(92));if(we(l)){if(1<l.length)throw Error(f(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Tt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),xi(e)}function dl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var rm=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 br(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||rm.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xr(e,t,a){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&br(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&br(e,i,t[i])}function Si(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var om=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"]]),fm=/^[\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 Wn(e){return fm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Ai=null;function Ei(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hl=null,ml=null;function Nr(e){var t=ul(e);if(t&&(e=t.stateNode)){var a=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ni(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ct]||null;if(!n)throw Error(f(90));Ni(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&vr(l)}break e;case"textarea":gr(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&fl(e,!!a.multiple,t,!1)}}}var wi=!1;function jr(e,t,a){if(wi)return e(t,a);wi=!0;try{var l=e(t);return l}finally{if(wi=!1,(hl!==null||ml!==null)&&(Bs(),hl&&(t=hl,e=ml,ml=hl=null,Nr(t),e)))for(t=0;t<e.length;t++)Nr(e[t])}}function Wl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ct]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(f(231,t,typeof a));return a}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ti=!1;if(Wt)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){Ti=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Ti=!1}var ya=null,zi=null,In=null;function Sr(){if(In)return In;var e,t=zi,a=t.length,l,n="value"in ya?ya.value:ya.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var r=a-e;for(l=1;l<=r&&t[a-l]===n[i-l];l++);return In=n.slice(e,1<l?1-l:void 0)}function Fn(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pn(){return!0}function Ar(){return!1}function ut(e){function t(a,l,n,i,r){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Pn:Ar,this.isPropagationStopped=Ar,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Pn)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=ut(Ya),Fl=_({},Ya,{view:0,detail:0}),dm=ut(Fl),Mi,_i,Pl,ts=_({},Fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Di,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pl&&(Pl&&e.type==="mousemove"?(Mi=e.screenX-Pl.screenX,_i=e.screenY-Pl.screenY):_i=Mi=0,Pl=e),Mi)},movementY:function(e){return"movementY"in e?e.movementY:_i}}),Er=ut(ts),hm=_({},ts,{dataTransfer:0}),mm=ut(hm),vm=_({},Fl,{relatedTarget:0}),Ci=ut(vm),ym=_({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),gm=ut(ym),pm=_({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bm=ut(pm),xm=_({},Ya,{data:0}),wr=ut(xm),Nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jm={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"},Sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Am(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sm[e])?!!t[e]:!1}function Di(){return Am}var Em=_({},Fl,{key:function(e){if(e.key){var t=Nm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Di,charCode:function(e){return e.type==="keypress"?Fn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wm=ut(Em),Tm=_({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tr=ut(Tm),zm=_({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Di}),Mm=ut(zm),_m=_({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cm=ut(_m),Dm=_({},ts,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rm=ut(Dm),Om=_({},Ya,{newState:0,oldState:0}),Um=ut(Om),km=[9,13,27,32],Ri=Wt&&"CompositionEvent"in window,en=null;Wt&&"documentMode"in document&&(en=document.documentMode);var Bm=Wt&&"TextEvent"in window&&!en,zr=Wt&&(!Ri||en&&8<en&&11>=en),Mr=" ",_r=!1;function Cr(e,t){switch(e){case"keyup":return km.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vl=!1;function Hm(e,t){switch(e){case"compositionend":return Dr(t);case"keypress":return t.which!==32?null:(_r=!0,Mr);case"textInput":return e=t.data,e===Mr&&_r?null:e;default:return null}}function qm(e,t){if(vl)return e==="compositionend"||!Ri&&Cr(e,t)?(e=Sr(),In=zi=ya=null,vl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zr&&t.locale!=="ko"?null:t.data;default:return null}}var Lm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lm[e.type]:t==="textarea"}function Or(e,t,a,l){hl?ml?ml.push(l):ml=[l]:hl=l,t=Xs(t,"onChange"),0<t.length&&(a=new es("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var tn=null,an=null;function Ym(e){pd(e,0)}function as(e){var t=$l(e);if(vr(t))return e}function Ur(e,t){if(e==="change")return t}var kr=!1;if(Wt){var Oi;if(Wt){var Ui="oninput"in document;if(!Ui){var Br=document.createElement("div");Br.setAttribute("oninput","return;"),Ui=typeof Br.oninput=="function"}Oi=Ui}else Oi=!1;kr=Oi&&(!document.documentMode||9<document.documentMode)}function Hr(){tn&&(tn.detachEvent("onpropertychange",qr),an=tn=null)}function qr(e){if(e.propertyName==="value"&&as(an)){var t=[];Or(t,an,e,Ei(e)),jr(Ym,t)}}function Qm(e,t,a){e==="focusin"?(Hr(),tn=t,an=a,tn.attachEvent("onpropertychange",qr)):e==="focusout"&&Hr()}function Gm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return as(an)}function Xm(e,t){if(e==="click")return as(t)}function Zm(e,t){if(e==="input"||e==="change")return as(t)}function Vm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Vm;function ln(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!di.call(t,n)||!pt(e[n],t[n]))return!1}return!0}function Lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yr(e,t){var a=Lr(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lr(a)}}function Qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=$n(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=$n(e.document)}return t}function ki(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Km=Wt&&"documentMode"in document&&11>=document.documentMode,yl=null,Bi=null,nn=null,Hi=!1;function Xr(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Hi||yl==null||yl!==$n(l)||(l=yl,"selectionStart"in l&&ki(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),nn&&ln(nn,l)||(nn=l,l=Xs(Bi,"onSelect"),0<l.length&&(t=new es("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=yl)))}function Qa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var gl={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},qi={},Zr={};Wt&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete gl.animationend.animation,delete gl.animationiteration.animation,delete gl.animationstart.animation),"TransitionEvent"in window||delete gl.transitionend.transition);function Ga(e){if(qi[e])return qi[e];if(!gl[e])return e;var t=gl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Zr)return qi[e]=t[a];return e}var Vr=Ga("animationend"),Kr=Ga("animationiteration"),Jr=Ga("animationstart"),Jm=Ga("transitionrun"),$m=Ga("transitionstart"),Wm=Ga("transitioncancel"),$r=Ga("transitionend"),Wr=new Map,Li="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(" ");Li.push("scrollEnd");function Bt(e,t){Wr.set(e,t),La(t,[e])}var ls=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Mt=[],pl=0,Yi=0;function ns(){for(var e=pl,t=Yi=pl=0;t<e;){var a=Mt[t];Mt[t++]=null;var l=Mt[t];Mt[t++]=null;var n=Mt[t];Mt[t++]=null;var i=Mt[t];if(Mt[t++]=null,l!==null&&n!==null){var r=l.pending;r===null?n.next=n:(n.next=r.next,r.next=n),l.pending=n}i!==0&&Ir(a,n,i)}}function ss(e,t,a,l){Mt[pl++]=e,Mt[pl++]=t,Mt[pl++]=a,Mt[pl++]=l,Yi|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Qi(e,t,a,l){return ss(e,t,a,l),is(e)}function Xa(e,t){return ss(e,null,null,t),is(e)}function Ir(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-gt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function is(e){if(50<Tn)throw Tn=0,Ic=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bl={};function Im(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new Im(e,t,a,l)}function Gi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function It(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Fr(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cs(e,t,a,l,n,i){var r=0;if(l=e,typeof e=="function")Gi(e)&&(r=1);else if(typeof e=="string")r=ay(e,a,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=bt(31,a,t,n),e.elementType=Ee,e.lanes=i,e;case U:return Za(a.children,n,i,t);case ce:r=8,n|=24;break;case le:return e=bt(12,a,t,n|2),e.elementType=le,e.lanes=i,e;case V:return e=bt(13,a,t,n),e.elementType=V,e.lanes=i,e;case G:return e=bt(19,a,t,n),e.elementType=G,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ne:r=10;break e;case ge:r=9;break e;case he:r=11;break e;case O:r=14;break e;case P:r=16,l=null;break e}r=29,a=Error(f(130,e===null?"null":typeof e,"")),l=null}return t=bt(r,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function Za(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function Xi(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Pr(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Zi(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eo=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var a=eo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pu(t)},eo.set(e,t),t)}return{value:e,source:t,stack:Pu(t)}}var xl=[],Nl=0,us=null,sn=0,Ct=[],Dt=0,ga=null,Yt=1,Qt="";function Ft(e,t){xl[Nl++]=sn,xl[Nl++]=us,us=e,sn=t}function to(e,t,a){Ct[Dt++]=Yt,Ct[Dt++]=Qt,Ct[Dt++]=ga,ga=e;var l=Yt;e=Qt;var n=32-gt(l)-1;l&=~(1<<n),a+=1;var i=32-gt(t)+n;if(30<i){var r=n-n%5;i=(l&(1<<r)-1).toString(32),l>>=r,n-=r,Yt=1<<32-gt(t)+n|a<<n|l,Qt=i+e}else Yt=1<<i|a<<n|l,Qt=e}function Vi(e){e.return!==null&&(Ft(e,1),to(e,1,0))}function Ki(e){for(;e===us;)us=xl[--Nl],xl[Nl]=null,sn=xl[--Nl],xl[Nl]=null;for(;e===ga;)ga=Ct[--Dt],Ct[Dt]=null,Qt=Ct[--Dt],Ct[Dt]=null,Yt=Ct[--Dt],Ct[Dt]=null}function ao(e,t){Ct[Dt++]=Yt,Ct[Dt++]=Qt,Ct[Dt++]=ga,Yt=t.id,Qt=t.overflow,ga=e}var tt=null,ke=null,ye=!1,pa=null,Rt=!1,Ji=Error(f(519));function ba(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(_t(t,e)),Ji}function lo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[et]=e,t[ct]=l,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<Mn.length;a++)de(Mn[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),yr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),pr(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||jd(t.textContent,a)?(l.popover!=null&&(de("beforetoggle",t),de("toggle",t)),l.onScroll!=null&&de("scroll",t),l.onScrollEnd!=null&&de("scrollend",t),l.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||ba(e,!0)}function no(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:tt=tt.return}}function jl(e){if(e!==tt)return!1;if(!ye)return no(e),ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||du(e.type,e.memoizedProps)),a=!a),a&&ke&&ba(e),no(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));ke=Cd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));ke=Cd(e)}else t===27?(t=ke,Ra(e.type)?(e=gu,gu=null,ke=e):ke=t):ke=tt?Ut(e.stateNode.nextSibling):null;return!0}function Va(){ke=tt=null,ye=!1}function $i(){var e=pa;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),pa=null),e}function cn(e){pa===null?pa=[e]:pa.push(e)}var Wi=p(null),Ka=null,Pt=null;function xa(e,t,a){X(Wi,t._currentValue),t._currentValue=a}function ea(e){e._currentValue=Wi.current,D(Wi)}function Ii(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Fi(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var r=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var m=0;m<t.length;m++)if(d.context===t[m]){i.lanes|=a,d=i.alternate,d!==null&&(d.lanes|=a),Ii(i.return,a,e),l||(r=null);break e}i=d.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(f(341));r.lanes|=a,i=r.alternate,i!==null&&(i.lanes|=a),Ii(r,a,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function Sl(e,t,a,l){e=null;for(var n=t,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 r=n.alternate;if(r===null)throw Error(f(387));if(r=r.memoizedProps,r!==null){var d=n.type;pt(n.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(n===oe.current){if(r=n.alternate,r===null)throw Error(f(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(On):e=[On])}n=n.return}e!==null&&Fi(t,e,a,l),t.flags|=262144}function rs(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ja(e){Ka=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return so(Ka,e)}function os(e,t){return Ka===null&&Ja(e),so(e,t)}function so(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Pt===null){if(e===null)throw Error(f(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return a}var Fm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Pm=c.unstable_scheduleCallback,ev=c.unstable_NormalPriority,Ve={$$typeof:ne,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pi(){return{controller:new Fm,data:new Map,refCount:0}}function un(e){e.refCount--,e.refCount===0&&Pm(ev,function(){e.controller.abort()})}var rn=null,ec=0,Al=0,El=null;function tv(e,t){if(rn===null){var a=rn=[];ec=0,Al=lu(),El={status:"pending",value:void 0,then:function(l){a.push(l)}}}return ec++,t.then(io,io),t}function io(){if(--ec===0&&rn!==null){El!==null&&(El.status="fulfilled");var e=rn;rn=null,Al=0,El=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function av(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var co=z.S;z.S=function(e,t){Vf=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tv(e,t),co!==null&&co(e,t)};var $a=p(null);function tc(){var e=$a.current;return e!==null?e:Ue.pooledCache}function fs(e,t){t===null?X($a,$a.current):X($a,t.pool)}function uo(){var e=tc();return e===null?null:{parent:Ve._currentValue,pool:e}}var wl=Error(f(460)),ac=Error(f(474)),ds=Error(f(542)),hs={then:function(){}};function ro(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oo(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($t,$t),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ho(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ho(e),e}throw Ia=t,wl}}function Wa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ia=a,wl):a}}var Ia=null;function fo(){if(Ia===null)throw Error(f(459));var e=Ia;return Ia=null,e}function ho(e){if(e===wl||e===ds)throw Error(f(483))}var Tl=null,on=0;function ms(e){var t=on;return on+=1,Tl===null&&(Tl=[]),oo(Tl,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vs(e,t){throw t.$$typeof===k?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mo(e){function t(x,g){if(e){var N=x.deletions;N===null?(x.deletions=[g],x.flags|=16):N.push(g)}}function a(x,g){if(!e)return null;for(;g!==null;)t(x,g),g=g.sibling;return null}function l(x){for(var g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function n(x,g){return x=It(x,g),x.index=0,x.sibling=null,x}function i(x,g,N){return x.index=N,e?(N=x.alternate,N!==null?(N=N.index,N<g?(x.flags|=67108866,g):N):(x.flags|=67108866,g)):(x.flags|=1048576,g)}function r(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function d(x,g,N,C){return g===null||g.tag!==6?(g=Xi(N,x.mode,C),g.return=x,g):(g=n(g,N),g.return=x,g)}function m(x,g,N,C){var ee=N.type;return ee===U?M(x,g,N.props.children,C,N.key):g!==null&&(g.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===P&&Wa(ee)===g.type)?(g=n(g,N.props),fn(g,N),g.return=x,g):(g=cs(N.type,N.key,N.props,null,x.mode,C),fn(g,N),g.return=x,g)}function j(x,g,N,C){return g===null||g.tag!==4||g.stateNode.containerInfo!==N.containerInfo||g.stateNode.implementation!==N.implementation?(g=Zi(N,x.mode,C),g.return=x,g):(g=n(g,N.children||[]),g.return=x,g)}function M(x,g,N,C,ee){return g===null||g.tag!==7?(g=Za(N,x.mode,C,ee),g.return=x,g):(g=n(g,N),g.return=x,g)}function R(x,g,N){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Xi(""+g,x.mode,N),g.return=x,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Y:return N=cs(g.type,g.key,g.props,null,x.mode,N),fn(N,g),N.return=x,N;case $:return g=Zi(g,x.mode,N),g.return=x,g;case P:return g=Wa(g),R(x,g,N)}if(we(g)||ie(g))return g=Za(g,x.mode,N,null),g.return=x,g;if(typeof g.then=="function")return R(x,ms(g),N);if(g.$$typeof===ne)return R(x,os(x,g),N);vs(x,g)}return null}function E(x,g,N,C){var ee=g!==null?g.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return ee!==null?null:d(x,g,""+N,C);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:return N.key===ee?m(x,g,N,C):null;case $:return N.key===ee?j(x,g,N,C):null;case P:return N=Wa(N),E(x,g,N,C)}if(we(N)||ie(N))return ee!==null?null:M(x,g,N,C,null);if(typeof N.then=="function")return E(x,g,ms(N),C);if(N.$$typeof===ne)return E(x,g,os(x,N),C);vs(x,N)}return null}function T(x,g,N,C,ee){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return x=x.get(N)||null,d(g,x,""+C,ee);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Y:return x=x.get(C.key===null?N:C.key)||null,m(g,x,C,ee);case $:return x=x.get(C.key===null?N:C.key)||null,j(g,x,C,ee);case P:return C=Wa(C),T(x,g,N,C,ee)}if(we(C)||ie(C))return x=x.get(N)||null,M(g,x,C,ee,null);if(typeof C.then=="function")return T(x,g,N,ms(C),ee);if(C.$$typeof===ne)return T(x,g,N,os(g,C),ee);vs(g,C)}return null}function J(x,g,N,C){for(var ee=null,je=null,W=g,re=g=0,ve=null;W!==null&&re<N.length;re++){W.index>re?(ve=W,W=null):ve=W.sibling;var Se=E(x,W,N[re],C);if(Se===null){W===null&&(W=ve);break}e&&W&&Se.alternate===null&&t(x,W),g=i(Se,g,re),je===null?ee=Se:je.sibling=Se,je=Se,W=ve}if(re===N.length)return a(x,W),ye&&Ft(x,re),ee;if(W===null){for(;re<N.length;re++)W=R(x,N[re],C),W!==null&&(g=i(W,g,re),je===null?ee=W:je.sibling=W,je=W);return ye&&Ft(x,re),ee}for(W=l(W);re<N.length;re++)ve=T(W,x,re,N[re],C),ve!==null&&(e&&ve.alternate!==null&&W.delete(ve.key===null?re:ve.key),g=i(ve,g,re),je===null?ee=ve:je.sibling=ve,je=ve);return e&&W.forEach(function(Ha){return t(x,Ha)}),ye&&Ft(x,re),ee}function ae(x,g,N,C){if(N==null)throw Error(f(151));for(var ee=null,je=null,W=g,re=g=0,ve=null,Se=N.next();W!==null&&!Se.done;re++,Se=N.next()){W.index>re?(ve=W,W=null):ve=W.sibling;var Ha=E(x,W,Se.value,C);if(Ha===null){W===null&&(W=ve);break}e&&W&&Ha.alternate===null&&t(x,W),g=i(Ha,g,re),je===null?ee=Ha:je.sibling=Ha,je=Ha,W=ve}if(Se.done)return a(x,W),ye&&Ft(x,re),ee;if(W===null){for(;!Se.done;re++,Se=N.next())Se=R(x,Se.value,C),Se!==null&&(g=i(Se,g,re),je===null?ee=Se:je.sibling=Se,je=Se);return ye&&Ft(x,re),ee}for(W=l(W);!Se.done;re++,Se=N.next())Se=T(W,x,re,Se.value,C),Se!==null&&(e&&Se.alternate!==null&&W.delete(Se.key===null?re:Se.key),g=i(Se,g,re),je===null?ee=Se:je.sibling=Se,je=Se);return e&&W.forEach(function(hy){return t(x,hy)}),ye&&Ft(x,re),ee}function De(x,g,N,C){if(typeof N=="object"&&N!==null&&N.type===U&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:e:{for(var ee=N.key;g!==null;){if(g.key===ee){if(ee=N.type,ee===U){if(g.tag===7){a(x,g.sibling),C=n(g,N.props.children),C.return=x,x=C;break e}}else if(g.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===P&&Wa(ee)===g.type){a(x,g.sibling),C=n(g,N.props),fn(C,N),C.return=x,x=C;break e}a(x,g);break}else t(x,g);g=g.sibling}N.type===U?(C=Za(N.props.children,x.mode,C,N.key),C.return=x,x=C):(C=cs(N.type,N.key,N.props,null,x.mode,C),fn(C,N),C.return=x,x=C)}return r(x);case $:e:{for(ee=N.key;g!==null;){if(g.key===ee)if(g.tag===4&&g.stateNode.containerInfo===N.containerInfo&&g.stateNode.implementation===N.implementation){a(x,g.sibling),C=n(g,N.children||[]),C.return=x,x=C;break e}else{a(x,g);break}else t(x,g);g=g.sibling}C=Zi(N,x.mode,C),C.return=x,x=C}return r(x);case P:return N=Wa(N),De(x,g,N,C)}if(we(N))return J(x,g,N,C);if(ie(N)){if(ee=ie(N),typeof ee!="function")throw Error(f(150));return N=ee.call(N),ae(x,g,N,C)}if(typeof N.then=="function")return De(x,g,ms(N),C);if(N.$$typeof===ne)return De(x,g,os(x,N),C);vs(x,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,g!==null&&g.tag===6?(a(x,g.sibling),C=n(g,N),C.return=x,x=C):(a(x,g),C=Xi(N,x.mode,C),C.return=x,x=C),r(x)):a(x,g)}return function(x,g,N,C){try{on=0;var ee=De(x,g,N,C);return Tl=null,ee}catch(W){if(W===wl||W===ds)throw W;var je=bt(29,W,null,x.mode);return je.lanes=C,je.return=x,je}}}var Fa=mo(!0),vo=mo(!1),Na=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ja(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=is(e),Ir(e,null,a),t}return ss(e,l,t,a),is(e)}function dn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,sr(e,a)}}function sc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var r={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=r:i=i.next=r,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var ic=!1;function hn(){if(ic){var e=El;if(e!==null)throw e}}function mn(e,t,a,l){ic=!1;var n=e.updateQueue;Na=!1;var i=n.firstBaseUpdate,r=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var m=d,j=m.next;m.next=null,r===null?i=j:r.next=j,r=m;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==r&&(d===null?M.firstBaseUpdate=j:d.next=j,M.lastBaseUpdate=m))}if(i!==null){var R=n.baseState;r=0,M=j=m=null,d=i;do{var E=d.lane&-536870913,T=E!==d.lane;if(T?(me&E)===E:(l&E)===E){E!==0&&E===Al&&(ic=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,ae=d;E=t;var De=a;switch(ae.tag){case 1:if(J=ae.payload,typeof J=="function"){R=J.call(De,R,E);break e}R=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ae.payload,E=typeof J=="function"?J.call(De,R,E):J,E==null)break e;R=_({},R,E);break e;case 2:Na=!0}}E=d.callback,E!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[E]:T.push(E))}else T={lane:E,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(j=M=T,m=R):M=M.next=T,r|=E;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;T=d,d=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);M===null&&(m=R),n.baseState=m,n.firstBaseUpdate=j,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),za|=r,e.lanes=r,e.memoizedState=R}}function yo(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function go(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)yo(a[e],t)}var zl=p(null),ys=p(0);function po(e,t){e=ra,X(ys,e),X(zl,t),ra=e|t.baseLanes}function cc(){X(ys,ra),X(zl,zl.current)}function uc(){ra=ys.current,D(zl),D(ys)}var xt=p(null),Ot=null;function Aa(e){var t=e.alternate;X(Xe,Xe.current&1),X(xt,e),Ot===null&&(t===null||zl.current!==null||t.memoizedState!==null)&&(Ot=e)}function rc(e){X(Xe,Xe.current),X(xt,e),Ot===null&&(Ot=e)}function bo(e){e.tag===22?(X(Xe,Xe.current),X(xt,e),Ot===null&&(Ot=e)):Ea()}function Ea(){X(Xe,Xe.current),X(xt,xt.current)}function Nt(e){D(xt),Ot===e&&(Ot=null),D(Xe)}var Xe=p(0);function gs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||vu(a)||yu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ta=0,ue=null,_e=null,Ke=null,ps=!1,Ml=!1,Pa=!1,bs=0,vn=0,_l=null,lv=0;function Qe(){throw Error(f(321))}function oc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!pt(e[a],t[a]))return!1;return!0}function fc(e,t,a,l,n,i){return ta=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?af:wc,Pa=!1,i=a(l,n),Pa=!1,Ml&&(i=No(t,a,l,n)),xo(e),i}function xo(e){z.H=pn;var t=_e!==null&&_e.next!==null;if(ta=0,Ke=_e=ue=null,ps=!1,vn=0,_l=null,t)throw Error(f(300));e===null||Je||(e=e.dependencies,e!==null&&rs(e)&&(Je=!0))}function No(e,t,a,l){ue=e;var n=0;do{if(Ml&&(_l=null),vn=0,Ml=!1,25<=n)throw Error(f(301));if(n+=1,Ke=_e=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}z.H=lf,i=t(a,l)}while(Ml);return i}function nv(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?yn(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(ue.flags|=1024),t}function dc(){var e=bs!==0;return bs=0,e}function hc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function mc(e){if(ps){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ps=!1}ta=0,Ke=_e=ue=null,Ml=!1,vn=bs=0,_l=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ue.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ze(){if(_e===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ke===null?ue.memoizedState:Ke.next;if(t!==null)Ke=t,_e=e;else{if(e===null)throw ue.alternate===null?Error(f(467)):Error(f(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ke===null?ue.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yn(e){var t=vn;return vn+=1,_l===null&&(_l=[]),e=oo(_l,e,t),t=ue,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?af:wc),e}function Ns(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yn(e);if(e.$$typeof===ne)return at(e)}throw Error(f(438,String(e)))}function vc(e){var t=null,a=ue.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ue.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=xs(),ue.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=B;return t.index++,a}function aa(e,t){return typeof t=="function"?t(e):t}function js(e){var t=Ze();return yc(t,_e,e)}function yc(e,t,a){var l=e.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var r=n.next;n.next=i.next,i.next=r}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=r=null,m=null,j=t,M=!1;do{var R=j.lane&-536870913;if(R!==j.lane?(me&R)===R:(ta&R)===R){var E=j.revertLane;if(E===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),R===Al&&(M=!0);else if((ta&E)===E){j=j.next,E===Al&&(M=!0);continue}else R={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(d=m=R,r=i):m=m.next=R,ue.lanes|=E,za|=E;R=j.action,Pa&&a(i,R),i=j.hasEagerState?j.eagerState:a(i,R)}else E={lane:R,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(d=m=E,r=i):m=m.next=E,ue.lanes|=R,za|=R;j=j.next}while(j!==null&&j!==t);if(m===null?r=i:m.next=d,!pt(i,e.memoizedState)&&(Je=!0,M&&(a=El,a!==null)))throw a;e.memoizedState=i,e.baseState=r,e.baseQueue=m,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function gc(e){var t=Ze(),a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var r=n=n.next;do i=e(i,r.action),r=r.next;while(r!==n);pt(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function jo(e,t,a){var l=ue,n=Ze(),i=ye;if(i){if(a===void 0)throw Error(f(407));a=a()}else a=t();var r=!pt((_e||n).memoizedState,a);if(r&&(n.memoizedState=a,Je=!0),n=n.queue,xc(Eo.bind(null,l,n,e),[e]),n.getSnapshot!==t||r||Ke!==null&&Ke.memoizedState.tag&1){if(l.flags|=2048,Cl(9,{destroy:void 0},Ao.bind(null,l,n,a,t),null),Ue===null)throw Error(f(349));i||(ta&127)!==0||So(l,t,a)}return a}function So(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ue.updateQueue,t===null?(t=xs(),ue.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Ao(e,t,a,l){t.value=a,t.getSnapshot=l,wo(t)&&To(e)}function Eo(e,t,a){return a(function(){wo(t)&&To(e)})}function wo(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!pt(e,a)}catch{return!0}}function To(e){var t=Xa(e,2);t!==null&&ht(t,e,2)}function pc(e){var t=it();if(typeof e=="function"){var a=e;if(e=a(),Pa){ma(!0);try{a()}finally{ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function zo(e,t,a,l){return e.baseState=a,yc(e,_e,typeof l=="function"?l:aa)}function sv(e,t,a,l,n){if(Es(e))throw Error(f(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};z.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Mo(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Mo(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=z.T,r={};z.T=r;try{var d=a(n,l),m=z.S;m!==null&&m(r,d),_o(e,t,d)}catch(j){bc(e,t,j)}finally{i!==null&&r.types!==null&&(i.types=r.types),z.T=i}}else try{i=a(n,l),_o(e,t,i)}catch(j){bc(e,t,j)}}function _o(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Co(e,t,l)},function(l){return bc(e,t,l)}):Co(e,t,a)}function Co(e,t,a){t.status="fulfilled",t.value=a,Do(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Mo(e,a)))}function bc(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Do(t),t=t.next;while(t!==l)}e.action=null}function Do(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ro(e,t){return t}function Oo(e,t){if(ye){var a=Ue.formState;if(a!==null){e:{var l=ue;if(ye){if(ke){t:{for(var n=ke,i=Rt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Ut(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){ke=Ut(n.nextSibling),l=n.data==="F!";break e}}ba(l)}l=!1}l&&(t=a[0])}}return a=it(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:t},a.queue=l,a=Po.bind(null,ue,l),l.dispatch=a,l=pc(!1),i=Ec.bind(null,ue,!1,l.queue),l=it(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=sv.bind(null,ue,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Uo(e){var t=Ze();return ko(t,_e,e)}function ko(e,t,a){if(t=yc(e,t,Ro)[0],e=js(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=yn(t)}catch(r){throw r===wl?ds:r}else l=t;t=Ze();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(ue.flags|=2048,Cl(9,{destroy:void 0},iv.bind(null,n,a),null)),[l,i,e]}function iv(e,t){e.action=t}function Bo(e){var t=Ze(),a=_e;if(a!==null)return ko(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Cl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ue.updateQueue,t===null&&(t=xs(),ue.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Ho(){return Ze().memoizedState}function Ss(e,t,a,l){var n=it();ue.flags|=e,n.memoizedState=Cl(1|t,{destroy:void 0},a,l===void 0?null:l)}function As(e,t,a,l){var n=Ze();l=l===void 0?null:l;var i=n.memoizedState.inst;_e!==null&&l!==null&&oc(l,_e.memoizedState.deps)?n.memoizedState=Cl(t,i,a,l):(ue.flags|=e,n.memoizedState=Cl(1|t,i,a,l))}function qo(e,t){Ss(8390656,8,e,t)}function xc(e,t){As(2048,8,e,t)}function cv(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=xs(),ue.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Lo(e){var t=Ze().memoizedState;return cv({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function Yo(e,t){return As(4,2,e,t)}function Qo(e,t){return As(4,4,e,t)}function Go(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xo(e,t,a){a=a!=null?a.concat([e]):null,As(4,4,Go.bind(null,t,e),a)}function Nc(){}function Zo(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&oc(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Vo(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&oc(t,l[1]))return l[0];if(l=e(),Pa){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[l,t],l}function jc(e,t,a){return a===void 0||(ta&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Jf(),ue.lanes|=e,za|=e,a)}function Ko(e,t,a,l){return pt(a,t)?a:zl.current!==null?(e=jc(e,a,l),pt(e,t)||(Je=!0),e):(ta&42)===0||(ta&1073741824)!==0&&(me&261930)===0?(Je=!0,e.memoizedState=a):(e=Jf(),ue.lanes|=e,za|=e,t)}function Jo(e,t,a,l,n){var i=Q.p;Q.p=i!==0&&8>i?i:8;var r=z.T,d={};z.T=d,Ec(e,!1,t,a);try{var m=n(),j=z.S;if(j!==null&&j(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var M=av(m,l);gn(e,t,M,At(e))}else gn(e,t,l,At(e))}catch(R){gn(e,t,{then:function(){},status:"rejected",reason:R},At())}finally{Q.p=i,r!==null&&d.types!==null&&(r.types=d.types),z.T=r}}function uv(){}function Sc(e,t,a,l){if(e.tag!==5)throw Error(f(476));var n=$o(e).queue;Jo(e,n,t,F,a===null?uv:function(){return Wo(e),a(l)})}function $o(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wo(e){var t=$o(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},At())}function Ac(){return at(On)}function Io(){return Ze().memoizedState}function Fo(){return Ze().memoizedState}function rv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=At();e=ja(a);var l=Sa(t,e,a);l!==null&&(ht(l,t,a),dn(l,t,a)),t={cache:Pi()},e.payload=t;return}t=t.return}}function ov(e,t,a){var l=At();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Es(e)?ef(t,a):(a=Qi(e,t,a,l),a!==null&&(ht(a,e,l),tf(a,t,l)))}function Po(e,t,a){var l=At();gn(e,t,a,l)}function gn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Es(e))ef(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var r=t.lastRenderedState,d=i(r,a);if(n.hasEagerState=!0,n.eagerState=d,pt(d,r))return ss(e,t,n,0),Ue===null&&ns(),!1}catch{}if(a=Qi(e,t,n,l),a!==null)return ht(a,e,l),tf(a,t,l),!0}return!1}function Ec(e,t,a,l){if(l={lane:2,revertLane:lu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(f(479))}else t=Qi(e,a,l,2),t!==null&&ht(t,e,2)}function Es(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ef(e,t){Ml=ps=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function tf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,sr(e,a)}}var pn={readContext:at,use:Ns,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};pn.useEffectEvent=Qe;var af={readContext:at,use:Ns,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:qo,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ss(4194308,4,Go.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){Ss(4,2,e,t)},useMemo:function(e,t){var a=it();t=t===void 0?null:t;var l=e();if(Pa){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=it();if(a!==void 0){var n=a(t);if(Pa){ma(!0);try{a(t)}finally{ma(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=ov.bind(null,ue,e),[l.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=pc(e);var t=e.queue,a=Po.bind(null,ue,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Nc,useDeferredValue:function(e,t){var a=it();return jc(a,e,t)},useTransition:function(){var e=pc(!1);return e=Jo.bind(null,ue,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ue,n=it();if(ye){if(a===void 0)throw Error(f(407));a=a()}else{if(a=t(),Ue===null)throw Error(f(349));(me&127)!==0||So(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,qo(Eo.bind(null,l,i,e),[e]),l.flags|=2048,Cl(9,{destroy:void 0},Ao.bind(null,l,i,a,t),null),a},useId:function(){var e=it(),t=Ue.identifierPrefix;if(ye){var a=Qt,l=Yt;a=(l&~(1<<32-gt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=bs++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=lv++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ac,useFormState:Oo,useActionState:Oo,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ec.bind(null,ue,!0,a),a.dispatch=t,[e,t]},useMemoCache:vc,useCacheRefresh:function(){return it().memoizedState=rv.bind(null,ue)},useEffectEvent:function(e){var t=it(),a={impl:e};return t.memoizedState=a,function(){if((Ae&2)!==0)throw Error(f(440));return a.impl.apply(void 0,arguments)}}},wc={readContext:at,use:Ns,useCallback:Zo,useContext:at,useEffect:xc,useImperativeHandle:Xo,useInsertionEffect:Yo,useLayoutEffect:Qo,useMemo:Vo,useReducer:js,useRef:Ho,useState:function(){return js(aa)},useDebugValue:Nc,useDeferredValue:function(e,t){var a=Ze();return Ko(a,_e.memoizedState,e,t)},useTransition:function(){var e=js(aa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:yn(e),t]},useSyncExternalStore:jo,useId:Io,useHostTransitionStatus:Ac,useFormState:Uo,useActionState:Uo,useOptimistic:function(e,t){var a=Ze();return zo(a,_e,e,t)},useMemoCache:vc,useCacheRefresh:Fo};wc.useEffectEvent=Lo;var lf={readContext:at,use:Ns,useCallback:Zo,useContext:at,useEffect:xc,useImperativeHandle:Xo,useInsertionEffect:Yo,useLayoutEffect:Qo,useMemo:Vo,useReducer:gc,useRef:Ho,useState:function(){return gc(aa)},useDebugValue:Nc,useDeferredValue:function(e,t){var a=Ze();return _e===null?jc(a,e,t):Ko(a,_e.memoizedState,e,t)},useTransition:function(){var e=gc(aa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:yn(e),t]},useSyncExternalStore:jo,useId:Io,useHostTransitionStatus:Ac,useFormState:Bo,useActionState:Bo,useOptimistic:function(e,t){var a=Ze();return _e!==null?zo(a,_e,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:vc,useCacheRefresh:Fo};lf.useEffectEvent=Lo;function Tc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:_({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var zc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=At(),n=ja(l);n.payload=t,a!=null&&(n.callback=a),t=Sa(e,n,l),t!==null&&(ht(t,e,l),dn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=At(),n=ja(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Sa(e,n,l),t!==null&&(ht(t,e,l),dn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=At(),l=ja(a);l.tag=2,t!=null&&(l.callback=t),t=Sa(e,l,a),t!==null&&(ht(t,e,a),dn(t,e,a))}};function nf(e,t,a,l,n,i,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,r):t.prototype&&t.prototype.isPureReactComponent?!ln(a,l)||!ln(n,i):!0}function sf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&zc.enqueueReplaceState(t,t.state,null)}function el(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=_({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function cf(e){ls(e)}function uf(e){console.error(e)}function rf(e){ls(e)}function ws(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function of(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Mc(e,t,a){return a=ja(a),a.tag=3,a.payload={element:null},a.callback=function(){ws(e,t)},a}function ff(e){return e=ja(e),e.tag=3,e}function df(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){of(t,a,l)}}var r=a.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){of(t,a,l),typeof n!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function fv(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Sl(t,a,n,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:return Ot===null?Hs():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===hs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),eu(e,l,n)),!1;case 22:return a.flags|=65536,l===hs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),eu(e,l,n)),!1}throw Error(f(435,a.tag))}return eu(e,l,n),Hs(),!1}if(ye)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ji&&(e=Error(f(422),{cause:l}),cn(_t(e,a)))):(l!==Ji&&(t=Error(f(423),{cause:l}),cn(_t(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=_t(l,a),n=Mc(e.stateNode,l,n),sc(e,n),Ge!==4&&(Ge=2)),!1;var i=Error(f(520),{cause:l});if(i=_t(i,a),wn===null?wn=[i]:wn.push(i),Ge!==4&&(Ge=2),t===null)return!0;l=_t(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Mc(a.stateNode,l,e),sc(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ma===null||!Ma.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=ff(n),df(n,e,a,l),sc(a,n),!1}a=a.return}while(a!==null);return!1}var _c=Error(f(461)),Je=!1;function lt(e,t,a,l){t.child=e===null?vo(t,null,a,l):Fa(t,e.child,a,l)}function hf(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var r={};for(var d in l)d!=="ref"&&(r[d]=l[d])}else r=l;return Ja(t),l=fc(e,t,a,r,i,n),d=dc(),e!==null&&!Je?(hc(e,t,n),la(e,t,n)):(ye&&d&&Vi(t),t.flags|=1,lt(e,t,l,n),t.child)}function mf(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!Gi(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,vf(e,t,i,l,n)):(e=cs(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Hc(e,n)){var r=i.memoizedProps;if(a=a.compare,a=a!==null?a:ln,a(r,l)&&e.ref===t.ref)return la(e,t,n)}return t.flags|=1,e=It(i,l),e.ref=t.ref,e.return=t,t.child=e}function vf(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(ln(i,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=i,Hc(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,la(e,t,n)}return Cc(e,t,a,l,n)}function yf(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return gf(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fs(t,i!==null?i.cachePool:null),i!==null?po(t,i):cc(),bo(t);else return l=t.lanes=536870912,gf(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(fs(t,i.cachePool),po(t,i),Ea(),t.memoizedState=null):(e!==null&&fs(t,null),cc(),Ea());return lt(e,t,n,a),t.child}function bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function gf(e,t,a,l,n){var i=tc();return i=i===null?null:{parent:Ve._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&fs(t,null),cc(),bo(t),e!==null&&Sl(e,t,l,!0),t.childLanes=n,null}function Ts(e,t){return t=Ms({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pf(e,t,a){return Fa(t,e.child,null,a),e=Ts(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function dv(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(l.mode==="hidden")return e=Ts(t,l),t.lanes=536870912,bn(null,e);if(rc(t),(e=ke)?(e=_d(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Yt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=Pr(e),a.return=t,t.child=a,tt=t,ke=null)):e=null,e===null)throw ba(t);return t.lanes=536870912,null}return Ts(t,l)}var i=e.memoizedState;if(i!==null){var r=i.dehydrated;if(rc(t),n)if(t.flags&256)t.flags&=-257,t=pf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Je||Sl(e,t,a,!1),n=(a&e.childLanes)!==0,Je||n){if(l=Ue,l!==null&&(r=ir(l,a),r!==0&&r!==i.retryLane))throw i.retryLane=r,Xa(e,r),ht(l,e,r),_c;Hs(),t=pf(e,t,a)}else e=i.treeContext,ke=Ut(r.nextSibling),tt=t,ye=!0,pa=null,Rt=!1,e!==null&&ao(t,e),t=Ts(t,l),t.flags|=4096;return t}return e=It(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zs(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(f(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Cc(e,t,a,l,n){return Ja(t),a=fc(e,t,a,l,void 0,n),l=dc(),e!==null&&!Je?(hc(e,t,n),la(e,t,n)):(ye&&l&&Vi(t),t.flags|=1,lt(e,t,a,n),t.child)}function bf(e,t,a,l,n,i){return Ja(t),t.updateQueue=null,a=No(t,l,a,n),xo(e),l=dc(),e!==null&&!Je?(hc(e,t,i),la(e,t,i)):(ye&&l&&Vi(t),t.flags|=1,lt(e,t,a,i),t.child)}function xf(e,t,a,l,n){if(Ja(t),t.stateNode===null){var i=bl,r=a.contextType;typeof r=="object"&&r!==null&&(i=at(r)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=zc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},lc(t),r=a.contextType,i.context=typeof r=="object"&&r!==null?at(r):bl,i.state=t.memoizedState,r=a.getDerivedStateFromProps,typeof r=="function"&&(Tc(t,a,r,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&zc.enqueueReplaceState(i,i.state,null),mn(t,l,i,n),hn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,m=el(a,d);i.props=m;var j=i.context,M=a.contextType;r=bl,typeof M=="object"&&M!==null&&(r=at(M));var R=a.getDerivedStateFromProps;M=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||j!==r)&&sf(t,i,l,r),Na=!1;var E=t.memoizedState;i.state=E,mn(t,l,i,n),hn(),j=t.memoizedState,d||E!==j||Na?(typeof R=="function"&&(Tc(t,a,R,l),j=t.memoizedState),(m=Na||nf(t,a,m,l,E,j,r))?(M||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"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=j),i.props=l,i.state=j,i.context=r,l=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,nc(e,t),r=t.memoizedProps,M=el(a,r),i.props=M,R=t.pendingProps,E=i.context,j=a.contextType,m=bl,typeof j=="object"&&j!==null&&(m=at(j)),d=a.getDerivedStateFromProps,(j=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==R||E!==m)&&sf(t,i,l,m),Na=!1,E=t.memoizedState,i.state=E,mn(t,l,i,n),hn();var T=t.memoizedState;r!==R||E!==T||Na||e!==null&&e.dependencies!==null&&rs(e.dependencies)?(typeof d=="function"&&(Tc(t,a,d,l),T=t.memoizedState),(M=Na||nf(t,a,M,l,E,T,m)||e!==null&&e.dependencies!==null&&rs(e.dependencies))?(j||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,T,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,T,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),i.props=l,i.state=T,i.context=m,l=M):(typeof i.componentDidUpdate!="function"||r===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,zs(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Fa(t,e.child,null,n),t.child=Fa(t,null,a,n)):lt(e,t,a,n),t.memoizedState=i.state,e=t.child):e=la(e,t,n),e}function Nf(e,t,a,l){return Va(),t.flags|=256,lt(e,t,a,l),t.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(e){return{baseLanes:e,cachePool:uo()}}function Oc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=St),e}function jf(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,r;if((r=i)||(r=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(n?Aa(t):Ea(),(e=ke)?(e=_d(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ga!==null?{id:Yt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},a=Pr(e),a.return=t,t.child=a,tt=t,ke=null)):e=null,e===null)throw ba(t);return yu(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,n?(Ea(),n=t.mode,d=Ms({mode:"hidden",children:d},n),l=Za(l,n,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Rc(a),l.childLanes=Oc(e,r,a),t.memoizedState=Dc,bn(null,l)):(Aa(t),Uc(t,d))}var m=e.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(i)t.flags&256?(Aa(t),t.flags&=-257,t=kc(e,t,a)):t.memoizedState!==null?(Ea(),t.child=e.child,t.flags|=128,t=null):(Ea(),d=l.fallback,n=t.mode,l=Ms({mode:"visible",children:l.children},n),d=Za(d,n,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Fa(t,e.child,null,a),l=t.child,l.memoizedState=Rc(a),l.childLanes=Oc(e,r,a),t.memoizedState=Dc,t=bn(null,l));else if(Aa(t),yu(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var j=r.dgst;r=j,l=Error(f(419)),l.stack="",l.digest=r,cn({value:l,source:null,stack:null}),t=kc(e,t,a)}else if(Je||Sl(e,t,a,!1),r=(a&e.childLanes)!==0,Je||r){if(r=Ue,r!==null&&(l=ir(r,a),l!==0&&l!==m.retryLane))throw m.retryLane=l,Xa(e,l),ht(r,e,l),_c;vu(d)||Hs(),t=kc(e,t,a)}else vu(d)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,ke=Ut(d.nextSibling),tt=t,ye=!0,pa=null,Rt=!1,e!==null&&ao(t,e),t=Uc(t,l.children),t.flags|=4096);return t}return n?(Ea(),d=l.fallback,n=t.mode,m=e.child,j=m.sibling,l=It(m,{mode:"hidden",children:l.children}),l.subtreeFlags=m.subtreeFlags&65011712,j!==null?d=It(j,d):(d=Za(d,n,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,bn(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Rc(a):(n=d.cachePool,n!==null?(m=Ve._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=uo(),d={baseLanes:d.baseLanes|a,cachePool:n}),l.memoizedState=d,l.childLanes=Oc(e,r,a),t.memoizedState=Dc,bn(e.child,l)):(Aa(t),a=e.child,e=a.sibling,a=It(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a)}function Uc(e,t){return t=Ms({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ms(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function kc(e,t,a){return Fa(t,e.child,null,a),e=Uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ii(e.return,t,a)}function Bc(e,t,a,l,n,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=a,r.tailMode=n,r.treeForkCount=i)}function Af(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var r=Xe.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,X(Xe,r),lt(e,t,l,a),l=ye?sn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Sf(e,a,t);else if(e.tag===19)Sf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&gs(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Bc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&gs(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Bc(t,!0,a,null,i,l);break;case"together":Bc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function la(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Sl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,a=It(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=It(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&rs(e)))}function hv(e,t,a){switch(t.tag){case 3:L(t,t.stateNode.containerInfo),xa(t,Ve,e.memoizedState.cache),Va();break;case 27:case 5:xe(t);break;case 4:L(t,t.stateNode.containerInfo);break;case 10:xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,rc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Aa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?jf(e,t,a):(Aa(t),e=la(e,t,a),e!==null?e.sibling:null);Aa(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Sl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Af(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,yf(e,t,a,t.pendingProps);case 24:xa(t,Ve,e.memoizedState.cache)}return la(e,t,a)}function Ef(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Hc(e,a)&&(t.flags&128)===0)return Je=!1,hv(e,t,a);Je=(e.flags&131072)!==0}else Je=!1,ye&&(t.flags&1048576)!==0&&to(t,sn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Wa(t.elementType),t.type=e,typeof e=="function")Gi(e)?(l=el(e,l),t.tag=1,t=xf(null,t,e,l,a)):(t.tag=0,t=Cc(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===he){t.tag=11,t=hf(null,t,e,l,a);break e}else if(n===O){t.tag=14,t=mf(null,t,e,l,a);break e}}throw t=pe(e)||e,Error(f(306,t,""))}}return t;case 0:return Cc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=el(l,t.pendingProps),xf(e,t,l,n,a);case 3:e:{if(L(t,t.stateNode.containerInfo),e===null)throw Error(f(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,nc(e,t),mn(t,l,null,a);var r=t.memoizedState;if(l=r.cache,xa(t,Ve,l),l!==i.cache&&Fi(t,[Ve],a,!0),hn(),l=r.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Nf(e,t,l,a);break e}else if(l!==n){n=_t(Error(f(424)),t),cn(n),t=Nf(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,ke=Ut(e.firstChild),tt=t,ye=!0,pa=null,Rt=!0,a=vo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Va(),l===n){t=la(e,t,a);break e}lt(e,t,l,a)}t=t.child}return t;case 26:return zs(e,t),e===null?(a=kd(t.type,null,t.pendingProps,null))?t.memoizedState=a:ye||(a=t.type,e=t.pendingProps,l=Zs(te.current).createElement(a),l[et]=t,l[ct]=e,nt(l,a,e),Ie(l),t.stateNode=l):t.memoizedState=kd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&ye&&(l=t.stateNode=Rd(t.type,t.pendingProps,te.current),tt=t,Rt=!0,n=ke,Ra(t.type)?(gu=n,ke=Ut(l.firstChild)):ke=n),lt(e,t,t.pendingProps.children,a),zs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((n=l=ke)&&(l=Gv(l,t.type,t.pendingProps,Rt),l!==null?(t.stateNode=l,tt=t,ke=Ut(l.firstChild),Rt=!1,n=!0):n=!1),n||ba(t)),xe(t),n=t.type,i=t.pendingProps,r=e!==null?e.memoizedProps:null,l=i.children,du(n,i)?l=null:r!==null&&du(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=fc(e,t,nv,null,null,a),On._currentValue=n),zs(e,t),lt(e,t,l,a),t.child;case 6:return e===null&&ye&&((e=a=ke)&&(a=Xv(a,t.pendingProps,Rt),a!==null?(t.stateNode=a,tt=t,ke=null,e=!0):e=!1),e||ba(t)),null;case 13:return jf(e,t,a);case 4:return L(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fa(t,null,l,a):lt(e,t,l,a),t.child;case 11:return hf(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,xa(t,t.type,l.value),lt(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Ja(t),n=at(n),l=l(n),t.flags|=1,lt(e,t,l,a),t.child;case 14:return mf(e,t,t.type,t.pendingProps,a);case 15:return vf(e,t,t.type,t.pendingProps,a);case 19:return Af(e,t,a);case 31:return dv(e,t,a);case 22:return yf(e,t,a,t.pendingProps);case 24:return Ja(t),l=at(Ve),e===null?(n=tc(),n===null&&(n=Ue,i=Pi(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},lc(t),xa(t,Ve,n)):((e.lanes&a)!==0&&(nc(e,t),mn(t,null,null,a),hn()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),xa(t,Ve,l)):(l=i.cache,xa(t,Ve,l),l!==n.cache&&Fi(t,[Ve],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function na(e){e.flags|=4}function qc(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Ff())e.flags|=8192;else throw Ia=hs,ac}else e.flags&=-16777217}function wf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yd(t))if(Ff())e.flags|=8192;else throw Ia=hs,ac}function _s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lr():536870912,e.lanes|=t,Ul|=t)}function xn(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function mv(e,t,a){var l=t.pendingProps;switch(Ki(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ea(Ve),Z(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(jl(t)?na(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$i())),Be(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(na(t),i!==null?(Be(t),wf(t,i)):(Be(t),qc(t,n,null,l,a))):i?i!==e.memoizedState?(na(t),Be(t),wf(t,i)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&na(t),Be(t),qc(t,n,e,l,a)),null;case 27:if(Re(t),a=te.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return Be(t),null}e=K.current,jl(t)?lo(t):(e=Rd(n,l,a),t.stateNode=e,na(t))}return Be(t),null;case 5:if(Re(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return Be(t),null}if(i=K.current,jl(t))lo(t);else{var r=Zs(te.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?r.createElement("select",{is:l.is}):r.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?r.createElement(n,{is:l.is}):r.createElement(n)}}i[et]=t,i[ct]=l;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=i;e:switch(nt(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&na(t)}}return Be(t),qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&na(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(f(166));if(e=te.current,jl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=tt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||jd(e.nodeValue,a)),e||ba(t,!0)}else e=Zs(e).createTextNode(l),e[et]=t,t.stateNode=e}return Be(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=jl(t),a!==null){if(e===null){if(!l)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[et]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else a=$i(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(f(558))}return Be(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=jl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[et]=t}else Va(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),n=!1}else n=$i(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_s(t,t.updateQueue),Be(t),null);case 4:return Z(),e===null&&cu(t.stateNode.containerInfo),Be(t),null;case 10:return ea(t.type),Be(t),null;case 19:if(D(Xe),l=t.memoizedState,l===null)return Be(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)xn(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=gs(e),i!==null){for(t.flags|=128,xn(l,!1),e=i.updateQueue,t.updateQueue=e,_s(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Fr(a,e),a=a.sibling;return X(Xe,Xe.current&1|2),ye&&Ft(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&vt()>Us&&(t.flags|=128,n=!0,xn(l,!1),t.lanes=4194304)}else{if(!n)if(e=gs(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,_s(t,e),xn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!ye)return Be(t),null}else 2*vt()-l.renderingStartTime>Us&&a!==536870912&&(t.flags|=128,n=!0,xn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=vt(),e.sibling=null,a=Xe.current,X(Xe,n?a&1|2:a&1),ye&&Ft(t,l.treeForkCount),e):(Be(t),null);case 22:case 23:return Nt(t),uc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),a=t.updateQueue,a!==null&&_s(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&D($a),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(Ve),Be(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function vv(e,t){switch(Ki(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(Ve),Z(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Re(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(f(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Xe),null;case 4:return Z(),null;case 10:return ea(t.type),null;case 22:case 23:return Nt(t),uc(),e!==null&&D($a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(Ve),null;case 25:return null;default:return null}}function Tf(e,t){switch(Ki(t),t.tag){case 3:ea(Ve),Z();break;case 26:case 27:case 5:Re(t);break;case 4:Z();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:D(Xe);break;case 10:ea(t.type);break;case 22:case 23:Nt(t),uc(),e!==null&&D($a);break;case 24:ea(Ve)}}function Nn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,r=a.inst;l=i(),r.destroy=l}a=a.next}while(a!==n)}}catch(d){ze(t,t.return,d)}}function wa(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var r=l.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,n=t;var m=a,j=d;try{j()}catch(M){ze(n,m,M)}}}l=l.next}while(l!==i)}}catch(M){ze(t,t.return,M)}}function zf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{go(t,a)}catch(l){ze(e,e.return,l)}}}function Mf(e,t,a){a.props=el(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ze(e,t,l)}}function jn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){ze(e,t,n)}}function Gt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){ze(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){ze(e,t,n)}else a.current=null}function _f(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){ze(e,e.return,n)}}function Lc(e,t,a){try{var l=e.stateNode;Bv(l,e.type,a,t),l[ct]=t}catch(n){ze(e,e.return,n)}}function Cf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ra(e.type)||e.tag===4}function Yc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ra(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=$t));else if(l!==4&&(l===27&&Ra(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,a),e=e.sibling;e!==null;)Qc(e,t,a),e=e.sibling}function Cs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ra(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Cs(e,t,a),e=e.sibling;e!==null;)Cs(e,t,a),e=e.sibling}function Df(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,l,a),t[et]=e,t[ct]=a}catch(i){ze(e,e.return,i)}}var sa=!1,$e=!1,Gc=!1,Rf=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function yv(e,t){if(e=e.containerInfo,ou=Fs,e=Gr(e),ki(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var r=0,d=-1,m=-1,j=0,M=0,R=e,E=null;t:for(;;){for(var T;R!==a||n!==0&&R.nodeType!==3||(d=r+n),R!==i||l!==0&&R.nodeType!==3||(m=r+l),R.nodeType===3&&(r+=R.nodeValue.length),(T=R.firstChild)!==null;)E=R,R=T;for(;;){if(R===e)break t;if(E===a&&++j===n&&(d=r),E===i&&++M===l&&(m=r),(T=R.nextSibling)!==null)break;R=E,E=R.parentNode}R=T}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;for(fu={focusedElem:e,selectionRange:a},Fs=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){switch(t=Fe,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var J=el(a.type,n);e=l.getSnapshotBeforeUpdate(J,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ae){ze(a,a.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)mu(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":mu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}}function Of(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ca(e,a),l&4&&Nn(5,a);break;case 1:if(ca(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(r){ze(a,a.return,r)}else{var n=el(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){ze(a,a.return,r)}}l&64&&zf(a),l&512&&jn(a,a.return);break;case 3:if(ca(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{go(e,t)}catch(r){ze(a,a.return,r)}}break;case 27:t===null&&l&4&&Df(a);case 26:case 5:ca(e,a),t===null&&l&4&&_f(a),l&512&&jn(a,a.return);break;case 12:ca(e,a);break;case 31:ca(e,a),l&4&&Bf(e,a);break;case 13:ca(e,a),l&4&&Hf(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ev.bind(null,a),Zv(e,a))));break;case 22:if(l=a.memoizedState!==null||sa,!l){t=t!==null&&t.memoizedState!==null||$e,n=sa;var i=$e;sa=l,($e=t)&&!i?ua(e,a,(a.subtreeFlags&8772)!==0):ca(e,a),sa=n,$e=i}break;case 30:break;default:ca(e,a)}}function Uf(e){var t=e.alternate;t!==null&&(e.alternate=null,Uf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bi(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ye=null,rt=!1;function ia(e,t,a){for(a=a.child;a!==null;)kf(e,t,a),a=a.sibling}function kf(e,t,a){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Zl,a)}catch{}switch(a.tag){case 26:$e||Gt(a,t),ia(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Gt(a,t);var l=Ye,n=rt;Ra(a.type)&&(Ye=a.stateNode,rt=!1),ia(e,t,a),Cn(a.stateNode),Ye=l,rt=n;break;case 5:$e||Gt(a,t);case 6:if(l=Ye,n=rt,Ye=null,ia(e,t,a),Ye=l,rt=n,Ye!==null)if(rt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(i){ze(a,t,i)}else try{Ye.removeChild(a.stateNode)}catch(i){ze(a,t,i)}break;case 18:Ye!==null&&(rt?(e=Ye,zd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Gl(e)):zd(Ye,a.stateNode));break;case 4:l=Ye,n=rt,Ye=a.stateNode.containerInfo,rt=!0,ia(e,t,a),Ye=l,rt=n;break;case 0:case 11:case 14:case 15:wa(2,a,t),$e||wa(4,a,t),ia(e,t,a);break;case 1:$e||(Gt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Mf(a,t,l)),ia(e,t,a);break;case 21:ia(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,ia(e,t,a),$e=l;break;default:ia(e,t,a)}}function Bf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gl(e)}catch(a){ze(t,t.return,a)}}}function Hf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gl(e)}catch(a){ze(t,t.return,a)}}function gv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rf),t;default:throw Error(f(435,e.tag))}}function Ds(e,t){var a=gv(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=wv.bind(null,e,l);l.then(n,n)}})}function ot(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(Ra(d.type)){Ye=d.stateNode,rt=!1;break e}break;case 5:Ye=d.stateNode,rt=!1;break e;case 3:case 4:Ye=d.stateNode.containerInfo,rt=!0;break e}d=d.return}if(Ye===null)throw Error(f(160));kf(i,r,n),Ye=null,rt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qf(t,e),t=t.sibling}var Ht=null;function qf(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),ft(e),l&4&&(wa(3,e,e.return),Nn(3,e),wa(5,e,e.return));break;case 1:ot(t,e),ft(e),l&512&&($e||a===null||Gt(a,a.return)),l&64&&sa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Ht;if(ot(t,e),ft(e),l&512&&($e||a===null||Gt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Jl]||i[et]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),nt(i,l,a),i[et]=e,Ie(i),l=i;break e;case"link":var r=qd("link","href",n).get(l+(a.href||""));if(r){for(var d=0;d<r.length;d++)if(i=r[d],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(d,1);break t}}i=n.createElement(l),nt(i,l,a),n.head.appendChild(i);break;case"meta":if(r=qd("meta","content",n).get(l+(a.content||""))){for(d=0;d<r.length;d++)if(i=r[d],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(d,1);break t}}i=n.createElement(l),nt(i,l,a),n.head.appendChild(i);break;default:throw Error(f(468,l))}i[et]=e,Ie(i),l=i}e.stateNode=l}else Ld(n,e.type,e.stateNode);else e.stateNode=Hd(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Ld(n,e.type,e.stateNode):Hd(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Lc(e,e.memoizedProps,a.memoizedProps)}break;case 27:ot(t,e),ft(e),l&512&&($e||a===null||Gt(a,a.return)),a!==null&&l&4&&Lc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ot(t,e),ft(e),l&512&&($e||a===null||Gt(a,a.return)),e.flags&32){n=e.stateNode;try{dl(n,"")}catch(J){ze(e,e.return,J)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,Lc(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Gc=!0);break;case 6:if(ot(t,e),ft(e),l&4){if(e.stateNode===null)throw Error(f(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){ze(e,e.return,J)}}break;case 3:if(Js=null,n=Ht,Ht=Vs(t.containerInfo),ot(t,e),Ht=n,ft(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Gl(t.containerInfo)}catch(J){ze(e,e.return,J)}Gc&&(Gc=!1,Lf(e));break;case 4:l=Ht,Ht=Vs(e.stateNode.containerInfo),ot(t,e),ft(e),Ht=l;break;case 12:ot(t,e),ft(e);break;case 31:ot(t,e),ft(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ds(e,l)));break;case 13:ot(t,e),ft(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Os=vt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ds(e,l)));break;case 22:n=e.memoizedState!==null;var m=a!==null&&a.memoizedState!==null,j=sa,M=$e;if(sa=j||n,$e=M||m,ot(t,e),$e=M,sa=j,ft(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||m||sa||$e||tl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){m=a=t;try{if(i=m.stateNode,n)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=m.stateNode;var R=m.memoizedProps.style,E=R!=null&&R.hasOwnProperty("display")?R.display:null;d.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(J){ze(m,m.return,J)}}}else if(t.tag===6){if(a===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(J){ze(m,m.return,J)}}}else if(t.tag===18){if(a===null){m=t;try{var T=m.stateNode;n?Md(T,!0):Md(m.stateNode,!1)}catch(J){ze(m,m.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ds(e,a))));break;case 19:ot(t,e),ft(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ds(e,l)));break;case 30:break;case 21:break;default:ot(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Cf(l)){a=l;break}l=l.return}if(a==null)throw Error(f(160));switch(a.tag){case 27:var n=a.stateNode,i=Yc(e);Cs(e,i,n);break;case 5:var r=a.stateNode;a.flags&32&&(dl(r,""),a.flags&=-33);var d=Yc(e);Cs(e,d,r);break;case 3:case 4:var m=a.stateNode.containerInfo,j=Yc(e);Qc(e,j,m);break;default:throw Error(f(161))}}catch(M){ze(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Lf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Of(e,t.alternate,t),t=t.sibling}function tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:wa(4,t,t.return),tl(t);break;case 1:Gt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Mf(t,t.return,a),tl(t);break;case 27:Cn(t.stateNode);case 26:case 5:Gt(t,t.return),tl(t);break;case 22:t.memoizedState===null&&tl(t);break;case 30:tl(t);break;default:tl(t)}e=e.sibling}}function ua(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,r=i.flags;switch(i.tag){case 0:case 11:case 15:ua(n,i,a),Nn(4,i);break;case 1:if(ua(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(j){ze(l,l.return,j)}if(l=i,n=l.updateQueue,n!==null){var d=l.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)yo(m[n],d)}catch(j){ze(l,l.return,j)}}a&&r&64&&zf(i),jn(i,i.return);break;case 27:Df(i);case 26:case 5:ua(n,i,a),a&&l===null&&r&4&&_f(i),jn(i,i.return);break;case 12:ua(n,i,a);break;case 31:ua(n,i,a),a&&r&4&&Bf(n,i);break;case 13:ua(n,i,a),a&&r&4&&Hf(n,i);break;case 22:i.memoizedState===null&&ua(n,i,a),jn(i,i.return);break;case 30:break;default:ua(n,i,a)}t=t.sibling}}function Xc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&un(a))}function Zc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e))}function qt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yf(e,t,a,l),t=t.sibling}function Yf(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:qt(e,t,a,l),n&2048&&Nn(9,t);break;case 1:qt(e,t,a,l);break;case 3:qt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e)));break;case 12:if(n&2048){qt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,r=i.id,d=i.onPostCommit;typeof d=="function"&&d(r,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){ze(t,t.return,m)}}else qt(e,t,a,l);break;case 31:qt(e,t,a,l);break;case 13:qt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,r=t.alternate,t.memoizedState!==null?i._visibility&2?qt(e,t,a,l):Sn(e,t):i._visibility&2?qt(e,t,a,l):(i._visibility|=2,Dl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Xc(r,t);break;case 24:qt(e,t,a,l),n&2048&&Zc(t.alternate,t);break;default:qt(e,t,a,l)}}function Dl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,r=t,d=a,m=l,j=r.flags;switch(r.tag){case 0:case 11:case 15:Dl(i,r,d,m,n),Nn(8,r);break;case 23:break;case 22:var M=r.stateNode;r.memoizedState!==null?M._visibility&2?Dl(i,r,d,m,n):Sn(i,r):(M._visibility|=2,Dl(i,r,d,m,n)),n&&j&2048&&Xc(r.alternate,r);break;case 24:Dl(i,r,d,m,n),n&&j&2048&&Zc(r.alternate,r);break;default:Dl(i,r,d,m,n)}t=t.sibling}}function Sn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Sn(a,l),n&2048&&Xc(l.alternate,l);break;case 24:Sn(a,l),n&2048&&Zc(l.alternate,l);break;default:Sn(a,l)}t=t.sibling}}var An=8192;function Rl(e,t,a){if(e.subtreeFlags&An)for(e=e.child;e!==null;)Qf(e,t,a),e=e.sibling}function Qf(e,t,a){switch(e.tag){case 26:Rl(e,t,a),e.flags&An&&e.memoizedState!==null&&ly(a,Ht,e.memoizedState,e.memoizedProps);break;case 5:Rl(e,t,a);break;case 3:case 4:var l=Ht;Ht=Vs(e.stateNode.containerInfo),Rl(e,t,a),Ht=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=An,An=16777216,Rl(e,t,a),An=l):Rl(e,t,a));break;default:Rl(e,t,a)}}function Gf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function En(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Fe=l,Zf(l,e)}Gf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xf(e),e=e.sibling}function Xf(e){switch(e.tag){case 0:case 11:case 15:En(e),e.flags&2048&&wa(9,e,e.return);break;case 3:En(e);break;case 12:En(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rs(e)):En(e);break;default:En(e)}}function Rs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Fe=l,Zf(l,e)}Gf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wa(8,t,t.return),Rs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Rs(t));break;default:Rs(t)}e=e.sibling}}function Zf(e,t){for(;Fe!==null;){var a=Fe;switch(a.tag){case 0:case 11:case 15:wa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:un(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Fe=l;else e:for(a=e;Fe!==null;){l=Fe;var n=l.sibling,i=l.return;if(Uf(l),l===a){Fe=null;break e}if(n!==null){n.return=i,Fe=n;break e}Fe=i}}}var pv={getCacheForType:function(e){var t=at(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Ve).controller.signal}},bv=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Ue=null,fe=null,me=0,Te=0,jt=null,Ta=!1,Ol=!1,Vc=!1,ra=0,Ge=0,za=0,al=0,Kc=0,St=0,Ul=0,wn=null,dt=null,Jc=!1,Os=0,Vf=0,Us=1/0,ks=null,Ma=null,We=0,_a=null,kl=null,oa=0,$c=0,Wc=null,Kf=null,Tn=0,Ic=null;function At(){return(Ae&2)!==0&&me!==0?me&-me:z.T!==null?lu():cr()}function Jf(){if(St===0)if((me&536870912)===0||ye){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),St=e}else St=536870912;return e=xt.current,e!==null&&(e.flags|=32),St}function ht(e,t,a){(e===Ue&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Bl(e,0),Ca(e,me,St,!1)),Kl(e,a),((Ae&2)===0||e!==Ue)&&(e===Ue&&((Ae&2)===0&&(al|=a),Ge===4&&Ca(e,me,St,!1)),Xt(e))}function $f(e,t,a){if((Ae&6)!==0)throw Error(f(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Vl(e,t),n=l?jv(e,t):Pc(e,t,!0),i=l;do{if(n===0){Ol&&!l&&Ca(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!xv(a)){n=Pc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;n=wn;var m=d.current.memoizedState.isDehydrated;if(m&&(Bl(d,r).flags|=256),r=Pc(d,r,!1),r!==2){if(Vc&&!m){d.errorRecoveryDisabledLanes|=i,al|=i,n=4;break e}i=dt,dt=n,i!==null&&(dt===null?dt=i:dt.push.apply(dt,i))}n=r}if(i=!1,n!==2)continue}}if(n===1){Bl(e,0),Ca(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:Ca(l,t,St,!Ta);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(n=Os+300-vt(),10<n)){if(Ca(l,t,St,!Ta),Vn(l,0,!0)!==0)break e;oa=t,l.timeoutHandle=wd(Wf.bind(null,l,a,dt,ks,Jc,t,St,al,Ul,Ta,i,"Throttled",-0,0),n);break e}Wf(l,a,dt,ks,Jc,t,St,al,Ul,Ta,i,null,-0,0)}}break}while(!0);Xt(e)}function Wf(e,t,a,l,n,i,r,d,m,j,M,R,E,T){if(e.timeoutHandle=-1,R=t.subtreeFlags,R&8192||(R&16785408)===16785408){R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},Qf(t,i,R);var J=(i&62914560)===i?Os-vt():(i&4194048)===i?Vf-vt():0;if(J=ny(R,J),J!==null){oa=i,e.cancelPendingCommit=J(nd.bind(null,e,t,i,a,l,n,r,d,m,M,R,null,E,T)),Ca(e,i,r,!j);return}}nd(e,t,i,a,l,n,r,d,m)}function xv(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!pt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ca(e,t,a,l){t&=~Kc,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-gt(n),r=1<<i;l[i]=-1,n&=~r}a!==0&&nr(e,a,t)}function Bs(){return(Ae&6)===0?(zn(0),!1):!0}function Fc(){if(fe!==null){if(Te===0)var e=fe.return;else e=fe,Pt=Ka=null,mc(e),Tl=null,on=0,e=fe;for(;e!==null;)Tf(e.alternate,e),e=e.return;fe=null}}function Bl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Lv(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),oa=0,Fc(),Ue=e,fe=a=It(e.current,null),me=t,Te=0,jt=null,Ta=!1,Ol=Vl(e,t),Vc=!1,Ul=St=Kc=al=za=Ge=0,dt=wn=null,Jc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-gt(l),i=1<<n;t|=e[n],l&=~i}return ra=t,ns(),a}function If(e,t){ue=null,z.H=pn,t===wl||t===ds?(t=fo(),Te=3):t===ac?(t=fo(),Te=4):Te=t===_c?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,fe===null&&(Ge=1,ws(e,_t(t,e.current)))}function Ff(){var e=xt.current;return e===null?!0:(me&4194048)===me?Ot===null:(me&62914560)===me||(me&536870912)!==0?e===Ot:!1}function Pf(){var e=z.H;return z.H=pn,e===null?pn:e}function ed(){var e=z.A;return z.A=pv,e}function Hs(){Ge=4,Ta||(me&4194048)!==me&&xt.current!==null||(Ol=!0),(za&134217727)===0&&(al&134217727)===0||Ue===null||Ca(Ue,me,St,!1)}function Pc(e,t,a){var l=Ae;Ae|=2;var n=Pf(),i=ed();(Ue!==e||me!==t)&&(ks=null,Bl(e,t)),t=!1;var r=Ge;e:do try{if(Te!==0&&fe!==null){var d=fe,m=jt;switch(Te){case 8:Fc(),r=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var j=Te;if(Te=0,jt=null,Hl(e,d,m,j),a&&Ol){r=0;break e}break;default:j=Te,Te=0,jt=null,Hl(e,d,m,j)}}Nv(),r=Ge;break}catch(M){If(e,M)}while(!0);return t&&e.shellSuspendCounter++,Pt=Ka=null,Ae=l,z.H=n,z.A=i,fe===null&&(Ue=null,me=0,ns()),r}function Nv(){for(;fe!==null;)td(fe)}function jv(e,t){var a=Ae;Ae|=2;var l=Pf(),n=ed();Ue!==e||me!==t?(ks=null,Us=vt()+500,Bl(e,t)):Ol=Vl(e,t);e:do try{if(Te!==0&&fe!==null){t=fe;var i=jt;t:switch(Te){case 1:Te=0,jt=null,Hl(e,t,i,1);break;case 2:case 9:if(ro(i)){Te=0,jt=null,ad(t);break}t=function(){Te!==2&&Te!==9||Ue!==e||(Te=7),Xt(e)},i.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:ro(i)?(Te=0,jt=null,ad(t)):(Te=0,jt=null,Hl(e,t,i,7));break;case 5:var r=null;switch(fe.tag){case 26:r=fe.memoizedState;case 5:case 27:var d=fe;if(r?Yd(r):d.stateNode.complete){Te=0,jt=null;var m=d.sibling;if(m!==null)fe=m;else{var j=d.return;j!==null?(fe=j,qs(j)):fe=null}break t}}Te=0,jt=null,Hl(e,t,i,5);break;case 6:Te=0,jt=null,Hl(e,t,i,6);break;case 8:Fc(),Ge=6;break e;default:throw Error(f(462))}}Sv();break}catch(M){If(e,M)}while(!0);return Pt=Ka=null,z.H=l,z.A=n,Ae=a,fe!==null?0:(Ue=null,me=0,ns(),Ge)}function Sv(){for(;fe!==null&&!Vh();)td(fe)}function td(e){var t=Ef(e.alternate,e,ra);e.memoizedProps=e.pendingProps,t===null?qs(e):fe=t}function ad(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=bf(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=bf(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:mc(t);default:Tf(a,t),t=fe=Fr(t,ra),t=Ef(a,t,ra)}e.memoizedProps=e.pendingProps,t===null?qs(e):fe=t}function Hl(e,t,a,l){Pt=Ka=null,mc(t),Tl=null,on=0;var n=t.return;try{if(fv(e,n,t,a,me)){Ge=1,ws(e,_t(a,e.current)),fe=null;return}}catch(i){if(n!==null)throw fe=n,i;Ge=1,ws(e,_t(a,e.current)),fe=null;return}t.flags&32768?(ye||l===1?e=!0:Ol||(me&536870912)!==0?e=!1:(Ta=e=!0,(l===2||l===9||l===3||l===6)&&(l=xt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ld(t,e)):qs(t)}function qs(e){var t=e;do{if((t.flags&32768)!==0){ld(t,Ta);return}e=t.return;var a=mv(t.alternate,t,ra);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ge===0&&(Ge=5)}function ld(e,t){do{var a=vv(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);Ge=6,fe=null}function nd(e,t,a,l,n,i,r,d,m){e.cancelPendingCommit=null;do Ls();while(We!==0);if((Ae&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(i=t.lanes|t.childLanes,i|=Yi,am(e,a,i,r,d,m),e===Ue&&(fe=Ue=null,me=0),kl=t,_a=e,oa=a,$c=i,Wc=n,Kf=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tv(Qn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,n=Q.p,Q.p=2,r=Ae,Ae|=4;try{yv(e,t,a)}finally{Ae=r,Q.p=n,z.T=l}}We=1,sd(),id(),cd()}}function sd(){if(We===1){We=0;var e=_a,t=kl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=Q.p;Q.p=2;var n=Ae;Ae|=4;try{qf(t,e);var i=fu,r=Gr(e.containerInfo),d=i.focusedElem,m=i.selectionRange;if(r!==d&&d&&d.ownerDocument&&Qr(d.ownerDocument.documentElement,d)){if(m!==null&&ki(d)){var j=m.start,M=m.end;if(M===void 0&&(M=j),"selectionStart"in d)d.selectionStart=j,d.selectionEnd=Math.min(M,d.value.length);else{var R=d.ownerDocument||document,E=R&&R.defaultView||window;if(E.getSelection){var T=E.getSelection(),J=d.textContent.length,ae=Math.min(m.start,J),De=m.end===void 0?ae:Math.min(m.end,J);!T.extend&&ae>De&&(r=De,De=ae,ae=r);var x=Yr(d,ae),g=Yr(d,De);if(x&&g&&(T.rangeCount!==1||T.anchorNode!==x.node||T.anchorOffset!==x.offset||T.focusNode!==g.node||T.focusOffset!==g.offset)){var N=R.createRange();N.setStart(x.node,x.offset),T.removeAllRanges(),ae>De?(T.addRange(N),T.extend(g.node,g.offset)):(N.setEnd(g.node,g.offset),T.addRange(N))}}}}for(R=[],T=d;T=T.parentNode;)T.nodeType===1&&R.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<R.length;d++){var C=R[d];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}Fs=!!ou,fu=ou=null}finally{Ae=n,Q.p=l,z.T=a}}e.current=t,We=2}}function id(){if(We===2){We=0;var e=_a,t=kl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=Q.p;Q.p=2;var n=Ae;Ae|=4;try{Of(e,t.alternate,t)}finally{Ae=n,Q.p=l,z.T=a}}We=3}}function cd(){if(We===4||We===3){We=0,Kh();var e=_a,t=kl,a=oa,l=Kf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,kl=_a=null,ud(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ma=null),gi(a),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(Zl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=z.T,n=Q.p,Q.p=2,z.T=null;try{for(var i=e.onRecoverableError,r=0;r<l.length;r++){var d=l[r];i(d.value,{componentStack:d.stack})}}finally{z.T=t,Q.p=n}}(oa&3)!==0&&Ls(),Xt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Ic?Tn++:(Tn=0,Ic=e):Tn=0,zn(0)}}function ud(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,un(t)))}function Ls(){return sd(),id(),cd(),rd()}function rd(){if(We!==5)return!1;var e=_a,t=$c;$c=0;var a=gi(oa),l=z.T,n=Q.p;try{Q.p=32>a?32:a,z.T=null,a=Wc,Wc=null;var i=_a,r=oa;if(We=0,kl=_a=null,oa=0,(Ae&6)!==0)throw Error(f(331));var d=Ae;if(Ae|=4,Xf(i.current),Yf(i,i.current,r,a),Ae=d,zn(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(Zl,i)}catch{}return!0}finally{Q.p=n,z.T=l,ud(e,t)}}function od(e,t,a){t=_t(a,t),t=Mc(e.stateNode,t,2),e=Sa(e,t,2),e!==null&&(Kl(e,2),Xt(e))}function ze(e,t,a){if(e.tag===3)od(e,e,a);else for(;t!==null;){if(t.tag===3){od(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ma===null||!Ma.has(l))){e=_t(a,e),a=ff(2),l=Sa(t,a,2),l!==null&&(df(a,l,t,e),Kl(l,2),Xt(l));break}}t=t.return}}function eu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new bv;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Vc=!0,n.add(a),e=Av.bind(null,e,t,a),t.then(e,e))}function Av(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(me&a)===a&&(Ge===4||Ge===3&&(me&62914560)===me&&300>vt()-Os?(Ae&2)===0&&Bl(e,0):Kc|=a,Ul===me&&(Ul=0)),Xt(e)}function fd(e,t){t===0&&(t=lr()),e=Xa(e,t),e!==null&&(Kl(e,t),Xt(e))}function Ev(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),fd(e,a)}function wv(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(f(314))}l!==null&&l.delete(t),fd(e,a)}function Tv(e,t){return hi(e,t)}var Ys=null,ql=null,tu=!1,Qs=!1,au=!1,Da=0;function Xt(e){e!==ql&&e.next===null&&(ql===null?Ys=ql=e:ql=ql.next=e),Qs=!0,tu||(tu=!0,Mv())}function zn(e,t){if(!au&&Qs){au=!0;do for(var a=!1,l=Ys;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var r=l.suspendedLanes,d=l.pingedLanes;i=(1<<31-gt(42|e)+1)-1,i&=n&~(r&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,vd(l,i))}else i=me,i=Vn(l,l===Ue?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Vl(l,i)||(a=!0,vd(l,i));l=l.next}while(a);au=!1}}function zv(){dd()}function dd(){Qs=tu=!1;var e=0;Da!==0&&qv()&&(e=Da);for(var t=vt(),a=null,l=Ys;l!==null;){var n=l.next,i=hd(l,t);i===0?(l.next=null,a===null?Ys=n:a.next=n,n===null&&(ql=a)):(a=l,(e!==0||(i&3)!==0)&&(Qs=!0)),l=n}We!==0&&We!==5||zn(e),Da!==0&&(Da=0)}function hd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var r=31-gt(i),d=1<<r,m=n[r];m===-1?((d&a)===0||(d&l)!==0)&&(n[r]=tm(d,t)):m<=t&&(e.expiredLanes|=d),i&=~d}if(t=Ue,a=me,a=Vn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&mi(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Vl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&mi(l),gi(a)){case 2:case 8:a=tr;break;case 32:a=Qn;break;case 268435456:a=ar;break;default:a=Qn}return l=md.bind(null,e),a=hi(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&mi(l),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ls()&&e.callbackNode!==a)return null;var l=me;return l=Vn(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:($f(e,l,t),hd(e,vt()),e.callbackNode!=null&&e.callbackNode===a?md.bind(null,e):null)}function vd(e,t){if(Ls())return null;$f(e,t,!0)}function Mv(){Yv(function(){(Ae&6)!==0?hi(er,zv):dd()})}function lu(){if(Da===0){var e=Al;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),Da=e}return Da}function yd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wn(""+e)}function gd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function _v(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=yd((n[ct]||null).action),r=l.submitter;r&&(t=(t=r[ct]||null)?yd(t.formAction):r.getAttribute("formAction"),t!==null&&(i=t,r=null));var d=new es("action","action",null,l,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Da!==0){var m=r?gd(n,r):new FormData(n);Sc(a,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(d.preventDefault(),m=r?gd(n,r):new FormData(n),Sc(a,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var nu=0;nu<Li.length;nu++){var su=Li[nu],Cv=su.toLowerCase(),Dv=su[0].toUpperCase()+su.slice(1);Bt(Cv,"on"+Dv)}Bt(Vr,"onAnimationEnd"),Bt(Kr,"onAnimationIteration"),Bt(Jr,"onAnimationStart"),Bt("dblclick","onDoubleClick"),Bt("focusin","onFocus"),Bt("focusout","onBlur"),Bt(Jm,"onTransitionRun"),Bt($m,"onTransitionStart"),Bt(Wm,"onTransitionCancel"),Bt($r,"onTransitionEnd"),ol("onMouseEnter",["mouseout","mouseover"]),ol("onMouseLeave",["mouseout","mouseover"]),ol("onPointerEnter",["pointerout","pointerover"]),ol("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),Rv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mn));function pd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var r=l.length-1;0<=r;r--){var d=l[r],m=d.instance,j=d.currentTarget;if(d=d.listener,m!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=j;try{i(n)}catch(M){ls(M)}n.currentTarget=null,i=m}else for(r=0;r<l.length;r++){if(d=l[r],m=d.instance,j=d.currentTarget,d=d.listener,m!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=j;try{i(n)}catch(M){ls(M)}n.currentTarget=null,i=m}}}}function de(e,t){var a=t[pi];a===void 0&&(a=t[pi]=new Set);var l=e+"__bubble";a.has(l)||(bd(t,e,2,!1),a.add(l))}function iu(e,t,a){var l=0;t&&(l|=4),bd(a,e,l,t)}var Gs="_reactListening"+Math.random().toString(36).slice(2);function cu(e){if(!e[Gs]){e[Gs]=!0,or.forEach(function(a){a!=="selectionchange"&&(Rv.has(a)||iu(a,!1,e),iu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gs]||(t[Gs]=!0,iu("selectionchange",!1,t))}}function bd(e,t,a,l){switch(Jd(t)){case 2:var n=cy;break;case 8:n=uy;break;default:n=ju}a=n.bind(null,t,a,e),n=void 0,!Ti||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function uu(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var d=l.stateNode.containerInfo;if(d===n)break;if(r===4)for(r=l.return;r!==null;){var m=r.tag;if((m===3||m===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;d!==null;){if(r=cl(d),r===null)return;if(m=r.tag,m===5||m===6||m===26||m===27){l=i=r;continue e}d=d.parentNode}}l=l.return}jr(function(){var j=i,M=Ei(a),R=[];e:{var E=Wr.get(e);if(E!==void 0){var T=es,J=e;switch(e){case"keypress":if(Fn(a)===0)break e;case"keydown":case"keyup":T=wm;break;case"focusin":J="focus",T=Ci;break;case"focusout":J="blur",T=Ci;break;case"beforeblur":case"afterblur":T=Ci;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Er;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=mm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Mm;break;case Vr:case Kr:case Jr:T=gm;break;case $r:T=Cm;break;case"scroll":case"scrollend":T=dm;break;case"wheel":T=Rm;break;case"copy":case"cut":case"paste":T=bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Tr;break;case"toggle":case"beforetoggle":T=Um}var ae=(t&4)!==0,De=!ae&&(e==="scroll"||e==="scrollend"),x=ae?E!==null?E+"Capture":null:E;ae=[];for(var g=j,N;g!==null;){var C=g;if(N=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||N===null||x===null||(C=Wl(g,x),C!=null&&ae.push(_n(g,C,N))),De)break;g=g.return}0<ae.length&&(E=new T(E,J,null,a,M),R.push({event:E,listeners:ae}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",E&&a!==Ai&&(J=a.relatedTarget||a.fromElement)&&(cl(J)||J[il]))break e;if((T||E)&&(E=M.window===M?M:(E=M.ownerDocument)?E.defaultView||E.parentWindow:window,T?(J=a.relatedTarget||a.toElement,T=j,J=J?cl(J):null,J!==null&&(De=v(J),ae=J.tag,J!==De||ae!==5&&ae!==27&&ae!==6)&&(J=null)):(T=null,J=j),T!==J)){if(ae=Er,C="onMouseLeave",x="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Tr,C="onPointerLeave",x="onPointerEnter",g="pointer"),De=T==null?E:$l(T),N=J==null?E:$l(J),E=new ae(C,g+"leave",T,a,M),E.target=De,E.relatedTarget=N,C=null,cl(M)===j&&(ae=new ae(x,g+"enter",J,a,M),ae.target=N,ae.relatedTarget=De,C=ae),De=C,T&&J)t:{for(ae=Ov,x=T,g=J,N=0,C=x;C;C=ae(C))N++;C=0;for(var ee=g;ee;ee=ae(ee))C++;for(;0<N-C;)x=ae(x),N--;for(;0<C-N;)g=ae(g),C--;for(;N--;){if(x===g||g!==null&&x===g.alternate){ae=x;break t}x=ae(x),g=ae(g)}ae=null}else ae=null;T!==null&&xd(R,E,T,ae,!1),J!==null&&De!==null&&xd(R,De,J,ae,!0)}}e:{if(E=j?$l(j):window,T=E.nodeName&&E.nodeName.toLowerCase(),T==="select"||T==="input"&&E.type==="file")var je=Ur;else if(Rr(E))if(kr)je=Zm;else{je=Gm;var W=Qm}else T=E.nodeName,!T||T.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?j&&Si(j.elementType)&&(je=Ur):je=Xm;if(je&&(je=je(e,j))){Or(R,je,a,M);break e}W&&W(e,E,j),e==="focusout"&&j&&E.type==="number"&&j.memoizedProps.value!=null&&ji(E,"number",E.value)}switch(W=j?$l(j):window,e){case"focusin":(Rr(W)||W.contentEditable==="true")&&(yl=W,Bi=j,nn=null);break;case"focusout":nn=Bi=yl=null;break;case"mousedown":Hi=!0;break;case"contextmenu":case"mouseup":case"dragend":Hi=!1,Xr(R,a,M);break;case"selectionchange":if(Km)break;case"keydown":case"keyup":Xr(R,a,M)}var re;if(Ri)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else vl?Cr(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(zr&&a.locale!=="ko"&&(vl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&vl&&(re=Sr()):(ya=M,zi="value"in ya?ya.value:ya.textContent,vl=!0)),W=Xs(j,ve),0<W.length&&(ve=new wr(ve,e,null,a,M),R.push({event:ve,listeners:W}),re?ve.data=re:(re=Dr(a),re!==null&&(ve.data=re)))),(re=Bm?Hm(e,a):qm(e,a))&&(ve=Xs(j,"onBeforeInput"),0<ve.length&&(W=new wr("onBeforeInput","beforeinput",null,a,M),R.push({event:W,listeners:ve}),W.data=re)),_v(R,e,j,a,M)}pd(R,t)})}function _n(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xs(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Wl(e,a),n!=null&&l.unshift(_n(e,n,i)),n=Wl(e,t),n!=null&&l.push(_n(e,n,i))),e.tag===3)return l;e=e.return}return[]}function Ov(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xd(e,t,a,l,n){for(var i=t._reactName,r=[];a!==null&&a!==l;){var d=a,m=d.alternate,j=d.stateNode;if(d=d.tag,m!==null&&m===l)break;d!==5&&d!==26&&d!==27||j===null||(m=j,n?(j=Wl(a,i),j!=null&&r.unshift(_n(a,j,m))):n||(j=Wl(a,i),j!=null&&r.push(_n(a,j,m)))),a=a.return}r.length!==0&&e.push({event:t,listeners:r})}var Uv=/\r\n?/g,kv=/\u0000|\uFFFD/g;function Nd(e){return(typeof e=="string"?e:""+e).replace(Uv,`
|
|
9
|
+
`).replace(kv,"")}function jd(e,t){return t=Nd(t),Nd(e)===t}function Ce(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||dl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&dl(e,""+l);break;case"className":Jn(e,"class",l);break;case"tabIndex":Jn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Jn(e,a,l);break;case"style":xr(e,l,i);break;case"data":if(t!=="object"){Jn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Wn(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&Ce(e,t,"name",n.name,n,null),Ce(e,t,"formEncType",n.formEncType,n,null),Ce(e,t,"formMethod",n.formMethod,n,null),Ce(e,t,"formTarget",n.formTarget,n,null)):(Ce(e,t,"encType",n.encType,n,null),Ce(e,t,"method",n.method,n,null),Ce(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Wn(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=$t);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Wn(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":de("beforetoggle",e),de("toggle",e),Kn(e,"popover",l);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Kn(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=om.get(a)||a,Kn(e,a,l))}}function ru(e,t,a,l,n,i){switch(a){case"style":xr(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"children":typeof l=="string"?dl(e,l):(typeof l=="number"||typeof l=="bigint")&&dl(e,""+l);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"onClick":l!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fr.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[ct]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Kn(e,a,l)}}}function nt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var r=a[i];if(r!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:Ce(e,t,i,r,a,null)}}n&&Ce(e,t,"srcSet",a.srcSet,a,null),l&&Ce(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var d=i=r=n=null,m=null,j=null;for(l in a)if(a.hasOwnProperty(l)){var M=a[l];if(M!=null)switch(l){case"name":n=M;break;case"type":r=M;break;case"checked":m=M;break;case"defaultChecked":j=M;break;case"value":i=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(f(137,t));break;default:Ce(e,t,l,M,a,null)}}yr(e,i,d,m,j,r,n,!1);return;case"select":de("invalid",e),l=r=i=null;for(n in a)if(a.hasOwnProperty(n)&&(d=a[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":r=d;break;case"multiple":l=d;default:Ce(e,t,n,d,a,null)}t=i,a=r,e.multiple=!!l,t!=null?fl(e,!!l,t,!1):a!=null&&fl(e,!!l,a,!0);return;case"textarea":de("invalid",e),i=n=l=null;for(r in a)if(a.hasOwnProperty(r)&&(d=a[r],d!=null))switch(r){case"value":l=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(f(91));break;default:Ce(e,t,r,d,a,null)}pr(e,l,n,i);return;case"option":for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null)&&(m==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ce(e,t,m,l,a,null));return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(l=0;l<Mn.length;l++)de(Mn[l],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:Ce(e,t,j,l,a,null)}return;default:if(Si(t)){for(M in a)a.hasOwnProperty(M)&&(l=a[M],l!==void 0&&ru(e,t,M,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&Ce(e,t,d,l,a,null))}function Bv(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,r=null,d=null,m=null,j=null,M=null;for(T in a){var R=a[T];if(a.hasOwnProperty(T)&&R!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":m=R;default:l.hasOwnProperty(T)||Ce(e,t,T,null,l,R)}}for(var E in l){var T=l[E];if(R=a[E],l.hasOwnProperty(E)&&(T!=null||R!=null))switch(E){case"type":i=T;break;case"name":n=T;break;case"checked":j=T;break;case"defaultChecked":M=T;break;case"value":r=T;break;case"defaultValue":d=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(f(137,t));break;default:T!==R&&Ce(e,t,E,T,l,R)}}Ni(e,r,d,m,j,M,i,n);return;case"select":T=r=d=E=null;for(i in a)if(m=a[i],a.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":T=m;default:l.hasOwnProperty(i)||Ce(e,t,i,null,l,m)}for(n in l)if(i=l[n],m=a[n],l.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":E=i;break;case"defaultValue":d=i;break;case"multiple":r=i;default:i!==m&&Ce(e,t,n,i,l,m)}t=d,a=r,l=T,E!=null?fl(e,!!a,E,!1):!!l!=!!a&&(t!=null?fl(e,!!a,t,!0):fl(e,!!a,a?[]:"",!1));return;case"textarea":T=E=null;for(d in a)if(n=a[d],a.hasOwnProperty(d)&&n!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ce(e,t,d,null,l,n)}for(r in l)if(n=l[r],i=a[r],l.hasOwnProperty(r)&&(n!=null||i!=null))switch(r){case"value":E=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==i&&Ce(e,t,r,n,l,i)}gr(e,E,T);return;case"option":for(var J in a)E=a[J],a.hasOwnProperty(J)&&E!=null&&!l.hasOwnProperty(J)&&(J==="selected"?e.selected=!1:Ce(e,t,J,null,l,E));for(m in l)E=l[m],T=a[m],l.hasOwnProperty(m)&&E!==T&&(E!=null||T!=null)&&(m==="selected"?e.selected=E&&typeof E!="function"&&typeof E!="symbol":Ce(e,t,m,E,l,T));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 ae in a)E=a[ae],a.hasOwnProperty(ae)&&E!=null&&!l.hasOwnProperty(ae)&&Ce(e,t,ae,null,l,E);for(j in l)if(E=l[j],T=a[j],l.hasOwnProperty(j)&&E!==T&&(E!=null||T!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(f(137,t));break;default:Ce(e,t,j,E,l,T)}return;default:if(Si(t)){for(var De in a)E=a[De],a.hasOwnProperty(De)&&E!==void 0&&!l.hasOwnProperty(De)&&ru(e,t,De,void 0,l,E);for(M in l)E=l[M],T=a[M],!l.hasOwnProperty(M)||E===T||E===void 0&&T===void 0||ru(e,t,M,E,l,T);return}}for(var x in a)E=a[x],a.hasOwnProperty(x)&&E!=null&&!l.hasOwnProperty(x)&&Ce(e,t,x,null,l,E);for(R in l)E=l[R],T=a[R],!l.hasOwnProperty(R)||E===T||E==null&&T==null||Ce(e,t,R,E,l,T)}function Sd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Hv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,r=n.initiatorType,d=n.duration;if(i&&d&&Sd(r)){for(r=0,d=n.responseEnd,l+=1;l<a.length;l++){var m=a[l],j=m.startTime;if(j>d)break;var M=m.transferSize,R=m.initiatorType;M&&Sd(R)&&(m=m.responseEnd,r+=M*(m<d?1:(d-j)/(m-j)))}if(--l,t+=8*(i+r)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ou=null,fu=null;function Zs(e){return e.nodeType===9?e:e.ownerDocument}function Ad(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ed(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function du(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hu=null;function qv(){var e=window.event;return e&&e.type==="popstate"?e===hu?!1:(hu=e,!0):(hu=null,!1)}var wd=typeof setTimeout=="function"?setTimeout:void 0,Lv=typeof clearTimeout=="function"?clearTimeout:void 0,Td=typeof Promise=="function"?Promise:void 0,Yv=typeof queueMicrotask=="function"?queueMicrotask:typeof Td<"u"?function(e){return Td.resolve(null).then(e).catch(Qv)}:wd;function Qv(e){setTimeout(function(){throw e})}function Ra(e){return e==="head"}function zd(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Gl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Cn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Cn(a);for(var i=a.firstChild;i;){var r=i.nextSibling,d=i.nodeName;i[Jl]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=r}}else a==="body"&&Cn(e.ownerDocument.body);a=n}while(a);Gl(t)}function Md(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function mu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":mu(a),bi(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Gv(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Jl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function Xv(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ut(e.nextSibling),e===null))return null;return e}function _d(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ut(e.nextSibling),e===null))return null;return e}function vu(e){return e.data==="$?"||e.data==="$~"}function yu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Zv(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var gu=null;function Cd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ut(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Rd(e,t,a){switch(t=Zs(a),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Cn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bi(e)}var kt=new Map,Od=new Set;function Vs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=Q.d;Q.d={f:Vv,r:Kv,D:Jv,C:$v,L:Wv,m:Iv,X:Pv,S:Fv,M:ey};function Vv(){var e=fa.f(),t=Bs();return e||t}function Kv(e){var t=ul(e);t!==null&&t.tag===5&&t.type==="form"?Wo(t):fa.r(e)}var Ll=typeof document>"u"?null:document;function Ud(e,t,a){var l=Ll;if(l&&typeof t=="string"&&t){var n=zt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Od.has(n)||(Od.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),nt(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Jv(e){fa.D(e),Ud("dns-prefetch",e,null)}function $v(e,t){fa.C(e,t),Ud("preconnect",e,t)}function Wv(e,t,a){fa.L(e,t,a);var l=Ll;if(l&&e&&t){var n='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+zt(a.imageSizes)+'"]')):n+='[href="'+zt(e)+'"]';var i=n;switch(t){case"style":i=Yl(e);break;case"script":i=Ql(e)}kt.has(i)||(e=_({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),kt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Dn(i))||t==="script"&&l.querySelector(Rn(i))||(t=l.createElement("link"),nt(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Iv(e,t){fa.m(e,t);var a=Ll;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+zt(l)+'"][href="'+zt(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ql(e)}if(!kt.has(i)&&(e=_({rel:"modulepreload",href:e},t),kt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Rn(i)))return}l=a.createElement("link"),nt(l,"link",e),Ie(l),a.head.appendChild(l)}}}function Fv(e,t,a){fa.S(e,t,a);var l=Ll;if(l&&e){var n=rl(l).hoistableStyles,i=Yl(e);t=t||"default";var r=n.get(i);if(!r){var d={loading:0,preload:null};if(r=l.querySelector(Dn(i)))d.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},a),(a=kt.get(i))&&pu(e,a);var m=r=l.createElement("link");Ie(m),nt(m,"link",e),m._p=new Promise(function(j,M){m.onload=j,m.onerror=M}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Ks(r,t,l)}r={type:"stylesheet",instance:r,count:1,state:d},n.set(i,r)}}}function Pv(e,t){fa.X(e,t);var a=Ll;if(a&&e){var l=rl(a).hoistableScripts,n=Ql(e),i=l.get(n);i||(i=a.querySelector(Rn(n)),i||(e=_({src:e,async:!0},t),(t=kt.get(n))&&bu(e,t),i=a.createElement("script"),Ie(i),nt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function ey(e,t){fa.M(e,t);var a=Ll;if(a&&e){var l=rl(a).hoistableScripts,n=Ql(e),i=l.get(n);i||(i=a.querySelector(Rn(n)),i||(e=_({src:e,async:!0,type:"module"},t),(t=kt.get(n))&&bu(e,t),i=a.createElement("script"),Ie(i),nt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function kd(e,t,a,l){var n=(n=te.current)?Vs(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Yl(a.href),a=rl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Yl(a.href);var i=rl(n).hoistableStyles,r=i.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,r),(i=n.querySelector(Dn(e)))&&!i._p&&(r.instance=i,r.state.loading=5),kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},kt.set(e,a),i||ty(n,e,a,r.state))),t&&l===null)throw Error(f(528,""));return r}if(t&&l!==null)throw Error(f(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ql(a),a=rl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function Yl(e){return'href="'+zt(e)+'"'}function Dn(e){return'link[rel="stylesheet"]['+e+"]"}function Bd(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function ty(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),nt(t,"link",a),Ie(t),e.head.appendChild(t))}function Ql(e){return'[src="'+zt(e)+'"]'}function Rn(e){return"script[async]"+e}function Hd(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+zt(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var n=_({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),nt(l,"style",n),Ks(l,a.precedence,e),t.instance=l;case"stylesheet":n=Yl(a.href);var i=e.querySelector(Dn(n));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;l=Bd(a),(n=kt.get(n))&&pu(l,n),i=(e.ownerDocument||e).createElement("link"),Ie(i);var r=i;return r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),nt(i,"link",l),t.state.loading|=4,Ks(i,a.precedence,e),t.instance=i;case"script":return i=Ql(a.src),(n=e.querySelector(Rn(i)))?(t.instance=n,Ie(n),n):(l=a,(n=kt.get(i))&&(l=_({},a),bu(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ie(n),nt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ks(l,a.precedence,e));return t.instance}function Ks(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,r=0;r<l.length;r++){var d=l[r];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function pu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Js=null;function qd(e,t,a){if(Js===null){var l=new Map,n=Js=new Map;n.set(a,l)}else n=Js,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[Jl]||i[et]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(t)||"";r=e+r;var d=l.get(r);d?d.push(i):l.set(r,[i])}}return l}function Ld(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function ay(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Yd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Yl(l.href),i=t.querySelector(Dn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$s.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ie(i);return}i=t.ownerDocument||t,l=Bd(l),(n=kt.get(n))&&pu(l,n),i=i.createElement("link"),Ie(i);var r=i;r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),nt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=$s.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var xu=0;function ny(e,t){return e.stylesheets&&e.count===0&&Is(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Is(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&xu===0&&(xu=62500*Hv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Is(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>xu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function $s(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Is(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ws=null;function Is(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ws=new Map,t.forEach(sy,e),Ws=null,$s.call(e))}function sy(e,t){if(!(t.state.loading&4)){var a=Ws.get(e);if(a)var l=a.get(null);else{a=new Map,Ws.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var r=n[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(a.set(r.dataset.precedence,r),l=r)}l&&a.set(null,l)}n=t.instance,r=n.getAttribute("data-precedence"),i=a.get(r)||l,i===l&&a.set(null,n),a.set(r,n),this.count++,l=$s.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var On={$$typeof:ne,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function iy(e,t,a,l,n,i,r,d,m){this.tag=1,this.containerInfo=e,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=vi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vi(0),this.hiddenUpdates=vi(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Qd(e,t,a,l,n,i,r,d,m,j,M,R){return e=new iy(e,t,a,r,m,j,M,R,d),t=1,i===!0&&(t|=24),i=bt(3,null,null,t),e.current=i,i.stateNode=e,t=Pi(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},lc(i),e}function Gd(e){return e?(e=bl,e):bl}function Xd(e,t,a,l,n,i){n=Gd(n),l.context===null?l.context=n:l.pendingContext=n,l=ja(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Sa(e,l,t),a!==null&&(ht(a,e,t),dn(a,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Nu(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function Vd(e){if(e.tag===13||e.tag===31){var t=Xa(e,67108864);t!==null&&ht(t,e,67108864),Nu(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=At();t=yi(t);var a=Xa(e,t);a!==null&&ht(a,e,t),Nu(e,t)}}var Fs=!0;function cy(e,t,a,l){var n=z.T;z.T=null;var i=Q.p;try{Q.p=2,ju(e,t,a,l)}finally{Q.p=i,z.T=n}}function uy(e,t,a,l){var n=z.T;z.T=null;var i=Q.p;try{Q.p=8,ju(e,t,a,l)}finally{Q.p=i,z.T=n}}function ju(e,t,a,l){if(Fs){var n=Su(l);if(n===null)uu(e,t,l,Ps,a),$d(e,l);else if(oy(n,e,t,a,l))l.stopPropagation();else if($d(e,l),t&4&&-1<ry.indexOf(e)){for(;n!==null;){var i=ul(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=qa(i.pendingLanes);if(r!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var m=1<<31-gt(r);d.entanglements[1]|=m,r&=~m}Xt(i),(Ae&6)===0&&(Us=vt()+500,zn(0))}}break;case 31:case 13:d=Xa(i,2),d!==null&&ht(d,i,2),Bs(),Nu(i,2)}if(i=Su(l),i===null&&uu(e,t,l,Ps,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else uu(e,t,l,null,a)}}function Su(e){return e=Ei(e),Au(e)}var Ps=null;function Au(e){if(Ps=null,e=cl(e),e!==null){var t=v(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=b(t),e!==null)return e;e=null}else if(a===31){if(e=w(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ps=e,null}function Jd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(Jh()){case er:return 2;case tr:return 8;case Qn:case $h:return 32;case ar:return 268435456;default:return 32}default:return 32}}var Eu=!1,Oa=null,Ua=null,ka=null,Un=new Map,kn=new Map,Ba=[],ry="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 $d(e,t){switch(e){case"focusin":case"focusout":Oa=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":ka=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kn.delete(t.pointerId)}}function Bn(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=ul(t),t!==null&&Vd(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function oy(e,t,a,l,n){switch(t){case"focusin":return Oa=Bn(Oa,e,t,a,l,n),!0;case"dragenter":return Ua=Bn(Ua,e,t,a,l,n),!0;case"mouseover":return ka=Bn(ka,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return Un.set(i,Bn(Un.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,kn.set(i,Bn(kn.get(i)||null,e,t,a,l,n)),!0}return!1}function Wd(e){var t=cl(e.target);if(t!==null){var a=v(t);if(a!==null){if(t=a.tag,t===13){if(t=b(a),t!==null){e.blockedOn=t,ur(e.priority,function(){Kd(a)});return}}else if(t===31){if(t=w(a),t!==null){e.blockedOn=t,ur(e.priority,function(){Kd(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ei(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Su(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ai=l,a.target.dispatchEvent(l),Ai=null}else return t=ul(a),t!==null&&Vd(t),e.blockedOn=a,!1;t.shift()}return!0}function Id(e,t,a){ei(e)&&a.delete(t)}function fy(){Eu=!1,Oa!==null&&ei(Oa)&&(Oa=null),Ua!==null&&ei(Ua)&&(Ua=null),ka!==null&&ei(ka)&&(ka=null),Un.forEach(Id),kn.forEach(Id)}function ti(e,t){e.blockedOn===t&&(e.blockedOn=null,Eu||(Eu=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,fy)))}var ai=null;function Fd(e){ai!==e&&(ai=e,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){ai===e&&(ai=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(Au(l||a)===null)continue;break}var i=ul(a);i!==null&&(e.splice(t,3),t-=3,Sc(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Gl(e){function t(m){return ti(m,e)}Oa!==null&&ti(Oa,e),Ua!==null&&ti(Ua,e),ka!==null&&ti(ka,e),Un.forEach(t),kn.forEach(t);for(var a=0;a<Ba.length;a++){var l=Ba[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ba.length&&(a=Ba[0],a.blockedOn===null);)Wd(a),a.blockedOn===null&&Ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],r=n[ct]||null;if(typeof i=="function")r||Fd(a);else if(r){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,r=i[ct]||null)d=r.formAction;else if(Au(n)!==null)continue}else d=r.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),Fd(a)}}}function Pd(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return n=r})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function wu(e){this._internalRoot=e}li.prototype.render=wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var a=t.current,l=At();Xd(a,l,e,t,null,null)},li.prototype.unmount=wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xd(e.current,2,null,e,null,null),Bs(),t[il]=null}};function li(e){this._internalRoot=e}li.prototype.unstable_scheduleHydration=function(e){if(e){var t=cr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ba.length&&t!==0&&t<Ba[a].priority;a++);Ba.splice(a,0,e),a===0&&Wd(e)}};var eh=u.version;if(eh!=="19.2.3")throw Error(f(527,eh,"19.2.3"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=y(t),e=e!==null?H(e):null,e=e===null?null:e.stateNode,e};var dy={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ni.isDisabled&&ni.supportsFiber)try{Zl=ni.inject(dy),yt=ni}catch{}}return qn.createRoot=function(e,t){if(!h(e))throw Error(f(299));var a=!1,l="",n=cf,i=uf,r=rf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Qd(e,1,!1,null,null,a,l,null,n,i,r,Pd),e[il]=t.current,cu(e),new wu(t)},qn.hydrateRoot=function(e,t,a){if(!h(e))throw Error(f(299));var l=!1,n="",i=cf,r=uf,d=rf,m=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(r=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=Qd(e,1,!0,t,a??null,l,n,m,i,r,d,Pd),t.context=Gd(null),a=t.current,l=At(),l=yi(l),n=ja(l),n.callback=null,Sa(a,n,l),a=l,t.current.lanes=a,Kl(t,a),Xt(t),e[il]=t.current,cu(e),new li(t)},qn.version="19.2.3",qn}var oh;function Ey(){if(oh)return Mu.exports;oh=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(u){console.error(u)}}return c(),Mu.exports=Ay(),Mu.exports}var wy=Ey();function Ru(){const c=window.location.pathname.replace(/^\/+/,"").split("/").filter(Boolean);return c[0]==="agent"&&c[1]?{view:"agent-info",conversationId:decodeURIComponent(c[1])}:c[0]==="agents"&&c[1]&&c[2]==="c"&&c[3]?{view:"agents",agentId:decodeURIComponent(c[1]),conversationId:decodeURIComponent(c[3])}:c[0]==="agents"&&c[1]?{view:"agents",agentId:decodeURIComponent(c[1])}:c[0]==="agents"?{view:"agents"}:c[0]==="fleet"?{view:"fleet"}:c[0]==="c"&&c[1]?{view:"conversation",conversationId:decodeURIComponent(c[1])}:c[0]==="sessions"&&c[1]?{view:"sessions",sessionId:decodeURIComponent(c[1])}:c[0]==="sessions"?{view:"sessions"}:c[0]==="mesh"?{view:"mesh"}:c[0]==="activity"?{view:"activity"}:c[0]==="work"&&c[1]?{view:"work",workId:decodeURIComponent(c[1])}:c[0]==="settings"?{view:"settings"}:{view:"inbox"}}function Ty(c){switch(c.view){case"inbox":return"/";case"conversation":return`/c/${encodeURIComponent(c.conversationId)}`;case"agent-info":return`/agent/${encodeURIComponent(c.conversationId)}`;case"agents":return c.agentId?c.conversationId?`/agents/${encodeURIComponent(c.agentId)}/c/${encodeURIComponent(c.conversationId)}`:`/agents/${encodeURIComponent(c.agentId)}`:"/agents";case"fleet":return"/fleet";case"sessions":return c.sessionId?`/sessions/${encodeURIComponent(c.sessionId)}`:"/sessions";case"mesh":return"/mesh";case"activity":return"/activity";case"work":return`/work/${encodeURIComponent(c.workId)}`;case"settings":return"/settings"}}function Ou(c){switch(c.view){case"conversation":return`conv:${c.conversationId}`;case"agent-info":return`agent-info:${c.conversationId}`;case"agents":return c.conversationId?`agent-conv:${c.conversationId}`:c.agentId?`agent:${c.agentId}`:"agents";case"sessions":return c.sessionId?`session:${c.sessionId}`:"sessions";case"work":return`work:${c.workId}`;default:return c.view}}function zy(){const[c,u]=A.useState(Ru),o=A.useRef({});A.useEffect(()=>{const h=()=>{const v=Ru();u(v),requestAnimationFrame(()=>{window.scrollTo(0,o.current[Ou(v)]??0)})};return window.addEventListener("popstate",h),()=>window.removeEventListener("popstate",h)},[]);const f=A.useCallback(h=>{o.current[Ou(Ru())]=window.scrollY,window.history.pushState(null,"",Ty(h)),u(h),requestAnimationFrame(()=>{window.scrollTo(0,o.current[Ou(h)]??0)})},[]);return{route:c,navigate:f}}function wh(c){const u=c.match(/^dm\.operator\.(.+)$/);return u?u[1]:null}function My(c){return`dm.operator.${c}`}async function He(c,u){const o=await fetch(c,{...u,headers:{...u?.headers??{},...u?.body?{"content-type":"application/json"}:{}}});if(!o.ok){const h=await o.text();throw new Error(h||`HTTP ${o.status}`)}const f=await o.text();if(f)return JSON.parse(f)}const _y=["hello","node.upserted","actor.registered","agent.registered","agent.endpoint.upserted","conversation.upserted","binding.upserted","message.posted","invocation.requested","flight.updated","delivery.planned","delivery.attempted","delivery.state.changed","collaboration.upserted","collaboration.event.appended","scout.dispatched"];function Cy(c){try{return JSON.parse(c)}catch{return{kind:"unknown"}}}function Vt(c){const u=A.useRef(c);u.current=c,A.useEffect(()=>{let o=null,f=null;function h(){o=new EventSource("/api/events");const v=b=>{u.current(Cy(b.data))};o.onmessage=v;for(const b of _y)o.addEventListener(b,v);o.onerror=()=>{o?.close(),f=setTimeout(h,3e3)}}return h(),()=>{o?.close(),f&&clearTimeout(f)}},[])}function Lt(c){return c==="working"||c==="active"||c==="waiting"?"working":!c||c==="offline"?"offline":"available"}function oi(c){return Lt(c)!=="offline"}function Yn(c){switch(Lt(c)){case"working":return"Working";case"available":return"Available";default:return"Offline"}}function Me(c){const u=c<1e12?c*1e3:c,o=Math.floor((Date.now()-u)/1e3);return o<5?"now":o<60?`${o}s`:o<3600?`${Math.floor(o/60)}m`:o<86400?`${Math.floor(o/3600)}h`:`${Math.floor(o/86400)}d`}function nl(c){return new Date(c<1e12?c*1e3:c).toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"})}const Dy={ask_sent:"asked",ask_replied:"replied",ask_failed:"failed",ask_working:"working",flight_created:"task started",flight_updated:"task updated",message_sent:"sent",message_received:"received",agent_online:"online",agent_offline:"offline"};function Ry(c){return Dy[c]??c.replace(/_/g," ")}const fh=["#6366f1","#8b5cf6","#0ea5e9","#14b8a6","#f59e0b","#ef4444","#ec4899","#10b981"];function Kt(c){let u=0;for(let o=0;o<c.length;o++)u=(u<<5)-u+c.charCodeAt(o)|0;return fh[Math.abs(u)%fh.length]}function Xl(c){switch(Lt(c)){case"working":return"var(--green)";case"available":return"var(--accent)";default:return"var(--dim)"}}const Oy={workspace:"workspace",worktree:"workspace",branch:"workspace",profile:"profile",persona:"profile",harness:"harness",runtime:"harness",node:"node",host:"node"};function Uy(c){return c.trim().replace(/^@+/,"").replace(/[.,!?;)\]]+$/,"")}function Zt(c){return c.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}const ky="scout";function By(c){return Oy[Zt(c)]??null}function Th(c){const u=Zt(c.definitionId),o=c.workspaceQualifier?Zt(c.workspaceQualifier):void 0,f=c.profile?Zt(c.profile):void 0,h=c.harness?Zt(c.harness):void 0,v=c.nodeQualifier?Zt(c.nodeQualifier):void 0;return u?{definitionId:u,...o?{workspaceQualifier:o}:{},...f?{profile:f}:{},...h?{harness:h}:{},...v?{nodeQualifier:v}:{}}:null}function Hy(c){const u=c.split(".").filter(Boolean),o=u.shift();if(!o)return null;const f={definitionId:o},h=[];for(const v of u){if(v.includes(":")){const[b,w=""]=v.split(":",2),S=By(b),y=Zt(w);if(!S||!y)return null;S==="workspace"?f.workspaceQualifier=y:S==="profile"?f.profile=y:S==="harness"?f.harness=y:S==="node"&&(f.nodeQualifier=y);continue}h.push(v)}if(h.length===1){const v=Zt(h[0]);if(!v)return null;f.workspaceQualifier=v}else if(h.length===2){const v=Zt(h[0]),b=Zt(h[1]);if(!v||!b)return null;f.workspaceQualifier||(f.workspaceQualifier=v),f.nodeQualifier||(f.nodeQualifier=b)}else if(h.length>2)return null;return Ly(f,{raw:c})}function qy(c){const u=Uy(c);return!u||u.includes("@")||u.includes("#")?null:Hy(u)}function dh(c,u={}){const o=Th(c);if(!o)return u.includeSigil===!1?"":"@";const h=[`${u.includeSigil===!1?"":"@"}${o.definitionId}`];return o.workspaceQualifier&&h.push(o.workspaceQualifier),o.profile&&h.push(`profile:${o.profile}`),o.harness&&h.push(`harness:${o.harness}`),o.nodeQualifier&&h.push(`node:${o.nodeQualifier}`),h.join(".")}function Ly(c,u={}){const o=Th(c);return o?{raw:u.raw??dh(o,{includeSigil:!1}),label:dh(o),definitionId:o.definitionId,...o.nodeQualifier?{nodeQualifier:o.nodeQualifier}:{},...o.workspaceQualifier?{workspaceQualifier:o.workspaceQualifier}:{},...o.profile?{profile:o.profile}:{},...o.harness?{harness:o.harness}:{}}:null}function Yy(c){return Qy(c).parsed}function Qy(c){const u=Array.from(c.matchAll(/(^|\s)@([a-z0-9][a-z0-9._/:-]*)/gi)),o=new Map,f=[];for(const h of u){const v=h[2]??"",b=qy(v);if(!b){v&&f.push(`@${v}`);continue}o.set(b.label,b)}return{parsed:Array.from(o.values()),unparsed:Array.from(new Set(f))}}function Gy(c,u){if(u.length===0)return[{kind:"text",value:c}];const o=new Map;for(const b of u)o.set(b.label.toLowerCase(),b);const f=[];let h=c;const v=/@([a-z0-9][a-z0-9._/:-]*)/i;for(;h.length>0;){const b=v.exec(h);if(!b||b.index===void 0){f.push({kind:"text",value:h});break}b.index>0&&f.push({kind:"text",value:h.slice(0,b.index)});const w=b[0],S=w.toLowerCase(),y=o.get(S);y?f.push({kind:"mention",identity:y}):f.push({kind:"text",value:w}),h=h.slice(b.index+w.length)}return f}function Xy(c,u){const o=[],f=/\*\*(.+?)\*\*/g;let h=0,v,b=0;for(;(v=f.exec(c))!==null;)v.index>h&&o.push(s.jsx("span",{children:c.slice(h,v.index)},`${u}-${b++}`)),o.push(s.jsx("strong",{children:v[1]},`${u}-${b++}`)),h=v.index+v[0].length;return h<c.length&&o.push(s.jsx("span",{children:c.slice(h)},`${u}-${b++}`)),o.length>0?o:[s.jsx("span",{children:c},u)]}function Et(c){if(!c)return c??"";const u=Yy(c);return Gy(c,u).flatMap((f,h)=>{if(f.kind==="text")return Xy(f.value,h*100);const{identity:v}=f,w=v.definitionId===ky?"var(--accent)":Kt(v.definitionId);return s.jsx("span",{className:"s-mention",style:{"--mention-color":w},children:v.label},h)})}const Qu=new Set(["completed","failed","cancelled"]),Zy={direct:"Direct message",channel:"Channel",group_direct:"Group",thread:"Thread"};function mt(c){return typeof c!="number"||!Number.isFinite(c)||c<=0?null:c<1e12?c*1e3:c}function Vy(c){if(!c)return null;const u=c.replace(/[\\/]+$/,"");return u?u.split(/[\\/]/).filter(Boolean).at(-1)??u:null}function Ky(c){return c.kind==="direct"&&c.agentName?c.agentName:c.title.replace(/\s*<>\s*/g," · ")}function Uu(c){const u=mt(c);return u===null?"":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(u)}function Jy(c,u){const o=mt(c),f=mt(u);if(o===null||f===null)return!1;const h=new Date(o),v=new Date(f);return h.getFullYear()===v.getFullYear()&&h.getMonth()===v.getMonth()&&h.getDate()===v.getDate()}function hh(c){const u=mt(c);if(u===null)return"";const o=new Date(u),f=new Date,h=new Date(f.getFullYear(),f.getMonth(),f.getDate()).getTime(),v=new Date(o.getFullYear(),o.getMonth(),o.getDate()).getTime(),b=1440*60*1e3;return v===h?"Today":v===h-b?"Yesterday":new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric"}).format(u)}function $y(c){switch(c){case"status":return"Status";case"system":return"System";case"scout.dispatch":return"Dispatch";default:return null}}function si(c){return[...c].sort((u,o)=>(mt(u.createdAt)??0)-(mt(o.createdAt)??0))}function Wy(c){return c.filter(u=>!Qu.has(u.state)).sort((u,o)=>(mt(o.startedAt)??0)-(mt(u.startedAt)??0))[0]??null}function mh(c,u,o){return{id:c.id,invocationId:c.invocationId,agentId:c.targetAgentId||o,agentName:null,conversationId:u,collaborationRecordId:null,state:c.state,summary:c.summary??null,startedAt:c.startedAt??null,completedAt:c.completedAt??null}}function Iy(c){const u=c.metadata?.scoutDispatch;if(!u||typeof u!="object")return null;const o=u;return!o.id||!o.kind||!Array.isArray(o.candidates)?null:o}function zh(c,u){if(c.class==="operator")return!0;const o=c.actorName?.toLowerCase()??"";return o===u.toLowerCase()||o==="operator"||o==="you"}function Fy(c,u){return c.reduce((o,f)=>{if(zh(f,u))return o;const h=mt(f.createdAt);return h===null?o:o===null||h>o?h:o},null)}function Py(c,u){switch(u){case"queued":return`${c} has your message and is waiting to start.`;case"waking":return`${c} is waking up now.`;case"waiting":return`${c} is thinking through the request.`;case"running":return`${c} is working on your request.`;default:return`${c} is working on it.`}}function eg(c){const{agentName:u,agentState:o,sending:f,currentFlight:h,showWorkingTurn:v}=c;if(f&&!h)return{label:"Sending",detail:`Handing your message to ${u}.`,tone:"pending",showStrip:!0,showTyping:!1};if(h&&v){const b=h.summary?.trim()||Py(u,h.state);switch(h.state){case"queued":return{label:"Queued",detail:b,tone:"pending",showStrip:!0,showTyping:!0};case"waking":return{label:"Coming online",detail:b,tone:"working",showStrip:!0,showTyping:!0};case"waiting":return{label:"Thinking",detail:b,tone:"working",showStrip:!0,showTyping:!0};default:return{label:"Working",detail:b,tone:"working",showStrip:!0,showTyping:!0}}}return oi(o)?{label:"Available",detail:`${u} is connected.`,tone:"idle",showStrip:!1,showTyping:!1}:{label:"Offline",detail:`${u} is offline right now. Sending a message will wake it up.`,tone:"offline",showStrip:!0,showTyping:!1}}function tg(c,u){switch(c.tone){case"pending":return"var(--accent)";case"working":return"var(--green)";case"offline":return"var(--dim)";default:return Xl(u)}}function ag(){return s.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[s.jsx("path",{d:"m3 11 18-8-8 18-2.8-7.2L3 11Z"}),s.jsx("path",{d:"M10.2 13.8 21 3"})]})}function vh({label:c,value:u}){return s.jsxs("div",{className:"s-conv-meta-row",children:[s.jsx("span",{className:"s-conv-meta-label",children:c}),s.jsx("span",{className:"s-conv-meta-value",children:u})]})}function lg(c){if(!c)return null;const u=c.participantIds.filter(o=>o!=="operator");return u.length===0?null:u.join(", ")}function Gu({conversationId:c,navigate:u}){const[o,f]=A.useState(null),[h,v]=A.useState(null),[b,w]=A.useState([]),[S,y]=A.useState(null),[H,_]=A.useState(null),k=A.useRef(null),Y=A.useRef(null),$=A.useRef(new Set),U=A.useRef(null),ce=wh(c),le=h?.agentId??ce,ge=h?.kind==="direct"||ce!==null,ne=A.useCallback(async()=>{_(null);try{const[L,Z]=await Promise.all([He("/api/agents"),He(`/api/session/${encodeURIComponent(c)}`).catch(()=>null)]);v(Z);const xe=Z?.agentId??ce;f(xe?L.find(Le=>Le.id===xe)??null:null);const Re=Z?.kind==="direct"&&xe&&xe.startsWith("local-session-agent-")?My(xe):c;if(Re!==c){u({view:"conversation",conversationId:Re});return}const[Oe,qe]=await Promise.all([He(`/api/messages?conversationId=${encodeURIComponent(Re)}&limit=300`),He(`/api/flights?conversationId=${encodeURIComponent(Re)}`)]);w(si(Oe)),$.current=new Set(qe.map(Le=>Le.invocationId)),y(Wy(qe))}catch(L){_(L instanceof Error?L.message:String(L))}},[c,ce,u]);A.useEffect(()=>{ne()},[ne]),A.useEffect(()=>{const L=setInterval(()=>{ne()},5e3);return()=>clearInterval(L)},[ne]),A.useEffect(()=>{U.current=S},[S]);const[he,V]=A.useState(""),[G,O]=A.useState(!1),[P,Ee]=A.useState("operator"),[B,I]=A.useState(null);A.useEffect(()=>{const L=Y.current;if(!L)return;L.style.height="0px";const Z=Math.min(Math.max(L.scrollHeight,40),160);L.style.height=`${Z}px`,L.style.overflowY=L.scrollHeight>Z?"auto":"hidden"},[he]),A.useEffect(()=>{He("/api/user").then(L=>Ee(L.name)).catch(()=>{})},[]);const ie=A.useMemo(()=>Fy(b,P),[b,P]);A.useEffect(()=>{B===null||ie===null||ie>=B&&I(null)},[B,ie]);const Pe=A.useMemo(()=>!S||Qu.has(S.state)?!1:(mt(S.startedAt)??B??Date.now())>=(ie??0),[B,S,ie]),pe=o?.name??h?.agentName??h?.title??le??"Conversation",we=A.useMemo(()=>eg({agentName:pe,agentState:o?.state??null,sending:G,currentFlight:S,showWorkingTurn:Pe}),[o?.state,pe,S,G,Pe]),z=h?Ky(h):pe,Q=h?.kind?Zy[h.kind]??h.kind:"Conversation",F=lg(h)??c,be=Vy(h?.workspaceRoot),Ne=h?.lastMessageAt??b[b.length-1]?.createdAt??null,p=[be?{label:be,title:h?.workspaceRoot??void 0}:null,h?.currentBranch?{label:h.currentBranch,title:h.currentBranch}:null,o?.harness??h?.harness?{label:o?.harness??h?.harness??"",title:void 0}:null].filter(L=>!!L);Vt(A.useCallback(L=>{if(L.kind==="message.posted"){const Z=L.payload?.message;if(!Z||Z.conversationId!==c)return;const xe=Z.actorId===le,Re={id:Z.id,conversationId:Z.conversationId,actorName:xe?pe:P,body:Z.body,createdAt:Z.createdAt,class:xe?Z.class:"operator"};if(w(Oe=>{if(Oe.some(qe=>qe.id===Z.id))return Oe;if(!xe){const qe=Oe.findIndex(Le=>Le.id.startsWith("optimistic-")&&Le.body===Z.body&&Math.abs((mt(Le.createdAt)??0)-(mt(Z.createdAt)??0))<=6e4);if(qe!==-1){const Le=[...Oe];return Le[qe]=Re,si(Le)}}return si([...Oe,Re])}),xe){const Oe=mt(Z.createdAt)??Date.now();I(qe=>qe===null||Oe<qe?qe:null),y(qe=>{if(!qe)return qe;const Le=mt(qe.startedAt)??0;return Oe>=Le?null:qe})}return}if(L.kind==="invocation.requested"){const Z=L.payload?.invocation;if(!Z||Z.targetAgentId!==le||Z.conversationId!==c)return;$.current.add(Z.id),I(xe=>xe??Date.now());return}if(L.kind==="flight.updated"){const Z=L.payload?.flight;if(!Z||Z.targetAgentId!==le||!($.current.has(Z.invocationId)||U.current?.id===Z.id))return;if(Qu.has(Z.state)){y(Re=>Re?.id===Z.id?null:Re),ne();return}$.current.add(Z.invocationId),y(mh(Z,c,le??""));return}if(L.kind==="agent.endpoint.upserted"){const Z=L.payload?.endpoint;if(!Z||Z.agentId!==le)return;f(xe=>xe&&{...xe,harness:Z.harness??xe.harness,state:Z.state,updatedAt:Date.now()});return}L.kind==="unknown"&&ne()},[le,pe,c,ne,P]));const D=b.length+(we.showTyping?1:0),X=A.useRef(0);A.useEffect(()=>{D>X.current&&k.current?.scrollIntoView({behavior:"smooth"}),X.current=D},[D]);const[,K]=A.useState(0);A.useEffect(()=>{const L=setInterval(()=>K(Z=>Z+1),15e3);return()=>clearInterval(L)},[]);const q=async L=>{const Z=L.trim();if(!Z||G)return;const xe=Date.now(),Re={id:`optimistic-${xe}`,conversationId:c,actorName:P,body:Z,createdAt:xe,class:"operator"};O(!0),I(xe),_(null),w(Oe=>si([...Oe,Re]));try{const Oe=await He("/api/send",{method:"POST",body:JSON.stringify({body:Z,conversationId:c})});Oe.flight&&($.current.add(Oe.flight.invocationId),y(mh(Oe.flight,c,le??"")))}catch(Oe){w(qe=>qe.filter(Le=>Le.id!==Re.id)),I(null),_(Oe instanceof Error?Oe.message:String(Oe))}finally{O(!1)}},te=async()=>{const L=he.trim();L&&(V(""),await q(L))},oe=async(L,Z)=>{const xe=`@${Z.agentId} `,Re=he.trim();if(Re){V(""),await q(`${xe}${Re}`);return}V(xe),Y.current?.focus()};return s.jsxs("div",{className:"s-conversation s-inbox-thread-redesign",children:[s.jsxs("div",{className:"s-conv-header",onClick:()=>ge?u({view:"agent-info",conversationId:c}):void 0,style:ge?void 0:{cursor:"default"},children:[s.jsx("button",{type:"button",className:"s-back",onClick:L=>{L.stopPropagation(),u(ge?{view:"inbox"}:{view:"sessions"})},children:"←"}),s.jsxs("div",{className:"s-thread-header-copy",children:[s.jsxs("div",{className:"s-thread-header-main",children:[s.jsx("div",{className:"s-avatar s-avatar-sm",style:{background:Kt(pe)},children:pe[0]?.toUpperCase()??"?"}),s.jsxs("div",{className:"s-conv-header-info",children:[s.jsx("span",{className:"s-conv-header-name",children:z}),s.jsxs("span",{className:"s-conv-header-state",title:ge?we.detail:F,children:[s.jsx("span",{className:"s-dot s-dot-sm",style:{background:tg(we,o?.state??null)}}),ge?we.label:F]})]})]}),s.jsxs("div",{className:"s-thread-header-meta",children:[s.jsx("span",{className:"s-thread-kicker",children:Q}),Ne&&s.jsx("span",{className:"s-thread-header-updated s-tabular",title:Uu(Ne),children:Me(Ne)})]})]}),p.length>0&&s.jsx("div",{className:"s-thread-header-chips","aria-label":"Thread details",children:p.map((L,Z)=>s.jsx("span",{className:"s-thread-chip",title:L.title,children:L.label},`${L.label}-${Z}`))}),ge&&le&&s.jsx("span",{className:"s-chevron"})]}),we.showStrip&&s.jsxs("div",{className:`s-conv-status s-conv-status-${we.tone}`,"aria-live":"polite",children:[s.jsx("span",{className:"s-conv-status-dot"}),s.jsxs("div",{className:"s-conv-status-copy",children:[s.jsx("span",{className:"s-conv-status-label",children:we.label}),s.jsx("span",{className:"s-conv-status-detail",children:we.detail})]})]}),ge&&o&&(o.harnessSessionId||o.harnessLogPath)&&s.jsxs("details",{className:"s-conv-meta-disclosure",children:[s.jsx("summary",{className:"s-conv-meta-toggle",children:"Session details"}),s.jsxs("div",{className:"s-conv-meta","aria-label":"Agent session metadata",children:[o.harnessSessionId&&s.jsx(vh,{label:"Harness Session",value:o.harnessSessionId}),o.harnessLogPath&&s.jsx(vh,{label:"Harness Log",value:o.harnessLogPath})]})]}),H&&s.jsx("p",{className:"s-error",children:H}),s.jsxs("div",{className:"s-messages",children:[b.length===0?s.jsxs("div",{className:"s-empty s-thread-empty",children:[s.jsx("p",{children:"No messages yet"}),s.jsx("p",{children:ge?`Start a conversation with ${pe}.`:"Start the thread below."})]}):b.map((L,Z)=>{const xe=zh(L,P),Re=Iy(L),Oe=Re?"scout.dispatch":L.class,qe=$y(Oe),Le=Z===0||!Jy(b[Z-1]?.createdAt,L.createdAt),sl=Uu(L.createdAt);return s.jsxs("div",{className:"s-thread-message-block",children:[Le&&s.jsxs("div",{className:"s-thread-day-divider","aria-label":hh(L.createdAt),children:[s.jsx("span",{className:"s-thread-day-line","aria-hidden":"true"}),s.jsx("span",{className:"s-thread-day-label",children:hh(L.createdAt)}),s.jsx("span",{className:"s-thread-day-line","aria-hidden":"true"})]}),s.jsx("article",{className:`s-msg s-row-message${xe?" s-msg-you":""}`,"data-class":Oe,children:s.jsxs("div",{className:"s-msg-card",children:[s.jsxs("div",{className:"s-msg-header",children:[s.jsxs("div",{className:"s-msg-meta",children:[s.jsx("span",{className:"s-msg-actor",children:xe?"You":L.actorName}),qe&&s.jsx("span",{className:"s-msg-kind",children:qe})]}),s.jsx("span",{className:"s-msg-time",title:sl,children:Me(L.createdAt)})]}),s.jsx("div",{className:"s-msg-body",title:sl,children:Et(L.body)}),Re&&Re.candidates.length>0&&s.jsx("div",{className:"s-scout-dispatch",children:Re.candidates.map(wt=>s.jsxs("button",{type:"button",className:"s-scout-tile",onClick:()=>{oe(Re,wt)},children:[s.jsxs("span",{className:"s-scout-tile-id",children:["@",wt.agentId]}),s.jsx("span",{className:"s-scout-tile-state",children:wt.endpointState}),s.jsx("span",{className:"s-scout-tile-meta",children:[wt.workspace,wt.node,wt.projectRoot].filter(Boolean).join(" · ")||wt.displayName})]},wt.agentId))})]})})]},L.id)}),we.showTyping&&s.jsx("div",{className:"s-thread-message-block",children:s.jsx("div",{className:"s-msg s-msg-working","aria-live":"polite",children:s.jsxs("div",{className:"s-msg-card s-msg-working-card",children:[s.jsxs("div",{className:"s-msg-header",children:[s.jsxs("div",{className:"s-msg-meta",children:[s.jsx("span",{className:"s-msg-actor",children:pe}),s.jsx("span",{className:"s-msg-kind",children:"Live"})]}),s.jsx("span",{className:"s-msg-time",title:S?.startedAt?Uu(S.startedAt):"now",children:S?.startedAt?Me(S.startedAt):"now"})]}),s.jsxs("div",{className:"s-msg-working-body",children:[s.jsxs("span",{className:"s-typing-indicator","aria-hidden":"true",children:[s.jsx("span",{className:"s-typing-dot"}),s.jsx("span",{className:"s-typing-dot"}),s.jsx("span",{className:"s-typing-dot"})]}),s.jsx("span",{className:"s-msg-working-copy",children:we.detail})]})]})})}),s.jsx("div",{ref:k})]}),s.jsx("form",{className:"s-compose",onSubmit:L=>{L.preventDefault(),te()},children:s.jsxs("div",{className:"s-thread-compose-shell",children:[s.jsx("textarea",{ref:Y,className:"s-compose-input",placeholder:`Message ${pe}...`,value:he,onChange:L=>V(L.target.value),onKeyDown:L=>{L.key!=="Enter"||L.shiftKey||L.nativeEvent.isComposing||(L.preventDefault(),!G&&he.trim()&&te())},disabled:G,rows:1}),s.jsxs("div",{className:"s-thread-compose-footer",children:[s.jsx("span",{className:"s-thread-compose-hint",children:G?`Sending to ${pe}…`:"Enter to send · Shift+Enter for newline"}),s.jsx("button",{type:"submit",className:"s-compose-send",disabled:G||!he.trim(),"aria-label":"Send message",children:s.jsx(ag,{})})]})]})})]})}var ll=(c=>(c[c.Border=-1]="Border",c[c.Data=0]="Data",c[c.Function=1]="Function",c[c.Position=2]="Position",c[c.Timing=3]="Timing",c[c.Alignment=4]="Alignment",c))(ll||{});const ng=[0,1],Mh=[1,0],_h=[2,3],Ch=[3,2],sg={L:ng,M:Mh,Q:_h,H:Ch},ig=/^\d*$/,cg=/^[A-Z0-9 $%*+./:-]*$/,ku="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Wu=1,Iu=40,yh=3,ug=3,ii=40,rg=10,Dh=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Rh=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class og{constructor(u,o,f,h){if(this.version=u,this.ecc=o,u<Wu||u>Iu)throw new RangeError("Version value out of range");if(h<-1||h>7)throw new RangeError("Mask value out of range");this.size=u*4+17;const v=Array.from({length:this.size}).fill(!1);for(let w=0;w<this.size;w++)this.modules.push(v.slice()),this.types.push(v.map(()=>0));this.drawFunctionPatterns();const b=this.addEccAndInterleave(f);if(this.drawCodewords(b),h===-1){let w=1e9;for(let S=0;S<8;S++){this.applyMask(S),this.drawFormatBits(S);const y=this.getPenaltyScore();y<w&&(h=S,w=y),this.applyMask(S)}}this.mask=h,this.applyMask(h),this.drawFormatBits(h)}size;mask;modules=[];types=[];getModule(u,o){return u>=0&&u<this.size&&o>=0&&o<this.size&&this.modules[o][u]}drawFunctionPatterns(){for(let f=0;f<this.size;f++)this.setFunctionModule(6,f,f%2===0,ll.Timing),this.setFunctionModule(f,6,f%2===0,ll.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),o=u.length;for(let f=0;f<o;f++)for(let h=0;h<o;h++)f===0&&h===0||f===0&&h===o-1||f===o-1&&h===0||this.drawAlignmentPattern(u[f],u[h]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const o=this.ecc[1]<<3|u;let f=o;for(let v=0;v<10;v++)f=f<<1^(f>>>9)*1335;const h=(o<<10|f)^21522;for(let v=0;v<=5;v++)this.setFunctionModule(8,v,da(h,v));this.setFunctionModule(8,7,da(h,6)),this.setFunctionModule(8,8,da(h,7)),this.setFunctionModule(7,8,da(h,8));for(let v=9;v<15;v++)this.setFunctionModule(14-v,8,da(h,v));for(let v=0;v<8;v++)this.setFunctionModule(this.size-1-v,8,da(h,v));for(let v=8;v<15;v++)this.setFunctionModule(8,this.size-15+v,da(h,v));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let f=0;f<12;f++)u=u<<1^(u>>>11)*7973;const o=this.version<<12|u;for(let f=0;f<18;f++){const h=da(o,f),v=this.size-11+f%3,b=Math.floor(f/3);this.setFunctionModule(v,b,h),this.setFunctionModule(b,v,h)}}drawFinderPattern(u,o){for(let f=-4;f<=4;f++)for(let h=-4;h<=4;h++){const v=Math.max(Math.abs(h),Math.abs(f)),b=u+h,w=o+f;b>=0&&b<this.size&&w>=0&&w<this.size&&this.setFunctionModule(b,w,v!==2&&v!==4,ll.Position)}}drawAlignmentPattern(u,o){for(let f=-2;f<=2;f++)for(let h=-2;h<=2;h++)this.setFunctionModule(u+h,o+f,Math.max(Math.abs(h),Math.abs(f))!==1,ll.Alignment)}setFunctionModule(u,o,f,h=ll.Function){this.modules[o][u]=f,this.types[o][u]=h}addEccAndInterleave(u){const o=this.version,f=this.ecc;if(u.length!==ri(o,f))throw new RangeError("Invalid argument");const h=Rh[f[0]][o],v=Dh[f[0]][o],b=Math.floor(Xu(o)/8),w=h-b%h,S=Math.floor(b/h),y=[],H=bg(v);for(let k=0,Y=0;k<h;k++){const $=u.slice(Y,Y+S-v+(k<w?0:1));Y+=$.length;const U=xg($,H);k<w&&$.push(0),y.push($.concat(U))}const _=[];for(let k=0;k<y[0].length;k++)y.forEach((Y,$)=>{(k!==S-v||$>=w)&&_.push(Y[k])});return _}drawCodewords(u){if(u.length!==Math.floor(Xu(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let f=this.size-1;f>=1;f-=2){f===6&&(f=5);for(let h=0;h<this.size;h++)for(let v=0;v<2;v++){const b=f-v,S=(f+1&2)===0?this.size-1-h:h;!this.types[S][b]&&o<u.length*8&&(this.modules[S][b]=da(u[o>>>3],7-(o&7)),o++)}}}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let o=0;o<this.size;o++)for(let f=0;f<this.size;f++){let h;switch(u){case 0:h=(f+o)%2===0;break;case 1:h=o%2===0;break;case 2:h=f%3===0;break;case 3:h=(f+o)%3===0;break;case 4:h=(Math.floor(f/3)+Math.floor(o/2))%2===0;break;case 5:h=f*o%2+f*o%3===0;break;case 6:h=(f*o%2+f*o%3)%2===0;break;case 7:h=((f+o)%2+f*o%3)%2===0;break;default:throw new Error("Unreachable")}!this.types[o][f]&&h&&(this.modules[o][f]=!this.modules[o][f])}}getPenaltyScore(){let u=0;for(let v=0;v<this.size;v++){let b=!1,w=0;const S=[0,0,0,0,0,0,0];for(let y=0;y<this.size;y++)this.modules[v][y]===b?(w++,w===5?u+=yh:w>5&&u++):(this.finderPenaltyAddHistory(w,S),b||(u+=this.finderPenaltyCountPatterns(S)*ii),b=this.modules[v][y],w=1);u+=this.finderPenaltyTerminateAndCount(b,w,S)*ii}for(let v=0;v<this.size;v++){let b=!1,w=0;const S=[0,0,0,0,0,0,0];for(let y=0;y<this.size;y++)this.modules[y][v]===b?(w++,w===5?u+=yh:w>5&&u++):(this.finderPenaltyAddHistory(w,S),b||(u+=this.finderPenaltyCountPatterns(S)*ii),b=this.modules[y][v],w=1);u+=this.finderPenaltyTerminateAndCount(b,w,S)*ii}for(let v=0;v<this.size-1;v++)for(let b=0;b<this.size-1;b++){const w=this.modules[v][b];w===this.modules[v][b+1]&&w===this.modules[v+1][b]&&w===this.modules[v+1][b+1]&&(u+=ug)}let o=0;for(const v of this.modules)o=v.reduce((b,w)=>b+(w?1:0),o);const f=this.size*this.size,h=Math.ceil(Math.abs(o*20-f*10)/f)-1;return u+=h*rg,u}getAlignmentPatternPositions(){if(this.version===1)return[];{const u=Math.floor(this.version/7)+2,o=this.version===32?26:Math.ceil((this.version*4+4)/(u*2-2))*2,f=[6];for(let h=this.size-7;f.length<u;h-=o)f.splice(1,0,h);return f}}finderPenaltyCountPatterns(u){const o=u[1],f=o>0&&u[2]===o&&u[3]===o*3&&u[4]===o&&u[5]===o;return(f&&u[0]>=o*4&&u[6]>=o?1:0)+(f&&u[6]>=o*4&&u[0]>=o?1:0)}finderPenaltyTerminateAndCount(u,o,f){return u&&(this.finderPenaltyAddHistory(o,f),o=0),o+=this.size,this.finderPenaltyAddHistory(o,f),this.finderPenaltyCountPatterns(f)}finderPenaltyAddHistory(u,o){o[0]===0&&(u+=this.size),o.pop(),o.unshift(u)}}function ha(c,u,o){if(u<0||u>31||c>>>u)throw new RangeError("Value out of range");for(let f=u-1;f>=0;f--)o.push(c>>>f&1)}function da(c,u){return(c>>>u&1)!==0}class Fu{constructor(u,o,f){if(this.mode=u,this.numChars=o,this.bitData=f,o<0)throw new RangeError("Invalid argument");this.bitData=f.slice()}getData(){return this.bitData.slice()}}const fg=[1,10,12,14],dg=[2,9,11,13],hg=[4,8,16,16];function Oh(c,u){return c[Math.floor((u+7)/17)+1]}function Uh(c){const u=[];for(const o of c)ha(o,8,u);return new Fu(hg,c.length,u)}function mg(c){if(!kh(c))throw new RangeError("String contains non-numeric characters");const u=[];for(let o=0;o<c.length;){const f=Math.min(c.length-o,3);ha(Number.parseInt(c.substring(o,o+f),10),f*3+1,u),o+=f}return new Fu(fg,c.length,u)}function vg(c){if(!Bh(c))throw new RangeError("String contains unencodable characters in alphanumeric mode");const u=[];let o;for(o=0;o+2<=c.length;o+=2){let f=ku.indexOf(c.charAt(o))*45;f+=ku.indexOf(c.charAt(o+1)),ha(f,11,u)}return o<c.length&&ha(ku.indexOf(c.charAt(o)),6,u),new Fu(dg,c.length,u)}function yg(c){return c===""?[]:kh(c)?[mg(c)]:Bh(c)?[vg(c)]:[Uh(pg(c))]}function kh(c){return ig.test(c)}function Bh(c){return cg.test(c)}function gg(c,u){let o=0;for(const f of c){const h=Oh(f.mode,u);if(f.numChars>=1<<h)return Number.POSITIVE_INFINITY;o+=4+h+f.bitData.length}return o}function pg(c){c=encodeURI(c);const u=[];for(let o=0;o<c.length;o++)c.charAt(o)!=="%"?u.push(c.charCodeAt(o)):(u.push(Number.parseInt(c.substring(o+1,o+3),16)),o+=2);return u}function Xu(c){if(c<Wu||c>Iu)throw new RangeError("Version number out of range");let u=(16*c+128)*c+64;if(c>=2){const o=Math.floor(c/7)+2;u-=(25*o-10)*o-55,c>=7&&(u-=36)}return u}function ri(c,u){return Math.floor(Xu(c)/8)-Dh[u[0]][c]*Rh[u[0]][c]}function bg(c){if(c<1||c>255)throw new RangeError("Degree out of range");const u=[];for(let f=0;f<c-1;f++)u.push(0);u.push(1);let o=1;for(let f=0;f<c;f++){for(let h=0;h<u.length;h++)u[h]=Zu(u[h],o),h+1<u.length&&(u[h]^=u[h+1]);o=Zu(o,2)}return u}function xg(c,u){const o=u.map(f=>0);for(const f of c){const h=f^o.shift();o.push(0),u.forEach((v,b)=>o[b]^=Zu(v,h))}return o}function Zu(c,u){if(c>>>8||u>>>8)throw new RangeError("Byte out of range");let o=0;for(let f=7;f>=0;f--)o=o<<1^(o>>>7)*285,o^=(u>>>f&1)*c;return o}function Ng(c,u,o=1,f=40,h=-1,v=!0){if(!(Wu<=o&&o<=f&&f<=Iu)||h<-1||h>7)throw new RangeError("Invalid value");let b,w;for(b=o;;b++){const _=ri(b,u)*8,k=gg(c,b);if(k<=_){w=k;break}if(b>=f)throw new RangeError("Data too long")}for(const _ of[Mh,_h,Ch])v&&w<=ri(b,_)*8&&(u=_);const S=[];for(const _ of c){ha(_.mode[0],4,S),ha(_.numChars,Oh(_.mode,b),S);for(const k of _.getData())S.push(k)}const y=ri(b,u)*8;ha(0,Math.min(4,y-S.length),S),ha(0,(8-S.length%8)%8,S);for(let _=236;S.length<y;_^=253)ha(_,8,S);const H=Array.from({length:Math.ceil(S.length/8)},()=>0);return S.forEach((_,k)=>H[k>>>3]|=_<<7-(k&7)),new og(b,u,H,h)}function jg(c,u){const{ecc:o="L",boostEcc:f=!1,minVersion:h=1,maxVersion:v=40,maskPattern:b=-1,border:w=1}=u||{},S=typeof c=="string"?yg(c):Array.isArray(c)?[Uh(c)]:void 0;if(!S)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof c}`);const y=Ng(S,sg[o],h,v,b,f),H=Sg({version:y.version,maskPattern:y.mask,size:y.size,data:y.modules,types:y.types},w);return u?.invert&&(H.data=H.data.map(_=>_.map(k=>!k))),u?.onEncoded?.(H),H}function Sg(c,u=1){if(!u)return c;const{size:o}=c,f=o+u*2;c.size=f,c.data.forEach(v=>{for(let b=0;b<u;b++)v.unshift(!1),v.push(!1)});for(let v=0;v<u;v++)c.data.unshift(Array.from({length:f},b=>!1)),c.data.push(Array.from({length:f},b=>!1));const h=ll.Border;c.types.forEach(v=>{for(let b=0;b<u;b++)v.unshift(h),v.push(h)});for(let v=0;v<u;v++)c.types.unshift(Array.from({length:f},b=>h)),c.types.push(Array.from({length:f},b=>h));return c}function gh(c){return c.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Ag(c,u={}){const o=jg(c,u),{pixelSize:f=10,whiteColor:h="white",blackColor:v="black"}=u,b=o.size*f,w=o.size*f;let S=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${w} ${b}">`;const y=[];for(let H=0;H<o.size;H++)for(let _=0;_<o.size;_++){const k=_*f,Y=H*f;o.data[H][_]&&y.push(`M${k},${Y}h${f}v${f}h-${f}z`)}return S+=`<rect fill="${gh(h)}" width="${w}" height="${b}"/>`,S+=`<path fill="${gh(v)}" d="${y.join("")}"/>`,S+="</svg>",S}function Eg(c){return c?c.replace(/^wss?:\/\//,"").replace(/:\d+$/,""):null}function ph(c){return c?c.length<=18?c:`${c.slice(0,10)}...${c.slice(-6)}`:null}function wg(c){return c?c.status==="paired"||c.status==="connected"?"success":c.status==="error"||c.status==="closed"?"danger":"warning":"warning"}function Tg(c,u){if(!c)return null;const o=Math.max(0,Math.floor((c-u)/1e3));if(o===0)return null;if(o<60)return`${o}s`;const f=Math.floor(o/60),h=o%60;return h>0?`${f}m ${h}s`:`${f}m`}function bh({value:c}){const[u,o]=A.useState(!1),f=A.useCallback(()=>{navigator.clipboard.writeText(c).then(()=>{o(!0),setTimeout(()=>o(!1),1500)})},[c]);return s.jsx("button",{type:"button",className:"sys-copy-btn",onClick:f,title:"Copy",children:u?s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),s.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}function zg({navigate:c}){const[u,o]=A.useState(null),[f,h]=A.useState(""),[v,b]=A.useState(""),[w,S]=A.useState(!0),[y,H]=A.useState(!1),[_,k]=A.useState(!1),[Y,$]=A.useState(null),[U,ce]=A.useState(null),[le,ge]=A.useState(null),[ne,he]=A.useState(null),[V,G]=A.useState(()=>Date.now()),[O,P]=A.useState(null),Ee=A.useRef(null),B=A.useRef(0),I=A.useRef(null);A.useEffect(()=>{Ee.current=u},[u]),A.useEffect(()=>{I.current=Y},[Y]);const ie=A.useCallback(async(q="initial")=>{if(q==="background"&&I.current)return;const te=++B.current;!(Ee.current!==null)&&q!=="background"?(S(!0),ce(null)):H(!0);try{const L=await He(q==="manual"?"/api/pairing-state/refresh":"/api/pairing-state");if(te!==B.current)return;o(L),ce(null),he(Date.now())}catch(L){if(te!==B.current)return;ce(L instanceof Error?L.message:String(L))}finally{te===B.current&&(S(!1),H(!1))}},[]),Pe=A.useCallback(async()=>{try{const q=await He("/api/user");b(q.name),h(q.name),ge(null)}catch(q){ge(q instanceof Error?q.message:String(q))}},[]);A.useEffect(()=>{ie("initial"),Pe()},[ie,Pe]),A.useEffect(()=>{const q=setInterval(()=>{ie("background")},1e4);return()=>clearInterval(q)},[ie]),A.useEffect(()=>{if(!u?.pairing?.expiresAt)return;G(Date.now());const q=setInterval(()=>{G(Date.now())},1e3);return()=>clearInterval(q)},[u?.pairing?.expiresAt]);const pe=A.useCallback(async()=>{k(!0),ge(null);try{const q=await He("/api/user",{method:"POST",body:JSON.stringify({name:f})});b(q.name),h(q.name)}catch(q){ge(q instanceof Error?q.message:String(q))}finally{k(!1)}},[f]),we=A.useCallback(async q=>{const te=++B.current;$(q),ce(null);try{const oe=await He("/api/pairing/control",{method:"POST",body:JSON.stringify({action:q})});if(te!==B.current)return;o(oe),he(Date.now())}catch(oe){if(te!==B.current)return;ce(oe instanceof Error?oe.message:String(oe))}finally{te===B.current&&$(null)}},[]),z=A.useCallback(async q=>{P(q);try{await He(`/api/pairing/peers/${encodeURIComponent(q)}`,{method:"DELETE"}),ie("manual")}catch{}finally{P(null)}},[ie]),Q=A.useMemo(()=>{const q=u?.pairing?.qrValue?.trim();return q?Ag(q,{border:2,ecc:"M",pixelSize:8}):null},[u?.pairing?.qrValue]),F=Eg(u?.pairing?.relay??u?.relay??null),be=Tg(u?.pairing?.expiresAt,V),p=(u?.trustedPeers.find(q=>q.fingerprint===u.connectedPeerFingerprint)??null)?.name??ph(u?.connectedPeerFingerprint??null),D=wg(u),X=f.trim()!==v,K=!w&&!u&&!!U;return s.jsxs("div",{className:"sys-surface-page sys-settings-page",children:[s.jsxs("div",{className:"sys-page-head",children:[s.jsxs("div",{className:"sys-page-title-group",children:[s.jsx("h2",{className:"sys-page-title",children:"Settings"}),s.jsx("p",{className:"sys-page-subtitle",children:"Identity, pairing, and trusted devices."})]}),s.jsxs("div",{className:"sys-page-actions",children:[u&&s.jsx("span",{className:`sys-chip sys-chip-${D}`,children:u.statusLabel}),s.jsx("div",{className:"sys-sync-note",children:w?"Loading...":U&&u?`Snapshot from ${ne?Me(ne):"earlier"}`:ne?`Updated ${Me(ne)}`:""}),s.jsx("button",{type:"button",className:"s-btn",disabled:w||y||!!Y,onClick:()=>{ie("manual")},children:y?"Refreshing...":"Refresh"})]})]}),U&&u&&s.jsxs("div",{className:"sys-banner sys-banner-warning",children:[s.jsx("strong",{children:"Refresh failed."}),s.jsx("span",{children:U})]}),le&&s.jsxs("div",{className:"sys-banner sys-banner-warning",children:[s.jsx("strong",{children:"Identity error."}),s.jsx("span",{children:le})]}),w&&!u&&s.jsxs("div",{className:"sys-panel sys-state-card",children:[s.jsx("h3",{className:"sys-state-title",children:"Loading settings"}),s.jsx("p",{className:"sys-state-body",children:"Checking relay status and trusted peers."})]}),K&&s.jsxs("div",{className:"sys-panel sys-state-card sys-state-card-error",children:[s.jsx("h3",{className:"sys-state-title",children:"Pairing unavailable"}),s.jsx("p",{className:"sys-state-body",children:U}),s.jsx("div",{className:"sys-inline-actions",children:s.jsx("button",{type:"button",className:"s-btn",onClick:()=>{ie("manual")},children:"Try again"})})]}),s.jsxs("div",{className:"sys-settings-hero",children:[s.jsx("div",{className:"sys-settings-qr-col",children:Q?s.jsxs("div",{className:"sys-settings-qr-frame",children:[s.jsx("div",{className:"s-qr",dangerouslySetInnerHTML:{__html:Q}}),be&&s.jsxs("span",{className:"sys-settings-qr-expires",children:["Expires in ",be]})]}):s.jsx("div",{className:"sys-settings-qr-empty",children:s.jsx("span",{className:"sys-settings-qr-empty-label",children:u?.isRunning?"Waiting for QR...":"Start pairing to generate QR"})})}),s.jsxs("div",{className:"sys-settings-info-col",children:[s.jsxs("div",{className:"sys-input-row",children:[s.jsx("input",{className:"sys-input",type:"text",placeholder:"Your name",value:f,onChange:q=>h(q.target.value),onKeyDown:q=>{q.key==="Enter"&&X&&!_&&pe()}}),s.jsx("button",{type:"button",className:"s-btn s-btn-primary",disabled:!X||_,onClick:()=>{pe()},children:_?"Saving...":"Save"})]}),s.jsxs("div",{className:"sys-settings-kv-list",children:[u?.identityFingerprint&&s.jsxs("div",{className:"sys-settings-kv",children:[s.jsx("span",{className:"sys-settings-kv-label",children:"Fingerprint"}),s.jsxs("span",{className:"sys-settings-kv-value",children:[s.jsx("code",{children:u.identityFingerprint}),s.jsx(bh,{value:u.identityFingerprint})]})]}),F&&s.jsxs("div",{className:"sys-settings-kv",children:[s.jsx("span",{className:"sys-settings-kv-label",children:"Relay"}),s.jsxs("span",{className:"sys-settings-kv-value",children:[s.jsx("code",{children:F}),s.jsx(bh,{value:F})]})]}),u?.statusDetail&&s.jsxs("div",{className:"sys-settings-kv",children:[s.jsx("span",{className:"sys-settings-kv-label",children:"Status"}),s.jsx("span",{className:"sys-settings-kv-value sys-settings-kv-nowrap",children:u.statusDetail})]}),p&&s.jsxs("div",{className:"sys-settings-kv",children:[s.jsx("span",{className:"sys-settings-kv-label",children:"Connected"}),s.jsx("span",{className:"sys-settings-kv-value",children:p})]}),u?.secure&&s.jsxs("div",{className:"sys-settings-kv",children:[s.jsx("span",{className:"sys-settings-kv-label",children:"Security"}),s.jsx("span",{className:"sys-settings-kv-value",children:s.jsx("span",{className:"sys-chip sys-chip-success",style:{margin:0},children:"Noise XX"})})]})]}),u&&s.jsx("div",{className:"sys-inline-actions sys-settings-controls",children:u.isRunning?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:"s-btn",disabled:!!Y,onClick:()=>{we("restart")},children:Y==="restart"?"Restarting...":"Restart"}),s.jsx("button",{type:"button",className:"s-btn",disabled:!!Y,onClick:()=>{we("stop")},children:Y==="stop"?"Stopping...":"Stop"})]}):s.jsx("button",{type:"button",className:"s-btn s-btn-primary",disabled:!!Y,onClick:()=>{we("start")},children:Y==="start"?"Starting...":"Start pairing"})})]})]}),u&&s.jsxs("section",{className:"sys-settings-peers",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Trusted peers"}),s.jsxs("p",{className:"sys-section-subtitle",children:[u.trustedPeers.length," device",u.trustedPeers.length!==1?"s":""," paired with this broker."]})]})}),u.trustedPeers.length===0?s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No trusted peers"}),s.jsx("p",{children:"Devices appear here after completing pairing."})]}):s.jsxs("table",{className:"sys-peers-table",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Device"}),s.jsx("th",{children:"Fingerprint"}),s.jsx("th",{children:"Paired"}),s.jsx("th",{children:"Last seen"}),s.jsx("th",{})]})}),s.jsx("tbody",{children:u.trustedPeers.map(q=>{const te=q.fingerprint===u.connectedPeerFingerprint;return s.jsxs("tr",{className:te?"sys-peers-row-connected":"",children:[s.jsx("td",{children:s.jsxs("span",{className:"sys-peers-name",children:[q.name??ph(q.fingerprint)??"Peer",te&&s.jsx("span",{className:"sys-chip sys-chip-success sys-peers-badge",children:"Connected"})]})}),s.jsx("td",{children:s.jsx("code",{className:"sys-peers-fp",children:q.fingerprint})}),s.jsx("td",{children:q.pairedAtLabel??"—"}),s.jsx("td",{children:q.lastSeenLabel??"—"}),s.jsx("td",{children:s.jsx("button",{type:"button",className:"sys-peers-remove",disabled:O===q.fingerprint,onClick:()=>{z(q.fingerprint)},title:"Remove peer",children:O===q.fingerprint?"...":"Remove"})})]},q.fingerprint)})})]})]})]})}const Mg={"agent.registered":"registered","agent.online":"came online","agent.offline":"went offline","flight.started":"started task","flight.completed":"completed task","flight.updated":"updated task","message.sent":"sent message","message.received":"received message","collaboration.ask":"asked a question","collaboration.answer":"answered",ask_sent:"asked",ask_replied:"replied",ask_working:"working",flight_created:"started task",flight_updated:"updated task",message_sent:"sent",message_received:"received"},_g={presence:{label:"Presence",tone:"notice"},work:{label:"Execution",tone:"working"},message:{label:"Delivery",tone:"completed"},collaboration:{label:"Coordination",tone:"working"},system:{label:"System",tone:"notice"}};function Hh(c){return Mg[c]??c.replace(/[._]/g," ")}function Cg(c){return c.startsWith("agent.")||c.includes("registered")||c.includes("online")||c.includes("offline")?"presence":c.startsWith("flight")||c.startsWith("ask_")?"work":c.startsWith("message")?"message":c.startsWith("collaboration")?"collaboration":"system"}function Dg(c){return(c??"system").charAt(0).toUpperCase()}function qh(c){return c.length<=14?c:`${c.slice(0,8)}...${c.slice(-4)}`}function Rg(c){if(!c)return null;const u=c.split("/").filter(Boolean);return u[u.length-1]??c}function Og(c){return`${c.actorName??"system"} ${Hh(c.kind)}`}function Ug(c){return c.workspaceRoot?`Recorded from ${c.workspaceRoot}.`:c.conversationId?`Linked to thread ${qh(c.conversationId)}.`:"No additional detail was captured for this event."}function kg({navigate:c}){const[u,o]=A.useState([]),[f,h]=A.useState(null),[v,b]=A.useState(!0),[w,S]=A.useState(!1),[y,H]=A.useState(null),[_,k]=A.useState(null),Y=A.useRef([]),$=A.useRef(0),U=A.useRef(null);A.useEffect(()=>{Y.current=u},[u]);const ce=A.useCallback(async(V="initial")=>{const G=++$.current;!(Y.current.length>0)&&V!=="background"?(b(!0),H(null)):S(!0);try{const P=await He("/api/activity");if(G!==$.current)return;o(P),H(null),k(Date.now()),h(Ee=>P.some(B=>B.id===Ee)?Ee:null)}catch(P){if(G!==$.current)return;H(P instanceof Error?P.message:String(P))}finally{G===$.current&&(b(!1),S(!1))}},[]),le=A.useCallback(()=>{U.current||(U.current=setTimeout(()=>{U.current=null,ce("background")},250))},[ce]);A.useEffect(()=>(ce("initial"),()=>{U.current&&clearTimeout(U.current)}),[ce]),Vt(le);const ge=A.useMemo(()=>{const V=new Set(u.map(O=>O.actorName??"system")),G=new Set(u.map(O=>O.conversationId).filter(O=>!!O));return[{label:"Events",value:`${u.length}`,detail:u.length>0?`Latest ${Me(u[0].ts)}`:"Waiting for records"},{label:"Actors",value:`${V.size}`,detail:V.size>0?"Distinct event owners":"No actors yet"},{label:"Threads",value:`${G.size}`,detail:G.size>0?"Conversation-linked records":"No linked threads"}]},[u]),ne=!v&&u.length===0&&!!y,he=!v&&u.length===0&&!y;return s.jsxs("div",{className:"sys-surface-page",children:[s.jsxs("div",{className:"sys-page-head",children:[s.jsxs("div",{className:"sys-page-title-group",children:[s.jsx("h2",{className:"sys-page-title",children:"Activity"}),s.jsx("p",{className:"sys-page-subtitle",children:"Broker events, task execution, and collaboration handoffs."})]}),s.jsxs("div",{className:"sys-page-actions",children:[s.jsx("div",{className:"sys-sync-note",children:v?"Loading audit ledger...":y&&u.length>0?`Showing last confirmed snapshot from ${_?Me(_):"earlier"}`:_?`Updated ${Me(_)}`:"Waiting for first snapshot"}),s.jsx("button",{type:"button",className:"s-btn",disabled:v||w,onClick:()=>{ce("manual")},children:w?"Refreshing...":"Refresh"})]})]}),s.jsx("div",{className:"sys-stat-grid",children:ge.map(V=>s.jsxs("div",{className:"sys-stat-card",children:[s.jsx("span",{className:"sys-stat-label",children:V.label}),s.jsx("strong",{className:"sys-stat-value",children:V.value}),s.jsx("span",{className:"sys-stat-detail",children:V.detail})]},V.label))}),y&&u.length>0&&s.jsxs("div",{className:"sys-banner sys-banner-warning",children:[s.jsx("strong",{children:"Refresh failed."}),s.jsx("span",{children:y})]}),v&&u.length===0&&s.jsxs("div",{className:"sys-panel sys-state-card",children:[s.jsx("h3",{className:"sys-state-title",children:"Loading activity"}),s.jsx("p",{className:"sys-state-body",children:"Pulling the latest records from the broker database."})]}),ne&&s.jsxs("div",{className:"sys-panel sys-state-card sys-state-card-error",children:[s.jsx("h3",{className:"sys-state-title",children:"Activity is unavailable"}),s.jsx("p",{className:"sys-state-body",children:y}),s.jsx("div",{className:"sys-inline-actions",children:s.jsx("button",{type:"button",className:"s-btn",onClick:()=>{ce("manual")},children:"Try again"})})]}),he&&s.jsxs("div",{className:"sys-panel sys-state-card",children:[s.jsx("h3",{className:"sys-state-title",children:"No activity yet"}),s.jsx("p",{className:"sys-state-body",children:"Events appear here after agents register, send messages, or advance work."})]}),u.length>0&&s.jsx("div",{className:"sys-audit-list",children:u.map(V=>{const G=f===V.id,O=Cg(V.kind),P=_g[O],Ee=Rg(V.workspaceRoot),B=V.summary&&V.summary!==V.title?V.summary:Ug(V);return s.jsxs("article",{className:`sys-audit-entry${G?" sys-audit-entry-expanded":""}`,children:[s.jsxs("button",{type:"button",className:"sys-audit-toggle","aria-expanded":G,onClick:()=>h(G?null:V.id),children:[s.jsxs("div",{className:"sys-audit-stamp",children:[s.jsx("span",{className:"sys-audit-time",children:Me(V.ts)}),s.jsx("span",{className:"sys-audit-date",children:nl(V.ts)})]}),s.jsx("div",{className:`sys-audit-marker sys-audit-marker-${P.tone}`,children:s.jsx("span",{})}),s.jsxs("div",{className:"sys-audit-body",children:[s.jsxs("div",{className:"sys-audit-topline",children:[s.jsx("span",{className:"sys-audit-category",children:P.label}),s.jsx("span",{className:"sys-audit-kind",children:Hh(V.kind)})]}),s.jsx("h3",{className:"sys-audit-title",children:Et(V.title??Og(V))}),s.jsx("p",{className:"sys-audit-summary",children:Et(B)}),s.jsxs("div",{className:"sys-audit-meta",children:[s.jsxs("span",{className:"sys-audit-meta-item",children:[s.jsx("span",{className:"sys-audit-avatar",style:{background:Kt(V.actorName??"system")},children:Dg(V.actorName)}),V.actorName??"system"]}),Ee&&s.jsxs("span",{className:"sys-audit-meta-item",children:["Workspace ",Ee]}),V.conversationId&&s.jsxs("span",{className:"sys-audit-meta-item",children:["Thread ",qh(V.conversationId)]})]})]}),s.jsx("div",{className:"sys-audit-expand",children:G?"Close":"Details"})]}),G&&s.jsxs("div",{className:"sys-audit-details",children:[s.jsxs("div",{className:"sys-detail-grid",children:[s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Event"}),s.jsx("code",{className:"sys-detail-value",children:V.kind})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Recorded"}),s.jsx("span",{className:"sys-detail-value",children:nl(V.ts)})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Actor"}),s.jsx("span",{className:"sys-detail-value",children:V.actorName??"system"})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Workspace"}),s.jsx("span",{className:"sys-detail-value",children:V.workspaceRoot??"Not attached"})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Thread"}),s.jsx("span",{className:"sys-detail-value",children:V.conversationId??"Not attached"})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Record id"}),s.jsx("code",{className:"sys-detail-value",children:V.id})]})]}),V.conversationId&&s.jsx("div",{className:"sys-inline-actions",children:s.jsx("button",{type:"button",className:"s-btn s-btn-sm",onClick:()=>c({view:"conversation",conversationId:V.conversationId}),children:"Open thread"})})]})]},V.id)})})]})}function Bg(c){const u=c.split(".");return u[u.length-1]||c}function Ln(c){return c?c.replace(/_/g," "):null}function Hg({values:c}){return s.jsx("span",{className:"s-agent-token-list",children:c.map(u=>s.jsx("span",{className:"s-agent-token",children:u},u))})}function ci({title:c,items:u}){return u.length===0?null:s.jsxs("section",{className:"s-agent-profile-card",children:[s.jsx("div",{className:"s-agent-profile-card-header",children:s.jsx("div",{className:"s-agent-profile-card-title",children:c})}),s.jsx("div",{className:"s-agent-meta-card-body",children:u.map(o=>s.jsxs("div",{className:"s-agent-meta-row",children:[s.jsx("span",{className:"s-agent-meta-label",children:o.label}),s.jsx("span",{className:"s-agent-meta-value",children:o.value})]},o.label))})]})}function qg({conversationId:c,navigate:u}){const[o,f]=A.useState(null),[h,v]=A.useState(null),[b,w]=A.useState(null),S=wh(c),y=A.useCallback(async()=>{w(null);try{const[$,U]=await Promise.all([He("/api/agents"),He(`/api/session/${encodeURIComponent(c)}`).catch(()=>null)]),ce=U?.agentId??S;f($.find(le=>le.id===ce)??null),v(U)}catch($){w($ instanceof Error?$.message:String($)),v(null)}},[c,S]);if(A.useEffect(()=>{y()},[y]),Vt(y),!o)return s.jsxs("div",{children:[s.jsx("button",{type:"button",className:"s-back",onClick:()=>u({view:"conversation",conversationId:c}),children:"← Back"}),b&&s.jsx("p",{className:"s-error",children:b}),s.jsx("div",{className:"s-empty",children:s.jsx("p",{children:"Agent not found"})})]});const H=[{label:"Agent ID",value:o.id},...o.handle?[{label:"Handle",value:`@${o.handle}`}]:[],{label:"Class",value:Ln(o.agentClass)??"—"},...o.role?[{label:"Role",value:o.role}]:[],...o.selector?[{label:"Selector",value:o.selector}]:[]],_=[...o.project?[{label:"Project",value:o.project}]:[],...o.branch?[{label:"Branch",value:o.branch}]:[],...o.projectRoot?[{label:"Path",value:o.projectRoot}]:[],...o.cwd?[{label:"Working dir",value:o.cwd}]:[]],k=[{label:"State",value:Yn(o.state)},...o.harness?[{label:"Harness",value:o.harness}]:[],...o.transport?[{label:"Transport",value:Ln(o.transport)??o.transport}]:[],...o.wakePolicy?[{label:"Wake policy",value:Ln(o.wakePolicy)??o.wakePolicy}]:[],...o.capabilities.length>0?[{label:"Capabilities",value:s.jsx(Hg,{values:o.capabilities})}]:[]],Y=[{label:"Conversation ID",value:c},...h?.title?[{label:"Title",value:h.title}]:[],...h?.workspaceRoot?[{label:"Workspace",value:h.workspaceRoot}]:[],...h?.currentBranch?[{label:"Session branch",value:h.currentBranch}]:[],...h?.messageCount!=null?[{label:"Messages",value:String(h.messageCount)}]:[],...h?.lastMessageAt?[{label:"Last message",value:nl(h.lastMessageAt)}]:[],...o.harnessSessionId?[{label:"Harness session",value:o.harnessSessionId}]:[],...o.harnessLogPath?[{label:"Harness log",value:o.harnessLogPath}]:[]];return s.jsxs("div",{className:"s-agent-profile-page",children:[s.jsxs("div",{className:"s-agent-profile-page-topbar",children:[s.jsx("button",{type:"button",className:"s-back",onClick:()=>u({view:"conversation",conversationId:c}),children:"← Conversation"}),s.jsx("button",{type:"button",className:"s-btn",onClick:()=>u({view:"agents",agentId:o.id}),children:"Open in Agents"})]}),b&&s.jsx("p",{className:"s-error",children:b}),s.jsxs("section",{className:"s-agent-profile-hero",children:[s.jsx("div",{className:"s-agent-profile-hero-main",children:s.jsxs("div",{className:"s-agent-profile-hero-title-row",children:[s.jsx("div",{className:"s-avatar s-agent-profile-hero-avatar",style:{background:Kt(o.name)},children:o.name[0].toUpperCase()}),s.jsxs("div",{className:"s-agent-profile-hero-copy",children:[s.jsxs("div",{className:"s-agent-casefile-title-meta",children:[s.jsx("span",{className:"s-agent-casefile-record",children:Bg(o.id)}),s.jsxs("span",{className:`s-agent-state-chip s-agent-state-chip-${Lt(o.state)}`,children:[s.jsx("span",{className:"s-dot",style:{background:Xl(o.state)}}),Yn(o.state)]})]}),s.jsx("h1",{className:"s-agent-profile-hero-title",children:o.name}),s.jsx("p",{className:"s-agent-profile-hero-copyline",children:[o.handle?`@${o.handle}`:null,o.project,o.branch,Ln(o.role)??Ln(o.agentClass)].filter(Boolean).join(" • ")}),s.jsxs("p",{className:"s-agent-profile-hero-context",children:[h?.title?`Conversation: ${h.title}.`:"Attached to the current conversation.",o.updatedAt?` Updated ${Me(o.updatedAt)}.`:""]})]})]})}),s.jsx("div",{className:"s-agent-profile-hero-actions",children:s.jsx("button",{type:"button",className:"s-btn s-btn-primary",onClick:()=>u({view:"conversation",conversationId:c}),children:"Open conversation"})})]}),s.jsxs("div",{className:"s-agent-profile-grid",children:[s.jsx(ci,{title:"Identity",items:H}),s.jsx(ci,{title:"Workspace",items:_}),s.jsx(ci,{title:"Runtime",items:k}),s.jsx(ci,{title:"Conversation context",items:Y})]})]})}function Lg(c){return c.attention==="interrupt"?"failed":c.state==="done"?"completed":c.attention==="badge"||c.state==="waiting"||c.state==="review"?"updated":"working"}function Yg(c){switch(c){case"review":return"In review";case"waiting":return"Waiting";case"working":return"Working";case"done":return"Done";default:return c.replace(/_/g," ")}}function Qg(c){switch(c){case"badge":return"Needs attention";case"interrupt":return"Blocked";default:return null}}function Gg({items:c,navigate:u,emptyTitle:o,emptyDetail:f}){if(c.length===0){const h=[{titleWidth:"56%",metaWidths:["18%","14%","16%"],summaryWidth:"74%"},{titleWidth:"48%",metaWidths:["16%","20%","12%"],summaryWidth:"62%"}];return s.jsxs("div",{className:"s-work-empty-state",children:[s.jsxs("div",{className:"s-work-empty-copy",children:[s.jsx("p",{className:"s-work-empty-kicker",children:"Quiet for now"}),s.jsx("p",{className:"s-work-empty-title",children:o}),f&&s.jsx("p",{className:"s-work-empty-detail",children:f})]}),s.jsx("div",{className:"s-work-empty-skeleton","aria-hidden":"true",children:h.map((v,b)=>s.jsxs("div",{className:"s-work-empty-row",children:[s.jsxs("div",{className:"s-work-empty-row-header",children:[s.jsx("span",{className:"s-work-empty-line s-work-empty-line-title",style:{width:v.titleWidth}}),s.jsx("span",{className:"s-work-empty-pill"})]}),s.jsx("div",{className:"s-work-empty-row-meta",children:v.metaWidths.map(w=>s.jsx("span",{className:"s-work-empty-line s-work-empty-line-meta",style:{width:w}},w))}),s.jsx("span",{className:"s-work-empty-line s-work-empty-line-summary",style:{width:v.summaryWidth}})]},b))})]})}return s.jsx("div",{className:"s-work-list",children:c.map(h=>{const v=!!h.id||!!h.conversationId,b=Qg(h.attention),w=h.ownerName??h.ownerId??"Unassigned",S=h.id?()=>u({view:"work",workId:h.id}):h.conversationId?()=>u({view:"conversation",conversationId:h.conversationId}):void 0;return s.jsxs("div",{className:`s-work-row${v?" s-work-row-clickable":""}`,onClick:S,children:[s.jsxs("div",{className:"s-work-row-header",children:[s.jsxs("div",{className:"s-work-row-title-wrap",children:[s.jsx("span",{className:"s-work-row-title",children:h.title}),h.priority&&s.jsx("span",{className:"s-badge",children:h.priority})]}),s.jsx("span",{className:`s-pill s-pill-${Lg(h)}`,children:h.currentPhase})]}),s.jsxs("div",{className:"s-work-row-meta",children:[s.jsx("span",{children:w}),s.jsx("span",{children:Yg(h.state)}),h.activeChildWorkCount>0&&s.jsxs("span",{children:[h.activeChildWorkCount," child",h.activeChildWorkCount===1?"":"ren"]}),h.activeFlightCount>0&&s.jsxs("span",{children:[h.activeFlightCount," flight",h.activeFlightCount===1?"":"s"]}),b&&s.jsx("span",{children:b}),s.jsx("span",{children:Me(h.lastMeaningfulAt)})]}),h.lastMeaningfulSummary&&s.jsx("p",{className:"s-work-row-summary",children:Et(h.lastMeaningfulSummary)})]},h.id)})})}function Lh(c,u){if(u.filter(h=>h.name===c.name).length<=1)return{name:c.name,qualifier:null};const f=c.project??c.branch??c.id.replace(/^.*\./,"");return{name:c.name,qualifier:f}}function Bu(c){return c?c.replace(/_/g," "):null}function Xg(c){return c?Me(c):"—"}function Zg(c){const u=[...c].filter(h=>h.kind==="direct"&&!!h.agentId).sort((h,v)=>(v.lastMessageAt??0)-(h.lastMessageAt??0)),o=new Map,f=new Map;for(const h of u){const v=h.agentId;o.has(v)||(o.set(v,h.id),f.set(v,h))}return{conversationByAgentId:o,sessionByAgentId:f}}function Vg({label:c,value:u}){return s.jsxs("div",{className:"s-agent-meta-row",children:[s.jsx("span",{className:"s-agent-meta-label",children:c}),s.jsx("span",{className:"s-agent-meta-value",children:u})]})}function Kg({values:c}){return s.jsx("span",{className:"s-agent-token-list",children:c.map(u=>s.jsx("span",{className:"s-agent-token",children:u},u))})}function Jg({title:c,count:u,children:o}){return s.jsxs("section",{className:"s-agent-roster-section",children:[s.jsxs("div",{className:"s-agent-roster-section-header",children:[s.jsx("div",{className:"s-agent-roster-section-title",children:c}),s.jsx("span",{className:"s-agent-roster-section-count",children:u})]}),s.jsx("div",{className:"s-agent-roster-stack",children:o})]})}function $g({agents:c}){return c.length===0?null:s.jsxs("div",{className:"s-agent-overview-empty",children:[s.jsx("h2",{className:"s-agent-overview-empty-title",children:"Select an agent"}),s.jsx("p",{className:"s-agent-overview-empty-copy",children:"Pick an agent from the roster to view its profile, current work, and session context."})]})}function Wg({agent:c,allAgents:u,session:o,conversationId:f,navigate:h}){const{name:v,qualifier:b}=Lh(c,u),[w,S]=A.useState([]),y=Lt(c.state),H=A.useCallback(async()=>{try{S(await He(`/api/work?agentId=${encodeURIComponent(c.id)}`))}catch{S([])}},[c.id]);A.useEffect(()=>{H()},[H]),Vt(H);const _=[...c.project?[{label:"Project",value:c.project}]:[],...c.branch?[{label:"Branch",value:c.branch}]:[],...c.harness?[{label:"Harness",value:c.harness}]:[],...c.transport?[{label:"Transport",value:Bu(c.transport)??c.transport}]:[],...c.projectRoot?[{label:"Path",value:c.projectRoot}]:[],...o?.workspaceRoot?[{label:"Workspace",value:o.workspaceRoot}]:[],...o?.currentBranch?[{label:"Session branch",value:o.currentBranch}]:[]];return s.jsxs("div",{className:"s-agent-casefile",children:[s.jsx("button",{type:"button",className:"s-back s-agent-mobile-back",onClick:()=>h({view:"agents"}),children:"← All agents"}),s.jsxs("section",{className:"s-agent-detail-identity",children:[s.jsx("div",{className:"s-avatar s-agent-casefile-avatar",style:{background:Kt(c.name)},children:c.name[0].toUpperCase()}),s.jsxs("div",{className:"s-agent-detail-identity-copy",children:[s.jsxs("h2",{className:"s-agent-detail-identity-name",children:[v,b&&s.jsx("span",{className:"s-agent-casefile-title-qualifier",children:b})]}),s.jsxs("div",{className:"s-agent-detail-identity-meta",children:[c.handle&&s.jsxs("span",{className:"s-agent-detail-handle",children:["@",c.handle]}),s.jsxs("span",{className:`s-agent-state-chip s-agent-state-chip-${y}`,children:[s.jsx("span",{className:"s-dot",style:{background:Xl(c.state)}}),Yn(c.state)]}),c.updatedAt&&s.jsx("span",{className:"s-agent-detail-updated",children:Me(c.updatedAt)})]}),s.jsx("p",{className:"s-agent-detail-identity-desc",children:[Bu(c.role)??Bu(c.agentClass),c.project].filter(Boolean).join(" · ")}),s.jsxs("div",{className:"s-agent-detail-actions",children:[s.jsx("button",{type:"button",className:"s-btn s-btn-primary",onClick:()=>f&&h({view:"agents",agentId:c.id,conversationId:f}),disabled:!f,children:f?"Open conversation":"No conversation"}),c.capabilities.length>0&&s.jsx("div",{className:"s-agent-detail-capabilities",children:s.jsx(Kg,{values:c.capabilities})})]})]})]}),_.length>0&&s.jsxs("section",{className:"s-agent-detail-context",children:[s.jsx("h3",{className:"s-agent-detail-section-title",children:"Context"}),s.jsx("div",{className:"s-agent-meta-card-body",children:_.map(k=>s.jsx(Vg,{label:k.label,value:k.value},k.label))})]}),s.jsxs("section",{className:"s-agent-detail-work",children:[s.jsx("h3",{className:"s-agent-detail-section-title",children:"Active work"}),s.jsx(Gg,{items:w,navigate:h,emptyTitle:"Nothing in flight",emptyDetail:"New asks, handoffs, and follow-ups will stack here once this agent picks up work."})]})]})}function Ig({navigate:c,selectedAgentId:u,conversationId:o}){const[f,h]=A.useState([]),[v,b]=A.useState([]),w=A.useCallback(async()=>{const[G,O]=await Promise.allSettled([He("/api/agents"),He("/api/sessions")]);G.status==="fulfilled"&&h(G.value),O.status==="fulfilled"&&b(O.value)},[]);A.useEffect(()=>{w()},[w]),Vt(w);const S=[...f].sort((G,O)=>{const P={working:0,available:1,offline:2},Ee=P[Lt(G.state)]-P[Lt(O.state)];if(Ee!==0)return Ee;const B=(O.updatedAt??0)-(G.updatedAt??0);return B!==0?B:G.name.localeCompare(O.name)}),y=[{key:"working",title:"Working",agents:S.filter(G=>Lt(G.state)==="working")},{key:"available",title:"Available",agents:S.filter(G=>Lt(G.state)==="available")},{key:"offline",title:"Offline",agents:S.filter(G=>Lt(G.state)==="offline")}],H=u?f.find(G=>G.id===u)??null:null,{conversationByAgentId:_,sessionByAgentId:k}=Zg(v),Y=f.length>0,$=200,U=440,ce="scout-agents-roster-w",[le,ge]=A.useState(()=>{try{const G=localStorage.getItem(ce);if(G){const O=Number(G);if(O>=$&&O<=U)return O}}catch{}return 280}),ne=A.useRef(!1),he=A.useRef(null);A.useEffect(()=>{try{localStorage.setItem(ce,String(le))}catch{}},[le]);const V=A.useCallback(G=>{G.preventDefault(),ne.current=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const O=he.current?.getBoundingClientRect().left??0,P=B=>{ne.current&&ge(Math.min(U,Math.max($,B.clientX-O)))},Ee=()=>{ne.current=!1,document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",Ee)};document.addEventListener("mousemove",P),document.addEventListener("mouseup",Ee)},[]);return s.jsxs("div",{className:["s-agents-layout","s-agents-browser",Y?"s-agents-layout-split":"",H?"s-agents-browser-selected":""].filter(Boolean).join(" "),style:{"--agents-roster-w":`${le}px`},children:[s.jsx("div",{ref:he,className:"s-agents-list-panel s-agents-browser-list",children:s.jsxs("div",{className:"s-agent-roster",children:[s.jsx("div",{className:"s-agent-roster-header",children:s.jsxs("div",{children:[s.jsx("h2",{className:"s-section-title s-agent-roster-title",children:"Agents"}),s.jsxs("p",{className:"s-agent-roster-copy",children:[f.length," total · ",y[0].agents.length," working · ",y[1].agents.length," available"]})]})}),f.length===0?s.jsxs("div",{className:"s-empty s-agent-roster-empty",children:[s.jsx("p",{children:"No agents"}),s.jsx("p",{children:"Agents appear here when they connect to the broker."})]}):y.filter(G=>G.agents.length>0).map(G=>s.jsx(Jg,{title:G.title,count:G.agents.length,children:G.agents.map(O=>s.jsx(Fg,{agent:O,allAgents:f,selected:O.id===u,onClick:()=>c({view:"agents",agentId:O.id})},O.id))},G.key))]})}),Y&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"s-agents-roster-resize",onMouseDown:V,role:"separator","aria-orientation":"vertical"}),s.jsx("div",{className:"s-agents-detail-panel s-agents-browser-detail",children:o&&H?s.jsx(Gu,{conversationId:o,navigate:c}):H?s.jsx(Wg,{agent:H,allAgents:f,session:k.get(H.id)??null,conversationId:_.get(H.id)??H.conversationId??null,navigate:c}):s.jsx($g,{agents:f})})]})]})}function Fg({agent:c,allAgents:u,selected:o,onClick:f}){const{name:h,qualifier:v}=Lh(c,u),b=Lt(c.state);return s.jsxs("div",{className:`s-agent-list-row s-agent-roster-row${o?" s-agent-list-row-active":""}`,onClick:f,children:[s.jsxs("div",{className:"s-agent-roster-avatar-wrap",children:[s.jsx("div",{className:"s-avatar s-avatar-sm",style:{background:Kt(c.name)},children:c.name[0].toUpperCase()}),s.jsx("span",{className:`s-agent-roster-avatar-status s-agent-roster-avatar-status-${b}`,style:{background:Xl(c.state)}})]}),s.jsx("div",{className:"s-agent-list-body s-agent-roster-row-body",children:s.jsxs("div",{className:"s-agent-roster-row-top",children:[s.jsxs("div",{className:"s-agent-list-header",children:[s.jsx("span",{className:"s-agent-list-name",children:h}),v&&s.jsx("span",{className:"s-agent-list-qualifier",children:v})]}),s.jsx("span",{className:"s-agent-roster-row-time",children:Xg(c.updatedAt)})]})})]})}function Pg(c){switch(c){case"queued":case"working":return"working";case"needs_attention":return"updated";case"failed":return"failed";default:return"completed"}}function e0(c){return c.conversationId?{view:"conversation",conversationId:c.conversationId}:{view:"agents",agentId:c.agentId}}function t0(c){return c.kind==="work_item"&&c.recordId?{view:"work",workId:c.recordId}:c.conversationId?{view:"conversation",conversationId:c.conversationId}:c.agentId?{view:"agents",agentId:c.agentId}:null}function a0(c){return c.recordId?{view:"work",workId:c.recordId}:c.conversationId?{view:"conversation",conversationId:c.conversationId}:c.agentId?{view:"agents",agentId:c.agentId}:null}function ui({title:c,detail:u,count:o}){return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"s-dashboard-panel-header",children:[s.jsx("div",{children:s.jsx("h3",{children:c})}),s.jsx("span",{className:"s-dashboard-count",style:o===0?{opacity:.4}:void 0,children:o})]}),s.jsx("p",{className:"s-dashboard-panel-copy",children:u})]})}function xh({ask:c,navigate:u,section:o}){const f=e0(c),h=c.completedAt?`finished ${Me(c.completedAt)}`:c.startedAt?`started ${Me(c.startedAt)}`:`updated ${Me(c.updatedAt)}`;return s.jsxs("div",{className:`s-work-row s-work-row-clickable s-dashboard-fleet-row s-dashboard-fleet-row-${o}`,"data-status":c.status,onClick:()=>u(f),children:[s.jsxs("div",{className:"s-work-row-header",children:[s.jsxs("div",{className:"s-fleet-row-title-wrap",children:[s.jsx("div",{className:"s-avatar s-avatar-sm",style:{background:Kt(c.agentName??c.agentId)},children:(c.agentName??c.agentId)[0]?.toUpperCase()??"?"}),s.jsxs("div",{className:"s-fleet-row-title-copy",children:[s.jsxs("div",{className:"s-work-row-title-wrap",children:[s.jsx("span",{className:"s-work-row-title",children:c.agentName??c.agentId}),c.harness&&s.jsx("span",{className:"s-badge",children:c.harness})]}),s.jsxs("div",{className:"s-work-row-meta",style:{marginTop:2},children:[s.jsx("span",{className:"s-dot",style:{background:Xl(c.agentState)}}),s.jsx("span",{children:Yn(c.agentState)}),s.jsx("span",{children:h})]})]})]}),s.jsx("span",{className:`s-pill s-pill-${Pg(c.status)}`,children:c.statusLabel})]}),s.jsx("p",{className:"s-work-row-summary",children:Et(c.task)}),c.summary&&s.jsx("p",{className:"s-work-row-summary",style:{marginTop:8},children:Et(c.summary)})]})}function l0({item:c,navigate:u}){const o=t0(c),f=c.kind==="question"?"question":c.state.replace(/_/g," "),h=c.acceptanceState!=="none"?c.acceptanceState.replace(/_/g," "):c.kind==="question"?"awaiting answer":"your move";return s.jsxs("div",{className:`s-work-row s-dashboard-fleet-row s-dashboard-fleet-attention-row${o?" s-work-row-clickable":""}`,onClick:o?()=>u(o):void 0,children:[s.jsxs("div",{className:"s-work-row-header",children:[s.jsx("div",{className:"s-work-row-title-wrap",children:s.jsx("span",{className:"s-work-row-title",children:c.title})}),s.jsx("span",{className:"s-pill s-pill-updated",children:"Needs your input"})]}),s.jsxs("div",{className:"s-work-row-meta",children:[s.jsx("span",{children:c.kind==="question"?"question":"work item"}),c.agentName&&s.jsx("span",{children:c.agentName}),s.jsx("span",{children:f}),s.jsx("span",{children:h}),s.jsx("span",{children:Me(c.updatedAt)})]}),c.summary&&s.jsx("p",{className:"s-work-row-summary",children:Et(c.summary)})]})}function n0({item:c,navigate:u}){const o=a0(c);return s.jsxs("div",{className:`s-dashboard-activity-row${o?" s-dashboard-activity-row-clickable":""}`,onClick:o?()=>u(o):void 0,children:[s.jsx("div",{className:"s-avatar s-avatar-sm",style:{background:Kt(c.actorName??c.agentId??"system")},children:(c.actorName??c.agentId??"S")[0]?.toUpperCase()??"S"}),s.jsxs("div",{className:"s-dashboard-activity-body",children:[s.jsxs("div",{className:"s-dashboard-activity-header",children:[s.jsx("span",{className:"s-dashboard-activity-actor",children:c.actorName??"system"}),s.jsx("span",{className:"s-dashboard-activity-kind",children:Ry(c.kind)}),s.jsx("span",{className:"s-time",children:Me(c.ts)})]}),(c.title||c.summary)&&s.jsx("p",{className:"s-dashboard-activity-summary",children:Et(c.title??c.summary??"")}),c.title&&c.summary&&s.jsx("p",{className:"s-dashboard-activity-note",children:Et(c.summary)})]})]})}function s0({navigate:c}){const[u,o]=A.useState(null),f=A.useCallback(async()=>{try{o(await He("/api/fleet"))}catch{o(null)}},[]);A.useEffect(()=>{f()},[f]),Vt(f);const h=u?.activeAsks??[],v=u?.recentCompleted??[],b=u?.needsAttention??[],w=u?.activity??[],S=b.length>0?`${b.length} item${b.length===1?" is":"s are"} waiting on you. Clear ${b.length===1?"it":"those"} first, then monitor the rest of the queue.`:h.length>0?`${h.length} ask${h.length===1?" is":"s are"} currently in flight. The queue is clear of interruptions.`:v.length>0?"Nothing is actively running right now. Recent finishes are ready for review.":"No asks have moved through the fleet yet. Start work and this becomes the operations board.";return s.jsxs("div",{className:"s-home s-dashboard-screen s-dashboard-fleet",children:[s.jsx("div",{className:"s-dashboard-hero s-dashboard-hero-fleet",children:s.jsxs("div",{className:"s-dashboard-hero-copy",children:[s.jsxs("div",{className:"s-dashboard-hero-head",children:[s.jsx("h2",{children:"Fleet"}),u&&s.jsxs("span",{className:"s-time",children:["Updated ",Me(u.generatedAt)]})]}),s.jsx("p",{children:S}),s.jsxs("div",{className:"s-dashboard-summary-grid",children:[s.jsxs("div",{className:`s-dashboard-summary-card${(u?.totals.needsAttention??0)>0?" s-dashboard-summary-card-attention":""}`,children:[s.jsx("div",{className:"s-dashboard-summary-label",children:"Needs input"}),s.jsx("div",{className:"s-dashboard-summary-value",children:u?.totals.needsAttention??0}),s.jsx("div",{className:"s-dashboard-summary-meta",children:"Questions, reviews, or decisions waiting on you"})]}),s.jsxs("div",{className:"s-dashboard-summary-card",children:[s.jsx("div",{className:"s-dashboard-summary-label",children:"Active asks"}),s.jsx("div",{className:"s-dashboard-summary-value",children:u?.totals.active??0}),s.jsx("div",{className:"s-dashboard-summary-meta",children:"Currently in flight across the fleet"})]}),s.jsxs("div",{className:`s-dashboard-summary-card${(u?.totals.recentCompleted??0)>0?" s-dashboard-summary-card-finished":""}`,children:[s.jsx("div",{className:"s-dashboard-summary-label",children:"Finished"}),s.jsx("div",{className:"s-dashboard-summary-value",children:u?.totals.recentCompleted??0}),s.jsx("div",{className:"s-dashboard-summary-meta",children:"Recent completions and failures to review"})]}),s.jsxs("div",{className:"s-dashboard-summary-card",children:[s.jsx("div",{className:"s-dashboard-summary-label",children:"Activity"}),s.jsx("div",{className:"s-dashboard-summary-value",children:u?.totals.activity??0}),s.jsx("div",{className:"s-dashboard-summary-meta",children:"Recent events across the fleet"})]})]})]})}),s.jsxs("div",{className:"s-dashboard-fleet-stack",children:[s.jsxs("section",{className:`s-dashboard-panel${b.length>0?" s-dashboard-panel-attention":""}`,children:[s.jsx(ui,{title:"Needs your input",detail:"Handle interruptions, pending answers, and review requests first.",count:b.length}),b.length===0?s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:"Nothing is waiting on you"}),s.jsx("p",{children:"When agents ask a question or a work item needs review, it will land here first."})]}):s.jsx("div",{className:"s-work-list",children:b.map(y=>s.jsx(l0,{item:y,navigate:c},y.recordId))})]}),s.jsxs("div",{className:"s-dashboard-fleet-columns",children:[s.jsxs("section",{className:"s-dashboard-panel s-dashboard-panel-active",children:[s.jsx(ui,{title:"Active asks",detail:"The asks still in flight across the fleet.",count:h.length}),h.length===0?s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:"No active asks"}),s.jsx("p",{children:"New agent work will appear here while it is still in progress."})]}):s.jsx("div",{className:"s-work-list",children:h.map(y=>s.jsx(xh,{ask:y,navigate:c,section:"active"},y.invocationId))})]}),s.jsxs("section",{className:"s-dashboard-panel s-dashboard-panel-finished",children:[s.jsx(ui,{title:"Recent finishes",detail:"Review completions and failures once the active queue is stable.",count:v.length}),v.length===0?s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:"No recent finishes"}),s.jsx("p",{children:"Completed asks and failures will show up here once they settle."})]}):s.jsx("div",{className:"s-work-list",children:v.map(y=>s.jsx(xh,{ask:y,navigate:c,section:"finished"},y.invocationId))})]})]}),s.jsxs("section",{className:"s-dashboard-panel s-dashboard-panel-activity",children:[s.jsx(ui,{title:"Recent activity",detail:"The broader event stream behind the queue.",count:w.length}),w.length===0?s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:"No recent fleet activity"}),s.jsx("p",{children:"Messages, asks, and other agent activity will stream here."})]}):s.jsx("div",{className:"s-dashboard-activity-feed",children:w.slice(0,20).map(y=>s.jsx(n0,{item:y,navigate:c},y.id))})]})]})]})}const i0=[[/```[\s\S]*?```/g," "],[/`([^`]+)`/g,"$1"],[/!\[([^\]]*)\]\([^)]+\)/g,"$1"],[/\[([^\]]+)\]\([^)]+\)/g,"$1"],[/\*\*(.+?)\*\*/g,"$1"],[/__(.+?)__/g,"$1"],[new RegExp("(?<!\\*)\\*(?!\\*)([^*\\n]+)\\*(?!\\*)","g"),"$1"],[new RegExp("(?<!_)_(?!_)([^_\\n]+)_(?!_)","g"),"$1"],[/~~(.+?)~~/g,"$1"],[/^#{1,6}\s+/gm,""],[/^>\s?/gm,""],[/^[-*+]\s+/gm,""],[/^\d+\.\s+/gm,""],[/^---+\s*$/gm,""],[/^\s*\|.*\|\s*$/gm,""]];function c0(c,u=140){if(!c)return"";let o=c;for(const[f,h]of i0)o=o.replace(f,h);return o=o.replace(/\s+/g," ").trim(),o.length>u&&(o=`${o.slice(0,u-1)}…`),o}const Yh="scout:sessions:lastViewed";function Qh(){if(typeof localStorage>"u")return{};try{const c=localStorage.getItem(Yh);if(!c)return{};const u=JSON.parse(c);return u&&typeof u=="object"?u:{}}catch{return{}}}function u0(c,u=Date.now()){const o=Qh();o[c]=u;try{localStorage.setItem(Yh,JSON.stringify(o))}catch{}return o}function Hu(c,u,o){return c?c>(o[u]??0):!1}const Nh={direct:"DM",channel:"Channel",group_direct:"Group",thread:"Thread"},r0=new Set(["all","direct","channel","group_direct","thread"]);function Vu(c){return typeof window>"u"?"":new URLSearchParams(window.location.search).get(c)??""}function o0(c){if(typeof window>"u")return;const u=new URLSearchParams(window.location.search);for(const[f,h]of Object.entries(c))h===null||h===""?u.delete(f):u.set(f,h);const o=u.toString();window.history.replaceState(null,"",window.location.pathname+(o?`?${o}`:""))}function f0(){const c=Vu("view");return r0.has(c)?c:"all"}function d0(c){return c.kind==="direct"&&c.agentName?c.agentName:c.title.replace(/\s*<>\s*/g," · ")}function h0(c){if(!c)return null;const u=c.replace(/[\\/]+$/,"");return u?u.split(/[\\/]/).filter(Boolean).at(-1)??u:null}function m0(c){if(typeof c!="number"||!Number.isFinite(c)||c<=0)return"";const u=c<1e12?c*1e3:c;return new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(u)}function v0({navigate:c}){const[u,o]=A.useState([]),[f,h]=A.useState(()=>f0()),[v,b]=A.useState(()=>Vu("q")),[w,S]=A.useState(()=>Vu("unread")==="1"),[y,H]=A.useState(()=>Qh()),[_,k]=A.useState(0),[Y,$]=A.useState(null),U=A.useRef(null),ce=A.useRef(null),le=A.useCallback(async()=>{$(null);try{const B=await He("/api/sessions");o(B.sort((I,ie)=>(ie.lastMessageAt??0)-(I.lastMessageAt??0)))}catch(B){$(B instanceof Error?B.message:String(B))}},[]);A.useEffect(()=>{le()},[le]),Vt(le);const[,ge]=A.useState(0);A.useEffect(()=>{const B=setInterval(()=>ge(I=>I+1),15e3);return()=>clearInterval(B)},[]),A.useEffect(()=>{o0({view:f==="all"?null:f,q:v.trim()||null,unread:w?"1":null})},[f,v,w]);const ne=A.useMemo(()=>Array.from(new Set(u.map(B=>B.kind))),[u]),he=A.useMemo(()=>{const B={all:u.length};for(const I of u)B[I.kind]=(B[I.kind]??0)+1;return B},[u]),V=A.useMemo(()=>u.filter(B=>Hu(B.lastMessageAt,B.id,y)).length,[u,y]),G=A.useMemo(()=>{const B=v.trim().toLowerCase();return u.filter(I=>!(f!=="all"&&I.kind!==f||w&&!Hu(I.lastMessageAt,I.id,y)||B&&![I.title,I.preview,I.agentName??"",I.harness??"",...I.participantIds].join(" ").toLowerCase().includes(B)))},[u,f,w,y,v]);A.useEffect(()=>{_>=G.length&&k(Math.max(0,G.length-1))},[G.length,_]);const O=A.useCallback(B=>{H(u0(B.id)),c({view:"conversation",conversationId:B.id})},[c]);A.useEffect(()=>{function B(I){const ie=I.target,Pe=ie instanceof HTMLInputElement||ie instanceof HTMLTextAreaElement||ie instanceof HTMLElement&&ie.isContentEditable;if((I.metaKey||I.ctrlKey)&&I.key.toLowerCase()==="k"){I.preventDefault(),U.current?.focus(),U.current?.select();return}if(Pe){I.key==="Escape"&&ie===U.current&&U.current?.blur();return}if(I.key==="/"){I.preventDefault(),U.current?.focus();return}if(I.key==="j"||I.key==="ArrowDown"){I.preventDefault(),k(pe=>Math.min(G.length-1,pe+1));return}if(I.key==="k"||I.key==="ArrowUp"){I.preventDefault(),k(pe=>Math.max(0,pe-1));return}if(I.key==="Enter"||I.key==="o"){const pe=G[_];pe&&(I.preventDefault(),O(pe))}}return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[G,_,O]),A.useEffect(()=>{ce.current?.querySelector(`[data-idx="${_}"]`)?.scrollIntoView({block:"nearest"})},[_]);const P=ne.length>1,Ee=w?V>0?`${V} unread threads need attention.`:"No unread threads right now.":G.length===u.length?"Recent activity across every conversation.":`${G.length} conversations match the current filters.`;return s.jsxs("div",{className:"s-sessions-screen s-inbox-thread-redesign",children:[s.jsx("section",{className:"s-thread-overview",children:s.jsxs("div",{className:"s-thread-overview-copy",children:[s.jsxs("div",{className:"s-sessions-header s-thread-overview-heading",children:[s.jsx("h2",{className:"s-page-title",children:"Sessions"}),s.jsxs("span",{className:"s-meta s-tabular",children:[G.length," of ",u.length]})]}),s.jsx("p",{className:"s-thread-overview-summary",children:Ee})]})}),s.jsxs("section",{className:"s-thread-panel s-thread-panel-list",children:[s.jsxs("div",{className:"s-sessions-toolbar",children:[P&&s.jsxs("div",{className:"s-seg",role:"tablist","aria-label":"Session kind",children:[s.jsx(jh,{label:"All",count:he.all,pressed:f==="all",onClick:()=>h("all")}),ne.map(B=>s.jsx(jh,{label:Nh[B]??B,count:he[B]??0,pressed:f===B,onClick:()=>h(B)},B))]}),s.jsxs("button",{type:"button",className:`s-seg-standalone${w?" is-on":""}`,onClick:()=>S(B=>!B),"aria-pressed":w,title:"Show unread only",children:[s.jsx("span",{className:"s-dot s-dot-sm","aria-hidden":"true"}),s.jsx("span",{children:"Unread"}),V>0&&s.jsx("span",{className:"s-seg-count",children:V})]}),s.jsxs("div",{className:"s-search",children:[s.jsx("input",{ref:U,type:"text",className:"s-search-input",placeholder:"Search conversations…",value:v,onChange:B=>b(B.target.value),onKeyDown:B=>{B.key==="Escape"&&(v?b(""):B.target.blur())}}),s.jsx("kbd",{className:"s-search-kbd",children:"⌘K"})]})]}),Y&&s.jsx("p",{className:"s-error",children:Y}),G.length===0?s.jsxs("div",{className:"s-empty s-thread-empty-state",children:[s.jsx("p",{children:v||w?"No matches":"No conversations"}),s.jsx("p",{children:v?"Try a different search term.":w?"You're all caught up.":"Conversations appear here when agents communicate."})]}):s.jsx("div",{className:"s-inbox",ref:ce,role:"listbox","aria-label":"Sessions",children:G.map((B,I)=>{const ie=d0(B),Pe=(B.agentName??ie)[0]?.toUpperCase()??"?",pe=Hu(B.lastMessageAt,B.id,y),we=I===_,z=c0(B.preview,160),Q=Nh[B.kind]??B.kind,F=h0(B.workspaceRoot);return s.jsxs("div",{"data-idx":I,"data-unread":pe?"true":"false","data-selected":we?"true":"false",className:"s-inbox-row",role:"option","aria-selected":we,tabIndex:we?0:-1,onClick:()=>{k(I),O(B)},onMouseEnter:()=>k(I),children:[s.jsxs("div",{className:"s-session-avatar-wrap",children:[s.jsx("div",{className:"s-avatar",style:{background:Kt(B.agentName??ie)},"aria-hidden":"true",children:Pe}),pe&&s.jsx("span",{className:"s-session-unread-dot","aria-hidden":"true"})]}),s.jsxs("div",{className:"s-inbox-body",children:[s.jsxs("div",{className:"s-inbox-header",children:[s.jsx("div",{className:"s-session-heading",children:s.jsx("span",{className:"s-inbox-name",title:ie,children:ie})}),s.jsx("div",{className:"s-session-trailing",children:B.lastMessageAt&&s.jsx("span",{className:"s-inbox-time s-tabular",title:m0(B.lastMessageAt),children:Me(B.lastMessageAt)})})]}),z?s.jsx("p",{className:"s-inbox-preview",children:z}):s.jsx("p",{className:"s-inbox-preview s-inbox-preview-empty",children:"No messages yet"}),s.jsxs("div",{className:"s-session-meta-row","aria-label":"Conversation details",children:[s.jsx("span",{className:"s-session-pill",children:Q}),F&&s.jsx("span",{className:"s-session-pill",title:B.workspaceRoot??void 0,children:F}),B.currentBranch&&s.jsx("span",{className:"s-session-pill",title:B.currentBranch,children:B.currentBranch})]})]})]},B.id)})})]})]})}function jh({label:c,count:u,pressed:o,onClick:f}){return s.jsxs("button",{type:"button",className:"s-seg-btn","aria-pressed":o,onClick:f,children:[s.jsx("span",{children:c}),s.jsx("span",{className:"s-seg-count",children:u})]})}const y0="modulepreload",g0=function(c){return"/"+c},Sh={},p0=function(u,o,f){let h=Promise.resolve();if(o&&o.length>0){let S=function(y){return Promise.all(y.map(H=>Promise.resolve(H).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const b=document.querySelector("meta[property=csp-nonce]"),w=b?.nonce||b?.getAttribute("nonce");h=S(o.map(y=>{if(y=g0(y),y in Sh)return;Sh[y]=!0;const H=y.endsWith(".css"),_=H?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${_}`))return;const k=document.createElement("link");if(k.rel=H?"stylesheet":y0,H||(k.as="script"),k.crossOrigin="",k.href=y,w&&k.setAttribute("nonce",w),document.head.appendChild(k),H)return new Promise((Y,$)=>{k.addEventListener("load",Y),k.addEventListener("error",()=>$(new Error(`Unable to preload CSS for ${y}`)))})}))}function v(b){const w=new Event("vite:preloadError",{cancelable:!0});if(w.payload=b,window.dispatchEvent(w),!w.defaultPrevented)throw b}return h.then(b=>{for(const w of b||[])w.status==="rejected"&&v(w.reason);return u().catch(v)})},b0=A.lazy(()=>p0(()=>import("./arc.es-CehM6B37.js"),[]).then(c=>({default:c.ArcDiagram})));function fi(c){if(!c)return"";const u=c.replace(/^https?:\/\//,"").split("/")[0],[o]=u.split(":");return o.split(".")[0]}function x0(c){return c.brokerUrl?fi(c.brokerUrl):c.hostName?fi(c.hostName):c.id.slice(0,10)}function N0(c,u){return Math.abs(c)>=Math.abs(u)?c>=0?["right","left"]:["left","right"]:u>=0?["bottom","top"]:["top","bottom"]}function j0(c){if(!c.localNode)return null;const u=c.localNode.id,o=Object.values(c.nodes).filter(H=>H.id!==u),f=800,h=300,v=f/2,b=h/2,w={[u]:{x:v,y:b,size:"m"}},S={[u]:{icon:"Database",name:fi(c.localNode.hostName)||c.localNode.name||"broker",subtitle:"this node",color:"violet"}},y=[];if(o.length===0)w.__placeholder={x:v+220,y:b,size:"m"},S.__placeholder={icon:"CircleDashed",name:"No peers yet",subtitle:"awaiting discovery",color:"zinc"},y.push({from:u,to:"__placeholder",fromAnchor:"right",toAnchor:"left",style:"pending"});else{const H=o.length,_=Math.min(170,100+H*10);o.forEach((k,Y)=>{const $=Y/H*Math.PI*2-Math.PI/2,U=Math.round(v+_*Math.cos($)),ce=Math.round(b+_*Math.sin($));w[k.id]={x:U,y:ce,size:"m"},S[k.id]={icon:"Database",name:fi(k.hostName)||k.name||"peer",subtitle:x0(k),color:k.advertiseScope==="mesh"?"emerald":"zinc"};const[le,ge]=N0(U-v,ce-b);y.push({from:u,to:k.id,fromAnchor:le,toAnchor:ge,style:k.advertiseScope==="mesh"?"mesh":"local"})})}return{layout:{width:f,height:h},nodes:w,nodeData:S,connectors:y,connectorStyles:{mesh:{color:"emerald",strokeWidth:2,label:"mesh"},local:{color:"zinc",strokeWidth:1.5},pending:{color:"zinc",strokeWidth:1.5,dashed:!0}}}}function S0({mesh:c}){const u=A.useMemo(()=>j0(c),[c]);return u?s.jsx("div",{className:"s-mesh-topology",children:s.jsx(A.Suspense,{fallback:s.jsx("div",{className:"s-mesh-topology-fallback"}),children:s.jsx(b0,{data:u,className:"s-mesh-topology-canvas",mode:"light",theme:"cool",interactive:!0,showArcToggle:!1,defaultZoom:"fit",maxFitZoom:.95,hoverEffects:{dim:!0,lift:!0,glow:!0,highlightEdges:!0}})})}):null}function A0(c){return c.code==="local_only"?"notice":c.severity==="error"?"error":"warning"}function E0(c){switch(c.code){case"local_only":return"Local only";case"mesh_loopback":return"Unreachable";case"discovery_unconfigured":return"Needs setup";default:return"Offline"}}function w0(c){return c?c.replace(/^https?:\/\//,"").split("/")[0]??c:"Unavailable"}function qu(c){return c==="mesh"?"Mesh visible":c==="local"?"Local only":c||"Not advertised"}function T0(c){return!c.health.reachable||c.issues.some(u=>u.severity==="error")?"danger":c.issues.length>0?"warning":"success"}function z0(c){return c.health.reachable?c.issues.some(u=>u.severity==="error")?"Degraded":c.issues.length>0?"Needs attention":"Healthy":"Broker unreachable"}function M0({issue:c}){const u=A0(c);return s.jsxs("article",{className:`sys-issue-card sys-issue-card-${u}`,children:[s.jsxs("div",{className:"sys-issue-head",children:[s.jsx("h3",{className:"sys-issue-title",children:c.title}),s.jsx("span",{className:`sys-chip sys-chip-${u==="error"?"failed":u}`,children:E0(c)})]}),s.jsx("p",{className:"sys-issue-body",children:c.summary}),(c.action||c.actionCommand)&&s.jsxs("div",{className:"sys-issue-action",children:[c.actionCommand&&s.jsx("code",{className:"sys-code-inline",children:c.actionCommand}),c.action&&s.jsx("span",{children:c.action})]})]})}function _0({navigate:c}){const[u,o]=A.useState(null),[f,h]=A.useState(!0),[v,b]=A.useState(!1),[w,S]=A.useState(null),[y,H]=A.useState(null),_=A.useRef(null),k=A.useRef(0);A.useEffect(()=>{_.current=u},[u]);const Y=A.useCallback(async(O="initial")=>{const P=++k.current;!(_.current!==null)&&O!=="background"?(h(!0),S(null)):b(!0);try{const B=await He("/api/mesh");if(P!==k.current)return;o(B),S(null),H(Date.now())}catch(B){if(P!==k.current)return;S(B instanceof Error?B.message:String(B))}finally{P===k.current&&(h(!1),b(!1))}},[]);A.useEffect(()=>{Y("initial")},[Y]),A.useEffect(()=>{const O=setInterval(()=>{Y("background")},1e4);return()=>clearInterval(O)},[Y]);const $=u?T0(u):"warning",U=u?z0(u):"Loading",ce=u?Object.values(u.nodes):[],le=u?.localNode?.id,ge=u?.localNode?.hostName?.toLowerCase(),ne=ce.filter(O=>O.id!==le),he=(u?.tailscale.peers??[]).filter(O=>{const P=O.hostName?.toLowerCase();return P?!(P==="localhost"||ge&&(P===ge||P.startsWith(`${ge.split(".")[0]}.`))):!0}),V=u?u.issues.length>0?u.issues:u.warnings.map((O,P)=>({code:`fallback-${P}`,severity:"warning",title:"Mesh notice",summary:O,action:null,actionCommand:null})):[],G=A.useMemo(()=>u?[{label:"Broker",value:u.health.reachable?"Reachable":"Unavailable",detail:u.health.error??w0(u.brokerUrl)},{label:"Visibility",value:qu(u.localNode?.advertiseScope),detail:u.localNode?.hostName??"Local registration unavailable"},{label:"Mesh peers",value:`${ne.length}`,detail:ne.length>0?"Remote brokers in this mesh":"No remote brokers discovered"},{label:"Tailnet",value:u.tailscale.available?`${he.filter(O=>O.online).length}/${he.length}`:"Unavailable",detail:u.tailscale.available?"Online peers / visible peers":"Tailscale peers not detected"}]:[],[he,u,ne.length]);return s.jsxs("div",{className:"sys-surface-page",children:[s.jsxs("div",{className:"sys-page-head",children:[s.jsxs("div",{className:"sys-page-title-group",children:[s.jsx("h2",{className:"sys-page-title",children:"Mesh"}),s.jsx("p",{className:"sys-page-subtitle",children:"Broker reachability, discovery posture, and peer visibility."})]}),s.jsxs("div",{className:"sys-page-actions",children:[s.jsx("span",{className:`sys-chip sys-chip-${$}`,children:U}),s.jsx("div",{className:"sys-sync-note",children:f?"Loading system snapshot...":w&&u?`Showing last confirmed snapshot from ${y?Me(y):"earlier"}`:y?`Confirmed ${Me(y)}`:"Waiting for first snapshot"}),s.jsx("button",{type:"button",className:"s-btn",disabled:f||v,onClick:()=>{Y("manual")},children:v?"Refreshing...":"Refresh"})]})]}),w&&u&&s.jsxs("div",{className:"sys-banner sys-banner-warning",children:[s.jsx("strong",{children:"Mesh refresh failed."}),s.jsx("span",{children:w})]}),f&&!u&&s.jsxs("div",{className:"sys-panel sys-state-card",children:[s.jsx("h3",{className:"sys-state-title",children:"Loading mesh status"}),s.jsx("p",{className:"sys-state-body",children:"Inspecting broker reachability and peer discovery inputs."})]}),!f&&!u&&w&&s.jsxs("div",{className:"sys-panel sys-state-card sys-state-card-error",children:[s.jsx("h3",{className:"sys-state-title",children:"Mesh status is unavailable"}),s.jsx("p",{className:"sys-state-body",children:w}),s.jsx("div",{className:"sys-inline-actions",children:s.jsx("button",{type:"button",className:"s-btn",onClick:()=>{Y("manual")},children:"Try again"})})]}),u&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sys-stat-grid",children:G.map(O=>s.jsxs("div",{className:"sys-stat-card",children:[s.jsx("span",{className:"sys-stat-label",children:O.label}),s.jsx("strong",{className:"sys-stat-value",children:O.value}),s.jsx("span",{className:"sys-stat-detail",children:O.detail})]},O.label))}),s.jsxs("section",{className:"sys-panel sys-mesh-identity",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Local node"}),s.jsx("p",{className:"sys-section-subtitle",children:"The broker identity other peers can discover and dial."})]})}),u.localNode?s.jsxs("div",{className:"sys-detail-grid",children:[s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Node"}),s.jsx("span",{className:"sys-detail-value",children:u.localNode.name})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Node id"}),s.jsx("code",{className:"sys-detail-value",children:u.localNode.id})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Mesh"}),s.jsx("code",{className:"sys-detail-value",children:u.meshId??"Unassigned"})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Advertise scope"}),s.jsx("span",{className:"sys-detail-value",children:qu(u.localNode.advertiseScope)})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Broker URL"}),s.jsx("code",{className:"sys-detail-value",children:u.localNode.brokerUrl??u.brokerUrl})]}),s.jsxs("div",{className:"sys-detail-card",children:[s.jsx("span",{className:"sys-detail-label",children:"Host"}),s.jsx("span",{className:"sys-detail-value",children:u.localNode.hostName??"Unavailable"})]})]}):s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No local node registration"}),s.jsx("p",{children:"The broker answered health checks, but it has not published a local node record yet."})]})]}),s.jsxs("section",{className:"sys-panel",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Health notices"}),s.jsx("p",{className:"sys-section-subtitle",children:"Warnings and errors from the current broker and discovery snapshot."})]})}),V.length>0?s.jsx("div",{className:"sys-issue-grid",children:V.map((O,P)=>s.jsx(M0,{issue:O},`${O.code}-${P}`))}):s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No active mesh warnings"}),s.jsx("p",{children:"The broker is reachable and discovery inputs look healthy from this page."})]})]}),s.jsxs("section",{className:"sys-panel",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Topology"}),s.jsx("p",{className:"sys-section-subtitle",children:"Current broker relationships inside the visible mesh."})]})}),u.localNode?s.jsx(S0,{mesh:u}):s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"Topology unavailable"}),s.jsx("p",{children:"A local node record is required before the topology view can render."})]})]}),s.jsxs("section",{className:"sys-panel",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Discovered peers"}),s.jsxs("p",{className:"sys-section-subtitle",children:["Remote brokers registered in ",u.meshId??"this mesh","."]})]})}),ne.length===0?s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No remote brokers discovered"}),s.jsx("p",{children:"This can be normal on a single-node setup. If you expect peers, check the health notices above."})]}):s.jsx("div",{className:"sys-list-grid",children:ne.map(O=>s.jsxs("article",{className:"sys-list-card",children:[s.jsxs("div",{className:"sys-list-card-head",children:[s.jsx("h3",{className:"sys-list-card-title",children:O.name}),s.jsx("span",{className:`sys-chip sys-chip-${O.advertiseScope==="mesh"?"success":"neutral"}`,children:qu(O.advertiseScope)})]}),s.jsxs("div",{className:"sys-list-card-detail",children:[s.jsx("span",{className:"sys-detail-label",children:"Node id"}),s.jsx("code",{className:"sys-detail-value",children:O.id})]}),O.brokerUrl&&s.jsxs("div",{className:"sys-list-card-detail",children:[s.jsx("span",{className:"sys-detail-label",children:"Broker"}),s.jsx("code",{className:"sys-detail-value",children:O.brokerUrl})]}),s.jsxs("div",{className:"sys-list-card-detail",children:[s.jsx("span",{className:"sys-detail-label",children:"Last seen"}),s.jsx("span",{className:"sys-detail-value",children:O.lastSeenAt?Me(O.lastSeenAt):"Recently registered"})]})]},O.id))})]}),s.jsxs("section",{className:"sys-panel",children:[s.jsx("div",{className:"sys-section-head",children:s.jsxs("div",{children:[s.jsx("h3",{className:"sys-section-title",children:"Tailnet"}),s.jsx("p",{className:"sys-section-subtitle",children:"External Tailscale peers visible from this machine."})]})}),he.length===0?s.jsxs("div",{className:"sys-list-empty",children:[s.jsx("h3",{children:"No external tailnet peers"}),s.jsx("p",{children:u.tailscale.available?"Only this host is visible in the current tailnet snapshot.":"Tailscale peers were not detected on this machine."})]}):s.jsx("div",{className:"sys-list-grid",children:he.map(O=>s.jsxs("article",{className:"sys-list-card",children:[s.jsxs("div",{className:"sys-list-card-head",children:[s.jsx("h3",{className:"sys-list-card-title",children:O.hostName||O.name}),s.jsx("span",{className:`sys-chip sys-chip-${O.online?"success":"failed"}`,children:O.online?"Online":"Offline"})]}),s.jsxs("div",{className:"sys-list-card-detail",children:[s.jsx("span",{className:"sys-detail-label",children:"Address"}),s.jsx("code",{className:"sys-detail-value",children:O.addresses?.[0]??"Unavailable"})]}),s.jsxs("div",{className:"sys-list-card-detail",children:[s.jsx("span",{className:"sys-detail-label",children:"Platform"}),s.jsx("span",{className:"sys-detail-value",children:O.os??"Unknown"})]})]},O.id))})]})]})]})}const C0={"agent.registered":"registered","agent.online":"came online","agent.offline":"went offline","flight.started":"started task","flight.completed":"completed task","message.sent":"sent message","message.received":"received message","collaboration.ask":"asked a question","collaboration.answer":"answered"};function D0(c){return C0[c]??c.replace(/[._]/g," ")}function R0({agent:c,navigate:u}){return s.jsxs("button",{type:"button",className:"s-dashboard-agent-row",onClick:()=>u({view:"agents",agentId:c.id}),children:[s.jsx("div",{className:"s-avatar s-avatar-xs",style:{background:Kt(c.name)},children:c.name[0]?.toUpperCase()??"?"}),s.jsxs("div",{className:"s-dashboard-agent-copy",children:[s.jsx("span",{className:"s-dashboard-agent-name",children:c.name}),s.jsxs("span",{className:"s-dashboard-agent-meta",children:[s.jsx("span",{className:"s-dot",style:{background:Xl(c.state)}}),Yn(c.state)]})]})]})}function O0({item:c,navigate:u}){const o=c.conversationId?{view:"conversation",conversationId:c.conversationId}:null;return s.jsxs("div",{className:`s-dashboard-activity-row${o?" s-dashboard-activity-row-clickable":""}`,onClick:o?()=>u(o):void 0,children:[s.jsx("div",{className:"s-dashboard-activity-time",children:Me(c.ts)}),s.jsxs("div",{className:"s-dashboard-activity-body",children:[s.jsxs("div",{className:"s-dashboard-activity-header",children:[s.jsx("span",{className:"s-dashboard-activity-actor",children:c.actorName??"system"}),s.jsx("span",{className:"s-dashboard-activity-kind",children:D0(c.kind)})]}),(c.title||c.summary)&&s.jsx("p",{className:"s-dashboard-activity-summary",children:Et(c.title??c.summary??"")})]})]})}function U0({agents:c,navigate:u}){const[o,f]=A.useState(null),[h,v]=A.useState([]),b=A.useCallback(async()=>{try{const[Y,$]=await Promise.all([He("/api/shell-state"),He("/api/activity")]);f(Y),v($)}catch{}},[]);A.useEffect(()=>{b()},[b]),Vt(b);const w=o?.runtime,S=w?.brokerReachable??!1,y=c.filter(Y=>oi(Y.state)),H=c.filter(Y=>!oi(Y.state)),_=c.length>0,k=h.slice(0,20);return s.jsxs("div",{className:"s-home s-dashboard-screen",children:[s.jsxs("div",{className:"s-dashboard-body",children:[s.jsxs("main",{className:"s-dashboard-main",children:[s.jsxs("div",{className:"s-dashboard-section-head",children:[s.jsx("h3",{children:"Activity"}),h.length>0&&s.jsx("span",{className:"s-dashboard-count",children:h.length})]}),k.length===0?s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:"No activity yet"}),s.jsx("p",{children:"Events appear here as agents connect and work."})]}):s.jsx("div",{className:"s-dashboard-activity-feed",children:k.map(Y=>s.jsx(O0,{item:Y,navigate:u},Y.id))}),h.length>20&&s.jsx("button",{type:"button",className:"s-dashboard-see-all",onClick:()=>u({view:"activity"}),children:"See all activity"})]}),s.jsxs("aside",{className:"s-dashboard-rail",children:[s.jsxs("div",{className:"s-dashboard-section-head",children:[s.jsx("h3",{children:"Agents"}),c.length>0&&s.jsx("span",{className:"s-dashboard-count",children:c.length})]}),y.length>0?s.jsxs("div",{className:"s-dashboard-roster-block",children:[s.jsx("div",{className:"s-dashboard-roster-label",children:"Online"}),s.jsx("div",{className:"s-dashboard-agent-list",children:y.map(Y=>s.jsx(R0,{agent:Y,navigate:u},Y.id))})]}):s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:_?"All agents offline":"No agents connected"}),s.jsx("p",{children:_?"Agents appear here when they reconnect.":"Connect an agent to see your roster."})]}),H.length>0&&s.jsxs("div",{className:"s-dashboard-roster-block",children:[s.jsx("div",{className:"s-dashboard-roster-label",children:"Standby"}),s.jsx("div",{className:"s-dashboard-chip-row",children:H.map(Y=>s.jsx("button",{type:"button",className:"s-dashboard-chip",onClick:()=>u({view:"agents",agentId:Y.id}),children:Y.name},Y.id))})]})]})]}),s.jsxs("footer",{className:"s-dashboard-statusbar",children:[s.jsxs("span",{className:"s-dashboard-statusbar-item",children:[s.jsx("span",{className:"s-dot",style:{background:S?"var(--green)":"var(--red)"}}),w?.brokerLabel??(S?"Broker healthy":"Broker offline")]}),w?.nodeId&&s.jsx("span",{className:"s-dashboard-statusbar-item s-dashboard-statusbar-mono",children:w.nodeId.length>14?`${w.nodeId.slice(0,10)}…`:w.nodeId}),s.jsxs("span",{className:"s-dashboard-statusbar-item",children:[w?.agentCount??c.length," agent",(w?.agentCount??c.length)===1?"":"s"]}),s.jsxs("span",{className:"s-dashboard-statusbar-item",children:[w?.messageCount??0," msg",(w?.messageCount??0)===1?"":"s"]})]})]})}function k0(c){return c.attention==="interrupt"?"failed":c.state==="done"?"completed":c.attention==="badge"||c.state==="waiting"||c.state==="review"?"updated":"working"}function Lu(c){switch(c){case"review":return"In review";case"waiting":return"Waiting";case"working":return"Working";case"done":return"Done";default:return c.replace(/_/g," ")}}function B0(c){switch(c){case"badge":return"Needs attention";case"interrupt":return"Blocked";default:return null}}function H0(c){switch(c.kind){case"flight_started":return"flight started";case"flight_completed":return c.detailKind?`flight ${c.detailKind}`:"flight ended";case"message":return"message";default:return c.title??c.detailKind??"event"}}function Ah(c){return c.kind==="message"?"message":c.kind==="flight_started"?"flight":c.kind==="flight_completed"?c.detailKind?.includes("fail")?"alert":"done":c.detailKind?.includes("interrupt")||c.detailKind?.includes("block")?"alert":"system"}function Yu({title:c,items:u}){return u.length===0?null:s.jsxs("section",{className:"s-work-fact-card",children:[s.jsx("div",{className:"s-work-fact-card-header",children:s.jsx("div",{className:"s-work-fact-card-title",children:c})}),s.jsx("div",{className:"s-work-fact-card-body",children:u.map(o=>s.jsxs("div",{className:"s-work-fact-row",children:[s.jsx("span",{className:"s-work-fact-label",children:o.label}),s.jsx("span",{className:"s-work-fact-value",children:o.value})]},o.label))})]})}function Eh({label:c,value:u,onClick:o}){return s.jsxs("button",{type:"button",className:"s-work-action-row",onClick:o,children:[s.jsx("span",{className:"s-work-action-row-label",children:c}),s.jsx("span",{className:"s-work-action-row-value",children:u})]})}function q0(c){const u=c.split(".");return u[u.length-1]||c}function L0({workId:c,navigate:u}){const[o,f]=A.useState(null),[h,v]=A.useState(null),[b,w]=A.useState(!1),S=A.useCallback(async()=>{v(null);try{const U=await He(`/api/work/${encodeURIComponent(c)}`);f(U)}catch(U){v(U instanceof Error?U.message:String(U)),f(null)}finally{w(!0)}},[c]);if(A.useEffect(()=>{w(!1),S()},[S]),Vt(S),!b)return s.jsxs("div",{children:[s.jsx("button",{type:"button",className:"s-back",onClick:()=>u({view:"inbox"}),children:"← Back"}),s.jsx("div",{className:"s-empty",children:s.jsx("p",{children:"Loading…"})})]});if(!o)return s.jsxs("div",{children:[s.jsx("button",{type:"button",className:"s-back",onClick:()=>u({view:"inbox"}),children:"← Back"}),h&&s.jsx("p",{className:"s-error",children:h}),s.jsx("div",{className:"s-empty",children:s.jsx("p",{children:"Work item not found"})})]});const y=B0(o.attention),H=o.ownerName??o.ownerId??"Unassigned",_=o.nextMoveOwnerName??o.nextMoveOwnerId??"—",k=[{label:"State",value:Lu(o.state)},{label:"Acceptance",value:o.acceptanceState.replace(/_/g," ")},{label:"Phase",value:o.currentPhase},...y?[{label:"Attention",value:y}]:[]],Y=[{label:"Owner",value:H},{label:"Next move",value:_},...o.priority?[{label:"Priority",value:o.priority}]:[],{label:"Conversation",value:o.conversationId?"Attached":"None"}],$=[{label:"Case ID",value:o.id},{label:"Created",value:nl(o.createdAt)},{label:"Updated",value:nl(o.updatedAt)},{label:"Last activity",value:nl(o.lastMeaningfulAt)}];return s.jsxs("div",{className:"s-work-detail s-work-casefile",children:[s.jsxs("div",{className:"s-work-casefile-topbar",children:[s.jsx("button",{type:"button",className:"s-back",onClick:()=>u({view:"inbox"}),children:"← Back"}),s.jsxs("span",{className:"s-work-casefile-record",children:["Case ",q0(o.id)]})]}),h&&s.jsx("p",{className:"s-error",children:h}),s.jsx("section",{className:"s-work-casefile-hero",children:s.jsxs("div",{className:"s-work-casefile-hero-main",children:[s.jsxs("div",{className:"s-work-casefile-title-row",children:[s.jsx("h1",{className:"s-work-casefile-title",children:o.title}),s.jsx("span",{className:`s-pill s-pill-${k0(o)}`,children:o.currentPhase})]}),o.lastMeaningfulSummary&&s.jsx("div",{className:"s-work-casefile-summary",children:Et(o.lastMeaningfulSummary)}),s.jsxs("div",{className:"s-work-casefile-meta",children:[s.jsxs("span",{children:["Updated ",Me(o.updatedAt)]}),s.jsx("span",{children:H}),s.jsx("span",{children:Lu(o.state)}),y&&s.jsx("span",{children:y}),o.priority&&s.jsxs("span",{children:["Priority ",o.priority]})]})]})}),s.jsxs("div",{className:"s-work-casefile-layout",children:[s.jsxs("div",{className:"s-work-casefile-main",children:[s.jsxs("section",{className:"s-work-casefile-section",children:[s.jsx("div",{className:"s-agent-section-heading",children:s.jsx("h2",{className:"s-agent-section-title",children:"Case facts"})}),s.jsxs("div",{className:"s-work-fact-grid",children:[s.jsx(Yu,{title:"Status",items:k}),s.jsx(Yu,{title:"Assignment",items:Y})]})]}),o.activeFlights.length>0&&s.jsxs("section",{className:"s-work-casefile-section",children:[s.jsx("div",{className:"s-agent-section-heading",children:s.jsx("h2",{className:"s-agent-section-title",children:"Flights"})}),s.jsx("div",{className:"s-work-flight-list",children:o.activeFlights.map(U=>s.jsxs("button",{type:"button",className:"s-work-flight-card",onClick:U.conversationId?()=>u({view:"conversation",conversationId:U.conversationId}):void 0,disabled:!U.conversationId,children:[s.jsxs("div",{className:"s-work-flight-card-header",children:[s.jsx("span",{className:"s-work-flight-card-title",children:U.agentName??U.agentId}),s.jsx("span",{className:"s-pill s-pill-working",children:U.state})]}),s.jsxs("div",{className:"s-work-flight-card-meta",children:[s.jsx("span",{children:U.startedAt?`Started ${Me(U.startedAt)}`:"Start time unavailable"}),U.completedAt&&s.jsxs("span",{children:["Completed ",Me(U.completedAt)]})]}),U.summary&&s.jsx("div",{className:"s-work-flight-card-copy",children:U.summary})]},U.id))})]}),o.childWork.length>0&&s.jsxs("section",{className:"s-work-casefile-section",children:[s.jsx("div",{className:"s-agent-section-heading",children:s.jsx("h2",{className:"s-agent-section-title",children:"Child work"})}),s.jsx("div",{className:"s-work-related-list",children:o.childWork.map(U=>s.jsxs("button",{type:"button",className:"s-work-related-card",onClick:()=>u({view:"work",workId:U.id}),children:[s.jsxs("div",{className:"s-work-related-card-header",children:[s.jsx("span",{className:"s-work-related-card-title",children:U.title}),s.jsx("span",{className:`s-pill s-pill-${U.attention==="interrupt"?"failed":"updated"}`,children:U.currentPhase})]}),s.jsxs("div",{className:"s-work-related-card-meta",children:[s.jsx("span",{children:U.ownerName??U.ownerId??"Unassigned"}),s.jsx("span",{children:Lu(U.state)}),s.jsx("span",{children:Me(U.lastMeaningfulAt)})]}),U.lastMeaningfulSummary&&s.jsx("div",{className:"s-work-related-card-copy",children:Et(U.lastMeaningfulSummary)})]},U.id))})]}),s.jsxs("section",{className:"s-work-casefile-section",children:[s.jsx("div",{className:"s-agent-section-heading",children:s.jsx("h2",{className:"s-agent-section-title",children:"Timeline"})}),o.timeline.length===0?s.jsxs("div",{className:"s-empty",children:[s.jsx("p",{children:"No activity yet."}),s.jsx("p",{children:"Timeline events will appear once the case receives messages or coordination updates."})]}):s.jsx("div",{className:"s-work-timeline",children:o.timeline.map(U=>s.jsxs("button",{type:"button",className:`s-work-timeline-entry${U.conversationId?" s-work-timeline-entry-clickable":""}`,onClick:U.conversationId?()=>u({view:"conversation",conversationId:U.conversationId}):void 0,disabled:!U.conversationId,children:[s.jsx("span",{className:`s-work-timeline-marker s-work-timeline-marker-${Ah(U)}`}),s.jsxs("div",{className:"s-work-timeline-content",children:[s.jsxs("div",{className:"s-work-timeline-header",children:[s.jsx("span",{className:"s-work-timeline-time",children:Me(U.at)}),s.jsx("span",{className:`s-work-timeline-kind s-work-timeline-kind-${Ah(U)}`,children:H0(U)})]}),s.jsx("div",{className:"s-work-timeline-actor",children:U.actorName??"system"}),U.title&&s.jsx("div",{className:"s-work-timeline-title",children:U.title}),U.summary&&s.jsx("div",{className:"s-work-timeline-summary",children:Et(U.summary)}),s.jsx("div",{className:"s-work-timeline-stamp",children:nl(U.at)})]})]},U.id))})]})]}),s.jsxs("aside",{className:"s-work-casefile-side",children:[s.jsx(Yu,{title:"Record",items:$}),s.jsxs("section",{className:"s-work-fact-card",children:[s.jsx("div",{className:"s-work-fact-card-header",children:s.jsx("div",{className:"s-work-fact-card-title",children:"Links"})}),s.jsxs("div",{className:"s-work-action-list",children:[o.conversationId?s.jsx(Eh,{label:"Conversation",value:"Open thread",onClick:()=>u({view:"conversation",conversationId:o.conversationId})}):s.jsx("div",{className:"s-work-action-list-empty",children:"No conversation attached."}),o.parentId&&o.parentTitle?s.jsx(Eh,{label:"Parent",value:o.parentTitle,onClick:()=>u({view:"work",workId:o.parentId})}):s.jsx("div",{className:"s-work-action-list-empty",children:"No parent work item."})]})]})]})]})]})}function Y0(){return s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),s.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]})}function Q0(){return s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"}),s.jsx("circle",{cx:"9",cy:"7",r:"4"}),s.jsx("path",{d:"M23 21v-2a4 4 0 0 0-3-3.87"}),s.jsx("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]})}function G0(){return s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("circle",{cx:"12",cy:"4",r:"2"}),s.jsx("circle",{cx:"4",cy:"12",r:"2"}),s.jsx("circle",{cx:"20",cy:"12",r:"2"}),s.jsx("circle",{cx:"12",cy:"20",r:"2"}),s.jsx("path",{d:"M12 6v3"}),s.jsx("path",{d:"M6 12h3"}),s.jsx("path",{d:"M15 12h3"}),s.jsx("path",{d:"M12 15v3"})]})}function X0(){return s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}function Z0(){return s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})})}function V0(){return s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),s.jsx("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})]})}function K0(){return s.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"3"}),s.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})}function J0({route:c,navigate:u,agents:o,messages:f}){switch(c.view){case"conversation":return s.jsx(Gu,{conversationId:c.conversationId,navigate:u});case"agent-info":return s.jsx(qg,{conversationId:c.conversationId,navigate:u});case"settings":return s.jsx(zg,{navigate:u});case"agents":return s.jsx(Ig,{navigate:u,selectedAgentId:c.agentId,conversationId:c.conversationId});case"fleet":return s.jsx(s0,{navigate:u});case"sessions":return c.sessionId?s.jsx(Gu,{conversationId:c.sessionId,navigate:u}):s.jsx(v0,{navigate:u});case"mesh":return s.jsx(_0,{navigate:u});case"activity":return s.jsx(kg,{navigate:u});case"work":return s.jsx(L0,{workId:c.workId,navigate:u});default:return s.jsx(U0,{agents:o,messages:f,navigate:u})}}const Ku=140,Ju=400,Gh="scout-sidebar-w";function $0(){try{const c=localStorage.getItem(Gh);if(c){const u=Number(c);if(u>=Ku&&u<=Ju)return u}}catch{}return 280}function W0(){const{route:c,navigate:u}=zy(),[o,f]=A.useState($0),h=A.useRef(!1);A.useEffect(()=>{document.documentElement.style.setProperty("--sidebar-w",`${o}px`);try{localStorage.setItem(Gh,String(o))}catch{}},[o]);const v=A.useCallback(Y=>{Y.preventDefault(),h.current=!0,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const $=ce=>{if(!h.current)return;const le=Math.min(Ju,Math.max(Ku,ce.clientX));f(le)},U=()=>{h.current=!1,document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",U)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",U)},[]),[b,w]=A.useState([]),[S,y]=A.useState([]),H=A.useCallback(async()=>{const[Y,$]=await Promise.allSettled([He("/api/agents"),He("/api/messages")]);Y.status==="fulfilled"&&w(Y.value),$.status==="fulfilled"&&y($.value)},[]);A.useEffect(()=>{H()},[H]),Vt(H);const _=b.filter(Y=>oi(Y.state)).length,k=c.view!=="inbox"&&c.view!=="sessions"&&c.view!=="mesh";return s.jsxs("div",{className:`s-app${k?" s-app-content-open":""}`,children:[s.jsxs("header",{className:"s-topbar",children:[s.jsx("div",{className:"s-topbar-left",children:s.jsxs("h1",{className:"s-logo",onClick:()=>u({view:"inbox"}),children:[s.jsx("img",{src:"/openscout-icon.png",alt:"",className:"s-logo-mark"}),"Scout"]})}),s.jsx("div",{className:"s-topbar-right",children:s.jsx("button",{type:"button",className:"s-topbar-btn",onClick:()=>u({view:"settings"}),children:"Pair device"})})]}),s.jsxs("div",{className:"s-app-body",children:[s.jsxs("aside",{className:"s-sidebar",children:[s.jsxs("nav",{className:"s-sidebar-nav",children:[s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="inbox"?" s-nav-item-active":""}`,onClick:()=>u({view:"inbox"}),children:[s.jsx(Y0,{}),s.jsx("span",{children:"Home"})]}),s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="agents"?" s-nav-item-active":""}`,onClick:()=>u({view:"agents"}),children:[s.jsx(Q0,{}),s.jsx("span",{children:"Agents"})]}),s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="fleet"?" s-nav-item-active":""}`,onClick:()=>u({view:"fleet"}),children:[s.jsx(G0,{}),s.jsx("span",{children:"Fleet"})]}),s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="sessions"?" s-nav-item-active":""}`,onClick:()=>u({view:"sessions"}),children:[s.jsx(Z0,{}),s.jsx("span",{children:"Sessions"})]}),s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="activity"?" s-nav-item-active":""}`,onClick:()=>u({view:"activity"}),children:[s.jsx(X0,{}),s.jsx("span",{children:"Activity"})]}),s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="mesh"?" s-nav-item-active":""}`,onClick:()=>u({view:"mesh"}),children:[s.jsx(V0,{}),s.jsx("span",{children:"Mesh"})]})]}),s.jsx("div",{className:"s-spacer"}),s.jsx("nav",{className:"s-sidebar-footer",children:s.jsxs("button",{type:"button",className:`s-nav-item${c.view==="settings"?" s-nav-item-active":""}`,onClick:()=>u({view:"settings"}),children:[s.jsx(K0,{}),s.jsx("span",{children:"Settings"})]})})]}),s.jsx("div",{className:"s-sidebar-resize",onMouseDown:v,role:"separator","aria-orientation":"vertical","aria-valuenow":o,"aria-valuemin":Ku,"aria-valuemax":Ju}),s.jsx("main",{className:"s-content",children:s.jsx(J0,{route:c,navigate:u,agents:b,messages:S})})]}),s.jsxs("footer",{className:"s-statusbar",children:[s.jsx("div",{className:"s-statusbar-left",children:s.jsxs("span",{className:"s-statusbar-item",children:[s.jsx("span",{className:"s-dot",style:{background:b.length>0?"var(--green)":"var(--dim)"}}),b.length>0?"Online":"Offline"]})}),s.jsxs("div",{className:"s-statusbar-right",children:[s.jsxs("span",{className:"s-statusbar-item",children:[_,"/",b.length," agents"]}),s.jsx("span",{className:"s-statusbar-item s-statusbar-time",children:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}),s.jsx("button",{type:"button",className:"s-statusbar-link",onClick:()=>u({view:"activity"}),children:"Logs"})]})]})]})}const Xh=document.getElementById("root");if(!Xh)throw new Error("missing #root");wy.createRoot(Xh).render(s.jsx(A.StrictMode,{children:s.jsx(W0,{})}));export{I0 as F,by as f,s as j,A as r};
|