@ours.network/fleet 0.15.1 → 0.15.4
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 +49 -13
- package/dist/application/fleet-query-service.js +3 -0
- package/dist/application/model-catalog.d.ts +20 -0
- package/dist/application/model-catalog.js +57 -0
- package/dist/application/role-creation-service.d.ts +7 -0
- package/dist/application/role-creation-service.js +21 -4
- package/dist/application/role-removal-service.d.ts +32 -0
- package/dist/application/role-removal-service.js +87 -0
- package/dist/application/role-repository.js +13 -1
- package/dist/application/session-control.d.ts +74 -0
- package/dist/application/session-control.js +66 -1
- package/dist/application/types.d.ts +18 -0
- package/dist/briefing.js +21 -1
- package/dist/cli.js +39 -7
- package/dist/config.d.ts +4 -1
- package/dist/config.js +3 -2
- package/dist/creation.d.ts +6 -3
- package/dist/creation.js +5 -1
- package/dist/docs.d.ts +1 -1
- package/dist/docs.js +47 -11
- package/dist/fleet-proxy.d.ts +25 -0
- package/dist/fleet-proxy.js +38 -0
- package/dist/harness/claude-code.js +20 -3
- package/dist/harness/codex.js +14 -2
- package/dist/harness/types.d.ts +6 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/owner-channel/channel.d.ts +13 -0
- package/dist/owner-channel/channel.js +191 -9
- package/dist/owner-channel/state.d.ts +7 -1
- package/dist/owner-channel/state.js +41 -4
- package/dist/permissions.d.ts +5 -0
- package/dist/permissions.js +7 -0
- package/dist/runner.d.ts +2 -0
- package/dist/runner.js +86 -2
- package/dist/session/acp.d.ts +61 -1
- package/dist/session/acp.js +398 -20
- package/dist/session/arbiter.d.ts +10 -1
- package/dist/session/arbiter.js +24 -0
- package/dist/session/control.d.ts +33 -2
- package/dist/session/control.js +158 -5
- package/dist/session/conversation-normalizer.d.ts +34 -0
- package/dist/session/conversation-normalizer.js +356 -0
- package/dist/session/conversation-store.d.ts +88 -0
- package/dist/session/conversation-store.js +347 -0
- package/dist/session/conversation-types.d.ts +274 -0
- package/dist/session/conversation-types.js +1 -0
- package/dist/session/types.d.ts +40 -0
- package/dist/spawn.d.ts +6 -1
- package/dist/spawn.js +23 -16
- package/dist/web/auth.d.ts +1 -1
- package/dist/web/fleet-config-service.d.ts +47 -0
- package/dist/web/fleet-config-service.js +204 -0
- package/dist/web/runtime.js +14 -1
- package/dist/web/server.d.ts +6 -0
- package/dist/web/server.js +181 -9
- package/dist/web/topology.d.ts +31 -0
- package/dist/web/topology.js +61 -0
- package/dist/web-app/assets/{TerminalView-DMoT8udI.js → TerminalView-hZpyUFY_.js} +1 -1
- package/dist/web-app/assets/index-COg4Azq1.css +1 -0
- package/dist/web-app/assets/index-Cde9auW0.js +10 -0
- package/dist/web-app/index.html +2 -2
- package/package.json +1 -1
- package/dist/web-app/assets/index-B-jtLAkp.css +0 -1
- package/dist/web-app/assets/index-B6T8JLSd.js +0 -9
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))o(m);new MutationObserver(m=>{for(const g of m)if(g.type==="childList")for(const E of g.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&o(E)}).observe(document,{childList:!0,subtree:!0});function r(m){const g={};return m.integrity&&(g.integrity=m.integrity),m.referrerPolicy&&(g.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?g.credentials="include":m.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function o(m){if(m.ep)return;m.ep=!0;const g=r(m);fetch(m.href,g)}})();var ds={exports:{}},En={};var Nd;function mv(){if(Nd)return En;Nd=1;var s=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function r(o,m,g){var E=null;if(g!==void 0&&(E=""+g),m.key!==void 0&&(E=""+m.key),"key"in m){g={};for(var x in m)x!=="key"&&(g[x]=m[x])}else g=m;return m=g.ref,{$$typeof:s,type:o,key:E,ref:m!==void 0?m:null,props:g}}return En.Fragment=d,En.jsx=r,En.jsxs=r,En}var Ed;function vv(){return Ed||(Ed=1,ds.exports=mv()),ds.exports}var u=vv(),hs={exports:{}},te={};var Td;function gv(){if(Td)return te;Td=1;var s=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),C=Symbol.iterator;function Q(y){return y===null||typeof y!="object"?null:(y=C&&y[C]||y["@@iterator"],typeof y=="function"?y:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,ie={};function k(y,b,q){this.props=y,this.context=b,this.refs=ie,this.updater=q||P}k.prototype.isReactComponent={},k.prototype.setState=function(y,b){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,b,"setState")},k.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function _e(){}_e.prototype=k.prototype;function be(y,b,q){this.props=y,this.context=b,this.refs=ie,this.updater=q||P}var A=be.prototype=new _e;A.constructor=be,X(A,k.prototype),A.isPureReactComponent=!0;var W=Array.isArray;function ee(){}var F={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function V(y,b,q){var w=q.ref;return{$$typeof:s,type:y,key:b,ref:w!==void 0?w:null,props:q}}function se(y,b){return V(y.type,b,y.props)}function ye(y){return typeof y=="object"&&y!==null&&y.$$typeof===s}function ze(y){var b={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(q){return b[q]})}var Xe=/\/+/g;function Le(y,b){return typeof y=="object"&&y!==null&&y.key!=null?ze(""+y.key):b.toString(36)}function Ie(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(ee,ee):(y.status="pending",y.then(function(b){y.status==="pending"&&(y.status="fulfilled",y.value=b)},function(b){y.status==="pending"&&(y.status="rejected",y.reason=b)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function p(y,b,q,w,Z){var ae=typeof y;(ae==="undefined"||ae==="boolean")&&(y=null);var Se=!1;if(y===null)Se=!0;else switch(ae){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(y.$$typeof){case s:case d:Se=!0;break;case Y:return Se=y._init,p(Se(y._payload),b,q,w,Z)}}if(Se)return Z=Z(y),Se=w===""?"."+Le(y,0):w,W(Z)?(q="",Se!=null&&(q=Se.replace(Xe,"$&/")+"/"),p(Z,b,q,"",function(Ca){return Ca})):Z!=null&&(ye(Z)&&(Z=se(Z,q+(Z.key==null||y&&y.key===Z.key?"":(""+Z.key).replace(Xe,"$&/")+"/")+Se)),b.push(Z)),1;Se=0;var Pe=w===""?".":w+":";if(W(y))for(var Ue=0;Ue<y.length;Ue++)w=y[Ue],ae=Pe+Le(w,Ue),Se+=p(w,b,q,ae,Z);else if(Ue=Q(y),typeof Ue=="function")for(y=Ue.call(y),Ue=0;!(w=y.next()).done;)w=w.value,ae=Pe+Le(w,Ue++),Se+=p(w,b,q,ae,Z);else if(ae==="object"){if(typeof y.then=="function")return p(Ie(y),b,q,w,Z);throw b=String(y),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.")}return Se}function U(y,b,q){if(y==null)return y;var w=[],Z=0;return p(y,w,"","",function(ae){return b.call(q,ae,Z++)}),w}function K(y){if(y._status===-1){var b=y._result;b=b(),b.then(function(q){(y._status===0||y._status===-1)&&(y._status=1,y._result=q)},function(q){(y._status===0||y._status===-1)&&(y._status=2,y._result=q)}),y._status===-1&&(y._status=0,y._result=b)}if(y._status===1)return y._result.default;throw y._result}var me=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(b))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},re={map:U,forEach:function(y,b,q){U(y,function(){b.apply(this,arguments)},q)},count:function(y){var b=0;return U(y,function(){b++}),b},toArray:function(y){return U(y,function(b){return b})||[]},only:function(y){if(!ye(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return te.Activity=B,te.Children=re,te.Component=k,te.Fragment=r,te.Profiler=m,te.PureComponent=be,te.StrictMode=o,te.Suspense=M,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,te.__COMPILER_RUNTIME={__proto__:null,c:function(y){return F.H.useMemoCache(y)}},te.cache=function(y){return function(){return y.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(y,b,q){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var w=X({},y.props),Z=y.key;if(b!=null)for(ae in b.key!==void 0&&(Z=""+b.key),b)!I.call(b,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&b.ref===void 0||(w[ae]=b[ae]);var ae=arguments.length-2;if(ae===1)w.children=q;else if(1<ae){for(var Se=Array(ae),Pe=0;Pe<ae;Pe++)Se[Pe]=arguments[Pe+2];w.children=Se}return V(y.type,Z,w)},te.createContext=function(y){return y={$$typeof:E,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:g,_context:y},y},te.createElement=function(y,b,q){var w,Z={},ae=null;if(b!=null)for(w in b.key!==void 0&&(ae=""+b.key),b)I.call(b,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(Z[w]=b[w]);var Se=arguments.length-2;if(Se===1)Z.children=q;else if(1<Se){for(var Pe=Array(Se),Ue=0;Ue<Se;Ue++)Pe[Ue]=arguments[Ue+2];Z.children=Pe}if(y&&y.defaultProps)for(w in Se=y.defaultProps,Se)Z[w]===void 0&&(Z[w]=Se[w]);return V(y,ae,Z)},te.createRef=function(){return{current:null}},te.forwardRef=function(y){return{$$typeof:x,render:y}},te.isValidElement=ye,te.lazy=function(y){return{$$typeof:Y,_payload:{_status:-1,_result:y},_init:K}},te.memo=function(y,b){return{$$typeof:z,type:y,compare:b===void 0?null:b}},te.startTransition=function(y){var b=F.T,q={};F.T=q;try{var w=y(),Z=F.S;Z!==null&&Z(q,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(ee,me)}catch(ae){me(ae)}finally{b!==null&&q.types!==null&&(b.types=q.types),F.T=b}},te.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},te.use=function(y){return F.H.use(y)},te.useActionState=function(y,b,q){return F.H.useActionState(y,b,q)},te.useCallback=function(y,b){return F.H.useCallback(y,b)},te.useContext=function(y){return F.H.useContext(y)},te.useDebugValue=function(){},te.useDeferredValue=function(y,b){return F.H.useDeferredValue(y,b)},te.useEffect=function(y,b){return F.H.useEffect(y,b)},te.useEffectEvent=function(y){return F.H.useEffectEvent(y)},te.useId=function(){return F.H.useId()},te.useImperativeHandle=function(y,b,q){return F.H.useImperativeHandle(y,b,q)},te.useInsertionEffect=function(y,b){return F.H.useInsertionEffect(y,b)},te.useLayoutEffect=function(y,b){return F.H.useLayoutEffect(y,b)},te.useMemo=function(y,b){return F.H.useMemo(y,b)},te.useOptimistic=function(y,b){return F.H.useOptimistic(y,b)},te.useReducer=function(y,b,q){return F.H.useReducer(y,b,q)},te.useRef=function(y){return F.H.useRef(y)},te.useState=function(y){return F.H.useState(y)},te.useSyncExternalStore=function(y,b,q){return F.H.useSyncExternalStore(y,b,q)},te.useTransition=function(){return F.H.useTransition()},te.version="19.2.8",te}var Ad;function bs(){return Ad||(Ad=1,hs.exports=gv()),hs.exports}var H=bs(),ms={exports:{}},Tn={},vs={exports:{}},gs={};var zd;function yv(){return zd||(zd=1,(function(s){function d(p,U){var K=p.length;p.push(U);e:for(;0<K;){var me=K-1>>>1,re=p[me];if(0<m(re,U))p[me]=U,p[K]=re,K=me;else break e}}function r(p){return p.length===0?null:p[0]}function o(p){if(p.length===0)return null;var U=p[0],K=p.pop();if(K!==U){p[0]=K;e:for(var me=0,re=p.length,y=re>>>1;me<y;){var b=2*(me+1)-1,q=p[b],w=b+1,Z=p[w];if(0>m(q,K))w<re&&0>m(Z,q)?(p[me]=Z,p[w]=K,me=w):(p[me]=q,p[b]=K,me=b);else if(w<re&&0>m(Z,K))p[me]=Z,p[w]=K,me=w;else break e}}return U}function m(p,U){var K=p.sortIndex-U.sortIndex;return K!==0?K:p.id-U.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;s.unstable_now=function(){return g.now()}}else{var E=Date,x=E.now();s.unstable_now=function(){return E.now()-x}}var M=[],z=[],Y=1,B=null,C=3,Q=!1,P=!1,X=!1,ie=!1,k=typeof setTimeout=="function"?setTimeout:null,_e=typeof clearTimeout=="function"?clearTimeout:null,be=typeof setImmediate<"u"?setImmediate:null;function A(p){for(var U=r(z);U!==null;){if(U.callback===null)o(z);else if(U.startTime<=p)o(z),U.sortIndex=U.expirationTime,d(M,U);else break;U=r(z)}}function W(p){if(X=!1,A(p),!P)if(r(M)!==null)P=!0,ee||(ee=!0,ze());else{var U=r(z);U!==null&&Ie(W,U.startTime-p)}}var ee=!1,F=-1,I=5,V=-1;function se(){return ie?!0:!(s.unstable_now()-V<I)}function ye(){if(ie=!1,ee){var p=s.unstable_now();V=p;var U=!0;try{e:{P=!1,X&&(X=!1,_e(F),F=-1),Q=!0;var K=C;try{t:{for(A(p),B=r(M);B!==null&&!(B.expirationTime>p&&se());){var me=B.callback;if(typeof me=="function"){B.callback=null,C=B.priorityLevel;var re=me(B.expirationTime<=p);if(p=s.unstable_now(),typeof re=="function"){B.callback=re,A(p),U=!0;break t}B===r(M)&&o(M),A(p)}else o(M);B=r(M)}if(B!==null)U=!0;else{var y=r(z);y!==null&&Ie(W,y.startTime-p),U=!1}}break e}finally{B=null,C=K,Q=!1}U=void 0}}finally{U?ze():ee=!1}}}var ze;if(typeof be=="function")ze=function(){be(ye)};else if(typeof MessageChannel<"u"){var Xe=new MessageChannel,Le=Xe.port2;Xe.port1.onmessage=ye,ze=function(){Le.postMessage(null)}}else ze=function(){k(ye,0)};function Ie(p,U){F=k(function(){p(s.unstable_now())},U)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(p){p.callback=null},s.unstable_forceFrameRate=function(p){0>p||125<p?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<p?Math.floor(1e3/p):5},s.unstable_getCurrentPriorityLevel=function(){return C},s.unstable_next=function(p){switch(C){case 1:case 2:case 3:var U=3;break;default:U=C}var K=C;C=U;try{return p()}finally{C=K}},s.unstable_requestPaint=function(){ie=!0},s.unstable_runWithPriority=function(p,U){switch(p){case 1:case 2:case 3:case 4:case 5:break;default:p=3}var K=C;C=p;try{return U()}finally{C=K}},s.unstable_scheduleCallback=function(p,U,K){var me=s.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=me,p){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=K+re,p={id:Y++,callback:U,priorityLevel:p,startTime:K,expirationTime:re,sortIndex:-1},K>me?(p.sortIndex=K,d(z,p),r(M)===null&&p===r(z)&&(X?(_e(F),F=-1):X=!0,Ie(W,K-me))):(p.sortIndex=re,d(M,p),P||Q||(P=!0,ee||(ee=!0,ze()))),p},s.unstable_shouldYield=se,s.unstable_wrapCallback=function(p){var U=C;return function(){var K=C;C=U;try{return p.apply(this,arguments)}finally{C=K}}}})(gs)),gs}var _d;function pv(){return _d||(_d=1,vs.exports=yv()),vs.exports}var ys={exports:{}},Fe={};var Md;function bv(){if(Md)return Fe;Md=1;var s=bs();function d(M){var z="https://react.dev/errors/"+M;if(1<arguments.length){z+="?args[]="+encodeURIComponent(arguments[1]);for(var Y=2;Y<arguments.length;Y++)z+="&args[]="+encodeURIComponent(arguments[Y])}return"Minified React error #"+M+"; visit "+z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(d(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},m=Symbol.for("react.portal");function g(M,z,Y){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:B==null?null:""+B,children:M,containerInfo:z,implementation:Y}}var E=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(M,z){if(M==="font")return"";if(typeof z=="string")return z==="use-credentials"?z:""}return Fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Fe.createPortal=function(M,z){var Y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)throw Error(d(299));return g(M,z,null,Y)},Fe.flushSync=function(M){var z=E.T,Y=o.p;try{if(E.T=null,o.p=2,M)return M()}finally{E.T=z,o.p=Y,o.d.f()}},Fe.preconnect=function(M,z){typeof M=="string"&&(z?(z=z.crossOrigin,z=typeof z=="string"?z==="use-credentials"?z:"":void 0):z=null,o.d.C(M,z))},Fe.prefetchDNS=function(M){typeof M=="string"&&o.d.D(M)},Fe.preinit=function(M,z){if(typeof M=="string"&&z&&typeof z.as=="string"){var Y=z.as,B=x(Y,z.crossOrigin),C=typeof z.integrity=="string"?z.integrity:void 0,Q=typeof z.fetchPriority=="string"?z.fetchPriority:void 0;Y==="style"?o.d.S(M,typeof z.precedence=="string"?z.precedence:void 0,{crossOrigin:B,integrity:C,fetchPriority:Q}):Y==="script"&&o.d.X(M,{crossOrigin:B,integrity:C,fetchPriority:Q,nonce:typeof z.nonce=="string"?z.nonce:void 0})}},Fe.preinitModule=function(M,z){if(typeof M=="string")if(typeof z=="object"&&z!==null){if(z.as==null||z.as==="script"){var Y=x(z.as,z.crossOrigin);o.d.M(M,{crossOrigin:Y,integrity:typeof z.integrity=="string"?z.integrity:void 0,nonce:typeof z.nonce=="string"?z.nonce:void 0})}}else z==null&&o.d.M(M)},Fe.preload=function(M,z){if(typeof M=="string"&&typeof z=="object"&&z!==null&&typeof z.as=="string"){var Y=z.as,B=x(Y,z.crossOrigin);o.d.L(M,Y,{crossOrigin:B,integrity:typeof z.integrity=="string"?z.integrity:void 0,nonce:typeof z.nonce=="string"?z.nonce:void 0,type:typeof z.type=="string"?z.type:void 0,fetchPriority:typeof z.fetchPriority=="string"?z.fetchPriority:void 0,referrerPolicy:typeof z.referrerPolicy=="string"?z.referrerPolicy:void 0,imageSrcSet:typeof z.imageSrcSet=="string"?z.imageSrcSet:void 0,imageSizes:typeof z.imageSizes=="string"?z.imageSizes:void 0,media:typeof z.media=="string"?z.media:void 0})}},Fe.preloadModule=function(M,z){if(typeof M=="string")if(z){var Y=x(z.as,z.crossOrigin);o.d.m(M,{as:typeof z.as=="string"&&z.as!=="script"?z.as:void 0,crossOrigin:Y,integrity:typeof z.integrity=="string"?z.integrity:void 0})}else o.d.m(M)},Fe.requestFormReset=function(M){o.d.r(M)},Fe.unstable_batchedUpdates=function(M,z){return M(z)},Fe.useFormState=function(M,z,Y){return E.H.useFormState(M,z,Y)},Fe.useFormStatus=function(){return E.H.useHostTransitionStatus()},Fe.version="19.2.8",Fe}var Cd;function Sv(){if(Cd)return ys.exports;Cd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(d){console.error(d)}}return s(),ys.exports=bv(),ys.exports}var Od;function xv(){if(Od)return Tn;Od=1;var s=pv(),d=bs(),r=Sv();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function E(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function M(e){if(g(e)!==e)throw Error(o(188))}function z(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return M(n),e;if(i===a)return M(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,f=n.child;f;){if(f===l){c=!0,l=n,a=i;break}if(f===a){c=!0,a=n,l=i;break}f=f.sibling}if(!c){for(f=i.child;f;){if(f===l){c=!0,l=i,a=n;break}if(f===a){c=!0,a=i,l=n;break}f=f.sibling}if(!c)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function Y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Y(e),t!==null)return t;e=e.sibling}return null}var B=Object.assign,C=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),ie=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),_e=Symbol.for("react.consumer"),be=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ye=Symbol.iterator;function ze(e){return e===null||typeof e!="object"?null:(e=ye&&e[ye]||e["@@iterator"],typeof e=="function"?e:null)}var Xe=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case k:return"Profiler";case ie:return"StrictMode";case W:return"Suspense";case ee:return"SuspenseList";case V:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case P:return"Portal";case be:return e.displayName||"Context";case _e:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var Ie=Array.isArray,p=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},me=[],re=-1;function y(e){return{current:e}}function b(e){0>re||(e.current=me[re],me[re]=null,re--)}function q(e,t){re++,me[re]=e.current,e.current=t}var w=y(null),Z=y(null),ae=y(null),Se=y(null);function Pe(e,t){switch(q(ae,t),q(Z,e),q(w,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kr(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kr(t),e=Jr(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}b(w),q(w,e)}function Ue(){b(w),b(Z),b(ae)}function Ca(e){e.memoizedState!==null&&q(Se,e);var t=w.current,l=Jr(t,e.type);t!==l&&(q(Z,e),q(w,l))}function _n(e){Z.current===e&&(b(w),b(Z)),Se.current===e&&(b(Se),Sn._currentValue=K)}var ki,Ss;function Al(e){if(ki===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ki=t&&t[1]||"",Ss=-1<l.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+ki+e+Ss}var $i=!1;function Wi(e,t){if(!e||$i)return"";$i=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={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(_){var T=_}Reflect.construct(e,[],R)}else{try{R.call()}catch(_){T=_}e.call(R.prototype)}}else{try{throw Error()}catch(_){T=_}(R=e())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(_){if(_&&T&&typeof _.stack=="string")return[_.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],f=i[1];if(c&&f){var h=c.split(`
|
|
4
|
+
`),N=f.split(`
|
|
5
|
+
`);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===N.length)for(a=h.length-1,n=N.length-1;1<=a&&0<=n&&h[a]!==N[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==N[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==N[n]){var O=`
|
|
6
|
+
`+h[a].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=a&&0<=n);break}}}finally{$i=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Al(l):""}function Vd(e,t){switch(e.tag){case 26:case 27:case 5:return Al(e.type);case 16:return Al("Lazy");case 13:return e.child!==t&&t!==null?Al("Suspense Fallback"):Al("Suspense");case 19:return Al("SuspenseList");case 0:case 15:return Wi(e.type,!1);case 11:return Wi(e.type.render,!1);case 1:return Wi(e.type,!0);case 31:return Al("Activity");default:return""}}function xs(e){try{var t="",l=null;do t+=Vd(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
7
|
+
Error generating stack: `+a.message+`
|
|
8
|
+
`+a.stack}}var Fi=Object.prototype.hasOwnProperty,Ii=s.unstable_scheduleCallback,Pi=s.unstable_cancelCallback,Kd=s.unstable_shouldYield,Jd=s.unstable_requestPaint,st=s.unstable_now,kd=s.unstable_getCurrentPriorityLevel,js=s.unstable_ImmediatePriority,Ns=s.unstable_UserBlockingPriority,Mn=s.unstable_NormalPriority,$d=s.unstable_LowPriority,Es=s.unstable_IdlePriority,Wd=s.log,Fd=s.unstable_setDisableYieldValue,Oa=null,ft=null;function el(e){if(typeof Wd=="function"&&Fd(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(Oa,e)}catch{}}var ot=Math.clz32?Math.clz32:eh,Id=Math.log,Pd=Math.LN2;function eh(e){return e>>>=0,e===0?32:31-(Id(e)/Pd|0)|0}var Cn=256,On=262144,Dn=4194304;function zl(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 Rn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~i,a!==0?n=zl(a):(c&=f,c!==0?n=zl(c):l||(l=f&~e,l!==0&&(n=zl(l))))):(f=a&~i,f!==0?n=zl(f):c!==0?n=zl(c):l||(l=a&~e,l!==0&&(n=zl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Da(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function th(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 Ts(){var e=Dn;return Dn<<=1,(Dn&62914560)===0&&(Dn=4194304),e}function eu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ra(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lh(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,h=e.expirationTimes,N=e.hiddenUpdates;for(l=c&~l;0<l;){var O=31-ot(l),R=1<<O;f[O]=0,h[O]=-1;var T=N[O];if(T!==null)for(N[O]=null,O=0;O<T.length;O++){var _=T[O];_!==null&&(_.lane&=-536870913)}l&=~R}a!==0&&As(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function As(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function zs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ot(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function _s(e,t){var l=t&-t;return l=(l&42)!==0?1:tu(l),(l&(e.suspendedLanes|t))!==0?0:l}function tu(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 lu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ms(){var e=U.p;return e!==0?e:(e=window.event,e===void 0?32:gd(e.type))}function Cs(e,t){var l=U.p;try{return U.p=e,t()}finally{U.p=l}}var tl=Math.random().toString(36).slice(2),Ke="__reactFiber$"+tl,tt="__reactProps$"+tl,Vl="__reactContainer$"+tl,au="__reactEvents$"+tl,ah="__reactListeners$"+tl,nh="__reactHandles$"+tl,Os="__reactResources$"+tl,Ua="__reactMarker$"+tl;function nu(e){delete e[Ke],delete e[tt],delete e[au],delete e[ah],delete e[nh]}function Kl(e){var t=e[Ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Vl]||l[Ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ed(e);e!==null;){if(l=e[Ke])return l;e=ed(e)}return t}e=l,l=e.parentNode}return null}function Jl(e){if(e=e[Ke]||e[Vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function kl(e){var t=e[Os];return t||(t=e[Os]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Ua]=!0}var Ds=new Set,Rs={};function _l(e,t){$l(e,t),$l(e+"Capture",t)}function $l(e,t){for(Rs[e]=t,e=0;e<t.length;e++)Ds.add(t[e])}var ih=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]*$"),Us={},qs={};function uh(e){return Fi.call(qs,e)?!0:Fi.call(Us,e)?!1:ih.test(e)?qs[e]=!0:(Us[e]=!0,!1)}function Un(e,t,l){if(uh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function qn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Ht(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function pt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hs(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ch(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function iu(e){if(!e._valueTracker){var t=Hs(e)?"checked":"value";e._valueTracker=ch(e,t,""+e[t])}}function Bs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Hs(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Hn(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 sh=/[\n"\\]/g;function bt(e){return e.replace(sh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function uu(e,t,l,a,n,i,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?cu(e,c,pt(t)):l!=null?cu(e,c,pt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+pt(f):e.removeAttribute("name")}function Ys(e,t,l,a,n,i,c,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){iu(e);return}l=l!=null?""+pt(l):"",t=t!=null?""+pt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),iu(e)}function cu(e,t,l){t==="number"&&Hn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Wl(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+pt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function ws(e,t,l){if(t!=null&&(t=""+pt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+pt(l):""}function Gs(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ie(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=pt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),iu(e)}function Fl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var fh=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 Qs(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||fh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Xs(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Qs(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Qs(e,i,t[i])}function su(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 oh=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"]]),rh=/^[\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 Bn(e){return rh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bt(){}var fu=null;function ou(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Il=null,Pl=null;function Ls(e){var t=Jl(e);if(t&&(e=t.stateNode)){var l=e[tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(uu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+bt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[tt]||null;if(!n)throw Error(o(90));uu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Bs(a)}break e;case"textarea":ws(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Wl(e,!!l.multiple,t,!1)}}}var ru=!1;function Zs(e,t,l){if(ru)return e(t,l);ru=!0;try{var a=e(t);return a}finally{if(ru=!1,(Il!==null||Pl!==null)&&(Ei(),Il&&(t=Il,e=Pl,Pl=Il=null,Ls(t),e)))for(t=0;t<e.length;t++)Ls(e[t])}}function Ha(e,t){var l=e.stateNode;if(l===null)return null;var a=l[tt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Yt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),du=!1;if(Yt)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){du=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{du=!1}var ll=null,hu=null,Yn=null;function Vs(){if(Yn)return Yn;var e,t=hu,l=t.length,a,n="value"in ll?ll.value:ll.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return Yn=n.slice(e,1<a?1-a:void 0)}function wn(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 Gn(){return!0}function Ks(){return!1}function lt(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Gn:Ks,this.isPropagationStopped=Ks,this}return B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Gn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Gn)},persist:function(){},isPersistent:Gn}),t}var Ml={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qn=lt(Ml),Ya=B({},Ml,{view:0,detail:0}),dh=lt(Ya),mu,vu,wa,Xn=B({},Ya,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,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!==wa&&(wa&&e.type==="mousemove"?(mu=e.screenX-wa.screenX,vu=e.screenY-wa.screenY):vu=mu=0,wa=e),mu)},movementY:function(e){return"movementY"in e?e.movementY:vu}}),Js=lt(Xn),hh=B({},Xn,{dataTransfer:0}),mh=lt(hh),vh=B({},Ya,{relatedTarget:0}),gu=lt(vh),gh=B({},Ml,{animationName:0,elapsedTime:0,pseudoElement:0}),yh=lt(gh),ph=B({},Ml,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bh=lt(ph),Sh=B({},Ml,{data:0}),ks=lt(Sh),xh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jh={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"},Nh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nh[e])?!!t[e]:!1}function yu(){return Eh}var Th=B({},Ya,{key:function(e){if(e.key){var t=xh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(e){return e.type==="keypress"?wn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ah=lt(Th),zh=B({},Xn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$s=lt(zh),_h=B({},Ya,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),Mh=lt(_h),Ch=B({},Ml,{propertyName:0,elapsedTime:0,pseudoElement:0}),Oh=lt(Ch),Dh=B({},Xn,{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}),Rh=lt(Dh),Uh=B({},Ml,{newState:0,oldState:0}),qh=lt(Uh),Hh=[9,13,27,32],pu=Yt&&"CompositionEvent"in window,Ga=null;Yt&&"documentMode"in document&&(Ga=document.documentMode);var Bh=Yt&&"TextEvent"in window&&!Ga,Ws=Yt&&(!pu||Ga&&8<Ga&&11>=Ga),Fs=" ",Is=!1;function Ps(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ef(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ea=!1;function Yh(e,t){switch(e){case"compositionend":return ef(t);case"keypress":return t.which!==32?null:(Is=!0,Fs);case"textInput":return e=t.data,e===Fs&&Is?null:e;default:return null}}function wh(e,t){if(ea)return e==="compositionend"||!pu&&Ps(e,t)?(e=Vs(),Yn=hu=ll=null,ea=!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 Ws&&t.locale!=="ko"?null:t.data;default:return null}}var Gh={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 tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Gh[e.type]:t==="textarea"}function lf(e,t,l,a){Il?Pl?Pl.push(a):Pl=[a]:Il=a,t=Oi(t,"onChange"),0<t.length&&(l=new Qn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Qa=null,Xa=null;function Qh(e){Gr(e,0)}function Ln(e){var t=qa(e);if(Bs(t))return e}function af(e,t){if(e==="change")return t}var nf=!1;if(Yt){var bu;if(Yt){var Su="oninput"in document;if(!Su){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),Su=typeof uf.oninput=="function"}bu=Su}else bu=!1;nf=bu&&(!document.documentMode||9<document.documentMode)}function cf(){Qa&&(Qa.detachEvent("onpropertychange",sf),Xa=Qa=null)}function sf(e){if(e.propertyName==="value"&&Ln(Xa)){var t=[];lf(t,Xa,e,ou(e)),Zs(Qh,t)}}function Xh(e,t,l){e==="focusin"?(cf(),Qa=t,Xa=l,Qa.attachEvent("onpropertychange",sf)):e==="focusout"&&cf()}function Lh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ln(Xa)}function Zh(e,t){if(e==="click")return Ln(t)}function Vh(e,t){if(e==="input"||e==="change")return Ln(t)}function Kh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Kh;function La(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Fi.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function of(e,t){var l=ff(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=ff(l)}}function rf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Hn(e.document)}return t}function xu(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 Jh=Yt&&"documentMode"in document&&11>=document.documentMode,ta=null,ju=null,Za=null,Nu=!1;function hf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Nu||ta==null||ta!==Hn(a)||(a=ta,"selectionStart"in a&&xu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Za&&La(Za,a)||(Za=a,a=Oi(ju,"onSelect"),0<a.length&&(t=new Qn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ta)))}function Cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var la={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},Eu={},mf={};Yt&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function Ol(e){if(Eu[e])return Eu[e];if(!la[e])return e;var t=la[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in mf)return Eu[e]=t[l];return e}var vf=Ol("animationend"),gf=Ol("animationiteration"),yf=Ol("animationstart"),kh=Ol("transitionrun"),$h=Ol("transitionstart"),Wh=Ol("transitioncancel"),pf=Ol("transitionend"),bf=new Map,Tu="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(" ");Tu.push("scrollEnd");function _t(e,t){bf.set(e,t),_l(t,[e])}var Zn=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)},St=[],aa=0,Au=0;function Vn(){for(var e=aa,t=Au=aa=0;t<e;){var l=St[t];St[t++]=null;var a=St[t];St[t++]=null;var n=St[t];St[t++]=null;var i=St[t];if(St[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&Sf(l,n,i)}}function Kn(e,t,l,a){St[aa++]=e,St[aa++]=t,St[aa++]=l,St[aa++]=a,Au|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function zu(e,t,l,a){return Kn(e,t,l,a),Jn(e)}function Dl(e,t){return Kn(e,null,null,t),Jn(e)}function Sf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),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-ot(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Jn(e){if(50<hn)throw hn=0,Hc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var na={};function Fh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dt(e,t,l,a){return new Fh(e,t,l,a)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wt(e,t){var l=e.alternate;return l===null?(l=dt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function xf(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function kn(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")_u(e)&&(c=1);else if(typeof e=="string")c=lv(e,l,w.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case V:return e=dt(31,l,t,n),e.elementType=V,e.lanes=i,e;case X:return Rl(l.children,n,i,t);case ie:c=8,n|=24;break;case k:return e=dt(12,l,t,n|2),e.elementType=k,e.lanes=i,e;case W:return e=dt(13,l,t,n),e.elementType=W,e.lanes=i,e;case ee:return e=dt(19,l,t,n),e.elementType=ee,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case be:c=10;break e;case _e:c=9;break e;case A:c=11;break e;case F:c=14;break e;case I:c=16,a=null;break e}c=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=dt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Rl(e,t,l,a){return e=dt(7,e,a,t),e.lanes=l,e}function Mu(e,t,l){return e=dt(6,e,null,t),e.lanes=l,e}function jf(e){var t=dt(18,null,null,0);return t.stateNode=e,t}function Cu(e,t,l){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Nf=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var l=Nf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xs(t)},Nf.set(e,t),t)}return{value:e,source:t,stack:xs(t)}}var ia=[],ua=0,$n=null,Va=0,jt=[],Nt=0,al=null,Dt=1,Rt="";function Gt(e,t){ia[ua++]=Va,ia[ua++]=$n,$n=e,Va=t}function Ef(e,t,l){jt[Nt++]=Dt,jt[Nt++]=Rt,jt[Nt++]=al,al=e;var a=Dt;e=Rt;var n=32-ot(a)-1;a&=~(1<<n),l+=1;var i=32-ot(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Dt=1<<32-ot(t)+n|l<<n|a,Rt=i+e}else Dt=1<<i|l<<n|a,Rt=e}function Ou(e){e.return!==null&&(Gt(e,1),Ef(e,1,0))}function Du(e){for(;e===$n;)$n=ia[--ua],ia[ua]=null,Va=ia[--ua],ia[ua]=null;for(;e===al;)al=jt[--Nt],jt[Nt]=null,Rt=jt[--Nt],jt[Nt]=null,Dt=jt[--Nt],jt[Nt]=null}function Tf(e,t){jt[Nt++]=Dt,jt[Nt++]=Rt,jt[Nt++]=al,Dt=t.id,Rt=t.overflow,al=e}var Je=null,Me=null,de=!1,nl=null,Et=!1,Ru=Error(o(519));function il(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(xt(t,e)),Ru}function Af(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ke]=e,t[tt]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<vn.length;l++)ce(vn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Ys(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),Gs(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Zr(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Bt),t=!0):t=!1,t||il(e,!0)}function zf(e){for(Je=e.return;Je;)switch(Je.tag){case 5:case 31:case 13:Et=!1;return;case 27:case 3:Et=!0;return;default:Je=Je.return}}function ca(e){if(e!==Je)return!1;if(!de)return zf(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Fc(e.type,e.memoizedProps)),l=!l),l&&Me&&il(e),zf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Me=Pr(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Me=Pr(e)}else t===27?(t=Me,bl(e.type)?(e=ls,ls=null,Me=e):Me=t):Me=Je?At(e.stateNode.nextSibling):null;return!0}function Ul(){Me=Je=null,de=!1}function Uu(){var e=nl;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),nl=null),e}function Ka(e){nl===null?nl=[e]:nl.push(e)}var qu=y(null),ql=null,Qt=null;function ul(e,t,l){q(qu,t._currentValue),t._currentValue=l}function Xt(e){e._currentValue=qu.current,b(qu)}function Hu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Bu(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var f=i;i=n;for(var h=0;h<t.length;h++)if(f.context===t[h]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),Hu(i.return,l,e),a||(c=null);break e}i=f.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(o(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),Hu(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function sa(e,t,l,a){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 c=n.alternate;if(c===null)throw Error(o(387));if(c=c.memoizedProps,c!==null){var f=n.type;rt(n.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(n===Se.current){if(c=n.alternate,c===null)throw Error(o(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Sn):e=[Sn])}n=n.return}e!==null&&Bu(t,e,l,a),t.flags|=262144}function Wn(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hl(e){ql=e,Qt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ke(e){return _f(ql,e)}function Fn(e,t){return ql===null&&Hl(e),_f(e,t)}function _f(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Qt===null){if(e===null)throw Error(o(308));Qt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qt=Qt.next=t;return l}var Ih=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ph=s.unstable_scheduleCallback,em=s.unstable_NormalPriority,Be={$$typeof:be,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yu(){return{controller:new Ih,data:new Map,refCount:0}}function Ja(e){e.refCount--,e.refCount===0&&Ph(em,function(){e.controller.abort()})}var ka=null,wu=0,fa=0,oa=null;function tm(e,t){if(ka===null){var l=ka=[];wu=0,fa=Xc(),oa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return wu++,t.then(Mf,Mf),t}function Mf(){if(--wu===0&&ka!==null){oa!==null&&(oa.status="fulfilled");var e=ka;ka=null,fa=0,oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function lm(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Cf=p.S;p.S=function(e,t){mr=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tm(e,t),Cf!==null&&Cf(e,t)};var Bl=y(null);function Gu(){var e=Bl.current;return e!==null?e:Ae.pooledCache}function In(e,t){t===null?q(Bl,Bl.current):q(Bl,t.pool)}function Of(){var e=Gu();return e===null?null:{parent:Be._currentValue,pool:e}}var ra=Error(o(460)),Qu=Error(o(474)),Pn=Error(o(542)),ei={then:function(){}};function Df(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Bt,Bt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qf(e),e;default:if(typeof t.status=="string")t.then(Bt,Bt);else{if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qf(e),e}throw wl=t,ra}}function Yl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wl=l,ra):l}}var wl=null;function Uf(){if(wl===null)throw Error(o(459));var e=wl;return wl=null,e}function qf(e){if(e===ra||e===Pn)throw Error(o(483))}var da=null,$a=0;function ti(e){var t=$a;return $a+=1,da===null&&(da=[]),Rf(da,e,t)}function Wa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function li(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Hf(e){function t(S,v){if(e){var j=S.deletions;j===null?(S.deletions=[v],S.flags|=16):j.push(v)}}function l(S,v){if(!e)return null;for(;v!==null;)t(S,v),v=v.sibling;return null}function a(S){for(var v=new Map;S!==null;)S.key!==null?v.set(S.key,S):v.set(S.index,S),S=S.sibling;return v}function n(S,v){return S=wt(S,v),S.index=0,S.sibling=null,S}function i(S,v,j){return S.index=j,e?(j=S.alternate,j!==null?(j=j.index,j<v?(S.flags|=67108866,v):j):(S.flags|=67108866,v)):(S.flags|=1048576,v)}function c(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function f(S,v,j,D){return v===null||v.tag!==6?(v=Mu(j,S.mode,D),v.return=S,v):(v=n(v,j),v.return=S,v)}function h(S,v,j,D){var J=j.type;return J===X?O(S,v,j.props.children,D,j.key):v!==null&&(v.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===I&&Yl(J)===v.type)?(v=n(v,j.props),Wa(v,j),v.return=S,v):(v=kn(j.type,j.key,j.props,null,S.mode,D),Wa(v,j),v.return=S,v)}function N(S,v,j,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==j.containerInfo||v.stateNode.implementation!==j.implementation?(v=Cu(j,S.mode,D),v.return=S,v):(v=n(v,j.children||[]),v.return=S,v)}function O(S,v,j,D,J){return v===null||v.tag!==7?(v=Rl(j,S.mode,D,J),v.return=S,v):(v=n(v,j),v.return=S,v)}function R(S,v,j){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Mu(""+v,S.mode,j),v.return=S,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Q:return j=kn(v.type,v.key,v.props,null,S.mode,j),Wa(j,v),j.return=S,j;case P:return v=Cu(v,S.mode,j),v.return=S,v;case I:return v=Yl(v),R(S,v,j)}if(Ie(v)||ze(v))return v=Rl(v,S.mode,j,null),v.return=S,v;if(typeof v.then=="function")return R(S,ti(v),j);if(v.$$typeof===be)return R(S,Fn(S,v),j);li(S,v)}return null}function T(S,v,j,D){var J=v!==null?v.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return J!==null?null:f(S,v,""+j,D);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Q:return j.key===J?h(S,v,j,D):null;case P:return j.key===J?N(S,v,j,D):null;case I:return j=Yl(j),T(S,v,j,D)}if(Ie(j)||ze(j))return J!==null?null:O(S,v,j,D,null);if(typeof j.then=="function")return T(S,v,ti(j),D);if(j.$$typeof===be)return T(S,v,Fn(S,j),D);li(S,j)}return null}function _(S,v,j,D,J){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return S=S.get(j)||null,f(v,S,""+D,J);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Q:return S=S.get(D.key===null?j:D.key)||null,h(v,S,D,J);case P:return S=S.get(D.key===null?j:D.key)||null,N(v,S,D,J);case I:return D=Yl(D),_(S,v,j,D,J)}if(Ie(D)||ze(D))return S=S.get(j)||null,O(v,S,D,J,null);if(typeof D.then=="function")return _(S,v,j,ti(D),J);if(D.$$typeof===be)return _(S,v,j,Fn(v,D),J);li(v,D)}return null}function G(S,v,j,D){for(var J=null,ve=null,L=v,ne=v=0,oe=null;L!==null&&ne<j.length;ne++){L.index>ne?(oe=L,L=null):oe=L.sibling;var ge=T(S,L,j[ne],D);if(ge===null){L===null&&(L=oe);break}e&&L&&ge.alternate===null&&t(S,L),v=i(ge,v,ne),ve===null?J=ge:ve.sibling=ge,ve=ge,L=oe}if(ne===j.length)return l(S,L),de&&Gt(S,ne),J;if(L===null){for(;ne<j.length;ne++)L=R(S,j[ne],D),L!==null&&(v=i(L,v,ne),ve===null?J=L:ve.sibling=L,ve=L);return de&&Gt(S,ne),J}for(L=a(L);ne<j.length;ne++)oe=_(L,S,ne,j[ne],D),oe!==null&&(e&&oe.alternate!==null&&L.delete(oe.key===null?ne:oe.key),v=i(oe,v,ne),ve===null?J=oe:ve.sibling=oe,ve=oe);return e&&L.forEach(function(El){return t(S,El)}),de&&Gt(S,ne),J}function $(S,v,j,D){if(j==null)throw Error(o(151));for(var J=null,ve=null,L=v,ne=v=0,oe=null,ge=j.next();L!==null&&!ge.done;ne++,ge=j.next()){L.index>ne?(oe=L,L=null):oe=L.sibling;var El=T(S,L,ge.value,D);if(El===null){L===null&&(L=oe);break}e&&L&&El.alternate===null&&t(S,L),v=i(El,v,ne),ve===null?J=El:ve.sibling=El,ve=El,L=oe}if(ge.done)return l(S,L),de&&Gt(S,ne),J;if(L===null){for(;!ge.done;ne++,ge=j.next())ge=R(S,ge.value,D),ge!==null&&(v=i(ge,v,ne),ve===null?J=ge:ve.sibling=ge,ve=ge);return de&&Gt(S,ne),J}for(L=a(L);!ge.done;ne++,ge=j.next())ge=_(L,S,ne,ge.value,D),ge!==null&&(e&&ge.alternate!==null&&L.delete(ge.key===null?ne:ge.key),v=i(ge,v,ne),ve===null?J=ge:ve.sibling=ge,ve=ge);return e&&L.forEach(function(hv){return t(S,hv)}),de&&Gt(S,ne),J}function Te(S,v,j,D){if(typeof j=="object"&&j!==null&&j.type===X&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Q:e:{for(var J=j.key;v!==null;){if(v.key===J){if(J=j.type,J===X){if(v.tag===7){l(S,v.sibling),D=n(v,j.props.children),D.return=S,S=D;break e}}else if(v.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===I&&Yl(J)===v.type){l(S,v.sibling),D=n(v,j.props),Wa(D,j),D.return=S,S=D;break e}l(S,v);break}else t(S,v);v=v.sibling}j.type===X?(D=Rl(j.props.children,S.mode,D,j.key),D.return=S,S=D):(D=kn(j.type,j.key,j.props,null,S.mode,D),Wa(D,j),D.return=S,S=D)}return c(S);case P:e:{for(J=j.key;v!==null;){if(v.key===J)if(v.tag===4&&v.stateNode.containerInfo===j.containerInfo&&v.stateNode.implementation===j.implementation){l(S,v.sibling),D=n(v,j.children||[]),D.return=S,S=D;break e}else{l(S,v);break}else t(S,v);v=v.sibling}D=Cu(j,S.mode,D),D.return=S,S=D}return c(S);case I:return j=Yl(j),Te(S,v,j,D)}if(Ie(j))return G(S,v,j,D);if(ze(j)){if(J=ze(j),typeof J!="function")throw Error(o(150));return j=J.call(j),$(S,v,j,D)}if(typeof j.then=="function")return Te(S,v,ti(j),D);if(j.$$typeof===be)return Te(S,v,Fn(S,j),D);li(S,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,v!==null&&v.tag===6?(l(S,v.sibling),D=n(v,j),D.return=S,S=D):(l(S,v),D=Mu(j,S.mode,D),D.return=S,S=D),c(S)):l(S,v)}return function(S,v,j,D){try{$a=0;var J=Te(S,v,j,D);return da=null,J}catch(L){if(L===ra||L===Pn)throw L;var ve=dt(29,L,null,S.mode);return ve.lanes=D,ve.return=S,ve}}}var Gl=Hf(!0),Bf=Hf(!1),cl=!1;function Xu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(pe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Jn(e),Sf(e,null,l),t}return Kn(e,a,t,l),Jn(e)}function Fa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,zs(e,l)}}function Zu(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Vu=!1;function Ia(){if(Vu){var e=oa;if(e!==null)throw e}}function Pa(e,t,l,a){Vu=!1;var n=e.updateQueue;cl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var h=f,N=h.next;h.next=null,c===null?i=N:c.next=N,c=h;var O=e.alternate;O!==null&&(O=O.updateQueue,f=O.lastBaseUpdate,f!==c&&(f===null?O.firstBaseUpdate=N:f.next=N,O.lastBaseUpdate=h))}if(i!==null){var R=n.baseState;c=0,O=N=h=null,f=i;do{var T=f.lane&-536870913,_=T!==f.lane;if(_?(fe&T)===T:(a&T)===T){T!==0&&T===fa&&(Vu=!0),O!==null&&(O=O.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var G=e,$=f;T=t;var Te=l;switch($.tag){case 1:if(G=$.payload,typeof G=="function"){R=G.call(Te,R,T);break e}R=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=$.payload,T=typeof G=="function"?G.call(Te,R,T):G,T==null)break e;R=B({},R,T);break e;case 2:cl=!0}}T=f.callback,T!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[T]:_.push(T))}else _={lane:T,tag:f.tag,payload:f.payload,callback:f.callback,next:null},O===null?(N=O=_,h=R):O=O.next=_,c|=T;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;_=f,f=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);O===null&&(h=R),n.baseState=h,n.firstBaseUpdate=N,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),ml|=c,e.lanes=c,e.memoizedState=R}}function Yf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function wf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Yf(l[e],t)}var ha=y(null),ai=y(0);function Gf(e,t){e=Ft,q(ai,e),q(ha,t),Ft=e|t.baseLanes}function Ku(){q(ai,Ft),q(ha,ha.current)}function Ju(){Ft=ai.current,b(ha),b(ai)}var ht=y(null),Tt=null;function ol(e){var t=e.alternate;q(qe,qe.current&1),q(ht,e),Tt===null&&(t===null||ha.current!==null||t.memoizedState!==null)&&(Tt=e)}function ku(e){q(qe,qe.current),q(ht,e),Tt===null&&(Tt=e)}function Qf(e){e.tag===22?(q(qe,qe.current),q(ht,e),Tt===null&&(Tt=e)):rl()}function rl(){q(qe,qe.current),q(ht,ht.current)}function mt(e){b(ht),Tt===e&&(Tt=null),b(qe)}var qe=y(0);function ni(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||es(l)||ts(l)))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 Lt=0,le=null,Ne=null,Ye=null,ii=!1,ma=!1,Ql=!1,ui=0,en=0,va=null,am=0;function De(){throw Error(o(321))}function $u(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rt(e[l],t[l]))return!1;return!0}function Wu(e,t,l,a,n,i){return Lt=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,p.H=e===null||e.memoizedState===null?To:rc,Ql=!1,i=l(a,n),Ql=!1,ma&&(i=Lf(t,l,a,n)),Xf(e),i}function Xf(e){p.H=an;var t=Ne!==null&&Ne.next!==null;if(Lt=0,Ye=Ne=le=null,ii=!1,en=0,va=null,t)throw Error(o(300));e===null||we||(e=e.dependencies,e!==null&&Wn(e)&&(we=!0))}function Lf(e,t,l,a){le=e;var n=0;do{if(ma&&(va=null),en=0,ma=!1,25<=n)throw Error(o(301));if(n+=1,Ye=Ne=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}p.H=Ao,i=t(l,a)}while(ma);return i}function nm(){var e=p.H,t=e.useState()[0];return t=typeof t.then=="function"?tn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(le.flags|=1024),t}function Fu(){var e=ui!==0;return ui=0,e}function Iu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Pu(e){if(ii){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ii=!1}Lt=0,Ye=Ne=le=null,ma=!1,en=ui=0,va=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?le.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function He(){if(Ne===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ye===null?le.memoizedState:Ye.next;if(t!==null)Ye=t,Ne=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ye===null?le.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function ci(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function tn(e){var t=en;return en+=1,va===null&&(va=[]),e=Rf(va,e,t),t=le,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,p.H=t===null||t.memoizedState===null?To:rc),e}function si(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return tn(e);if(e.$$typeof===be)return ke(e)}throw Error(o(438,String(e)))}function ec(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ci(),le.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=se;return t.index++,l}function Zt(e,t){return typeof t=="function"?t(e):t}function fi(e){var t=He();return tc(t,Ne,e)}function tc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var f=c=null,h=null,N=t,O=!1;do{var R=N.lane&-536870913;if(R!==N.lane?(fe&R)===R:(Lt&R)===R){var T=N.revertLane;if(T===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),R===fa&&(O=!0);else if((Lt&T)===T){N=N.next,T===fa&&(O=!0);continue}else R={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},h===null?(f=h=R,c=i):h=h.next=R,le.lanes|=T,ml|=T;R=N.action,Ql&&l(i,R),i=N.hasEagerState?N.eagerState:l(i,R)}else T={lane:R,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},h===null?(f=h=T,c=i):h=h.next=T,le.lanes|=R,ml|=R;N=N.next}while(N!==null&&N!==t);if(h===null?c=i:h.next=f,!rt(i,e.memoizedState)&&(we=!0,O&&(l=oa,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=h,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function lc(e){var t=He(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);rt(i,t.memoizedState)||(we=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Zf(e,t,l){var a=le,n=He(),i=de;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var c=!rt((Ne||n).memoizedState,l);if(c&&(n.memoizedState=l,we=!0),n=n.queue,ic(Jf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ye!==null&&Ye.memoizedState.tag&1){if(a.flags|=2048,ga(9,{destroy:void 0},Kf.bind(null,a,n,l,t),null),Ae===null)throw Error(o(349));i||(Lt&127)!==0||Vf(a,t,l)}return l}function Vf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=ci(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Kf(e,t,l,a){t.value=l,t.getSnapshot=a,kf(t)&&$f(e)}function Jf(e,t,l){return l(function(){kf(t)&&$f(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rt(e,l)}catch{return!0}}function $f(e){var t=Dl(e,2);t!==null&&ct(t,e,2)}function ac(e){var t=et();if(typeof e=="function"){var l=e;if(e=l(),Ql){el(!0);try{l()}finally{el(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},t}function Wf(e,t,l,a){return e.baseState=l,tc(e,Ne,typeof a=="function"?a:Zt)}function im(e,t,l,a,n){if(di(e))throw Error(o(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(c){i.listeners.push(c)}};p.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Ff(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Ff(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=p.T,c={};p.T=c;try{var f=l(n,a),h=p.S;h!==null&&h(c,f),If(e,t,f)}catch(N){nc(e,t,N)}finally{i!==null&&c.types!==null&&(i.types=c.types),p.T=i}}else try{i=l(n,a),If(e,t,i)}catch(N){nc(e,t,N)}}function If(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Pf(e,t,a)},function(a){return nc(e,t,a)}):Pf(e,t,l)}function Pf(e,t,l){t.status="fulfilled",t.value=l,eo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ff(e,l)))}function nc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,eo(t),t=t.next;while(t!==a)}e.action=null}function eo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function to(e,t){return t}function lo(e,t){if(de){var l=Ae.formState;if(l!==null){e:{var a=le;if(de){if(Me){t:{for(var n=Me,i=Et;n.nodeType!==8;){if(!i){n=null;break t}if(n=At(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Me=At(n.nextSibling),a=n.data==="F!";break e}}il(a)}a=!1}a&&(t=l[0])}}return l=et(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:t},l.queue=a,l=jo.bind(null,le,a),a.dispatch=l,a=ac(!1),i=oc.bind(null,le,!1,a.queue),a=et(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=im.bind(null,le,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function ao(e){var t=He();return no(t,Ne,e)}function no(e,t,l){if(t=tc(e,t,to)[0],e=fi(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=tn(t)}catch(c){throw c===ra?Pn:c}else a=t;t=He();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(le.flags|=2048,ga(9,{destroy:void 0},um.bind(null,n,l),null)),[a,i,e]}function um(e,t){e.action=t}function io(e){var t=He(),l=Ne;if(l!==null)return no(t,l,e);He(),t=t.memoizedState,l=He();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ga(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=ci(),le.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function uo(){return He().memoizedState}function oi(e,t,l,a){var n=et();le.flags|=e,n.memoizedState=ga(1|t,{destroy:void 0},l,a===void 0?null:a)}function ri(e,t,l,a){var n=He();a=a===void 0?null:a;var i=n.memoizedState.inst;Ne!==null&&a!==null&&$u(a,Ne.memoizedState.deps)?n.memoizedState=ga(t,i,l,a):(le.flags|=e,n.memoizedState=ga(1|t,i,l,a))}function co(e,t){oi(8390656,8,e,t)}function ic(e,t){ri(2048,8,e,t)}function cm(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=ci(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function so(e){var t=He().memoizedState;return cm({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function fo(e,t){return ri(4,2,e,t)}function oo(e,t){return ri(4,4,e,t)}function ro(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ho(e,t,l){l=l!=null?l.concat([e]):null,ri(4,4,ro.bind(null,t,e),l)}function uc(){}function mo(e,t){var l=He();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&$u(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function vo(e,t){var l=He();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&$u(t,a[1]))return a[0];if(a=e(),Ql){el(!0);try{e()}finally{el(!1)}}return l.memoizedState=[a,t],a}function cc(e,t,l){return l===void 0||(Lt&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=gr(),le.lanes|=e,ml|=e,l)}function go(e,t,l,a){return rt(l,t)?l:ha.current!==null?(e=cc(e,l,a),rt(e,t)||(we=!0),e):(Lt&42)===0||(Lt&1073741824)!==0&&(fe&261930)===0?(we=!0,e.memoizedState=l):(e=gr(),le.lanes|=e,ml|=e,t)}function yo(e,t,l,a,n){var i=U.p;U.p=i!==0&&8>i?i:8;var c=p.T,f={};p.T=f,oc(e,!1,t,l);try{var h=n(),N=p.S;if(N!==null&&N(f,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var O=lm(h,a);ln(e,t,O,yt(e))}else ln(e,t,a,yt(e))}catch(R){ln(e,t,{then:function(){},status:"rejected",reason:R},yt())}finally{U.p=i,c!==null&&f.types!==null&&(c.types=f.types),p.T=c}}function sm(){}function sc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=po(e).queue;yo(e,n,t,K,l===null?sm:function(){return bo(e),l(a)})}function po(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bo(e){var t=po(e);t.next===null&&(t=e.alternate.memoizedState),ln(e,t.next.queue,{},yt())}function fc(){return ke(Sn)}function So(){return He().memoizedState}function xo(){return He().memoizedState}function fm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=yt();e=sl(l);var a=fl(t,e,l);a!==null&&(ct(a,t,l),Fa(a,t,l)),t={cache:Yu()},e.payload=t;return}t=t.return}}function om(e,t,l){var a=yt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},di(e)?No(t,l):(l=zu(e,t,l,a),l!==null&&(ct(l,e,a),Eo(l,t,a)))}function jo(e,t,l){var a=yt();ln(e,t,l,a)}function ln(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(di(e))No(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,f=i(c,l);if(n.hasEagerState=!0,n.eagerState=f,rt(f,c))return Kn(e,t,n,0),Ae===null&&Vn(),!1}catch{}if(l=zu(e,t,n,a),l!==null)return ct(l,e,a),Eo(l,t,a),!0}return!1}function oc(e,t,l,a){if(a={lane:2,revertLane:Xc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},di(e)){if(t)throw Error(o(479))}else t=zu(e,l,a,2),t!==null&&ct(t,e,2)}function di(e){var t=e.alternate;return e===le||t!==null&&t===le}function No(e,t){ma=ii=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Eo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,zs(e,l)}}var an={readContext:ke,use:si,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De};an.useEffectEvent=De;var To={readContext:ke,use:si,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:ke,useEffect:co,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,oi(4194308,4,ro.bind(null,t,e),l)},useLayoutEffect:function(e,t){return oi(4194308,4,e,t)},useInsertionEffect:function(e,t){oi(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if(Ql){el(!0);try{e()}finally{el(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var n=l(t);if(Ql){el(!0);try{l(t)}finally{el(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=om.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=ac(e);var t=e.queue,l=jo.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:uc,useDeferredValue:function(e,t){var l=et();return cc(l,e,t)},useTransition:function(){var e=ac(!1);return e=yo.bind(null,le,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,n=et();if(de){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Ae===null)throw Error(o(349));(fe&127)!==0||Vf(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,co(Jf.bind(null,a,i,e),[e]),a.flags|=2048,ga(9,{destroy:void 0},Kf.bind(null,a,i,l,t),null),l},useId:function(){var e=et(),t=Ae.identifierPrefix;if(de){var l=Rt,a=Dt;l=(a&~(1<<32-ot(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=ui++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=am++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fc,useFormState:lo,useActionState:lo,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=oc.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:ec,useCacheRefresh:function(){return et().memoizedState=fm.bind(null,le)},useEffectEvent:function(e){var t=et(),l={impl:e};return t.memoizedState=l,function(){if((pe&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},rc={readContext:ke,use:si,useCallback:mo,useContext:ke,useEffect:ic,useImperativeHandle:ho,useInsertionEffect:fo,useLayoutEffect:oo,useMemo:vo,useReducer:fi,useRef:uo,useState:function(){return fi(Zt)},useDebugValue:uc,useDeferredValue:function(e,t){var l=He();return go(l,Ne.memoizedState,e,t)},useTransition:function(){var e=fi(Zt)[0],t=He().memoizedState;return[typeof e=="boolean"?e:tn(e),t]},useSyncExternalStore:Zf,useId:So,useHostTransitionStatus:fc,useFormState:ao,useActionState:ao,useOptimistic:function(e,t){var l=He();return Wf(l,Ne,e,t)},useMemoCache:ec,useCacheRefresh:xo};rc.useEffectEvent=so;var Ao={readContext:ke,use:si,useCallback:mo,useContext:ke,useEffect:ic,useImperativeHandle:ho,useInsertionEffect:fo,useLayoutEffect:oo,useMemo:vo,useReducer:lc,useRef:uo,useState:function(){return lc(Zt)},useDebugValue:uc,useDeferredValue:function(e,t){var l=He();return Ne===null?cc(l,e,t):go(l,Ne.memoizedState,e,t)},useTransition:function(){var e=lc(Zt)[0],t=He().memoizedState;return[typeof e=="boolean"?e:tn(e),t]},useSyncExternalStore:Zf,useId:So,useHostTransitionStatus:fc,useFormState:io,useActionState:io,useOptimistic:function(e,t){var l=He();return Ne!==null?Wf(l,Ne,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ec,useCacheRefresh:xo};Ao.useEffectEvent=so;function dc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:B({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var hc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=yt(),n=sl(a);n.payload=t,l!=null&&(n.callback=l),t=fl(e,n,a),t!==null&&(ct(t,e,a),Fa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=yt(),n=sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=fl(e,n,a),t!==null&&(ct(t,e,a),Fa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=yt(),a=sl(l);a.tag=2,t!=null&&(a.callback=t),t=fl(e,a,l),t!==null&&(ct(t,e,l),Fa(t,e,l))}};function zo(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!La(l,a)||!La(n,i):!0}function _o(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&hc.enqueueReplaceState(t,t.state,null)}function Xl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=B({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Mo(e){Zn(e)}function Co(e){console.error(e)}function Oo(e){Zn(e)}function hi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Do(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function mc(e,t,l){return l=sl(l),l.tag=3,l.payload={element:null},l.callback=function(){hi(e,t)},l}function Ro(e){return e=sl(e),e.tag=3,e}function Uo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Do(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Do(t,l,a),typeof n!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function rm(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&sa(t,l,n,!0),l=ht.current,l!==null){switch(l.tag){case 31:case 13:return Tt===null?Ti():l.alternate===null&&Re===0&&(Re=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ei?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),wc(e,a,n)),!1;case 22:return l.flags|=65536,a===ei?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),wc(e,a,n)),!1}throw Error(o(435,l.tag))}return wc(e,a,n),Ti(),!1}if(de)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Ru&&(e=Error(o(422),{cause:a}),Ka(xt(e,l)))):(a!==Ru&&(t=Error(o(423),{cause:a}),Ka(xt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=xt(a,l),n=mc(e.stateNode,a,n),Zu(e,n),Re!==4&&(Re=2)),!1;var i=Error(o(520),{cause:a});if(i=xt(i,l),dn===null?dn=[i]:dn.push(i),Re!==4&&(Re=2),t===null)return!0;a=xt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=mc(l.stateNode,a,e),Zu(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(vl===null||!vl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ro(n),Uo(n,e,l,a),Zu(l,n),!1}l=l.return}while(l!==null);return!1}var vc=Error(o(461)),we=!1;function $e(e,t,l,a){t.child=e===null?Bf(t,null,l,a):Gl(t,e.child,l,a)}function qo(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return Hl(t),a=Wu(e,t,l,c,i,n),f=Fu(),e!==null&&!we?(Iu(e,t,n),Vt(e,t,n)):(de&&f&&Ou(t),t.flags|=1,$e(e,t,a,n),t.child)}function Ho(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!_u(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Bo(e,t,i,a,n)):(e=kn(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Nc(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:La,l(c,a)&&e.ref===t.ref)return Vt(e,t,n)}return t.flags|=1,e=wt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Bo(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(La(i,a)&&e.ref===t.ref)if(we=!1,t.pendingProps=a=i,Nc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,Vt(e,t,n)}return gc(e,t,l,a,n)}function Yo(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return wo(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&In(t,i!==null?i.cachePool:null),i!==null?Gf(t,i):Ku(),Qf(t);else return a=t.lanes=536870912,wo(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(In(t,i.cachePool),Gf(t,i),rl(),t.memoizedState=null):(e!==null&&In(t,null),Ku(),rl());return $e(e,t,n,l),t.child}function nn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wo(e,t,l,a,n){var i=Gu();return i=i===null?null:{parent:Be._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&In(t,null),Ku(),Qf(t),e!==null&&sa(e,t,a,!0),t.childLanes=n,null}function mi(e,t){return t=gi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Go(e,t,l){return Gl(t,e.child,null,l),e=mi(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function dm(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=mi(t,a),t.lanes=536870912,nn(null,e);if(ku(t),(e=Me)?(e=Ir(e,Et),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:Dt,overflow:Rt}:null,retryLane:536870912,hydrationErrors:null},l=jf(e),l.return=t,t.child=l,Je=t,Me=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return mi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(ku(t),n)if(t.flags&256)t.flags&=-257,t=Go(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(we||sa(e,t,l,!1),n=(l&e.childLanes)!==0,we||n){if(a=Ae,a!==null&&(c=_s(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Dl(e,c),ct(a,e,c),vc;Ti(),t=Go(e,t,l)}else e=i.treeContext,Me=At(c.nextSibling),Je=t,de=!0,nl=null,Et=!1,e!==null&&Tf(t,e),t=mi(t,a),t.flags|=4096;return t}return e=wt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function vi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function gc(e,t,l,a,n){return Hl(t),l=Wu(e,t,l,a,void 0,n),a=Fu(),e!==null&&!we?(Iu(e,t,n),Vt(e,t,n)):(de&&a&&Ou(t),t.flags|=1,$e(e,t,l,n),t.child)}function Qo(e,t,l,a,n,i){return Hl(t),t.updateQueue=null,l=Lf(t,a,l,n),Xf(e),a=Fu(),e!==null&&!we?(Iu(e,t,i),Vt(e,t,i)):(de&&a&&Ou(t),t.flags|=1,$e(e,t,l,i),t.child)}function Xo(e,t,l,a,n){if(Hl(t),t.stateNode===null){var i=na,c=l.contextType;typeof c=="object"&&c!==null&&(i=ke(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=hc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Xu(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?ke(c):na,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(dc(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&hc.enqueueReplaceState(i,i.state,null),Pa(t,a,i,n),Ia(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,h=Xl(l,f);i.props=h;var N=i.context,O=l.contextType;c=na,typeof O=="object"&&O!==null&&(c=ke(O));var R=l.getDerivedStateFromProps;O=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||N!==c)&&_o(t,i,a,c),cl=!1;var T=t.memoizedState;i.state=T,Pa(t,a,i,n),Ia(),N=t.memoizedState,f||T!==N||cl?(typeof R=="function"&&(dc(t,l,R,a),N=t.memoizedState),(h=cl||zo(t,l,h,a,T,N,c))?(O||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=a,t.memoizedState=N),i.props=a,i.state=N,i.context=c,a=h):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Lu(e,t),c=t.memoizedProps,O=Xl(l,c),i.props=O,R=t.pendingProps,T=i.context,N=l.contextType,h=na,typeof N=="object"&&N!==null&&(h=ke(N)),f=l.getDerivedStateFromProps,(N=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==R||T!==h)&&_o(t,i,a,h),cl=!1,T=t.memoizedState,i.state=T,Pa(t,a,i,n),Ia();var _=t.memoizedState;c!==R||T!==_||cl||e!==null&&e.dependencies!==null&&Wn(e.dependencies)?(typeof f=="function"&&(dc(t,l,f,a),_=t.memoizedState),(O=cl||zo(t,l,O,a,T,_,h)||e!==null&&e.dependencies!==null&&Wn(e.dependencies))?(N||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,_,h),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,_,h)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),i.props=a,i.state=_,i.context=h,a=O):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,vi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Gl(t,e.child,null,n),t.child=Gl(t,null,l,n)):$e(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Vt(e,t,n),e}function Lo(e,t,l,a){return Ul(),t.flags|=256,$e(e,t,l,a),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(e){return{baseLanes:e,cachePool:Of()}}function bc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=gt),e}function Zo(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(n?ol(t):rl(),(e=Me)?(e=Ir(e,Et),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:al!==null?{id:Dt,overflow:Rt}:null,retryLane:536870912,hydrationErrors:null},l=jf(e),l.return=t,t.child=l,Je=t,Me=null)):e=null,e===null)throw il(t);return ts(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(rl(),n=t.mode,f=gi({mode:"hidden",children:f},n),a=Rl(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=pc(l),a.childLanes=bc(e,c,l),t.memoizedState=yc,nn(null,a)):(ol(t),Sc(t,f))}var h=e.memoizedState;if(h!==null&&(f=h.dehydrated,f!==null)){if(i)t.flags&256?(ol(t),t.flags&=-257,t=xc(e,t,l)):t.memoizedState!==null?(rl(),t.child=e.child,t.flags|=128,t=null):(rl(),f=a.fallback,n=t.mode,a=gi({mode:"visible",children:a.children},n),f=Rl(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,Gl(t,e.child,null,l),a=t.child,a.memoizedState=pc(l),a.childLanes=bc(e,c,l),t.memoizedState=yc,t=nn(null,a));else if(ol(t),ts(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var N=c.dgst;c=N,a=Error(o(419)),a.stack="",a.digest=c,Ka({value:a,source:null,stack:null}),t=xc(e,t,l)}else if(we||sa(e,t,l,!1),c=(l&e.childLanes)!==0,we||c){if(c=Ae,c!==null&&(a=_s(c,l),a!==0&&a!==h.retryLane))throw h.retryLane=a,Dl(e,a),ct(c,e,a),vc;es(f)||Ti(),t=xc(e,t,l)}else es(f)?(t.flags|=192,t.child=e.child,t=null):(e=h.treeContext,Me=At(f.nextSibling),Je=t,de=!0,nl=null,Et=!1,e!==null&&Tf(t,e),t=Sc(t,a.children),t.flags|=4096);return t}return n?(rl(),f=a.fallback,n=t.mode,h=e.child,N=h.sibling,a=wt(h,{mode:"hidden",children:a.children}),a.subtreeFlags=h.subtreeFlags&65011712,N!==null?f=wt(N,f):(f=Rl(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,nn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=pc(l):(n=f.cachePool,n!==null?(h=Be._currentValue,n=n.parent!==h?{parent:h,pool:h}:n):n=Of(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=bc(e,c,l),t.memoizedState=yc,nn(e.child,a)):(ol(t),l=e.child,e=l.sibling,l=wt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Sc(e,t){return t=gi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gi(e,t){return e=dt(22,e,null,t),e.lanes=0,e}function xc(e,t,l){return Gl(t,e.child,null,l),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Hu(e.return,t,l)}function jc(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function Ko(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=qe.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,q(qe,c),$e(e,t,a,l),a=de?Va:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vo(e,l,t);else if(e.tag===19)Vo(e,l,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(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&ni(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),jc(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ni(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}jc(t,!0,l,null,i,a);break;case"together":jc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Vt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ml|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(sa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Wn(e)))}function hm(e,t,l){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),ul(t,Be,e.memoizedState.cache),Ul();break;case 27:case 5:Ca(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:ul(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ku(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ol(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Zo(e,t,l):(ol(t),e=Vt(e,t,l),e!==null?e.sibling:null);ol(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(sa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ko(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),q(qe,qe.current),a)break;return null;case 22:return t.lanes=0,Yo(e,t,l,t.pendingProps);case 24:ul(t,Be,e.memoizedState.cache)}return Vt(e,t,l)}function Jo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!Nc(e,l)&&(t.flags&128)===0)return we=!1,hm(e,t,l);we=(e.flags&131072)!==0}else we=!1,de&&(t.flags&1048576)!==0&&Ef(t,Va,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Yl(t.elementType),t.type=e,typeof e=="function")_u(e)?(a=Xl(e,a),t.tag=1,t=Xo(null,t,e,a,l)):(t.tag=0,t=gc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===A){t.tag=11,t=qo(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=Ho(null,t,e,a,l);break e}}throw t=Le(e)||e,Error(o(306,t,""))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Xl(a,t.pendingProps),Xo(e,t,a,n,l);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Lu(e,t),Pa(t,a,null,l);var c=t.memoizedState;if(a=c.cache,ul(t,Be,a),a!==i.cache&&Bu(t,[Be],l,!0),Ia(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Lo(e,t,a,l);break e}else if(a!==n){n=xt(Error(o(424)),t),Ka(n),t=Lo(e,t,a,l);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Me=At(e.firstChild),Je=t,de=!0,nl=null,Et=!0,l=Bf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ul(),a===n){t=Vt(e,t,l);break e}$e(e,t,a,l)}t=t.child}return t;case 26:return vi(e,t),e===null?(l=nd(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Di(ae.current).createElement(l),a[Ke]=t,a[tt]=e,We(a,l,e),Ze(a),t.stateNode=a):t.memoizedState=nd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ca(t),e===null&&de&&(a=t.stateNode=td(t.type,t.pendingProps,ae.current),Je=t,Et=!0,n=Me,bl(t.type)?(ls=n,Me=At(a.firstChild)):Me=n),$e(e,t,t.pendingProps.children,l),vi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=a=Me)&&(a=Lm(a,t.type,t.pendingProps,Et),a!==null?(t.stateNode=a,Je=t,Me=At(a.firstChild),Et=!1,n=!0):n=!1),n||il(t)),Ca(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Fc(n,i)?a=null:c!==null&&Fc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Wu(e,t,nm,null,null,l),Sn._currentValue=n),vi(e,t),$e(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Me)&&(l=Zm(l,t.pendingProps,Et),l!==null?(t.stateNode=l,Je=t,Me=null,e=!0):e=!1),e||il(t)),null;case 13:return Zo(e,t,l);case 4:return Pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Gl(t,null,a,l):$e(e,t,a,l),t.child;case 11:return qo(e,t,t.type,t.pendingProps,l);case 7:return $e(e,t,t.pendingProps,l),t.child;case 8:return $e(e,t,t.pendingProps.children,l),t.child;case 12:return $e(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,ul(t,t.type,a.value),$e(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Hl(t),n=ke(n),a=a(n),t.flags|=1,$e(e,t,a,l),t.child;case 14:return Ho(e,t,t.type,t.pendingProps,l);case 15:return Bo(e,t,t.type,t.pendingProps,l);case 19:return Ko(e,t,l);case 31:return dm(e,t,l);case 22:return Yo(e,t,l,t.pendingProps);case 24:return Hl(t),a=ke(Be),e===null?(n=Gu(),n===null&&(n=Ae,i=Yu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Xu(t),ul(t,Be,n)):((e.lanes&l)!==0&&(Lu(e,t),Pa(t,null,null,l),Ia()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ul(t,Be,a)):(a=i.cache,ul(t,Be,a),a!==n.cache&&Bu(t,[Be],l,!0))),$e(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Kt(e){e.flags|=4}function Ec(e,t,l,a,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(Sr())e.flags|=8192;else throw wl=ei,Qu}else e.flags&=-16777217}function ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fd(t))if(Sr())e.flags|=8192;else throw wl=ei,Qu}function yi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ts():536870912,e.lanes|=t,Sa|=t)}function un(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function mm(e,t,l){var a=t.pendingProps;switch(Du(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return Ce(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Xt(Be),Ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ca(t)?Kt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uu())),Ce(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Kt(t),i!==null?(Ce(t),ko(t,i)):(Ce(t),Ec(t,n,null,a,l))):i?i!==e.memoizedState?(Kt(t),Ce(t),ko(t,i)):(Ce(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kt(t),Ce(t),Ec(t,n,e,a,l)),null;case 27:if(_n(t),l=ae.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ce(t),null}e=w.current,ca(t)?Af(t):(e=td(n,a,l),t.stateNode=e,Kt(t))}return Ce(t),null;case 5:if(_n(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ce(t),null}if(i=w.current,ca(t))Af(t);else{var c=Di(ae.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Ke]=t,i[tt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(We(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Kt(t)}}return Ce(t),Ec(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Kt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ae.current,ca(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Je,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Zr(e.nodeValue,l)),e||il(t,!0)}else e=Di(e).createTextNode(a),e[Ke]=t,t.stateNode=e}return Ce(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ca(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Ke]=t}else Ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),e=!1}else l=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ce(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ca(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Ke]=t}else Ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ce(t),n=!1}else n=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),yi(t,t.updateQueue),Ce(t),null);case 4:return Ue(),e===null&&Kc(t.stateNode.containerInfo),Ce(t),null;case 10:return Xt(t.type),Ce(t),null;case 19:if(b(qe),a=t.memoizedState,a===null)return Ce(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)un(a,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ni(e),i!==null){for(t.flags|=128,un(a,!1),e=i.updateQueue,t.updateQueue=e,yi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)xf(l,e),l=l.sibling;return q(qe,qe.current&1|2),de&&Gt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>ji&&(t.flags|=128,n=!0,un(a,!1),t.lanes=4194304)}else{if(!n)if(e=ni(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,yi(t,e),un(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!de)return Ce(t),null}else 2*st()-a.renderingStartTime>ji&&l!==536870912&&(t.flags|=128,n=!0,un(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,l=qe.current,q(qe,n?l&1|2:l&1),de&&Gt(t,a.treeForkCount),e):(Ce(t),null);case 22:case 23:return mt(t),Ju(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),l=t.updateQueue,l!==null&&yi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&b(Bl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Xt(Be),Ce(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function vm(e,t){switch(Du(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xt(Be),Ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _n(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(o(340));Ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return b(qe),null;case 4:return Ue(),null;case 10:return Xt(t.type),null;case 22:case 23:return mt(t),Ju(),e!==null&&b(Bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xt(Be),null;case 25:return null;default:return null}}function $o(e,t){switch(Du(t),t.tag){case 3:Xt(Be),Ue();break;case 26:case 27:case 5:_n(t);break;case 4:Ue();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:b(qe);break;case 10:Xt(t.type);break;case 22:case 23:mt(t),Ju(),e!==null&&b(Bl);break;case 24:Xt(Be)}}function cn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(f){je(t,t.return,f)}}function dl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=t;var h=l,N=f;try{N()}catch(O){je(n,h,O)}}}a=a.next}while(a!==i)}}catch(O){je(t,t.return,O)}}function Wo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wf(t,l)}catch(a){je(e,e.return,a)}}}function Fo(e,t,l){l.props=Xl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){je(e,t,a)}}function sn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){je(e,t,n)}}function Ut(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){je(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){je(e,t,n)}else l.current=null}function Io(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){je(e,e.return,n)}}function Tc(e,t,l){try{var a=e.stateNode;Bm(a,e.type,l,t),a[tt]=t}catch(n){je(e,e.return,n)}}function Po(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&bl(e.type)||e.tag===4}function Ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Po(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&&bl(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 zc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Bt));else if(a!==4&&(a===27&&bl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(zc(e,t,l),e=e.sibling;e!==null;)zc(e,t,l),e=e.sibling}function pi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&bl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(pi(e,t,l),e=e.sibling;e!==null;)pi(e,t,l),e=e.sibling}function er(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);We(t,a,l),t[Ke]=e,t[tt]=l}catch(i){je(e,e.return,i)}}var Jt=!1,Ge=!1,_c=!1,tr=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function gm(e,t){if(e=e.containerInfo,$c=wi,e=df(e),xu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,f=-1,h=-1,N=0,O=0,R=e,T=null;t:for(;;){for(var _;R!==l||n!==0&&R.nodeType!==3||(f=c+n),R!==i||a!==0&&R.nodeType!==3||(h=c+a),R.nodeType===3&&(c+=R.nodeValue.length),(_=R.firstChild)!==null;)T=R,R=_;for(;;){if(R===e)break t;if(T===l&&++N===n&&(f=c),T===i&&++O===a&&(h=c),(_=R.nextSibling)!==null)break;R=T,T=R.parentNode}R=_}l=f===-1||h===-1?null:{start:f,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(Wc={focusedElem:e,selectionRange:l},wi=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){switch(t=Ve,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(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var G=Xl(l.type,n);e=a.getSnapshotBeforeUpdate(G,i),a.__reactInternalSnapshotBeforeUpdate=e}catch($){je(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Pc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pc(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}}function lr(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:$t(e,l),a&4&&cn(5,l);break;case 1:if($t(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){je(l,l.return,c)}else{var n=Xl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){je(l,l.return,c)}}a&64&&Wo(l),a&512&&sn(l,l.return);break;case 3:if($t(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{wf(e,t)}catch(c){je(l,l.return,c)}}break;case 27:t===null&&a&4&&er(l);case 26:case 5:$t(e,l),t===null&&a&4&&Io(l),a&512&&sn(l,l.return);break;case 12:$t(e,l);break;case 31:$t(e,l),a&4&&ir(e,l);break;case 13:$t(e,l),a&4&&ur(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Tm.bind(null,l),Vm(e,l))));break;case 22:if(a=l.memoizedState!==null||Jt,!a){t=t!==null&&t.memoizedState!==null||Ge,n=Jt;var i=Ge;Jt=a,(Ge=t)&&!i?Wt(e,l,(l.subtreeFlags&8772)!==0):$t(e,l),Jt=n,Ge=i}break;case 30:break;default:$t(e,l)}}function ar(e){var t=e.alternate;t!==null&&(e.alternate=null,ar(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nu(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 Oe=null,at=!1;function kt(e,t,l){for(l=l.child;l!==null;)nr(e,t,l),l=l.sibling}function nr(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Oa,l)}catch{}switch(l.tag){case 26:Ge||Ut(l,t),kt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ge||Ut(l,t);var a=Oe,n=at;bl(l.type)&&(Oe=l.stateNode,at=!1),kt(e,t,l),yn(l.stateNode),Oe=a,at=n;break;case 5:Ge||Ut(l,t);case 6:if(a=Oe,n=at,Oe=null,kt(e,t,l),Oe=a,at=n,Oe!==null)if(at)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(l.stateNode)}catch(i){je(l,t,i)}else try{Oe.removeChild(l.stateNode)}catch(i){je(l,t,i)}break;case 18:Oe!==null&&(at?(e=Oe,Wr(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),_a(e)):Wr(Oe,l.stateNode));break;case 4:a=Oe,n=at,Oe=l.stateNode.containerInfo,at=!0,kt(e,t,l),Oe=a,at=n;break;case 0:case 11:case 14:case 15:dl(2,l,t),Ge||dl(4,l,t),kt(e,t,l);break;case 1:Ge||(Ut(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Fo(l,t,a)),kt(e,t,l);break;case 21:kt(e,t,l);break;case 22:Ge=(a=Ge)||l.memoizedState!==null,kt(e,t,l),Ge=a;break;default:kt(e,t,l)}}function ir(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_a(e)}catch(l){je(t,t.return,l)}}}function ur(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_a(e)}catch(l){je(t,t.return,l)}}function ym(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tr),t;default:throw Error(o(435,e.tag))}}function bi(e,t){var l=ym(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Am.bind(null,e,a);a.then(n,n)}})}function nt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(bl(f.type)){Oe=f.stateNode,at=!1;break e}break;case 5:Oe=f.stateNode,at=!1;break e;case 3:case 4:Oe=f.stateNode.containerInfo,at=!0;break e}f=f.return}if(Oe===null)throw Error(o(160));nr(i,c,n),Oe=null,at=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cr(t,e),t=t.sibling}var Mt=null;function cr(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nt(t,e),it(e),a&4&&(dl(3,e,e.return),cn(3,e),dl(5,e,e.return));break;case 1:nt(t,e),it(e),a&512&&(Ge||l===null||Ut(l,l.return)),a&64&&Jt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Mt;if(nt(t,e),it(e),a&512&&(Ge||l===null||Ut(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Ua]||i[Ke]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),We(i,a,l),i[Ke]=e,Ze(i),a=i;break e;case"link":var c=cd("link","href",n).get(a+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(i=c[f],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(f,1);break t}}i=n.createElement(a),We(i,a,l),n.head.appendChild(i);break;case"meta":if(c=cd("meta","content",n).get(a+(l.content||""))){for(f=0;f<c.length;f++)if(i=c[f],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(f,1);break t}}i=n.createElement(a),We(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[Ke]=e,Ze(i),a=i}e.stateNode=a}else sd(n,e.type,e.stateNode);else e.stateNode=ud(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?sd(n,e.type,e.stateNode):ud(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Tc(e,e.memoizedProps,l.memoizedProps)}break;case 27:nt(t,e),it(e),a&512&&(Ge||l===null||Ut(l,l.return)),l!==null&&a&4&&Tc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(nt(t,e),it(e),a&512&&(Ge||l===null||Ut(l,l.return)),e.flags&32){n=e.stateNode;try{Fl(n,"")}catch(G){je(e,e.return,G)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Tc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(_c=!0);break;case 6:if(nt(t,e),it(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(G){je(e,e.return,G)}}break;case 3:if(qi=null,n=Mt,Mt=Ri(t.containerInfo),nt(t,e),Mt=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{_a(t.containerInfo)}catch(G){je(e,e.return,G)}_c&&(_c=!1,sr(e));break;case 4:a=Mt,Mt=Ri(e.stateNode.containerInfo),nt(t,e),it(e),Mt=a;break;case 12:nt(t,e),it(e);break;case 31:nt(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bi(e,a)));break;case 13:nt(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xi=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bi(e,a)));break;case 22:n=e.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,N=Jt,O=Ge;if(Jt=N||n,Ge=O||h,nt(t,e),Ge=O,Jt=N,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||h||Jt||Ge||Ll(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){h=l=t;try{if(i=h.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=h.stateNode;var R=h.memoizedProps.style,T=R!=null&&R.hasOwnProperty("display")?R.display:null;f.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(G){je(h,h.return,G)}}}else if(t.tag===6){if(l===null){h=t;try{h.stateNode.nodeValue=n?"":h.memoizedProps}catch(G){je(h,h.return,G)}}}else if(t.tag===18){if(l===null){h=t;try{var _=h.stateNode;n?Fr(_,!0):Fr(h.stateNode,!1)}catch(G){je(h,h.return,G)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,bi(e,l))));break;case 19:nt(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bi(e,a)));break;case 30:break;case 21:break;default:nt(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Po(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=Ac(e);pi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(Fl(c,""),l.flags&=-33);var f=Ac(e);pi(e,f,c);break;case 3:case 4:var h=l.stateNode.containerInfo,N=Ac(e);zc(e,N,h);break;default:throw Error(o(161))}}catch(O){je(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sr(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;sr(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $t(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lr(e,t.alternate,t),t=t.sibling}function Ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:dl(4,t,t.return),Ll(t);break;case 1:Ut(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Fo(t,t.return,l),Ll(t);break;case 27:yn(t.stateNode);case 26:case 5:Ut(t,t.return),Ll(t);break;case 22:t.memoizedState===null&&Ll(t);break;case 30:Ll(t);break;default:Ll(t)}e=e.sibling}}function Wt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Wt(n,i,l),cn(4,i);break;case 1:if(Wt(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){je(a,a.return,N)}if(a=i,n=a.updateQueue,n!==null){var f=a.stateNode;try{var h=n.shared.hiddenCallbacks;if(h!==null)for(n.shared.hiddenCallbacks=null,n=0;n<h.length;n++)Yf(h[n],f)}catch(N){je(a,a.return,N)}}l&&c&64&&Wo(i),sn(i,i.return);break;case 27:er(i);case 26:case 5:Wt(n,i,l),l&&a===null&&c&4&&Io(i),sn(i,i.return);break;case 12:Wt(n,i,l);break;case 31:Wt(n,i,l),l&&c&4&&ir(n,i);break;case 13:Wt(n,i,l),l&&c&4&&ur(n,i);break;case 22:i.memoizedState===null&&Wt(n,i,l),sn(i,i.return);break;case 30:break;default:Wt(n,i,l)}t=t.sibling}}function Mc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ja(l))}function Cc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e))}function Ct(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fr(e,t,l,a),t=t.sibling}function fr(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ct(e,t,l,a),n&2048&&cn(9,t);break;case 1:Ct(e,t,l,a);break;case 3:Ct(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e)));break;case 12:if(n&2048){Ct(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,f=i.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(h){je(t,t.return,h)}}else Ct(e,t,l,a);break;case 31:Ct(e,t,l,a);break;case 13:Ct(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Ct(e,t,l,a):fn(e,t):i._visibility&2?Ct(e,t,l,a):(i._visibility|=2,ya(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Mc(c,t);break;case 24:Ct(e,t,l,a),n&2048&&Cc(t.alternate,t);break;default:Ct(e,t,l,a)}}function ya(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,f=l,h=a,N=c.flags;switch(c.tag){case 0:case 11:case 15:ya(i,c,f,h,n),cn(8,c);break;case 23:break;case 22:var O=c.stateNode;c.memoizedState!==null?O._visibility&2?ya(i,c,f,h,n):fn(i,c):(O._visibility|=2,ya(i,c,f,h,n)),n&&N&2048&&Mc(c.alternate,c);break;case 24:ya(i,c,f,h,n),n&&N&2048&&Cc(c.alternate,c);break;default:ya(i,c,f,h,n)}t=t.sibling}}function fn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:fn(l,a),n&2048&&Mc(a.alternate,a);break;case 24:fn(l,a),n&2048&&Cc(a.alternate,a);break;default:fn(l,a)}t=t.sibling}}var on=8192;function pa(e,t,l){if(e.subtreeFlags&on)for(e=e.child;e!==null;)or(e,t,l),e=e.sibling}function or(e,t,l){switch(e.tag){case 26:pa(e,t,l),e.flags&on&&e.memoizedState!==null&&av(l,Mt,e.memoizedState,e.memoizedProps);break;case 5:pa(e,t,l);break;case 3:case 4:var a=Mt;Mt=Ri(e.stateNode.containerInfo),pa(e,t,l),Mt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,pa(e,t,l),on=a):pa(e,t,l));break;default:pa(e,t,l)}}function rr(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 rn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ve=a,hr(a,e)}rr(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)dr(e),e=e.sibling}function dr(e){switch(e.tag){case 0:case 11:case 15:rn(e),e.flags&2048&&dl(9,e,e.return);break;case 3:rn(e);break;case 12:rn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Si(e)):rn(e);break;default:rn(e)}}function Si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ve=a,hr(a,e)}rr(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:dl(8,t,t.return),Si(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Si(t));break;default:Si(t)}e=e.sibling}}function hr(e,t){for(;Ve!==null;){var l=Ve;switch(l.tag){case 0:case 11:case 15:dl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ja(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ve=a;else e:for(l=e;Ve!==null;){a=Ve;var n=a.sibling,i=a.return;if(ar(a),a===l){Ve=null;break e}if(n!==null){n.return=i,Ve=n;break e}Ve=i}}}var pm={getCacheForType:function(e){var t=ke(Be),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ke(Be).controller.signal}},bm=typeof WeakMap=="function"?WeakMap:Map,pe=0,Ae=null,ue=null,fe=0,xe=0,vt=null,hl=!1,ba=!1,Oc=!1,Ft=0,Re=0,ml=0,Zl=0,Dc=0,gt=0,Sa=0,dn=null,ut=null,Rc=!1,xi=0,mr=0,ji=1/0,Ni=null,vl=null,Qe=0,gl=null,xa=null,It=0,Uc=0,qc=null,vr=null,hn=0,Hc=null;function yt(){return(pe&2)!==0&&fe!==0?fe&-fe:p.T!==null?Xc():Ms()}function gr(){if(gt===0)if((fe&536870912)===0||de){var e=On;On<<=1,(On&3932160)===0&&(On=262144),gt=e}else gt=536870912;return e=ht.current,e!==null&&(e.flags|=32),gt}function ct(e,t,l){(e===Ae&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(ja(e,0),yl(e,fe,gt,!1)),Ra(e,l),((pe&2)===0||e!==Ae)&&(e===Ae&&((pe&2)===0&&(Zl|=l),Re===4&&yl(e,fe,gt,!1)),qt(e))}function yr(e,t,l){if((pe&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Da(e,t),n=a?jm(e,t):Yc(e,t,!0),i=a;do{if(n===0){ba&&!a&&yl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Sm(l)){n=Yc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var f=e;n=dn;var h=f.current.memoizedState.isDehydrated;if(h&&(ja(f,c).flags|=256),c=Yc(f,c,!1),c!==2){if(Oc&&!h){f.errorRecoveryDisabledLanes|=i,Zl|=i,n=4;break e}i=ut,ut=n,i!==null&&(ut===null?ut=i:ut.push.apply(ut,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){ja(e,0),yl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,gt,!hl);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=xi+300-st(),10<n)){if(yl(a,t,gt,!hl),Rn(a,0,!0)!==0)break e;It=t,a.timeoutHandle=kr(pr.bind(null,a,l,ut,Ni,Rc,t,gt,Zl,Sa,hl,i,"Throttled",-0,0),n);break e}pr(a,l,ut,Ni,Rc,t,gt,Zl,Sa,hl,i,null,-0,0)}}break}while(!0);qt(e)}function pr(e,t,l,a,n,i,c,f,h,N,O,R,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:Bt},or(t,i,R);var G=(i&62914560)===i?xi-st():(i&4194048)===i?mr-st():0;if(G=nv(R,G),G!==null){It=i,e.cancelPendingCommit=G(Ar.bind(null,e,t,i,l,a,n,c,f,h,O,R,null,T,_)),yl(e,i,c,!N);return}}Ar(e,t,i,l,a,n,c,f,h)}function Sm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!rt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 yl(e,t,l,a){t&=~Dc,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-ot(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&As(e,l,t)}function Ei(){return(pe&6)===0?(mn(0),!1):!0}function Bc(){if(ue!==null){if(xe===0)var e=ue.return;else e=ue,Qt=ql=null,Pu(e),da=null,$a=0,e=ue;for(;e!==null;)$o(e.alternate,e),e=e.return;ue=null}}function ja(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Gm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),It=0,Bc(),Ae=e,ue=l=wt(e.current,null),fe=t,xe=0,vt=null,hl=!1,ba=Da(e,t),Oc=!1,Sa=gt=Dc=Zl=ml=Re=0,ut=dn=null,Rc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ot(a),i=1<<n;t|=e[n],a&=~i}return Ft=t,Vn(),l}function br(e,t){le=null,p.H=an,t===ra||t===Pn?(t=Uf(),xe=3):t===Qu?(t=Uf(),xe=4):xe=t===vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,ue===null&&(Re=1,hi(e,xt(t,e.current)))}function Sr(){var e=ht.current;return e===null?!0:(fe&4194048)===fe?Tt===null:(fe&62914560)===fe||(fe&536870912)!==0?e===Tt:!1}function xr(){var e=p.H;return p.H=an,e===null?an:e}function jr(){var e=p.A;return p.A=pm,e}function Ti(){Re=4,hl||(fe&4194048)!==fe&&ht.current!==null||(ba=!0),(ml&134217727)===0&&(Zl&134217727)===0||Ae===null||yl(Ae,fe,gt,!1)}function Yc(e,t,l){var a=pe;pe|=2;var n=xr(),i=jr();(Ae!==e||fe!==t)&&(Ni=null,ja(e,t)),t=!1;var c=Re;e:do try{if(xe!==0&&ue!==null){var f=ue,h=vt;switch(xe){case 8:Bc(),c=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var N=xe;if(xe=0,vt=null,Na(e,f,h,N),l&&ba){c=0;break e}break;default:N=xe,xe=0,vt=null,Na(e,f,h,N)}}xm(),c=Re;break}catch(O){br(e,O)}while(!0);return t&&e.shellSuspendCounter++,Qt=ql=null,pe=a,p.H=n,p.A=i,ue===null&&(Ae=null,fe=0,Vn()),c}function xm(){for(;ue!==null;)Nr(ue)}function jm(e,t){var l=pe;pe|=2;var a=xr(),n=jr();Ae!==e||fe!==t?(Ni=null,ji=st()+500,ja(e,t)):ba=Da(e,t);e:do try{if(xe!==0&&ue!==null){t=ue;var i=vt;t:switch(xe){case 1:xe=0,vt=null,Na(e,t,i,1);break;case 2:case 9:if(Df(i)){xe=0,vt=null,Er(t);break}t=function(){xe!==2&&xe!==9||Ae!==e||(xe=7),qt(e)},i.then(t,t);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:Df(i)?(xe=0,vt=null,Er(t)):(xe=0,vt=null,Na(e,t,i,7));break;case 5:var c=null;switch(ue.tag){case 26:c=ue.memoizedState;case 5:case 27:var f=ue;if(c?fd(c):f.stateNode.complete){xe=0,vt=null;var h=f.sibling;if(h!==null)ue=h;else{var N=f.return;N!==null?(ue=N,Ai(N)):ue=null}break t}}xe=0,vt=null,Na(e,t,i,5);break;case 6:xe=0,vt=null,Na(e,t,i,6);break;case 8:Bc(),Re=6;break e;default:throw Error(o(462))}}Nm();break}catch(O){br(e,O)}while(!0);return Qt=ql=null,p.H=a,p.A=n,pe=l,ue!==null?0:(Ae=null,fe=0,Vn(),Re)}function Nm(){for(;ue!==null&&!Kd();)Nr(ue)}function Nr(e){var t=Jo(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Ai(e):ue=t}function Er(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Qo(l,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=Qo(l,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:Pu(t);default:$o(l,t),t=ue=xf(t,Ft),t=Jo(l,t,Ft)}e.memoizedProps=e.pendingProps,t===null?Ai(e):ue=t}function Na(e,t,l,a){Qt=ql=null,Pu(t),da=null,$a=0;var n=t.return;try{if(rm(e,n,t,l,fe)){Re=1,hi(e,xt(l,e.current)),ue=null;return}}catch(i){if(n!==null)throw ue=n,i;Re=1,hi(e,xt(l,e.current)),ue=null;return}t.flags&32768?(de||a===1?e=!0:ba||(fe&536870912)!==0?e=!1:(hl=e=!0,(a===2||a===9||a===3||a===6)&&(a=ht.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tr(t,e)):Ai(t)}function Ai(e){var t=e;do{if((t.flags&32768)!==0){Tr(t,hl);return}e=t.return;var l=mm(t.alternate,t,Ft);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Re===0&&(Re=5)}function Tr(e,t){do{var l=vm(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);Re=6,ue=null}function Ar(e,t,l,a,n,i,c,f,h){e.cancelPendingCommit=null;do zi();while(Qe!==0);if((pe&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=Au,lh(e,l,i,c,f,h),e===Ae&&(ue=Ae=null,fe=0),xa=t,gl=e,It=l,Uc=i,qc=n,vr=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zm(Mn,function(){return Or(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=p.T,p.T=null,n=U.p,U.p=2,c=pe,pe|=4;try{gm(e,t,l)}finally{pe=c,U.p=n,p.T=a}}Qe=1,zr(),_r(),Mr()}}function zr(){if(Qe===1){Qe=0;var e=gl,t=xa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=p.T,p.T=null;var a=U.p;U.p=2;var n=pe;pe|=4;try{cr(t,e);var i=Wc,c=df(e.containerInfo),f=i.focusedElem,h=i.selectionRange;if(c!==f&&f&&f.ownerDocument&&rf(f.ownerDocument.documentElement,f)){if(h!==null&&xu(f)){var N=h.start,O=h.end;if(O===void 0&&(O=N),"selectionStart"in f)f.selectionStart=N,f.selectionEnd=Math.min(O,f.value.length);else{var R=f.ownerDocument||document,T=R&&R.defaultView||window;if(T.getSelection){var _=T.getSelection(),G=f.textContent.length,$=Math.min(h.start,G),Te=h.end===void 0?$:Math.min(h.end,G);!_.extend&&$>Te&&(c=Te,Te=$,$=c);var S=of(f,$),v=of(f,Te);if(S&&v&&(_.rangeCount!==1||_.anchorNode!==S.node||_.anchorOffset!==S.offset||_.focusNode!==v.node||_.focusOffset!==v.offset)){var j=R.createRange();j.setStart(S.node,S.offset),_.removeAllRanges(),$>Te?(_.addRange(j),_.extend(v.node,v.offset)):(j.setEnd(v.node,v.offset),_.addRange(j))}}}}for(R=[],_=f;_=_.parentNode;)_.nodeType===1&&R.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<R.length;f++){var D=R[f];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}wi=!!$c,Wc=$c=null}finally{pe=n,U.p=a,p.T=l}}e.current=t,Qe=2}}function _r(){if(Qe===2){Qe=0;var e=gl,t=xa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=p.T,p.T=null;var a=U.p;U.p=2;var n=pe;pe|=4;try{lr(e,t.alternate,t)}finally{pe=n,U.p=a,p.T=l}}Qe=3}}function Mr(){if(Qe===4||Qe===3){Qe=0,Jd();var e=gl,t=xa,l=It,a=vr;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Qe=5:(Qe=0,xa=gl=null,Cr(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(vl=null),lu(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Oa,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=p.T,n=U.p,U.p=2,p.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];i(f.value,{componentStack:f.stack})}}finally{p.T=t,U.p=n}}(It&3)!==0&&zi(),qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Hc?hn++:(hn=0,Hc=e):hn=0,mn(0)}}function Cr(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ja(t)))}function zi(){return zr(),_r(),Mr(),Or()}function Or(){if(Qe!==5)return!1;var e=gl,t=Uc;Uc=0;var l=lu(It),a=p.T,n=U.p;try{U.p=32>l?32:l,p.T=null,l=qc,qc=null;var i=gl,c=It;if(Qe=0,xa=gl=null,It=0,(pe&6)!==0)throw Error(o(331));var f=pe;if(pe|=4,dr(i.current),fr(i,i.current,c,l),pe=f,mn(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Oa,i)}catch{}return!0}finally{U.p=n,p.T=a,Cr(e,t)}}function Dr(e,t,l){t=xt(l,t),t=mc(e.stateNode,t,2),e=fl(e,t,2),e!==null&&(Ra(e,2),qt(e))}function je(e,t,l){if(e.tag===3)Dr(e,e,l);else for(;t!==null;){if(t.tag===3){Dr(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(vl===null||!vl.has(a))){e=xt(l,e),l=Ro(2),a=fl(t,l,2),a!==null&&(Uo(l,a,t,e),Ra(a,2),qt(a));break}}t=t.return}}function wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new bm;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Oc=!0,n.add(l),e=Em.bind(null,e,t,l),t.then(e,e))}function Em(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(fe&l)===l&&(Re===4||Re===3&&(fe&62914560)===fe&&300>st()-xi?(pe&2)===0&&ja(e,0):Dc|=l,Sa===fe&&(Sa=0)),qt(e)}function Rr(e,t){t===0&&(t=Ts()),e=Dl(e,t),e!==null&&(Ra(e,t),qt(e))}function Tm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Rr(e,l)}function Am(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Rr(e,l)}function zm(e,t){return Ii(e,t)}var _i=null,Ea=null,Gc=!1,Mi=!1,Qc=!1,pl=0;function qt(e){e!==Ea&&e.next===null&&(Ea===null?_i=Ea=e:Ea=Ea.next=e),Mi=!0,Gc||(Gc=!0,Mm())}function mn(e,t){if(!Qc&&Mi){Qc=!0;do for(var l=!1,a=_i;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-ot(42|e)+1)-1,i&=n&~(c&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Br(a,i))}else i=fe,i=Rn(a,a===Ae?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Da(a,i)||(l=!0,Br(a,i));a=a.next}while(l);Qc=!1}}function _m(){Ur()}function Ur(){Mi=Gc=!1;var e=0;pl!==0&&wm()&&(e=pl);for(var t=st(),l=null,a=_i;a!==null;){var n=a.next,i=qr(a,t);i===0?(a.next=null,l===null?_i=n:l.next=n,n===null&&(Ea=l)):(l=a,(e!==0||(i&3)!==0)&&(Mi=!0)),a=n}Qe!==0&&Qe!==5||mn(e),pl!==0&&(pl=0)}function qr(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-ot(i),f=1<<c,h=n[c];h===-1?((f&l)===0||(f&a)!==0)&&(n[c]=th(f,t)):h<=t&&(e.expiredLanes|=f),i&=~f}if(t=Ae,l=fe,l=Rn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Pi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Da(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Pi(a),lu(l)){case 2:case 8:l=Ns;break;case 32:l=Mn;break;case 268435456:l=Es;break;default:l=Mn}return a=Hr.bind(null,e),l=Ii(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Pi(a),e.callbackPriority=2,e.callbackNode=null,2}function Hr(e,t){if(Qe!==0&&Qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(zi()&&e.callbackNode!==l)return null;var a=fe;return a=Rn(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(yr(e,a,t),qr(e,st()),e.callbackNode!=null&&e.callbackNode===l?Hr.bind(null,e):null)}function Br(e,t){if(zi())return null;yr(e,t,!0)}function Mm(){Qm(function(){(pe&6)!==0?Ii(js,_m):Ur()})}function Xc(){if(pl===0){var e=fa;e===0&&(e=Cn,Cn<<=1,(Cn&261888)===0&&(Cn=256)),pl=e}return pl}function Yr(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bn(""+e)}function wr(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Cm(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Yr((n[tt]||null).action),c=a.submitter;c&&(t=(t=c[tt]||null)?Yr(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var f=new Qn("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(pl!==0){var h=c?wr(n,c):new FormData(n);sc(l,{pending:!0,data:h,method:n.method,action:i},null,h)}}else typeof i=="function"&&(f.preventDefault(),h=c?wr(n,c):new FormData(n),sc(l,{pending:!0,data:h,method:n.method,action:i},i,h))},currentTarget:n}]})}}for(var Lc=0;Lc<Tu.length;Lc++){var Zc=Tu[Lc],Om=Zc.toLowerCase(),Dm=Zc[0].toUpperCase()+Zc.slice(1);_t(Om,"on"+Dm)}_t(vf,"onAnimationEnd"),_t(gf,"onAnimationIteration"),_t(yf,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(kh,"onTransitionRun"),_t($h,"onTransitionStart"),_t(Wh,"onTransitionCancel"),_t(pf,"onTransitionEnd"),$l("onMouseEnter",["mouseout","mouseover"]),$l("onMouseLeave",["mouseout","mouseover"]),$l("onPointerEnter",["pointerout","pointerover"]),$l("onPointerLeave",["pointerout","pointerover"]),_l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_l("onBeforeInput",["compositionend","keypress","textInput","paste"]),_l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vn="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(" "),Rm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vn));function Gr(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var f=a[c],h=f.instance,N=f.currentTarget;if(f=f.listener,h!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=N;try{i(n)}catch(O){Zn(O)}n.currentTarget=null,i=h}else for(c=0;c<a.length;c++){if(f=a[c],h=f.instance,N=f.currentTarget,f=f.listener,h!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=N;try{i(n)}catch(O){Zn(O)}n.currentTarget=null,i=h}}}}function ce(e,t){var l=t[au];l===void 0&&(l=t[au]=new Set);var a=e+"__bubble";l.has(a)||(Qr(t,e,2,!1),l.add(a))}function Vc(e,t,l){var a=0;t&&(a|=4),Qr(l,e,a,t)}var Ci="_reactListening"+Math.random().toString(36).slice(2);function Kc(e){if(!e[Ci]){e[Ci]=!0,Ds.forEach(function(l){l!=="selectionchange"&&(Rm.has(l)||Vc(l,!1,e),Vc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ci]||(t[Ci]=!0,Vc("selectionchange",!1,t))}}function Qr(e,t,l,a){switch(gd(t)){case 2:var n=cv;break;case 8:n=sv;break;default:n=cs}l=n.bind(null,t,l,e),n=void 0,!du||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Jc(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var h=c.tag;if((h===3||h===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=Kl(f),c===null)return;if(h=c.tag,h===5||h===6||h===26||h===27){a=i=c;continue e}f=f.parentNode}}a=a.return}Zs(function(){var N=i,O=ou(l),R=[];e:{var T=bf.get(e);if(T!==void 0){var _=Qn,G=e;switch(e){case"keypress":if(wn(l)===0)break e;case"keydown":case"keyup":_=Ah;break;case"focusin":G="focus",_=gu;break;case"focusout":G="blur",_=gu;break;case"beforeblur":case"afterblur":_=gu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Js;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Mh;break;case vf:case gf:case yf:_=yh;break;case pf:_=Oh;break;case"scroll":case"scrollend":_=dh;break;case"wheel":_=Rh;break;case"copy":case"cut":case"paste":_=bh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=$s;break;case"toggle":case"beforetoggle":_=qh}var $=(t&4)!==0,Te=!$&&(e==="scroll"||e==="scrollend"),S=$?T!==null?T+"Capture":null:T;$=[];for(var v=N,j;v!==null;){var D=v;if(j=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||j===null||S===null||(D=Ha(v,S),D!=null&&$.push(gn(v,D,j))),Te)break;v=v.return}0<$.length&&(T=new _(T,G,null,l,O),R.push({event:T,listeners:$}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",T&&l!==fu&&(G=l.relatedTarget||l.fromElement)&&(Kl(G)||G[Vl]))break e;if((_||T)&&(T=O.window===O?O:(T=O.ownerDocument)?T.defaultView||T.parentWindow:window,_?(G=l.relatedTarget||l.toElement,_=N,G=G?Kl(G):null,G!==null&&(Te=g(G),$=G.tag,G!==Te||$!==5&&$!==27&&$!==6)&&(G=null)):(_=null,G=N),_!==G)){if($=Js,D="onMouseLeave",S="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&($=$s,D="onPointerLeave",S="onPointerEnter",v="pointer"),Te=_==null?T:qa(_),j=G==null?T:qa(G),T=new $(D,v+"leave",_,l,O),T.target=Te,T.relatedTarget=j,D=null,Kl(O)===N&&($=new $(S,v+"enter",G,l,O),$.target=j,$.relatedTarget=Te,D=$),Te=D,_&&G)t:{for($=Um,S=_,v=G,j=0,D=S;D;D=$(D))j++;D=0;for(var J=v;J;J=$(J))D++;for(;0<j-D;)S=$(S),j--;for(;0<D-j;)v=$(v),D--;for(;j--;){if(S===v||v!==null&&S===v.alternate){$=S;break t}S=$(S),v=$(v)}$=null}else $=null;_!==null&&Xr(R,T,_,$,!1),G!==null&&Te!==null&&Xr(R,Te,G,$,!0)}}e:{if(T=N?qa(N):window,_=T.nodeName&&T.nodeName.toLowerCase(),_==="select"||_==="input"&&T.type==="file")var ve=af;else if(tf(T))if(nf)ve=Vh;else{ve=Lh;var L=Xh}else _=T.nodeName,!_||_.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?N&&su(N.elementType)&&(ve=af):ve=Zh;if(ve&&(ve=ve(e,N))){lf(R,ve,l,O);break e}L&&L(e,T,N),e==="focusout"&&N&&T.type==="number"&&N.memoizedProps.value!=null&&cu(T,"number",T.value)}switch(L=N?qa(N):window,e){case"focusin":(tf(L)||L.contentEditable==="true")&&(ta=L,ju=N,Za=null);break;case"focusout":Za=ju=ta=null;break;case"mousedown":Nu=!0;break;case"contextmenu":case"mouseup":case"dragend":Nu=!1,hf(R,l,O);break;case"selectionchange":if(Jh)break;case"keydown":case"keyup":hf(R,l,O)}var ne;if(pu)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else ea?Ps(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(Ws&&l.locale!=="ko"&&(ea||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ea&&(ne=Vs()):(ll=O,hu="value"in ll?ll.value:ll.textContent,ea=!0)),L=Oi(N,oe),0<L.length&&(oe=new ks(oe,e,null,l,O),R.push({event:oe,listeners:L}),ne?oe.data=ne:(ne=ef(l),ne!==null&&(oe.data=ne)))),(ne=Bh?Yh(e,l):wh(e,l))&&(oe=Oi(N,"onBeforeInput"),0<oe.length&&(L=new ks("onBeforeInput","beforeinput",null,l,O),R.push({event:L,listeners:oe}),L.data=ne)),Cm(R,e,N,l,O)}Gr(R,t)})}function gn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Oi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ha(e,l),n!=null&&a.unshift(gn(e,n,i)),n=Ha(e,t),n!=null&&a.push(gn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Um(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xr(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var f=l,h=f.alternate,N=f.stateNode;if(f=f.tag,h!==null&&h===a)break;f!==5&&f!==26&&f!==27||N===null||(h=N,n?(N=Ha(l,i),N!=null&&c.unshift(gn(l,N,h))):n||(N=Ha(l,i),N!=null&&c.push(gn(l,N,h)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var qm=/\r\n?/g,Hm=/\u0000|\uFFFD/g;function Lr(e){return(typeof e=="string"?e:""+e).replace(qm,`
|
|
9
|
+
`).replace(Hm,"")}function Zr(e,t){return t=Lr(t),Lr(e)===t}function Ee(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Fl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Fl(e,""+a);break;case"className":qn(e,"class",a);break;case"tabIndex":qn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":qn(e,l,a);break;case"style":Xs(e,a,i);break;case"data":if(t!=="object"){qn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Bn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Ee(e,t,"name",n.name,n,null),Ee(e,t,"formEncType",n.formEncType,n,null),Ee(e,t,"formMethod",n.formMethod,n,null),Ee(e,t,"formTarget",n.formTarget,n,null)):(Ee(e,t,"encType",n.encType,n,null),Ee(e,t,"method",n.method,n,null),Ee(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Bn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Bt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Bn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ce("beforetoggle",e),ce("toggle",e),Un(e,"popover",a);break;case"xlinkActuate":Ht(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ht(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ht(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ht(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ht(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ht(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ht(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Un(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=oh.get(l)||l,Un(e,l,a))}}function kc(e,t,l,a,n,i){switch(l){case"style":Xs(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Fl(e,a):(typeof a=="number"||typeof a=="bigint")&&Fl(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Bt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Rs.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[tt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Un(e,l,a)}}}function We(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ee(e,t,i,c,l,null)}}n&&Ee(e,t,"srcSet",l.srcSet,l,null),a&&Ee(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var f=i=c=n=null,h=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":c=O;break;case"checked":h=O;break;case"defaultChecked":N=O;break;case"value":i=O;break;case"defaultValue":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(o(137,t));break;default:Ee(e,t,a,O,l,null)}}Ys(e,i,f,h,N,c,n,!1);return;case"select":ce("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:Ee(e,t,n,f,l,null)}t=i,l=c,e.multiple=!!a,t!=null?Wl(e,!!a,t,!1):l!=null&&Wl(e,!!a,l,!0);return;case"textarea":ce("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:Ee(e,t,c,f,l,null)}Gs(e,a,n,i);return;case"option":for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null)&&(h==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":Ee(e,t,h,a,l,null));return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<vn.length;a++)ce(vn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ee(e,t,N,a,l,null)}return;default:if(su(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&kc(e,t,O,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&Ee(e,t,f,a,l,null))}function Bm(e,t,l,a){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,c=null,f=null,h=null,N=null,O=null;for(_ in l){var R=l[_];if(l.hasOwnProperty(_)&&R!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":h=R;default:a.hasOwnProperty(_)||Ee(e,t,_,null,a,R)}}for(var T in a){var _=a[T];if(R=l[T],a.hasOwnProperty(T)&&(_!=null||R!=null))switch(T){case"type":i=_;break;case"name":n=_;break;case"checked":N=_;break;case"defaultChecked":O=_;break;case"value":c=_;break;case"defaultValue":f=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:_!==R&&Ee(e,t,T,_,a,R)}}uu(e,c,f,h,N,O,i,n);return;case"select":_=c=f=T=null;for(i in l)if(h=l[i],l.hasOwnProperty(i)&&h!=null)switch(i){case"value":break;case"multiple":_=h;default:a.hasOwnProperty(i)||Ee(e,t,i,null,a,h)}for(n in a)if(i=a[n],h=l[n],a.hasOwnProperty(n)&&(i!=null||h!=null))switch(n){case"value":T=i;break;case"defaultValue":f=i;break;case"multiple":c=i;default:i!==h&&Ee(e,t,n,i,a,h)}t=f,l=c,a=_,T!=null?Wl(e,!!l,T,!1):!!a!=!!l&&(t!=null?Wl(e,!!l,t,!0):Wl(e,!!l,l?[]:"",!1));return;case"textarea":_=T=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Ee(e,t,f,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":T=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Ee(e,t,c,n,a,i)}ws(e,T,_);return;case"option":for(var G in l)T=l[G],l.hasOwnProperty(G)&&T!=null&&!a.hasOwnProperty(G)&&(G==="selected"?e.selected=!1:Ee(e,t,G,null,a,T));for(h in a)T=a[h],_=l[h],a.hasOwnProperty(h)&&T!==_&&(T!=null||_!=null)&&(h==="selected"?e.selected=T&&typeof T!="function"&&typeof T!="symbol":Ee(e,t,h,T,a,_));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 $ in l)T=l[$],l.hasOwnProperty($)&&T!=null&&!a.hasOwnProperty($)&&Ee(e,t,$,null,a,T);for(N in a)if(T=a[N],_=l[N],a.hasOwnProperty(N)&&T!==_&&(T!=null||_!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:Ee(e,t,N,T,a,_)}return;default:if(su(t)){for(var Te in l)T=l[Te],l.hasOwnProperty(Te)&&T!==void 0&&!a.hasOwnProperty(Te)&&kc(e,t,Te,void 0,a,T);for(O in a)T=a[O],_=l[O],!a.hasOwnProperty(O)||T===_||T===void 0&&_===void 0||kc(e,t,O,T,a,_);return}}for(var S in l)T=l[S],l.hasOwnProperty(S)&&T!=null&&!a.hasOwnProperty(S)&&Ee(e,t,S,null,a,T);for(R in a)T=a[R],_=l[R],!a.hasOwnProperty(R)||T===_||T==null&&_==null||Ee(e,t,R,T,a,_)}function Vr(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ym(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,c=n.initiatorType,f=n.duration;if(i&&f&&Vr(c)){for(c=0,f=n.responseEnd,a+=1;a<l.length;a++){var h=l[a],N=h.startTime;if(N>f)break;var O=h.transferSize,R=h.initiatorType;O&&Vr(R)&&(h=h.responseEnd,c+=O*(h<f?1:(f-N)/(h-N)))}if(--a,t+=8*(i+c)/(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 $c=null,Wc=null;function Di(e){return e.nodeType===9?e:e.ownerDocument}function Kr(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 Jr(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 Fc(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 Ic=null;function wm(){var e=window.event;return e&&e.type==="popstate"?e===Ic?!1:(Ic=e,!0):(Ic=null,!1)}var kr=typeof setTimeout=="function"?setTimeout:void 0,Gm=typeof clearTimeout=="function"?clearTimeout:void 0,$r=typeof Promise=="function"?Promise:void 0,Qm=typeof queueMicrotask=="function"?queueMicrotask:typeof $r<"u"?function(e){return $r.resolve(null).then(e).catch(Xm)}:kr;function Xm(e){setTimeout(function(){throw e})}function bl(e){return e==="head"}function Wr(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),_a(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")yn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,yn(l);for(var i=l.firstChild;i;){var c=i.nextSibling,f=i.nodeName;i[Ua]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&yn(e.ownerDocument.body);l=n}while(l);_a(t)}function Fr(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Pc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Pc(l),nu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Lm(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ua])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=At(e.nextSibling),e===null)break}return null}function Zm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=At(e.nextSibling),e===null))return null;return e}function Ir(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=At(e.nextSibling),e===null))return null;return e}function es(e){return e.data==="$?"||e.data==="$~"}function ts(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Vm(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function At(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 ls=null;function Pr(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return At(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ed(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function td(e,t,l){switch(t=Di(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function yn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nu(e)}var zt=new Map,ld=new Set;function Ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pt=U.d;U.d={f:Km,r:Jm,D:km,C:$m,L:Wm,m:Fm,X:Pm,S:Im,M:ev};function Km(){var e=Pt.f(),t=Ei();return e||t}function Jm(e){var t=Jl(e);t!==null&&t.tag===5&&t.type==="form"?bo(t):Pt.r(e)}var Ta=typeof document>"u"?null:document;function ad(e,t,l){var a=Ta;if(a&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),ld.has(n)||(ld.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),We(t,"link",e),Ze(t),a.head.appendChild(t)))}}function km(e){Pt.D(e),ad("dns-prefetch",e,null)}function $m(e,t){Pt.C(e,t),ad("preconnect",e,t)}function Wm(e,t,l){Pt.L(e,t,l);var a=Ta;if(a&&e&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+bt(l.imageSizes)+'"]')):n+='[href="'+bt(e)+'"]';var i=n;switch(t){case"style":i=Aa(e);break;case"script":i=za(e)}zt.has(i)||(e=B({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(pn(i))||t==="script"&&a.querySelector(bn(i))||(t=a.createElement("link"),We(t,"link",e),Ze(t),a.head.appendChild(t)))}}function Fm(e,t){Pt.m(e,t);var l=Ta;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=za(e)}if(!zt.has(i)&&(e=B({rel:"modulepreload",href:e},t),zt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(bn(i)))return}a=l.createElement("link"),We(a,"link",e),Ze(a),l.head.appendChild(a)}}}function Im(e,t,l){Pt.S(e,t,l);var a=Ta;if(a&&e){var n=kl(a).hoistableStyles,i=Aa(e);t=t||"default";var c=n.get(i);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(pn(i)))f.loading=5;else{e=B({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(i))&&as(e,l);var h=c=a.createElement("link");Ze(h),We(h,"link",e),h._p=new Promise(function(N,O){h.onload=N,h.onerror=O}),h.addEventListener("load",function(){f.loading|=1}),h.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Ui(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(i,c)}}}function Pm(e,t){Pt.X(e,t);var l=Ta;if(l&&e){var a=kl(l).hoistableScripts,n=za(e),i=a.get(n);i||(i=l.querySelector(bn(n)),i||(e=B({src:e,async:!0},t),(t=zt.get(n))&&ns(e,t),i=l.createElement("script"),Ze(i),We(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function ev(e,t){Pt.M(e,t);var l=Ta;if(l&&e){var a=kl(l).hoistableScripts,n=za(e),i=a.get(n);i||(i=l.querySelector(bn(n)),i||(e=B({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&ns(e,t),i=l.createElement("script"),Ze(i),We(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function nd(e,t,l,a){var n=(n=ae.current)?Ri(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Aa(l.href),l=kl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Aa(l.href);var i=kl(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(pn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),i||tv(n,e,l,c.state))),t&&a===null)throw Error(o(528,""));return c}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=za(l),l=kl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Aa(e){return'href="'+bt(e)+'"'}function pn(e){return'link[rel="stylesheet"]['+e+"]"}function id(e){return B({},e,{"data-precedence":e.precedence,precedence:null})}function tv(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),We(t,"link",l),Ze(t),e.head.appendChild(t))}function za(e){return'[src="'+bt(e)+'"]'}function bn(e){return"script[async]"+e}function ud(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(l.href)+'"]');if(a)return t.instance=a,Ze(a),a;var n=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),We(a,"style",n),Ui(a,l.precedence,e),t.instance=a;case"stylesheet":n=Aa(l.href);var i=e.querySelector(pn(n));if(i)return t.state.loading|=4,t.instance=i,Ze(i),i;a=id(l),(n=zt.get(n))&&as(a,n),i=(e.ownerDocument||e).createElement("link"),Ze(i);var c=i;return c._p=new Promise(function(f,h){c.onload=f,c.onerror=h}),We(i,"link",a),t.state.loading|=4,Ui(i,l.precedence,e),t.instance=i;case"script":return i=za(l.src),(n=e.querySelector(bn(i)))?(t.instance=n,Ze(n),n):(a=l,(n=zt.get(i))&&(a=B({},l),ns(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ze(n),We(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ui(a,l.precedence,e));return t.instance}function Ui(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)i=f;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function as(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var qi=null;function cd(e,t,l){if(qi===null){var a=new Map,n=qi=new Map;n.set(l,a)}else n=qi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Ua]||i[Ke]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(i):a.set(c,[i])}}return a}function sd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function lv(e,t,l){if(l===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 fd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function av(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Aa(a.href),i=t.querySelector(pn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ze(i);return}i=t.ownerDocument||t,a=id(a),(n=zt.get(n))&&as(a,n),i=i.createElement("link"),Ze(i);var c=i;c._p=new Promise(function(f,h){c.onload=f,c.onerror=h}),We(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Hi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var is=0;function nv(e,t){return e.stylesheets&&e.count===0&&Yi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Yi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&is===0&&(is=62500*Ym());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>is?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Hi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bi=null;function Yi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bi=new Map,t.forEach(iv,e),Bi=null,Hi.call(e))}function iv(e,t){if(!(t.state.loading&4)){var l=Bi.get(e);if(l)var a=l.get(null);else{l=new Map,Bi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=Hi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Sn={$$typeof:be,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function uv(e,t,l,a,n,i,c,f,h){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=eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.hiddenUpdates=eu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function od(e,t,l,a,n,i,c,f,h,N,O,R){return e=new uv(e,t,l,c,h,N,O,R,f),t=1,i===!0&&(t|=24),i=dt(3,null,null,t),e.current=i,i.stateNode=e,t=Yu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Xu(i),e}function rd(e){return e?(e=na,e):na}function dd(e,t,l,a,n,i){n=rd(n),a.context===null?a.context=n:a.pendingContext=n,a=sl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=fl(e,a,t),l!==null&&(ct(l,e,t),Fa(l,e,t))}function hd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function us(e,t){hd(e,t),(e=e.alternate)&&hd(e,t)}function md(e){if(e.tag===13||e.tag===31){var t=Dl(e,67108864);t!==null&&ct(t,e,67108864),us(e,67108864)}}function vd(e){if(e.tag===13||e.tag===31){var t=yt();t=tu(t);var l=Dl(e,t);l!==null&&ct(l,e,t),us(e,t)}}var wi=!0;function cv(e,t,l,a){var n=p.T;p.T=null;var i=U.p;try{U.p=2,cs(e,t,l,a)}finally{U.p=i,p.T=n}}function sv(e,t,l,a){var n=p.T;p.T=null;var i=U.p;try{U.p=8,cs(e,t,l,a)}finally{U.p=i,p.T=n}}function cs(e,t,l,a){if(wi){var n=ss(a);if(n===null)Jc(e,t,a,Gi,l),yd(e,a);else if(ov(n,e,t,l,a))a.stopPropagation();else if(yd(e,a),t&4&&-1<fv.indexOf(e)){for(;n!==null;){var i=Jl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=zl(i.pendingLanes);if(c!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var h=1<<31-ot(c);f.entanglements[1]|=h,c&=~h}qt(i),(pe&6)===0&&(ji=st()+500,mn(0))}}break;case 31:case 13:f=Dl(i,2),f!==null&&ct(f,i,2),Ei(),us(i,2)}if(i=ss(a),i===null&&Jc(e,t,a,Gi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Jc(e,t,a,null,l)}}function ss(e){return e=ou(e),fs(e)}var Gi=null;function fs(e){if(Gi=null,e=Kl(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=E(t),e!==null)return e;e=null}else if(l===31){if(e=x(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gi=e,null}function gd(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(kd()){case js:return 2;case Ns:return 8;case Mn:case $d:return 32;case Es:return 268435456;default:return 32}default:return 32}}var os=!1,Sl=null,xl=null,jl=null,xn=new Map,jn=new Map,Nl=[],fv="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 yd(e,t){switch(e){case"focusin":case"focusout":Sl=null;break;case"dragenter":case"dragleave":xl=null;break;case"mouseover":case"mouseout":jl=null;break;case"pointerover":case"pointerout":xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jn.delete(t.pointerId)}}function Nn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Jl(t),t!==null&&md(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ov(e,t,l,a,n){switch(t){case"focusin":return Sl=Nn(Sl,e,t,l,a,n),!0;case"dragenter":return xl=Nn(xl,e,t,l,a,n),!0;case"mouseover":return jl=Nn(jl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return xn.set(i,Nn(xn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,jn.set(i,Nn(jn.get(i)||null,e,t,l,a,n)),!0}return!1}function pd(e){var t=Kl(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=E(l),t!==null){e.blockedOn=t,Cs(e.priority,function(){vd(l)});return}}else if(t===31){if(t=x(l),t!==null){e.blockedOn=t,Cs(e.priority,function(){vd(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ss(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);fu=a,l.target.dispatchEvent(a),fu=null}else return t=Jl(l),t!==null&&md(t),e.blockedOn=l,!1;t.shift()}return!0}function bd(e,t,l){Qi(e)&&l.delete(t)}function rv(){os=!1,Sl!==null&&Qi(Sl)&&(Sl=null),xl!==null&&Qi(xl)&&(xl=null),jl!==null&&Qi(jl)&&(jl=null),xn.forEach(bd),jn.forEach(bd)}function Xi(e,t){e.blockedOn===t&&(e.blockedOn=null,os||(os=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,rv)))}var Li=null;function Sd(e){Li!==e&&(Li=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Li===e&&(Li=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(fs(a||l)===null)continue;break}var i=Jl(l);i!==null&&(e.splice(t,3),t-=3,sc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function _a(e){function t(h){return Xi(h,e)}Sl!==null&&Xi(Sl,e),xl!==null&&Xi(xl,e),jl!==null&&Xi(jl,e),xn.forEach(t),jn.forEach(t);for(var l=0;l<Nl.length;l++){var a=Nl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Nl.length&&(l=Nl[0],l.blockedOn===null);)pd(l),l.blockedOn===null&&Nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[tt]||null;if(typeof i=="function")c||Sd(l);else if(c){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[tt]||null)f=c.formAction;else if(fs(n)!==null)continue}else f=c.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Sd(l)}}}function xd(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function rs(e){this._internalRoot=e}Zi.prototype.render=rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=yt();dd(l,a,e,t,null,null)},Zi.prototype.unmount=rs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dd(e.current,2,null,e,null,null),Ei(),t[Vl]=null}};function Zi(e){this._internalRoot=e}Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ms();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Nl.length&&t!==0&&t<Nl[l].priority;l++);Nl.splice(l,0,e),l===0&&pd(e)}};var jd=d.version;if(jd!=="19.2.8")throw Error(o(527,jd,"19.2.8"));U.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=z(t),e=e!==null?Y(e):null,e=e===null?null:e.stateNode,e};var dv={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:p,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{Oa=Vi.inject(dv),ft=Vi}catch{}}return Tn.createRoot=function(e,t){if(!m(e))throw Error(o(299));var l=!1,a="",n=Mo,i=Co,c=Oo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=od(e,1,!1,null,null,l,a,null,n,i,c,xd),e[Vl]=t.current,Kc(e),new rs(t)},Tn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(o(299));var a=!1,n="",i=Mo,c=Co,f=Oo,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),t=od(e,1,!0,t,l??null,a,n,h,i,c,f,xd),t.context=rd(null),l=t.current,a=yt(),a=tu(a),n=sl(a),n.callback=null,fl(l,n,a),l=a,t.current.lanes=l,Ra(t,l),qt(t),e[Vl]=t.current,Kc(e),new Zi(t)},Tn.version="19.2.8",Tn}var Dd;function jv(){if(Dd)return ms.exports;Dd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(d){console.error(d)}}return s(),ms.exports=xv(),ms.exports}var Nv=jv();class Ev{csrf="";accessWarning="";accessMode="pairing";async bootstrap(){const d=await fetch("/api/v1/auth/mode").then(E=>E.ok?E.json():{}).catch(()=>({}));this.accessWarning=d.warning??"",this.accessMode=d.mode??"pairing";const r=new URLSearchParams(location.hash.slice(1)).get("bootstrap");if(r){const E=await fetch("/api/v1/auth/exchange",{method:"POST",headers:{Authorization:`Bootstrap ${r}`}});history.replaceState(null,"",location.pathname+location.search);const x=await E.json();if(!E.ok)throw new Error(x.error?.message??"Authentication failed");return this.csrf=x.csrfToken,"authenticated"}const o=await fetch("/api/v1/auth/session");if(o.ok)return this.csrf=(await o.json()).csrfToken,"authenticated";const m=await fetch("/api/v1/auth/resume",{method:"POST"});if(m.ok)return this.csrf=(await m.json()).csrfToken,"authenticated";const g=d.mode?d:{mode:"pairing"};if(g.mode==="password")return"password";if(g.mode==="none"){const E=await fetch("/api/v1/auth/anonymous",{method:"POST"});if(!E.ok)throw new Error("Could not start the unprotected browser session.");return this.csrf=(await E.json()).csrfToken,"authenticated"}throw new Error("Run `ours-fleet web open` on this computer to pair this browser.")}async login(d){const r=await fetch("/api/v1/auth/login",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({password:d})}),o=await r.json().catch(()=>({}));if(!r.ok)throw new Error(o.error?.message??"Authentication failed");this.csrf=o.csrfToken}async request(d,r={}){const o=r.method??"GET",m=!["GET","HEAD"].includes(o),g=await fetch(d,{...r,headers:{...r.body?{"content-type":"application/json"}:{},...m?{"x-csrf-token":this.csrf}:{},...r.headers}}),E=await g.json().catch(()=>({}));if(!g.ok){const x=E.error;throw Object.assign(new Error(x?.message??`Request failed (${g.status})`),{detail:x})}return E}get(d,r){return this.request(d,{signal:r})}post(d,r,o){return this.request(d,{method:"POST",body:JSON.stringify(r),headers:o})}async logout(){await this.post("/api/v1/auth/logout",{}),this.csrf=""}}const he=new Ev,zn=()=>[...crypto.getRandomValues(new Uint8Array(16))].map(d=>d.toString(16).padStart(2,"0")).join("");class Tv{constructor(d){this.options=d,this.visible=d.visible??(()=>!0),this.setTimer=d.setTimer??setTimeout,this.clearTimer=d.clearTimer??clearTimeout}options;active=!1;running=!1;queued=!1;generation=0;controller;timer;lastError="";visible;setTimer;clearTimer;start(){this.active||(this.active=!0,this.generation++,this.trigger())}trigger(){if(!(!this.active||!this.visible())){if(this.running){this.queued=!0;return}this.timer&&(this.clearTimer(this.timer),this.timer=void 0),this.poll(this.generation)}}visibilityChanged(){if(this.active){if(!this.visible()){this.timer&&(this.clearTimer(this.timer),this.timer=void 0);return}this.trigger()}}stop(){this.active=!1,this.queued=!1,this.generation++,this.timer&&this.clearTimer(this.timer),this.timer=void 0,this.controller?.abort(),this.controller=void 0}async poll(d){if(!this.active||d!==this.generation||!this.visible())return;this.running=!0;const r=new AbortController;this.controller=r;try{if(await this.options.run(r.signal),!this.active||d!==this.generation||r.signal.aborted)return;this.lastError=""}catch(o){if(!this.active||d!==this.generation||r.signal.aborted)return;const m=o?.message??String(o);m!==this.lastError&&this.options.onError?.(o),this.lastError=m}finally{if(this.controller===r&&(this.controller=void 0),this.running=!1,!this.active||d!==this.generation)return;this.queued?(this.queued=!1,this.trigger()):this.visible()&&this.options.autoSchedule!==!1&&(this.timer=this.setTimer(()=>{this.timer=void 0,this.trigger()},this.options.intervalMs))}}}function Ma(s,d,r=!0,o=5e3){const m=H.useRef(s),g=H.useRef(d);m.current=s,g.current=d;const E=H.useRef(null);return H.useEffect(()=>{if(!r)return;const x=new Tv({intervalMs:o,autoSchedule:!1,visible:()=>document.visibilityState!=="hidden",run:C=>m.current(C),onError:C=>g.current(C)});E.current=x;let M;const z=()=>{M||document.visibilityState==="hidden"||(M=setInterval(()=>x.trigger(),o))},Y=()=>{M&&clearInterval(M),M=void 0},B=()=>{x.visibilityChanged(),document.visibilityState==="hidden"?Y():z()};return document.addEventListener("visibilitychange",B),x.start(),z(),()=>{document.removeEventListener("visibilitychange",B),Y(),x.stop(),E.current===x&&(E.current=null)}},[r,o]),H.useCallback(()=>E.current?.trigger(),[])}const Av=["message_received","file_received","sibling_contact_added","local_contact_request","pending_message","contact_restored","inbound_error","state_import_failed"],zv={name:"",harness:"codex",model:"",reasoningEffort:"",session:"acp",cwd:"",lifetime:"permanent",mission:"",coordinator:"",approval:"ask",filesystem:"workspace",unattended:"deny",bio:"",persona:"",highRiskAcknowledged:!1,openAfterCreate:!0,reuseExistingIdentityAcknowledged:!1,unverifiedIdentityAcknowledged:!1,monitorMode:"fleet",monitorInterrupt:!1,monitorWakeSources:["message_received","file_received","local_contact_request","pending_message"],monitorBatchMs:"2000",monitorInject:"notification",advanced:!1};function _v({onClose:s,onCreated:d}){const[r,o]=H.useState(zv),[m,g]=H.useState(),[E,x]=H.useState(),[M,z]=H.useState(""),[Y,B]=H.useState(!1),[C,Q]=H.useState({codex:[],"claude-code":[]});H.useEffect(()=>{const A=new AbortController;return he.get("/api/v1/creation-capabilities",A.signal).then(W=>{if(A.signal.aborted)return;Q(Object.fromEntries((W.harnesses??[]).map(F=>[F.id,F.modelOptions??[]])));const ee=W.monitor?.defaults;ee&&o(F=>({...F,monitorMode:ee.mode,monitorInterrupt:ee.interrupt,monitorWakeSources:ee.wake_sources,monitorBatchMs:String(ee.batch_ms),monitorInject:"notification"}))}).catch(()=>{}),()=>A.abort()},[]);const P=H.useCallback(async A=>{if(!E?.actionId)return;const W=await he.get(`/api/v1/creation-actions/${E.actionId}`,A);A.aborted||(x(W),["session_reachable","attention","launched_unconfirmed"].includes(W.state)?d(W.roleId,W.openPath):["failed","rollback_incomplete"].includes(W.state)&&B(!1))},[E?.actionId,d]),X=!!(E?.actionId&&!["session_reachable","attention","launched_unconfirmed","failed","rollback_incomplete"].includes(E.state));Ma(P,A=>{z(A.message),B(!1)},X);const ie=H.useMemo(()=>({name:r.name,harness:r.harness,model:r.model.trim()||null,reasoningEffort:r.reasoningEffort||null,session:r.session,cwd:r.cwd||void 0,lifetime:r.lifetime,mission:r.mission||void 0,coordinator:r.coordinator||void 0,permissions:{approval:r.approval,filesystem:r.filesystem,unattended:r.unattended},bio:r.bio||void 0,persona:r.persona||void 0,highRiskAcknowledged:r.highRiskAcknowledged,reuseExistingIdentityAcknowledged:r.reuseExistingIdentityAcknowledged,unverifiedIdentityAcknowledged:r.unverifiedIdentityAcknowledged,monitor:r.monitorMode==="native"?{mode:"native"}:{mode:"fleet",interrupt:r.monitorInterrupt,wake_sources:r.monitorWakeSources,batch_ms:Number(r.monitorBatchMs),inject:r.monitorInject},openAfterCreate:r.openAfterCreate}),[r]),k=(A,W)=>{o(ee=>({...ee,[A]:W})),g(void 0),z("")},_e=async()=>{B(!0);try{g(await he.post("/api/v1/roles/preview",ie))}catch(A){z(A.message)}finally{B(!1)}},be=async()=>{B(!0);try{const A=await he.post("/api/v1/roles",{request:ie,previewHash:m.previewHash},{"Idempotency-Key":zn()});x(A),["session_reachable","attention","launched_unconfirmed"].includes(A.state)?d(A.roleId,A.openPath):["failed","rollback_incomplete"].includes(A.state)&&B(!1)}catch(A){z(A.message),B(!1)}};return u.jsx("div",{className:"modal-backdrop",role:"presentation",children:u.jsxs("section",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"create-title",children:[u.jsxs("div",{className:"modal-head",children:[u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:"transactional workflow"}),u.jsx("h2",{id:"create-title",children:"Create role session"})]}),u.jsx("button",{className:"icon",onClick:s,"aria-label":"Close",children:"×"})]}),E?u.jsxs("div",{className:"progress",children:[u.jsx("h3",{children:E.roleId}),u.jsx("p",{children:"Creation continues if this browser disconnects."}),E.stages.map((A,W)=>u.jsxs("div",{className:"stage",children:[u.jsx("i",{})," ",u.jsxs("span",{children:[u.jsx("strong",{children:A.stage.replaceAll("_"," ")}),u.jsx("small",{children:A.detail||new Date(A.at).toLocaleTimeString()})]})]},`${A.stage}-${W}`)),E.error&&u.jsx("div",{className:"banner error",children:E.error.message})]}):u.jsxs("div",{className:"wizard",children:[u.jsxs("div",{className:"mode-switch",role:"group","aria-label":"Setup detail level",children:[u.jsx("button",{className:r.advanced?"secondary":"active",onClick:()=>k("advanced",!1),children:"Basic"}),u.jsx("button",{className:r.advanced?"active":"secondary",onClick:()=>k("advanced",!0),children:"Advanced"}),u.jsx("span",{children:"Basic shows the safe decisions needed to launch. Advanced reveals custom IDs, permissions, monitoring, and profile controls."})]}),u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Identity"}),u.jsxs("div",{className:"form-grid",children:[u.jsxs("label",{children:["Role / session name",u.jsx("input",{value:r.name,onChange:A=>k("name",A.target.value),placeholder:"Researcher"})]}),u.jsxs("label",{children:["Derived identity ",u.jsx("small",{children:"fixed to role name"}),u.jsx("input",{value:r.name,readOnly:!0,"aria-readonly":"true",placeholder:"Researcher"})]}),u.jsxs("label",{className:"wide",children:["Mission",u.jsx("input",{value:r.mission,onChange:A=>k("mission",A.target.value)})]}),u.jsxs("label",{children:["Coordinator",u.jsx("input",{value:r.coordinator,onChange:A=>k("coordinator",A.target.value)})]})]})]}),u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Runtime"}),u.jsxs("div",{className:"form-grid",children:[u.jsxs("label",{children:["Harness",u.jsxs("select",{value:r.harness,onChange:A=>k("harness",A.target.value),children:[u.jsx("option",{value:"codex",children:"Codex"}),u.jsx("option",{value:"claude-code",children:"Claude Code"})]})]}),u.jsxs("label",{children:["Session",u.jsxs("select",{value:r.session,onChange:A=>k("session",A.target.value),children:[u.jsx("option",{value:"acp",children:"ACP activity"}),u.jsx("option",{value:"tmux",children:"tmux terminal"})]})]}),u.jsxs("label",{children:["Model",u.jsxs("select",{"aria-label":"Known model",value:C[r.harness].some(A=>A.id===r.model)?r.model:"",onChange:A=>{const W=C[r.harness].find(ee=>ee.id===A.target.value);k("model",A.target.value),k("reasoningEffort",W?.defaultReasoningEffort??"")},children:[u.jsx("option",{value:"",children:"Use harness default (resolved after launch)"}),C[r.harness].map(A=>u.jsxs("option",{value:A.id,children:[A.label," — ",A.id]},A.id))]})]}),u.jsxs("label",{children:["Reasoning effort",u.jsxs("select",{"aria-label":"Reasoning effort",value:r.reasoningEffort,onChange:A=>k("reasoningEffort",A.target.value),children:[u.jsx("option",{value:"",children:"Model default"}),(C[r.harness].find(A=>A.id===r.model)?.reasoningEfforts??[]).map(A=>u.jsx("option",{children:A},A))]})]}),r.advanced&&u.jsxs("label",{children:["Custom model ID ",u.jsx("small",{children:"exact ID; validated by the harness at launch"}),u.jsx("input",{"aria-label":"Model",value:r.model,onChange:A=>{k("model",A.target.value),k("reasoningEffort","")},placeholder:"vendor model ID"})]}),u.jsxs("label",{children:["Lifetime",u.jsxs("select",{value:r.lifetime,onChange:A=>k("lifetime",A.target.value),children:[u.jsx("option",{value:"permanent",children:"Permanent"}),u.jsx("option",{value:"temporary",children:"Temporary — gone on exit/reboot"})]})]}),u.jsxs("label",{className:"wide",children:["Working directory ",u.jsx("small",{children:"blank uses private role state"}),u.jsx("input",{value:r.cwd,onChange:A=>k("cwd",A.target.value),placeholder:"/absolute/existing/path"})]})]})]}),r.advanced&&u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Monitoring"}),u.jsxs("div",{className:"form-grid",children:[u.jsxs("label",{children:["Wake owner",u.jsxs("select",{"aria-label":"Monitor mode",value:r.monitorMode,onChange:A=>k("monitorMode",A.target.value),children:[u.jsx("option",{value:"fleet",children:"Fleet monitor"}),u.jsx("option",{value:"native",children:"Native harness monitor"})]})]}),r.monitorMode==="fleet"&&u.jsxs(u.Fragment,{children:[u.jsxs("label",{children:["Injection",u.jsx("select",{"aria-label":"Monitor injection",value:r.monitorInject,onChange:A=>k("monitorInject",A.target.value),children:u.jsx("option",{value:"notification",children:"Notification summary"})})]}),u.jsxs("label",{children:["Batch window (ms)",u.jsx("input",{"aria-label":"Monitor batch milliseconds",type:"number",min:"0",value:r.monitorBatchMs,onChange:A=>k("monitorBatchMs",A.target.value)})]}),u.jsxs("label",{className:"risk",children:[u.jsx("input",{type:"checkbox",checked:r.monitorInterrupt,onChange:A=>k("monitorInterrupt",A.target.checked)}),"Interrupt an active turn before wake delivery"]}),u.jsxs("div",{className:"wide wake-sources",role:"group","aria-label":"Monitor wake sources",children:[u.jsx("small",{children:"Wake sources"}),Av.map(A=>u.jsxs("label",{children:[u.jsx("input",{type:"checkbox",checked:r.monitorWakeSources.includes(A),onChange:W=>k("monitorWakeSources",W.target.checked?[...r.monitorWakeSources,A]:r.monitorWakeSources.filter(ee=>ee!==A))}),A.replaceAll("_"," ")]},A))]})]})]}),r.monitorMode==="native"&&u.jsx("p",{className:"muted",children:"The harness owns wake delivery; fleet batching and injection are disabled."})]}),r.advanced&&u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Neutral permissions"}),u.jsxs("div",{className:"form-grid three",children:[u.jsxs("label",{children:["Permission",u.jsxs("select",{value:r.approval,onChange:A=>k("approval",A.target.value),children:[u.jsx("option",{children:"ask"}),u.jsx("option",{children:"auto"}),u.jsx("option",{children:"allow"})]})]}),u.jsxs("label",{children:["Filesystem",u.jsxs("select",{value:r.filesystem,onChange:A=>k("filesystem",A.target.value),children:[u.jsx("option",{children:"workspace"}),u.jsx("option",{children:"read-only"}),u.jsx("option",{children:"unrestricted"})]})]}),u.jsxs("label",{children:["Unattended",u.jsxs("select",{value:r.unattended,onChange:A=>k("unattended",A.target.value),children:[u.jsx("option",{children:"deny"}),u.jsx("option",{children:"wait"})]})]})]}),(r.approval==="allow"||r.filesystem==="unrestricted")&&u.jsxs("label",{className:"risk",children:[u.jsx("input",{type:"checkbox",checked:r.highRiskAcknowledged,onChange:A=>k("highRiskAcknowledged",A.target.checked)}),"I understand the adapter’s elevated native permission translation."]})]}),r.advanced&&u.jsxs("fieldset",{children:[u.jsx("legend",{children:"Profile"}),u.jsxs("div",{className:"form-grid",children:[u.jsxs("label",{children:["Public bio",u.jsx("textarea",{value:r.bio,onChange:A=>k("bio",A.target.value)})]}),u.jsxs("label",{children:["Local persona",u.jsx("textarea",{value:r.persona,onChange:A=>k("persona",A.target.value)})]})]})]}),m&&u.jsxs("div",{className:"review",children:[u.jsx("h3",{children:"Effective plan"}),u.jsx("dl",{children:Object.entries(m.effective).map(([A,W])=>u.jsxs("div",{children:[u.jsx("dt",{children:A}),u.jsx("dd",{children:A==="model"&&W==null?"harness default":typeof W=="object"?JSON.stringify(W):String(W??"default")})]},A))}),m.warnings?.map(A=>u.jsxs("p",{className:"warning",children:["△ ",A]},A)),m.prerequisites?.map(A=>u.jsxs("p",{className:"error",children:["× ",A]},A)),m.identityBootstrap?.existingIdentity==="verified"&&!r.reuseExistingIdentityAcknowledged&&u.jsxs("label",{className:"risk",children:[u.jsx("input",{type:"checkbox",checked:!1,onChange:()=>k("reuseExistingIdentityAcknowledged",!0)}),"Reuse the existing local identity named ",r.name,"."]}),m.identityBootstrap?.existingIdentity==="unknown"&&!r.unverifiedIdentityAcknowledged&&u.jsxs("label",{className:"risk",children:[u.jsx("input",{type:"checkbox",checked:!1,onChange:()=>k("unverifiedIdentityAcknowledged",!0)}),"Continue although identity existence could not be verified."]}),u.jsx("p",{className:"muted",children:"Binding is completed by the harness from its generated first-boot briefing; this console does not claim host-side identity creation."})]}),M&&u.jsx("div",{className:"banner error",children:M}),u.jsxs("div",{className:"modal-actions",children:[u.jsx("button",{className:"secondary",onClick:s,children:"Cancel"}),m?u.jsx("button",{className:"primary",disabled:Y||m.prerequisites?.length,onClick:()=>{be()},children:Y?"Creating…":"Create atomically"}):u.jsx("button",{className:"primary",disabled:Y||!r.name,onClick:()=>{_e()},children:Y?"Reviewing…":"Review effective plan"})]})]})]})})}const Mv="modulepreload",Cv=function(s){return"/"+s},Rd={},Ov=function(d,r,o){let m=Promise.resolve();if(r&&r.length>0){let M=function(z){return Promise.all(z.map(Y=>Promise.resolve(Y).then(B=>({status:"fulfilled",value:B}),B=>({status:"rejected",reason:B}))))};document.getElementsByTagName("link");const E=document.querySelector("meta[property=csp-nonce]"),x=E?.nonce||E?.getAttribute("nonce");m=M(r.map(z=>{if(z=Cv(z),z in Rd)return;Rd[z]=!0;const Y=z.endsWith(".css"),B=Y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${z}"]${B}`))return;const C=document.createElement("link");if(C.rel=Y?"stylesheet":Mv,Y||(C.as="script"),C.crossOrigin="",C.href=z,x&&C.setAttribute("nonce",x),document.head.appendChild(C),Y)return new Promise((Q,P)=>{C.addEventListener("load",Q),C.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${z}`)))})}))}function g(E){const x=new Event("vite:preloadError",{cancelable:!0});if(x.payload=E,window.dispatchEvent(x),!x.defaultPrevented)throw E}return m.then(E=>{for(const x of E||[])x.status==="rejected"&&g(x.reason);return d().catch(g)})},Dv=()=>({turns:[],lastSeq:0,seenEventIds:{},historyDegraded:!1}),Ot=(s,d)=>{const r=d.promptId??`unprompted:${d.sessionGeneration}`;let o=s.turns.find(m=>m.promptId===r);return o?d.seq<o.firstSeq&&(o.firstSeq=d.seq,s.turns.sort((m,g)=>m.firstSeq-g.firstSeq)):(o={promptId:r,firstSeq:d.seq,state:"running",messages:[],thoughtText:"",thoughtChunks:0,tools:[],plans:[],permissions:[]},s.turns.push(o),s.turns.sort((m,g)=>m.firstSeq-g.firstSeq)),o},Ud=s=>{const d=s;return d?d.type==="text"?d.text??"":`[${d.type??"content"}]`:""};function Rv(s,d){if(s.seenEventIds[d.eventId])return;s.seenEventIds[d.eventId]=!0,s.lastSeq=Math.max(s.lastSeq,d.seq);const r=d.payload??{};switch(d.kind){case"prompt.admitted":{const o=Ot(s,d),m=r.displayText?.text??r.text?.text,g=r.external;o.user={...m!==void 0?{text:m}:{},...g?.bytes!==void 0?{externalBytes:g.bytes}:{},source:d.source,at:d.at},o.commandId=d.commandId,o.queuedBehind=r.queuedBehind,o.state="queued";return}case"prompt.started":{const o=Ot(s,d);(o.state==="queued"||o.state==="running")&&(o.state="running");return}case"prompt.interrupt_requested":{const o=Ot(s,d);Uv(o.state)||(o.state="interrupt_requested"),o.cancellationSource=r.cancellationSource;return}case"message.chunk":{const o=r.role,m=Ot(s,d),g=Ud(r.content);if(o==="user"){m.user?m.user.text===void 0?m.user.text=g:d.source==="agent_replay"||d.source:m.user={text:g,source:d.source,at:d.at};return}const E=d.messageId??`turn:${m.promptId}`,x=m.messages.at(-1);x&&x.key===E?x.text+=g:m.messages.push({key:E,text:g});return}case"thought.chunk":{const o=Ot(s,d);o.thoughtChunks+=1,o.thoughtText+=Ud(r.content);return}case"tool.upsert":{const o=Ot(s,d),m=r.toolCallId??d.toolCallId??"";let g=o.tools.find(E=>E.toolCallId===m);g||(g={toolCallId:m},o.tools.push(g)),r.title!==void 0&&(g.title=r.title),r.kind!==void 0&&(g.kind=r.kind),r.status!==void 0&&(g.status=r.status),r.content!==void 0&&(g.content=r.content),r.locations!==void 0&&(g.locations=r.locations),r.rawInput!==void 0&&(g.rawInput=r.rawInput),r.rawOutput!==void 0&&(g.rawOutput=r.rawOutput);return}case"plan.replace":{const o=Ot(s,d),m=r,g=o.plans.findIndex(E=>E.planId===m.planId);m.removed?g>=0&&o.plans.splice(g,1):g>=0?o.plans[g]=m:o.plans.push(m);return}case"permission.requested":{Ot(s,d).permissions.push({permissionId:d.permissionId??"",sessionGeneration:d.sessionGeneration,title:r.title,toolCallId:r.toolCallId??d.toolCallId,expiresAt:r.expiresAt,status:"pending",options:r.options??[]});return}case"permission.resolved":{const o=Ot(s,d),m=d.permissionId?o.permissions.find(E=>E.permissionId===d.permissionId):void 0,g=m??{permissionId:d.permissionId??"",sessionGeneration:d.sessionGeneration,status:"resolved",options:[]};m||o.permissions.push(g),g.status="resolved",g.decision=r.decision,g.decisionSource=r.decisionSource,g.optionId=r.optionId;return}case"turn.completed":{const o=Ot(s,d),m=r.outcome;o.state=m==="completed"?"completed":m==="refused"?"refused":m==="cancelled"?"cancelled":m==="failed"?"failed":"unknown",o.stopReason=r.stopReason,o.cancellationSource=r.cancellationSource??o.cancellationSource;for(const g of o.permissions)g.status==="pending"&&(g.status="resolved",g.decision="cancelled");return}case"usage.updated":{s.usage=r,d.promptId&&(Ot(s,d).usage=r);return}case"session.info":r.title!==void 0&&(s.sessionTitle=r.title??void 0);return;case"session.state":r.currentModeId!==void 0&&(s.currentModeId=r.currentModeId);return}}const Uv=s=>["completed","refused","cancelled","failed","unknown"].includes(s);function qv(s,d){for(const r of d)Rv(s,r);return s}function qd(s){return{...s,turns:s.turns.map(d=>({...d,messages:d.messages.map(r=>({...r})),tools:d.tools.map(r=>({...r,content:r.content?.map(o=>({...o})),locations:r.locations?.map(o=>({...o}))})),plans:d.plans.map(r=>({...r,entries:r.entries?.map(o=>({...o,content:{...o.content}}))})),permissions:d.permissions.map(r=>({...r,options:[...r.options]}))})),seenEventIds:{...s.seenEventIds}}}const Hv=s=>{switch(s.state){case"queued":return s.queuedBehind?`queued · ${s.queuedBehind} ahead`:"queued";case"running":return"running";case"interrupt_requested":return"interrupt requested";case"completed":return"completed";case"refused":return"refused";case"cancelled":return s.cancellationSource?`cancelled · ${s.cancellationSource}`:"cancelled";case"failed":return`failed${s.stopReason?` · ${s.stopReason}`:""}`;default:return"outcome unknown (runner restarted)"}};function Bv({roleId:s}){const[d,r]=H.useState(Dv),[o,m]=H.useState("connecting"),[g,E]=H.useState(""),[x,M]=H.useState(""),[z,Y]=H.useState(!0),B=H.useRef(d);B.current=d;const C=H.useRef(void 0),Q=H.useRef(!1),P=H.useRef(0),X=H.useRef(null),ie=H.useCallback(I=>{r(V=>qd(qv(V,I)))},[]),k=H.useCallback(async()=>{let I=B.current.lastSeq?String(B.current.lastSeq):void 0;for(;;){const V=I?`&after=${encodeURIComponent(I)}`:"",se=await he.get(`/api/v1/roles/${encodeURIComponent(s)}/conversation?limit=500${V}`);if(se.events.length&&ie(se.events),!se.hasMore||!se.nextCursor)break;I=se.nextCursor}},[ie,s]),_e=H.useCallback(async()=>{if(!Q.current){m(P.current?"reconnecting":"connecting");try{const{ticket:I}=await he.post("/api/v1/ws-tickets",{purpose:"conversation",roleId:s});if(Q.current)return;const V=new WebSocket(`${location.protocol==="https:"?"wss":"ws"}://${location.host}/api/v1/roles/${encodeURIComponent(s)}/conversation-stream`,"ours-fleet-conversation.v1");C.current=V,V.onopen=()=>{const se=B.current.lastSeq?String(B.current.lastSeq):void 0;V.send(JSON.stringify({type:"hello",ticket:I,...se?{after:se}:{}}))},V.onmessage=se=>{const ye=JSON.parse(String(se.data));ye.type==="ready"&&(P.current=0,m("live"),ye.snapshot&&r(ze=>{const Xe=qd(ze);return Xe.snapshot=ye.snapshot,Xe.historyDegraded=!!ye.snapshot?.historyDegraded,Xe})),ye.type==="events"&&ye.events&&ie(ye.events),ye.type==="resync.required"&&k()},V.onclose=()=>{if(Q.current)return;m("reconnecting");const se=Math.min(P.current++,5),ye=Math.min(3e4,1e3*2**se)*(.5+Math.random()/2);setTimeout(()=>{_e()},ye)}}catch(I){if(Q.current)return;m("offline"),E(I.message);const V=Math.min(P.current++,5);setTimeout(()=>{_e()},Math.min(3e4,2e3*2**V))}}},[ie,k,s]);H.useEffect(()=>(Q.current=!1,_e(),()=>{Q.current=!0,C.current?.close()}),[_e]),H.useEffect(()=>{z&&X.current?.scrollTo({top:X.current.scrollHeight})},[d,z]);const be=async()=>{const I=x;if(!I.trim())return;const V=zn();M("");try{await he.post(`/api/v1/roles/${encodeURIComponent(s)}/input`,{text:I,commandId:V})}catch(se){E(`Send failed: ${se.message}`)}},A=async()=>{if(confirm("Interrupt the active ACP turn? Queued prompts are preserved."))try{await he.post(`/api/v1/roles/${encodeURIComponent(s)}/interrupt`,{commandId:zn()}),E("Interrupt requested — the turn ends when the agent confirms.")}catch(I){E(`Interrupt failed: ${I.message}`)}},W=async(I,V)=>{try{await he.post(`/api/v1/roles/${encodeURIComponent(s)}/permissions/${encodeURIComponent(I.permissionId)}`,{commandId:zn(),optionId:V,sessionGeneration:I.sessionGeneration})}catch(se){E(`Permission response failed: ${se.message}`)}},ee=d.snapshot,F=ee?.readiness==="running"||ee?.readiness==="awaiting_permission";return u.jsxs("div",{className:"conversation-layout",children:[u.jsxs("div",{className:"conversation panel",children:[u.jsxs("div",{className:"conversation-header",children:[u.jsx("span",{className:`stream-state ${o}`,children:o}),d.sessionTitle&&u.jsx("span",{className:"muted",children:d.sessionTitle}),d.currentModeId&&u.jsxs("span",{className:"muted",children:["mode ",d.currentModeId]}),d.usage&&u.jsxs("span",{className:"muted",children:["context ",Math.round(100*d.usage.used/Math.max(1,d.usage.size)),"%",d.usage.cost?` · ${d.usage.cost.amount.toFixed(2)} ${d.usage.cost.currency}`:""," ","(agent-reported)"]}),d.historyDegraded&&u.jsx("span",{className:"warning",children:"history degraded — transcript may be incomplete"})]}),g&&u.jsx("div",{className:"banner info",children:g}),u.jsxs("div",{className:"transcript",ref:X,onScroll:I=>{const V=I.currentTarget;Y(V.scrollTop+V.clientHeight>=V.scrollHeight-40)},children:[d.turns.length===0&&u.jsx("p",{className:"muted",children:"No conversation yet. Prompt the live ACP session below."}),d.turns.map(I=>u.jsx(Yv,{turn:I,onDecide:W},I.promptId))]}),!z&&u.jsx("button",{className:"secondary jump-latest",onClick:()=>{Y(!0)},children:"Jump to latest"})]}),u.jsxs("div",{className:"composer panel",children:[u.jsx("textarea",{value:x,placeholder:"Prompt the live ACP session…",onChange:I=>M(I.target.value),onKeyDown:I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),be())}}),u.jsxs("div",{className:"composer-actions",children:[u.jsxs("button",{className:"primary",disabled:!x.trim(),onClick:()=>{be()},children:["Send",ee&&ee.queueDepth>0?` · queued ${ee.queueDepth}`:""]}),u.jsx("button",{className:"danger",disabled:!F,onClick:()=>{A()},children:"Interrupt active turn"})]}),u.jsx("small",{children:"Enter sends · Shift+Enter newline · acceptance is not completion."})]})]})}function Yv({turn:s,onDecide:d}){const[r,o]=H.useState(!1),m=Hv(s);return u.jsxs("article",{className:`turn ${s.state}`,children:[s.user&&u.jsxs("div",{className:"bubble user",children:[u.jsxs("small",{children:[s.user.source==="owner_admin_console"?"Direct owner admin console":s.user.source==="local_console"?"Local console":s.user.source==="owner_channel"?"Owner channel · end-to-end":s.user.source==="startup"?"Startup briefing":s.user.source==="agent_replay"?"Replayed prompt":`External · ${s.user.source??"unknown"}`," · ",new Date(s.user.at).toLocaleTimeString()," · ",m]}),s.user.text!==void 0?u.jsx("pre",{className:"prompt-text",children:s.user.text}):u.jsxs("p",{className:"muted",children:["Message content unavailable (",s.user.externalBytes??"?"," bytes)"]})]}),(s.messages.length>0||s.thoughtChunks>0||s.tools.length>0||s.plans.length>0||s.permissions.length>0)&&u.jsxs("div",{className:"bubble assistant",children:[!s.user&&u.jsx("small",{children:m}),s.thoughtChunks>0&&u.jsxs("div",{className:"thoughts",children:[u.jsxs("button",{className:"secondary","aria-expanded":r,onClick:()=>o(g=>!g),children:[r?"Hide":"Show"," reasoning activity (",s.thoughtChunks," update",s.thoughtChunks===1?"":"s",")"]}),r&&u.jsx("pre",{className:"thought-text",children:s.thoughtText})]}),s.plans.map((g,E)=>u.jsxs("div",{className:"plan-card",children:[u.jsx("strong",{children:"Plan"}),g.entries&&u.jsx("ol",{children:g.entries.map((x,M)=>u.jsxs("li",{className:`plan-entry ${x.status}`,children:[u.jsx("span",{"aria-hidden":"true",children:x.status==="completed"?"✓":x.status==="in_progress"?"◐":"○"}),u.jsx("span",{children:x.content.text}),u.jsx("small",{children:x.priority})]},M))}),g.markdown&&u.jsx("pre",{children:g.markdown.text}),g.file&&u.jsx("code",{children:g.file.uri})]},g.planId??E)),s.tools.map(g=>u.jsxs("details",{className:"tool-card",children:[u.jsxs("summary",{children:[u.jsx("span",{className:`tool-status ${g.status??"pending"}`,children:g.status??"pending"}),u.jsx("span",{children:g.title??g.toolCallId}),g.kind&&u.jsx("small",{className:"muted",children:g.kind})]}),u.jsxs("div",{className:"tool-detail",children:[g.locations?.length?u.jsxs("div",{children:[u.jsx("strong",{children:"Locations"}),g.locations.map((E,x)=>u.jsxs("code",{children:[E.path,E.line?`:${E.line}`:""]},x))]}):null,g.content?.map((E,x)=>u.jsx(wv,{content:E},x)),g.rawInput&&u.jsx(Hd,{label:"Input",value:g.rawInput}),g.rawOutput&&u.jsx(Hd,{label:"Output",value:g.rawOutput})]})]},g.toolCallId)),s.permissions.map(g=>u.jsx(Gv,{card:g,onDecide:d},g.permissionId)),s.messages.map(g=>u.jsx("pre",{className:"assistant-text",children:g.text},g.key)),s.usage&&u.jsxs("small",{className:"usage-badge",children:["context ",Math.round(100*s.usage.used/Math.max(1,s.usage.size)),"%",s.usage.cost?` · ${s.usage.cost.amount.toFixed(2)} ${s.usage.cost.currency}`:""," · agent-reported"]}),s.state==="running"&&s.messages.length===0&&u.jsx("p",{className:"muted streaming-hint",children:"Working…"})]})]})}function wv({content:s}){if(s.type==="diff"){const r=s.oldText,o=s.newText;return u.jsxs("div",{className:"tool-content",children:[u.jsxs("strong",{children:["Diff · ",String(s.path??"")]}),r&&u.jsx("pre",{className:"diff-old",children:r.text}),u.jsx("pre",{className:"diff-new",children:o?.text})]})}if(s.type==="terminal")return u.jsxs("div",{className:"tool-content",children:[u.jsx("strong",{children:"Display terminal"}),u.jsx("code",{children:String(s.terminalId??"")})]});const d=s.content;return u.jsxs("div",{className:"tool-content",children:[u.jsx("strong",{children:d?.type??"Content"}),u.jsx("pre",{children:d?.text??d?.uri??`[${d?.type??"content"}]`})]})}function Hd({label:s,value:d}){return u.jsxs("div",{className:"tool-content",children:[u.jsx("strong",{children:s}),d.redacted&&u.jsx("small",{className:"muted",children:"Sensitive fields redacted"}),d.json!==void 0?u.jsx("pre",{children:JSON.stringify(d.json,null,2)}):u.jsxs("p",{className:"muted",children:["Not retained · ",d.bytes," bytes",d.digest?` · digest ${d.digest}`:""]})]})}function Gv({card:s,onDecide:d}){if(s.status==="resolved")return u.jsxs("div",{className:"permission-card resolved",children:[u.jsx("span",{children:s.title??"Permission"}),u.jsxs("small",{children:[s.decision??"settled",s.decisionSource?` · ${s.decisionSource}`:""]})]});const r=s.options.filter(o=>["allow_once","reject_once"].includes(o.kind));return u.jsxs("div",{className:"permission-card pending",role:"group","aria-label":"Permission required",children:[u.jsx("span",{children:s.title??"Permission requested"}),u.jsxs("div",{className:"permission-actions",children:[r.map(o=>u.jsx("button",{className:o.kind==="allow_once"?"primary":"danger",onClick:()=>{d(s,o.optionId)},children:o.name},o.optionId)),r.length===0&&u.jsx("small",{className:"muted",children:"This agent offered no one-shot option; use role policy."})]})]})}function Tl(s){return s.status.overall==="offline"||s.status.supervisor.liveness==="stopped"&&s.status.session.reachability!=="online"}function Ji(s){return!Tl(s)&&["attention","unknown"].includes(s.status.overall)}function Qv(s){return(s.status.problems??[]).some(d=>d.source==="watchdog")}function Xv(s,d){const r=d.filter.toLowerCase();return s.filter(o=>{if(Tl(o)&&!d.showInactive||d.attentionOnly&&!Ji(o))return!1;const m=Qv(o)?" watchdog":"";return`${o.role.id} ${o.role.config?.mission??""} ${o.status.overall}${m}`.toLowerCase().includes(r)}).sort((o,m)=>+!Ji(o)-+!Ji(m)||o.role.id.localeCompare(m.role.id))}function Lv(s=[]){const d=[],r=[];let o=!1;for(const m of s){if(m.kind==="tool_update"||m.kind==="thought"){d.push(m),o=!1;continue}const g=r.at(-1);if(m.kind==="agent_text"&&o&&g?.kind==="agent_text"){g.text=`${g.text??""}${m.text??""}`,g.lastSeq=m.seq;continue}r.push({...m}),o=m.kind==="agent_text"}return{meaningful:r,technical:d}}const Bd=s=>s?.value?s.label&&s.label!==s.value?`${s.label} · ${s.value}`:s.value:"Not reported";function Zv(s){const d=s?.role?.config,r=s?.status?.session,o=r?.permissionMode;return[{label:"Harness",value:d?.harness??"Unavailable"},{label:"Model",value:Bd(r?.runtimeModel)},{label:"Reasoning",value:Bd(r?.reasoningEffort)},{label:"Permission",value:o?.fleetMode??"Not reported"},{label:"Native mode",value:o?.nativeMode??"Not reported"},{label:"Filesystem",value:d?.permissions?.filesystem??"Unavailable"},{label:"Backend",value:r?.backend??"Unavailable"},{label:"Protocol",value:r?.protocolVersion?`ACP v${r.protocolVersion}${r.features?.length?` · ${r.features.join(", ")}`:""}`:"Not reported"}]}function Vv(s){if(typeof s.detail=="string"&&s.detail)return s.detail;const d=typeof s.queuedBehind=="number"&&Number.isFinite(s.queuedBehind)?Math.max(0,Math.floor(s.queuedBehind)):0;return d>0?`accepted; ${d} turn(s) queued ahead`:"accepted; turn may still be running"}async function Xd(s){const d=await he.get(`/api/v1/roles/${encodeURIComponent(s)}/removal-preview`);if(d.selfProtected)throw new Error("This is the current control role and cannot remove itself.");const r=[`Remove ${d.role}?`,"",...d.effects,"",`Recovery: ${d.recovery.detail}`].join(`
|
|
10
|
+
`);if(!confirm(r))return;let o=!1;if(d.coordinatorProtection&&(o=confirm(`${d.role} coordinates other configured roles. Remove it anyway?`),!o))return;const m=d.confirmation==="typed-role-name"?prompt(`Type ${d.role} exactly to confirm`)??"":void 0;if(!(d.confirmation==="typed-role-name"&&m!==d.role))return he.post(`/api/v1/roles/${encodeURIComponent(s)}/remove`,{confirmation:m,confirmed:d.confirmation==="confirm",coordinatorAcknowledged:o})}const Kv=H.lazy(()=>Ov(()=>import("./TerminalView-hZpyUFY_.js"),[]).then(s=>({default:s.TerminalView})));function Jv({roleId:s,onBack:d,onRemoved:r}){const[o,m]=H.useState(),[g,E]=H.useState("overview"),x=H.useRef(!1),[M,z]=H.useState(),[Y,B]=H.useState(),[C,Q]=H.useState(""),[P,X]=H.useState(""),[ie,k]=H.useState(!1),[_e,be]=H.useState(""),A=H.useCallback(async p=>{const U=await he.get(`/api/v1/roles/${encodeURIComponent(s)}`,p);p.aborted||(m(U),be(""))},[s]);Ma(A,p=>be(p.message));const W=H.useCallback(async p=>{const U=M?.lastSeq,K=U===void 0?"":`&since=${encodeURIComponent(U)}`,me=await he.get(`/api/v1/roles/${encodeURIComponent(s)}/output?limit=200${K}`,p);p.aborted||z(re=>kv(re,me))},[M?.lastSeq,s]),ee=Ma(W,p=>be(p.message),g==="activity"),F=H.useCallback(async p=>{const U=await he.get(`/api/v1/roles/${encodeURIComponent(s)}/logs?limit=200`,p);p.aborted||B(U)},[s]);if(Ma(F,p=>be(p.message),g==="logs"),H.useEffect(()=>{!o||x.current||(x.current=!0,o.status?.session?.backend==="acp"&&!Tl(o)&&E("conversation"))},[o]),!o)return u.jsx("div",{className:"content",children:"Loading role evidence…"});const{role:I,status:V,capabilities:se}=o,ye=Tl({status:V}),ze=Lv(M?.events??[]),Xe=ie?[...ze.meaningful,...ze.technical].sort((p,U)=>(p.seq??0)-(U.seq??0)):ze.meaningful,Le=async p=>{const U=p==="restart_fresh"?prompt(`Type ${s} to clear context`)??"":void 0,K=await he.post(`/api/v1/roles/${s}/actions`,{action:p,actionId:zn(),confirmation:U});X(`${p.replaceAll("_"," ")} accepted · ${K.actionId.slice(0,8)}`)},Ie=async()=>{try{const p=await he.post(`/api/v1/roles/${s}/input`,{text:C});X(Vv(p)),Q(""),ee()}catch(p){X(p.message)}};return u.jsxs("div",{className:"workspace",children:[u.jsx("button",{className:"back",onClick:d,children:"← Fleet"}),u.jsxs("div",{className:"workspace-summary",children:[u.jsxs("span",{className:`hero-state ${ye?"offline":V.overall}`,children:[u.jsx("i",{}),ye?"inactive":V.overall]}),u.jsx("span",{children:I.lifetime}),Zv(o).map(p=>u.jsxs("span",{title:p.label,children:[u.jsx("small",{children:p.label})," ",p.value]},p.label)),u.jsxs("small",{children:["observed ",new Date(V.observedAt).toLocaleTimeString()]})]}),u.jsx("div",{className:"tabs",role:"tablist",children:["overview",...V.session.backend==="acp"?["conversation"]:[],"activity","terminal","logs","diagnostics"].map(p=>u.jsxs("button",{className:g===p?"active":"",disabled:p==="terminal"&&!se.terminal.available,onClick:()=>E(p),children:[p==="terminal"?"PTY terminal":p,p==="terminal"&&!se.terminal.available?" · unavailable":""]},p))}),_e&&u.jsxs("div",{className:"banner error",children:["Live refresh failed: ",_e]}),P&&u.jsx("div",{className:"banner info",children:P}),g==="conversation"&&u.jsx(Bv,{roleId:s}),g==="overview"&&u.jsxs("div",{className:"dashboard-grid",children:[u.jsx(Ki,{title:"Supervisor",state:V.supervisor.liveness,rows:{backend:V.supervisor.backend,evidence:V.supervisor.detail}}),u.jsx(Ki,{title:"Session",state:V.session.readiness,rows:{reachability:V.session.reachability,evidence:V.session.evidence,error:V.session.lastError}}),u.jsx(Ki,{title:"Monitor",state:V.monitor.health,rows:{mode:V.monitor.mode,stale:V.monitor.stale,detail:V.monitor.detail}}),u.jsx(Ki,{title:"Restart circuit",state:V.restart.circuit,rows:{failures:V.restart.consecutiveImmediateFailures,reason:V.restart.lastReason}}),u.jsxs("div",{className:"panel wide",children:[u.jsx("h2",{children:"Safe actions"}),u.jsxs("div",{className:"actions",children:[se.lifecycle.start&&u.jsx("button",{onClick:()=>{Le("start")},children:"Start"}),!ye&&se.lifecycle.stop&&u.jsx("button",{onClick:()=>{Le("stop")},children:"Stop"}),!ye&&se.lifecycle.restartResume&&u.jsx("button",{onClick:()=>{Le("restart_resume")},children:"Restart & resume"}),!ye&&se.lifecycle.restartFresh&&u.jsx("button",{className:"danger",onClick:()=>{Le("restart_fresh")},children:"Fresh restart…"}),ye&&u.jsx("span",{className:"muted",children:"Inactive — start is the only applicable lifecycle action."}),u.jsx("button",{className:"danger",onClick:()=>{Xd(s).then(p=>{p&&(alert(`Removed ${s}. Recovery archive: ${p.recoveryPath}`),r?.())}).catch(p=>X(p.message))},children:"Remove role…"})]})]})]}),g==="activity"&&u.jsxs("div",{className:"activity-layout",children:[u.jsxs("div",{className:"activity panel",children:[u.jsx("h2",{children:V.session.backend==="acp"?"Structured activity":"Recent pane output"}),M?.text&&u.jsx("pre",{children:M.text}),ze.technical.length>0&&u.jsxs("div",{className:"activity-filter",children:[u.jsxs("span",{children:[ze.technical.length," low-level update",ze.technical.length===1?"":"s"," hidden"]}),u.jsx("button",{className:"secondary","aria-pressed":ie,onClick:()=>k(p=>!p),children:ie?"Hide technical details":"Show technical details"})]}),!M?.text&&Xe.length===0&&u.jsx("p",{className:"muted",children:"No meaningful agent activity yet."}),Xe.map(p=>u.jsxs("article",{className:`event ${p.kind}`,children:[u.jsxs("small",{children:["#",p.seq,p.lastSeq&&p.lastSeq!==p.seq?`–${p.lastSeq}`:""," · ",p.kind.replaceAll("_"," ")]}),u.jsx("p",{children:p.text||p.title||p.status||p.stopReason}),p.kind==="permission"&&p.options?.map(U=>u.jsx("button",{onClick:()=>{he.post(`/api/v1/roles/${s}/permissions/${p.permissionId}`,{optionId:U.optionId})},children:U.name},U.optionId))]},p.seq))]}),se.input.text&&u.jsxs("div",{className:"composer panel",children:[u.jsx("h3",{children:"Send text"}),u.jsx("textarea",{value:C,onChange:p=>Q(p.target.value),placeholder:"Prompt the live session…"}),u.jsx("button",{className:"primary",disabled:!C.trim(),onClick:()=>{Ie()},children:"Send"}),se.input.interrupt&&u.jsx("button",{className:"danger",onClick:()=>confirm("Interrupt the active ACP turn?")&&void he.post(`/api/v1/roles/${s}/interrupt`,{}),children:"Interrupt turn"}),u.jsx("small",{children:"Acceptance is not completion. Timeouts remain uncertain."})]})]}),g==="terminal"&&u.jsx(H.Suspense,{fallback:u.jsx("div",{className:"panel",children:"Loading terminal runtime…"}),children:u.jsx(Kv,{roleId:s})}),g==="logs"&&u.jsxs("div",{className:"panel log-panel",children:[u.jsx("h2",{children:"Redacted logs"}),u.jsx("p",{className:"muted",children:"Raw export is disabled."}),Y?.records?.map((p,U)=>u.jsx($v,{record:p},U))]}),g==="diagnostics"&&u.jsxs("div",{className:"panel",children:[u.jsx("h2",{children:"Capabilities & problems"}),u.jsx("pre",{children:JSON.stringify(se,null,2)}),[...I.problems,...V.problems].map((p,U)=>u.jsx("p",{className:"warning",children:p.detail},U))]})]})}function kv(s,d){if(!s||d.text!==void 0||s.text!==void 0)return d;const r=new Map;for(const m of[...s.events??[],...d.events??[]])r.set(m.seq,m);const o=[...r.values()].sort((m,g)=>m.seq-g.seq).slice(-200);return{...d,events:o,firstSeq:o[0]?.seq??d.firstSeq,lastSeq:Math.max(s.lastSeq??0,d.lastSeq??0)||void 0,truncated:!!(s.truncated||d.truncated||r.size>200)}}function $v({record:s}){return s.compacted?.kind==="monitor_stream_hiccup"?u.jsxs("pre",{children:[s.text," (",s.compacted.reason,") — ",s.compacted.count," consecutive occurrences",s.compacted.firstAt?` · first ${s.compacted.firstAt}`:"",s.compacted.lastAt?` · last ${s.compacted.lastAt}`:"",s.redactionApplied?" [redacted]":""]}):u.jsxs("pre",{children:[s.at?`${s.at} `:"",s.text,s.redactionApplied?" [redacted]":""]})}function Ki({title:s,state:d,rows:r}){return u.jsxs("div",{className:"panel evidence",children:[u.jsxs("div",{children:[u.jsx("h2",{children:s}),u.jsx("strong",{children:d})]}),u.jsx("dl",{children:Object.entries(r).filter(([,o])=>o!==void 0).map(([o,m])=>u.jsxs("div",{children:[u.jsx("dt",{children:o}),u.jsx("dd",{children:String(m)})]},o))})]})}function Yd(s){return s.enabled?s.heldDown||s.latest===null||s.latest.status==="error"||s.latest.summary.anomalies>0?"attention":"ready":"offline"}function Wv(s){if(s.heldDown)return`held down since ${s.heldSince??"unknown"}.`;if(s.latest===null)return"no runs yet.";if(s.latest.status==="error")return`last run failed: ${s.latest.error}.`;const{checked:d,anomalies:r}=s.latest.summary;if(r>0){if(s.latest.anomalyRoles){const o=s.latest.anomalyRoles.map(m=>`${m.role} ${m.status}`).join(", ");return`${d} checked, ${r} ${r===1?"anomaly":"anomalies"} (${o}).`}return`${d} checked, ${r} anomalies.`}return`${d} roles checked, all healthy.`}function Fv(s){const d=Date.parse(s.startedAt),r=Date.parse(s.finishedAt);if(!Number.isFinite(d)||!Number.isFinite(r))return"-";const o=Math.round(Math.max(0,r-d)/1e3);if(o<60)return`${o}s`;const m=Math.floor(o/60),g=o%60;return g===0?`${m}m`:`${m}m ${g}s`}function Iv(s,d){if(s.status==="healthy"||s.status==="idle")return"";if(s.alerted){const r=d.alerts.find(o=>o.role===s.role);return`alerted -> ${r?.coordinator??"unknown"} at ${r?.sent_at??"unknown time"}`}return"suppressed (open finding within cooldown)"}function Pv(s,d){if(!s.enabled||s.nextRunAt===null)return"—";const r=new Date(s.nextRunAt).getTime()-d.getTime();if(r<=0)return"overdue";const o=Math.round(r/6e4);if(o<60)return`in ${o}m`;const m=Math.round(r/36e5);return m<24?`in ${m}h`:`in ${Math.round(r/864e5)}d`}function eg({api:s,onSelect:d}){const[r,o]=H.useState([]),[m,g]=H.useState(""),E=H.useCallback(async()=>{try{const M=await s.get("/api/v1/watchdogs");o(M.watchdogs),g("")}catch(M){g(M.message)}},[s]);H.useEffect(()=>{E();const M=setInterval(()=>{E()},3e3);return()=>clearInterval(M)},[E]);const x=new Date;return u.jsxs("div",{className:"content",children:[m&&u.jsx("div",{className:"banner error",children:m}),u.jsxs("div",{className:"role-table",children:[u.jsxs("div",{className:"role-row heading",children:[u.jsx("span",{children:"Watchdog"}),u.jsx("span",{children:"Interval"}),u.jsx("span",{children:"Coordinator"}),u.jsx("span",{children:"Last run"}),u.jsx("span",{children:"Next run"})]}),r.map(M=>u.jsxs("button",{className:"role-row",onClick:()=>d(M.name),children:[u.jsxs("span",{className:"role-name",children:[u.jsxs("span",{className:`status-chip ${Yd(M)}`,children:[u.jsx("i",{"aria-hidden":"true"}),ag(Yd(M))]}),u.jsxs("span",{children:[u.jsx("strong",{children:M.name}),u.jsx("small",{children:Wv(M)})]}),u.jsxs("em",{children:["every ",Gd(M.intervalMs)]})]}),u.jsx("span",{children:u.jsx("strong",{children:Gd(M.intervalMs)})}),u.jsx("span",{children:u.jsx("strong",{children:M.coordinator})}),u.jsx("span",{children:u.jsx("strong",{children:M.lastRunAt?Ld(M.lastRunAt,x):"never"})}),u.jsx("span",{children:u.jsx("strong",{children:Pv(M,x)})})]},M.name)),!r.length&&u.jsx("div",{className:"empty",children:"No watchdogs configured."})]})]})}function tg({api:s,name:d,onBack:r}){const[o,m]=H.useState([]),[g,E]=H.useState(""),[x,M]=H.useState(),[z,Y]=H.useState(""),[B,C]=H.useState(!1);H.useEffect(()=>{m([]),E(""),M(void 0),Y(""),C(!1);let X=!1;return s.get(`/api/v1/watchdogs/${encodeURIComponent(d)}/reports?limit=50`).then(ie=>{X||(m(ie.runs),E(ie.runs[0]?.runId??""))}).catch(ie=>{X||Y(ie.message)}),()=>{X=!0}},[s,d]),H.useEffect(()=>{if(!g)return;let X=!1;return M(void 0),s.get(`/api/v1/watchdogs/${encodeURIComponent(d)}/reports/${encodeURIComponent(g)}`).then(ie=>{X||M(ie)}).catch(ie=>{X||Y(ie.message)}),()=>{X=!0}},[s,d,g]);const Q=()=>{!x||!navigator.clipboard||navigator.clipboard.writeText(JSON.stringify(x,null,2)).then(()=>{C(!0),setTimeout(()=>C(!1),1500)}).catch(X=>Y(X.message))},P=new Date;return u.jsxs("div",{className:"content watchdog-detail",children:[u.jsx("button",{className:"back",onClick:r,children:"← Back to watchdogs"}),z&&u.jsx("div",{className:"banner error",children:z}),u.jsxs("div",{className:"watchdog-detail-layout",children:[u.jsxs("div",{className:"panel run-history",children:[u.jsx("h2",{children:"Run history"}),u.jsxs("div",{className:"role-table",children:[u.jsxs("div",{className:"role-row heading",children:[u.jsx("span",{children:"Run"}),u.jsx("span",{children:"When"}),u.jsx("span",{children:"Duration"}),u.jsx("span",{children:"Status"}),u.jsx("span",{children:"Counts"})]}),o.map(X=>u.jsxs("button",{className:`role-row${X.runId===g?" active":""}`,onClick:()=>E(X.runId),children:[u.jsx("span",{children:u.jsx("strong",{children:X.runId})}),u.jsx("span",{children:u.jsx("strong",{children:Ld(X.startedAt,P)})}),u.jsx("span",{children:u.jsx("strong",{children:Fv(X)})}),u.jsxs("span",{className:`status-chip ${wd(X.status)}`,children:[u.jsx("i",{"aria-hidden":"true"}),X.status]}),u.jsx("span",{children:u.jsxs("strong",{children:[X.summary.checked,"/",X.summary.healthy,"/",X.summary.idle,"/",X.summary.anomalies]})})]},X.runId)),!o.length&&u.jsx("div",{className:"empty",children:"No runs recorded yet."})]})]}),x&&u.jsxs("div",{className:"panel watchdog-report",children:[u.jsxs("div",{className:"watchdog-report-head",children:[u.jsxs("h2",{children:["Run ",x.run_id]}),u.jsxs("span",{className:`status-chip ${wd(x.status)}`,children:[u.jsx("i",{"aria-hidden":"true"}),x.status]}),u.jsx("button",{className:"secondary",onClick:Q,disabled:!navigator.clipboard,children:B?"Copied!":"Copy JSON"})]}),x.status==="error"?u.jsxs("div",{className:"watchdog-error",children:[u.jsx("p",{className:"warning",children:x.error}),x.tail&&u.jsx("pre",{children:x.tail})]}):u.jsxs("div",{className:"watchdog-roles",children:[x.roles.map(X=>u.jsx(lg,{finding:X,report:x},X.role)),!x.roles.length&&u.jsx("div",{className:"empty",children:"No roles checked in this run."})]})]})]})]})}function lg({finding:s,report:d}){const r=s.status==="healthy"||s.status==="idle",o=Iv(s,d);return u.jsxs("div",{className:"watchdog-role",children:[u.jsxs("div",{className:"watchdog-role-head",children:[u.jsxs("span",{className:`status-chip ${r?"ready":"attention"}`,children:[u.jsx("i",{"aria-hidden":"true"}),s.status]}),u.jsx("strong",{children:s.role}),s.reason&&u.jsx("span",{className:"muted",children:s.reason})]}),!r&&u.jsxs("p",{className:"watchdog-role-detail",children:["expected: healthy — observed: ",s.status,": ",s.reason]}),!r&&o&&u.jsx("p",{className:"watchdog-role-note",children:o}),!!s.evidence?.length&&u.jsxs("details",{children:[u.jsxs("summary",{children:["Evidence (",s.evidence.length,")"]}),u.jsx("ul",{children:s.evidence.map((m,g)=>u.jsxs("li",{children:["[",m.source,"] ",m.detail," (",m.observed_at,")"]},g))})]})]})}function wd(s){return s==="ok"?"ready":"attention"}function ag(s){return s==="ready"?"Ready":s==="attention"?"Attention":"Offline"}function Gd(s){const d=Math.round(s/6e4);if(d<60)return`${d}m`;const r=Math.round(s/36e5);return r<24?`${r}h`:`${Math.round(s/864e5)}d`}function Ld(s,d){const r=d.getTime()-new Date(s).getTime();if(r<6e4)return"just now";const o=Math.round(r/6e4);if(o<60)return`${o}m ago`;const m=Math.round(r/36e5);return m<24?`${m}h ago`:`${Math.round(r/864e5)}d ago`}const Zd=[{kind:"oversees",label:"Oversight",description:"A coordinator is responsible for checking this agent."},{kind:"watches",label:"Watchdog",description:"A watchdog checks this agent on its configured interval."},{kind:"targets",label:"Scheduled loop",description:"A scheduled loop sends recurring work to this agent."},{kind:"spawned",label:"Temporary spawn",description:"This agent was created by another agent; dashed mint shows its runtime parent."}];function ng(s,d){const r=Zd.find(m=>m.kind===s.kind),o=d===s.to?`incoming from ${s.from}`:d===s.from?`outgoing to ${s.to}`:`${s.from} to ${s.to}`;return`${r.label}: ${o}. ${r.description}`}function ig(s){const d=s.nodes.filter(C=>C.kind==="agent"),r=s.nodes.filter(C=>C.kind==="watchdog"),o=s.nodes.filter(C=>C.kind==="loop"),m=new Map(s.edges.filter(C=>C.kind==="spawned").map(C=>[C.to,C.from])),g=new Map;for(const C of d){const Q=m.get(C.id);Q&&g.set(Q,[...g.get(Q)??[],C])}const E=[],x=new Set,M=C=>{if(!x.has(C.id)){x.add(C.id),E.push(C);for(const Q of g.get(C.id)??[])M(Q)}};for(const C of d.filter(Q=>!m.has(Q.id)))M(C);for(const C of d)M(C);const z=Math.max(E.length,r.length,o.length,1),Y=Math.max(360,z*112+70),B=(C,Q)=>C.map((P,X)=>({...P,x:Q,y:62+X*((Y-110)/Math.max(C.length,1))}));return{nodes:[...B(r,80),...B(E,410),...B(o,750)],height:Y}}function ps(s){if(s.kind==="agent")return{kind:"agent",id:s.label};if(s.kind==="watchdog")return{kind:"watchdog",id:s.label}}function ug({topology:s,onAgent:d,onWatchdog:r,onRemove:o}){const m=ig(s),g=new Map(m.nodes.map(x=>[x.id,x])),E=x=>{const M=ps(x);M?.kind==="agent"&&d(M.id),M?.kind==="watchdog"&&r(M.id)};return u.jsxs(u.Fragment,{children:[u.jsxs("section",{className:"topology-legend","aria-label":"Topology connection legend",children:[u.jsx("strong",{children:"Connections"}),u.jsx("ul",{children:Zd.map(x=>u.jsxs("li",{tabIndex:0,"aria-label":`${x.label}. ${x.description}`,title:x.description,children:[u.jsx("span",{className:`legend-line ${x.kind}`,"aria-hidden":"true"}),u.jsxs("span",{children:[u.jsx("b",{children:x.label}),u.jsx("small",{children:x.description})]})]},x.kind))})]}),u.jsx("div",{className:"topology","aria-label":"Interactive fleet topology",children:u.jsxs("div",{className:"topology-canvas",style:{height:m.height},children:[u.jsx("svg",{"aria-hidden":"true",viewBox:`0 0 1000 ${m.height}`,preserveAspectRatio:"none",children:s.edges.map(x=>{const M=g.get(x.from),z=g.get(x.to);return M&&z?u.jsxs("g",{className:`edge ${x.kind}`,children:[u.jsx("line",{x1:M.x+75,y1:M.y+30,x2:z.x+75,y2:z.y+30}),u.jsx("title",{children:x.label})]},x.id):null})}),m.nodes.map(x=>u.jsxs("div",{className:`topology-node ${x.kind} ${x.status} ${x.lifetime??""}`,style:{left:x.x,top:x.y},children:[u.jsxs("button",{className:"topology-open",onClick:()=>E(x),disabled:!ps(x),"aria-label":`${x.kind} ${x.label}, ${x.status}`,children:[u.jsxs("small",{children:[x.kind,x.lifetime?` · ${x.lifetime}`:""]}),u.jsx("strong",{children:x.label}),u.jsx("span",{children:x.detail||x.status})]}),x.kind==="agent"&&o&&u.jsx("button",{className:"topology-remove","aria-label":`Remove ${x.label}`,title:`Safely remove ${x.label}`,onClick:()=>o(x.label),children:"×"})]},x.id))]})}),s.unknownLineage.length>0&&u.jsxs("p",{className:"lineage-note",children:["Spawn parent unavailable for: ",s.unknownLineage.join(", "),". No lineage was inferred."]}),u.jsxs("details",{className:"topology-fallback",children:[u.jsx("summary",{children:"Accessible list view"}),u.jsxs("table",{children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"Type"}),u.jsx("th",{children:"Name"}),u.jsx("th",{children:"Status"}),u.jsx("th",{children:"Connections"})]})}),u.jsx("tbody",{children:s.nodes.map(x=>u.jsxs("tr",{children:[u.jsx("td",{children:x.kind}),u.jsx("td",{children:ps(x)?u.jsx("button",{className:"text-button",onClick:()=>E(x),children:x.label}):x.label}),u.jsx("td",{children:x.status}),u.jsx("td",{children:s.edges.filter(M=>M.from===x.id||M.to===x.id).map(M=>ng(M,x.id)).join(" ")||"—"})]},x.id))})]})]})]})}const An=s=>Object.entries(s&&typeof s=="object"?s:{});function cg({initial:s,onSaved:d}){const[r,o]=H.useState(()=>structuredClone(s.model)),[m,g]=H.useState(0),[E,x]=H.useState(),[M,z]=H.useState(""),[Y,B]=H.useState(!1),[C,Q]=H.useState(!1),[P,X]=H.useState({});H.useEffect(()=>{const A=new AbortController;return he.get("/api/v1/creation-capabilities",A.signal).then(W=>{A.signal.aborted||X(Object.fromEntries((W.harnesses??[]).map(ee=>[ee.id,ee.modelOptions??[]])))}).catch(()=>{}),()=>A.abort()},[]);const ie=H.useMemo(()=>An(r.roles),[r]),k=A=>o(W=>{const ee=structuredClone(W);return A(ee),ee}),_e=async()=>{B(!0),z("");try{const A=await he.post("/api/v1/configuration/preview",{revision:s.revision,model:r});x(A),o(A.normalizedModel),g(3)}catch(A){z(A.message)}finally{B(!1)}},be=async()=>{B(!0),z("");try{const A=await he.post("/api/v1/configuration/save",{revision:s.revision,model:r});d({...s,exists:!0,firstRun:!1,revision:A.newRevision,model:A.normalizedModel})}catch(A){z(A.message)}finally{B(!1)}};return u.jsxs("div",{className:"content setup-entry",children:[u.jsxs("div",{className:"setup-hero",children:[u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:"safe fleet configuration"}),u.jsx("h2",{children:s.firstRun?"Build your first fleet":"Configure the fleet"}),u.jsx("p",{children:"Design the fleet, validate it with the same parser used at launch, review a redacted diff, then save atomically."})]}),u.jsxs("div",{className:"setup-safety",children:[u.jsx("strong",{children:"No implicit restart"}),u.jsx("span",{children:"Save creates a recovery backup. Secret environment values remain hidden."})]})]}),u.jsx("ol",{className:"setup-steps","aria-label":"Setup progress",children:["Defaults","Agents","Automation","Review"].map((A,W)=>u.jsxs("li",{className:m===W?"active":m>W?"done":"",children:[W+1,u.jsx("span",{children:A})]},A))}),u.jsxs("div",{className:"mode-switch",role:"group","aria-label":"Configuration detail level",children:[u.jsx("button",{className:C?"secondary":"active",onClick:()=>Q(!1),children:"Basic"}),u.jsx("button",{className:C?"active":"secondary",onClick:()=>Q(!0),children:"Advanced"}),u.jsx("span",{children:"Basic asks one short decision at a time. Advanced reveals permission, override, and automation tuning."})]}),M&&u.jsx("div",{className:"banner error",children:M}),u.jsxs("div",{className:"panel setup-panel",children:[m===0&&u.jsx(sg,{model:r,catalogs:P,advanced:C,update:k}),m===1&&u.jsx(fg,{roles:ie,advanced:C,update:k}),m===2&&u.jsx(og,{model:r,roles:ie.map(([A])=>A),advanced:C,update:k}),m===3&&E&&u.jsx(rg,{preview:E}),u.jsxs("div",{className:"setup-actions",children:[m>0&&u.jsx("button",{className:"secondary",onClick:()=>g(A=>A-1),disabled:Y,children:"Back"}),u.jsx("span",{}),m<2&&u.jsx("button",{className:"primary",onClick:()=>g(A=>A+1),children:"Continue"}),m===2&&u.jsx("button",{className:"primary",onClick:()=>{_e()},disabled:Y,children:Y?"Validating…":"Validate & review"}),m===3&&u.jsx("button",{className:"primary",onClick:()=>{be()},disabled:Y||!E,children:Y?"Saving…":"Save fleet.yaml"})]})]})]})}function sg({model:s,catalogs:d,advanced:r,update:o}){const m=s.defaults??{},g=m.permissions??{},E=(C,Q)=>o(P=>{P.defaults??={},Q?P.defaults[C]=Q:delete P.defaults[C]}),x=m.harness??"claude-code",M=d[x]??[],z=M.find(C=>C.id===m.model),Y=x==="codex"?m.harness_options?.config?.model_reasoning_effort:m.harness_options?.effort,B=C=>o(Q=>{Q.defaults??={},Q.defaults.harness_options??={},x==="codex"?(Q.defaults.harness_options.config??={},C?Q.defaults.harness_options.config.model_reasoning_effort=C:delete Q.defaults.harness_options.config.model_reasoning_effort):C?Q.defaults.harness_options.effort=C:delete Q.defaults.harness_options.effort});return u.jsxs(u.Fragment,{children:[u.jsx("h3",{children:"1. Choose how agents run"}),u.jsx("p",{className:"muted",children:"This becomes the starting point for every agent. Existing sessions are not restarted by saving."}),u.jsxs("div",{className:"decision-note",children:[u.jsx("strong",{children:"Recommended default"}),u.jsx("span",{children:"ACP gives structured activity; tmux gives a terminal. Pick an exact catalog model, or let the harness resolve its default when a new session launches."})]}),u.jsxs("div",{className:"form-grid three",children:[u.jsxs("label",{children:["Harness",u.jsxs("select",{value:x,onChange:C=>E("harness",C.target.value),children:[u.jsx("option",{value:"codex",children:"Codex"}),u.jsx("option",{value:"claude-code",children:"Claude Code"})]})]}),u.jsxs("label",{children:["Session",u.jsxs("select",{value:m.session??"tmux",onChange:C=>E("session",C.target.value),children:[u.jsx("option",{value:"acp",children:"ACP"}),u.jsx("option",{value:"tmux",children:"tmux"})]})]}),u.jsxs("label",{children:["Model",u.jsxs("select",{"aria-label":"Fleet model",value:z?.id??"",onChange:C=>{E("model",C.target.value);const Q=M.find(P=>P.id===C.target.value);B(Q?.defaultReasoningEffort??"")},children:[u.jsx("option",{value:"",children:"Use harness default (resolved at launch)"}),M.map(C=>u.jsxs("option",{value:C.id,children:[C.label," — ",C.id]},C.id))]})]}),u.jsxs("label",{children:["Reasoning effort",u.jsxs("select",{"aria-label":"Fleet reasoning effort",value:Y??"",onChange:C=>B(C.target.value),children:[u.jsx("option",{value:"",children:"Model default"}),(z?.reasoningEfforts??[]).map(C=>u.jsx("option",{children:C},C))]})]}),r&&u.jsxs("label",{children:["Custom model ID",u.jsx("input",{value:m.model??"",placeholder:"exact vendor model ID",onChange:C=>E("model",C.target.value)})]}),r&&["approval","filesystem","unattended"].map(C=>u.jsxs("label",{children:[C,u.jsx("select",{value:g[C]??(C==="filesystem"?"workspace":C==="unattended"?"deny":"ask"),onChange:Q=>o(P=>{P.defaults??={},P.defaults.permissions??={},P.defaults.permissions[C]=Q.target.value}),children:(C==="approval"?["ask","auto","allow"]:C==="filesystem"?["read-only","workspace","unrestricted"]:["deny","wait"]).map(Q=>u.jsx("option",{children:Q},Q))})]},C))]})]})}function fg({roles:s,advanced:d,update:r}){const o=()=>r(m=>{m.roles??={};let g=1;for(;m.roles[`Agent${g}`];)g++;m.roles[`Agent${g}`]={}});return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"section-title",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"2. Name the agents and give each a job"}),u.jsx("p",{className:"muted",children:"Example: Researcher — “Find primary sources and summarize evidence.” Saving adds configuration; it does not restart running agents."})]}),u.jsx("button",{className:"secondary",onClick:o,children:"+ Add agent"})]}),u.jsx("div",{className:"entity-list",children:s.map(([m,g])=>u.jsxs("div",{className:"entity-card",children:[u.jsxs("div",{className:"form-grid three",children:[u.jsxs("label",{children:["Name",u.jsx("input",{value:m,onChange:E=>r(x=>{const M=E.target.value;!M||M===m||(x.roles[M]=x.roles[m],delete x.roles[m])})})]}),d&&u.jsxs("label",{children:["Coordinator",u.jsx("input",{value:g.coordinator??"",onChange:E=>r(x=>{x.roles[m].coordinator=E.target.value||void 0})})]}),d&&u.jsxs("label",{children:["Model override",u.jsx("input",{value:g.model??"",placeholder:"Inherit",onChange:E=>r(x=>{E.target.value?x.roles[m].model=E.target.value:delete x.roles[m].model})})]}),u.jsxs("label",{className:"wide",children:["Mission",u.jsx("textarea",{value:g.mission??"",onChange:E=>r(x=>{x.roles[m].mission=E.target.value})})]}),d&&u.jsxs("label",{children:["Oversee roles",u.jsx("input",{value:(g.oversee??[]).map(E=>E.role).join(", "),placeholder:"Researcher, Reviewer",onChange:E=>r(x=>{x.roles[m].oversee=E.target.value.split(",").map(M=>M.trim()).filter(Boolean).map(M=>({role:M,interval:"5m"}))})})]})]}),u.jsx("button",{className:"text-button danger",onClick:()=>r(E=>{delete E.roles[m]}),children:"Remove"})]},m))}),!s.length&&u.jsx("div",{className:"empty compact",children:"Add at least one agent to start a fleet."})]})}function og({model:s,roles:d,advanced:r,update:o}){const m=()=>o(E=>{E.watchdogs??={};let x=1;for(;E.watchdogs[`watch${x}`];)x++;E.watchdogs[`watch${x}`]={coordinator:d[0]??"",watch:d,interval:"10m"}}),g=()=>o(E=>{E.loops??={};let x=1;for(;E.loops[`loop${x}`];)x++;E.loops[`loop${x}`]={roles:d.slice(0,1),interval:"10m",prompt:"Review current work and act on the next concrete step."}});return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"section-title",children:[u.jsxs("div",{children:[u.jsx("h3",{children:"3. Add automation only if you need it"}),u.jsx("p",{className:"muted",children:"Most first fleets can skip this. Watchdogs inspect health; loops send a recurring prompt. Both begin after the scheduler reloads the saved configuration."})]}),u.jsxs("div",{children:[u.jsx("button",{className:"secondary",onClick:m,children:"+ Watchdog"})," ",u.jsx("button",{className:"secondary",onClick:g,children:"+ Loop"})]})]}),u.jsxs("div",{className:"entity-list",children:[An(s.watchdogs).map(([E,x])=>u.jsx(Qd,{kind:"watchdog",name:E,item:x,update:o},`w-${E}`)),An(s.loops).map(([E,x])=>u.jsx(Qd,{kind:"loop",name:E,item:x,update:o},`l-${E}`))]}),!r&&u.jsx("p",{className:"decision-note",children:"Switch to Advanced to tune intervals, target lists, and prompts after adding automation."}),!An(s.watchdogs).length&&!An(s.loops).length&&u.jsx("div",{className:"empty compact",children:"Automation is optional. Continue to review when ready."})]})}function Qd({kind:s,name:d,item:r,update:o}){const m=s==="watchdog"?"watchdogs":"loops";return u.jsxs("div",{className:"entity-card",children:[u.jsx("span",{className:"eyebrow",children:s}),u.jsxs("div",{className:"form-grid three",children:[u.jsxs("label",{children:["Name",u.jsx("input",{value:d,readOnly:!0})]}),u.jsxs("label",{children:["Interval",u.jsx("input",{value:r.interval??"10m",onChange:g=>o(E=>{E[m][d].interval=g.target.value})})]}),u.jsxs("label",{children:[s==="watchdog"?"Watch roles":"Target roles",u.jsx("input",{value:(s==="watchdog"?r.watch:r.roles??[]).join(", "),onChange:g=>o(E=>{E[m][d][s==="watchdog"?"watch":"roles"]=g.target.value.split(",").map(x=>x.trim()).filter(Boolean)})})]}),s==="watchdog"?u.jsxs("label",{children:["Coordinator",u.jsx("input",{value:r.coordinator??"",onChange:g=>o(E=>{E.watchdogs[d].coordinator=g.target.value})})]}):u.jsxs("label",{className:"wide",children:["Prompt",u.jsx("textarea",{value:r.prompt??"",onChange:g=>o(E=>{E.loops[d].prompt=g.target.value})})]})]}),u.jsx("button",{className:"text-button danger",onClick:()=>o(g=>{delete g[m][d]}),children:"Remove"})]})}function rg({preview:s}){return u.jsxs(u.Fragment,{children:[u.jsx("h3",{children:"Review before save"}),u.jsxs("div",{className:`preflight ${s.preflight.ok?"ok":"failed"}`,children:[u.jsx("strong",{children:s.preflight.ok?"Preflight passed":"Preflight needs attention"}),u.jsx("span",{children:s.impact.summary})]}),u.jsxs("details",{open:!0,children:[u.jsx("summary",{children:"Exact redacted diff"}),u.jsx("pre",{className:"config-diff",children:s.diff||"No changes."})]}),u.jsxs("details",{children:[u.jsxs("summary",{children:["Doctor checks (",s.preflight.checks.length,")"]}),u.jsx("ul",{className:"check-list",children:s.preflight.checks.map(d=>u.jsxs("li",{className:d.ok?"ok":"failed",children:[u.jsx("strong",{children:d.name})," — ",d.detail]},d.name))})]})]})}function dg(){const[s,d]=H.useState(!1),[r,o]=H.useState(!1),[m,g]=H.useState(""),[E,x]=H.useState(""),[M,z]=H.useState([]),[Y,B]=H.useState({nodes:[],edges:[],unknownLineage:[]}),[C,Q]=H.useState(),[P,X]=H.useState(""),[ie,k]=H.useState(""),[_e,be]=H.useState(!1),[A,W]=H.useState("fleet"),[ee,F]=H.useState(""),[I,V]=H.useState(!1),[se,ye]=H.useState(),[ze,Xe]=H.useState("connecting"),[Le,Ie]=H.useState(),p=H.useCallback(async b=>{const[q,w,Z,ae]=await Promise.all([he.get("/api/v1/roles",b),he.get("/api/v1/meta",b),he.get("/api/v1/topology",b),he.get("/api/v1/configuration",b)]);b.aborted||(z(q.roles),Ie(w),B(Z),Q(ae),ae.firstRun&&W("configuration"),x(""))},[]);H.useEffect(()=>{he.bootstrap().then(b=>{if(b==="password"){o(!0);return}d(!0)}).catch(b=>x(b.message))},[]);const U=Ma(p,b=>x(b.message),s);H.useEffect(()=>{if(!s)return;let b,q=!1;return he.post("/api/v1/ws-tickets",{purpose:"events"}).then(({ticket:w})=>{q||(b=new WebSocket(`${location.protocol==="https:"?"wss":"ws"}://${location.host}/api/v1/events`,"ours-fleet-events.v1"),b.onopen=()=>b?.send(JSON.stringify({ticket:w})),b.onmessage=Z=>{JSON.parse(Z.data).kind==="ready"?Xe("live"):U()},b.onclose=()=>Xe("polling"))}).catch(()=>Xe("polling")),()=>{q=!0,b?.close()}},[s,U]),H.useEffect(()=>{if(matchMedia("(display-mode: standalone)").matches)return;const b=q=>{q.preventDefault(),ye(q)};return window.addEventListener("beforeinstallprompt",b),()=>window.removeEventListener("beforeinstallprompt",b)},[]);const K=M.filter(Tl).length,me=M.filter(Ji).length,re=H.useMemo(()=>Xv(M,{filter:ie,showInactive:A==="fleet"&&_e,attentionOnly:A==="attention"}),[ie,M,_e,A]),y=H.useMemo(()=>{const b=new Set(re.map(Z=>`agent:${Z.role.id}`)),q=Y.nodes.filter(Z=>Z.kind!=="agent"||b.has(Z.id)),w=new Set(q.map(Z=>Z.id));return{nodes:q,edges:Y.edges.filter(Z=>w.has(Z.from)&&w.has(Z.to)),unknownLineage:Y.unknownLineage.filter(Z=>b.has(`agent:${Z}`))}},[re,Y]);return s?u.jsxs("div",{className:"shell",children:[u.jsxs("aside",{children:[u.jsxs("div",{className:"brand",children:[u.jsx("span",{className:"brand-wordmark",children:"Ours"}),u.jsx("div",{children:u.jsx("small",{children:"fleet console"})})]}),u.jsx("nav",{"aria-label":"Primary",children:["fleet","attention","watchdogs","configuration","audit"].map(b=>u.jsxs("button",{className:A===b?"active":"",onClick:()=>{W(b),X(""),F("")},children:[u.jsx("span",{"aria-hidden":"true",children:b==="fleet"?"⌘":b==="attention"?"△":b==="watchdogs"?"◉":b==="configuration"?"⚙":"≡"}),b==="fleet"?"Topology":b==="attention"?"Needs attention":b==="watchdogs"?"Watchdogs":b==="configuration"?"Configure":"Audit trail",b==="attention"&&u.jsx("b",{children:me})]},b))}),u.jsxs("div",{className:"sidebar-foot",children:[u.jsx("i",{className:ze})," ",ze,u.jsxs("small",{children:["v",Le?.version]})]})]}),u.jsxs("section",{className:"main",children:[u.jsxs("header",{children:[u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:P?"role workspace":ee?"watchdog":A}),u.jsx("h1",{children:P||ee||(A==="attention"?"Needs attention":A==="watchdogs"?"Watchdogs":A==="configuration"?"Fleet setup":A==="audit"?"Audit trail":"Fleet topology")})]}),u.jsxs("div",{className:"header-actions",children:[se&&u.jsx("button",{className:"secondary",onClick:()=>{se.prompt(),ye(void 0)},children:"Install app"}),u.jsx("button",{className:"secondary",onClick:U,children:"Refresh"}),he.accessMode!=="none"&&u.jsx("button",{className:"secondary",onClick:()=>{he.logout().finally(()=>location.reload())},children:"Sign out"}),u.jsx("button",{className:"primary",onClick:()=>V(!0),children:"+ Create role"})]})]}),Le?.auditDegraded&&u.jsxs("div",{className:"banner warning",children:["Audit degraded: ",Le.auditDegraded]}),he.accessWarning&&u.jsx("div",{className:"banner warning",children:he.accessWarning}),E&&u.jsx("div",{className:"banner error",children:E}),P?u.jsx(Jv,{roleId:P,onBack:()=>X(""),onRemoved:()=>{X(""),U()}}):A==="configuration"?C?u.jsx(cg,{initial:C,onSaved:b=>{Q(b),W("fleet"),U()}},C.revision):u.jsx("div",{className:"content",children:u.jsx("div",{className:"empty",children:"Loading configuration…"})}):A==="audit"?u.jsx(gg,{}):A==="watchdogs"?ee?u.jsx(tg,{api:he,name:ee,onBack:()=>F("")}):u.jsx(eg,{api:he,onSelect:F}):u.jsxs("div",{className:"content",children:[u.jsxs("div",{className:"status-guide","aria-label":"Fleet status meanings",children:[u.jsxs("span",{className:"ready",children:[u.jsx("b",{children:"Ready"})," live and idle"]}),u.jsxs("span",{className:"busy",children:[u.jsx("b",{children:"Busy"})," active turn or permission"]}),u.jsxs("span",{className:"attention",children:[u.jsx("b",{children:"Attention"})," warning or unknown evidence"]}),u.jsxs("span",{className:"offline",children:[u.jsx("b",{children:"Offline"})," authoritative session stop"]}),u.jsx("small",{children:"Needs attention includes active attention and unknown roles. Inactive roles are shown separately."})]}),u.jsxs("div",{className:"toolbar",children:[u.jsx("input",{"aria-label":"Filter roles",placeholder:"Filter roles, missions, state…",value:ie,onChange:b=>k(b.target.value)}),u.jsxs("div",{children:[u.jsxs("span",{children:[re.length," roles"]}),A==="fleet"&&K>0&&u.jsxs("button",{className:"secondary","aria-pressed":_e,onClick:()=>be(b=>!b),children:[_e?"Hide inactive":"Show inactive"," (",K,")"]})]})]}),A==="fleet"&&!ie&&u.jsx(ug,{topology:y,onAgent:X,onWatchdog:b=>{F(b),W("watchdogs")},onRemove:b=>{Xd(b).then(q=>{q&&(alert(`Removed ${b}. Recovery archive: ${q.recoveryPath}`),U())}).catch(q=>x(q.message))}}),u.jsxs("div",{className:"role-table",children:[u.jsxs("div",{className:"role-row heading",children:[u.jsx("span",{children:"Role"}),u.jsx("span",{children:"Runtime"}),u.jsx("span",{children:"Evidence"}),u.jsx("span",{children:"Monitor"}),u.jsx("span",{children:"Observed"})]}),re.map(b=>u.jsxs("button",{className:`role-row${Tl(b)?" inactive":""}`,onClick:()=>X(b.role.id),children:[u.jsxs("span",{className:"role-name",children:[u.jsxs("span",{className:`status-chip ${Tl(b)?"offline":b.status.overall}`,children:[u.jsx("i",{"aria-hidden":"true"}),Tl(b)?"Inactive":hg(b.status.overall)]}),u.jsxs("span",{children:[u.jsx("strong",{children:b.role.id}),u.jsx("small",{className:"mission-summary",title:b.role.config?.mission,children:b.role.config?.mission||"No mission summary"})]}),u.jsxs("span",{className:"role-pills",children:[u.jsx("em",{children:b.role.lifetime}),b.status.problems.some(q=>q.source==="watchdog")&&u.jsx("em",{children:"watchdog"})]})]}),u.jsxs("span",{children:[u.jsx("strong",{children:b.role.config?.harness??"unknown"}),u.jsxs("small",{children:[b.status.session.backend," · ",b.role.config?.model??"runtime model not reported"]})]}),u.jsxs("span",{children:[u.jsx("strong",{children:mg(b.status.session)}),u.jsxs("small",{children:[vg(b.status.supervisor.liveness)," · ",b.status.session.evidence]})]}),u.jsxs("span",{children:[u.jsx("strong",{children:b.status.monitor.health}),u.jsx("small",{children:b.status.restart.circuit==="open"?"circuit open":"circuit closed"})]}),u.jsxs("span",{children:[u.jsx("strong",{children:new Date(b.status.observedAt).toLocaleTimeString()}),u.jsx("small",{children:"open →"})]})]},b.role.id)),!re.length&&u.jsx("div",{className:"empty",children:"No roles match this view."})]})]})]}),I&&u.jsx(_v,{onClose:()=>V(!1),onCreated:(b,q)=>{V(!1),U(),X(b),q&&history.replaceState(null,"",q)}})]}):u.jsxs("main",{className:"auth-screen",children:[u.jsx("div",{className:"brand-wordmark",children:"Ours"}),u.jsx("h1",{children:"fleet console"}),r&&u.jsxs("form",{onSubmit:b=>{b.preventDefault(),he.login(m).then(()=>{o(!1),d(!0),x("")}).catch(q=>x(q.message))},children:[u.jsxs("label",{children:["Control-panel password",u.jsx("input",{autoFocus:!0,type:"password",autoComplete:"current-password",value:m,onChange:b=>g(b.target.value)})]}),u.jsx("button",{className:"primary",type:"submit",children:"Sign in"})]}),u.jsx("p",{children:E||"Securing this local session…"})]})}function hg(s){return s==="ready"?"Ready":s==="busy"?"Busy":s==="offline"?"Offline":s==="attention"?"Attention":"Unknown"}function mg(s){return s.reachability==="online"?`live · ${s.readiness}`:s.reachability==="offline"?"offline":"unknown"}function vg(s){return s==="running"?"service active":s==="stopped"?"service inactive":"service unknown"}function gg(){const[s,d]=H.useState([]),[r,o]=H.useState(""),m=H.useCallback(async g=>{const E=await he.get("/api/v1/audit",g);g.aborted||(d(E.records),o(""))},[]);return Ma(m,g=>o(g.message)),u.jsx("div",{className:"content",children:u.jsxs("div",{className:"panel",children:[u.jsx("h2",{children:"Security & action metadata"}),u.jsx("p",{className:"muted",children:"Prompt text, terminal bytes, credentials, and log content are never recorded here."}),r&&u.jsxs("p",{className:"warning",children:["Refresh failed: ",r]}),u.jsx("div",{className:"audit-list",children:s.map((g,E)=>u.jsxs("div",{children:[u.jsx("time",{children:new Date(g.at).toLocaleString()}),u.jsx("strong",{children:g.action}),u.jsx("span",{children:g.result})]},E))})]})})}Nv.createRoot(document.getElementById("root")).render(u.jsx(H.StrictMode,{children:u.jsx(dg,{})}));"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js",{type:"module",scope:"/"})});export{he as a,u as j,H as r};
|