@tea-agent/loop-agent 0.24.1 → 0.24.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,253 @@
1
+ (function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const C of document.querySelectorAll('link[rel="modulepreload"]'))D(C);new MutationObserver(C=>{for(const T of C)if(T.type==="childList")for(const z of T.addedNodes)z.tagName==="LINK"&&z.rel==="modulepreload"&&D(z)}).observe(document,{childList:!0,subtree:!0});function v(C){const T={};return C.integrity&&(T.integrity=C.integrity),C.referrerPolicy&&(T.referrerPolicy=C.referrerPolicy),C.crossOrigin==="use-credentials"?T.credentials="include":C.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function D(C){if(C.ep)return;C.ep=!0;const T=v(C);fetch(C.href,T)}})();var gh={exports:{}},zd={},bh={exports:{}},kc={exports:{}};kc.exports;var X0;function QE(){return X0||(X0=1,(function(d,c){(function(){function v(m,S){Object.defineProperty(T.prototype,m,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",S[0],S[1])}})}function D(m){return m===null||typeof m!="object"?null:(m=ho&&m[ho]||m["@@iterator"],typeof m=="function"?m:null)}function C(m,S){m=(m=m.constructor)&&(m.displayName||m.name)||"ReactClass";var B=m+"."+S;wn[B]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",S,m),wn[B]=!0)}function T(m,S,B){this.props=m,this.context=S,this.refs=Oe,this.updater=B||Ua}function z(){}function V(m,S,B){this.props=m,this.context=S,this.refs=Oe,this.updater=B||Ua}function ce(){}function Ie(m){return""+m}function fe(m){try{Ie(m);var S=!1}catch{S=!0}if(S){S=console;var B=S.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object";return B.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),Ie(m)}}function M(m){if(m==null)return null;if(typeof m=="function")return m.$$typeof===zn?null:m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case L:return"Fragment";case ke:return"Profiler";case K:return"StrictMode";case tt:return"Suspense";case Wt:return"SuspenseList";case F:return"Activity"}if(typeof m=="object")switch(typeof m.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case Pe:return"Portal";case rt:return m.displayName||"Context";case Ae:return(m._context.displayName||"Context")+".Consumer";case ka:var S=m.render;return m=m.displayName,m||(m=S.displayName||S.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case kt:return S=m.displayName||null,S!==null?S:M(m.type)||"Memo";case Un:S=m._payload,m=m._init;try{return M(m(S))}catch{}}return null}function k(m){if(m===L)return"<>";if(typeof m=="object"&&m!==null&&m.$$typeof===Un)return"<...>";try{var S=M(m);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function _(){var m=I.A;return m===null?null:m.getOwner()}function oe(){return Error("react-stack-top-frame")}function Se(m){if(Hn.call(m,"key")){var S=Object.getOwnPropertyDescriptor(m,"key").get;if(S&&S.isReactWarning)return!1}return m.key!==void 0}function He(m,S){function B(){Aa||(Aa=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}B.isReactWarning=!0,Object.defineProperty(m,"key",{get:B,configurable:!0})}function me(){var m=M(this.type);return Xe[m]||(Xe[m]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),m=this.props.ref,m!==void 0?m:null}function We(m,S,B,X,le,ye){var J=B.ref;return m={$$typeof:qe,type:m,key:S,props:B,_owner:X},(J!==void 0?J:null)!==null?Object.defineProperty(m,"ref",{enumerable:!1,get:me}):Object.defineProperty(m,"ref",{enumerable:!1,value:null}),m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(m,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(m,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.defineProperty(m,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ye}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m}function vt(m,S){return S=We(m.type,S,m.props,m._owner,m._debugStack,m._debugTask),m._store&&(S._store.validated=m._store.validated),S}function qt(m){Ct(m)?m._store&&(m._store.validated=1):typeof m=="object"&&m!==null&&m.$$typeof===Un&&(m._payload.status==="fulfilled"?Ct(m._payload.value)&&m._payload.value._store&&(m._payload.value._store.validated=1):m._store&&(m._store.validated=1))}function Ct(m){return typeof m=="object"&&m!==null&&m.$$typeof===qe}function Kt(m){var S={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(B){return S[B]})}function Rt(m,S){return typeof m=="object"&&m!==null&&m.key!=null?(fe(m.key),Kt(""+m.key)):S.toString(36)}function Ee(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(ce,ce):(m.status="pending",m.then(function(S){m.status==="pending"&&(m.status="fulfilled",m.value=S)},function(S){m.status==="pending"&&(m.status="rejected",m.reason=S)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function ct(m,S,B,X,le){var ye=typeof m;(ye==="undefined"||ye==="boolean")&&(m=null);var J=!1;if(m===null)J=!0;else switch(ye){case"bigint":case"string":case"number":J=!0;break;case"object":switch(m.$$typeof){case qe:case Pe:J=!0;break;case Un:return J=m._init,ct(J(m._payload),S,B,X,le)}}if(J){J=m,le=le(J);var Te=X===""?"."+Rt(J,0):X;return ca(le)?(B="",Te!=null&&(B=Te.replace(Ut,"$&/")+"/"),ct(le,S,B,"",function(Yt){return Yt})):le!=null&&(Ct(le)&&(le.key!=null&&(J&&J.key===le.key||fe(le.key)),B=vt(le,B+(le.key==null||J&&J.key===le.key?"":(""+le.key).replace(Ut,"$&/")+"/")+Te),X!==""&&J!=null&&Ct(J)&&J.key==null&&J._store&&!J._store.validated&&(B._store.validated=2),le=B),S.push(le)),1}if(J=0,Te=X===""?".":X+":",ca(m))for(var Ne=0;Ne<m.length;Ne++)X=m[Ne],ye=Te+Rt(X,Ne),J+=ct(X,S,B,ye,le);else if(Ne=D(m),typeof Ne=="function")for(Ne===m.entries&&(On||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),On=!0),m=Ne.call(m),Ne=0;!(X=m.next()).done;)X=X.value,ye=Te+Rt(X,Ne++),J+=ct(X,S,B,ye,le);else if(ye==="object"){if(typeof m.then=="function")return ct(Ee(m),S,B,X,le);throw S=String(m),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return J}function ee(m,S,B){if(m==null)return m;var X=[],le=0;return ct(m,X,"","",function(ye){return S.call(B,ye,le++)}),X}function pt(m){if(m._status===-1){var S=m._ioInfo;S!=null&&(S.start=S.end=performance.now()),S=m._result;var B=S();if(B.then(function(le){if(m._status===0||m._status===-1){m._status=1,m._result=le;var ye=m._ioInfo;ye!=null&&(ye.end=performance.now()),B.status===void 0&&(B.status="fulfilled",B.value=le)}},function(le){if(m._status===0||m._status===-1){m._status=2,m._result=le;var ye=m._ioInfo;ye!=null&&(ye.end=performance.now()),B.status===void 0&&(B.status="rejected",B.reason=le)}}),S=m._ioInfo,S!=null){S.value=B;var X=B.displayName;typeof X=="string"&&(S.name=X)}m._status===-1&&(m._status=0,m._result=B)}if(m._status===1)return S=m._result,S===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,S),"default"in S||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,S),S.default;throw m._result}function be(){var m=I.H;return m===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),m}function Ue(){I.asyncTransitions--}function lt(m){if(cn===null)try{var S=("require"+Math.random()).slice(0,7);cn=(d&&d[S]).call(d,"timers").setImmediate}catch{cn=function(X){ua===!1&&(ua=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var le=new MessageChannel;le.port1.onmessage=X,le.port2.postMessage(void 0)}}return cn(m)}function It(m){return 1<m.length&&typeof AggregateError=="function"?new AggregateError(m):m[0]}function Q(m,S){S!==un-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),un=S}function ue(m,S,B){var X=I.actQueue;if(X!==null)if(X.length!==0)try{ve(X),lt(function(){return ue(m,S,B)});return}catch(le){I.thrownErrors.push(le)}else I.actQueue=null;0<I.thrownErrors.length?(X=It(I.thrownErrors),I.thrownErrors.length=0,B(X)):S(m)}function ve(m){if(!$n){$n=!0;var S=0;try{for(;S<m.length;S++){var B=m[S];do{I.didUsePromise=!1;var X=B(!1);if(X!==null){if(I.didUsePromise){m[S]=B,m.splice(0,S);return}B=X}else break}while(!0)}m.length=0}catch(le){m.splice(0,S+1),I.thrownErrors.push(le)}finally{$n=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var qe=Symbol.for("react.transitional.element"),Pe=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),ke=Symbol.for("react.profiler"),Ae=Symbol.for("react.consumer"),rt=Symbol.for("react.context"),ka=Symbol.for("react.forward_ref"),tt=Symbol.for("react.suspense"),Wt=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),Un=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),ho=Symbol.iterator,wn={},Ua={isMounted:function(){return!1},enqueueForceUpdate:function(m){C(m,"forceUpdate")},enqueueReplaceState:function(m){C(m,"replaceState")},enqueueSetState:function(m){C(m,"setState")}},ut=Object.assign,Oe={};Object.freeze(Oe),T.prototype.isReactComponent={},T.prototype.setState=function(m,S){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,S,"setState")},T.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};var jt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Bn in jt)jt.hasOwnProperty(Bn)&&v(Bn,jt[Bn]);z.prototype=T.prototype,jt=V.prototype=new z,jt.constructor=V,ut(jt,T.prototype),jt.isPureReactComponent=!0;var ca=Array.isArray,zn=Symbol.for("react.client.reference"),I={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Hn=Object.prototype.hasOwnProperty,Ln=console.createTask?console.createTask:function(){return null};jt={react_stack_bottom_frame:function(m){return m()}};var Aa,An,Xe={},Oa=jt.react_stack_bottom_frame.bind(jt,oe)(),nt=Ln(k(oe)),On=!1,Ut=/\/+/g,Pn=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)},ua=!1,cn=null,un=0,se=!1,$n=!1,Ta=typeof queueMicrotask=="function"?function(m){queueMicrotask(function(){return queueMicrotask(m)})}:lt;jt=Object.freeze({__proto__:null,c:function(m){return be().useMemoCache(m)}});var Bn={map:ee,forEach:function(m,S,B){ee(m,function(){S.apply(this,arguments)},B)},count:function(m){var S=0;return ee(m,function(){S++}),S},toArray:function(m){return ee(m,function(S){return S})||[]},only:function(m){if(!Ct(m))throw Error("React.Children.only expected to receive a single React element child.");return m}};c.Activity=F,c.Children=Bn,c.Component=T,c.Fragment=L,c.Profiler=ke,c.PureComponent=V,c.StrictMode=K,c.Suspense=tt,c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,c.__COMPILER_RUNTIME=jt,c.act=function(m){var S=I.actQueue,B=un;un++;var X=I.actQueue=S!==null?S:[],le=!1;try{var ye=m()}catch(Ne){I.thrownErrors.push(Ne)}if(0<I.thrownErrors.length)throw Q(S,B),m=It(I.thrownErrors),I.thrownErrors.length=0,m;if(ye!==null&&typeof ye=="object"&&typeof ye.then=="function"){var J=ye;return Ta(function(){le||se||(se=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ne,Yt){le=!0,J.then(function(Mt){if(Q(S,B),B===0){try{ve(X),lt(function(){return ue(Mt,Ne,Yt)})}catch(Tn){I.thrownErrors.push(Tn)}if(0<I.thrownErrors.length){var Fn=It(I.thrownErrors);I.thrownErrors.length=0,Yt(Fn)}}else Ne(Mt)},function(Mt){Q(S,B),0<I.thrownErrors.length&&(Mt=It(I.thrownErrors),I.thrownErrors.length=0),Yt(Mt)})}}}var Te=ye;if(Q(S,B),B===0&&(ve(X),X.length!==0&&Ta(function(){le||se||(se=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),I.actQueue=null),0<I.thrownErrors.length)throw m=It(I.thrownErrors),I.thrownErrors.length=0,m;return{then:function(Ne,Yt){le=!0,B===0?(I.actQueue=X,lt(function(){return ue(Te,Ne,Yt)})):Ne(Te)}}},c.cache=function(m){return function(){return m.apply(null,arguments)}},c.cacheSignal=function(){return null},c.captureOwnerStack=function(){var m=I.getCurrentStack;return m===null?null:m()},c.cloneElement=function(m,S,B){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var X=ut({},m.props),le=m.key,ye=m._owner;if(S!=null){var J;e:{if(Hn.call(S,"ref")&&(J=Object.getOwnPropertyDescriptor(S,"ref").get)&&J.isReactWarning){J=!1;break e}J=S.ref!==void 0}J&&(ye=_()),Se(S)&&(fe(S.key),le=""+S.key);for(Te in S)!Hn.call(S,Te)||Te==="key"||Te==="__self"||Te==="__source"||Te==="ref"&&S.ref===void 0||(X[Te]=S[Te])}var Te=arguments.length-2;if(Te===1)X.children=B;else if(1<Te){J=Array(Te);for(var Ne=0;Ne<Te;Ne++)J[Ne]=arguments[Ne+2];X.children=J}for(X=We(m.type,le,X,ye,m._debugStack,m._debugTask),le=2;le<arguments.length;le++)qt(arguments[le]);return X},c.createContext=function(m){return m={$$typeof:rt,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:Ae,_context:m},m._currentRenderer=null,m._currentRenderer2=null,m},c.createElement=function(m,S,B){for(var X=2;X<arguments.length;X++)qt(arguments[X]);X={};var le=null;if(S!=null)for(Ne in An||!("__self"in S)||"key"in S||(An=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),Se(S)&&(fe(S.key),le=""+S.key),S)Hn.call(S,Ne)&&Ne!=="key"&&Ne!=="__self"&&Ne!=="__source"&&(X[Ne]=S[Ne]);var ye=arguments.length-2;if(ye===1)X.children=B;else if(1<ye){for(var J=Array(ye),Te=0;Te<ye;Te++)J[Te]=arguments[Te+2];Object.freeze&&Object.freeze(J),X.children=J}if(m&&m.defaultProps)for(Ne in ye=m.defaultProps,ye)X[Ne]===void 0&&(X[Ne]=ye[Ne]);le&&He(X,typeof m=="function"?m.displayName||m.name||"Unknown":m);var Ne=1e4>I.recentlyCreatedOwnerStacks++;return We(m,le,X,_(),Ne?Error("react-stack-top-frame"):Oa,Ne?Ln(k(m)):nt)},c.createRef=function(){var m={current:null};return Object.seal(m),m},c.forwardRef=function(m){m!=null&&m.$$typeof===kt?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof m!="function"?console.error("forwardRef requires a render function but was given %s.",m===null?"null":typeof m):m.length!==0&&m.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",m.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),m!=null&&m.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var S={$$typeof:ka,render:m},B;return Object.defineProperty(S,"displayName",{enumerable:!1,configurable:!0,get:function(){return B},set:function(X){B=X,m.name||m.displayName||(Object.defineProperty(m,"name",{value:X}),m.displayName=X)}}),S},c.isValidElement=Ct,c.lazy=function(m){m={_status:-1,_result:m};var S={$$typeof:Un,_payload:m,_init:pt},B={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return m._ioInfo=B,S._debugInfo=[{awaited:B}],S},c.memo=function(m,S){m==null&&console.error("memo: The first argument must be a component. Instead received: %s",m===null?"null":typeof m),S={$$typeof:kt,type:m,compare:S===void 0?null:S};var B;return Object.defineProperty(S,"displayName",{enumerable:!1,configurable:!0,get:function(){return B},set:function(X){B=X,m.name||m.displayName||(Object.defineProperty(m,"name",{value:X}),m.displayName=X)}}),S},c.startTransition=function(m){var S=I.T,B={};B._updatedFibers=new Set,I.T=B;try{var X=m(),le=I.S;le!==null&&le(B,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&(I.asyncTransitions++,X.then(Ue,Ue),X.then(ce,Pn))}catch(ye){Pn(ye)}finally{S===null&&B._updatedFibers&&(m=B._updatedFibers.size,B._updatedFibers.clear(),10<m&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),S!==null&&B.types!==null&&(S.types!==null&&S.types!==B.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),S.types=B.types),I.T=S}},c.unstable_useCacheRefresh=function(){return be().useCacheRefresh()},c.use=function(m){return be().use(m)},c.useActionState=function(m,S,B){return be().useActionState(m,S,B)},c.useCallback=function(m,S){return be().useCallback(m,S)},c.useContext=function(m){var S=be();return m.$$typeof===Ae&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),S.useContext(m)},c.useDebugValue=function(m,S){return be().useDebugValue(m,S)},c.useDeferredValue=function(m,S){return be().useDeferredValue(m,S)},c.useEffect=function(m,S){return m==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),be().useEffect(m,S)},c.useEffectEvent=function(m){return be().useEffectEvent(m)},c.useId=function(){return be().useId()},c.useImperativeHandle=function(m,S,B){return be().useImperativeHandle(m,S,B)},c.useInsertionEffect=function(m,S){return m==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),be().useInsertionEffect(m,S)},c.useLayoutEffect=function(m,S){return m==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),be().useLayoutEffect(m,S)},c.useMemo=function(m,S){return be().useMemo(m,S)},c.useOptimistic=function(m,S){return be().useOptimistic(m,S)},c.useReducer=function(m,S,B){return be().useReducer(m,S,B)},c.useRef=function(m){return be().useRef(m)},c.useState=function(m){return be().useState(m)},c.useSyncExternalStore=function(m,S,B){return be().useSyncExternalStore(m,S,B)},c.useTransition=function(){return be().useTransition()},c.version="19.2.8",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(kc,kc.exports)),kc.exports}var Q0;function Gd(){return Q0||(Q0=1,bh.exports=QE()),bh.exports}var Z0;function ZE(){if(Z0)return zd;Z0=1;return(function(){function d(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===pt?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case He:return"Fragment";case We:return"Profiler";case me:return"StrictMode";case Kt:return"Suspense";case Rt:return"SuspenseList";case ee:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case Se:return"Portal";case qt:return L.displayName||"Context";case vt:return(L._context.displayName||"Context")+".Consumer";case Ct:var K=L.render;return L=L.displayName,L||(L=K.displayName||K.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case Ee:return K=L.displayName||null,K!==null?K:d(L.type)||"Memo";case ct:K=L._payload,L=L._init;try{return d(L(K))}catch{}}return null}function c(L){return""+L}function v(L){try{c(L);var K=!1}catch{K=!0}if(K){K=console;var ke=K.error,Ae=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return ke.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ae),c(L)}}function D(L){if(L===He)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===ct)return"<...>";try{var K=d(L);return K?"<"+K+">":"<...>"}catch{return"<...>"}}function C(){var L=be.A;return L===null?null:L.getOwner()}function T(){return Error("react-stack-top-frame")}function z(L){if(Ue.call(L,"key")){var K=Object.getOwnPropertyDescriptor(L,"key").get;if(K&&K.isReactWarning)return!1}return L.key!==void 0}function V(L,K){function ke(){Q||(Q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}ke.isReactWarning=!0,Object.defineProperty(L,"key",{get:ke,configurable:!0})}function ce(){var L=d(this.type);return ue[L]||(ue[L]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),L=this.props.ref,L!==void 0?L:null}function Ie(L,K,ke,Ae,rt,ka){var tt=ke.ref;return L={$$typeof:oe,type:L,key:K,props:ke,_owner:Ae},(tt!==void 0?tt:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:ce}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:rt}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ka}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function fe(L,K,ke,Ae,rt,ka){var tt=K.children;if(tt!==void 0)if(Ae)if(lt(tt)){for(Ae=0;Ae<tt.length;Ae++)M(tt[Ae]);Object.freeze&&Object.freeze(tt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(tt);if(Ue.call(K,"key")){tt=d(L);var Wt=Object.keys(K).filter(function(Un){return Un!=="key"});Ae=0<Wt.length?"{key: someKey, "+Wt.join(": ..., ")+": ...}":"{key: someKey}",Pe[tt+Ae]||(Wt=0<Wt.length?"{"+Wt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
14
+ let props = %s;
15
+ <%s {...props} />
16
+ React keys must be passed directly to JSX without using spread:
17
+ let props = %s;
18
+ <%s key={someKey} {...props} />`,Ae,tt,Wt,tt),Pe[tt+Ae]=!0)}if(tt=null,ke!==void 0&&(v(ke),tt=""+ke),z(K)&&(v(K.key),tt=""+K.key),"key"in K){ke={};for(var kt in K)kt!=="key"&&(ke[kt]=K[kt])}else ke=K;return tt&&V(ke,typeof L=="function"?L.displayName||L.name||"Unknown":L),Ie(L,tt,ke,C(),rt,ka)}function M(L){k(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===ct&&(L._payload.status==="fulfilled"?k(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function k(L){return typeof L=="object"&&L!==null&&L.$$typeof===oe}var _=Gd(),oe=Symbol.for("react.transitional.element"),Se=Symbol.for("react.portal"),He=Symbol.for("react.fragment"),me=Symbol.for("react.strict_mode"),We=Symbol.for("react.profiler"),vt=Symbol.for("react.consumer"),qt=Symbol.for("react.context"),Ct=Symbol.for("react.forward_ref"),Kt=Symbol.for("react.suspense"),Rt=Symbol.for("react.suspense_list"),Ee=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),pt=Symbol.for("react.client.reference"),be=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ue=Object.prototype.hasOwnProperty,lt=Array.isArray,It=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(L){return L()}};var Q,ue={},ve=_.react_stack_bottom_frame.bind(_,T)(),qe=It(D(T)),Pe={};zd.Fragment=He,zd.jsxDEV=function(L,K,ke,Ae){var rt=1e4>be.recentlyCreatedOwnerStacks++;return fe(L,K,ke,Ae,rt?Error("react-stack-top-frame"):ve,rt?It(D(L)):qe)}})(),zd}var J0;function JE(){return J0||(J0=1,gh.exports=ZE()),gh.exports}var s=JE(),N=Gd(),vh={exports:{}},Sc={},yh={exports:{}},Nh={},K0;function KE(){return K0||(K0=1,(function(d){(function(){function c(){if(Ct=!1,ct){var Q=d.unstable_now();be=Q;var ue=!0;try{e:{vt=!1,qt&&(qt=!1,Rt(ee),ee=-1),We=!0;var ve=me;try{t:{for(z(Q),He=D(_);He!==null&&!(He.expirationTime>Q&&ce());){var qe=He.callback;if(typeof qe=="function"){He.callback=null,me=He.priorityLevel;var Pe=qe(He.expirationTime<=Q);if(Q=d.unstable_now(),typeof Pe=="function"){He.callback=Pe,z(Q),ue=!0;break t}He===D(_)&&C(_),z(Q)}else C(_);He=D(_)}if(He!==null)ue=!0;else{var L=D(oe);L!==null&&Ie(V,L.startTime-Q),ue=!1}}break e}finally{He=null,me=ve,We=!1}ue=void 0}}finally{ue?Ue():ct=!1}}}function v(Q,ue){var ve=Q.length;Q.push(ue);e:for(;0<ve;){var qe=ve-1>>>1,Pe=Q[qe];if(0<T(Pe,ue))Q[qe]=ue,Q[ve]=Pe,ve=qe;else break e}}function D(Q){return Q.length===0?null:Q[0]}function C(Q){if(Q.length===0)return null;var ue=Q[0],ve=Q.pop();if(ve!==ue){Q[0]=ve;e:for(var qe=0,Pe=Q.length,L=Pe>>>1;qe<L;){var K=2*(qe+1)-1,ke=Q[K],Ae=K+1,rt=Q[Ae];if(0>T(ke,ve))Ae<Pe&&0>T(rt,ke)?(Q[qe]=rt,Q[Ae]=ve,qe=Ae):(Q[qe]=ke,Q[K]=ve,qe=K);else if(Ae<Pe&&0>T(rt,ve))Q[qe]=rt,Q[Ae]=ve,qe=Ae;else break e}}return ue}function T(Q,ue){var ve=Q.sortIndex-ue.sortIndex;return ve!==0?ve:Q.id-ue.id}function z(Q){for(var ue=D(oe);ue!==null;){if(ue.callback===null)C(oe);else if(ue.startTime<=Q)C(oe),ue.sortIndex=ue.expirationTime,v(_,ue);else break;ue=D(oe)}}function V(Q){if(qt=!1,z(Q),!vt)if(D(_)!==null)vt=!0,ct||(ct=!0,Ue());else{var ue=D(oe);ue!==null&&Ie(V,ue.startTime-Q)}}function ce(){return Ct?!0:!(d.unstable_now()-be<pt)}function Ie(Q,ue){ee=Kt(function(){Q(d.unstable_now())},ue)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var fe=performance;d.unstable_now=function(){return fe.now()}}else{var M=Date,k=M.now();d.unstable_now=function(){return M.now()-k}}var _=[],oe=[],Se=1,He=null,me=3,We=!1,vt=!1,qt=!1,Ct=!1,Kt=typeof setTimeout=="function"?setTimeout:null,Rt=typeof clearTimeout=="function"?clearTimeout:null,Ee=typeof setImmediate<"u"?setImmediate:null,ct=!1,ee=-1,pt=5,be=-1;if(typeof Ee=="function")var Ue=function(){Ee(c)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,It=lt.port2;lt.port1.onmessage=c,Ue=function(){It.postMessage(null)}}else Ue=function(){Kt(c,0)};d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(Q){Q.callback=null},d.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):pt=0<Q?Math.floor(1e3/Q):5},d.unstable_getCurrentPriorityLevel=function(){return me},d.unstable_next=function(Q){switch(me){case 1:case 2:case 3:var ue=3;break;default:ue=me}var ve=me;me=ue;try{return Q()}finally{me=ve}},d.unstable_requestPaint=function(){Ct=!0},d.unstable_runWithPriority=function(Q,ue){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var ve=me;me=Q;try{return ue()}finally{me=ve}},d.unstable_scheduleCallback=function(Q,ue,ve){var qe=d.unstable_now();switch(typeof ve=="object"&&ve!==null?(ve=ve.delay,ve=typeof ve=="number"&&0<ve?qe+ve:qe):ve=qe,Q){case 1:var Pe=-1;break;case 2:Pe=250;break;case 5:Pe=1073741823;break;case 4:Pe=1e4;break;default:Pe=5e3}return Pe=ve+Pe,Q={id:Se++,callback:ue,priorityLevel:Q,startTime:ve,expirationTime:Pe,sortIndex:-1},ve>qe?(Q.sortIndex=ve,v(oe,Q),D(_)===null&&Q===D(oe)&&(qt?(Rt(ee),ee=-1):qt=!0,Ie(V,ve-qe))):(Q.sortIndex=Pe,v(_,Q),vt||We||(vt=!0,ct||(ct=!0,Ue()))),Q},d.unstable_shouldYield=ce,d.unstable_wrapCallback=function(Q){var ue=me;return function(){var ve=me;me=ue;try{return Q.apply(this,arguments)}finally{me=ve}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Nh)),Nh}var W0;function WE(){return W0||(W0=1,yh.exports=KE()),yh.exports}var wh={exports:{}},Mn={},P0;function PE(){if(P0)return Mn;P0=1;return(function(){function d(){}function c(M){return""+M}function v(M,k,_){var oe=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{c(oe);var Se=!1}catch{Se=!0}return Se&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&oe[Symbol.toStringTag]||oe.constructor.name||"Object"),c(oe)),{$$typeof:Ie,key:oe==null?null:""+oe,children:M,containerInfo:k,implementation:_}}function D(M,k){if(M==="font")return"";if(typeof k=="string")return k==="use-credentials"?k:""}function C(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":'something with type "'+typeof M+'"'}function T(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":typeof M=="string"?JSON.stringify(M):typeof M=="number"?"`"+M+"`":'something with type "'+typeof M+'"'}function z(){var M=fe.H;return M===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),M}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var V=Gd(),ce={d:{f:d,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},Ie=Symbol.for("react.portal"),fe=V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ce,Mn.createPortal=function(M,k){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!k||k.nodeType!==1&&k.nodeType!==9&&k.nodeType!==11)throw Error("Target container is not a DOM element.");return v(M,k,null,_)},Mn.flushSync=function(M){var k=fe.T,_=ce.p;try{if(fe.T=null,ce.p=2,M)return M()}finally{fe.T=k,ce.p=_,ce.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Mn.preconnect=function(M,k){typeof M=="string"&&M?k!=null&&typeof k!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",T(k)):k!=null&&typeof k.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",C(k.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",C(M)),typeof M=="string"&&(k?(k=k.crossOrigin,k=typeof k=="string"?k==="use-credentials"?k:"":void 0):k=null,ce.d.C(M,k))},Mn.prefetchDNS=function(M){if(typeof M!="string"||!M)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",C(M));else if(1<arguments.length){var k=arguments[1];typeof k=="object"&&k.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",T(k)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",T(k))}typeof M=="string"&&ce.d.D(M)},Mn.preinit=function(M,k){if(typeof M=="string"&&M?k==null||typeof k!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",T(k)):k.as!=="style"&&k.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',T(k.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",C(M)),typeof M=="string"&&k&&typeof k.as=="string"){var _=k.as,oe=D(_,k.crossOrigin),Se=typeof k.integrity=="string"?k.integrity:void 0,He=typeof k.fetchPriority=="string"?k.fetchPriority:void 0;_==="style"?ce.d.S(M,typeof k.precedence=="string"?k.precedence:void 0,{crossOrigin:oe,integrity:Se,fetchPriority:He}):_==="script"&&ce.d.X(M,{crossOrigin:oe,integrity:Se,fetchPriority:He,nonce:typeof k.nonce=="string"?k.nonce:void 0})}},Mn.preinitModule=function(M,k){var _="";typeof M=="string"&&M||(_+=" The `href` argument encountered was "+C(M)+"."),k!==void 0&&typeof k!="object"?_+=" The `options` argument encountered was "+C(k)+".":k&&"as"in k&&k.as!=="script"&&(_+=" The `as` option encountered was "+T(k.as)+"."),_?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",_):(_=k&&typeof k.as=="string"?k.as:"script",_)==="script"||(_=T(_),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',_,M)),typeof M=="string"&&(typeof k=="object"&&k!==null?(k.as==null||k.as==="script")&&(_=D(k.as,k.crossOrigin),ce.d.M(M,{crossOrigin:_,integrity:typeof k.integrity=="string"?k.integrity:void 0,nonce:typeof k.nonce=="string"?k.nonce:void 0})):k==null&&ce.d.M(M))},Mn.preload=function(M,k){var _="";if(typeof M=="string"&&M||(_+=" The `href` argument encountered was "+C(M)+"."),k==null||typeof k!="object"?_+=" The `options` argument encountered was "+C(k)+".":typeof k.as=="string"&&k.as||(_+=" The `as` option encountered was "+C(k.as)+"."),_&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',_),typeof M=="string"&&typeof k=="object"&&k!==null&&typeof k.as=="string"){_=k.as;var oe=D(_,k.crossOrigin);ce.d.L(M,_,{crossOrigin:oe,integrity:typeof k.integrity=="string"?k.integrity:void 0,nonce:typeof k.nonce=="string"?k.nonce:void 0,type:typeof k.type=="string"?k.type:void 0,fetchPriority:typeof k.fetchPriority=="string"?k.fetchPriority:void 0,referrerPolicy:typeof k.referrerPolicy=="string"?k.referrerPolicy:void 0,imageSrcSet:typeof k.imageSrcSet=="string"?k.imageSrcSet:void 0,imageSizes:typeof k.imageSizes=="string"?k.imageSizes:void 0,media:typeof k.media=="string"?k.media:void 0})}},Mn.preloadModule=function(M,k){var _="";typeof M=="string"&&M||(_+=" The `href` argument encountered was "+C(M)+"."),k!==void 0&&typeof k!="object"?_+=" The `options` argument encountered was "+C(k)+".":k&&"as"in k&&typeof k.as!="string"&&(_+=" The `as` option encountered was "+C(k.as)+"."),_&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',_),typeof M=="string"&&(k?(_=D(k.as,k.crossOrigin),ce.d.m(M,{as:typeof k.as=="string"&&k.as!=="script"?k.as:void 0,crossOrigin:_,integrity:typeof k.integrity=="string"?k.integrity:void 0})):ce.d.m(M))},Mn.requestFormReset=function(M){ce.d.r(M)},Mn.unstable_batchedUpdates=function(M,k){return M(k)},Mn.useFormState=function(M,k,_){return z().useFormState(M,k,_)},Mn.useFormStatus=function(){return z().useHostTransitionStatus()},Mn.version="19.2.8",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Mn}var F0;function FE(){return F0||(F0=1,wh.exports=PE()),wh.exports}var ew;function eS(){if(ew)return Sc;ew=1;return(function(){function d(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function c(e,t,n,a){if(n>=t.length)return a;var o=t[n],l=mn(e)?e.slice():Ge({},e);return l[o]=c(e[o],t,n+1,a),l}function v(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return D(e,t,n,0)}}function D(e,t,n,a){var o=t[a],l=mn(e)?e.slice():Ge({},e);return a+1===t.length?(l[n[a]]=l[o],mn(l)?l.splice(o,1):delete l[o]):l[o]=D(e[o],t,n,a+1),l}function C(e,t,n){var a=t[n],o=mn(e)?e.slice():Ge({},e);return n+1===t.length?(mn(o)?o.splice(a,1):delete o[a],o):(o[a]=C(e[a],t,n+1),o)}function T(){return!1}function z(){return null}function V(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function ce(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function Ie(){}function fe(){}function M(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function k(e,t,n,a){return new Vw(e,t,n,a)}function _(e,t){e.context===Xl&&(_m(e.current,2,t,e,null,null),fs())}function oe(e,t){if(Ha!==null){var n=t.staleFamilies;t=t.updatedFamilies,yi(),Ph(e.current,t,n),fs()}}function Se(e){Ha=e}function He(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function me(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function We(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 vt(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 qt(e){if(me(e)!==e)throw Error("Unable to find node on an unmounted component.")}function Ct(e){var t=e.alternate;if(!t){if(t=me(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return qt(o),e;if(l===a)return qt(o),t;l=l.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==a.return)n=o,a=l;else{for(var r=!1,i=o.child;i;){if(i===n){r=!0,n=o,a=l;break}if(i===a){r=!0,a=o,n=l;break}i=i.sibling}if(!r){for(i=l.child;i;){if(i===n){r=!0,n=l,a=o;break}if(i===a){r=!0,a=l,n=o;break}i=i.sibling}if(!r)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==a)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function Kt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Kt(e),t!==null)return t;e=e.sibling}return null}function Rt(e){return e===null||typeof e!="object"?null:(e=ly&&e[ly]||e["@@iterator"],typeof e=="function"?e:null)}function Ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nx?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ys:return"Fragment";case Gm:return"Profiler";case Tu:return"StrictMode";case Im:return"Suspense";case Ym:return"SuspenseList";case Xm:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case vs:return"Portal";case Lo:return e.displayName||"Context";case qm:return(e._context.displayName||"Context")+".Consumer";case Ai:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ru:return t=e.displayName||null,t!==null?t:Ee(e.type)||"Memo";case Na:t=e._payload,e=e._init;try{return Ee(e(t))}catch{}}return null}function ct(e){return typeof e.tag=="number"?ee(e):typeof e.name=="string"?e.name:null}function ee(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(t);case 8:return t===Tu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return ee(e.return)}return null}function pt(e){return{current:e}}function be(e,t){0>sl?console.error("Unexpected pop."):(t!==Zm[sl]&&console.error("Unexpected Fiber popped."),e.current=Qm[sl],Qm[sl]=null,Zm[sl]=null,sl--)}function Ue(e,t,n){sl++,Qm[sl]=e.current,Zm[sl]=n,e.current=t}function lt(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function It(e,t){Ue($l,t,e),Ue(Oi,e,e),Ue(Ll,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?Av(t):xl;break;default:if(n=t.tagName,t=t.namespaceURI)t=Av(t),t=Ov(t,n);else switch(n){case"svg":t=Fs;break;case"math":t=Od;break;default:t=xl}}n=n.toLowerCase(),n=ts(null,n),n={context:t,ancestorInfo:n},be(Ll,e),Ue(Ll,n,e)}function Q(e){be(Ll,e),be(Oi,e),be($l,e)}function ue(){return lt(Ll.current)}function ve(e){e.memoizedState!==null&&Ue(ju,e,e);var t=lt(Ll.current),n=e.type,a=Ov(t.context,n);n=ts(t.ancestorInfo,n),a={context:a,ancestorInfo:n},t!==a&&(Ue(Oi,e,e),Ue(Ll,a,e))}function qe(e){Oi.current===e&&(be(Ll,e),be(Oi,e)),ju.current===e&&(be(ju,e),wc._currentValue=Wr)}function Pe(){}function L(){if(Ti===0){ry=console.log,sy=console.info,iy=console.warn,cy=console.error,uy=console.group,dy=console.groupCollapsed,fy=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ti++}function K(){if(Ti--,Ti===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ge({},e,{value:ry}),info:Ge({},e,{value:sy}),warn:Ge({},e,{value:iy}),error:Ge({},e,{value:cy}),group:Ge({},e,{value:uy}),groupCollapsed:Ge({},e,{value:dy}),groupEnd:Ge({},e,{value:fy})})}0>Ti&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ke(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
23
+ `)&&(e=e.slice(29)),t=e.indexOf(`
24
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
25
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function Ae(e){if(Jm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jm=t&&t[1]||"",my=-1<n.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+Jm+e+my}function rt(e,t){if(!e||Km)return"";var n=Wm.get(e);if(n!==void 0)return n;Km=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var a=null;a=j.H,j.H=null,L();try{var o={DetermineComponentFrameRoot:function(){try{if(t){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(Z){var A=Z}Reflect.construct(e,[],g)}else{try{g.call()}catch(Z){A=Z}e.call(g.prototype)}}else{try{throw Error()}catch(Z){A=Z}(g=e())&&typeof g.catch=="function"&&g.catch(function(){})}}catch(Z){if(Z&&A&&typeof Z.stack=="string")return[Z.stack,A.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=o.DetermineComponentFrameRoot(),i=r[0],u=r[1];if(i&&u){var f=i.split(`
28
+ `),x=u.split(`
29
+ `);for(r=l=0;l<f.length&&!f[l].includes("DetermineComponentFrameRoot");)l++;for(;r<x.length&&!x[r].includes("DetermineComponentFrameRoot");)r++;if(l===f.length||r===x.length)for(l=f.length-1,r=x.length-1;1<=l&&0<=r&&f[l]!==x[r];)r--;for(;1<=l&&0<=r;l--,r--)if(f[l]!==x[r]){if(l!==1||r!==1)do if(l--,r--,0>r||f[l]!==x[r]){var E=`
30
+ `+f[l].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wm.set(e,E),E}while(1<=l&&0<=r);break}}}finally{Km=!1,j.H=a,K(),Error.prepareStackTrace=n}return f=(f=e?e.displayName||e.name:"")?Ae(f):"",typeof e=="function"&&Wm.set(e,f),f}function ka(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return e.child!==t&&t!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return rt(e.type,!1);case 11:return rt(e.type.render,!1);case 1:return rt(e.type,!0);case 31:return Ae("Activity");default:return""}}function tt(e){try{var t="",n=null;do{t+=ka(e,n);var a=e._debugInfo;if(a)for(var o=a.length-1;0<=o;o--){var l=a[o];if(typeof l.name=="string"){var r=t;e:{var i=l.name,u=l.env,f=l.debugLocation;if(f!=null){var x=ke(f),E=x.lastIndexOf(`
31
+ `),g=E===-1?x:x.slice(E+1);if(g.indexOf(i)!==-1){var A=`
32
+ `+g;break e}}A=Ae(i+(u?" ["+u+"]":""))}t=r+A}}n=e,e=e.return}while(e);return t}catch(Z){return`
33
+ Error generating stack: `+Z.message+`
34
+ `+Z.stack}}function Wt(e){return(e=e?e.displayName||e.name:"")?Ae(e):""}function kt(){if(wa===null)return null;var e=wa._debugOwner;return e!=null?ct(e):null}function Un(){if(wa===null)return"";var e=wa;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Ae(e.type);break;case 13:t+=Ae("Suspense");break;case 19:t+=Ae("SuspenseList");break;case 31:t+=Ae("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Wt(e.type));break;case 11:e._debugOwner||t!==""||(t+=Wt(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var a=n._debugStack;if(e&&a){var o=ke(a);o!==""&&(t+=`
35
+ `+o)}}else if(e.debugStack!=null){var l=e.debugStack;(e=e.owner)&&l&&(t+=`
36
+ `+ke(l))}else break;var r=t}catch(i){r=`
37
+ Error generating stack: `+i.message+`
38
+ `+i.stack}return r}function F(e,t,n,a,o,l,r){var i=wa;ho(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,a,o,l,r)):t(n,a,o,l,r)}finally{ho(i)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ho(e){j.getCurrentStack=e===null?null:Un,$o=!1,wa=e}function wn(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ua(e){try{return ut(e),!1}catch{return!0}}function ut(e){return""+e}function Oe(e,t){if(Ua(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,wn(e)),ut(e)}function jt(e,t){if(Ua(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,wn(e)),ut(e)}function ca(e){if(Ua(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",wn(e)),ut(e)}function zn(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{ws=t.inject(e),Vn=t}catch(n){console.error("React instrumentation encountered an error: %o.",n)}return!!t.checkDCE}function I(e){if(typeof cx=="function"&&ux(e),Vn&&typeof Vn.setStrictMode=="function")try{Vn.setStrictMode(ws,e)}catch(t){Bo||(Bo=!0,console.error("React instrumentation encountered an error: %o",t))}}function Hn(e){return e>>>=0,e===0?32:31-(dx(e)/fx|0)|0}function Ln(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function Aa(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,l=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var i=a&134217727;return i!==0?(a=i&~l,a!==0?o=Ln(a):(r&=i,r!==0?o=Ln(r):n||(n=i&~e,n!==0&&(o=Ln(n))))):(i=a&~l,i!==0?o=Ln(i):r!==0?o=Ln(r):n||(n=a&~e,n!==0&&(o=Ln(n)))),o===0?0:t!==0&&t!==o&&(t&l)===0&&(l=o&-o,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:o}function An(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Xe(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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function Oa(){var e=Mu;return Mu<<=1,(Mu&62914560)===0&&(Mu=4194304),e}function nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function On(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ut(e,t,n,a,o,l){var r=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var i=e.entanglements,u=e.expirationTimes,f=e.hiddenUpdates;for(n=r&~n;0<n;){var x=31-In(n),E=1<<x;i[x]=0,u[x]=-1;var g=f[x];if(g!==null)for(f[x]=null,x=0;x<g.length;x++){var A=g[x];A!==null&&(A.lane&=-536870913)}n&=~E}a!==0&&Pn(e,a,0),l!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=l&~(r&~t))}function Pn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-In(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function ua(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-In(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function cn(e,t){var n=t&-t;return n=(n&42)!==0?1:un(n),(n&(e.suspendedLanes|t))!==0?0:n}function un(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 se(e,t,n){if(Go)for(e=e.pendingUpdatersLaneMap;0<n;){var a=31-In(n),o=1<<a;e[a].add(t),n&=~o}}function $n(e,t){if(Go)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;0<t;){var o=31-In(t);e=1<<o,o=n[o],0<o.size&&(o.forEach(function(l){var r=l.alternate;r!==null&&a.has(r)||a.add(l)}),o.clear()),t&=~e}}function Ta(e){return e&=-e,_a<e?qo<e?(e&134217727)!==0?il:zu:qo:_a}function Bn(){var e=it.p;return e!==0?e:(e=window.event,e===void 0?il:Pv(e.type))}function m(e,t){var n=it.p;try{return it.p=e,t()}finally{it.p=n}}function S(e){delete e[Cn],delete e[Yn],delete e[np],delete e[mx],delete e[px]}function B(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gl]||n[Cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Hv(e);e!==null;){if(n=e[Cn])return n;e=Hv(e)}return t}e=n,n=e.parentNode}return null}function X(e){if(e=e[Cn]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function le(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function ye(e){var t=e[py];return t||(t=e[py]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function J(e){e[Ri]=!0}function Te(e,t){Ne(e,t),Ne(e+"Capture",t)}function Ne(e,t){Ur[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ur[e]=t;var n=e.toLowerCase();for(ap[n]=e,e==="onDoubleClick"&&(ap.ondblclick=e),e=0;e<t.length;e++)hy.add(t[e])}function Yt(e,t){hx[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mt(e){return ro.call(by,e)?!0:ro.call(gy,e)?!1:gx.test(e)?by[e]=!0:(gy[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Fn(e,t,n){if(Mt(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(Oe(n,t),e===""+n?n:e)}}function Tn(e,t,n){if(Mt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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}}Oe(n,t),e.setAttribute(t,""+n)}}function da(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}Oe(n,t),e.setAttribute(t,""+n)}}function at(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}Oe(a,n),e.setAttributeNS(t,n,""+a)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return ca(e),e;default:return""}}function Pt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ra(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,l=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(r){ca(r),n=""+r,l.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(r){ca(r),n=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dn(e){if(!e._valueTracker){var t=Pt(e)?"checked":"value";e._valueTracker=Ra(e,t,""+e[t])}}function go(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Pt(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function fn(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}}function Re(e){return e.replace(bx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fa(e,t){t.checked===void 0||t.defaultChecked===void 0||yy||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",kt()||"A component",t.type),yy=!0),t.value===void 0||t.defaultValue===void 0||vy||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",kt()||"A component",t.type),vy=!0)}function Jo(e,t,n,a,o,l,r,i){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?(Oe(r,"type"),e.type=r):e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?ea(e,r,At(t)):n!=null?ea(e,r,At(n)):a!=null&&e.removeAttribute("value"),o==null&&l!=null&&(e.defaultChecked=!!l),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?(Oe(i,"name"),e.name=""+At(i)):e.removeAttribute("name")}function fr(e,t,n,a,o,l,r,i){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(Oe(l,"type"),e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null)){dn(e);return}n=n!=null?""+At(n):"",t=t!=null?""+At(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=i?e.checked:!!a,e.defaultChecked=!!a,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(Oe(r,"name"),e.name=r),dn(e)}function ea(e,t,n){t==="number"&&fn(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ja(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?Bm.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||wy||(wy=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||xy||(xy=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Ny||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ny=!0)}function ja(){var e=kt();return e?`
39
+
40
+ Check the render method of \``+e+"`.":""}function ta(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+At(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Ko(e,t){for(e=0;e<Sy.length;e++){var n=Sy[e];if(t[n]!=null){var a=mn(t[n]);t.multiple&&!a?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,ja()):!t.multiple&&a&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,ja())}}t.value===void 0||t.defaultValue===void 0||Ey||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Ey=!0)}function Ka(e,t){t.value===void 0||t.defaultValue===void 0||Dy||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",kt()||"A component"),Dy=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function bo(e,t,n){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+At(n):""}function Rn(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(mn(a)){if(1<a.length)throw Error("<textarea> can only have at most one child.");a=a[0]}n=a}n==null&&(n=""),t=n}n=At(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),dn(e)}function ma(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ma(e.children[0],t):e}function zt(e){return" "+" ".repeat(e)}function Gn(e){return"+ "+" ".repeat(e)}function xn(e){return"- "+" ".repeat(e)}function Wo(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Wa(e,t){return Cy.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function vo(e,t,n){var a=120-2*n;if(t===null)return Gn(n)+Wa(e,a)+`
41
+ `;if(typeof t=="string"){for(var o=0;o<t.length&&o<e.length&&t.charCodeAt(o)===e.charCodeAt(o);o++);return o>a-8&&10<o&&(e="..."+e.slice(o-8),t="..."+t.slice(o-8)),Gn(n)+Wa(e,a)+`
42
+ `+xn(n)+Wa(t,a)+`
43
+ `}return zt(n)+Wa(e,a)+`
44
+ `}function Po(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function Le(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(mn(e))return"[...]";if(e.$$typeof===Ho)return(t=Ee(e.type))?"<"+t+">":"<...>";var n=Po(e);if(n==="Object"){n="",t-=2;for(var a in e)if(e.hasOwnProperty(a)){var o=JSON.stringify(a);if(o!=='"'+a+'"'&&(a=o),t-=a.length-2,o=Le(e[a],15>t?t:15),t-=o.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+a+":"+o}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function na(e,t){return typeof e!="string"||Cy.test(e)?"{"+Le(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function wt(e,t,n){var a=120-n.length-e.length,o=[],l;for(l in t)if(t.hasOwnProperty(l)&&l!=="children"){var r=na(t[l],120-n.length-l.length-1);a-=l.length+r.length+2,o.push(l+"="+r)}return o.length===0?n+"<"+e+`>
45
+ `:0<a?n+"<"+e+" "+o.join(" ")+`>
46
+ `:n+"<"+e+`
47
+ `+n+" "+o.join(`
48
+ `+n+" ")+`
49
+ `+n+`>
50
+ `}function mr(e,t,n){var a="",o=Ge({},t),l;for(l in e)if(e.hasOwnProperty(l)){delete o[l];var r=120-2*n-l.length-2,i=Le(e[l],r);t.hasOwnProperty(l)?(r=Le(t[l],r),a+=Gn(n)+l+": "+i+`
51
+ `,a+=xn(n)+l+": "+r+`
52
+ `):a+=Gn(n)+l+": "+i+`
53
+ `}for(var u in o)o.hasOwnProperty(u)&&(e=Le(o[u],120-2*n-u.length-2),a+=xn(n)+u+": "+e+`
54
+ `);return a}function Dl(e,t,n,a){var o="",l=new Map;for(f in n)n.hasOwnProperty(f)&&l.set(f.toLowerCase(),f);if(l.size===1&&l.has("children"))o+=wt(e,t,zt(a));else{for(var r in t)if(t.hasOwnProperty(r)&&r!=="children"){var i=120-2*(a+1)-r.length-1,u=l.get(r.toLowerCase());if(u!==void 0){l.delete(r.toLowerCase());var f=t[r];u=n[u];var x=na(f,i);i=na(u,i),typeof f=="object"&&f!==null&&typeof u=="object"&&u!==null&&Po(f)==="Object"&&Po(u)==="Object"&&(2<Object.keys(f).length||2<Object.keys(u).length||-1<x.indexOf("...")||-1<i.indexOf("..."))?o+=zt(a+1)+r+`={{
55
+ `+mr(f,u,a+2)+zt(a+1)+`}}
56
+ `:(o+=Gn(a+1)+r+"="+x+`
57
+ `,o+=xn(a+1)+r+"="+i+`
58
+ `)}else o+=zt(a+1)+r+"="+na(t[r],i)+`
59
+ `}l.forEach(function(E){if(E!=="children"){var g=120-2*(a+1)-E.length-1;o+=xn(a+1)+E+"="+na(n[E],g)+`
60
+ `}}),o=o===""?zt(a)+"<"+e+`>
61
+ `:zt(a)+"<"+e+`
62
+ `+o+zt(a)+`>
63
+ `}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(l="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(l=""+t),o+=vo(l,""+e,a+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(o=e==null?o+vo(""+t,null,a+1):o+vo(""+t,void 0,a+1)),o}function es(e,t){var n=Wo(e);if(n===null){for(n="",e=e.child;e;)n+=es(e,t),e=e.sibling;return n}return zt(t)+"<"+n+`>
64
+ `}function yo(e,t){var n=ma(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return zt(t)+`...
65
+ `+yo(n,t+1);n="";var a=e.fiber._debugInfo;if(a)for(var o=0;o<a.length;o++){var l=a[o].name;typeof l=="string"&&(n+=zt(t)+"<"+l+`>
66
+ `,t++)}if(a="",o=e.fiber.pendingProps,e.fiber.tag===6)a=vo(o,e.serverProps,t),t++;else if(l=Wo(e.fiber),l!==null)if(e.serverProps===void 0){a=t;var r=120-2*a-l.length-2,i="";for(f in o)if(o.hasOwnProperty(f)&&f!=="children"){var u=na(o[f],15);if(r-=f.length+u.length+2,0>r){i+=" ...";break}i+=" "+f+"="+u}a=zt(a)+"<"+l+i+`>
67
+ `,t++}else e.serverProps===null?(a=wt(l,o,Gn(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(a=Dl(l,o,e.serverProps,t),t++);var f="";for(o=e.fiber.child,l=0;o&&l<e.children.length;)r=e.children[l],r.fiber===o?(f+=yo(r,t),l++):f+=es(o,t),o=o.sibling;for(o&&0<e.children.length&&(f+=zt(t)+`...
68
+ `),o=e.serverTail,e.serverProps===null&&t--,e=0;e<o.length;e++)l=o[e],f=typeof l=="string"?f+(xn(t)+Wa(l,120-2*t)+`
69
+ `):f+wt(l.type,l.props,xn(t));return n+a+f}function Pa(e){try{return`
70
+
71
+ `+yo(e,0)}catch{return""}}function Fa(e,t,n){for(var a=t,o=null,l=0;a;)a===e&&(l=0),o={fiber:a,children:o!==null?[o]:[],serverProps:a===t?n:a===e?null:void 0,serverTail:[],distanceFromLeaf:l},l++,a=a.return;return o!==null?Pa(o).replaceAll(/^[+-]/gm,">"):""}function ts(e,t){var n=Ge({},e||Uy),a={tag:t};return ky.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),yx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),vx.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=a),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Fo(e,t,n){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(n)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!n)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return Nx.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return n||t===null;case"html":return n&&t==="#document"||t===null;case"body":return n&&(t==="#document"||t==="html")||t===null}return!0}function No(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Cl(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function eo(e,t){t=t||Uy;var n=t.current;if(t=(n=Fo(e,n&&n.tag,t.implicitRootScope)?null:n)?null:No(e,t),t=n||t,!t)return!0;var a=t.tag;if(t=String(!!n)+"|"+e+"|"+a,Hu[t])return!1;Hu[t]=!0;var o=(t=wa)?Cl(t.return,a):null,l=t!==null&&o!==null?Fa(o,t,null):"",r="<"+e+">";return n?(n="",a==="table"&&e==="tr"&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
72
+ This will cause a hydration error.%s`,r,a,n,l)):console.error(`In HTML, %s cannot be a descendant of <%s>.
73
+ This will cause a hydration error.%s`,r,a,l),t&&(e=t.return,o===null||e===null||o===e&&e._debugOwner===t._debugOwner||F(o,function(){console.error(`<%s> cannot contain a nested %s.
74
+ See this log for the ancestor stack trace.`,a,r)})),!1}function to(e,t,n){if(n||Fo("#text",t,!1))return!0;if(n="#text|"+t,Hu[n])return!1;Hu[n]=!0;var a=(n=wa)?Cl(n,t):null;return n=n!==null&&a!==null?Fa(a,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
75
+ This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
76
+ This will cause a hydration error.%s`,t,n),!1}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function p(e){return e.replace(Ex,function(t,n){return n.toUpperCase()})}function U(e,t,n){var a=t.indexOf("--")===0;a||(-1<t.indexOf("-")?xs.hasOwnProperty(t)&&xs[t]||(xs[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,p(t.replace(xx,"ms-")))):wx.test(t)?xs.hasOwnProperty(t)&&xs[t]||(xs[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Ty.test(n)||lp.hasOwnProperty(n)&&lp[n]||(lp[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Ty,""))),typeof n=="number"&&(isNaN(n)?Ry||(Ry=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||jy||(jy=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Vy.has(t)?t==="float"?e.cssFloat=n:(jt(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function R(e,t,n){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var a={};if(n){for(var o in n)if(n.hasOwnProperty(o)&&!t.hasOwnProperty(o))for(var l=op[o]||[o],r=0;r<l.length;r++)a[l[r]]=o}for(var i in t)if(t.hasOwnProperty(i)&&(!n||n[i]!==t[i]))for(o=op[i]||[i],l=0;l<o.length;l++)a[o[l]]=i;i={};for(var u in t)for(o=op[u]||[u],l=0;l<o.length;l++)i[o[l]]=u;u={};for(var f in a)if(o=a[f],(l=i[f])&&o!==l&&(r=o+","+l,!u[r])){u[r]=!0,r=console;var x=t[o];r.error.call(r,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",x==null||typeof x=="boolean"||x===""?"Removing":"Updating",o,l)}}for(var E in n)!n.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var g in t)f=t[g],t.hasOwnProperty(g)&&n[g]!==f&&U(e,g,f)}else for(a in t)t.hasOwnProperty(a)&&U(e,a,t[a])}function $(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ae(e){return Sx.get(e)||e}function q(e,t){if(ro.call(Ss,t)&&Ss[t])return!0;if(Cx.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=_y.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Ss[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Ss[t]=!0}if(Dx.test(t)){if(e=t.toLowerCase(),e=_y.hasOwnProperty(e)?e:null,e==null)return Ss[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Ss[t]=!0)}return!0}function dt(e,t){var n=[],a;for(a in t)q(e,a)||n.push(a);t=n.map(function(o){return"`"+o+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Ft(e,t,n,a){if(ro.call(Xn,t)&&Xn[t])return!0;var o=t.toLowerCase();if(o==="onfocusin"||o==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Xn[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(a!=null){if(e=a.possibleRegistrationNames,a.registrationNameDependencies.hasOwnProperty(t))return!0;if(a=e.hasOwnProperty(o)?e[o]:null,a!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,a),Xn[t]=!0;if(zy.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Xn[t]=!0}else if(zy.test(t))return kx.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Xn[t]=!0;if(Ux.test(t)||Ax.test(t))return!0;if(o==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Xn[t]=!0;if(o==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Xn[t]=!0;if(o==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Xn[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Xn[t]=!0;if($u.hasOwnProperty(o)){if(o=$u[o],o!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,o),Xn[t]=!0}else if(t!==o)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,o),Xn[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return o=t.toLowerCase().slice(0,5),o==="data-"||o==="aria-"?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Xn[t]=!0)}case"function":case"symbol":return Xn[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Xn[t]=!0}}return!0}function re(e,t,n){var a=[],o;for(o in t)Ft(e,o,t[o],n)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<a.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function Ve(e){return Ox.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function xt(){}function y(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function G(e){var t=X(e);if(t&&(e=t.stateNode)){var n=e[Yn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(Oe(t,"name"),n=n.querySelectorAll('input[name="'+Re(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[Yn]||null;if(!o)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Jo(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&go(a)}break e;case"textarea":bo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ta(e,!!n.multiple,t,!1)}}}function W(e,t,n){if(rp)return e(t,n);rp=!0;try{var a=e(t);return a}finally{if(rp=!1,(Ds!==null||Cs!==null)&&(fs(),Ds&&(t=Ds,e=Cs,Cs=Ds=null,G(t),e)))for(t=0;t<e.length;t++)G(e[t])}}function ne(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Yn]||null;if(a===null)return null;n=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(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function de(){if(Bu)return Bu;var e,t=ip,n=t.length,a,o="value"in ql?ql.value:ql.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var r=n-e;for(a=1;a<=r&&t[n-a]===o[l-a];a++);return Bu=o.slice(e,1<a?1-a:void 0)}function ot(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 et(){return!0}function Xt(){return!1}function pe(e){function t(n,a,o,l,r){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=l,this.target=r,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(l):l[i]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?et:Xt,this.isPropagationStopped=Xt,this}return Ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=et)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=et)},persist:function(){},isPersistent:et}),t}function Qt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qx[e])?!!t[e]:!1}function wo(){return Qt}function Ac(e,t){switch(e){case"keyup":return tE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==By;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ns(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function ww(e,t){switch(e){case"compositionend":return ns(t);case"keypress":return t.which!==qy?null:(Yy=!0,Iy);case"textInput":return e=t.data,e===Iy&&Yy?null:e;default:return null}}function xw(e,t){if(ks)return e==="compositionend"||!fp&&Ac(e,t)?(e=de(),Bu=ip=ql=null,ks=!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 Gy&&t.locale!=="ko"?null:t.data;default:return null}}function _h(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aE[e.type]:t==="textarea"}function Ew(e){if(!Io)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function Mh(e,t,n,a){Ds?Cs?Cs.push(a):Cs=[a]:Ds=a,t=wu(t,"onChange"),0<t.length&&(n=new Gu("onChange","change",null,n,a),e.push({event:n,listeners:t}))}function Sw(e){vv(e,0)}function Oc(e){var t=le(e);if(go(t))return e}function zh(e,t){if(e==="change")return t}function Hh(){Hi&&(Hi.detachEvent("onpropertychange",Lh),Li=Hi=null)}function Lh(e){if(e.propertyName==="value"&&Oc(Li)){var t=[];Mh(t,Li,e,y(e)),W(Sw,t)}}function Dw(e,t,n){e==="focusin"?(Hh(),Hi=t,Li=n,Hi.attachEvent("onpropertychange",Lh)):e==="focusout"&&Hh()}function Cw(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oc(Li)}function kw(e,t){if(e==="click")return Oc(t)}function Uw(e,t){if(e==="input"||e==="change")return Oc(t)}function Aw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ti(e,t){if(Qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!ro.call(t,o)||!Qn(e[o],t[o]))return!1}return!0}function $h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bh(e,t){var n=$h(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$h(n)}}function Gh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fn(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fn(e.document)}return t}function Id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ih(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pp||Us==null||Us!==fn(a)||(a=Us,"selectionStart"in a&&Id(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}),$i&&ti($i,a)||($i=a,a=wu(mp,"onSelect"),0<a.length&&(t=new Gu("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Us)))}function pr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function hr(e){if(hp[e])return hp[e];if(!As[e])return e;var t=As[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qy)return hp[e]=t[n];return e}function no(e,t){Py.set(e,t),Te(t,[e])}function Ow(e){for(var t=Iu,n=0;n<e.length;n++){var a=e[n];if(typeof a=="object"&&a!==null)if(mn(a)&&a.length===2&&typeof a[0]=="string"){if(t!==Iu&&t!==Np)return vp;t=Np}else return vp;else{if(typeof a=="function"||typeof a=="string"&&50<a.length||t!==Iu&&t!==yp)return vp;t=yp}}return t}function Yd(e,t,n,a){for(var o in e)ro.call(e,o)&&o[0]!=="_"&&xo(o,e[o],t,n,a)}function xo(e,t,n,a,o){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ho){var l=Ee(t.type)||"…",r=t.key;t=t.props;var i=Object.keys(t),u=i.length;if(r==null&&u===0){t="<"+l+" />";break}if(3>a||u===1&&i[0]==="children"&&r==null){t="<"+l+" … />";break}n.push([o+"  ".repeat(a)+e,"<"+l]),r!==null&&xo("key",r,n,a+1,o),e=!1;for(var f in t)f==="children"?t.children!=null&&(!mn(t.children)||0<t.children.length)&&(e=!0):ro.call(t,f)&&f[0]!=="_"&&xo(f,t[f],n,a+1,o);n.push(["",e?">…</"+l+">":"/>"]);return}if(l=Object.prototype.toString.call(t),l=l.slice(8,l.length-1),l==="Array"){if(f=Ow(t),f===yp||f===Iu){t=JSON.stringify(t);break}else if(f===Np){for(n.push([o+"  ".repeat(a)+e,""]),e=0;e<t.length;e++)l=t[e],xo(l[0],l[1],n,a+1,o);return}}if(l==="Promise"){if(t.status==="fulfilled"){if(l=n.length,xo(e,t.value,n,a,o),n.length>l){n=n[l],n[1]="Promise<"+(n[1]||"Object")+">";return}}else if(t.status==="rejected"&&(l=n.length,xo(e,t.reason,n,a,o),n.length>l)){n=n[l],n[1]="Rejected Promise<"+n[1]+">";return}n.push(["  ".repeat(a)+e,"Promise"]);return}l==="Object"&&(f=Object.getPrototypeOf(t))&&typeof f.constructor=="function"&&(l=f.constructor.name),n.push([o+"  ".repeat(a)+e,l==="Object"?3>a?"":"…":l]),3>a&&Yd(t,n,a+1,o);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===uE?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}n.push([o+"  ".repeat(a)+e,t])}function Yh(e,t,n,a){var o=!0;for(r in e)r in t||(n.push([Yu+"  ".repeat(a)+r,"…"]),o=!1);for(var l in t)if(l in e){var r=e[l],i=t[l];if(r!==i){if(a===0&&l==="children")o="  ".repeat(a)+l,n.push([Yu+o,"…"],[Xu+o,"…"]);else{if(!(3<=a)){if(typeof r=="object"&&typeof i=="object"&&r!==null&&i!==null&&r.$$typeof===i.$$typeof)if(i.$$typeof===Ho){if(r.type===i.type&&r.key===i.key){r=Ee(i.type)||"…",o="  ".repeat(a)+l,r="<"+r+" … />",n.push([Yu+o,r],[Xu+o,r]),o=!1;continue}}else{var u=Object.prototype.toString.call(r),f=Object.prototype.toString.call(i);if(u===f&&(f==="[object Object]"||f==="[object Array]")){u=[tN+"  ".repeat(a)+l,f==="[object Array]"?"Array":""],n.push(u),f=n.length,Yh(r,i,n,a+1)?f===n.length&&(u[1]="Referentially unequal but deeply equal objects. Consider memoization."):o=!1;continue}}else if(typeof r=="function"&&typeof i=="function"&&r.name===i.name&&r.length===i.length&&(u=Function.prototype.toString.call(r),f=Function.prototype.toString.call(i),u===f)){r=i.name===""?"() => {}":i.name+"() {}",n.push([tN+"  ".repeat(a)+l,r+" Referentially unequal function closure. Consider memoization."]);continue}}xo(l,r,n,a,Yu),xo(l,i,n,a,Xu)}o=!1}}else n.push([Xu+"  ".repeat(a)+l,"…"]),o=!1;return o}function ao(e){Ke=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Eo(e,t,n,a){Et&&(Yl.start=t,Yl.end=n,cl.color="warning",cl.tooltipText=a,cl.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,a,Yl)):performance.measure(a,Yl))}function Tc(e,t,n){Eo(e,t,n,"Reconnect")}function Rc(e,t,n,a,o){var l=ee(e);if(l!==null&&Et){var r=e.alternate,i=e.actualDuration;if(r===null||r.child!==e.child)for(var u=e.child;u!==null;u=u.sibling)i-=u.actualDuration;a=.5>i?a?"tertiary-light":"primary-light":10>i?a?"tertiary":"primary":100>i?a?"tertiary-dark":"primary-dark":"error";var f=e.memoizedProps;i=e._debugTask,f!==null&&r!==null&&r.memoizedProps!==f?(u=[dE],f=Yh(r.memoizedProps,f,u,0),1<u.length&&(f&&!Il&&(r.lanes&o)===0&&100<e.actualDuration?(Il=!0,u[0]=fE,cl.color="warning",cl.tooltipText=nN):(cl.color=a,cl.tooltipText=l),cl.properties=u,Yl.start=t,Yl.end=n,i!=null?i.run(performance.measure.bind(performance,"​"+l,Yl)):performance.measure("​"+l,Yl))):i!=null?i.run(console.timeStamp.bind(console,l,t,n,Ma,void 0,a)):console.timeStamp(l,t,n,Ma,void 0,a)}}function Xd(e,t,n,a){if(Et){var o=ee(e);if(o!==null){for(var l=null,r=[],i=0;i<a.length;i++){var u=a[i];l==null&&u.source!==null&&(l=u.source._debugTask),u=u.value,r.push(["Error",typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u)])}e.key!==null&&xo("key",e.key,r,0,""),e.memoizedProps!==null&&Yd(e.memoizedProps,r,0,""),l==null&&(l=e._debugTask),e={start:t,end:n,detail:{devtools:{color:"error",track:Ma,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:r}}},l?l.run(performance.measure.bind(performance,"​"+o,e)):performance.measure("​"+o,e)}}}function So(e,t,n,a,o){if(o!==null){if(Et){var l=ee(e);if(l!==null){a=[];for(var r=0;r<o.length;r++){var i=o[r].value;a.push(["Error",typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i)])}e.key!==null&&xo("key",e.key,a,0,""),e.memoizedProps!==null&&Yd(e.memoizedProps,a,0,""),t={start:t,end:n,detail:{devtools:{color:"error",track:Ma,tooltipText:"A lifecycle or effect errored",properties:a}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+l,t)):performance.measure("​"+l,t)}}}else l=ee(e),l!==null&&Et&&(o=1>a?"secondary-light":100>a?"secondary":500>a?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,l,t,n,Ma,void 0,o)):console.timeStamp(l,t,n,Ma,void 0,o))}function Tw(e,t,n,a){if(Et&&!(t<=e)){var o=(n&738197653)===n?"tertiary-dark":"primary-dark";n=(n&536870912)===n?"Prepared":(n&201326741)===n?"Hydrated":"Render",a?a.run(console.timeStamp.bind(console,n,e,t,Ke,Ze,o)):console.timeStamp(n,e,t,Ke,Ze,o)}}function Xh(e,t,n,a){!Et||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Prewarm",e,t,Ke,Ze,n)):console.timeStamp("Prewarm",e,t,Ke,Ze,n))}function Qh(e,t,n,a){!Et||t<=e||(n=(n&738197653)===n?"tertiary-dark":"primary-dark",a?a.run(console.timeStamp.bind(console,"Suspended",e,t,Ke,Ze,n)):console.timeStamp("Suspended",e,t,Ke,Ze,n))}function Rw(e,t,n,a,o,l){if(Et&&!(t<=e)){n=[];for(var r=0;r<a.length;r++){var i=a[r].value;n.push(["Recoverable Error",typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:Ke,trackGroup:Ze,tooltipText:o?"Hydration Failed":"Recovered after Error",properties:n}}},l?l.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Qd(e,t,n,a){!Et||t<=e||(a?a.run(console.timeStamp.bind(console,"Errored",e,t,Ke,Ze,"error")):console.timeStamp("Errored",e,t,Ke,Ze,"error"))}function jw(e,t,n,a){!Et||t<=e||(a?a.run(console.timeStamp.bind(console,n,e,t,Ke,Ze,"secondary-light")):console.timeStamp(n,e,t,Ke,Ze,"secondary-light"))}function Zh(e,t,n,a,o){if(Et&&!(t<=e)){for(var l=[],r=0;r<n.length;r++){var i=n[r].value;l.push(["Error",typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i)])}e={start:e,end:t,detail:{devtools:{color:"error",track:Ke,trackGroup:Ze,tooltipText:a?"Remaining Effects Errored":"Commit Errored",properties:l}}},o?o.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Zd(e,t,n){!Et||t<=e||console.timeStamp("Animating",e,t,Ke,Ze,"secondary-dark")}function jc(){for(var e=Os,t=wp=Os=0;t<e;){var n=za[t];za[t++]=null;var a=za[t];za[t++]=null;var o=za[t];za[t++]=null;var l=za[t];if(za[t++]=null,a!==null&&o!==null){var r=a.pending;r===null?o.next=o:(o.next=r.next,r.next=o),a.pending=o}l!==0&&Jh(n,o,l)}}function Vc(e,t,n,a){za[Os++]=e,za[Os++]=t,za[Os++]=n,za[Os++]=a,wp|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Jd(e,t,n,a){return Vc(e,t,n,a),_c(e)}function jn(e,t){return Vc(e,null,null,t),_c(e)}function Jh(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,l=e.return;l!==null;)l.childLanes|=n,a=l.alternate,a!==null&&(a.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&Bi||(o=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,o&&t!==null&&(o=31-In(n),e=l.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),l):null}function _c(e){if(pc>UE)throw Yr=pc=0,hc=eh=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Yr>AE&&(Yr=0,hc=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&dv(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&dv(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function gr(e){if(Ha===null)return e;var t=Ha(e);return t===void 0?e:t.current}function Kd(e){if(Ha===null)return e;var t=Ha(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=gr(e.render),e.render!==t)?(t={$$typeof:Ai,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Kh(e,t){if(Ha===null)return!1;var n=e.elementType;t=t.type;var a=!1,o=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(a=!0);break;case 0:(typeof t=="function"||o===Na)&&(a=!0);break;case 11:(o===Ai||o===Na)&&(a=!0);break;case 14:case 15:(o===Ru||o===Na)&&(a=!0);break;default:return!1}return!!(a&&(e=Ha(n),e!==void 0&&e===Ha(t)))}function Wh(e){Ha!==null&&typeof WeakSet=="function"&&(Ts===null&&(Ts=new WeakSet),Ts.add(e))}function Ph(e,t,n){do{var a=e,o=a.alternate,l=a.child,r=a.sibling,i=a.tag;a=a.type;var u=null;switch(i){case 0:case 15:case 1:u=a;break;case 11:u=a.render}if(Ha===null)throw Error("Expected resolveFamily to be set during hot reload.");var f=!1;if(a=!1,u!==null&&(u=Ha(u),u!==void 0&&(n.has(u)?a=!0:t.has(u)&&(i===1?a=!0:f=!0))),Ts!==null&&(Ts.has(e)||o!==null&&Ts.has(o))&&(a=!0),a&&(e._debugNeedsRemount=!0),(a||f)&&(o=jn(e,2),o!==null&&Lt(o,e,2)),l===null||a||Ph(l,t,n),r===null)break;e=r}while(!0)}function Vw(e,t,n,a){this.tag=e,this.key=n,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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,aN||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function Wd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function el(e,t){var n=e.alternate;switch(n===null?(n=k(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=gr(e.type);break;case 1:n.type=gr(e.type);break;case 11:n.type=Kd(e.type)}return n}function Fh(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Pd(e,t,n,a,o,l){var r=0,i=e;if(typeof e=="function")Wd(e)&&(r=1),i=gr(i);else if(typeof e=="string")r=ue(),r=q1(e,n,r)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Xm:return t=k(31,n,t,o),t.elementType=Xm,t.lanes=l,t;case ys:return br(n.children,o,l,t);case Tu:r=8,o|=_n,o|=so;break;case Gm:return e=n,a=o,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=k(12,e,t,a|_e),t.elementType=Gm,t.lanes=l,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Im:return t=k(13,n,t,o),t.elementType=Im,t.lanes=l,t;case Ym:return t=k(19,n,t,o),t.elementType=Ym,t.lanes=l,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Lo:r=10;break e;case qm:r=9;break e;case Ai:r=11,i=Kd(i);break e;case Ru:r=14;break e;case Na:r=16,i=null;break e}i="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":mn(e)?n="array":e!==void 0&&e.$$typeof===Ho?(n="<"+(Ee(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(r=a?ct(a):null)&&(i+=`
77
+
78
+ Check the render method of \``+r+"`."),r=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+i)),i=null}return t=k(r,n,t,o),t.elementType=e,t.type=i,t.lanes=l,t._debugOwner=a,t}function Mc(e,t,n){return t=Pd(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function br(e,t,n,a){return e=k(7,e,a,t),e.lanes=n,e}function Fd(e,t,n){return e=k(6,e,null,t),e.lanes=n,e}function eg(e){var t=k(18,null,null,xe);return t.stateNode=e,t}function ef(e,t,n){return t=k(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pa(e,t){if(typeof e=="object"&&e!==null){var n=xp.get(e);return n!==void 0?n:(t={value:e,source:t,stack:tt(t)},xp.set(e,t),t)}return{value:e,source:t,stack:tt(t)}}function tl(e,t){kl(),Rs[js++]=Gi,Rs[js++]=Qu,Qu=e,Gi=t}function tg(e,t,n){kl(),La[$a++]=dl,La[$a++]=fl,La[$a++]=Or,Or=e;var a=dl;e=fl;var o=32-In(a)-1;a&=~(1<<o),n+=1;var l=32-In(t)+o;if(30<l){var r=o-o%5;l=(a&(1<<r)-1).toString(32),a>>=r,o-=r,dl=1<<32-In(t)+o|n<<o|a,fl=l+e}else dl=1<<l|n<<o|a,fl=e}function tf(e){kl(),e.return!==null&&(tl(e,1),tg(e,1,0))}function nf(e){for(;e===Qu;)Qu=Rs[--js],Rs[js]=null,Gi=Rs[--js],Rs[js]=null;for(;e===Or;)Or=La[--$a],La[$a]=null,fl=La[--$a],La[$a]=null,dl=La[--$a],La[$a]=null}function ng(){return kl(),Or!==null?{id:dl,overflow:fl}:null}function ag(e,t){kl(),La[$a++]=dl,La[$a++]=fl,La[$a++]=Or,dl=t.id,fl=t.overflow,Or=e}function kl(){Ye||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function vr(e,t){if(e.return===null){if(xa===null)xa={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(xa.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");xa.distanceFromLeaf>t&&(xa.distanceFromLeaf=t)}return xa}var n=vr(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function og(){Ye&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function zc(e,t){Yo||(e=vr(e,0),e.serverProps=null,t!==null&&(t=Mv(t),e.serverTail.push(t)))}function Ul(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n="",a=xa;throw a!==null&&(xa=null,n=Pa(a)),ni(pa(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
79
+
80
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
81
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
82
+ - Date formatting in a user's locale which doesn't match the server.
83
+ - External changing data without sending a snapshot of it along with the HTML.
84
+ - Invalid HTML tag nesting.
85
+
86
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
87
+
88
+ https://react.dev/link/hydration-mismatch`+n),e)),Ep}function lg(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Cn]=e,t[Yn]=a,Em(n,a),n){case"dialog":Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":case"embed":Qe("load",t);break;case"video":case"audio":for(n=0;n<gc.length;n++)Qe(gc[n],t);break;case"source":Qe("error",t);break;case"img":case"image":case"link":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"input":Yt("input",a),Qe("invalid",t),fa(t,a),fr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"option":Ja(t,a);break;case"select":Yt("select",a),Qe("invalid",t),Ko(t,a);break;case"textarea":Yt("textarea",a),Qe("invalid",t),Ka(t,a),Rn(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||xv(t.textContent,n)?(a.popover!=null&&(Qe("beforetoggle",t),Qe("toggle",t)),a.onScroll!=null&&Qe("scroll",t),a.onScrollEnd!=null&&Qe("scrollend",t),a.onClick!=null&&(t.onclick=xt),t=!0):t=!1,t||Ul(e,!0)}function rg(e){for(kn=e.return;kn;)switch(kn.tag){case 5:case 31:case 13:Ba=!1;return;case 27:case 3:Ba=!0;return;default:kn=kn.return}}function as(e){if(e!==kn)return!1;if(!Ye)return rg(e),Ye=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Um(e.type,e.memoizedProps)),n=!n),n&&St){for(n=St;n;){var a=vr(e,0),o=Mv(n);a.serverTail.push(o),n=o.type==="Suspense"?Rm(n):ya(n.nextSibling)}Ul(e)}if(rg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");St=Rm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");St=Rm(e)}else t===27?(t=St,Hl(e.type)?(e=fh,fh=null,St=e):St=t):St=kn?ya(e.stateNode.nextSibling):null;return!0}function yr(){St=kn=null,Yo=Ye=!1}function af(){var e=Ql;return e!==null&&(Wn===null?Wn=e:Wn.push.apply(Wn,e),Ql=null),e}function ni(e){Ql===null?Ql=[e]:Ql.push(e)}function of(){var e=xa;if(e!==null){xa=null;for(var t=Pa(e);0<e.children.length;)e=e.children[0];F(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
89
+
90
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
91
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
92
+ - Date formatting in a user's locale which doesn't match the server.
93
+ - External changing data without sending a snapshot of it along with the HTML.
94
+ - Invalid HTML tag nesting.
95
+
96
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
97
+
98
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Hc(){Vs=Zu=null,_s=!1}function Al(e,t,n){Ue(Sp,t._currentValue,e),t._currentValue=n,Ue(Dp,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==lN&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=lN}function nl(e,t){e._currentValue=Sp.current;var n=Dp.current;be(Dp,t),e._currentRenderer=n,be(Sp,t)}function lf(e,t,n){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===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function rf(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var l=o.dependencies;if(l!==null){var r=o.child;l=l.firstContext;e:for(;l!==null;){var i=l;l=o;for(var u=0;u<t.length;u++)if(i.context===t[u]){l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),lf(l.return,n,e),a||(r=null);break e}l=i.next}}else if(o.tag===18){if(r=o.return,r===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),lf(r,n,e),r=null}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===e){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}}function os(e,t,n,a){e=null;for(var o=t,l=!1;o!==null;){if(!l){if((o.flags&524288)!==0)l=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var r=o.alternate;if(r===null)throw Error("Should have a current fiber. This is a bug in React.");if(r=r.memoizedProps,r!==null){var i=o.type;Qn(o.pendingProps.value,r.value)||(e!==null?e.push(i):e=[i])}}else if(o===ju.current){if(r=o.alternate,r===null)throw Error("Should have a current fiber. This is a bug in React.");r.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(wc):e=[wc])}o=o.return}e!==null&&rf(t,e,n,a),t.flags|=262144}function Lc(e){for(e=e.firstContext;e!==null;){if(!Qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Nr(e){Zu=e,Vs=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ot(e){return _s&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),sg(Zu,e)}function $c(e,t){return Zu===null&&Nr(e),sg(e,t)}function sg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vs===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Vs=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Vs=Vs.next=t;return n}function sf(){return{controller:new hE,data:new Map,refCount:0}}function wr(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function ai(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&gE(bE,function(){e.controller.abort()})}function Do(e,t,n){(e&127)!==0?0>Xo&&(Xo=nn(),Ii=Ju(t),Cp=t,n!=null&&(kp=ee(n)),(Fe&(hn|Da))!==Nn&&($t=!0,Jl=qi),e=Si(),t=Ei(),e!==Ms||t!==Yi?Ms=-1.1:t!==null&&(Jl=qi),jr=e,Yi=t):(e&4194048)!==0&&0>Ga&&(Ga=nn(),Xi=Ju(t),rN=t,n!=null&&(sN=ee(n)),0>gl)&&(e=Si(),t=Ei(),(e!==Wl||t!==Vr)&&(Wl=-1.1),Kl=e,Vr=t)}function _w(e){if(0>Xo){Xo=nn(),Ii=e._debugTask!=null?e._debugTask:null,(Fe&(hn|Da))!==Nn&&(Jl=qi);var t=Si(),n=Ei();t!==Ms||n!==Yi?Ms=-1.1:n!==null&&(Jl=qi),jr=t,Yi=n}0>Ga&&(Ga=nn(),Xi=e._debugTask!=null?e._debugTask:null,0>gl)&&(e=Si(),t=Ei(),(e!==Wl||t!==Vr)&&(Wl=-1.1),Kl=e,Vr=t)}function al(){var e=Tr;return Tr=0,e}function Bc(e){var t=Tr;return Tr=e,t}function oi(e){var t=Tr;return Tr+=e,t}function Gc(){we=ge=-1.1}function ha(){var e=ge;return ge=-1.1,e}function ga(e){0<=e&&(ge=e)}function Co(){var e=Vt;return Vt=-0,e}function ko(e){0<=e&&(Vt=e)}function Uo(){var e=Tt;return Tt=null,e}function Ao(){var e=$t;return $t=!1,e}function cf(e){Zn=nn(),0>e.actualStartTime&&(e.actualStartTime=Zn)}function uf(e){if(0<=Zn){var t=nn()-Zn;e.actualDuration+=t,e.selfBaseDuration=t,Zn=-1}}function ig(e){if(0<=Zn){var t=nn()-Zn;e.actualDuration+=t,Zn=-1}}function Oo(){if(0<=Zn){var e=nn(),t=e-Zn;Zn=-1,Tr+=t,Vt+=t,we=e}}function cg(e){Tt===null&&(Tt=[]),Tt.push(e),pl===null&&(pl=[]),pl.push(e)}function To(){Zn=nn(),0>ge&&(ge=Zn)}function li(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Mw(e,t){if(Zi===null){var n=Zi=[];Ap=0,_r=ym(),zs={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Ap++,t.then(ug,ug),t}function ug(){if(--Ap===0&&(-1<Ga||(gl=-1.1),Zi!==null)){zs!==null&&(zs.status="fulfilled");var e=Zi;Zi=null,_r=0,zs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function zw(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}function df(){var e=Mr.current;return e!==null?e:bt.pooledCache}function qc(e,t){t===null?Ue(Mr,Mr.current,e):Ue(Mr,t.pool,e)}function dg(){var e=df();return e===null?null:{parent:tn._currentValue,pool:e}}function fg(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function mg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pg(e,t,n){j.actQueue!==null&&(j.didUsePromise=!0);var a=e.thenables;if(n=a[n],n===void 0?a.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(xt,xt),t=n),t._debugInfo===void 0){e=performance.now(),a=t.displayName;var o={name:typeof a=="string"?a:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:o}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){o.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gg(e),e;default:if(typeof t.status=="string")t.then(xt,xt);else{if(e=bt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gg(e),e}throw Hr=t,tc=!0,Hs}}function Ol(e){try{return xE(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(Hr=t,tc=!0,Hs):t}}function hg(){if(Hr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Hr;return Hr=null,tc=!1,e}function gg(e){if(e===Hs||e===ad)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function En(e){var t=Me;return e!=null&&(Me=t===null?e:t.concat(e)),t}function ff(){var e=Me;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Ic(e,t,n){for(var a=Object.keys(e.props),o=0;o<a.length;o++){var l=a[o];if(l!=="children"&&l!=="key"){t===null&&(t=Mc(e,n.mode,0),t._debugInfo=Me,t.return=n),F(t,function(r){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r)},l);break}}}function Yc(e){var t=nc;return nc+=1,Ls===null&&(Ls=fg()),pg(Ls,e,t)}function ri(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bg(e,t){throw t.$$typeof===ex?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
99
+ - Multiple copies of the "react" package is used.
100
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
101
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Xc(e,t){var n=ff();n!==null?n.run(bg.bind(null,e,t)):bg(e,t)}function vg(e,t){var n=ee(e)||"Component";kN[n]||(kN[n]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
103
+ <%s>{%s}</%s>`,t,t,n,t,n))}function Qc(e,t){var n=ff();n!==null?n.run(vg.bind(null,e,t)):vg(e,t)}function yg(e,t){var n=ee(e)||"Component";UN[n]||(UN[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
104
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
105
+ <%s>%s</%s>`,n,t,n))}function Zc(e,t){var n=ff();n!==null?n.run(yg.bind(null,e,t)):yg(e,t)}function Ng(e){function t(h,b){if(e){var w=h.deletions;w===null?(h.deletions=[b],h.flags|=16):w.push(b)}}function n(h,b){if(!e)return null;for(;b!==null;)t(h,b),b=b.sibling;return null}function a(h){for(var b=new Map;h!==null;)h.key!==null?b.set(h.key,h):b.set(h.index,h),h=h.sibling;return b}function o(h,b){return h=el(h,b),h.index=0,h.sibling=null,h}function l(h,b,w){return h.index=w,e?(w=h.alternate,w!==null?(w=w.index,w<b?(h.flags|=67108866,b):w):(h.flags|=67108866,b)):(h.flags|=1048576,b)}function r(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function i(h,b,w,H){return b===null||b.tag!==6?(b=Fd(w,h.mode,H),b.return=h,b._debugOwner=h,b._debugTask=h._debugTask,b._debugInfo=Me,b):(b=o(b,w),b.return=h,b._debugInfo=Me,b)}function u(h,b,w,H){var P=w.type;return P===ys?(b=x(h,b,w.props.children,H,w.key),Ic(w,b,h),b):b!==null&&(b.elementType===P||Kh(b,w)||typeof P=="object"&&P!==null&&P.$$typeof===Na&&Ol(P)===b.type)?(b=o(b,w.props),ri(b,w),b.return=h,b._debugOwner=w._owner,b._debugInfo=Me,b):(b=Mc(w,h.mode,H),ri(b,w),b.return=h,b._debugInfo=Me,b)}function f(h,b,w,H){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=ef(w,h.mode,H),b.return=h,b._debugInfo=Me,b):(b=o(b,w.children||[]),b.return=h,b._debugInfo=Me,b)}function x(h,b,w,H,P){return b===null||b.tag!==7?(b=br(w,h.mode,H,P),b.return=h,b._debugOwner=h,b._debugTask=h._debugTask,b._debugInfo=Me,b):(b=o(b,w),b.return=h,b._debugInfo=Me,b)}function E(h,b,w){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Fd(""+b,h.mode,w),b.return=h,b._debugOwner=h,b._debugTask=h._debugTask,b._debugInfo=Me,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ho:return w=Mc(b,h.mode,w),ri(w,b),w.return=h,h=En(b._debugInfo),w._debugInfo=Me,Me=h,w;case vs:return b=ef(b,h.mode,w),b.return=h,b._debugInfo=Me,b;case Na:var H=En(b._debugInfo);return b=Ol(b),h=E(h,b,w),Me=H,h}if(mn(b)||Rt(b))return w=br(b,h.mode,w,null),w.return=h,w._debugOwner=h,w._debugTask=h._debugTask,h=En(b._debugInfo),w._debugInfo=Me,Me=h,w;if(typeof b.then=="function")return H=En(b._debugInfo),h=E(h,Yc(b),w),Me=H,h;if(b.$$typeof===Lo)return E(h,$c(h,b),w);Xc(h,b)}return typeof b=="function"&&Qc(h,b),typeof b=="symbol"&&Zc(h,b),null}function g(h,b,w,H){var P=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return P!==null?null:i(h,b,""+w,H);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ho:return w.key===P?(P=En(w._debugInfo),h=u(h,b,w,H),Me=P,h):null;case vs:return w.key===P?f(h,b,w,H):null;case Na:return P=En(w._debugInfo),w=Ol(w),h=g(h,b,w,H),Me=P,h}if(mn(w)||Rt(w))return P!==null?null:(P=En(w._debugInfo),h=x(h,b,w,H,null),Me=P,h);if(typeof w.then=="function")return P=En(w._debugInfo),h=g(h,b,Yc(w),H),Me=P,h;if(w.$$typeof===Lo)return g(h,b,$c(h,w),H);Xc(h,w)}return typeof w=="function"&&Qc(h,w),typeof w=="symbol"&&Zc(h,w),null}function A(h,b,w,H,P){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return h=h.get(w)||null,i(b,h,""+H,P);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case Ho:return w=h.get(H.key===null?w:H.key)||null,h=En(H._debugInfo),b=u(b,w,H,P),Me=h,b;case vs:return h=h.get(H.key===null?w:H.key)||null,f(b,h,H,P);case Na:var Ce=En(H._debugInfo);return H=Ol(H),b=A(h,b,w,H,P),Me=Ce,b}if(mn(H)||Rt(H))return w=h.get(w)||null,h=En(H._debugInfo),b=x(b,w,H,P,null),Me=h,b;if(typeof H.then=="function")return Ce=En(H._debugInfo),b=A(h,b,w,Yc(H),P),Me=Ce,b;if(H.$$typeof===Lo)return A(h,b,w,$c(b,H),P);Xc(b,H)}return typeof H=="function"&&Qc(b,H),typeof H=="symbol"&&Zc(b,H),null}function Z(h,b,w,H){if(typeof w!="object"||w===null)return H;switch(w.$$typeof){case Ho:case vs:fe(h,b,w);var P=w.key;if(typeof P!="string")break;if(H===null){H=new Set,H.add(P);break}if(!H.has(P)){H.add(P);break}F(b,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",P)});break;case Na:w=Ol(w),Z(h,b,w,H)}return H}function te(h,b,w,H){for(var P=null,Ce=null,he=null,ie=b,je=b=0,Dt=null;ie!==null&&je<w.length;je++){ie.index>je?(Dt=ie,ie=null):Dt=ie.sibling;var Jt=g(h,ie,w[je],H);if(Jt===null){ie===null&&(ie=Dt);break}P=Z(h,Jt,w[je],P),e&&ie&&Jt.alternate===null&&t(h,ie),b=l(Jt,b,je),he===null?Ce=Jt:he.sibling=Jt,he=Jt,ie=Dt}if(je===w.length)return n(h,ie),Ye&&tl(h,je),Ce;if(ie===null){for(;je<w.length;je++)ie=E(h,w[je],H),ie!==null&&(P=Z(h,ie,w[je],P),b=l(ie,b,je),he===null?Ce=ie:he.sibling=ie,he=ie);return Ye&&tl(h,je),Ce}for(ie=a(ie);je<w.length;je++)Dt=A(ie,h,je,w[je],H),Dt!==null&&(P=Z(h,Dt,w[je],P),e&&Dt.alternate!==null&&ie.delete(Dt.key===null?je:Dt.key),b=l(Dt,b,je),he===null?Ce=Dt:he.sibling=Dt,he=Dt);return e&&ie.forEach(function(Sl){return t(h,Sl)}),Ye&&tl(h,je),Ce}function Nt(h,b,w,H){if(w==null)throw Error("An iterable object provided no iterator.");for(var P=null,Ce=null,he=b,ie=b=0,je=null,Dt=null,Jt=w.next();he!==null&&!Jt.done;ie++,Jt=w.next()){he.index>ie?(je=he,he=null):je=he.sibling;var Sl=g(h,he,Jt.value,H);if(Sl===null){he===null&&(he=je);break}Dt=Z(h,Sl,Jt.value,Dt),e&&he&&Sl.alternate===null&&t(h,he),b=l(Sl,b,ie),Ce===null?P=Sl:Ce.sibling=Sl,Ce=Sl,he=je}if(Jt.done)return n(h,he),Ye&&tl(h,ie),P;if(he===null){for(;!Jt.done;ie++,Jt=w.next())he=E(h,Jt.value,H),he!==null&&(Dt=Z(h,he,Jt.value,Dt),b=l(he,b,ie),Ce===null?P=he:Ce.sibling=he,Ce=he);return Ye&&tl(h,ie),P}for(he=a(he);!Jt.done;ie++,Jt=w.next())je=A(he,h,ie,Jt.value,H),je!==null&&(Dt=Z(h,je,Jt.value,Dt),e&&je.alternate!==null&&he.delete(je.key===null?ie:je.key),b=l(je,b,ie),Ce===null?P=je:Ce.sibling=je,Ce=je);return e&&he.forEach(function(XE){return t(h,XE)}),Ye&&tl(h,ie),P}function Je(h,b,w,H){if(typeof w=="object"&&w!==null&&w.type===ys&&w.key===null&&(Ic(w,null,h),w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ho:var P=En(w._debugInfo);e:{for(var Ce=w.key;b!==null;){if(b.key===Ce){if(Ce=w.type,Ce===ys){if(b.tag===7){n(h,b.sibling),H=o(b,w.props.children),H.return=h,H._debugOwner=w._owner,H._debugInfo=Me,Ic(w,H,h),h=H;break e}}else if(b.elementType===Ce||Kh(b,w)||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===Na&&Ol(Ce)===b.type){n(h,b.sibling),H=o(b,w.props),ri(H,w),H.return=h,H._debugOwner=w._owner,H._debugInfo=Me,h=H;break e}n(h,b);break}else t(h,b);b=b.sibling}w.type===ys?(H=br(w.props.children,h.mode,H,w.key),H.return=h,H._debugOwner=h,H._debugTask=h._debugTask,H._debugInfo=Me,Ic(w,H,h),h=H):(H=Mc(w,h.mode,H),ri(H,w),H.return=h,H._debugInfo=Me,h=H)}return h=r(h),Me=P,h;case vs:e:{for(P=w,w=P.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===P.containerInfo&&b.stateNode.implementation===P.implementation){n(h,b.sibling),H=o(b,P.children||[]),H.return=h,h=H;break e}else{n(h,b);break}else t(h,b);b=b.sibling}H=ef(P,h.mode,H),H.return=h,h=H}return r(h);case Na:return P=En(w._debugInfo),w=Ol(w),h=Je(h,b,w,H),Me=P,h}if(mn(w))return P=En(w._debugInfo),h=te(h,b,w,H),Me=P,h;if(Rt(w)){if(P=En(w._debugInfo),Ce=Rt(w),typeof Ce!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var he=Ce.call(w);return he===w?(h.tag!==0||Object.prototype.toString.call(h.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(he)!=="[object Generator]")&&(DN||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),DN=!0):w.entries!==Ce||jp||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jp=!0),h=Nt(h,b,he,H),Me=P,h}if(typeof w.then=="function")return P=En(w._debugInfo),h=Je(h,b,Yc(w),H),Me=P,h;if(w.$$typeof===Lo)return Je(h,b,$c(h,w),H);Xc(h,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(P=""+w,b!==null&&b.tag===6?(n(h,b.sibling),H=o(b,P),H.return=h,h=H):(n(h,b),H=Fd(P,h.mode,H),H.return=h,H._debugOwner=h,H._debugTask=h._debugTask,H._debugInfo=Me,h=H),r(h)):(typeof w=="function"&&Qc(h,w),typeof w=="symbol"&&Zc(h,w),n(h,b))}return function(h,b,w,H){var P=Me;Me=null;try{nc=0;var Ce=Je(h,b,w,H);return Ls=null,Ce}catch(Dt){if(Dt===Hs||Dt===ad)throw Dt;var he=k(29,Dt,null,h.mode);he.lanes=H,he.return=h;var ie=he._debugInfo=Me;if(he._debugOwner=h._debugOwner,he._debugTask=h._debugTask,ie!=null){for(var je=ie.length-1;0<=je;je--)if(typeof ie[je].stack=="string"){he._debugOwner=ie[je],he._debugTask=ie[je].debugTask;break}}return he}finally{Me=P}}}function wg(e,t){var n=mn(e);return e=!n&&typeof Rt(e)=="function",n||e?(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1):!0}function mf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pf(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 Tl(e){return{lane:e,tag:ON,payload:null,callback:null,next:null}}function Rl(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,_p===a&&!jN){var o=ee(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
106
+
107
+ Please update the following component: %s`,o),jN=!0}return(Fe&hn)!==Nn?(o=a.pending,o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=_c(e),Jh(e,null,n),t):(Vc(e,a,t,n),_c(e))}function si(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ua(e,n)}}function Jc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?o=l=r:l=l.next=r,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:l,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ii(){if(Mp){var e=zs;if(e!==null)throw e}}function ci(e,t,n,a){Mp=!1;var o=e.updateQueue;Pl=!1,_p=o.shared;var l=o.firstBaseUpdate,r=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var u=i,f=u.next;u.next=null,r===null?l=f:r.next=f,r=u;var x=e.alternate;x!==null&&(x=x.updateQueue,i=x.lastBaseUpdate,i!==r&&(i===null?x.firstBaseUpdate=f:i.next=f,x.lastBaseUpdate=u))}if(l!==null){var E=o.baseState;r=0,x=f=u=null,i=l;do{var g=i.lane&-536870913,A=g!==i.lane;if(A?(ze&g)===g:(a&g)===g){g!==0&&g===_r&&(Mp=!0),x!==null&&(x=x.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{g=e;var Z=i,te=t,Nt=n;switch(Z.tag){case TN:if(Z=Z.payload,typeof Z=="function"){_s=!0;var Je=Z.call(Nt,E,te);if(g.mode&_n){I(!0);try{Z.call(Nt,E,te)}finally{I(!1)}}_s=!1,E=Je;break e}E=Z;break e;case Vp:g.flags=g.flags&-65537|128;case ON:if(Je=Z.payload,typeof Je=="function"){if(_s=!0,Z=Je.call(Nt,E,te),g.mode&_n){I(!0);try{Je.call(Nt,E,te)}finally{I(!1)}}_s=!1}else Z=Je;if(Z==null)break e;E=Ge({},E,Z);break e;case RN:Pl=!0}}g=i.callback,g!==null&&(e.flags|=64,A&&(e.flags|=8192),A=o.callbacks,A===null?o.callbacks=[g]:A.push(g))}else A={lane:g,tag:i.tag,payload:i.payload,callback:i.callback,next:null},x===null?(f=x=A,u=E):x=x.next=A,r|=g;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;A=i,i=A.next,A.next=null,o.lastBaseUpdate=A,o.shared.pending=null}}while(!0);x===null&&(u=E),o.baseState=u,o.firstBaseUpdate=f,o.lastBaseUpdate=x,l===null&&(o.shared.lanes=0),tr|=r,e.lanes=r,e.memoizedState=E}_p=null}function xg(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Hw(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)xg(n[e],t)}function Eg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)xg(n[e],t)}function Sg(e,t){var n=Zo;Ue(ld,n,e),Ue($s,t,e),Zo=n|t.baseLanes}function hf(e){Ue(ld,Zo,e),Ue($s,$s.current,e)}function gf(e){Zo=ld.current,be($s,e),be(ld,e)}function jl(e){var t=e.alternate;Ue(Zt,Zt.current&Bs,e),Ue(Ea,e,e),qa===null&&(t===null||$s.current!==null||t.memoizedState!==null)&&(qa=e)}function bf(e){Ue(Zt,Zt.current,e),Ue(Ea,e,e),qa===null&&(qa=e)}function Dg(e){e.tag===22?(Ue(Zt,Zt.current,e),Ue(Ea,e,e),qa===null&&(qa=e)):Vl(e)}function Vl(e){Ue(Zt,Zt.current,e),Ue(Ea,Ea.current,e)}function ba(e){be(Ea,e),qa===e&&(qa=null),be(Zt,e)}function Kc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Om(n)||Tm(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Be(){var e=O;Ya===null?Ya=[e]:Ya.push(e)}function Y(){var e=O;if(Ya!==null&&(yl++,Ya[yl]!==e)){var t=ee(De);if(!VN.has(t)&&(VN.add(t),Ya!==null)){for(var n="",a=0;a<=yl;a++){var o=Ya[a],l=a===yl?e:o;for(o=a+1+". "+o;30>o.length;)o+=" ";o+=l+`
108
+ `,n+=o}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
109
+
110
+ Previous render Next render
111
+ ------------------------------------------------------
112
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ `,t,n)}}}function ls(e){e==null||mn(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",O,typeof e)}function Wc(){var e=ee(De);MN.has(e)||(MN.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Bt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
114
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
115
+ 2. You might be breaking the Rules of Hooks
116
+ 3. You might have more than one copy of React in the same app
117
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function vf(e,t){if(lc)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",O),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
118
+
119
+ Previous: %s
120
+ Incoming: %s`,O,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Qn(e[n],t[n]))return!1;return!0}function yf(e,t,n,a,o,l){bl=l,De=t,Ya=e!==null?e._debugHookTypes:null,yl=-1,lc=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(l=ee(De),zp.has(l)||(zp.add(l),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",l===null?"An unknown Component":"<"+l+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e!==null&&e.memoizedState!==null?Lp:Ya!==null?zN:Hp,$r=l=(t.mode&_n)!==xe;var r=Op(n,a,o);if($r=!1,qs&&(r=Nf(t,n,a,o)),l){I(!0);try{r=Nf(t,n,a,o)}finally{I(!1)}}return Cg(e,t),r}function Cg(e,t){t._debugHookTypes=Ya,t.dependencies===null?vl!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:vl}):t.dependencies._debugThenableState=vl,j.H=rc;var n=gt!==null&&gt.next!==null;if(bl=0,Ya=O=an=gt=De=null,yl=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),sd=!1,oc=0,vl=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||on||(e=e.dependencies,e!==null&&Lc(e)&&(on=!0)),tc?(tc=!1,e=!0):e=!1,e&&(t=ee(t)||"Unknown",_N.has(t)||zp.has(t)||(_N.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Nf(e,t,n,a){De=e;var o=0;do{if(qs&&(vl=null),oc=0,qs=!1,o>=SE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(o+=1,lc=!1,an=gt=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}yl=-1,j.H=HN,l=Op(t,n,a)}while(qs);return l}function Lw(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?ui(t):t,e=e.useState()[0],(gt!==null?gt.memoizedState:null)!==e&&(De.flags|=1024),t}function wf(){var e=id!==0;return id=0,e}function xf(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&so)!==xe?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function Ef(e){if(sd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}sd=!1}bl=0,Ya=an=gt=De=null,yl=-1,O=null,qs=!1,oc=id=0,vl=null}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return an===null?De.memoizedState=an=e:an=an.next=e,an}function ft(){if(gt===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=gt.next;var t=an===null?De.memoizedState:an.next;if(t!==null)an=t,gt=e;else{if(e===null)throw De.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");gt=e,e={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},an===null?De.memoizedState=an=e:an=an.next=e}return an}function Pc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ui(e){var t=oc;return oc+=1,vl===null&&(vl=fg()),e=pg(vl,e,t),t=De,(an===null?t.memoizedState:an.next)===null&&(t=t.alternate,j.H=t!==null&&t.memoizedState!==null?Lp:Hp),e}function _l(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ui(e);if(e.$$typeof===Lo)return Ot(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function xr(e){var t=null,n=De.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=De.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Pc(),De.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||lc)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=tx;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function oo(e,t){return typeof t=="function"?t(e):t}function Sf(e,t,n){var a=qn();if(n!==void 0){var o=n(t);if($r){I(!0);try{n(t)}finally{I(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=Iw.bind(null,De,e),[a.memoizedState,e]}function rs(e){var t=ft();return Df(t,gt,e)}function Df(e,t,n){var a=e.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=n;var o=e.baseQueue,l=a.pending;if(l!==null){if(o!==null){var r=o.next;o.next=l.next,l.next=r}t.baseQueue!==o&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=o=l,a.pending=null}if(l=e.baseState,o===null)e.memoizedState=l;else{t=o.next;var i=r=null,u=null,f=t,x=!1;do{var E=f.lane&-536870913;if(E!==f.lane?(ze&E)===E:(bl&E)===E){var g=f.revertLane;if(g===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),E===_r&&(x=!0);else if((bl&g)===g){f=f.next,g===_r&&(x=!0);continue}else E={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},u===null?(i=u=E,r=l):u=u.next=E,De.lanes|=g,tr|=g;E=f.action,$r&&n(l,E),l=f.hasEagerState?f.eagerState:n(l,E)}else g={lane:E,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},u===null?(i=u=g,r=l):u=u.next=g,De.lanes|=E,tr|=E;f=f.next}while(f!==null&&f!==t);if(u===null?r=l:u.next=i,!Qn(l,e.memoizedState)&&(on=!0,x&&(n=zs,n!==null)))throw n;e.memoizedState=l,e.baseState=r,e.baseQueue=u,a.lastRenderedState=l}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function di(e){var t=ft(),n=t.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var r=o=o.next;do l=e(l,r.action),r=r.next;while(r!==o);Qn(l,t.memoizedState)||(on=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,a]}function Cf(e,t,n){var a=De,o=qn();if(Ye){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var l=n();Gs||l===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Gs=!0)}else{if(l=t(),Gs||(n=t(),Qn(l,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Gs=!0)),bt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ze&127)!==0||kg(a,t,l)}return o.memoizedState=l,n={value:l,getSnapshot:t},o.queue=n,nu(Ag.bind(null,a,n,e),[e]),a.flags|=2048,is(Ia|Kn,{destroy:void 0},Ug.bind(null,a,n,l,t),null),l}function Fc(e,t,n){var a=De,o=ft(),l=Ye;if(l){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!Gs){var r=t();Qn(n,r)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Gs=!0)}(r=!Qn((gt||o).memoizedState,n))&&(o.memoizedState=n,on=!0),o=o.queue;var i=Ag.bind(null,a,o,e);if(aa(2048,Kn,i,[e]),o.getSnapshot!==t||r||an!==null&&an.memoizedState.tag&Ia){if(a.flags|=2048,is(Ia|Kn,{destroy:void 0},Ug.bind(null,a,o,n,t),null),bt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");l||(bl&127)!==0||kg(a,t,n)}return n}function kg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t=Pc(),De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ug(e,t,n,a){t.value=n,t.getSnapshot=a,Og(t)&&Tg(e)}function Ag(e,t,n){return n(function(){Og(t)&&(Do(2,"updateSyncExternalStore()",e),Tg(e))})}function Og(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qn(e,n)}catch{return!0}}function Tg(e){var t=jn(e,2);t!==null&&Lt(t,e,2)}function kf(e){var t=qn();if(typeof e=="function"){var n=e;if(e=n(),$r){I(!0);try{n()}finally{I(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e},t}function Uf(e){e=kf(e);var t=e.queue,n=Kg.bind(null,De,t);return t.dispatch=n,[e.memoizedState,n]}function Af(e){var t=qn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=qf.bind(null,De,!0,n),n.dispatch=t,[e,t]}function Rg(e,t){var n=ft();return jg(n,gt,e,t)}function jg(e,t,n,a){return e.baseState=n,Df(e,gt,typeof a=="function"?a:oo)}function Vg(e,t){var n=ft();return gt!==null?jg(n,gt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function $w(e,t,n,a,o){if(iu(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var l={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){l.listeners.push(r)}};j.T!==null?n(!0):l.isTransition=!1,a(l),n=t.pending,n===null?(l.next=t.pending=l,_g(t,l)):(l.next=n.next,t.pending=n.next=l)}}function _g(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var l=j.T,r={};r._updatedFibers=new Set,j.T=r;try{var i=n(o,a),u=j.S;u!==null&&u(r,i),Mg(e,t,i)}catch(f){Of(e,t,f)}finally{l!==null&&r.types!==null&&(l.types!==null&&l.types!==r.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),l.types=r.types),j.T=l,l===null&&r._updatedFibers&&(e=r._updatedFibers.size,r._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{r=n(o,a),Mg(e,t,r)}catch(f){Of(e,t,f)}}function Mg(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(j.asyncTransitions++,n.then(su,su),n.then(function(a){zg(e,t,a)},function(a){return Of(e,t,a)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):zg(e,t,n)}function zg(e,t,n){t.status="fulfilled",t.value=n,Hg(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,_g(e,n)))}function Of(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Hg(t),t=t.next;while(t!==a)}e.action=null}function Hg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lg(e,t){return t}function ss(e,t){if(Ye){var n=bt.formState;if(n!==null){e:{var a=De;if(Ye){if(St){t:{for(var o=St,l=Ba;o.nodeType!==8;){if(!l){o=null;break t}if(o=ya(o.nextSibling),o===null){o=null;break t}}l=o.data,o=l===ih||l===E0?o:null}if(o){St=ya(o.nextSibling),a=o.data===ih;break e}}Ul(a)}a=!1}a&&(t=n[0])}}return n=qn(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lg,lastRenderedState:t},n.queue=a,n=Kg.bind(null,De,a),a.dispatch=n,a=kf(!1),l=qf.bind(null,De,!1,a.queue),a=qn(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=$w.bind(null,De,o,l,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function eu(e){var t=ft();return $g(t,gt,e)}function $g(e,t,n){if(t=Df(e,t,Lg)[0],e=rs(oo)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ui(t)}catch(r){throw r===Hs?ad:r}else a=t;t=ft();var o=t.queue,l=o.dispatch;return n!==t.memoizedState&&(De.flags|=2048,is(Ia|Kn,{destroy:void 0},Bw.bind(null,o,n),null)),[a,l,e]}function Bw(e,t){e.action=t}function tu(e){var t=ft(),n=gt;if(n!==null)return $g(t,n,e);ft(),t=t.memoizedState,n=ft();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function is(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=De.updateQueue,t===null&&(t=Pc(),De.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Tf(e){var t=qn();return e={current:e},t.memoizedState=e}function Er(e,t,n,a){var o=qn();De.flags|=e,o.memoizedState=is(Ia|t,{destroy:void 0},n,a===void 0?null:a)}function aa(e,t,n,a){var o=ft();a=a===void 0?null:a;var l=o.memoizedState.inst;gt!==null&&a!==null&&vf(a,gt.memoizedState.deps)?o.memoizedState=is(t,l,n,a):(De.flags|=e,o.memoizedState=is(Ia|t,l,n,a))}function nu(e,t){(De.mode&so)!==xe?Er(276826112,Kn,e,t):Er(8390656,Kn,e,t)}function Gw(e){De.flags|=4;var t=De.updateQueue;if(t===null)t=Pc(),De.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rf(e){var t=qn(),n={impl:e};return t.memoizedState=n,function(){if((Fe&hn)!==Nn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function au(e){var t=ft().memoizedState;return Gw({ref:t,nextImpl:e}),function(){if((Fe&hn)!==Nn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function jf(e,t){var n=4194308;return(De.mode&so)!==xe&&(n|=134217728),Er(n,Sa,e,t)}function Bg(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Vf(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null;var a=4194308;(De.mode&so)!==xe&&(a|=134217728),Er(a,Sa,Bg.bind(null,t,e),n)}function ou(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null,aa(4,Sa,Bg.bind(null,t,e),n)}function _f(e,t){return qn().memoizedState=[e,t===void 0?null:t],e}function lu(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vf(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Mf(e,t){var n=qn();t=t===void 0?null:t;var a=e();if($r){I(!0);try{e()}finally{I(!1)}}return n.memoizedState=[a,t],a}function ru(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vf(t,a[1]))return a[0];if(a=e(),$r){I(!0);try{e()}finally{I(!1)}}return n.memoizedState=[a,t],a}function zf(e,t){var n=qn();return Hf(n,e,t)}function Gg(e,t){var n=ft();return Ig(n,gt.memoizedState,e,t)}function qg(e,t){var n=ft();return gt===null?Hf(n,e,t):Ig(n,gt.memoizedState,e,t)}function Hf(e,t,n){return n===void 0||(bl&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Yb(),De.lanes|=e,tr|=e,n)}function Ig(e,t,n,a){return Qn(n,t)?n:$s.current!==null?(e=Hf(e,n,a),Qn(e,t)||(on=!0),e):(bl&42)===0||(bl&1073741824)!==0&&(ze&261930)===0?(on=!0,e.memoizedState=n):(e=Yb(),De.lanes|=e,tr|=e,t)}function su(){j.asyncTransitions--}function Yg(e,t,n,a,o){var l=it.p;it.p=l!==0&&l<qo?l:qo;var r=j.T,i={};i._updatedFibers=new Set,j.T=i,qf(e,!1,t,n);try{var u=o(),f=j.S;if(f!==null&&f(i,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){j.asyncTransitions++,u.then(su,su);var x=zw(u,a);fi(e,t,x,va(e))}else fi(e,t,a,va(e))}catch(E){fi(e,t,{then:function(){},status:"rejected",reason:E},va(e))}finally{it.p=l,r!==null&&i.types!==null&&(r.types!==null&&r.types!==i.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),r.types=i.types),j.T=r,r===null&&i._updatedFibers&&(e=i._updatedFibers.size,i._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Lf(e,t,n,a){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var o=Xg(e).queue;_w(e),Yg(e,o,t,Wr,n===null?Ie:function(){return Qg(e),n(a)})}function Xg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Wr,baseState:Wr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:Wr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qg(e){j.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Xg(e);t.next===null&&(t=e.alternate.memoizedState),fi(e,t.next.queue,{},va(e))}function $f(){var e=kf(!1);return e=Yg.bind(null,De,e.queue,!0,!1),qn().memoizedState=e,[!1,e]}function Zg(){var e=rs(oo)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:ui(e),t]}function Jg(){var e=di(oo)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:ui(e),t]}function Sr(){return Ot(wc)}function Bf(){var e=qn(),t=bt.identifierPrefix;if(Ye){var n=fl,a=dl;n=(a&~(1<<32-In(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=id++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=EE++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t}function Gf(){return qn().memoizedState=qw.bind(null,De)}function qw(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=va(n),o=Tl(a),l=Rl(n,o,a);l!==null&&(Do(a,"refresh()",e),Lt(l,n,a),si(l,n,a)),e=sf(),t!=null&&l!==null&&console.error("The seed argument is not enabled outside experimental channels."),o.payload={cache:e};return}n=n.return}}function Iw(e,t,n){var a=arguments;typeof a[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),a=va(e);var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};iu(e)?Wg(t,o):(o=Jd(e,t,o,a),o!==null&&(Do(a,"dispatch()",e),Lt(o,e,a),Pg(o,t,a)))}function Kg(e,t,n){var a=arguments;typeof a[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),a=va(e),fi(e,t,n,a)&&Do(a,"setState()",e)}function fi(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(iu(e))Wg(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null)){var r=j.H;j.H=co;try{var i=t.lastRenderedState,u=l(i,n);if(o.hasEagerState=!0,o.eagerState=u,Qn(u,i))return Vc(e,t,o,0),bt===null&&jc(),!1}catch{}finally{j.H=r}}if(n=Jd(e,t,o,a),n!==null)return Lt(n,e,a),Pg(n,t,a),!0}return!1}function qf(e,t,n,a){if(j.T===null&&_r===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),a={lane:2,revertLane:ym(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},iu(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Jd(e,n,a,2),t!==null&&(Do(2,"setOptimistic()",e),Lt(t,e,2))}function iu(e){var t=e.alternate;return e===De||t!==null&&t===De}function Wg(e,t){qs=sd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pg(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ua(e,n)}}function If(e){if(e!==null&&typeof e!="function"){var t=String(e);JN.has(t)||(JN.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Yf(e,t,n,a){var o=e.memoizedState,l=n(a,o);if(e.mode&_n){I(!0);try{l=n(a,o)}finally{I(!1)}}l===void 0&&(t=Ee(t)||"Component",YN.has(t)||(YN.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),o=l==null?o:Ge({},o,l),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}function Fg(e,t,n,a,o,l,r){var i=e.stateNode;if(typeof i.shouldComponentUpdate=="function"){if(n=i.shouldComponentUpdate(a,l,r),e.mode&_n){I(!0);try{n=i.shouldComponentUpdate(a,l,r)}finally{I(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Ee(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ti(n,a)||!ti(o,l):!0}function eb(e,t,n,a){var o=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==o&&(e=ee(e)||"Component",$N.has(e)||($N.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),$p.enqueueReplaceState(t,t.state,null))}function Dr(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Ge({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function tb(e){bp(e),console.warn(`%s
121
+
122
+ %s
123
+ `,Is?"An error occurred in the <"+Is+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
124
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function nb(e){var t=Is?"The above error occurred in the <"+Is+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Bp||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var a=e.environmentName;e=[`%o
125
+
126
+ %s
127
+
128
+ %s
129
+ `,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,T0+" "+e[0],R0,jd+a+jd,j0):e.splice(0,0,T0,R0,jd+a+jd,j0),e.unshift(console),a=IE.apply(console.error,e),a()}else console.error(`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,n)}function ab(e){bp(e)}function cu(e,t){try{Is=t.source?ee(t.source):null,Bp=null;var n=t.value;if(j.actQueue!==null)j.thrownErrors.push(n);else{var a=e.onUncaughtError;a(n,{componentStack:t.stack})}}catch(o){setTimeout(function(){throw o})}}function ob(e,t,n){try{Is=n.source?ee(n.source):null,Bp=ee(t);var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Xf(e,t,n){return n=Tl(n),n.tag=Vp,n.payload={element:null},n.callback=function(){F(t.source,cu,e,t)},n}function Qf(e){return e=Tl(e),e.tag=Vp,e}function Zf(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var l=a.value;e.payload=function(){return o(l)},e.callback=function(){Wh(n),F(a.source,ob,t,n,a)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Wh(n),F(a.source,ob,t,n,a),typeof o!="function"&&(ar===null?ar=new Set([this]):ar.add(this)),yE(this,a),typeof o=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",ee(n)||"Unknown")})}function Yw(e,t,n,a,o){if(n.flags|=32768,Go&&Ni(e,o),a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&os(t,n,o,!0),Ye&&(Yo=!0),n=Ea.current,n!==null){switch(n.tag){case 31:case 13:return qa===null?vu():n.alternate===null&&_t===wl&&(_t=dd),n.flags&=-257,n.flags|=65536,n.lanes=o,a===od?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),hm(e,a,o)),!1;case 22:return n.flags|=65536,a===od?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),hm(e,a,o)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return hm(e,a,o),vu(),!1}if(Ye)return Yo=!0,t=Ea.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==Ep&&ni(pa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:a}),n))):(a!==Ep&&ni(pa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:a}),n)),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=pa(a,n),o=Xf(e.stateNode,a,o),Jc(e,o),_t!==Fl&&(_t=Br)),!1;var l=pa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:a}),n);if(fc===null?fc=[l]:fc.push(l),_t!==Fl&&(_t=Br),t===null)return!0;a=pa(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Xf(n.stateNode,a,e),Jc(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ar===null||!ar.has(l))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Qf(o),Zf(o,e,n,a),Jc(n,o),!1}n=n.return}while(n!==null);return!1}function Sn(e,t,n,a){t.child=e===null?AN(t,null,n,a):Lr(t,e.child,n,a)}function lb(e,t,n,a,o){n=n.render;var l=t.ref;if("ref"in a){var r={};for(var i in a)i!=="ref"&&(r[i]=a[i])}else r=a;return Nr(t),a=yf(e,t,n,r,l,o),i=wf(),e!==null&&!on?(xf(e,t,o),ol(e,t,o)):(Ye&&i&&tf(t),t.flags|=1,Sn(e,t,a,o),t.child)}function rb(e,t,n,a,o){if(e===null){var l=n.type;return typeof l=="function"&&!Wd(l)&&l.defaultProps===void 0&&n.compare===null?(n=gr(l),t.tag=15,t.type=n,Kf(t,l),sb(e,t,n,a,o)):(e=Pd(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!nm(e,o)){var r=l.memoizedProps;if(n=n.compare,n=n!==null?n:ti,n(r,a)&&e.ref===t.ref)return ol(e,t,o)}return t.flags|=1,e=el(l,a),e.ref=t.ref,e.return=t,t.child=e}function sb(e,t,n,a,o){if(e!==null){var l=e.memoizedProps;if(ti(l,a)&&e.ref===t.ref&&t.type===e.type)if(on=!1,t.pendingProps=a=l,nm(e,o))(e.flags&131072)!==0&&(on=!0);else return t.lanes=e.lanes,ol(e,t,o)}return Jf(e,t,n,a,o)}function ib(e,t,n,a){var o=a.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Bi,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(l=l!==null?l.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~l}else a=0,t.child=null;return cb(e,t,l,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qc(t,l!==null?l.cachePool:null),l!==null?Sg(t,l):hf(t),Dg(t);else return a=t.lanes=536870912,cb(e,t,l!==null?l.baseLanes|n:n,n,a)}else l!==null?(qc(t,l.cachePool),Sg(t,l),Vl(t),t.memoizedState=null):(e!==null&&qc(t,null),hf(t),Vl(t));return Sn(e,t,o,n),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Bi,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cb(e,t,n,a,o){var l=df();return l=l===null?null:{parent:tn._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&qc(t,null),hf(t),Dg(t),e!==null&&os(e,t,a,!0),t.childLanes=o,null}function uu(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
135
+ - <Activity %s>
136
+ + <Activity %s>`,n===!0?"hidden":n===!1?"hidden={false}":"hidden={...}",n?'mode="hidden"':'mode="visible"'),t=fu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ub(e,t,n){return Lr(t,e.child,null,n),e=uu(t,t.pendingProps),e.flags|=2,ba(t),t.memoizedState=null,e}function Xw(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ye){if(a.mode==="hidden")return e=uu(t,a),t.lanes=536870912,mi(null,e);if(bf(t),(e=St)?(n=_v(e,Ba),n=n!==null&&n.data===Qr?n:null,n!==null&&(a={dehydrated:n,treeContext:ng(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=eg(n),a.return=t,t.child=a,kn=t,St=null)):n=null,n===null)throw zc(t,e),Ul(t);return t.lanes=536870912,null}return uu(t,a)}var l=e.memoizedState;if(l!==null){var r=l.dehydrated;if(bf(t),o)if(t.flags&256)t.flags&=-257,t=ub(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(og(),(n&536870912)!==0&&bu(t),on||os(e,t,n,!1),o=(n&e.childLanes)!==0,on||o){if(a=bt,a!==null&&(r=cn(a,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,jn(e,r),Lt(a,e,r),Gp;vu(),t=ub(e,t,n)}else e=l.treeContext,St=ya(r.nextSibling),kn=t,Ye=!0,Ql=null,Yo=!1,xa=null,Ba=!1,e!==null&&ag(t,e),t=uu(t,a),t.flags|=4096;return t}return l=e.child,a={mode:a.mode,children:a.children},(n&536870912)!==0&&(n&e.lanes)!==0&&bu(t),e=el(l,a),e.ref=t.ref,t.child=e,e.return=t,e}function du(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Jf(e,t,n,a,o){if(n.prototype&&typeof n.prototype.render=="function"){var l=Ee(n)||"Unknown";KN[l]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",l,l),KN[l]=!0)}return t.mode&_n&&io.recordLegacyContextWarning(t,null),e===null&&(Kf(t,t.type),n.contextTypes&&(l=Ee(n)||"Unknown",PN[l]||(PN[l]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",l)))),Nr(t),n=yf(e,t,n,a,void 0,o),a=wf(),e!==null&&!on?(xf(e,t,o),ol(e,t,o)):(Ye&&a&&tf(t),t.flags|=1,Sn(e,t,n,o),t.child)}function db(e,t,n,a,o,l){return Nr(t),yl=-1,lc=e!==null&&e.type!==t.type,t.updateQueue=null,n=Nf(t,a,n,o),Cg(e,t),a=wf(),e!==null&&!on?(xf(e,t,l),ol(e,t,l)):(Ye&&a&&tf(t),t.flags|=1,Sn(e,t,n,l),t.child)}function fb(e,t,n,a,o){switch(z(t)){case!1:var l=t.stateNode,r=new t.type(t.memoizedProps,l.context).state;l.updater.enqueueSetState(l,r,null);break;case!0:t.flags|=128,t.flags|=65536,l=Error("Simulated error coming from DevTools");var i=o&-o;if(t.lanes|=i,r=bt,r===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");i=Qf(i),Zf(i,r,t,pa(l,t)),Jc(t,i)}if(Nr(t),t.stateNode===null){if(r=Xl,l=n.contextType,"contextType"in n&&l!==null&&(l===void 0||l.$$typeof!==Lo)&&!ZN.has(n)&&(ZN.add(n),i=l===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof l!="object"?" However, it is set to a "+typeof l+".":l.$$typeof===qm?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(l).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Ee(n)||"Component",i)),typeof l=="object"&&l!==null&&(r=Ot(l)),l=new n(a,r),t.mode&_n){I(!0);try{l=new n(a,r)}finally{I(!1)}}if(r=t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=$p,t.stateNode=l,l._reactInternals=t,l._reactInternalInstance=LN,typeof n.getDerivedStateFromProps=="function"&&r===null&&(r=Ee(n)||"Component",BN.has(r)||(BN.add(r),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",r,l.state===null?"null":"undefined",r))),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"){var u=i=r=null;if(typeof l.componentWillMount=="function"&&l.componentWillMount.__suppressDeprecationWarning!==!0?r="componentWillMount":typeof l.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps.__suppressDeprecationWarning!==!0?i="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps=="function"&&(i="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate=="function"&&l.componentWillUpdate.__suppressDeprecationWarning!==!0?u="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate=="function"&&(u="UNSAFE_componentWillUpdate"),r!==null||i!==null||u!==null){l=Ee(n)||"Component";var f=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";qN.has(l)||(qN.add(l),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
137
+
138
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
139
+
140
+ The above lifecycles should be removed. Learn more about this warning here:
141
+ https://react.dev/link/unsafe-component-lifecycles`,l,f,r!==null?`
142
+ `+r:"",i!==null?`
143
+ `+i:"",u!==null?`
144
+ `+u:""))}}l=t.stateNode,r=Ee(n)||"Component",l.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",r):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",r)),!l.getInitialState||l.getInitialState.isReactClassApproved||l.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",r),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",r),l.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),n.childContextTypes&&!QN.has(n)&&(QN.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",r)),n.contextTypes&&!XN.has(n)&&(XN.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",r)),typeof l.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),n.prototype&&n.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Ee(n)||"A pure component"),typeof l.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof l.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof l.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof l.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r),i=l.props!==a,l.props!==void 0&&i&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r),l.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof l.getSnapshotBeforeUpdate!="function"||typeof l.componentDidUpdate=="function"||GN.has(n)||(GN.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Ee(n))),typeof l.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof l.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r),(i=l.state)&&(typeof i!="object"||mn(i))&&console.error("%s.state: must be set to an object or null",r),typeof l.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r),l=t.stateNode,l.props=a,l.state=t.memoizedState,l.refs={},mf(t),r=n.contextType,l.context=typeof r=="object"&&r!==null?Ot(r):Xl,l.state===a&&(r=Ee(n)||"Component",IN.has(r)||(IN.add(r),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",r))),t.mode&_n&&io.recordLegacyContextWarning(t,l),io.recordUnsafeLifecycleWarnings(t,l),l.state=t.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Yf(t,n,r,a),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(r=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),r!==l.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",ee(t)||"Component"),$p.enqueueReplaceState(l,l.state,null)),ci(t,a,l,o),ii(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&so)!==xe&&(t.flags|=134217728),l=!0}else if(e===null){l=t.stateNode;var x=t.memoizedProps;i=Dr(n,x),l.props=i;var E=l.context;u=n.contextType,r=Xl,typeof u=="object"&&u!==null&&(r=Ot(u)),f=n.getDerivedStateFromProps,u=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,u||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(x||E!==r)&&eb(t,l,a,r),Pl=!1;var g=t.memoizedState;l.state=g,ci(t,a,l,o),ii(),E=t.memoizedState,x||g!==E||Pl?(typeof f=="function"&&(Yf(t,n,f,a),E=t.memoizedState),(i=Pl||Fg(t,n,i,a,g,E,r))?(u||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&so)!==xe&&(t.flags|=134217728)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&so)!==xe&&(t.flags|=134217728),t.memoizedProps=a,t.memoizedState=E),l.props=a,l.state=E,l.context=r,l=i):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&so)!==xe&&(t.flags|=134217728),l=!1)}else{l=t.stateNode,pf(e,t),r=t.memoizedProps,u=Dr(n,r),l.props=u,f=t.pendingProps,g=l.context,E=n.contextType,i=Xl,typeof E=="object"&&E!==null&&(i=Ot(E)),x=n.getDerivedStateFromProps,(E=typeof x=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(r!==f||g!==i)&&eb(t,l,a,i),Pl=!1,g=t.memoizedState,l.state=g,ci(t,a,l,o),ii();var A=t.memoizedState;r!==f||g!==A||Pl||e!==null&&e.dependencies!==null&&Lc(e.dependencies)?(typeof x=="function"&&(Yf(t,n,x,a),A=t.memoizedState),(u=Pl||Fg(t,n,u,a,g,A,i)||e!==null&&e.dependencies!==null&&Lc(e.dependencies))?(E||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(a,A,i),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(a,A,i)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),l.props=a,l.state=A,l.context=i,l=u):(typeof l.componentDidUpdate!="function"||r===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),l=!1)}if(i=l,du(e,t),r=(t.flags&128)!==0,i||r){if(i=t.stateNode,ho(t),r&&typeof n.getDerivedStateFromError!="function")n=null,Zn=-1;else if(n=hN(i),t.mode&_n){I(!0);try{hN(i)}finally{I(!1)}}t.flags|=1,e!==null&&r?(t.child=Lr(t,e.child,null,o),t.child=Lr(t,null,n,o)):Sn(e,t,n,o),t.memoizedState=i.state,e=t.child}else e=ol(e,t,o);return o=t.stateNode,l&&o.props!==a&&(Ys||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ee(t)||"a component"),Ys=!0),e}function mb(e,t,n,a){return yr(),t.flags|=256,Sn(e,t,n,a),t.child}function Kf(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
145
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=Ee(t)||"Unknown",FN[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),FN[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=Ee(t)||"Unknown",WN[t]||(console.error("%s: Function components do not support contextType.",t),WN[t]=!0))}function Wf(e){return{baseLanes:e,cachePool:dg()}}function Pf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ia),e}function pb(e,t,n){var a,o=t.pendingProps;T(t)&&(t.flags|=128);var l=!1,r=(t.flags&128)!==0;if((a=r)||(a=e!==null&&e.memoizedState===null?!1:(Zt.current&ac)!==0),a&&(l=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ye){if(l?jl(t):Vl(t),(e=St)?(n=_v(e,Ba),n=n!==null&&n.data!==Qr?n:null,n!==null&&(a={dehydrated:n,treeContext:ng(),retryLane:536870912,hydrationErrors:null},t.memoizedState=a,a=eg(n),a.return=t,t.child=a,kn=t,St=null)):n=null,n===null)throw zc(t,e),Ul(t);return Tm(n)?t.lanes=32:t.lanes=536870912,null}var i=o.children;if(o=o.fallback,l){Vl(t);var u=t.mode;return i=fu({mode:"hidden",children:i},u),o=br(o,u,n,null),i.return=t,o.return=t,i.sibling=o,t.child=i,o=t.child,o.memoizedState=Wf(n),o.childLanes=Pf(e,a,n),t.memoizedState=qp,mi(null,o)}return jl(t),Ff(t,i)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(x!==null){if(r)t.flags&256?(jl(t),t.flags&=-257,t=em(e,t,n)):t.memoizedState!==null?(Vl(t),t.child=e.child,t.flags|=128,t=null):(Vl(t),i=o.fallback,u=t.mode,o=fu({mode:"visible",children:o.children},u),i=br(i,u,n,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,Lr(t,e.child,null,n),o=t.child,o.memoizedState=Wf(n),o.childLanes=Pf(e,a,n),t.memoizedState=qp,t=mi(null,o));else if(jl(t),og(),(n&536870912)!==0&&bu(t),Tm(x)){if(a=x.nextSibling&&x.nextSibling.dataset,a){i=a.dgst;var E=a.msg;u=a.stck;var g=a.cstck}l=E,a=i,o=u,x=g,i=l,u=x,i=Error(i||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),i.stack=o||"",i.digest=a,a=u===void 0?null:u,o={value:i,source:null,stack:a},typeof a=="string"&&xp.set(i,o),ni(o),t=em(e,t,n)}else if(on||os(e,t,n,!1),a=(n&e.childLanes)!==0,on||a){if(a=bt,a!==null&&(o=cn(a,n),o!==0&&o!==f.retryLane))throw f.retryLane=o,jn(e,o),Lt(a,e,o),Gp;Om(x)||vu(),t=em(e,t,n)}else Om(x)?(t.flags|=192,t.child=e.child,t=null):(e=f.treeContext,St=ya(x.nextSibling),kn=t,Ye=!0,Ql=null,Yo=!1,xa=null,Ba=!1,e!==null&&ag(t,e),t=Ff(t,o.children),t.flags|=4096);return t}}return l?(Vl(t),i=o.fallback,u=t.mode,g=e.child,x=g.sibling,o=el(g,{mode:"hidden",children:o.children}),o.subtreeFlags=g.subtreeFlags&65011712,x!==null?i=el(x,i):(i=br(i,u,n,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,mi(null,o),o=t.child,i=e.child.memoizedState,i===null?i=Wf(n):(u=i.cachePool,u!==null?(g=tn._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=dg(),i={baseLanes:i.baseLanes|n,cachePool:u}),o.memoizedState=i,o.childLanes=Pf(e,a,n),t.memoizedState=qp,mi(e.child,o)):(f!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&bu(t),jl(t),n=e.child,e=n.sibling,n=el(n,{mode:"visible",children:o.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function Ff(e,t){return t=fu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fu(e,t){return e=k(22,e,null,t),e.lanes=0,e}function em(e,t,n){return Lr(t,e.child,null,n),e=Ff(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hb(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),lf(e.return,t,n)}function tm(e,t,n,a,o,l){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:l}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=o,r.treeForkCount=l)}function gb(e,t,n){var a=t.pendingProps,o=a.revealOrder,l=a.tail,r=a.children,i=Zt.current;if((a=(i&ac)!==0)?(i=i&Bs|ac,t.flags|=128):i&=Bs,Ue(Zt,i,t),i=o??"null",o!=="forwards"&&o!=="unstable_legacy-backwards"&&o!=="together"&&o!=="independent"&&!e0[i])if(e0[i]=!0,o==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(o==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof o=="string")switch(o.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',o,o.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',o,o.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',o)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',o);i=l??"null",ud[i]||(l==null?(o==="forwards"||o==="backwards"||o==="unstable_legacy-backwards")&&(ud[i]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):l!=="visible"&&l!=="collapsed"&&l!=="hidden"?(ud[i]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',l)):o!=="forwards"&&o!=="backwards"&&o!=="unstable_legacy-backwards"&&(ud[i]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',l)));e:if((o==="forwards"||o==="backwards"||o==="unstable_legacy-backwards")&&r!==void 0&&r!==null&&r!==!1)if(mn(r)){for(i=0;i<r.length;i++)if(!wg(r[i],i))break e}else if(i=Rt(r),typeof i=="function"){if(i=i.call(r))for(var u=i.next(),f=0;!u.done;u=i.next()){if(!wg(u.value,f))break e;f++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',o);if(Sn(e,t,r,n),Ye?(kl(),r=Gi):r=0,!a&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hb(e,n,t);else if(e.tag===19)hb(e,n,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(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Kc(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tm(t,!1,o,n,l,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Kc(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tm(t,!0,n,null,l,r);break;case"together":tm(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ol(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Zn=-1,tr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(os(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,n=el(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=el(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nm(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Lc(e)))}function Qw(e,t,n){switch(t.tag){case 3:It(t,t.stateNode.containerInfo),Al(t,tn,e.memoizedState.cache),yr();break;case 27:case 5:ve(t);break;case 4:It(t,t.stateNode.containerInfo);break;case 10:Al(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var a=t.stateNode;a.effectDuration=-0,a.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,bf(t),null;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(jl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?pb(e,t,n):(jl(t),e=ol(e,t,n),e!==null?e.sibling:null);jl(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(os(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return gb(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ue(Zt,Zt.current,t),a)break;return null;case 22:return t.lanes=0,ib(e,t,n,t.pendingProps);case 24:Al(t,tn,e.memoizedState.cache)}return ol(e,t,n)}function am(e,t,n){if(t._debugNeedsRemount&&e!==null){n=Pd(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var a=t.return;if(a===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===a.child)a.child=n;else{var o=a.child;if(o===null)throw Error("Expected parent to have a child.");for(;o.sibling!==t;)if(o=o.sibling,o===null)throw Error("Expected to find the previous sibling.");o.sibling=n}return t=a.deletions,t===null?(a.deletions=[e],a.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)on=!0;else{if(!nm(e,n)&&(t.flags&128)===0)return on=!1,Qw(e,t,n);on=(e.flags&131072)!==0}else on=!1,(a=Ye)&&(kl(),a=(t.flags&1048576)!==0),a&&(a=t.index,kl(),tg(t,Gi,a));switch(t.lanes=0,t.tag){case 16:e:if(a=t.pendingProps,e=Ol(t.elementType),t.type=e,typeof e=="function")Wd(e)?(a=Dr(e,a),t.tag=1,t.type=e=gr(e),t=fb(null,t,e,a,n)):(t.tag=0,Kf(t,e),t.type=e=gr(e),t=Jf(null,t,e,a,n));else{if(e!=null){if(o=e.$$typeof,o===Ai){t.tag=11,t.type=e=Kd(e),t=lb(null,t,e,a,n);break e}else if(o===Ru){t.tag=14,t=rb(null,t,e,a,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===Na&&(t=" Did you wrap a component in React.lazy() more than once?"),n=Ee(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+n+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return Jf(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Dr(a,t.pendingProps),fb(e,t,a,o,n);case 3:e:{if(It(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");a=t.pendingProps;var l=t.memoizedState;o=l.element,pf(e,t),ci(t,a,null,n);var r=t.memoizedState;if(a=r.cache,Al(t,tn,a),a!==l.cache&&rf(t,[tn],n,!0),ii(),a=r.element,l.isDehydrated)if(l={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=mb(e,t,a,n);break e}else if(a!==o){o=pa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),ni(o),t=mb(e,t,a,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,St=ya(e.firstChild),kn=t,Ye=!0,Ql=null,Yo=!1,xa=null,Ba=!0,n=AN(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(yr(),a===o){t=ol(e,t,n);break e}Sn(e,t,a,n)}t=t.child}return t;case 26:return du(e,t),e===null?(n=Bv(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ye||(n=t.type,e=t.pendingProps,a=lt($l.current),a=xu(a).createElement(n),a[Cn]=t,a[Yn]=e,Dn(a,n,e),J(a),t.stateNode=a):t.memoizedState=Bv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Ye&&(a=lt($l.current),o=ue(),a=t.stateNode=Lv(t.type,t.pendingProps,a,o,!1),Yo||(o=kv(a,t.type,t.pendingProps,o),o!==null&&(vr(t,0).serverProps=o)),kn=t,Ba=!0,o=St,Hl(t.type)?(fh=o,St=ya(a.firstChild)):St=o),Sn(e,t,t.pendingProps.children,n),du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ye&&(l=ue(),a=eo(t.type,l.ancestorInfo),o=St,(r=!o)||(r=_1(o,t.type,t.pendingProps,Ba),r!==null?(t.stateNode=r,Yo||(l=kv(r,t.type,t.pendingProps,l),l!==null&&(vr(t,0).serverProps=l)),kn=t,St=ya(r.firstChild),Ba=!1,l=!0):l=!1,r=!l),r&&(a&&zc(t,o),Ul(t))),ve(t),o=t.type,l=t.pendingProps,r=e!==null?e.memoizedProps:null,a=l.children,Um(o,l)?a=null:r!==null&&Um(o,r)&&(t.flags|=32),t.memoizedState!==null&&(o=yf(e,t,Lw,null,null,n),wc._currentValue=o),du(e,t),Sn(e,t,a,n),t.child;case 6:return e===null&&Ye&&(n=t.pendingProps,e=ue(),a=e.ancestorInfo.current,n=a!=null?to(n,a.tag,e.ancestorInfo.implicitRootScope):!0,e=St,(a=!e)||(a=M1(e,t.pendingProps,Ba),a!==null?(t.stateNode=a,kn=t,St=null,a=!0):a=!1,a=!a),a&&(n&&zc(t,e),Ul(t))),null;case 13:return pb(e,t,n);case 4:return It(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Lr(t,null,a,n):Sn(e,t,a,n),t.child;case 11:return lb(e,t,t.type,t.pendingProps,n);case 7:return Sn(e,t,t.pendingProps,n),t.child;case 8:return Sn(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,a=t.stateNode,a.effectDuration=-0,a.passiveEffectDuration=-0,Sn(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.type,o=t.pendingProps,l=o.value,"value"in o||t0||(t0=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Al(t,a,l),Sn(e,t,o.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,typeof a!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Nr(t),o=Ot(o),a=Op(a,o,void 0),t.flags|=1,Sn(e,t,a,n),t.child;case 14:return rb(e,t,t.type,t.pendingProps,n);case 15:return sb(e,t,t.type,t.pendingProps,n);case 19:return gb(e,t,n);case 31:return Xw(e,t,n);case 22:return ib(e,t,n,t.pendingProps);case 24:return Nr(t),a=Ot(tn),e===null?(o=df(),o===null&&(o=bt,l=sf(),o.pooledCache=l,wr(l),l!==null&&(o.pooledCacheLanes|=n),o=l),t.memoizedState={parent:a,cache:o},mf(t),Al(t,tn,o)):((e.lanes&n)!==0&&(pf(e,t),ci(t,null,null,n),ii()),o=e.memoizedState,l=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Al(t,tn,a)):(a=l.cache,Al(t,tn,a),a!==o.cache&&rf(t,[tn],n,!0))),Sn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ll(e){e.flags|=4}function om(e,t,n,a,o){if((t=(e.mode&pE)!==xe)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Jb())e.flags|=8192;else throw Hr=od,Rp}else e.flags&=-16777217}function bb(e,t){if(t.type!=="stylesheet"||(t.state.loading&Xa)!==Kr)e.flags&=-16777217;else if(e.flags|=16777216,!Xv(t))if(Jb())e.flags|=8192;else throw Hr=od,Rp}function mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oa():536870912,e.lanes|=t,Ir|=t)}function pi(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)if((e.mode&_e)!==xe){for(var o=e.selfBaseDuration,l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,o+=l.treeBaseDuration,l=l.sibling;e.treeBaseDuration=o}else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else if((e.mode&_e)!==xe){o=e.actualDuration,l=e.selfBaseDuration;for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,o+=r.actualDuration,l+=r.treeBaseDuration,r=r.sibling;e.actualDuration=o,e.treeBaseDuration=l}else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Zw(e,t,n){var a=t.pendingProps;switch(nf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return yt(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),nl(tn,t),Q(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(as(t)?(of(),ll(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,af())),yt(t),null;case 26:var o=t.type,l=t.memoizedState;return e===null?(ll(t),l!==null?(yt(t),bb(t,l)):(yt(t),om(t,o,null,a,n))):l?l!==e.memoizedState?(ll(t),yt(t),bb(t,l)):(yt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),yt(t),om(t,o,e,a,n)),null;case 27:if(qe(t),n=lt($l.current),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yt(t),null}e=ue(),as(t)?lg(t):(e=Lv(o,a,n,e,!0),t.stateNode=e,ll(t))}return yt(t),null;case 5:if(qe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return yt(t),null}var r=ue();if(as(t))lg(t);else{switch(l=lt($l.current),eo(o,r.ancestorInfo),r=r.context,l=xu(l),r){case Fs:l=l.createElementNS(Es,o);break;case Od:l=l.createElementNS(Lu,o);break;default:switch(o){case"svg":l=l.createElementNS(Es,o);break;case"math":l=l.createElementNS(Lu,o);break;case"script":l=l.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?l.multiple=!0:a.size&&(l.size=a.size);break;default:l=typeof a.is=="string"?l.createElement(o,{is:a.is}):l.createElement(o),o.indexOf("-")===-1&&(o!==o.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",o),Object.prototype.toString.call(l)!=="[object HTMLUnknownElement]"||ro.call(D0,o)||(D0[o]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",o)))}}l[Cn]=t,l[Yn]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)l.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=l;e:switch(Dn(l,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return yt(t),om(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=lt($l.current),n=ue(),as(t)){if(e=t.stateNode,n=t.memoizedProps,o=!Yo,a=null,l=kn,l!==null)switch(l.tag){case 3:o&&(o=zv(e,n,a),o!==null&&(vr(t,0).serverProps=o));break;case 27:case 5:a=l.memoizedProps,o&&(o=zv(e,n,a),o!==null&&(vr(t,0).serverProps=o))}e[Cn]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||xv(e.nodeValue,n)),e||Ul(t,!0)}else o=n.ancestorInfo.current,o!=null&&to(a,o.tag,n.ancestorInfo.implicitRootScope),e=xu(e).createTextNode(a),e[Cn]=t,t.stateNode=e}return yt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=as(t),n!==null){if(e===null){if(!a)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Cn]=t,yt(t),(t.mode&_e)!==xe&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else of(),yr(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,yt(t),(t.mode&_e)!==xe&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=af(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ba(t),t):(ba(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return yt(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=a,l=as(t),o!==null&&o.dehydrated!==null){if(e===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l[Cn]=t,yt(t),(t.mode&_e)!==xe&&o!==null&&(o=t.child,o!==null&&(t.treeBaseDuration-=o.treeBaseDuration))}else of(),yr(),(t.flags&128)===0&&(o=t.memoizedState=null),t.flags|=4,yt(t),(t.mode&_e)!==xe&&o!==null&&(o=t.child,o!==null&&(t.treeBaseDuration-=o.treeBaseDuration));o=!1}else o=af(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ba(t),t):(ba(t),null)}return ba(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&_e)!==xe&&li(t),t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),mu(t,t.updateQueue),yt(t),(t.mode&_e)!==xe&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return Q(t),e===null&&wm(t.stateNode.containerInfo),yt(t),null;case 10:return nl(t.type,t),yt(t),null;case 19:if(be(Zt,t),a=t.memoizedState,a===null)return yt(t),null;if(o=(t.flags&128)!==0,l=a.rendering,l===null)if(o)pi(a,!1);else{if(_t!==wl||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Kc(e),l!==null){for(t.flags|=128,pi(a,!1),e=l.updateQueue,t.updateQueue=e,mu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Fh(n,e),n=n.sibling;return Ue(Zt,Zt.current&Bs|ac,t),Ye&&tl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&bn()>bd&&(t.flags|=128,o=!0,pi(a,!1),t.lanes=4194304)}else{if(!o)if(e=Kc(l),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,mu(t,e),pi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!l.alternate&&!Ye)return yt(t),null}else 2*bn()-a.renderingStartTime>bd&&n!==536870912&&(t.flags|=128,o=!0,pi(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(e=a.last,e!==null?e.sibling=l:t.child=l,a.last=l)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=bn(),e.sibling=null,n=Zt.current,n=o?n&Bs|ac:n&Bs,Ue(Zt,n,t),Ye&&tl(t,a.treeForkCount),e):(yt(t),null);case 22:case 23:return ba(t),gf(t),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),n=t.updateQueue,n!==null&&mu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&be(Mr,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),nl(tn,t),yt(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jw(e,t){switch(nf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&_e)!==xe&&li(t),t):null;case 3:return nl(tn,t),Q(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qe(t),null;case 31:if(t.memoizedState!==null){if(ba(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&_e)!==xe&&li(t),t):null;case 13:if(ba(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&_e)!==xe&&li(t),t):null;case 19:return be(Zt,t),null;case 4:return Q(t),null;case 10:return nl(t.type,t),null;case 22:case 23:return ba(t),gf(t),e!==null&&be(Mr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&_e)!==xe&&li(t),t):null;case 24:return nl(tn,t),null;case 25:return null;default:return null}}function vb(e,t){switch(nf(t),t.tag){case 3:nl(tn,t),Q(t);break;case 26:case 27:case 5:qe(t);break;case 4:Q(t);break;case 31:t.memoizedState!==null&&ba(t);break;case 13:ba(t);break;case 19:be(Zt,t);break;case 10:nl(t.type,t);break;case 22:case 23:ba(t),gf(t),e!==null&&be(Mr,t);break;case 24:nl(tn,t)}}function Ro(e){return(e.mode&_e)!==xe}function yb(e,t){Ro(e)?(To(),hi(t,e),Oo()):hi(t,e)}function lm(e,t,n){Ro(e)?(To(),cs(n,e,t),Oo()):cs(n,e,t)}function hi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e&&(a=void 0,(e&Jn)!==rd&&(Ks=!0),a=F(t,NE,n),(e&Jn)!==rd&&(Ks=!1),a!==void 0&&typeof a!="function")){var l=void 0;l=(n.tag&Sa)!==0?"useLayoutEffect":(n.tag&Jn)!==0?"useInsertionEffect":"useEffect";var r=void 0;r=a===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof a.then=="function"?`
146
+
147
+ It looks like you wrote `+l+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
148
+
149
+ `+l+`(() => {
150
+ async function fetchData() {
151
+ // You can await here
152
+ const response = await MyAPI.getData(someId);
153
+ // ...
154
+ }
155
+ fetchData();
156
+ }, [someId]); // Or [] if effect doesn't need props or state
157
+
158
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+a,F(t,function(i,u){console.error("%s must not return anything besides a function, which is used for clean-up.%s",i,u)},l,r)}n=n.next}while(n!==o)}}catch(i){st(t,t.return,i)}}function cs(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e){var r=a.inst,i=r.destroy;i!==void 0&&(r.destroy=void 0,(e&Jn)!==rd&&(Ks=!0),o=t,F(o,wE,o,n,i),(e&Jn)!==rd&&(Ks=!1))}a=a.next}while(a!==l)}}catch(u){st(t,t.return,u)}}function Nb(e,t){Ro(e)?(To(),hi(t,e),Oo()):hi(t,e)}function rm(e,t,n){Ro(e)?(To(),cs(n,e,t),Oo()):cs(n,e,t)}function wb(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ys||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ee(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ee(e)||"instance"));try{F(e,Eg,t,n)}catch(a){st(e,e.return,a)}}}function Kw(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Ww(e,t){var n=t.memoizedProps,a=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ys||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ee(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ee(e)||"instance"));try{var o=Dr(e.type,n),l=F(e,Kw,t,o,a);n=n0,l!==void 0||n.has(e.type)||(n.add(e.type),F(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",ee(e))})),t.__reactInternalSnapshotBeforeUpdate=l}catch(r){st(e,e.return,r)}}function xb(e,t,n){n.props=Dr(e.type,e.memoizedProps),n.state=e.memoizedState,Ro(e)?(To(),F(e,wN,e,t,n),Oo()):F(e,wN,e,t,n)}function Pw(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(Ro(e))try{To(),e.refCleanup=t(n)}finally{Oo()}else e.refCleanup=t(n);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",ee(e)),t.current=n}}function gi(e,t){try{F(e,Pw,e)}catch(n){st(e,t,n)}}function jo(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{if(Ro(e))try{To(),F(e,a)}finally{Oo(e)}else F(e,a)}catch(o){st(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Ro(e))try{To(),F(e,n,null)}finally{Oo(e)}else F(e,n,null)}catch(o){st(e,t,o)}else n.current=null}function Eb(e,t,n,a){var o=e.memoizedProps,l=o.id,r=o.onCommit;o=o.onRender,t=t===null?"mount":"update",ed&&(t="nested-update"),typeof o=="function"&&o(l,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof r=="function"&&r(l,t,a,n)}function Fw(e,t,n,a){var o=e.memoizedProps;e=o.id,o=o.onPostCommit,t=t===null?"mount":"update",ed&&(t="nested-update"),typeof o=="function"&&o(e,t,a,n)}function Sb(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{F(e,E1,a,t,n,e)}catch(o){st(e,e.return,o)}}function sm(e,t,n){try{F(e,D1,e.stateNode,e.type,n,t,e)}catch(a){st(e,e.return,a)}}function Db(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hl(e.type)||e.tag===4}function im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Db(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&&Hl(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 cm(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(Rv(n),(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t)):(Rv(n),t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xt));else if(a!==4&&(a===27&&Hl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(cm(e,t,n),e=e.sibling;e!==null;)cm(e,t,n),e=e.sibling}function pu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Hl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(pu(e,t,n),e=e.sibling;e!==null;)pu(e,t,n),e=e.sibling}function e1(e){for(var t,n=e.return;n!==null;){if(Db(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=im(e),pu(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Tv(n),t.flags&=-33),t=im(e),pu(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=im(e),cm(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Cb(e){var t=e.stateNode,n=e.memoizedProps;try{F(e,B1,e.type,n,t,e)}catch(a){st(e,e.return,a)}}function kb(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function t1(e,t){if(e=e.containerInfo,ch=Vd,e=qh(e),Id(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var r=0,i=-1,u=-1,f=0,x=0,E=e,g=null;t:for(;;){for(var A;E!==n||o!==0&&E.nodeType!==3||(i=r+o),E!==l||a!==0&&E.nodeType!==3||(u=r+a),E.nodeType===3&&(r+=E.nodeValue.length),(A=E.firstChild)!==null;)g=E,E=A;for(;;){if(E===e)break t;if(g===n&&++f===o&&(i=r),g===l&&++x===a&&(u=r),(A=E.nextSibling)!==null)break;E=g,g=E.parentNode}E=A}n=i===-1||u===-1?null:{start:i,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(uh={focusedElem:e,selectionRange:n},Vd=!1,yn=t;yn!==null;)if(t=yn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yn=e;else for(;yn!==null;){switch(e=t=yn,n=e.alternate,o=e.flags,e.tag){case 0:if((o&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:(o&1024)!==0&&n!==null&&Ww(e,n);break;case 3:if((o&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)Am(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Am(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,yn=e;break}yn=t.return}}function Ub(e,t,n){var a=ha(),o=Co(),l=Uo(),r=Ao(),i=n.flags;switch(n.tag){case 0:case 11:case 15:Vo(e,n),i&4&&yb(n,Sa|Ia);break;case 1:if(Vo(e,n),i&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||Ys||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ee(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ee(n)||"instance")),Ro(n)?(To(),F(n,Tp,n,e),Oo()):F(n,Tp,n,e);else{var u=Dr(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||Ys||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",ee(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",ee(n)||"instance")),Ro(n)?(To(),F(n,vN,n,e,u,t,e.__reactInternalSnapshotBeforeUpdate),Oo()):F(n,vN,n,e,u,t,e.__reactInternalSnapshotBeforeUpdate)}i&64&&wb(n),i&512&&gi(n,n.return);break;case 3:if(t=al(),Vo(e,n),i&64&&(i=n.updateQueue,i!==null)){if(u=null,n.child!==null)switch(n.child.tag){case 27:case 5:u=n.child.stateNode;break;case 1:u=n.child.stateNode}try{F(n,Eg,i,u)}catch(x){st(n,n.return,x)}}e.effectDuration+=Bc(t);break;case 27:t===null&&i&4&&Cb(n);case 26:case 5:if(Vo(e,n),t===null){if(i&4)Sb(n);else if(i&64){e=n.type,t=n.memoizedProps,u=n.stateNode;try{F(n,S1,u,e,t,n)}catch(x){st(n,n.return,x)}}}i&512&&gi(n,n.return);break;case 12:if(i&4){i=al(),Vo(e,n),e=n.stateNode,e.effectDuration+=oi(i);try{F(n,Eb,n,t,Zl,e.effectDuration)}catch(x){st(n,n.return,x)}}else Vo(e,n);break;case 31:Vo(e,n),i&4&&Tb(e,n);break;case 13:Vo(e,n),i&4&&Rb(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=u1.bind(null,n),z1(e,i))));break;case 22:if(i=n.memoizedState!==null||Nl,!i){t=t!==null&&t.memoizedState!==null||ln,u=Nl;var f=ln;Nl=i,(ln=t)&&!f?(_o(e,n,(n.subtreeFlags&8772)!==0),(n.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Tc(n,ge,we)):Vo(e,n),Nl=u,ln=f}break;case 30:break;default:Vo(e,n)}(n.mode&_e)!==xe&&0<=ge&&0<=we&&(($t||.05<Vt)&&So(n,ge,we,Vt,Tt),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<we-ge&&(kb(n.return.alternate,n.return)||Eo(n,ge,we,"Mount"))),ga(a),ko(o),Tt=l,$t=r}function Ab(e){var t=e.alternate;t!==null&&(e.alternate=null,Ab(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&S(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rl(e,t,n){for(n=n.child;n!==null;)Ob(e,t,n),n=n.sibling}function Ob(e,t,n){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(ws,n)}catch(f){Bo||(Bo=!0,console.error("React instrumentation encountered an error: %o",f))}var a=ha(),o=Co(),l=Uo(),r=Ao();switch(n.tag){case 26:ln||jo(n,t),rl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:ln||jo(n,t);var i=rn,u=ra;Hl(n.type)&&(rn=n.stateNode,ra=!1),rl(e,t,n),F(n,Di,n.stateNode),rn=i,ra=u;break;case 5:ln||jo(n,t);case 6:if(i=rn,u=ra,rn=null,rl(e,t,n),rn=i,ra=u,rn!==null)if(ra)try{F(n,U1,rn,n.stateNode)}catch(f){st(n,t,f)}else try{F(n,k1,rn,n.stateNode)}catch(f){st(n,t,f)}break;case 18:rn!==null&&(ra?(e=rn,jv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),bs(e)):jv(rn,n.stateNode));break;case 4:i=rn,u=ra,rn=n.stateNode.containerInfo,ra=!0,rl(e,t,n),rn=i,ra=u;break;case 0:case 11:case 14:case 15:cs(Jn,n,t),ln||lm(n,t,Sa),rl(e,t,n);break;case 1:ln||(jo(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&xb(n,t,i)),rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:ln=(i=ln)||n.memoizedState!==null,rl(e,t,n),ln=i;break;default:rl(e,t,n)}(n.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(n,ge,we,Vt,Tt),ga(a),ko(o),Tt=l,$t=r}function Tb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{F(t,L1,e)}catch(n){st(t,t.return,n)}}}function Rb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{F(t,$1,e)}catch(n){st(t,t.return,n)}}function n1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new a0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new a0),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function hu(e,t){var n=n1(e);t.forEach(function(a){if(!n.has(a)){if(n.add(a),Go)if(Xs!==null&&Qs!==null)Ni(Qs,Xs);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var o=d1.bind(null,e,a);a.then(o,o)}})}function oa(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=e,l=t,r=n[a],i=ha(),u=l;e:for(;u!==null;){switch(u.tag){case 27:if(Hl(u.type)){rn=u.stateNode,ra=!1;break e}break;case 5:rn=u.stateNode,ra=!1;break e;case 3:case 4:rn=u.stateNode.containerInfo,ra=!0;break e}u=u.return}if(rn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Ob(o,l,r),rn=null,ra=!1,(r.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Eo(r,ge,we,"Unmount"),ga(i),o=r,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jb(t,e),t=t.sibling}function jb(e,t){var n=ha(),a=Co(),o=Uo(),l=Ao(),r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:oa(t,e),la(e),i&4&&(cs(Jn|Ia,e,e.return),hi(Jn|Ia,e),lm(e,e.return,Sa|Ia));break;case 1:if(oa(t,e),la(e),i&512&&(ln||r===null||jo(r,r.return)),i&64&&Nl&&(i=e.updateQueue,i!==null&&(r=i.callbacks,r!==null))){var u=i.shared.hiddenCallbacks;i.shared.hiddenCallbacks=u===null?r:u.concat(r)}break;case 26:if(u=uo,oa(t,e),la(e),i&512&&(ln||r===null||jo(r,r.return)),i&4){var f=r!==null?r.memoizedState:null;if(i=e.memoizedState,r===null)if(i===null)if(e.stateNode===null){e:{i=e.type,r=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":f=u.getElementsByTagName("title")[0],(!f||f[Ri]||f[Cn]||f.namespaceURI===Es||f.hasAttribute("itemprop"))&&(f=u.createElement(i),u.head.insertBefore(f,u.querySelector("head > title"))),Dn(f,i,r),f[Cn]=e,J(f),i=f;break e;case"link":var x=Iv("link","href",u).get(i+(r.href||""));if(x){for(var E=0;E<x.length;E++)if(f=x[E],f.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&f.getAttribute("rel")===(r.rel==null?null:r.rel)&&f.getAttribute("title")===(r.title==null?null:r.title)&&f.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(E,1);break t}}f=u.createElement(i),Dn(f,i,r),u.head.appendChild(f);break;case"meta":if(x=Iv("meta","content",u).get(i+(r.content||""))){for(E=0;E<x.length;E++)if(f=x[E],Oe(r.content,"content"),f.getAttribute("content")===(r.content==null?null:""+r.content)&&f.getAttribute("name")===(r.name==null?null:r.name)&&f.getAttribute("property")===(r.property==null?null:r.property)&&f.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&f.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(E,1);break t}}f=u.createElement(i),Dn(f,i,r),u.head.appendChild(f);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+i+'". This is a bug in React.')}f[Cn]=e,J(f),i=f}e.stateNode=i}else Yv(u,e.type,e.stateNode);else e.stateNode=qv(u,i,e.memoizedProps);else f!==i?(f===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):f.count--,i===null?Yv(u,e.type,e.stateNode):qv(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&sm(e,e.memoizedProps,r.memoizedProps)}break;case 27:oa(t,e),la(e),i&512&&(ln||r===null||jo(r,r.return)),r!==null&&i&4&&sm(e,e.memoizedProps,r.memoizedProps);break;case 5:if(oa(t,e),la(e),i&512&&(ln||r===null||jo(r,r.return)),e.flags&32){u=e.stateNode;try{F(e,Tv,u)}catch(te){st(e,e.return,te)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,sm(e,u,r!==null?r.memoizedProps:u)),i&1024&&(Ip=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(oa(t,e),la(e),i&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");i=e.memoizedProps,r=r!==null?r.memoizedProps:i,u=e.stateNode;try{F(e,C1,u,r,i)}catch(te){st(e,e.return,te)}}break;case 3:if(u=al(),Td=null,f=uo,uo=Eu(t.containerInfo),oa(t,e),uo=f,la(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{F(e,H1,t.containerInfo)}catch(te){st(e,e.return,te)}Ip&&(Ip=!1,Vb(e)),t.effectDuration+=Bc(u);break;case 4:i=uo,uo=Eu(e.stateNode.containerInfo),oa(t,e),la(e),uo=i;break;case 12:i=al(),oa(t,e),la(e),e.stateNode.effectDuration+=oi(i);break;case 31:oa(t,e),la(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hu(e,i)));break;case 13:oa(t,e),la(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(gd=bn()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hu(e,i)));break;case 22:u=e.memoizedState!==null;var g=r!==null&&r.memoizedState!==null,A=Nl,Z=ln;if(Nl=A||u,ln=Z||g,oa(t,e),ln=Z,Nl=A,g&&!u&&!A&&!Z&&(e.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Tc(e,ge,we),la(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&~Bi:t._visibility|Bi,!u||r===null||g||Nl||ln||(Cr(e),(e.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Eo(e,ge,we,"Disconnect")),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){g=r=t;try{f=g.stateNode,u?F(g,O1,f):F(g,j1,g.stateNode,g.memoizedProps)}catch(te){st(g,g.return,te)}}}else if(t.tag===6){if(r===null){g=t;try{x=g.stateNode,u?F(g,T1,x):F(g,V1,x,g.memoizedProps)}catch(te){st(g,g.return,te)}}}else if(t.tag===18){if(r===null){g=t;try{E=g.stateNode,u?F(g,A1,E):F(g,R1,g.stateNode)}catch(te){st(g,g.return,te)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(r=i.retryQueue,r!==null&&(i.retryQueue=null,hu(e,r))));break;case 19:oa(t,e),la(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,hu(e,i)));break;case 30:break;case 21:break;default:oa(t,e),la(e)}(e.mode&_e)!==xe&&0<=ge&&0<=we&&(($t||.05<Vt)&&So(e,ge,we,Vt,Tt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<we-ge&&(kb(e.return.alternate,e.return)||Eo(e,ge,we,"Mount"))),ga(n),ko(a),Tt=o,$t=l}function la(e){var t=e.flags;if(t&2){try{F(e,e1,e)}catch(n){st(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Vo(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ub(e,t.alternate,t),t=t.sibling}function _b(e){var t=ha(),n=Co(),a=Uo(),o=Ao();switch(e.tag){case 0:case 11:case 14:case 15:lm(e,e.return,Sa),Cr(e);break;case 1:jo(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&xb(e,e.return,l),Cr(e);break;case 27:F(e,Di,e.stateNode);case 26:case 5:jo(e,e.return),Cr(e);break;case 22:e.memoizedState===null&&Cr(e);break;case 30:Cr(e);break;default:Cr(e)}(e.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(e,ge,we,Vt,Tt),ga(t),ko(n),Tt=a,$t=o}function Cr(e){for(e=e.child;e!==null;)_b(e),e=e.sibling}function Mb(e,t,n,a){var o=ha(),l=Co(),r=Uo(),i=Ao(),u=n.flags;switch(n.tag){case 0:case 11:case 15:_o(e,n,a),yb(n,Sa);break;case 1:if(_o(e,n,a),t=n.stateNode,typeof t.componentDidMount=="function"&&F(n,Tp,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{F(n,Hw,t,e)}catch(f){st(n,n.return,f)}}a&&u&64&&wb(n),gi(n,n.return);break;case 27:Cb(n);case 26:case 5:_o(e,n,a),a&&t===null&&u&4&&Sb(n),gi(n,n.return);break;case 12:if(a&&u&4){u=al(),_o(e,n,a),a=n.stateNode,a.effectDuration+=oi(u);try{F(n,Eb,n,t,Zl,a.effectDuration)}catch(f){st(n,n.return,f)}}else _o(e,n,a);break;case 31:_o(e,n,a),a&&u&4&&Tb(e,n);break;case 13:_o(e,n,a),a&&u&4&&Rb(e,n);break;case 22:n.memoizedState===null&&_o(e,n,a),gi(n,n.return);break;case 30:break;default:_o(e,n,a)}(n.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(n,ge,we,Vt,Tt),ga(o),ko(l),Tt=r,$t=i}function _o(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Mb(e,t.alternate,t,n),t=t.sibling}function um(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&wr(e),n!=null&&ai(n))}function dm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(wr(t),e!=null&&ai(e))}function lo(e,t,n,a,o){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var l=t.sibling;zb(e,t,n,a,l!==null?l.actualStartTime:o),t=l}}function zb(e,t,n,a,o){var l=ha(),r=Co(),i=Uo(),u=Ao(),f=Il,x=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&_e)!==xe&&0<t.actualStartTime&&(t.flags&1)!==0&&Rc(t,t.actualStartTime,o,pn,n),lo(e,t,n,a,o),x&2048&&Nb(t,Kn|Ia);break;case 1:(t.mode&_e)!==xe&&0<t.actualStartTime&&((t.flags&128)!==0?Xd(t,t.actualStartTime,o,[]):(t.flags&1)!==0&&Rc(t,t.actualStartTime,o,pn,n)),lo(e,t,n,a,o);break;case 3:var E=al(),g=pn;pn=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,lo(e,t,n,a,o),pn=g,x&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),a=t.memoizedState.cache,a!==n&&(wr(a),n!=null&&ai(n))),e.passiveEffectDuration+=Bc(E);break;case 12:if(x&2048){x=al(),lo(e,t,n,a,o),e=t.stateNode,e.passiveEffectDuration+=oi(x);try{F(t,Fw,t,t.alternate,Zl,e.passiveEffectDuration)}catch(A){st(t,t.return,A)}}else lo(e,t,n,a,o);break;case 31:x=pn,E=t.alternate!==null?t.alternate.memoizedState:null,g=t.memoizedState,E!==null&&g===null?(g=t.deletions,g!==null&&0<g.length&&g[0].tag===18?(pn=!1,E=E.hydrationErrors,E!==null&&Xd(t,t.actualStartTime,o,E)):pn=!0):pn=!1,lo(e,t,n,a,o),pn=x;break;case 13:x=pn,E=t.alternate!==null?t.alternate.memoizedState:null,g=t.memoizedState,E===null||E.dehydrated===null||g!==null&&g.dehydrated!==null?pn=!1:(g=t.deletions,g!==null&&0<g.length&&g[0].tag===18?(pn=!1,E=E.hydrationErrors,E!==null&&Xd(t,t.actualStartTime,o,E)):pn=!0),lo(e,t,n,a,o),pn=x;break;case 23:break;case 22:g=t.stateNode,E=t.alternate,t.memoizedState!==null?g._visibility&ul?lo(e,t,n,a,o):bi(e,t,n,a,o):g._visibility&ul?lo(e,t,n,a,o):(g._visibility|=ul,us(e,t,n,a,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),o),(t.mode&_e)===xe||pn||(e=t.actualStartTime,0<=e&&.05<o-e&&Tc(t,e,o),0<=ge&&0<=we&&.05<we-ge&&Tc(t,ge,we))),x&2048&&um(E,t);break;case 24:lo(e,t,n,a,o),x&2048&&dm(t.alternate,t);break;default:lo(e,t,n,a,o)}(t.mode&_e)!==xe&&((e=!pn&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<o-n&&Eo(t,n,o,"Mount")),0<=ge&&0<=we&&(($t||.05<Vt)&&So(t,ge,we,Vt,Tt),e&&.05<we-ge&&Eo(t,ge,we,"Mount"))),ga(l),ko(r),Tt=i,$t=u,Il=f}function us(e,t,n,a,o,l){for(o=o&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var r=t.sibling;Hb(e,t,n,a,o,r!==null?r.actualStartTime:l),t=r}}function Hb(e,t,n,a,o,l){var r=ha(),i=Co(),u=Uo(),f=Ao(),x=Il;o&&(t.mode&_e)!==xe&&0<t.actualStartTime&&(t.flags&1)!==0&&Rc(t,t.actualStartTime,l,pn,n);var E=t.flags;switch(t.tag){case 0:case 11:case 15:us(e,t,n,a,o,l),Nb(t,Kn);break;case 23:break;case 22:var g=t.stateNode;t.memoizedState!==null?g._visibility&ul?us(e,t,n,a,o,l):bi(e,t,n,a,l):(g._visibility|=ul,us(e,t,n,a,o,l)),o&&E&2048&&um(t.alternate,t);break;case 24:us(e,t,n,a,o,l),o&&E&2048&&dm(t.alternate,t);break;default:us(e,t,n,a,o,l)}(t.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(t,ge,we,Vt,Tt),ga(r),ko(i),Tt=u,$t=f,Il=x}function bi(e,t,n,a,o){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var l=t.child;l!==null;){t=l.sibling;var r=e,i=n,u=a,f=t!==null?t.actualStartTime:o,x=Il;(l.mode&_e)!==xe&&0<l.actualStartTime&&(l.flags&1)!==0&&Rc(l,l.actualStartTime,f,pn,i);var E=l.flags;switch(l.tag){case 22:bi(r,l,i,u,f),E&2048&&um(l.alternate,l);break;case 24:bi(r,l,i,u,f),E&2048&&dm(l.alternate,l);break;default:bi(r,l,i,u,f)}Il=x,l=t}}function ds(e,t,n){if(e.subtreeFlags&sc)for(e=e.child;e!==null;)Lb(e,t,n),e=e.sibling}function Lb(e,t,n){switch(e.tag){case 26:ds(e,t,n),e.flags&sc&&e.memoizedState!==null&&I1(n,uo,e.memoizedState,e.memoizedProps);break;case 5:ds(e,t,n);break;case 3:case 4:var a=uo;uo=Eu(e.stateNode.containerInfo),ds(e,t,n),uo=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=sc,sc=16777216,ds(e,t,n),sc=a):ds(e,t,n));break;default:ds(e,t,n)}}function $b(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 vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n],o=ha();yn=a,qb(a,e),(a.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Eo(a,ge,we,"Unmount"),ga(o)}$b(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bb(e),e=e.sibling}function Bb(e){var t=ha(),n=Co(),a=Uo(),o=Ao();switch(e.tag){case 0:case 11:case 15:vi(e),e.flags&2048&&rm(e,e.return,Kn|Ia);break;case 3:var l=al();vi(e),e.stateNode.passiveEffectDuration+=Bc(l);break;case 12:l=al(),vi(e),e.stateNode.passiveEffectDuration+=oi(l);break;case 22:l=e.stateNode,e.memoizedState!==null&&l._visibility&ul&&(e.return===null||e.return.tag!==13)?(l._visibility&=~ul,gu(e),(e.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Eo(e,ge,we,"Disconnect")):vi(e);break;default:vi(e)}(e.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(e,ge,we,Vt,Tt),ga(t),ko(n),$t=o,Tt=a}function gu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n],o=ha();yn=a,qb(a,e),(a.mode&_e)!==xe&&0<=ge&&0<=we&&.05<we-ge&&Eo(a,ge,we,"Unmount"),ga(o)}$b(e)}for(e=e.child;e!==null;)Gb(e),e=e.sibling}function Gb(e){var t=ha(),n=Co(),a=Uo(),o=Ao();switch(e.tag){case 0:case 11:case 15:rm(e,e.return,Kn),gu(e);break;case 22:var l=e.stateNode;l._visibility&ul&&(l._visibility&=~ul,gu(e));break;default:gu(e)}(e.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(e,ge,we,Vt,Tt),ga(t),ko(n),$t=o,Tt=a}function qb(e,t){for(;yn!==null;){var n=yn,a=n,o=t,l=ha(),r=Co(),i=Uo(),u=Ao();switch(a.tag){case 0:case 11:case 15:rm(a,o,Kn);break;case 23:case 22:a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool,o!=null&&wr(o));break;case 24:ai(a.memoizedState.cache)}if((a.mode&_e)!==xe&&0<=ge&&0<=we&&($t||.05<Vt)&&So(a,ge,we,Vt,Tt),ga(l),ko(r),$t=u,Tt=i,a=n.child,a!==null)a.return=n,yn=a;else e:for(n=e;yn!==null;){if(a=yn,l=a.sibling,r=a.return,Ab(a),a===n){yn=null;break e}if(l!==null){l.return=r,yn=l;break e}yn=r}}}function a1(){CE.forEach(function(e){return e()})}function Ib(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||j.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function va(e){if((Fe&hn)!==Nn&&ze!==0)return ze&-ze;var t=j.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),ym()):Bn()}function Yb(){if(ia===0)if((ze&536870912)===0||Ye){var e=_u;_u<<=1,(_u&3932160)===0&&(_u=262144),ia=e}else ia=536870912;return e=Ea.current,e!==null&&(e.flags|=32),ia}function Lt(e,t,n){if(Ks&&console.error("useInsertionEffect must not schedule updates."),th&&(Nd=!0),(e===bt&&(mt===Gr||mt===qr)||e.cancelPendingCommit!==null)&&(ms(e,0),Ml(e,ze,ia,!1)),On(e,n),(Fe&hn)!==Nn&&e===bt){if($o)switch(t.tag){case 0:case 11:case 15:e=$e&&ee($e)||"Unknown",v0.has(e)||(v0.add(e),t=ee(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:b0||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),b0=!0)}}else Go&&se(e,t,n),m1(t),e===bt&&((Fe&hn)===Nn&&(nr|=n),_t===Fl&&Ml(e,ze,ia,!1)),Mo(e)}function Xb(e,t,n){if((Fe&(hn|Da))!==Nn)throw Error("Should not already be working.");if(ze!==0&&$e!==null){var a=$e,o=bn();switch(uN){case uc:case Gr:var l=Qi;Et&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Suspended",l,o,Ma,void 0,"primary-light")):console.timeStamp("Suspended",l,o,Ma,void 0,"primary-light"));break;case qr:l=Qi,Et&&((a=a._debugTask)?a.run(console.timeStamp.bind(console,"Action",l,o,Ma,void 0,"primary-light")):console.timeStamp("Action",l,o,Ma,void 0,"primary-light"));break;default:Et&&(a=o-Qi,3>a||console.timeStamp("Blocked",Qi,o,Ma,void 0,5>a?"primary-light":10>a?"primary":100>a?"primary-dark":"error"))}}l=(n=!n&&(t&127)===0&&(t&e.expiredLanes)===0||An(e,t))?l1(e,t):mm(e,t,!0);var r=n;do{if(l===wl){Zs&&!n&&Ml(e,t,0,!1),t=mt,Qi=nn(),uN=t;break}else{if(a=bn(),o=e.current.alternate,r&&!o1(o)){ao(t),o=vn,l=a,!Et||l<=o||(Gt?Gt.run(console.timeStamp.bind(console,"Teared Render",o,l,Ke,Ze,"error")):console.timeStamp("Teared Render",o,l,Ke,Ze,"error")),kr(t,a),l=mm(e,t,!1),r=!1;continue}if(l===Br){if(r=t,e.errorRecoveryDisabledLanes&r)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){ao(t),Qd(vn,a,t,Gt),kr(t,a),t=i;e:{a=e,l=r,r=fc;var u=a.current.memoizedState.isDehydrated;if(u&&(ms(a,i).flags|=256),i=mm(a,i,!1),i!==Br){if(Qp&&!u){a.errorRecoveryDisabledLanes|=l,nr|=l,l=Fl;break e}a=Wn,Wn=r,a!==null&&(Wn===null?Wn=a:Wn.push.apply(Wn,a))}l=i}if(r=!1,l!==Br)continue;a=bn()}}if(l===cc){ao(t),Qd(vn,a,t,Gt),kr(t,a),ms(e,0),Ml(e,t,0,!0);break}e:{switch(n=e,l){case wl:case cc:throw Error("Root did not complete. This is a bug in React.");case Fl:if((t&4194048)!==t)break;case fd:ao(t),Xh(vn,a,t,Gt),kr(t,a),o=t,(o&127)!==0?Wu=a:(o&4194048)!==0&&(Pu=a),Ml(n,t,ia,!er);break e;case Br:Wn=null;break;case dd:case o0:break;default:throw Error("Unknown root exit status.")}if(j.actQueue!==null)pm(n,o,t,Wn,mc,hd,ia,nr,Ir,l,null,null,vn,a);else{if((t&62914560)===t&&(r=gd+s0-bn(),10<r)){if(Ml(n,t,ia,!er),Aa(n,0,!0)!==0)break e;fo=t,n.timeoutHandle=C0(Qb.bind(null,n,o,Wn,mc,hd,t,ia,nr,Ir,er,l,"Throttled",vn,a),r);break e}Qb(n,o,Wn,mc,hd,t,ia,nr,Ir,er,l,null,vn,a)}}}break}while(!0);Mo(e)}function Qb(e,t,n,a,o,l,r,i,u,f,x,E,g,A){e.timeoutHandle=Jr;var Z=t.subtreeFlags,te=null;if((Z&8192||(Z&16785408)===16785408)&&(te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:xt},Lb(t,l,te),Z=(l&62914560)===l?gd-bn():(l&4194048)===l?r0-bn():0,Z=Y1(te,Z),Z!==null)){fo=l,e.cancelPendingCommit=Z(pm.bind(null,e,t,l,n,a,o,r,i,u,x,te,te.waitingForViewTransition?"Waiting for the previous Animation":0<te.count?0<te.imgCount?"Suspended on CSS and Images":"Suspended on CSS":te.imgCount===1?"Suspended on an Image":0<te.imgCount?"Suspended on Images":null,g,A)),Ml(e,l,r,!f);return}pm(e,t,l,n,a,o,r,i,u,x,te,E,g,A)}function o1(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],l=o.getSnapshot;o=o.value;try{if(!Qn(l(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ml(e,t,n,a){t&=~Zp,t&=~nr,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var l=31-In(o),r=1<<l;a[l]=-1,o&=~r}n!==0&&Pn(e,n,t)}function fs(){return(Fe&(hn|Da))===Nn?(wi(0),!1):!0}function fm(){if($e!==null){if(mt===sa)var e=$e.return;else e=$e,Hc(),Ef(e),Ls=null,nc=0,e=$e;for(;e!==null;)vb(e.alternate,e),e=e.return;$e=null}}function kr(e,t){(e&127)!==0&&(Rr=t),(e&4194048)!==0&&(hl=t),(e&62914560)!==0&&(iN=t),(e&2080374784)!==0&&(cN=t)}function ms(e,t){Et&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Ze,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Ze,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Ze,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Ze,"primary-light"));var n=vn;if(vn=nn(),ze!==0&&0<n){if(ao(ze),_t===dd||_t===Fl)Xh(n,vn,t,Gt);else{var a=vn,o=Gt;if(Et&&!(a<=n)){var l=(t&738197653)===t?"tertiary-dark":"primary-dark",r=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";o?o.run(console.timeStamp.bind(console,r,n,a,Ke,Ze,l)):console.timeStamp(r,n,a,Ke,Ze,l)}}kr(ze,vn)}if(n=Gt,Gt=null,(t&127)!==0){Gt=Ii,o=0<=Xo&&Xo<Rr?Rr:Xo,a=0<=jr&&jr<Rr?Rr:jr,l=0<=a?a:0<=o?o:vn,0<=Wu?(ao(2),Qh(Wu,l,t,n)):Fu&127,n=o;var i=a,u=Yi,f=0<Ms,x=Jl===qi,E=Jl===Ku;if(o=vn,a=Ii,l=Cp,r=kp,Et){if(Ke="Blocking",0<n?n>o&&(n=o):n=o,0<i?i>n&&(i=n):i=n,u!==null&&n>i){var g=f?"secondary-light":"warning";a?a.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+u,i,n,Ke,Ze,g)):console.timeStamp(f?"Consecutive":"Event: "+u,i,n,Ke,Ze,g)}o>n&&(i=x?"error":(t&738197653)===t?"tertiary-light":"primary-light",x=E?"Promise Resolved":x?"Cascading Update":5<o-n?"Update Blocked":"Update",E=[],r!=null&&E.push(["Component name",r]),l!=null&&E.push(["Method name",l]),n={start:n,end:o,detail:{devtools:{properties:E,track:Ke,trackGroup:Ze,color:i}}},a?a.run(performance.measure.bind(performance,x,n)):performance.measure(x,n))}Xo=-1.1,Jl=0,kp=Cp=null,Wu=-1.1,Ms=jr,jr=-1.1,Rr=nn()}if((t&4194048)!==0&&(Gt=Xi,o=0<=gl&&gl<hl?hl:gl,n=0<=Ga&&Ga<hl?hl:Ga,a=0<=Kl&&Kl<hl?hl:Kl,l=0<=a?a:0<=n?n:vn,0<=Pu?(ao(256),Qh(Pu,l,t,Gt)):Fu&4194048,E=a,i=Vr,u=0<Wl,f=Up===Ku,l=vn,a=Xi,r=rN,x=sN,Et&&(Ke="Transition",0<n?n>l&&(n=l):n=l,0<o?o>n&&(o=n):o=n,0<E?E>o&&(E=o):E=o,o>E&&i!==null&&(g=u?"secondary-light":"warning",a?a.run(console.timeStamp.bind(console,u?"Consecutive":"Event: "+i,E,o,Ke,Ze,g)):console.timeStamp(u?"Consecutive":"Event: "+i,E,o,Ke,Ze,g)),n>o&&(a?a.run(console.timeStamp.bind(console,"Action",o,n,Ke,Ze,"primary-dark")):console.timeStamp("Action",o,n,Ke,Ze,"primary-dark")),l>n&&(o=f?"Promise Resolved":5<l-n?"Update Blocked":"Update",E=[],x!=null&&E.push(["Component name",x]),r!=null&&E.push(["Method name",r]),n={start:n,end:l,detail:{devtools:{properties:E,track:Ke,trackGroup:Ze,color:"primary-light"}}},a?a.run(performance.measure.bind(performance,o,n)):performance.measure(o,n))),Ga=gl=-1.1,Up=0,Pu=-1.1,Wl=Kl,Kl=-1.1,hl=nn()),(t&62914560)!==0&&(Fu&62914560)!==0&&(ao(4194304),Zd(iN,vn)),(t&2080374784)!==0&&(Fu&2080374784)!==0&&(ao(268435456),Zd(cN,vn)),n=e.timeoutHandle,n!==Jr&&(e.timeoutHandle=Jr,LE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fo=0,fm(),bt=e,$e=n=el(e.current,null),ze=t,mt=sa,Ca=null,er=!1,Zs=An(e,t),Qp=!1,_t=wl,Ir=ia=Zp=nr=tr=0,Wn=fc=null,hd=!1,(t&8)!==0&&(t|=t&32),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=t;0<a;)o=31-In(a),l=1<<o,t|=e[o],a&=~l;return Zo=t,jc(),e=eN(),1e3<e-Fy&&(j.recentlyCreatedOwnerStacks=0,Fy=e),io.discardPendingWarnings(),n}function Zb(e,t){De=null,j.H=rc,j.getCurrentStack=null,$o=!1,wa=null,t===Hs||t===ad?(t=hg(),mt=uc):t===Rp?(t=hg(),mt=l0):mt=t===Gp?Xp:t!==null&&typeof t=="object"&&typeof t.then=="function"?dc:md,Ca=t;var n=$e;n===null?(_t=cc,cu(e,pa(t,e.current))):n.mode&_e&&uf(n)}function Jb(){var e=Ea.current;return e===null?!0:(ze&4194048)===ze?qa===null:(ze&62914560)===ze||(ze&536870912)!==0?e===qa:!1}function Kb(){var e=j.H;return j.H=rc,e===null?rc:e}function Wb(){var e=j.A;return j.A=DE,e}function bu(e){Gt===null&&(Gt=e._debugTask==null?null:e._debugTask)}function vu(){_t=Fl,er||(ze&4194048)!==ze&&Ea.current!==null||(Zs=!0),(tr&134217727)===0&&(nr&134217727)===0||bt===null||Ml(bt,ze,ia,!1)}function mm(e,t,n){var a=Fe;Fe|=hn;var o=Kb(),l=Wb();if(bt!==e||ze!==t){if(Go){var r=e.memoizedUpdaters;0<r.size&&(Ni(e,ze),r.clear()),$n(e,t)}mc=null,ms(e,t)}t=!1,r=_t;e:do try{if(mt!==sa&&$e!==null){var i=$e,u=Ca;switch(mt){case Xp:fm(),r=fd;break e;case uc:case Gr:case qr:case dc:Ea.current===null&&(t=!0);var f=mt;if(mt=sa,Ca=null,ps(e,i,u,f),n&&Zs){r=wl;break e}break;default:f=mt,mt=sa,Ca=null,ps(e,i,u,f)}}Pb(),r=_t;break}catch(x){Zb(e,x)}while(!0);return t&&e.shellSuspendCounter++,Hc(),Fe=a,j.H=o,j.A=l,$e===null&&(bt=null,ze=0,jc()),r}function Pb(){for(;$e!==null;)Fb($e)}function l1(e,t){var n=Fe;Fe|=hn;var a=Kb(),o=Wb();if(bt!==e||ze!==t){if(Go){var l=e.memoizedUpdaters;0<l.size&&(Ni(e,ze),l.clear()),$n(e,t)}mc=null,bd=bn()+i0,ms(e,t)}else Zs=An(e,t);e:do try{if(mt!==sa&&$e!==null)t:switch(t=$e,l=Ca,mt){case md:mt=sa,Ca=null,ps(e,t,l,md);break;case Gr:case qr:if(mg(l)){mt=sa,Ca=null,ev(t);break}t=function(){mt!==Gr&&mt!==qr||bt!==e||(mt=pd),Mo(e)},l.then(t,t);break e;case uc:mt=pd;break e;case l0:mt=Yp;break e;case pd:mg(l)?(mt=sa,Ca=null,ev(t)):(mt=sa,Ca=null,ps(e,t,l,pd));break;case Yp:var r=null;switch($e.tag){case 26:r=$e.memoizedState;case 5:case 27:var i=$e;if(r?Xv(r):i.stateNode.complete){mt=sa,Ca=null;var u=i.sibling;if(u!==null)$e=u;else{var f=i.return;f!==null?($e=f,yu(f)):$e=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}mt=sa,Ca=null,ps(e,t,l,Yp);break;case dc:mt=sa,Ca=null,ps(e,t,l,dc);break;case Xp:fm(),_t=fd;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}j.actQueue!==null?Pb():r1();break}catch(x){Zb(e,x)}while(!0);return Hc(),j.H=a,j.A=o,Fe=n,$e!==null?wl:(bt=null,ze=0,jc(),_t)}function r1(){for(;$e!==null&&!lx();)Fb($e)}function Fb(e){var t=e.alternate;(e.mode&_e)!==xe?(cf(e),t=F(e,am,t,e,Zo),uf(e)):t=F(e,am,t,e,Zo),e.memoizedProps=e.pendingProps,t===null?yu(e):$e=t}function ev(e){var t=F(e,s1,e);e.memoizedProps=e.pendingProps,t===null?yu(e):$e=t}function s1(e){var t=e.alternate,n=(e.mode&_e)!==xe;switch(n&&cf(e),e.tag){case 15:case 0:t=db(t,e,e.pendingProps,e.type,void 0,ze);break;case 11:t=db(t,e,e.pendingProps,e.type.render,e.ref,ze);break;case 5:Ef(e);default:vb(t,e),e=$e=Fh(e,Zo),t=am(t,e,Zo)}return n&&uf(e),t}function ps(e,t,n,a){Hc(),Ef(t),Ls=null,nc=0;var o=t.return;try{if(Yw(e,o,t,n,ze)){_t=cc,cu(e,pa(n,e.current)),$e=null;return}}catch(l){if(o!==null)throw $e=o,l;_t=cc,cu(e,pa(n,e.current)),$e=null;return}t.flags&32768?(Ye||a===md?e=!0:Zs||(ze&536870912)!==0?e=!1:(er=e=!0,(a===Gr||a===qr||a===uc||a===dc)&&(a=Ea.current,a!==null&&a.tag===13&&(a.flags|=16384))),tv(t,e)):yu(t)}function yu(e){var t=e;do{if((t.flags&32768)!==0){tv(t,er);return}var n=t.alternate;if(e=t.return,cf(t),n=F(t,Zw,n,t,Zo),(t.mode&_e)!==xe&&ig(t),n!==null){$e=n;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);_t===wl&&(_t=o0)}function tv(e,t){do{var n=Jw(e.alternate,e);if(n!==null){n.flags&=32767,$e=n;return}if((e.mode&_e)!==xe){ig(e),n=e.actualDuration;for(var a=e.child;a!==null;)n+=a.actualDuration,a=a.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){$e=e;return}$e=e=n}while(e!==null);_t=fd,$e=null}function pm(e,t,n,a,o,l,r,i,u,f,x,E,g,A){e.cancelPendingCommit=null;do yi();while(sn!==or);if(io.flushLegacyContextWarning(),io.flushPendingUnsafeLifecycleWarnings(),(Fe&(hn|Da))!==Nn)throw Error("Should not already be working.");if(ao(n),f===Br?Qd(g,A,n,Gt):a!==null?Rw(g,A,n,a,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Gt):Tw(g,A,n,Gt),t!==null){if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(l=t.lanes|t.childLanes,l|=wp,Ut(e,n,l,r,i,u),e===bt&&($e=bt=null,ze=0),Js=t,lr=e,fo=n,Wp=l,Fp=o,p0=a,Pp=A,h0=E,mo=vd,g0=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,f1(Ns,function(){return yc=window.event,mo===vd&&(mo=Kp),rv(),null})):(e.callbackNode=null,e.callbackPriority=0),pl=null,Zl=nn(),E!==null&&jw(A,Zl,E,Gt),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,o=it.p,it.p=_a,r=Fe,Fe|=Da;try{t1(e,t,n)}finally{Fe=r,it.p=o,j.T=a}}sn=u0,nv(),av(),ov()}}function nv(){if(sn===u0){sn=or;var e=lr,t=Js,n=fo,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var o=it.p;it.p=_a;var l=Fe;Fe|=Da;try{Xs=n,Qs=e,Gc(),jb(t,e),Qs=Xs=null,n=uh;var r=qh(e.containerInfo),i=n.focusedElem,u=n.selectionRange;if(r!==i&&i&&i.ownerDocument&&Gh(i.ownerDocument.documentElement,i)){if(u!==null&&Id(i)){var f=u.start,x=u.end;if(x===void 0&&(x=f),"selectionStart"in i)i.selectionStart=f,i.selectionEnd=Math.min(x,i.value.length);else{var E=i.ownerDocument||document,g=E&&E.defaultView||window;if(g.getSelection){var A=g.getSelection(),Z=i.textContent.length,te=Math.min(u.start,Z),Nt=u.end===void 0?te:Math.min(u.end,Z);!A.extend&&te>Nt&&(r=Nt,Nt=te,te=r);var Je=Bh(i,te),h=Bh(i,Nt);if(Je&&h&&(A.rangeCount!==1||A.anchorNode!==Je.node||A.anchorOffset!==Je.offset||A.focusNode!==h.node||A.focusOffset!==h.offset)){var b=E.createRange();b.setStart(Je.node,Je.offset),A.removeAllRanges(),te>Nt?(A.addRange(b),A.extend(h.node,h.offset)):(b.setEnd(h.node,h.offset),A.addRange(b))}}}}for(E=[],A=i;A=A.parentNode;)A.nodeType===1&&E.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<E.length;i++){var w=E[i];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Vd=!!ch,uh=ch=null}finally{Fe=l,it.p=o,j.T=a}}e.current=t,sn=d0}}function av(){if(sn===d0){sn=or;var e=g0;if(e!==null){Zl=nn();var t=ml,n=Zl;!Et||n<=t||console.timeStamp(e,t,n,Ke,Ze,"secondary-light")}e=lr,t=Js,n=fo;var a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var o=it.p;it.p=_a;var l=Fe;Fe|=Da;try{Xs=n,Qs=e,Gc(),Ub(e,t.alternate,t),Qs=Xs=null}finally{Fe=l,it.p=o,j.T=a}}e=Pp,t=h0,ml=nn(),e=t===null?e:Zl,t=ml,n=mo===Jp,a=Gt,pl!==null?Zh(e,t,pl,!1,a):!Et||t<=e||(a?a.run(console.timeStamp.bind(console,n?"Commit Interrupted View Transition":"Commit",e,t,Ke,Ze,n?"error":"secondary-dark")):console.timeStamp(n?"Commit Interrupted View Transition":"Commit",e,t,Ke,Ze,n?"error":"secondary-dark")),sn=f0}}function ov(){if(sn===m0||sn===f0){if(sn===m0){var e=ml;ml=nn();var t=ml,n=mo===Jp;!Et||t<=e||console.timeStamp(n?"Interrupted View Transition":"Starting Animation",e,t,Ke,Ze,n?" error":"secondary-light"),mo!==Jp&&(mo=c0)}sn=or,rx(),e=lr;var a=Js;t=fo,n=p0;var o=a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0;o?sn=yd:(sn=or,Js=lr=null,lv(e,e.pendingLanes),Yr=0,hc=null);var l=e.pendingLanes;if(l===0&&(ar=null),o||uv(e),l=Ta(t),a=a.stateNode,Vn&&typeof Vn.onCommitFiberRoot=="function")try{var r=(a.current.flags&128)===128;switch(l){case _a:var i=Fm;break;case qo:i=ep;break;case il:i=Ns;break;case zu:i=tp;break;default:i=Ns}Vn.onCommitFiberRoot(ws,a,i,r)}catch(E){Bo||(Bo=!0,console.error("React instrumentation encountered an error: %o",E))}if(Go&&e.memoizedUpdaters.clear(),a1(),n!==null){r=j.T,i=it.p,it.p=_a,j.T=null;try{var u=e.onRecoverableError;for(a=0;a<n.length;a++){var f=n[a],x=i1(f.stack);F(f.source,u,f.value,x)}}finally{j.T=r,it.p=i}}(fo&3)!==0&&yi(),Mo(e),l=e.pendingLanes,(t&261930)!==0&&(l&42)!==0?(td=!0,e===eh?pc++:(pc=0,eh=e)):pc=0,o||kr(t,ml),wi(0)}}function i1(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function lv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ai(t)))}function yi(){return nv(),av(),ov(),rv()}function rv(){if(sn!==yd)return!1;var e=lr,t=Wp;Wp=0;var n=Ta(fo),a=il>n?il:n;n=j.T;var o=it.p;try{it.p=a,j.T=null;var l=Fp;Fp=null,a=lr;var r=fo;if(sn=or,Js=lr=null,fo=0,(Fe&(hn|Da))!==Nn)throw Error("Cannot flush passive effects while already rendering.");ao(r),th=!0,Nd=!1;var i=0;if(pl=null,i=bn(),mo===c0)Zd(ml,i,vE);else{var u=ml,f=i,x=mo===Kp;!Et||f<=u||(Gt?Gt.run(console.timeStamp.bind(console,x?"Waiting for Paint":"Waiting",u,f,Ke,Ze,"secondary-light")):console.timeStamp(x?"Waiting for Paint":"Waiting",u,f,Ke,Ze,"secondary-light"))}u=Fe,Fe|=Da;var E=a.current;Gc(),Bb(E);var g=a.current;E=Pp,Gc(),zb(a,g,r,l,E),uv(a),Fe=u;var A=bn();if(g=i,E=Gt,pl!==null?Zh(g,A,pl,!0,E):!Et||A<=g||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",g,A,Ke,Ze,"secondary-dark")):console.timeStamp("Remaining Effects",g,A,Ke,Ze,"secondary-dark")),kr(r,A),wi(0,!1),Nd?a===hc?Yr++:(Yr=0,hc=a):Yr=0,Nd=th=!1,Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(ws,a)}catch(te){Bo||(Bo=!0,console.error("React instrumentation encountered an error: %o",te))}var Z=a.current.stateNode;return Z.effectDuration=0,Z.passiveEffectDuration=0,!0}finally{it.p=o,j.T=n,lv(e,t)}}function sv(e,t,n){t=pa(n,t),cg(t),t=Xf(e.stateNode,t,2),e=Rl(e,t,2),e!==null&&(On(e,2),Mo(e))}function st(e,t,n){if(Ks=!1,e.tag===3)sv(e,e,n);else{for(;t!==null;){if(t.tag===3){sv(t,e,n);return}if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ar===null||!ar.has(a))){e=pa(n,e),cg(e),n=Qf(2),a=Rl(t,n,2),a!==null&&(Zf(n,a,t,e),On(a,2),Mo(a));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
159
+
160
+ Error message:
161
+
162
+ %s`,n)}}function hm(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new kE;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(Qp=!0,o.add(n),a=c1.bind(null,e,t,n),Go&&Ni(e,n),t.then(a,a))}function c1(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,(n&127)!==0?0>Xo&&(Rr=Xo=nn(),Ii=Ju("Promise Resolved"),Jl=Ku):(n&4194048)!==0&&0>Ga&&(hl=Ga=nn(),Xi=Ju("Promise Resolved"),Up=Ku),Ib()&&j.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
163
+
164
+ When testing, code that resolves suspended data should be wrapped into act(...):
165
+
166
+ act(() => {
167
+ /* finish loading suspended data */
168
+ });
169
+ /* assert on the output */
170
+
171
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),bt===e&&(ze&n)===n&&(_t===Fl||_t===dd&&(ze&62914560)===ze&&bn()-gd<s0?(Fe&hn)===Nn&&ms(e,0):Zp|=n,Ir===ze&&(Ir=0)),Mo(e)}function iv(e,t){t===0&&(t=Oa()),e=jn(e,t),e!==null&&(On(e,t),Mo(e))}function u1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iv(e,n)}function d1(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),iv(e,n)}function gm(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var a=e,o=t,l=o.type===Tu;l=n||l,o.tag!==22?o.flags&67108864?l&&F(o,cv,a,o):gm(a,o,l):o.memoizedState===null&&(l&&o.flags&8192?F(o,cv,a,o):o.subtreeFlags&67108864&&F(o,gm,a,o,l)),t=t.sibling}}function cv(e,t){I(!0);try{_b(t),Gb(t),Mb(e,t.alternate,t,!1),Hb(e,t,0,null,!1,0)}finally{I(!1)}}function uv(e){var t=!0;e.current.mode&(_n|so)||(t=!1),gm(e,e.current,t)}function dv(e){if((Fe&hn)===Nn){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=ee(e)||"ReactComponent",wd!==null){if(wd.has(t))return;wd.add(t)}else wd=new Set([t]);F(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Ni(e,t){Go&&e.memoizedUpdaters.forEach(function(n){se(e,n,t)})}function f1(e,t){var n=j.actQueue;return n!==null?(n.push(t),OE):Pm(e,t)}function m1(e){Ib()&&j.actQueue===null&&F(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
172
+
173
+ When testing, code that causes React state updates should be wrapped into act(...):
174
+
175
+ act(() => {
176
+ /* fire events that update state */
177
+ });
178
+ /* assert on the output */
179
+
180
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,ee(e))})}function Mo(e){e!==Ws&&e.next===null&&(Ws===null?xd=Ws=e:Ws=Ws.next=e),Ed=!0,j.actQueue!==null?ah||(ah=!0,hv()):nh||(nh=!0,hv())}function wi(e,t){if(!oh&&Ed){oh=!0;do for(var n=!1,a=xd;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var l=0;else{var r=a.suspendedLanes,i=a.pingedLanes;l=(1<<31-In(42|e)+1)-1,l&=o&~(r&~i),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,pv(a,l))}else l=ze,l=Aa(a,a===bt?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Jr),(l&3)===0||An(a,l)||(n=!0,pv(a,l));a=a.next}while(n);oh=!1}}function p1(){yc=window.event,bm()}function bm(){Ed=ah=nh=!1;var e=0;rr!==0&&w1()&&(e=rr);for(var t=bn(),n=null,a=xd;a!==null;){var o=a.next,l=fv(a,t);l===0?(a.next=null,n===null?xd=o:n.next=o,o===null&&(Ws=n)):(n=a,(e!==0||(l&3)!==0)&&(Ed=!0)),a=o}sn!==or&&sn!==yd||wi(e),rr!==0&&(rr=0)}function fv(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var r=31-In(l),i=1<<r,u=o[r];u===-1?((i&n)===0||(i&a)!==0)&&(o[r]=Xe(i,t)):u<=t&&(e.expiredLanes|=i),l&=~i}if(t=bt,n=ze,n=Aa(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),a=e.callbackNode,n===0||e===t&&(mt===Gr||mt===qr)||e.cancelPendingCommit!==null)return a!==null&&vm(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||An(e,n)){if(t=n&-n,t!==e.callbackPriority||j.actQueue!==null&&a!==lh)vm(a);else return t;switch(Ta(n)){case _a:case qo:n=ep;break;case il:n=Ns;break;case zu:n=tp;break;default:n=Ns}return a=mv.bind(null,e),j.actQueue!==null?(j.actQueue.push(a),n=lh):n=Pm(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&vm(a),e.callbackPriority=2,e.callbackNode=null,2}function mv(e,t){if(td=ed=!1,yc=window.event,sn!==or&&sn!==yd)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(mo===vd&&(mo=Kp),yi()&&e.callbackNode!==n)return null;var a=ze;return a=Aa(e,e===bt?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Jr),a===0?null:(Xb(e,a,t),fv(e,bn()),e.callbackNode!=null&&e.callbackNode===n?mv.bind(null,e):null)}function pv(e,t){if(yi())return null;ed=td,td=!1,Xb(e,t,!0)}function vm(e){e!==lh&&e!==null&&ox(e)}function hv(){j.actQueue!==null&&j.actQueue.push(function(){return bm(),null}),$E(function(){(Fe&(hn|Da))!==Nn?Pm(Fm,p1):bm()})}function ym(){if(rr===0){var e=_r;e===0&&(e=Vu,Vu<<=1,(Vu&261888)===0&&(Vu=256)),rr=e}return rr}function gv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Oe(e,"action"),Ve(""+e))}function bv(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function h1(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var l=gv((o[Yn]||null).action),r=a.submitter;r&&(t=(t=r[Yn]||null)?gv(t.formAction):r.getAttribute("formAction"),t!==null&&(l=t,r=null));var i=new Gu("action","action",null,a,o);e.push({event:i,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(rr!==0){var u=r?bv(o,r):new FormData(o),f={pending:!0,data:u,method:o.method,action:l};Object.freeze(f),Lf(n,f,null,u)}}else typeof l=="function"&&(i.preventDefault(),u=r?bv(o,r):new FormData(o),f={pending:!0,data:u,method:o.method,action:l},Object.freeze(f),Lf(n,f,l,u))},currentTarget:o}]})}}function Nu(e,t,n){e.currentTarget=n;try{t(e)}catch(a){bp(a)}e.currentTarget=null}function vv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n];e:{var o=void 0,l=a.event;if(a=a.listeners,t)for(var r=a.length-1;0<=r;r--){var i=a[r],u=i.instance,f=i.currentTarget;if(i=i.listener,u!==o&&l.isPropagationStopped())break e;u!==null?F(u,Nu,l,i,f):Nu(l,i,f),o=u}else for(r=0;r<a.length;r++){if(i=a[r],u=i.instance,f=i.currentTarget,i=i.listener,u!==o&&l.isPropagationStopped())break e;u!==null?F(u,Nu,l,i,f):Nu(l,i,f),o=u}}}}function Qe(e,t){rh.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[np];n===void 0&&(n=t[np]=new Set);var a=e+"__bubble";n.has(a)||(yv(t,e,2,!1),n.add(a))}function Nm(e,t,n){rh.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=4),yv(n,e,a,t)}function wm(e){if(!e[Sd]){e[Sd]=!0,hy.forEach(function(n){n!=="selectionchange"&&(rh.has(n)||Nm(n,!1,e),Nm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,Nm("selectionchange",!1,t))}}function yv(e,t,n,a){switch(Pv(t)){case _a:var o=J1;break;case qo:o=K1;break;default:o=zm}n=o.bind(null,t,n,e),o=void 0,!sp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function xm(e,t,n,a,o){var l=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var i=a.stateNode.containerInfo;if(i===o)break;if(r===4)for(r=a.return;r!==null;){var u=r.tag;if((u===3||u===4)&&r.stateNode.containerInfo===o)return;r=r.return}for(;i!==null;){if(r=B(i),r===null)return;if(u=r.tag,u===5||u===6||u===26||u===27){a=l=r;continue e}i=i.parentNode}}a=a.return}W(function(){var f=l,x=y(n),E=[];e:{var g=Py.get(e);if(g!==void 0){var A=Gu,Z=e;switch(e){case"keypress":if(ot(n)===0)break e;case"keydown":case"keyup":A=Yx;break;case"focusin":Z="focus",A=dp;break;case"focusout":Z="blur",A=dp;break;case"beforeblur":case"afterblur":A=dp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Hy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Zx;break;case Zy:case Jy:case Ky:A=Mx;break;case Wy:A=Kx;break;case"scroll":case"scrollend":A=Tx;break;case"wheel":A=Px;break;case"copy":case"cut":case"paste":A=Hx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=$y;break;case"toggle":case"beforetoggle":A=eE}var te=(t&4)!==0,Nt=!te&&(e==="scroll"||e==="scrollend"),Je=te?g!==null?g+"Capture":null:g;te=[];for(var h=f,b;h!==null;){var w=h;if(b=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||b===null||Je===null||(w=ne(h,Je),w!=null&&te.push(xi(h,w,b))),Nt)break;h=h.return}0<te.length&&(g=new A(g,Z,null,n,x),E.push({event:g,listeners:te}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",g&&n!==ji&&(Z=n.relatedTarget||n.fromElement)&&(B(Z)||Z[Gl]))break e;if((A||g)&&(g=x.window===x?x:(g=x.ownerDocument)?g.defaultView||g.parentWindow:window,A?(Z=n.relatedTarget||n.toElement,A=f,Z=Z?B(Z):null,Z!==null&&(Nt=me(Z),te=Z.tag,Z!==Nt||te!==5&&te!==27&&te!==6)&&(Z=null)):(A=null,Z=f),A!==Z)){if(te=Hy,w="onMouseLeave",Je="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(te=$y,w="onPointerLeave",Je="onPointerEnter",h="pointer"),Nt=A==null?g:le(A),b=Z==null?g:le(Z),g=new te(w,h+"leave",A,n,x),g.target=Nt,g.relatedTarget=b,w=null,B(x)===f&&(te=new te(Je,h+"enter",Z,n,x),te.target=b,te.relatedTarget=Nt,w=te),Nt=w,A&&Z)t:{for(te=g1,Je=A,h=Z,b=0,w=Je;w;w=te(w))b++;w=0;for(var H=h;H;H=te(H))w++;for(;0<b-w;)Je=te(Je),b--;for(;0<w-b;)h=te(h),w--;for(;b--;){if(Je===h||h!==null&&Je===h.alternate){te=Je;break t}Je=te(Je),h=te(h)}te=null}else te=null;A!==null&&Nv(E,g,A,te,!1),Z!==null&&Nt!==null&&Nv(E,Nt,Z,te,!0)}}e:{if(g=f?le(f):window,A=g.nodeName&&g.nodeName.toLowerCase(),A==="select"||A==="input"&&g.type==="file")var P=zh;else if(_h(g))if(Xy)P=Uw;else{P=Cw;var Ce=Dw}else A=g.nodeName,!A||A.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?f&&$(f.elementType)&&(P=zh):P=kw;if(P&&(P=P(e,f))){Mh(E,P,n,x);break e}Ce&&Ce(e,g,f),e==="focusout"&&f&&g.type==="number"&&f.memoizedProps.value!=null&&ea(g,"number",g.value)}switch(Ce=f?le(f):window,e){case"focusin":(_h(Ce)||Ce.contentEditable==="true")&&(Us=Ce,mp=f,$i=null);break;case"focusout":$i=mp=Us=null;break;case"mousedown":pp=!0;break;case"contextmenu":case"mouseup":case"dragend":pp=!1,Ih(E,n,x);break;case"selectionchange":if(oE)break;case"keydown":case"keyup":Ih(E,n,x)}var he;if(fp)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else ks?Ac(e,n)&&(ie="onCompositionEnd"):e==="keydown"&&n.keyCode===By&&(ie="onCompositionStart");ie&&(Gy&&n.locale!=="ko"&&(ks||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&ks&&(he=de()):(ql=x,ip="value"in ql?ql.value:ql.textContent,ks=!0)),Ce=wu(f,ie),0<Ce.length&&(ie=new Ly(ie,e,null,n,x),E.push({event:ie,listeners:Ce}),he?ie.data=he:(he=ns(n),he!==null&&(ie.data=he)))),(he=nE?ww(e,n):xw(e,n))&&(ie=wu(f,"onBeforeInput"),0<ie.length&&(Ce=new $x("onBeforeInput","beforeinput",null,n,x),E.push({event:Ce,listeners:ie}),Ce.data=he)),h1(E,e,f,n,x)}vv(E,t)})}function xi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wu(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,l=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||l===null||(o=ne(e,n),o!=null&&a.unshift(xi(e,o,l)),o=ne(e,t),o!=null&&a.push(xi(e,o,l))),e.tag===3)return a;e=e.return}return[]}function g1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Nv(e,t,n,a,o){for(var l=t._reactName,r=[];n!==null&&n!==a;){var i=n,u=i.alternate,f=i.stateNode;if(i=i.tag,u!==null&&u===a)break;i!==5&&i!==26&&i!==27||f===null||(u=f,o?(f=ne(n,l),f!=null&&r.unshift(xi(n,f,u))):o||(f=ne(n,l),f!=null&&r.push(xi(n,f,u)))),n=n.return}r.length!==0&&e.push({event:t,listeners:r})}function Em(e,t){dt(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||My||(My=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Ur,possibleRegistrationNames:ap};$(e)||typeof t.is=="string"||re(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function gn(e,t,n,a){t!==n&&(n=zl(n),zl(t)!==n&&(a[e]=t))}function b1(e,t,n){t.forEach(function(a){n[Ev(a)]=a==="style"?Dm(e):e.getAttribute(a)})}function zo(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function wv(e,t){return e=e.namespaceURI===Lu||e.namespaceURI===Es?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function zl(e){return Ua(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",wn(e)),ut(e)),(typeof e=="string"?e:""+e).replace(TE,`
181
+ `).replace(RE,"")}function xv(e,t){return t=zl(t),zl(e)===t}function ht(e,t,n,a,o,l){switch(n){case"children":typeof a=="string"?(to(a,t,!1),t==="body"||t==="textarea"&&a===""||Ht(e,a)):(typeof a=="number"||typeof a=="bigint")&&(to(""+a,t,!1),t!=="body"&&Ht(e,""+a));break;case"className":da(e,"class",a);break;case"tabIndex":da(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":da(e,n,a);break;case"style":R(e,a,l);break;case"data":if(t!=="object"){da(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){console.error(n==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}Oe(a,n),a=Ve(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(a!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof a=="function"&&(o.encType==null&&o.method==null||kd||(kd=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),o.target==null||Cd||(Cd=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||o.type==="submit"||o.type==="image"||Dd?t!=="button"||o.type==null||o.type==="submit"||Dd?typeof a=="function"&&(o.name==null||w0||(w0=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),o.formEncType==null&&o.formMethod==null||kd||(kd=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),o.formTarget==null||Cd||(Cd=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Dd=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Dd=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&ht(e,t,"name",o.name,o,null),ht(e,t,"formEncType",o.formEncType,o,null),ht(e,t,"formMethod",o.formMethod,o,null),ht(e,t,"formTarget",o.formTarget,o,null)):(ht(e,t,"encType",o.encType,o,null),ht(e,t,"method",o.method,o,null),ht(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}Oe(a,n),a=Ve(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(typeof a!="function"&&zo(n,a),e.onclick=xt);break;case"onScroll":a!=null&&(typeof a!="function"&&zo(n,a),Qe("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&zo(n,a),Qe("scrollend",e));break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=a.__html,n!=null){if(o.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}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}Oe(a,n),n=Ve(""+a),e.setAttributeNS(Xr,"xlink:href",n);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"?(Oe(a,n),e.setAttribute(n,""+a)):e.removeAttribute(n);break;case"inert":a!==""||Ud[n]||(Ud[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?(Oe(a,n),e.setAttribute(n,a)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?(Oe(a,n),e.setAttribute(n,a)):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):(Oe(a,n),e.setAttribute(n,a));break;case"popover":Qe("beforetoggle",e),Qe("toggle",e),Tn(e,"popover",a);break;case"xlinkActuate":at(e,Xr,"xlink:actuate",a);break;case"xlinkArcrole":at(e,Xr,"xlink:arcrole",a);break;case"xlinkRole":at(e,Xr,"xlink:role",a);break;case"xlinkShow":at(e,Xr,"xlink:show",a);break;case"xlinkTitle":at(e,Xr,"xlink:title",a);break;case"xlinkType":at(e,Xr,"xlink:type",a);break;case"xmlBase":at(e,sh,"xml:base",a);break;case"xmlLang":at(e,sh,"xml:lang",a);break;case"xmlSpace":at(e,sh,"xml:space",a);break;case"is":l!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Tn(e,"is",a);break;case"innerText":case"textContent":break;case"popoverTarget":x0||a==null||typeof a!="object"||(x0=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",a));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=ae(n),Tn(e,n,a)):Ur.hasOwnProperty(n)&&a!=null&&typeof a!="function"&&zo(n,a)}}function Sm(e,t,n,a,o,l){switch(n){case"style":R(e,a,l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=a.__html,n!=null){if(o.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof a=="string"?Ht(e,a):(typeof a=="number"||typeof a=="bigint")&&Ht(e,""+a);break;case"onScroll":a!=null&&(typeof a!="function"&&zo(n,a),Qe("scroll",e));break;case"onScrollEnd":a!=null&&(typeof a!="function"&&zo(n,a),Qe("scrollend",e));break;case"onClick":a!=null&&(typeof a!="function"&&zo(n,a),e.onclick=xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ur.hasOwnProperty(n))a!=null&&typeof a!="function"&&zo(n,a);else e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),l=e[Yn]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,o),typeof a=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Tn(e,n,a)}}}function Dn(e,t,n){switch(Em(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",e),Qe("load",e);var a=!1,o=!1,l;for(l in n)if(n.hasOwnProperty(l)){var r=n[l];if(r!=null)switch(l){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ht(e,t,l,r,n,null)}}o&&ht(e,t,"srcSet",n.srcSet,n,null),a&&ht(e,t,"src",n.src,n,null);return;case"input":Yt("input",n),Qe("invalid",e);var i=l=r=o=null,u=null,f=null;for(a in n)if(n.hasOwnProperty(a)){var x=n[a];if(x!=null)switch(a){case"name":o=x;break;case"type":r=x;break;case"checked":u=x;break;case"defaultChecked":f=x;break;case"value":l=x;break;case"defaultValue":i=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ht(e,t,a,x,n,null)}}fa(e,n),fr(e,l,i,u,f,r,o,!1);return;case"select":Yt("select",n),Qe("invalid",e),a=r=l=null;for(o in n)if(n.hasOwnProperty(o)&&(i=n[o],i!=null))switch(o){case"value":l=i;break;case"defaultValue":r=i;break;case"multiple":a=i;default:ht(e,t,o,i,n,null)}Ko(e,n),t=l,n=r,e.multiple=!!a,t!=null?ta(e,!!a,t,!1):n!=null&&ta(e,!!a,n,!0);return;case"textarea":Yt("textarea",n),Qe("invalid",e),l=o=a=null;for(r in n)if(n.hasOwnProperty(r)&&(i=n[r],i!=null))switch(r){case"value":a=i;break;case"defaultValue":o=i;break;case"children":l=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ht(e,t,r,i,n,null)}Ka(e,n),Rn(e,a,o,l);return;case"option":Ja(e,n);for(u in n)n.hasOwnProperty(u)&&(a=n[u],a!=null)&&(u==="selected"?e.selected=a&&typeof a!="function"&&typeof a!="symbol":ht(e,t,u,a,n,null));return;case"dialog":Qe("beforetoggle",e),Qe("toggle",e),Qe("cancel",e),Qe("close",e);break;case"iframe":case"object":Qe("load",e);break;case"video":case"audio":for(a=0;a<gc.length;a++)Qe(gc[a],e);break;case"image":Qe("error",e),Qe("load",e);break;case"details":Qe("toggle",e);break;case"embed":case"source":case"link":Qe("error",e),Qe("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(f in n)if(n.hasOwnProperty(f)&&(a=n[f],a!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ht(e,t,f,a,n,null)}return;default:if($(t)){for(x in n)n.hasOwnProperty(x)&&(a=n[x],a!==void 0&&Sm(e,t,x,a,n,void 0));return}}for(i in n)n.hasOwnProperty(i)&&(a=n[i],a!=null&&ht(e,t,i,a,n,null))}function v1(e,t,n,a){switch(Em(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,l=null,r=null,i=null,u=null,f=null,x=null;for(A in n){var E=n[A];if(n.hasOwnProperty(A)&&E!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":u=E;default:a.hasOwnProperty(A)||ht(e,t,A,null,a,E)}}for(var g in a){var A=a[g];if(E=n[g],a.hasOwnProperty(g)&&(A!=null||E!=null))switch(g){case"type":l=A;break;case"name":o=A;break;case"checked":f=A;break;case"defaultChecked":x=A;break;case"value":r=A;break;case"defaultValue":i=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:A!==E&&ht(e,t,g,A,a,E)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,a=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,t||!a||N0||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),N0=!0),!t||a||y0||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),y0=!0),Jo(e,r,i,u,f,x,l,o);return;case"select":A=r=i=g=null;for(l in n)if(u=n[l],n.hasOwnProperty(l)&&u!=null)switch(l){case"value":break;case"multiple":A=u;default:a.hasOwnProperty(l)||ht(e,t,l,null,a,u)}for(o in a)if(l=a[o],u=n[o],a.hasOwnProperty(o)&&(l!=null||u!=null))switch(o){case"value":g=l;break;case"defaultValue":i=l;break;case"multiple":r=l;default:l!==u&&ht(e,t,o,l,a,u)}a=i,t=r,n=A,g!=null?ta(e,!!t,g,!1):!!n!=!!t&&(a!=null?ta(e,!!t,a,!0):ta(e,!!t,t?[]:"",!1));return;case"textarea":A=g=null;for(i in n)if(o=n[i],n.hasOwnProperty(i)&&o!=null&&!a.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:ht(e,t,i,null,a,o)}for(r in a)if(o=a[r],l=n[r],a.hasOwnProperty(r)&&(o!=null||l!=null))switch(r){case"value":g=o;break;case"defaultValue":A=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:o!==l&&ht(e,t,r,o,a,l)}bo(e,g,A);return;case"option":for(var Z in n)g=n[Z],n.hasOwnProperty(Z)&&g!=null&&!a.hasOwnProperty(Z)&&(Z==="selected"?e.selected=!1:ht(e,t,Z,null,a,g));for(u in a)g=a[u],A=n[u],a.hasOwnProperty(u)&&g!==A&&(g!=null||A!=null)&&(u==="selected"?e.selected=g&&typeof g!="function"&&typeof g!="symbol":ht(e,t,u,g,a,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 te in n)g=n[te],n.hasOwnProperty(te)&&g!=null&&!a.hasOwnProperty(te)&&ht(e,t,te,null,a,g);for(f in a)if(g=a[f],A=n[f],a.hasOwnProperty(f)&&g!==A&&(g!=null||A!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ht(e,t,f,g,a,A)}return;default:if($(t)){for(var Nt in n)g=n[Nt],n.hasOwnProperty(Nt)&&g!==void 0&&!a.hasOwnProperty(Nt)&&Sm(e,t,Nt,void 0,a,g);for(x in a)g=a[x],A=n[x],!a.hasOwnProperty(x)||g===A||g===void 0&&A===void 0||Sm(e,t,x,g,a,A);return}}for(var Je in n)g=n[Je],n.hasOwnProperty(Je)&&g!=null&&!a.hasOwnProperty(Je)&&ht(e,t,Je,null,a,g);for(E in a)g=a[E],A=n[E],!a.hasOwnProperty(E)||g===A||g==null&&A==null||ht(e,t,E,g,a,A)}function Ev(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Dm(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var a=e[n];t[a]=e.getPropertyValue(a)}return t}function Sv(e,t,n){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var a,o=a="",l;for(l in t)if(t.hasOwnProperty(l)){var r=t[l];r!=null&&typeof r!="boolean"&&r!==""&&(l.indexOf("--")===0?(jt(r,l),a+=o+l+":"+(""+r).trim()):typeof r!="number"||r===0||Vy.has(l)?(jt(r,l),a+=o+l.replace(Ay,"-$1").toLowerCase().replace(Oy,"-ms-")+":"+(""+r).trim()):a+=o+l.replace(Ay,"-$1").toLowerCase().replace(Oy,"-ms-")+":"+r+"px",o=";")}a=a||null,t=e.getAttribute("style"),t!==a&&(a=zl(a),zl(t)!==a&&(n.style=Dm(e)))}}function Va(e,t,n,a,o,l){if(o.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(Oe(a,t),e===""+a)return}gn(t,e,a,l)}function Dv(e,t,n,a,o,l){if(o.delete(n),e=e.getAttribute(n),e===null){switch(typeof a){case"function":case"symbol":return}if(!a)return}else switch(typeof a){case"function":case"symbol":break;default:if(a)return}gn(t,e,a,l)}function Cm(e,t,n,a,o,l){if(o.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":return}else if(a!=null)switch(typeof a){case"function":case"symbol":break;default:if(Oe(a,n),e===""+a)return}gn(t,e,a,l)}function Cv(e,t,n,a,o,l){if(o.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(a))return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(!isNaN(a)&&(Oe(a,t),e===""+a))return}gn(t,e,a,l)}function km(e,t,n,a,o,l){if(o.delete(n),e=e.getAttribute(n),e===null)switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return}else if(a!=null)switch(typeof a){case"function":case"symbol":case"boolean":break;default:if(Oe(a,t),n=Ve(""+a),e===n)return}gn(t,e,a,l)}function kv(e,t,n,a){for(var o={},l=new Set,r=e.attributes,i=0;i<r.length;i++)switch(r[i].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:l.add(r[i].name)}if($(t)){for(var u in n)if(n.hasOwnProperty(u)){var f=n[u];if(f!=null){if(Ur.hasOwnProperty(u))typeof f!="function"&&zo(u,f);else if(n.suppressHydrationWarning!==!0)switch(u){case"children":typeof f!="string"&&typeof f!="number"||gn("children",e.textContent,f,o);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":r=e.innerHTML,f=f?f.__html:void 0,f!=null&&(f=wv(e,f),gn(u,r,f,o));continue;case"style":l.delete(u),Sv(e,f,o);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":l.delete(u.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",u);continue;case"className":l.delete("class"),r=Fn(e,"class",f),gn("className",r,f,o);continue;default:a.context===xl&&t!=="svg"&&t!=="math"?l.delete(u.toLowerCase()):l.delete(u),r=Fn(e,u,f),gn(u,r,f,o)}}}}else for(f in n)if(n.hasOwnProperty(f)&&(u=n[f],u!=null)){if(Ur.hasOwnProperty(f))typeof u!="function"&&zo(f,u);else if(n.suppressHydrationWarning!==!0)switch(f){case"children":typeof u!="string"&&typeof u!="number"||gn("children",e.textContent,u,o);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":r=e.innerHTML,u=u?u.__html:void 0,u!=null&&(u=wv(e,u),r!==u&&(o[f]={__html:r}));continue;case"className":Va(e,f,"class",u,l,o);continue;case"tabIndex":Va(e,f,"tabindex",u,l,o);continue;case"style":l.delete(f),Sv(e,u,o);continue;case"multiple":l.delete(f),gn(f,e.multiple,u,o);continue;case"muted":l.delete(f),gn(f,e.muted,u,o);continue;case"autoFocus":l.delete("autofocus"),gn(f,e.autofocus,u,o);continue;case"data":if(t!=="object"){l.delete(f),r=e.getAttribute("data"),gn(f,r,u,o);continue}case"src":case"href":if(!(u!==""||t==="a"&&f==="href"||t==="object"&&f==="data")){console.error(f==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',f,f);continue}km(e,f,f,u,l,o);continue;case"action":case"formAction":if(r=e.getAttribute(f),typeof u=="function"){l.delete(f.toLowerCase()),f==="formAction"?(l.delete("name"),l.delete("formenctype"),l.delete("formmethod"),l.delete("formtarget")):(l.delete("enctype"),l.delete("method"),l.delete("target"));continue}else if(r===jE){l.delete(f.toLowerCase()),gn(f,"function",u,o);continue}km(e,f,f.toLowerCase(),u,l,o);continue;case"xlinkHref":km(e,f,"xlink:href",u,l,o);continue;case"contentEditable":Cm(e,f,"contenteditable",u,l,o);continue;case"spellCheck":Cm(e,f,"spellcheck",u,l,o);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Cm(e,f,f,u,l,o);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Dv(e,f,f.toLowerCase(),u,l,o);continue;case"capture":case"download":e:{i=e;var x=r=f,E=o;if(l.delete(x),i=i.getAttribute(x),i===null)switch(typeof u){case"undefined":case"function":case"symbol":break e;default:if(u===!1)break e}else if(u!=null)switch(typeof u){case"function":case"symbol":break;case"boolean":if(u===!0&&i==="")break e;break;default:if(Oe(u,r),i===""+u)break e}gn(r,i,u,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(i=e,x=r=f,E=o,l.delete(x),i=i.getAttribute(x),i===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(u)||1>u)break e}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(u)||1>u)&&(Oe(u,r),i===""+u))break e}gn(r,i,u,E)}continue;case"rowSpan":Cv(e,f,"rowspan",u,l,o);continue;case"start":Cv(e,f,f,u,l,o);continue;case"xHeight":Va(e,f,"x-height",u,l,o);continue;case"xlinkActuate":Va(e,f,"xlink:actuate",u,l,o);continue;case"xlinkArcrole":Va(e,f,"xlink:arcrole",u,l,o);continue;case"xlinkRole":Va(e,f,"xlink:role",u,l,o);continue;case"xlinkShow":Va(e,f,"xlink:show",u,l,o);continue;case"xlinkTitle":Va(e,f,"xlink:title",u,l,o);continue;case"xlinkType":Va(e,f,"xlink:type",u,l,o);continue;case"xmlBase":Va(e,f,"xml:base",u,l,o);continue;case"xmlLang":Va(e,f,"xml:lang",u,l,o);continue;case"xmlSpace":Va(e,f,"xml:space",u,l,o);continue;case"inert":u!==""||Ud[f]||(Ud[f]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",f)),Dv(e,f,f,u,l,o);continue;default:if(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N"){i=ae(f),r=!1,a.context===xl&&t!=="svg"&&t!=="math"?l.delete(i.toLowerCase()):(x=f.toLowerCase(),x=$u.hasOwnProperty(x)&&$u[x]||null,x!==null&&x!==f&&(r=!0,l.delete(x)),l.delete(i));e:if(x=e,E=i,i=u,Mt(E))if(x.hasAttribute(E))x=x.getAttribute(E),Oe(i,E),i=x===""+i?i:x;else{switch(typeof i){case"function":case"symbol":break e;case"boolean":if(x=E.toLowerCase().slice(0,5),x!=="data-"&&x!=="aria-")break e}i=i===void 0?void 0:null}else i=void 0;r||gn(f,i,u,o)}}}return 0<l.size&&n.suppressHydrationWarning!==!0&&b1(e,l,o),Object.keys(o).length===0?null:o}function y1(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function Uv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function N1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],l=o.transferSize,r=o.initiatorType,i=o.duration;if(l&&i&&Uv(r)){for(r=0,i=o.responseEnd,a+=1;a<n.length;a++){var u=n[a],f=u.startTime;if(f>i)break;var x=u.transferSize,E=u.initiatorType;x&&Uv(E)&&(u=u.responseEnd,r+=x*(u<i?1:(i-f)/(u-f)))}if(--a,t+=8*(l+r)/(o.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}function xu(e){return e.nodeType===9?e:e.ownerDocument}function Av(e){switch(e){case Es:return Fs;case Lu:return Od;default:return xl}}function Ov(e,t){if(e===xl)switch(t){case"svg":return Fs;case"math":return Od;default:return xl}return e===Fs&&t==="foreignObject"?xl:e}function Um(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function w1(){var e=window.event;return e&&e.type==="popstate"?e===dh?!1:(dh=e,!0):(dh=null,!1)}function Ei(){var e=window.event;return e&&e!==yc?e.type:null}function Si(){var e=window.event;return e&&e!==yc?e.timeStamp:-1.1}function x1(e){setTimeout(function(){throw e})}function E1(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function S1(){}function D1(e,t,n,a){v1(e,t,n,a),e[Yn]=a}function Tv(e){Ht(e,"")}function C1(e,t,n){e.nodeValue=n}function Rv(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Yn]||null;if(t!==null){var n=X(e);n!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,F(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,F(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Hl(e){return e==="head"}function k1(e,t){e.removeChild(t)}function U1(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function jv(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n===vc||n===Ad){if(a===0){e.removeChild(o),bs(t);return}a--}else if(n===bc||n===sr||n===Zr||n===Ps||n===Qr)a++;else if(n===_E)Di(e.ownerDocument.documentElement);else if(n===zE){n=e.ownerDocument.head,Di(n);for(var l=n.firstChild;l;){var r=l.nextSibling,i=l.nodeName;l[Ri]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=r}}else n===ME&&Di(e.ownerDocument.body);n=o}while(n);bs(t)}function Vv(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n===vc){if(e===0)break;e--}else n!==bc&&n!==sr&&n!==Zr&&n!==Ps||e++;n=a}while(n)}function A1(e){Vv(e,!0)}function O1(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function T1(e){e.nodeValue=""}function R1(e){Vv(e,!1)}function j1(e,t){t=t[HE],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function V1(e,t){e.nodeValue=t}function Am(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Am(n),S(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function _1(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ri])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){Oe(o.name,"name");var l=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=ya(e.nextSibling),e===null)break}return null}function M1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ya(e.nextSibling),e===null))return null;return e}function _v(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=ya(e.nextSibling),e===null))return null;return e}function Om(e){return e.data===sr||e.data===Zr}function Tm(e){return e.data===Ps||e.data===sr&&e.ownerDocument.readyState!==S0}function z1(e,t){var n=e.ownerDocument;if(e.data===Zr)e._reactRetry=t;else if(e.data!==sr||n.readyState!==S0)t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function ya(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===bc||t===Ps||t===sr||t===Zr||t===Qr||t===ih||t===E0)break;if(t===vc||t===Ad)return null}}return e}function Mv(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},a=e.attributes,o=0;o<a.length;o++){var l=a[o];n[Ev(l.name)]=l.name.toLowerCase()==="style"?Dm(e):l.value}return{type:t,props:n}}return e.nodeType===8?e.data===Qr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function zv(e,t,n){return n===null||n[VE]!==!0?(e.nodeValue===t?e=null:(t=zl(t),e=zl(e.nodeValue)===t?null:e.nodeValue),e):null}function Rm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===vc||n===Ad){if(t===0)return ya(e.nextSibling);t--}else n!==bc&&n!==Ps&&n!==sr&&n!==Zr&&n!==Qr||t++}e=e.nextSibling}return null}function Hv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===bc||n===Ps||n===sr||n===Zr||n===Qr){if(t===0)return e;t--}else n!==vc&&n!==Ad||t++}e=e.previousSibling}return null}function H1(e){bs(e)}function L1(e){bs(e)}function $1(e){bs(e)}function Lv(e,t,n,a,o){switch(o&&eo(e,a.ancestorInfo),t=xu(n),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function B1(e,t,n,a){if(!n[Gl]&&X(n)){var o=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",o,o,o)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Dn(n,e,t),n[Cn]=a,n[Yn]=t}function Di(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);S(e)}function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function $v(e,t,n){var a=ei;if(a&&typeof t=="string"&&t){var o=Re(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),O0.has(o)||(O0.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),Dn(t,"link",e),J(t),a.head.appendChild(t)))}}function Bv(e,t,n,a){var o=(o=$l.current)?Eu(o):null;if(!o)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=hs(n.href),t=ye(o).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=hs(n.href);var l=ye(o).hoistableStyles,r=l.get(e);if(!r&&(o=o.ownerDocument||o,r={type:"stylesheet",instance:null,count:0,state:{loading:Kr,preload:null}},l.set(e,r),(l=o.querySelector(Ci(e)))&&!l._p&&(r.instance=l,r.state.loading=Nc|Xa),!Qa.has(e))){var i={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};Qa.set(e,i),l||G1(o,e,i,r.state)}if(t&&a===null)throw n=`
182
+
183
+ - `+Su(t)+`
184
+ + `+Su(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return r}if(t&&a!==null)throw n=`
185
+
186
+ - `+Su(t)+`
187
+ + `+Su(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=gs(n),t=ye(o).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Su(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):ro.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):ro.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):ro.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function hs(e){return'href="'+Re(e)+'"'}function Ci(e){return'link[rel="stylesheet"]['+e+"]"}function Gv(e){return Ge({},e,{"data-precedence":e.precedence,precedence:null})}function G1(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=Nc:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=Nc}),t.addEventListener("error",function(){return a.loading|=U0}),Dn(t,"link",n),J(t),e.head.appendChild(t))}function gs(e){return'[src="'+Re(e)+'"]'}function ki(e){return"script[async]"+e}function qv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Re(n.href)+'"]');if(a)return t.instance=a,J(a),a;var o=Ge({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),J(a),Dn(a,"style",o),Du(a,n.precedence,e),t.instance=a;case"stylesheet":o=hs(n.href);var l=e.querySelector(Ci(o));if(l)return t.state.loading|=Xa,t.instance=l,J(l),l;a=Gv(n),(o=Qa.get(o))&&jm(a,o),l=(e.ownerDocument||e).createElement("link"),J(l);var r=l;return r._p=new Promise(function(i,u){r.onload=i,r.onerror=u}),Dn(l,"link",a),t.state.loading|=Xa,Du(l,n.precedence,e),t.instance=l;case"script":return l=gs(n.src),(o=e.querySelector(ki(l)))?(t.instance=o,J(o),o):(a=n,(o=Qa.get(l))&&(a=Ge({},n),Vm(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),J(o),Dn(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&Xa)===Kr&&(a=t.instance,t.state.loading|=Xa,Du(a,n.precedence,e));return t.instance}function Du(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,l=o,r=0;r<a.length;r++){var i=a[r];if(i.dataset.precedence===t)l=i;else if(l!==o)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function jm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Iv(e,t,n){if(Td===null){var a=new Map,o=Td=new Map;o.set(n,a)}else o=Td,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var l=n[o];if(!(l[Ri]||l[Cn]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!==Es){var r=l.getAttribute(t)||"";r=e+r;var i=a.get(r);i?i.push(l):a.set(r,[l])}}return a}function Yv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function q1(e,t,n){var a=!n.ancestorInfo.containerTagInScope;if(n.context===Fs||t.itemProp!=null)return!a||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){a&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var o=t.onError,l=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),o&&n.push("`onError`"),l!=null&&n.push("`disabled`"),o=y1(n,"and"),o+=n.length===1?" prop":" props",l=n.length===1?"an "+o:"the "+o,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,l,o)}a&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return t.rel==="stylesheet"?(e=t.precedence,t=t.disabled,typeof e!="string"&&a&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null):!0;case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){a&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":a&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Xv(e){return!(e.type==="stylesheet"&&(e.state.loading&A0)===Kr)}function I1(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&Xa)===Kr){if(n.instance===null){var o=hs(a.href),l=t.querySelector(Ci(o));if(l){t=l._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cu.bind(e),t.then(e,e)),n.state.loading|=Xa,n.instance=l,J(l);return}l=t.ownerDocument||t,a=Gv(a),(o=Qa.get(o))&&jm(a,o),l=l.createElement("link"),J(l);var r=l;r._p=new Promise(function(i,u){r.onload=i,r.onerror=u}),Dn(l,"link",a),n.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&A0)===Kr&&(e.count++,n=Cu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}function Y1(e,t){return e.stylesheets&&e.count===0&&ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&ku(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},BE+t);0<e.imgBytes&&mh===0&&(mh=125*N1()*qE);var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ku(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>mh?50:GE)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rd=new Map,t.forEach(X1,e),Rd=null,Cu.call(e))}function X1(e,t){if(!(t.state.loading&Xa)){var n=Rd.get(e);if(n)var a=n.get(ph);else{n=new Map,Rd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<o.length;l++){var r=o[l];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),a=r)}a&&n.set(ph,a)}o=t.instance,r=o.getAttribute("data-precedence"),l=n.get(r)||a,l===a&&n.set(ph,o),n.set(r,o),this.count++,a=Cu.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),l?l.parentNode.insertBefore(o,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=Xa}}function Q1(e,t,n,a,o,l,r,i,u){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Jr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nt(0),this.hiddenUpdates=nt(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=l,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function Qv(e,t,n,a,o,l,r,i,u,f,x,E){return e=new Q1(e,t,n,r,u,f,x,E,i),t=mE,l===!0&&(t|=_n|so),t|=_e,l=k(3,null,null,t),e.current=l,l.stateNode=e,t=sf(),wr(t),e.pooledCache=t,wr(t),l.memoizedState={element:a,isDehydrated:n,cache:t},mf(l),e}function Zv(e){return e?(e=Xl,e):Xl}function _m(e,t,n,a,o,l){if(Vn&&typeof Vn.onScheduleFiberRoot=="function")try{Vn.onScheduleFiberRoot(ws,a,n)}catch(r){Bo||(Bo=!0,console.error("React instrumentation encountered an error: %o",r))}o=Zv(o),a.context===null?a.context=o:a.pendingContext=o,$o&&wa!==null&&!V0&&(V0=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
188
+
189
+ Check the render method of %s.`,ee(wa)||"Unknown")),a=Tl(t),a.payload={element:n},l=l===void 0?null:l,l!==null&&(typeof l!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",l),a.callback=l),n=Rl(e,a,t),n!==null&&(Do(t,"root.render()",null),Lt(n,e,t),si(n,e,t))}function Jv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mm(e,t){Jv(e,t),(e=e.alternate)&&Jv(e,t)}function Kv(e){if(e.tag===13||e.tag===31){var t=jn(e,67108864);t!==null&&Lt(t,e,67108864),Mm(e,67108864)}}function Wv(e){if(e.tag===13||e.tag===31){var t=va(e);t=un(t);var n=jn(e,t);n!==null&&Lt(n,e,t),Mm(e,t)}}function Z1(){return wa}function J1(e,t,n,a){var o=j.T;j.T=null;var l=it.p;try{it.p=_a,zm(e,t,n,a)}finally{it.p=l,j.T=o}}function K1(e,t,n,a){var o=j.T;j.T=null;var l=it.p;try{it.p=qo,zm(e,t,n,a)}finally{it.p=l,j.T=o}}function zm(e,t,n,a){if(Vd){var o=Hm(a);if(o===null)xm(e,t,a,_d,n),Fv(e,a);else if(W1(o,e,t,n,a))a.stopPropagation();else if(Fv(e,a),t&4&&-1<YE.indexOf(e)){for(;o!==null;){var l=X(o);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var r=Ln(l.pendingLanes);if(r!==0){var i=l;for(i.pendingLanes|=2,i.entangledLanes|=2;r;){var u=1<<31-In(r);i.entanglements[1]|=u,r&=~u}Mo(l),(Fe&(hn|Da))===Nn&&(bd=bn()+i0,wi(0))}}break;case 31:case 13:i=jn(l,2),i!==null&&Lt(i,l,2),fs(),Mm(l,2)}if(l=Hm(a),l===null&&xm(e,t,a,_d,n),l===o)break;o=l}o!==null&&a.stopPropagation()}else xm(e,t,a,null,n)}}function Hm(e){return e=y(e),Lm(e)}function Lm(e){if(_d=null,e=B(e),e!==null){var t=me(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=We(t),e!==null)return e;e=null}else if(n===31){if(e=vt(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _d=e,null}function Pv(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 _a;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 qo;case"message":switch(sx()){case Fm:return _a;case ep:return qo;case Ns:case ix:return il;case tp:return zu;default:return il}default:return il}}function Fv(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":cr=null;break;case"mouseover":case"mouseout":ur=null;break;case"pointerover":case"pointerout":xc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ec.delete(t.pointerId)}}function Ui(e,t,n,a,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:l,targetContainers:[o]},t!==null&&(t=X(t),t!==null&&Kv(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function W1(e,t,n,a,o){switch(t){case"focusin":return ir=Ui(ir,e,t,n,a,o),!0;case"dragenter":return cr=Ui(cr,e,t,n,a,o),!0;case"mouseover":return ur=Ui(ur,e,t,n,a,o),!0;case"pointerover":var l=o.pointerId;return xc.set(l,Ui(xc.get(l)||null,e,t,n,a,o)),!0;case"gotpointercapture":return l=o.pointerId,Ec.set(l,Ui(Ec.get(l)||null,e,t,n,a,o)),!0}return!1}function ey(e){var t=B(e.target);if(t!==null){var n=me(t);if(n!==null){if(t=n.tag,t===13){if(t=We(n),t!==null){e.blockedOn=t,m(e.priority,function(){Wv(n)});return}}else if(t===31){if(t=vt(n),t!==null){e.blockedOn=t,m(e.priority,function(){Wv(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Uu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hm(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n),o=a;ji!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),ji=o,n.target.dispatchEvent(a),ji===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),ji=null}else return t=X(n),t!==null&&Kv(t),e.blockedOn=n,!1;t.shift()}return!0}function ty(e,t,n){Uu(e)&&n.delete(t)}function P1(){hh=!1,ir!==null&&Uu(ir)&&(ir=null),cr!==null&&Uu(cr)&&(cr=null),ur!==null&&Uu(ur)&&(ur=null),xc.forEach(ty),Ec.forEach(ty)}function Au(e,t){e.blockedOn===t&&(e.blockedOn=null,hh||(hh=!0,en.unstable_scheduleCallback(en.unstable_NormalPriority,P1)))}function ny(e){Md!==e&&(Md=e,en.unstable_scheduleCallback(en.unstable_NormalPriority,function(){Md===e&&(Md=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Lm(a||n)===null)continue;break}var l=X(n);l!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:o,method:n.method,action:a},Object.freeze(n),Lf(l,n,a,o))}}))}function bs(e){function t(u){return Au(u,e)}ir!==null&&Au(ir,e),cr!==null&&Au(cr,e),ur!==null&&Au(ur,e),xc.forEach(t),Ec.forEach(t);for(var n=0;n<dr.length;n++){var a=dr[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<dr.length&&(n=dr[0],n.blockedOn===null);)ey(n),n.blockedOn===null&&dr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],l=n[a+1],r=o[Yn]||null;if(typeof l=="function")r||ny(n);else if(r){var i=null;if(l&&l.hasAttribute("formAction")){if(o=l,r=l[Yn]||null)i=r.formAction;else if(Lm(o)!==null)continue}else i=r.action;typeof i=="function"?n[a+1]=i:(n.splice(a,3),a-=3),ny(n)}}}function ay(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(r){return o=r})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function $m(e){this._internalRoot=e}function Ou(e){this._internalRoot=e}function oy(e){e[Gl]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var en=WE(),Bm=Gd(),F1=FE(),Ge=Object.assign,ex=Symbol.for("react.element"),Ho=Symbol.for("react.transitional.element"),vs=Symbol.for("react.portal"),ys=Symbol.for("react.fragment"),Tu=Symbol.for("react.strict_mode"),Gm=Symbol.for("react.profiler"),qm=Symbol.for("react.consumer"),Lo=Symbol.for("react.context"),Ai=Symbol.for("react.forward_ref"),Im=Symbol.for("react.suspense"),Ym=Symbol.for("react.suspense_list"),Ru=Symbol.for("react.memo"),Na=Symbol.for("react.lazy"),Xm=Symbol.for("react.activity"),tx=Symbol.for("react.memo_cache_sentinel"),ly=Symbol.iterator,nx=Symbol.for("react.client.reference"),mn=Array.isArray,j=Bm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it=F1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ax=Object.freeze({pending:!1,data:null,method:null,action:null}),Qm=[],Zm=[],sl=-1,Ll=pt(null),Oi=pt(null),$l=pt(null),ju=pt(null),Ti=0,ry,sy,iy,cy,uy,dy,fy;Pe.__reactDisabledLog=!0;var Jm,my,Km=!1,Wm=new(typeof WeakMap=="function"?WeakMap:Map),wa=null,$o=!1,ro=Object.prototype.hasOwnProperty,Pm=en.unstable_scheduleCallback,ox=en.unstable_cancelCallback,lx=en.unstable_shouldYield,rx=en.unstable_requestPaint,bn=en.unstable_now,sx=en.unstable_getCurrentPriorityLevel,Fm=en.unstable_ImmediatePriority,ep=en.unstable_UserBlockingPriority,Ns=en.unstable_NormalPriority,ix=en.unstable_LowPriority,tp=en.unstable_IdlePriority,cx=en.log,ux=en.unstable_setDisableYieldValue,ws=null,Vn=null,Bo=!1,Go=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",In=Math.clz32?Math.clz32:Hn,dx=Math.log,fx=Math.LN2,Vu=256,_u=262144,Mu=4194304,_a=2,qo=8,il=32,zu=268435456,Bl=Math.random().toString(36).slice(2),Cn="__reactFiber$"+Bl,Yn="__reactProps$"+Bl,Gl="__reactContainer$"+Bl,np="__reactEvents$"+Bl,mx="__reactListeners$"+Bl,px="__reactHandles$"+Bl,py="__reactResources$"+Bl,Ri="__reactMarker$"+Bl,hy=new Set,Ur={},ap={},hx={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gx=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]*$"),gy={},by={},bx=/[\n"\\]/g,vy=!1,yy=!1,Ny=!1,wy=!1,xy=!1,Ey=!1,Sy=["value","defaultValue"],Dy=!1,Cy=/["'&<>\n\t]|^\s|\s$/,vx="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ky="applet caption html table td th marquee object template foreignObject desc title".split(" "),yx=ky.concat(["button"]),Nx="dd dt li option optgroup p rp rt".split(" "),Uy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Hu={},op={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Ay=/([A-Z])/g,Oy=/^ms-/,wx=/^(?:webkit|moz|o)[A-Z]/,xx=/^-ms-/,Ex=/-(.)/g,Ty=/;\s*$/,xs={},lp={},Ry=!1,jy=!1,Vy=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(" ")),Lu="http://www.w3.org/1998/Math/MathML",Es="http://www.w3.org/2000/svg",Sx=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"]]),$u={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},_y={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Ss={},Dx=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cx=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),My=!1,Xn={},zy=/^on./,kx=/^on[^A-Z]/,Ux=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ax=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ox=/^[\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,ji=null,Ds=null,Cs=null,rp=!1,Io=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sp=!1;if(Io)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){sp=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{sp=!1}var ql=null,ip=null,Bu=null,Ar={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=pe(Ar),_i=Ge({},Ar,{view:0,detail:0}),Tx=pe(_i),cp,up,Mi,qu=Ge({},_i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wo,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!==Mi&&(Mi&&e.type==="mousemove"?(cp=e.screenX-Mi.screenX,up=e.screenY-Mi.screenY):up=cp=0,Mi=e),cp)},movementY:function(e){return"movementY"in e?e.movementY:up}}),Hy=pe(qu),Rx=Ge({},qu,{dataTransfer:0}),jx=pe(Rx),Vx=Ge({},_i,{relatedTarget:0}),dp=pe(Vx),_x=Ge({},Ar,{animationName:0,elapsedTime:0,pseudoElement:0}),Mx=pe(_x),zx=Ge({},Ar,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hx=pe(zx),Lx=Ge({},Ar,{data:0}),Ly=pe(Lx),$x=Ly,Bx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gx={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"},qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ix=Ge({},_i,{key:function(e){if(e.key){var t=Bx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ot(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wo,charCode:function(e){return e.type==="keypress"?ot(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ot(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Yx=pe(Ix),Xx=Ge({},qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$y=pe(Xx),Qx=Ge({},_i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wo}),Zx=pe(Qx),Jx=Ge({},Ar,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kx=pe(Jx),Wx=Ge({},qu,{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}),Px=pe(Wx),Fx=Ge({},Ar,{newState:0,oldState:0}),eE=pe(Fx),tE=[9,13,27,32],By=229,fp=Io&&"CompositionEvent"in window,zi=null;Io&&"documentMode"in document&&(zi=document.documentMode);var nE=Io&&"TextEvent"in window&&!zi,Gy=Io&&(!fp||zi&&8<zi&&11>=zi),qy=32,Iy=String.fromCharCode(qy),Yy=!1,ks=!1,aE={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},Hi=null,Li=null,Xy=!1;Io&&(Xy=Ew("input")&&(!document.documentMode||9<document.documentMode));var Qn=typeof Object.is=="function"?Object.is:Aw,oE=Io&&"documentMode"in document&&11>=document.documentMode,Us=null,mp=null,$i=null,pp=!1,As={animationend:pr("Animation","AnimationEnd"),animationiteration:pr("Animation","AnimationIteration"),animationstart:pr("Animation","AnimationStart"),transitionrun:pr("Transition","TransitionRun"),transitionstart:pr("Transition","TransitionStart"),transitioncancel:pr("Transition","TransitionCancel"),transitionend:pr("Transition","TransitionEnd")},hp={},Qy={};Io&&(Qy=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);var Zy=hr("animationend"),Jy=hr("animationiteration"),Ky=hr("animationstart"),lE=hr("transitionrun"),rE=hr("transitionstart"),sE=hr("transitioncancel"),Wy=hr("transitionend"),Py=new Map,gp="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(" ");gp.push("scrollEnd");var Fy=0;if(typeof performance=="object"&&typeof performance.now=="function")var iE=performance,eN=function(){return iE.now()};else{var cE=Date;eN=function(){return cE.now()}}var bp=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)},uE="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Iu=0,vp=1,yp=2,Np=3,Yu="– ",Xu="+ ",tN="  ",Et=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Ma="Components ⚛",Ze="Scheduler ⚛",Ke="Blocking",Il=!1,cl={color:"primary",properties:null,tooltipText:"",track:Ma},Yl={start:-0,end:-0,detail:{devtools:cl}},dE=["Changed Props",""],nN="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fE=["Changed Props",nN],Bi=1,ul=2,za=[],Os=0,wp=0,Xl={};Object.freeze(Xl);var Ha=null,Ts=null,xe=0,mE=1,_e=2,_n=8,so=16,pE=32,aN=!1;try{var oN=Object.preventExtensions({})}catch{aN=!0}var xp=new WeakMap,Rs=[],js=0,Qu=null,Gi=0,La=[],$a=0,Or=null,dl=1,fl="",kn=null,St=null,Ye=!1,Yo=!1,xa=null,Ql=null,Ba=!1,Ep=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Sp=pt(null),Dp=pt(null),lN={},Zu=null,Vs=null,_s=!1,hE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},gE=en.unstable_scheduleCallback,bE=en.unstable_NormalPriority,tn={$$typeof:Lo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},nn=en.unstable_now,Ju=console.createTask?console.createTask:function(){return null},qi=1,Ku=2,vn=-0,Zl=-0,ml=-0,pl=null,Zn=-1.1,Tr=-0,Vt=-0,ge=-1.1,we=-1.1,Tt=null,$t=!1,Rr=-0,Xo=-1.1,Ii=null,Jl=0,Cp=null,kp=null,jr=-1.1,Yi=null,Ms=-1.1,Wu=-1.1,hl=-0,gl=-1.1,Ga=-1.1,Up=0,Xi=null,rN=null,sN=null,Kl=-1.1,Vr=null,Wl=-1.1,Pu=-1.1,iN=-0,cN=-0,Fu=0,vE=null,uN=0,Qi=-1.1,ed=!1,td=!1,Zi=null,Ap=0,_r=0,zs=null,dN=j.S;j.S=function(e,t){if(r0=bn(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>gl&&0>Ga){gl=nn();var n=Si(),a=Ei();(n!==Wl||a!==Vr)&&(Wl=-1.1),Kl=n,Vr=a}Mw(e,t)}dN!==null&&dN(e,t)};var Mr=pt(null),io={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ji=[],Ki=[],Wi=[],Pi=[],Fi=[],ec=[],zr=new Set;io.recordUnsafeLifecycleWarnings=function(e,t){zr.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Ji.push(e),e.mode&_n&&typeof t.UNSAFE_componentWillMount=="function"&&Ki.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Wi.push(e),e.mode&_n&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Pi.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Fi.push(e),e.mode&_n&&typeof t.UNSAFE_componentWillUpdate=="function"&&ec.push(e))},io.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ji.length&&(Ji.forEach(function(i){e.add(ee(i)||"Component"),zr.add(i.type)}),Ji=[]);var t=new Set;0<Ki.length&&(Ki.forEach(function(i){t.add(ee(i)||"Component"),zr.add(i.type)}),Ki=[]);var n=new Set;0<Wi.length&&(Wi.forEach(function(i){n.add(ee(i)||"Component"),zr.add(i.type)}),Wi=[]);var a=new Set;0<Pi.length&&(Pi.forEach(function(i){a.add(ee(i)||"Component"),zr.add(i.type)}),Pi=[]);var o=new Set;0<Fi.length&&(Fi.forEach(function(i){o.add(ee(i)||"Component"),zr.add(i.type)}),Fi=[]);var l=new Set;if(0<ec.length&&(ec.forEach(function(i){l.add(ee(i)||"Component"),zr.add(i.type)}),ec=[]),0<t.size){var r=M(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
190
+
191
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
192
+
193
+ Please update the following components: %s`,r)}0<a.size&&(r=M(a),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
194
+
195
+ * Move data fetching code or side effects to componentDidUpdate.
196
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
197
+
198
+ Please update the following components: %s`,r)),0<l.size&&(r=M(l),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+
202
+ Please update the following components: %s`,r)),0<e.size&&(r=M(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
203
+
204
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
205
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
206
+
207
+ Please update the following components: %s`,r)),0<n.size&&(r=M(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move data fetching code or side effects to componentDidUpdate.
210
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
211
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
+
213
+ Please update the following components: %s`,r)),0<o.size&&(r=M(o),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
214
+
215
+ * Move data fetching code or side effects to componentDidUpdate.
216
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,r))};var nd=new Map,fN=new Set;io.recordLegacyContextWarning=function(e,t){for(var n=null,a=e;a!==null;)a.mode&_n&&(n=a),a=a.return;n===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!fN.has(e.type)&&(a=nd.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],nd.set(n,a)),a.push(e))},io.flushLegacyContextWarning=function(){nd.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(o){n.add(ee(o)||"Component"),fN.add(o.type)});var a=M(n);F(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
219
+
220
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
221
+
222
+ Please update the following components: %s
223
+
224
+ Learn more about this warning here: https://react.dev/link/legacy-context`,a)})}})},io.discardPendingWarnings=function(){Ji=[],Ki=[],Wi=[],Pi=[],Fi=[],ec=[],nd=new Map};var mN={react_stack_bottom_frame:function(e,t,n){var a=$o;$o=!0;try{return e(t,n)}finally{$o=a}}},Op=mN.react_stack_bottom_frame.bind(mN),pN={react_stack_bottom_frame:function(e){var t=$o;$o=!0;try{return e.render()}finally{$o=t}}},hN=pN.react_stack_bottom_frame.bind(pN),gN={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(n){st(e,e.return,n)}}},Tp=gN.react_stack_bottom_frame.bind(gN),bN={react_stack_bottom_frame:function(e,t,n,a,o){try{t.componentDidUpdate(n,a,o)}catch(l){st(e,e.return,l)}}},vN=bN.react_stack_bottom_frame.bind(bN),yN={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},yE=yN.react_stack_bottom_frame.bind(yN),NN={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(a){st(e,t,a)}}},wN=NN.react_stack_bottom_frame.bind(NN),xN={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},NE=xN.react_stack_bottom_frame.bind(xN),EN={react_stack_bottom_frame:function(e,t,n){try{n()}catch(a){st(e,t,a)}}},wE=EN.react_stack_bottom_frame.bind(EN),SN={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},xE=SN.react_stack_bottom_frame.bind(SN),Hs=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Rp=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ad=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),od={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Hr=null,tc=!1,Ls=null,nc=0,Me=null,jp,DN=jp=!1,CN={},kN={},UN={};fe=function(e,t,n){if(n!==null&&typeof n=="object"&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var a=ee(e),o=a||"null";if(!CN[o]){CN[o]=!0,n=n._owner,e=e._debugOwner;var l="";e&&typeof e.tag=="number"&&(o=ee(e))&&(l=`
225
+
226
+ Check the render method of \``+o+"`."),l||a&&(l=`
227
+
228
+ Check the top-level render call using <`+a+">.");var r="";n!=null&&e!==n&&(a=null,typeof n.tag=="number"?a=ee(n):typeof n.name=="string"&&(a=n.name),a&&(r=" It was passed a child from "+a+".")),F(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',l,r)})}}};var Lr=Ng(!0),AN=Ng(!1),ON=0,TN=1,RN=2,Vp=3,Pl=!1,jN=!1,_p=null,Mp=!1,$s=pt(null),ld=pt(0),Ea=pt(null),qa=null,Bs=1,ac=2,Zt=pt(0),rd=0,Ia=1,Jn=2,Sa=4,Kn=8,Gs,VN=new Set,_N=new Set,zp=new Set,MN=new Set,bl=0,De=null,gt=null,an=null,sd=!1,qs=!1,$r=!1,id=0,oc=0,vl=null,EE=0,SE=25,O=null,Ya=null,yl=-1,lc=!1,rc={readContext:Ot,use:_l,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};rc.useEffectEvent=Bt;var Hp=null,zN=null,Lp=null,HN=null,Qo=null,co=null,cd=null;Hp={readContext:function(e){return Ot(e)},use:_l,useCallback:function(e,t){return O="useCallback",Be(),ls(t),_f(e,t)},useContext:function(e){return O="useContext",Be(),Ot(e)},useEffect:function(e,t){return O="useEffect",Be(),ls(t),nu(e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",Be(),ls(n),Vf(e,t,n)},useInsertionEffect:function(e,t){O="useInsertionEffect",Be(),ls(t),Er(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",Be(),ls(t),jf(e,t)},useMemo:function(e,t){O="useMemo",Be(),ls(t);var n=j.H;j.H=Qo;try{return Mf(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",Be();var a=j.H;j.H=Qo;try{return Sf(e,t,n)}finally{j.H=a}},useRef:function(e){return O="useRef",Be(),Tf(e)},useState:function(e){O="useState",Be();var t=j.H;j.H=Qo;try{return Uf(e)}finally{j.H=t}},useDebugValue:function(){O="useDebugValue",Be()},useDeferredValue:function(e,t){return O="useDeferredValue",Be(),zf(e,t)},useTransition:function(){return O="useTransition",Be(),$f()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",Be(),Cf(e,t,n)},useId:function(){return O="useId",Be(),Bf()},useFormState:function(e,t){return O="useFormState",Be(),Wc(),ss(e,t)},useActionState:function(e,t){return O="useActionState",Be(),ss(e,t)},useOptimistic:function(e){return O="useOptimistic",Be(),Af(e)},useHostTransitionStatus:Sr,useMemoCache:xr,useCacheRefresh:function(){return O="useCacheRefresh",Be(),Gf()},useEffectEvent:function(e){return O="useEffectEvent",Be(),Rf(e)}},zN={readContext:function(e){return Ot(e)},use:_l,useCallback:function(e,t){return O="useCallback",Y(),_f(e,t)},useContext:function(e){return O="useContext",Y(),Ot(e)},useEffect:function(e,t){return O="useEffect",Y(),nu(e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",Y(),Vf(e,t,n)},useInsertionEffect:function(e,t){O="useInsertionEffect",Y(),Er(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",Y(),jf(e,t)},useMemo:function(e,t){O="useMemo",Y();var n=j.H;j.H=Qo;try{return Mf(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",Y();var a=j.H;j.H=Qo;try{return Sf(e,t,n)}finally{j.H=a}},useRef:function(e){return O="useRef",Y(),Tf(e)},useState:function(e){O="useState",Y();var t=j.H;j.H=Qo;try{return Uf(e)}finally{j.H=t}},useDebugValue:function(){O="useDebugValue",Y()},useDeferredValue:function(e,t){return O="useDeferredValue",Y(),zf(e,t)},useTransition:function(){return O="useTransition",Y(),$f()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",Y(),Cf(e,t,n)},useId:function(){return O="useId",Y(),Bf()},useActionState:function(e,t){return O="useActionState",Y(),ss(e,t)},useFormState:function(e,t){return O="useFormState",Y(),Wc(),ss(e,t)},useOptimistic:function(e){return O="useOptimistic",Y(),Af(e)},useHostTransitionStatus:Sr,useMemoCache:xr,useCacheRefresh:function(){return O="useCacheRefresh",Y(),Gf()},useEffectEvent:function(e){return O="useEffectEvent",Y(),Rf(e)}},Lp={readContext:function(e){return Ot(e)},use:_l,useCallback:function(e,t){return O="useCallback",Y(),lu(e,t)},useContext:function(e){return O="useContext",Y(),Ot(e)},useEffect:function(e,t){O="useEffect",Y(),aa(2048,Kn,e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",Y(),ou(e,t,n)},useInsertionEffect:function(e,t){return O="useInsertionEffect",Y(),aa(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",Y(),aa(4,Sa,e,t)},useMemo:function(e,t){O="useMemo",Y();var n=j.H;j.H=co;try{return ru(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",Y();var a=j.H;j.H=co;try{return rs(e,t,n)}finally{j.H=a}},useRef:function(){return O="useRef",Y(),ft().memoizedState},useState:function(){O="useState",Y();var e=j.H;j.H=co;try{return rs(oo)}finally{j.H=e}},useDebugValue:function(){O="useDebugValue",Y()},useDeferredValue:function(e,t){return O="useDeferredValue",Y(),Gg(e,t)},useTransition:function(){return O="useTransition",Y(),Zg()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",Y(),Fc(e,t,n)},useId:function(){return O="useId",Y(),ft().memoizedState},useFormState:function(e){return O="useFormState",Y(),Wc(),eu(e)},useActionState:function(e){return O="useActionState",Y(),eu(e)},useOptimistic:function(e,t){return O="useOptimistic",Y(),Rg(e,t)},useHostTransitionStatus:Sr,useMemoCache:xr,useCacheRefresh:function(){return O="useCacheRefresh",Y(),ft().memoizedState},useEffectEvent:function(e){return O="useEffectEvent",Y(),au(e)}},HN={readContext:function(e){return Ot(e)},use:_l,useCallback:function(e,t){return O="useCallback",Y(),lu(e,t)},useContext:function(e){return O="useContext",Y(),Ot(e)},useEffect:function(e,t){O="useEffect",Y(),aa(2048,Kn,e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",Y(),ou(e,t,n)},useInsertionEffect:function(e,t){return O="useInsertionEffect",Y(),aa(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",Y(),aa(4,Sa,e,t)},useMemo:function(e,t){O="useMemo",Y();var n=j.H;j.H=cd;try{return ru(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",Y();var a=j.H;j.H=cd;try{return di(e,t,n)}finally{j.H=a}},useRef:function(){return O="useRef",Y(),ft().memoizedState},useState:function(){O="useState",Y();var e=j.H;j.H=cd;try{return di(oo)}finally{j.H=e}},useDebugValue:function(){O="useDebugValue",Y()},useDeferredValue:function(e,t){return O="useDeferredValue",Y(),qg(e,t)},useTransition:function(){return O="useTransition",Y(),Jg()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",Y(),Fc(e,t,n)},useId:function(){return O="useId",Y(),ft().memoizedState},useFormState:function(e){return O="useFormState",Y(),Wc(),tu(e)},useActionState:function(e){return O="useActionState",Y(),tu(e)},useOptimistic:function(e,t){return O="useOptimistic",Y(),Vg(e,t)},useHostTransitionStatus:Sr,useMemoCache:xr,useCacheRefresh:function(){return O="useCacheRefresh",Y(),ft().memoizedState},useEffectEvent:function(e){return O="useEffectEvent",Y(),au(e)}},Qo={readContext:function(e){return ce(),Ot(e)},use:function(e){return V(),_l(e)},useCallback:function(e,t){return O="useCallback",V(),Be(),_f(e,t)},useContext:function(e){return O="useContext",V(),Be(),Ot(e)},useEffect:function(e,t){return O="useEffect",V(),Be(),nu(e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",V(),Be(),Vf(e,t,n)},useInsertionEffect:function(e,t){O="useInsertionEffect",V(),Be(),Er(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",V(),Be(),jf(e,t)},useMemo:function(e,t){O="useMemo",V(),Be();var n=j.H;j.H=Qo;try{return Mf(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",V(),Be();var a=j.H;j.H=Qo;try{return Sf(e,t,n)}finally{j.H=a}},useRef:function(e){return O="useRef",V(),Be(),Tf(e)},useState:function(e){O="useState",V(),Be();var t=j.H;j.H=Qo;try{return Uf(e)}finally{j.H=t}},useDebugValue:function(){O="useDebugValue",V(),Be()},useDeferredValue:function(e,t){return O="useDeferredValue",V(),Be(),zf(e,t)},useTransition:function(){return O="useTransition",V(),Be(),$f()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",V(),Be(),Cf(e,t,n)},useId:function(){return O="useId",V(),Be(),Bf()},useFormState:function(e,t){return O="useFormState",V(),Be(),ss(e,t)},useActionState:function(e,t){return O="useActionState",V(),Be(),ss(e,t)},useOptimistic:function(e){return O="useOptimistic",V(),Be(),Af(e)},useMemoCache:function(e){return V(),xr(e)},useHostTransitionStatus:Sr,useCacheRefresh:function(){return O="useCacheRefresh",Be(),Gf()},useEffectEvent:function(e){return O="useEffectEvent",V(),Be(),Rf(e)}},co={readContext:function(e){return ce(),Ot(e)},use:function(e){return V(),_l(e)},useCallback:function(e,t){return O="useCallback",V(),Y(),lu(e,t)},useContext:function(e){return O="useContext",V(),Y(),Ot(e)},useEffect:function(e,t){O="useEffect",V(),Y(),aa(2048,Kn,e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",V(),Y(),ou(e,t,n)},useInsertionEffect:function(e,t){return O="useInsertionEffect",V(),Y(),aa(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",V(),Y(),aa(4,Sa,e,t)},useMemo:function(e,t){O="useMemo",V(),Y();var n=j.H;j.H=co;try{return ru(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",V(),Y();var a=j.H;j.H=co;try{return rs(e,t,n)}finally{j.H=a}},useRef:function(){return O="useRef",V(),Y(),ft().memoizedState},useState:function(){O="useState",V(),Y();var e=j.H;j.H=co;try{return rs(oo)}finally{j.H=e}},useDebugValue:function(){O="useDebugValue",V(),Y()},useDeferredValue:function(e,t){return O="useDeferredValue",V(),Y(),Gg(e,t)},useTransition:function(){return O="useTransition",V(),Y(),Zg()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",V(),Y(),Fc(e,t,n)},useId:function(){return O="useId",V(),Y(),ft().memoizedState},useFormState:function(e){return O="useFormState",V(),Y(),eu(e)},useActionState:function(e){return O="useActionState",V(),Y(),eu(e)},useOptimistic:function(e,t){return O="useOptimistic",V(),Y(),Rg(e,t)},useMemoCache:function(e){return V(),xr(e)},useHostTransitionStatus:Sr,useCacheRefresh:function(){return O="useCacheRefresh",Y(),ft().memoizedState},useEffectEvent:function(e){return O="useEffectEvent",V(),Y(),au(e)}},cd={readContext:function(e){return ce(),Ot(e)},use:function(e){return V(),_l(e)},useCallback:function(e,t){return O="useCallback",V(),Y(),lu(e,t)},useContext:function(e){return O="useContext",V(),Y(),Ot(e)},useEffect:function(e,t){O="useEffect",V(),Y(),aa(2048,Kn,e,t)},useImperativeHandle:function(e,t,n){return O="useImperativeHandle",V(),Y(),ou(e,t,n)},useInsertionEffect:function(e,t){return O="useInsertionEffect",V(),Y(),aa(4,Jn,e,t)},useLayoutEffect:function(e,t){return O="useLayoutEffect",V(),Y(),aa(4,Sa,e,t)},useMemo:function(e,t){O="useMemo",V(),Y();var n=j.H;j.H=co;try{return ru(e,t)}finally{j.H=n}},useReducer:function(e,t,n){O="useReducer",V(),Y();var a=j.H;j.H=co;try{return di(e,t,n)}finally{j.H=a}},useRef:function(){return O="useRef",V(),Y(),ft().memoizedState},useState:function(){O="useState",V(),Y();var e=j.H;j.H=co;try{return di(oo)}finally{j.H=e}},useDebugValue:function(){O="useDebugValue",V(),Y()},useDeferredValue:function(e,t){return O="useDeferredValue",V(),Y(),qg(e,t)},useTransition:function(){return O="useTransition",V(),Y(),Jg()},useSyncExternalStore:function(e,t,n){return O="useSyncExternalStore",V(),Y(),Fc(e,t,n)},useId:function(){return O="useId",V(),Y(),ft().memoizedState},useFormState:function(e){return O="useFormState",V(),Y(),tu(e)},useActionState:function(e){return O="useActionState",V(),Y(),tu(e)},useOptimistic:function(e,t){return O="useOptimistic",V(),Y(),Vg(e,t)},useMemoCache:function(e){return V(),xr(e)},useHostTransitionStatus:Sr,useCacheRefresh:function(){return O="useCacheRefresh",Y(),ft().memoizedState},useEffectEvent:function(e){return O="useEffectEvent",V(),Y(),au(e)}};var LN={},$N=new Set,BN=new Set,GN=new Set,qN=new Set,IN=new Set,YN=new Set,XN=new Set,QN=new Set,ZN=new Set,JN=new Set;Object.freeze(LN);var $p={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=va(e),o=Tl(a);o.payload=t,n!=null&&(If(n),o.callback=n),t=Rl(e,o,a),t!==null&&(Do(a,"this.setState()",e),Lt(t,e,a),si(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=va(e),o=Tl(a);o.tag=TN,o.payload=t,n!=null&&(If(n),o.callback=n),t=Rl(e,o,a),t!==null&&(Do(a,"this.replaceState()",e),Lt(t,e,a),si(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=va(e),a=Tl(n);a.tag=RN,t!=null&&(If(t),a.callback=t),t=Rl(e,a,n),t!==null&&(Do(n,"this.forceUpdate()",e),Lt(t,e,n),si(t,e,n))}},Is=null,Bp=null,Gp=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),on=!1,KN={},WN={},PN={},FN={},Ys=!1,e0={},ud={},qp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},t0=!1,n0=null;n0=new Set;var Nl=!1,ln=!1,Ip=!1,a0=typeof WeakSet=="function"?WeakSet:Set,yn=null,Xs=null,Qs=null,rn=null,ra=!1,uo=null,pn=!1,sc=8192,DE={getCacheForType:function(e){var t=Ot(tn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ot(tn).controller.signal},getOwner:function(){return wa}};if(typeof Symbol=="function"&&Symbol.for){var ic=Symbol.for;ic("selector.component"),ic("selector.has_pseudo_class"),ic("selector.role"),ic("selector.test_id"),ic("selector.text")}var CE=[],kE=typeof WeakMap=="function"?WeakMap:Map,Nn=0,hn=2,Da=4,wl=0,cc=1,Br=2,dd=3,Fl=4,fd=6,o0=5,Fe=Nn,bt=null,$e=null,ze=0,sa=0,md=1,Gr=2,uc=3,l0=4,Yp=5,dc=6,pd=7,Xp=8,qr=9,mt=sa,Ca=null,er=!1,Zs=!1,Qp=!1,Zo=0,_t=wl,tr=0,nr=0,Zp=0,ia=0,Ir=0,fc=null,Wn=null,hd=!1,gd=0,r0=0,s0=300,bd=1/0,i0=500,mc=null,Gt=null,ar=null,vd=0,Jp=1,Kp=2,c0=3,or=0,u0=1,d0=2,f0=3,m0=4,yd=5,sn=0,lr=null,Js=null,fo=0,Wp=0,Pp=-0,Fp=null,p0=null,h0=null,mo=vd,g0=null,UE=50,pc=0,eh=null,th=!1,Nd=!1,AE=50,Yr=0,hc=null,Ks=!1,wd=null,b0=!1,v0=new Set,OE={},xd=null,Ws=null,nh=!1,ah=!1,Ed=!1,oh=!1,rr=0,lh={};(function(){for(var e=0;e<gp.length;e++){var t=gp[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),no(n,"on"+t)}no(Zy,"onAnimationEnd"),no(Jy,"onAnimationIteration"),no(Ky,"onAnimationStart"),no("dblclick","onDoubleClick"),no("focusin","onFocus"),no("focusout","onBlur"),no(lE,"onTransitionRun"),no(rE,"onTransitionStart"),no(sE,"onTransitionCancel"),no(Wy,"onTransitionEnd")})(),Ne("onMouseEnter",["mouseout","mouseover"]),Ne("onMouseLeave",["mouseout","mouseover"]),Ne("onPointerEnter",["pointerout","pointerover"]),Ne("onPointerLeave",["pointerout","pointerover"]),Te("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Te("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Te("onBeforeInput",["compositionend","keypress","textInput","paste"]),Te("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Te("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Te("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gc="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(" "),rh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gc)),Sd="_reactListening"+Math.random().toString(36).slice(2),y0=!1,N0=!1,Dd=!1,w0=!1,Cd=!1,kd=!1,x0=!1,Ud={},TE=/\r\n?/g,RE=/\u0000|\uFFFD/g,Xr="http://www.w3.org/1999/xlink",sh="http://www.w3.org/XML/1998/namespace",jE="javascript:throw new Error('React form unexpectedly submitted.')",VE="suppressHydrationWarning",Qr="&",Ad="/&",bc="$",vc="/$",sr="$?",Zr="$~",Ps="$!",_E="html",ME="body",zE="head",ih="F!",E0="F",S0="loading",HE="style",xl=0,Fs=1,Od=2,ch=null,uh=null,D0={dialog:!0,webview:!0},dh=null,yc=void 0,C0=typeof setTimeout=="function"?setTimeout:void 0,LE=typeof clearTimeout=="function"?clearTimeout:void 0,Jr=-1,k0=typeof Promise=="function"?Promise:void 0,$E=typeof queueMicrotask=="function"?queueMicrotask:typeof k0<"u"?function(e){return k0.resolve(null).then(e).catch(x1)}:C0,fh=null,Kr=0,Nc=1,U0=2,A0=3,Xa=4,Qa=new Map,O0=new Set,El=it.d;it.d={f:function(){var e=El.f(),t=fs();return e||t},r:function(e){var t=X(e);t!==null&&t.tag===5&&t.type==="form"?Qg(t):El.r(e)},D:function(e){El.D(e),$v("dns-prefetch",e,null)},C:function(e,t){El.C(e,t),$v("preconnect",e,t)},L:function(e,t,n){El.L(e,t,n);var a=ei;if(a&&e&&t){var o='link[rel="preload"][as="'+Re(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Re(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Re(n.imageSizes)+'"]')):o+='[href="'+Re(e)+'"]';var l=o;switch(t){case"style":l=hs(e);break;case"script":l=gs(e)}Qa.has(l)||(e=Ge({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qa.set(l,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(Ci(l))||t==="script"&&a.querySelector(ki(l))||(t=a.createElement("link"),Dn(t,"link",e),J(t),a.head.appendChild(t)))}},m:function(e,t){El.m(e,t);var n=ei;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Re(a)+'"][href="'+Re(e)+'"]',l=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=gs(e)}if(!Qa.has(l)&&(e=Ge({rel:"modulepreload",href:e},t),Qa.set(l,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ki(l)))return}a=n.createElement("link"),Dn(a,"link",e),J(a),n.head.appendChild(a)}}},X:function(e,t){El.X(e,t);var n=ei;if(n&&e){var a=ye(n).hoistableScripts,o=gs(e),l=a.get(o);l||(l=n.querySelector(ki(o)),l||(e=Ge({src:e,async:!0},t),(t=Qa.get(o))&&Vm(e,t),l=n.createElement("script"),J(l),Dn(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(o,l))}},S:function(e,t,n){El.S(e,t,n);var a=ei;if(a&&e){var o=ye(a).hoistableStyles,l=hs(e);t=t||"default";var r=o.get(l);if(!r){var i={loading:Kr,preload:null};if(r=a.querySelector(Ci(l)))i.loading=Nc|Xa;else{e=Ge({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qa.get(l))&&jm(e,n);var u=r=a.createElement("link");J(u),Dn(u,"link",e),u._p=new Promise(function(f,x){u.onload=f,u.onerror=x}),u.addEventListener("load",function(){i.loading|=Nc}),u.addEventListener("error",function(){i.loading|=U0}),i.loading|=Xa,Du(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:i},o.set(l,r)}}},M:function(e,t){El.M(e,t);var n=ei;if(n&&e){var a=ye(n).hoistableScripts,o=gs(e),l=a.get(o);l||(l=n.querySelector(ki(o)),l||(e=Ge({src:e,async:!0,type:"module"},t),(t=Qa.get(o))&&Vm(e,t),l=n.createElement("script"),J(l),Dn(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},a.set(o,l))}}};var ei=typeof document>"u"?null:document,Td=null,BE=6e4,GE=800,qE=500,mh=0,ph=null,Rd=null,Wr=ax,wc={$$typeof:Lo,Provider:null,Consumer:null,_currentValue:Wr,_currentValue2:Wr,_threadCount:0},T0="%c%s%c",R0="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",j0="",jd=" ",IE=Function.prototype.bind,V0=!1,_0=null,M0=null,z0=null,H0=null,L0=null,$0=null,B0=null,G0=null,q0=null,I0=null;_0=function(e,t,n,a){t=d(e,t),t!==null&&(n=c(t.memoizedState,n,0,a),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ge({},e.memoizedProps),n=jn(e,2),n!==null&&Lt(n,e,2))},M0=function(e,t,n){t=d(e,t),t!==null&&(n=C(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ge({},e.memoizedProps),n=jn(e,2),n!==null&&Lt(n,e,2))},z0=function(e,t,n,a){t=d(e,t),t!==null&&(n=v(t.memoizedState,n,a),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ge({},e.memoizedProps),n=jn(e,2),n!==null&&Lt(n,e,2))},H0=function(e,t,n){e.pendingProps=c(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=jn(e,2),t!==null&&Lt(t,e,2)},L0=function(e,t){e.pendingProps=C(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=jn(e,2),t!==null&&Lt(t,e,2)},$0=function(e,t,n){e.pendingProps=v(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=jn(e,2),t!==null&&Lt(t,e,2)},B0=function(e){var t=jn(e,2);t!==null&&Lt(t,e,2)},G0=function(e){var t=Oa(),n=jn(e,t);n!==null&&Lt(n,e,t)},q0=function(e){z=e},I0=function(e){T=e};var Vd=!0,_d=null,hh=!1,ir=null,cr=null,ur=null,xc=new Map,Ec=new Map,dr=[],YE="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(" "),Md=null;if(Ou.prototype.render=$m.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):He(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var a=t.current,o=va(a);_m(a,o,n,t,null,null)},Ou.prototype.unmount=$m.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Fe&(hn|Da))!==Nn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),_m(e.current,2,null,e,null,null),fs(),t[Gl]=null}},Ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=Bn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dr.length&&t!==0&&t<dr[n].priority;n++);dr.splice(n,0,e),n===0&&ey(e)}},(function(){var e=Bm.version;if(e!=="19.2.8")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
229
+ - react: `+(e+`
230
+ - react-dom: 19.2.8
231
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),it.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=Ct(t),e=e!==null?Kt(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.8"};return e.overrideHookState=_0,e.overrideHookStateDeletePath=M0,e.overrideHookStateRenamePath=z0,e.overrideProps=H0,e.overridePropsDeletePath=L0,e.overridePropsRenamePath=$0,e.scheduleUpdate=B0,e.scheduleRetry=G0,e.setErrorHandler=q0,e.setSuspenseHandler=I0,e.scheduleRefresh=oe,e.scheduleRoot=_,e.setRefreshHandler=Se,e.getCurrentFiber=Z1,zn(e)})()&&Io&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Y0=window.location.protocol;/^(https?|file):$/.test(Y0)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Y0==="file:"?`
232
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Sc.createRoot=function(e,t){if(!He(e))throw Error("Target container is not a DOM element.");oy(e);var n=!1,a="",o=tb,l=nb,r=ab;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Ho&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
233
+
234
+ let root = createRoot(domContainer);
235
+ root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),t=Qv(e,1,!1,null,null,n,a,null,o,l,r,ay),e[Gl]=t.current,wm(e),new $m(t)},Sc.hydrateRoot=function(e,t,n){if(!He(e))throw Error("Target container is not a DOM element.");oy(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=!1,o="",l=tb,r=nb,i=ab,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(i=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Qv(e,1,!0,t,n??null,a,o,u,l,r,i,ay),t.context=Zv(null),n=t.current,a=va(n),a=un(a),o=Tl(a),o.callback=null,Rl(n,o,a),Do(a,"hydrateRoot()",null),n=a,t.current.lanes=n,On(t,n),Mo(t),e[Gl]=t.current,wm(e),new Ou(t)},Sc.version="19.2.8",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Sc}var tw;function tS(){return tw||(tw=1,vh.exports=eS()),vh.exports}var nS=tS();function Pr(d){if(d==null)return null;if(typeof d=="string")return d.trim()||null;if(typeof d=="number"||typeof d=="boolean")return String(d);if(typeof d=="object"){const c=d;if(typeof c.text=="string"&&c.text.trim())return c.text.trim();if(typeof c.errorMessage=="string"&&c.errorMessage.trim())return c.errorMessage.trim();if(Array.isArray(c.content)){const v=c.content.map(D=>{if(typeof D=="string")return D;if(D&&typeof D=="object"){const C=D;if(typeof C.text=="string")return C.text}return""}).filter(Boolean);if(v.length)return v.join(`
236
+ `).slice(0,240)}if(typeof c.role=="string")return`${c.role} 消息`}return null}function aS(d){const c=Pr(d.at)??Pr(d.timestamp)??Pr(d.recordedAt)??"",v=Pr(d.errorMessage)??Pr(d.label)??Pr(d.type)??Pr(d.message)??"运行事件";return c?`${c} · ${v}`:v}function Uc(d){return String(d.nodeId??d.id??"").trim()}function xh(d){const c=Uc(d);return String(d.label??d.name??(c||"未命名节点"))}function nw(d,c){if(d.length===0)return;const v=c?.trim();if(v){const T=d.find(z=>Uc(z)===v);if(T)return T}const D=d.find(T=>{const z=String(T.status??"").toLowerCase();return z.includes("fail")||z.includes("error")||z==="blocked"});return D||(d.find(T=>{const z=String(T.status??"").toLowerCase();return z==="running"||z==="in_progress"||z==="active"})??d[0])}function oS({dagRunId:d,nodeId:c,onClose:v,onOpenFull:D}){const C=N.useRef(null),[T,z]=N.useState(null),[V,ce]=N.useState([]),[Ie,fe]=N.useState(null),[M,k]=N.useState(!0);N.useEffect(()=>{C.current?.focus();const me=We=>{We.key==="Escape"&&v()};return document.addEventListener("keydown",me),document.title=`检视 · DAG ${d} · Loop Operator`,()=>document.removeEventListener("keydown",me)},[d,v]),N.useEffect(()=>{const me=new AbortController;return k(!0),fe(null),ce([]),(async()=>{try{const We=await fetch(`/api/dag-runs/${encodeURIComponent(d)}`,{signal:me.signal,credentials:"same-origin"});if(!We.ok)throw new Error(`DAG 查询失败(HTTP ${We.status})`);const vt=await We.json();if(me.signal.aborted)return;z(vt);const qt=Array.isArray(vt.nodes)?vt.nodes:[],Ct=nw(qt,c),Kt=Ct?Uc(Ct):c?.trim();if(Kt){const Rt=await fetch(`/api/dag-runs/${encodeURIComponent(d)}/nodes/${encodeURIComponent(Kt)}/session-events`,{signal:me.signal,credentials:"same-origin"});if(Rt.ok){const Ee=await Rt.json();me.signal.aborted||ce((Ee.events??[]).slice(-20))}}}catch(We){me.signal.aborted||fe(We instanceof Error?We.message:String(We))}finally{me.signal.aborted||k(!1)}})(),()=>me.abort()},[d,c]);const _=N.useMemo(()=>Array.isArray(T?.nodes)?T.nodes:[],[T]),oe=nw(_,c),Se=oe?Uc(oe):"",He=String(T?.effectiveStatus??T?.status??(M?"加载中…":"未知"));return s.jsxDEV("aside",{className:"inspect-split-panel","aria-label":"DAG 紧凑检视",children:[s.jsxDEV("div",{className:"inspect-split-header",children:[s.jsxDEV("div",{children:[s.jsxDEV("p",{className:"inspect-split-kicker",children:"Inspect"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:110,columnNumber:6},this),s.jsxDEV("h2",{children:"检视 DAG"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:111,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:109,columnNumber:5},this),s.jsxDEV("button",{ref:C,type:"button","aria-label":"关闭检视面板",onClick:v,children:"关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:113,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:108,columnNumber:4},this),s.jsxDEV("p",{className:"inspect-split-id",children:s.jsxDEV("code",{children:d},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:123,columnNumber:5},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:122,columnNumber:4},this),Ie?s.jsxDEV("p",{className:"error",children:Ie},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:125,columnNumber:13},this):null,M&&!T?s.jsxDEV("p",{className:"muted",children:"正在加载 DAG…"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:126,columnNumber:23},this):null,s.jsxDEV("dl",{className:"inspect-split-facts",children:[s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"状态"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:129,columnNumber:6},this),s.jsxDEV("dd",{children:He},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:130,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:128,columnNumber:5},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"当前节点"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:133,columnNumber:6},this),s.jsxDEV("dd",{children:oe?xh(oe):"暂无节点"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:134,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:132,columnNumber:5},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"节点状态"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:137,columnNumber:6},this),s.jsxDEV("dd",{children:oe?.status??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:138,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:136,columnNumber:5},this),oe?.errorPreview?s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"错误摘要"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:142,columnNumber:7},this),s.jsxDEV("dd",{children:oe.errorPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:143,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:141,columnNumber:6},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:127,columnNumber:4},this),s.jsxDEV("section",{children:[s.jsxDEV("h3",{children:["节点(",_.length,")"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:148,columnNumber:5},this),_.length?s.jsxDEV("ul",{className:"inspect-split-nodes",children:_.slice(0,24).map(me=>{const We=Uc(me)||xh(me),vt=We===Se;return s.jsxDEV("li",{"data-active":vt?"true":void 0,className:vt?"is-active":void 0,children:[s.jsxDEV("span",{children:xh(me)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:160,columnNumber:10},this),s.jsxDEV("code",{children:me.status??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:161,columnNumber:10},this)]},We,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:155,columnNumber:9},this)})},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:150,columnNumber:6},this):s.jsxDEV("p",{className:"muted",children:M?"加载节点中…":"该运行暂无节点。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:167,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:147,columnNumber:4},this),s.jsxDEV("section",{children:[s.jsxDEV("h3",{children:["最近事件",Se?` · ${Se}`:""]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:171,columnNumber:5},this),V.length?s.jsxDEV("ul",{className:"inspect-split-events",children:V.map((me,We)=>s.jsxDEV("li",{children:aS(me)},`${me.at??We}-${We}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:175,columnNumber:8},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:173,columnNumber:6},this):s.jsxDEV("p",{className:"muted",children:M?"加载事件中…":"节点事件将在可用时显示。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:181,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:170,columnNumber:4},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",onClick:D,children:"全屏观测"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:186,columnNumber:4},this),s.jsxDEV("p",{className:"muted",children:"全屏后点顶栏「返回操作台」可回来。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:189,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/InspectSplitPanel.tsx",lineNumber:107,columnNumber:3},this)}function lS(d){const c=[],v=d.split(`
237
+ `);let D=0,C=[];const T=()=>{const z=C.join(`
238
+ `).trimEnd();z&&c.push({type:"text",text:z}),C=[]};for(;D<v.length;){const z=v[D],V=z.match(/^\s*(`{3,}|~{3,})\s*([^\s`~]*)\s*$/);if(V){T();const ce=V[1][0],Ie=(V[2]??"").trim(),fe=[];for(D+=1;D<v.length;){const M=v[D];if(M.trim()===ce.repeat(V[1].length)){D+=1;break}if(new RegExp(`^\\s*${ce}{3,}`).test(M)){D+=1;break}fe.push(M),D+=1}c.push({type:"code",lang:Ie,text:fe.join(`
239
+ `)});continue}C.push(z),D+=1}return T(),c}const rS=/(`[^`]+`)|(\*\*[^*]+\*\*)|(\*[^*]+\*|_[^_]+_)|(~~[^~]+~~)|(\[[^\]]+\]\([^)\s]+\))/;function Dc(d,c){const v=[];let D=d,C=0;for(;D.length>0;){const T=rS.exec(D);if(!T||T.index===void 0){v.push(D);break}T.index>0&&v.push(D.slice(0,T.index));const z=T[0],V=`${c}-i${C++}`;if(z.startsWith("`"))v.push(s.jsxDEV("code",{children:z.slice(1,-1)},V,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:80,columnNumber:13},this));else if(z.startsWith("**"))v.push(s.jsxDEV("strong",{children:z.slice(2,-2)},V,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:82,columnNumber:13},this));else if(z.startsWith("*")||z.startsWith("_"))v.push(s.jsxDEV("em",{children:z.slice(1,-1)},V,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:84,columnNumber:13},this));else if(z.startsWith("~~"))v.push(s.jsxDEV("s",{children:z.slice(2,-2)},V,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:86,columnNumber:13},this));else if(z.startsWith("[")){const ce=z.match(/^\[([^\]]+)\]\(([^)\s]+)\)$/);ce?v.push(s.jsxDEV("a",{href:ce[2],target:"_blank",rel:"noreferrer noopener",children:ce[1]},V,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:91,columnNumber:6},this)):v.push(z)}D=D.slice(T.index+z.length)}return v}function sS({lang:d,text:c}){const[v,D]=N.useState(!1),C=()=>{navigator.clipboard?.writeText(c).then(()=>{D(!0),window.setTimeout(()=>D(!1),1600)},()=>{})};return s.jsxDEV("div",{className:"oc-codeblock",children:[s.jsxDEV("div",{className:"oc-codeblock-head",children:[s.jsxDEV("span",{className:"oc-codeblock-lang",children:d||"text"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:118,columnNumber:5},this),s.jsxDEV("button",{type:"button",className:"oc-codeblock-copy",onClick:C,children:v?"已复制":"复制"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:119,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:117,columnNumber:4},this),s.jsxDEV("pre",{children:s.jsxDEV("code",{children:c},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:124,columnNumber:5},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:123,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:116,columnNumber:3},this)}function iS(d,c){const v=[],D=d.split(`
240
+ `);let C=0,T=0;for(;T<D.length;){const V=D[T].trim();if(V===""){T+=1;continue}const ce=V.match(/^(#{1,4})\s+(.*)$/);if(ce){const M=`h${ce[1].length}`;v.push(s.jsxDEV(M,{children:Dc(ce[2],`${c}-h${C}`)},`${c}-h${C++}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:154,columnNumber:5},this)),T+=1;continue}if(/^(---|\*\*\*|___)\s*$/.test(V)){v.push(s.jsxDEV("hr",{},`${c}-hr${C++}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:162,columnNumber:15},this)),T+=1;continue}if(V.startsWith(">")){const fe=[];for(;T<D.length&&D[T].trim().startsWith(">");)fe.push(D[T].trim().replace(/^>\s?/,"")),T+=1;v.push(s.jsxDEV("blockquote",{children:fe.map((M,k)=>s.jsxDEV("p",{children:Dc(M,`${c}-bq${C}-${k}`)},k,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:177,columnNumber:7},this))},`${c}-bq${C++}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:175,columnNumber:5},this));continue}if(/^[-*+]\s+/.test(V)){const fe=[];for(;T<D.length&&/^\s*[-*+]\s+/.test(D[T]);)fe.push(D[T].trim().replace(/^[-*+]\s+/,"")),T+=1;v.push(s.jsxDEV("ul",{children:fe.map((M,k)=>s.jsxDEV("li",{children:Dc(M,`${c}-ul${C}-${k}`)},k,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:194,columnNumber:7},this))},`${c}-ul${C++}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:192,columnNumber:5},this));continue}if(/^\d+\.\s+/.test(V)){const fe=[];for(;T<D.length&&/^\s*\d+\.\s+/.test(D[T]);)fe.push(D[T].trim().replace(/^\d+\.\s+/,"")),T+=1;v.push(s.jsxDEV("ol",{children:fe.map((M,k)=>s.jsxDEV("li",{children:Dc(M,`${c}-ol${C}-${k}`)},k,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:211,columnNumber:7},this))},`${c}-ol${C++}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:209,columnNumber:5},this));continue}const Ie=[];for(;T<D.length&&D[T].trim()!==""&&!/^(#{1,4})\s+/.test(D[T].trim())&&!/^(---|\*\*\*|___)\s*$/.test(D[T].trim())&&!D[T].trim().startsWith(">")&&!/^[-*+]\s+/.test(D[T].trim())&&!/^\d+\.\s+/.test(D[T].trim());)Ie.push(D[T].trim()),T+=1;v.push(s.jsxDEV("p",{children:Dc(Ie.join(" "),`${c}-p${C}`)},`${c}-p${C++}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:233,columnNumber:4},this))}return v}function cS({text:d}){const c=lS(d);return s.jsxDEV("div",{className:"oc-md",children:c.map((v,D)=>v.type==="code"?s.jsxDEV(sS,{lang:v.lang,text:v.text},`cb-${D}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:245,columnNumber:6},this):s.jsxDEV("div",{children:iS(v.text,`tx-${D}`)},`tx-${D}`,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:247,columnNumber:6},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatMarkdown.tsx",lineNumber:242,columnNumber:3},this)}const Eh=()=>window.__CONSOLE_CONFIRMATION_TOKEN__??"";function uS({origin:d}){const[c,v]=N.useState(null),[D,C]=N.useState(null),[T,z]=N.useState(null),[V,ce]=N.useState(!1),Ie=async _=>{v(_),C(null),z(null);const oe=_==="models"?"/api/operator/v1/pi/models-config":_==="skills"?"/api/operator/v1/chat/instruction-skills":"/api/operator/v1/pi/packages";try{const Se=await fetch(`${d}${oe}`,{credentials:"include"}),He=await Se.json();if(!Se.ok)throw new Error(He.error?.message??"读取失败");C(He.data)}catch(Se){z(Se instanceof Error?Se.message:String(Se))}},fe=async _=>{ce(!0),z(null);try{const oe=await fetch(`${d}/api/operator/v1/pi/models-config`,{method:"PATCH",credentials:"include",headers:{"content-type":"application/json","x-loop-console-confirmation":Eh()},body:JSON.stringify(_)}),Se=await oe.json();if(!oe.ok)throw new Error(Se.error?.message??"模型配置保存失败");C(Se.data)}catch(oe){z(oe instanceof Error?oe.message:String(oe))}finally{ce(!1)}},M=async(_,oe)=>{ce(!0),z(null);try{const Se=await fetch(`${d}/api/operator/v1/pi/models-config/test`,{method:"POST",credentials:"include",headers:{"content-type":"application/json","x-loop-console-confirmation":Eh()},body:JSON.stringify({provider:_,modelId:oe})}),He=await Se.json();if(!Se.ok)throw new Error(He.error?.message??"模型测试失败");return He.data?.available===!0}catch(Se){return z(Se instanceof Error?Se.message:String(Se)),!1}finally{ce(!1)}},k=async(_,oe)=>{const Se=D,He=oe?[...Se.disabledNames??[],_]:(Se.disabledNames??[]).filter(We=>We!==_);(await fetch(`${d}/api/operator/v1/chat/instruction-skills/preferences`,{method:"PUT",credentials:"include",headers:{"content-type":"application/json","x-loop-console-confirmation":Eh()},body:JSON.stringify({disabledNames:He})})).ok?C({...Se,disabledNames:[...new Set(He)]}):z("偏好保存失败")};return s.jsxDEV("div",{className:"oc-governance",children:[s.jsxDEV("div",{className:"oc-governance-links",children:[s.jsxDEV("button",{type:"button",onClick:()=>{Ie("models")},children:"Models"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:123,columnNumber:9},this),s.jsxDEV("button",{type:"button",onClick:()=>{Ie("skills")},children:"Skills"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:126,columnNumber:9},this),s.jsxDEV("button",{type:"button",onClick:()=>{Ie("packages")},children:"Packages"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:129,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:122,columnNumber:7},this),c&&s.jsxDEV("section",{className:"oc-governance-panel",children:[s.jsxDEV("header",{children:[s.jsxDEV("strong",{children:c==="models"?"Models":c==="skills"?"Skills":"Packages(只读)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:136,columnNumber:13},this),s.jsxDEV("button",{type:"button",onClick:()=>v(null),children:"关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:143,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:135,columnNumber:11},this),T&&s.jsxDEV("p",{className:"oc-governance-error",children:T},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:147,columnNumber:21},this),c==="models"&&s.jsxDEV(dS,{busy:V,data:D,onMutate:fe,onTest:M},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:149,columnNumber:13},this),c==="skills"&&s.jsxDEV(fS,{data:D,onToggle:k},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:157,columnNumber:13},this),c==="packages"&&s.jsxDEV(mS,{data:D},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:159,columnNumber:36},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:134,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:121,columnNumber:5},this)}function dS({busy:d,data:c,onMutate:v,onTest:D}){const[C,T]=N.useState(""),[z,V]=N.useState(""),[ce,Ie]=N.useState(""),[fe,M]=N.useState(null),k=async _=>{_.preventDefault(),!(!c||!C.trim()||!z.trim())&&(await v({expectedRevision:c.revision,action:"upsert-model",provider:C.trim(),model:{id:z.trim(),...ce.trim()?{name:ce.trim()}:{}}}),V(""),Ie(""))};return c?s.jsxDEV("div",{className:"oc-models-config",children:[s.jsxDEV("p",{children:"Console 不读取或写入 API key;credential 请通过 Pi CLI 配置。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:201,columnNumber:7},this),c.providers.map(_=>s.jsxDEV("article",{className:"oc-model-provider",children:[s.jsxDEV("div",{children:[s.jsxDEV("strong",{children:_.name},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:205,columnNumber:13},this),s.jsxDEV("span",{children:_.credential.configured?"credential configured":"credential 未配置"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:206,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:204,columnNumber:11},this),_.models.map(oe=>s.jsxDEV("div",{className:"oc-model-row",children:[s.jsxDEV("span",{children:oe.name?`${oe.name} (${oe.id})`:oe.id},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:214,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("button",{type:"button",disabled:d,onClick:()=>{D(_.name,oe.id).then(Se=>M(`${_.name}/${oe.id}: ${Se?"可用":"不可用"}`))},children:"测试"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:218,columnNumber:17},this),s.jsxDEV("button",{type:"button",disabled:d,onClick:()=>{window.confirm(`确认删除模型 ${_.name}/${oe.id}?`)&&v({expectedRevision:c.revision,action:"remove-model",provider:_.name,model:{id:oe.id}})},children:"删除"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:231,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:217,columnNumber:15},this)]},oe.id,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:213,columnNumber:13},this)),s.jsxDEV("button",{type:"button",disabled:d,onClick:()=>{window.confirm(`确认删除 Provider ${_.name}?`)&&v({expectedRevision:c.revision,action:"remove-provider",provider:_.name})},children:"删除 Provider"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:254,columnNumber:11},this)]},_.name,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:203,columnNumber:9},this)),fe&&s.jsxDEV("p",{className:"oc-model-test-result",children:fe},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:271,columnNumber:22},this),s.jsxDEV("form",{className:"oc-model-form",onSubmit:_=>{k(_)},children:[s.jsxDEV("strong",{children:"新增或更新模型"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:273,columnNumber:9},this),s.jsxDEV("input",{required:!0,placeholder:"Provider",value:C,onChange:_=>T(_.target.value)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:274,columnNumber:9},this),s.jsxDEV("input",{required:!0,placeholder:"Model ID",value:z,onChange:_=>V(_.target.value)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:280,columnNumber:9},this),s.jsxDEV("input",{placeholder:"显示名称(可选)",value:ce,onChange:_=>Ie(_.target.value)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:286,columnNumber:9},this),s.jsxDEV("button",{type:"submit",disabled:d,children:d?"保存中…":"保存模型"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:291,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:272,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:200,columnNumber:5},this):s.jsxDEV("p",{children:"正在读取模型配置…"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:198,columnNumber:21},this)}function fS({data:d,onToggle:c}){return s.jsxDEV("div",{children:[d?.allowed?.map(v=>{const D=typeof v=="string"?v:v.name,C=d.disabledNames?.includes(D)===!0;return s.jsxDEV("label",{children:[s.jsxDEV("input",{type:"checkbox",checked:!C,onChange:T=>c(D,!T.target.checked)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:318,columnNumber:13},this),D,typeof v!="string"&&v.description?s.jsxDEV("small",{children:v.description},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:325,columnNumber:15},this):null]},D,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:317,columnNumber:11},this)}),s.jsxDEV("small",{children:"偏好仅影响之后创建的新会话;denied/conditional 策略不可在此绕过。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:330,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:312,columnNumber:5},this)}function mS({data:d}){return s.jsxDEV("div",{children:[s.jsxDEV("p",{children:"此处仅展示 Pi 配置;不会扩大 Operator Chat 工具面。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:344,columnNumber:7},this),d?.packages?.map(c=>s.jsxDEV("article",{children:[s.jsxDEV("strong",{children:c.spec},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:347,columnNumber:11},this),s.jsxDEV("span",{children:c.scope},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:348,columnNumber:11},this)]},`${c.scope}:${c.spec}`,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:346,columnNumber:9},this))]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatGovernancePanels.tsx",lineNumber:343,columnNumber:5},this)}const Th=10;function pS(d){return[...d].sort((c,v)=>c.kind!==v.kind?c.kind==="directory"?-1:1:c.name.localeCompare(v.name,void 0,{sensitivity:"base"}))}function hS({open:d}){return s.jsxDEV("svg",{className:`oc-tree-chevron${d?" is-open":""}`,width:"12",height:"12",viewBox:"0 0 12 12","aria-hidden":"true",children:s.jsxDEV("path",{d:"M4.2 2.4 7.8 6 4.2 9.6",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:38,columnNumber:4},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:31,columnNumber:3},this)}function gS({open:d}){return d?s.jsxDEV("svg",{className:"oc-tree-glyph is-folder-open",width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:[s.jsxDEV("path",{d:"M1.5 4.2h3.1l1.1 1.2H12a.8.8 0 0 1 .8.8v5a.8.8 0 0 1-.8.8H2a.8.8 0 0 1-.8-.8V5a.8.8 0 0 1 .8-.8Z",fill:"currentColor",opacity:"0.88"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:53,columnNumber:4},this),s.jsxDEV("path",{d:"M1.8 5.8h10.4l-.7 5.2H2.5L1.8 5.8Z",fill:"currentColor",opacity:"0.55"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:58,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:52,columnNumber:3},this):s.jsxDEV("svg",{className:"oc-tree-glyph is-folder",width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:s.jsxDEV("path",{d:"M1.5 3.8h3.2l1 1.1H12a.8.8 0 0 1 .8.8v5.5a.8.8 0 0 1-.8.8H2a.8.8 0 0 1-.8-.8V4.6a.8.8 0 0 1 .8-.8Z",fill:"currentColor",opacity:"0.78"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:66,columnNumber:4},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:65,columnNumber:3},this)}function bS(){return s.jsxDEV("svg",{className:"oc-tree-glyph is-file",width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:[s.jsxDEV("path",{d:"M3.2 1.6h5.1L10.8 4v8.4a.8.8 0 0 1-.8.8H3.2a.8.8 0 0 1-.8-.8V2.4a.8.8 0 0 1 .8-.8Z",fill:"currentColor",opacity:"0.55"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:78,columnNumber:4},this),s.jsxDEV("path",{d:"M8.3 1.7v2.5h2.4",fill:"none",stroke:"currentColor",strokeWidth:"1.1",strokeLinejoin:"round",opacity:"0.75"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:83,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:77,columnNumber:3},this)}function vS(d){const c=d.sessions.slice(0,Th);return s.jsxDEV("aside",{className:`oc-sidebar${d.open?"":" is-collapsed"}`,"aria-label":"会话与仓库",children:d.open?s.jsxDEV(s.Fragment,{children:[s.jsxDEV("section",{className:"oc-sidebar-section oc-sessions",children:[s.jsxDEV("header",{children:[s.jsxDEV("strong",{children:"会话"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:124,columnNumber:8},this),s.jsxDEV("div",{className:"oc-sidebar-header-actions",children:[s.jsxDEV("button",{type:"button",className:"btn btn-ghost",onClick:d.onCreate,children:"新建"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:126,columnNumber:9},this),s.jsxDEV("button",{type:"button",className:"oc-sidebar-toggle",onClick:d.onToggleOpen,"aria-expanded":!0,"aria-label":"收起侧栏",title:"收起侧栏",children:s.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:s.jsxDEV("path",{d:"M8.8 2.6 5.2 7l3.6 4.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:142,columnNumber:11},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:141,columnNumber:10},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:133,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:125,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:123,columnNumber:7},this),s.jsxDEV("div",{className:"oc-session-scroll",children:[["active","archived"].map(v=>{const D=c.filter(C=>C.state===v);return D.length?s.jsxDEV("div",{className:"oc-session-group",children:[s.jsxDEV("small",{children:v==="active"?"进行中":"已归档"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:159,columnNumber:11},this),D.map(C=>s.jsxDEV("div",{className:`oc-session-item${d.activeSessionId===C.sessionId?" is-active":""}`,children:[s.jsxDEV("button",{type:"button",className:"oc-session-main",onClick:()=>d.onActivate(C.sessionId),children:[s.jsxDEV("strong",{children:[C.title||"未命名对话",C.activeTurnId?" · 运行中":""]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:174,columnNumber:14},this),s.jsxDEV("span",{children:new Date(C.updatedAt).toLocaleString()},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:178,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:169,columnNumber:13},this),s.jsxDEV("div",{className:"oc-session-actions",children:[s.jsxDEV("button",{type:"button",className:"oc-session-menu",onClick:()=>{const T=window.prompt("会话名称",C.title??"");T!==null&&d.onRename(C.sessionId,T)},children:"重命名"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:183,columnNumber:14},this),s.jsxDEV("button",{type:"button",className:"oc-session-menu",onClick:()=>d.onSetState(C.sessionId,v==="active"?"archived":"active"),children:v==="active"?"归档":"恢复"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:197,columnNumber:14},this),s.jsxDEV("button",{type:"button",className:"oc-session-menu oc-session-delete",onClick:()=>d.onDelete(C.sessionId),children:"删除"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:209,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:182,columnNumber:13},this)]},C.sessionId,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:161,columnNumber:12},this))]},v,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:158,columnNumber:10},this):null}),c.length===0?s.jsxDEV("p",{className:"oc-tree-empty",children:"暂无会话,点击上方新建。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:223,columnNumber:9},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:154,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:122,columnNumber:6},this),s.jsxDEV("section",{className:"oc-sidebar-section oc-explorer",children:[s.jsxDEV("header",{children:[s.jsxDEV("strong",{children:"仓库"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:229,columnNumber:8},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost",onClick:d.onRefreshTree,children:"刷新"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:230,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:228,columnNumber:7},this),s.jsxDEV("p",{className:"oc-explorer-hint",children:"单击插入 @路径 · 双击预览"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:238,columnNumber:7},this),d.treeError&&s.jsxDEV("p",{className:"oc-sidebar-error",children:d.treeError},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:240,columnNumber:8},this),s.jsxDEV("div",{className:"oc-tree-scroll",children:s.jsxDEV(mw,{entries:d.tree[""]??[],tree:d.tree,expanded:d.expanded,depth:0,onToggle:d.onToggleDir,onInsert:d.onInsert,onPreview:d.onPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:243,columnNumber:8},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:242,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:227,columnNumber:6},this),s.jsxDEV(uS,{origin:d.origin},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:254,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:121,columnNumber:5},this):s.jsxDEV("button",{type:"button",className:"oc-sidebar-toggle is-collapsed",onClick:d.onToggleOpen,"aria-expanded":!1,"aria-label":"展开侧栏",title:"展开侧栏",children:s.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 14 14","aria-hidden":"true",children:s.jsxDEV("path",{d:"M5.2 2.6 8.8 7 5.2 11.4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:266,columnNumber:7},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:265,columnNumber:6},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:257,columnNumber:5},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:116,columnNumber:3},this)}function mw(d){const c=N.useMemo(()=>pS(d.entries),[d.entries]);return c.length?s.jsxDEV("ul",{className:"oc-tree",role:d.depth===0?"tree":"group",children:c.map(v=>{const D=v.name.startsWith(".");if(v.kind==="directory"){const C=d.expanded.has(v.path);return s.jsxDEV("li",{className:`oc-tree-node is-dir${C?" is-open":""}${D?" is-dot":""}`,role:"treeitem","aria-expanded":C,children:[s.jsxDEV("button",{type:"button",className:"oc-tree-row oc-tree-dir",onClick:()=>d.onToggle(v.path),style:{paddingLeft:`${8+d.depth*12}px`},children:[s.jsxDEV(hS,{open:C},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:317,columnNumber:9},this),s.jsxDEV(gS,{open:C},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:318,columnNumber:9},this),s.jsxDEV("span",{className:"oc-tree-label",children:v.name},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:319,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:311,columnNumber:8},this),C?s.jsxDEV("div",{className:"oc-tree-children",style:{"--oc-tree-guide":`${14+d.depth*12}px`},children:s.jsxDEV(mw,{entries:d.tree[v.path]??[],tree:d.tree,expanded:d.expanded,depth:d.depth+1,onToggle:d.onToggle,onInsert:d.onInsert,onPreview:d.onPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:330,columnNumber:10},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:322,columnNumber:9},this):null]},v.path,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:303,columnNumber:7},this)}return s.jsxDEV("li",{className:`oc-tree-node is-file${D?" is-dot":""}`,role:"treeitem",children:s.jsxDEV(yS,{entry:v,depth:d.depth,onInsert:d.onInsert,onPreview:d.onPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:350,columnNumber:7},this)},v.path,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:345,columnNumber:6},this)})},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:297,columnNumber:3},this):s.jsxDEV("p",{className:"oc-tree-empty",children:"此目录为空或没有可安全浏览的文件。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:293,columnNumber:4},this)}function yS(d){const c=N.useRef(null);return N.useEffect(()=>()=>{c.current!==null&&window.clearTimeout(c.current)},[]),s.jsxDEV("button",{type:"button",className:"oc-tree-row oc-tree-file",style:{paddingLeft:`${8+d.depth*12}px`},title:"单击插入引用;双击预览",onClick:()=>{c.current!==null&&window.clearTimeout(c.current),c.current=window.setTimeout(()=>{d.onInsert(d.entry.path),c.current=null},220)},onDoubleClick:()=>{c.current!==null&&window.clearTimeout(c.current),c.current=null,d.onPreview(d.entry.path)},children:[s.jsxDEV("span",{className:"oc-tree-chevron-spacer","aria-hidden":"true"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:395,columnNumber:4},this),s.jsxDEV(bS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:396,columnNumber:4},this),s.jsxDEV("span",{className:"oc-tree-label",children:d.entry.name},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:397,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatWorkspaceSidebar.tsx",lineNumber:377,columnNumber:3},this)}function NS(d){const c=d.previews.find(v=>v.path===d.activePath);return!c&&!d.loading?null:s.jsxDEV(s.Fragment,{children:[c&&s.jsxDEV("section",{className:"oc-file-preview","aria-label":`文件预览 ${c.path}`,children:[s.jsxDEV("header",{children:[s.jsxDEV("div",{className:"oc-file-tabs",role:"tablist","aria-label":"文件预览 Tabs",children:d.previews.map(v=>s.jsxDEV("button",{type:"button",role:"tab","aria-selected":v.path===c.path,className:v.path===c.path?"is-active":"",onClick:()=>d.onActivate(v.path),children:v.path},v.path,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:22,columnNumber:36},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:21,columnNumber:5},this),s.jsxDEV("span",{children:[c.bytes," bytes",c.truncated?" · 已截断":""]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:24,columnNumber:5},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost",onClick:()=>d.onClose(c.path),children:"关闭预览"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:25,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:20,columnNumber:4},this),s.jsxDEV("pre",{children:s.jsxDEV("code",{children:c.content},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:27,columnNumber:9},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:27,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:19,columnNumber:15},this),d.loading&&s.jsxDEV("div",{className:"oc-file-preview-loading",children:"正在读取文件…"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:29,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/ChatFilePreviewTabs.tsx",lineNumber:18,columnNumber:9},this)}function wS(d,c){const v=d.findIndex(D=>D.operationId===c.operationId);return v<0?[...d,c]:d.map((D,C)=>C===v?{...D,...c}:D)}function xS(d){const c=d.operation;if(!c||typeof c!="object")return;const v=c;if(!(v.schemaVersion!==1||typeof v.operationId!="string"||typeof v.action!="string"||typeof v.state!="string"||typeof v.inspectHref!="string"||typeof v.createdAt!="string"||typeof v.updatedAt!="string"||typeof v.previewHash!="string"))return v}function ES(d){if(!d||typeof d!="object")return;const c=d;if(!(c.schemaVersion!==1||typeof c.cardId!="string"||c.gateType!=="contract-apply"&&c.gateType!=="dag-run"||typeof c.taskId!="string"||typeof c.state!="string"||typeof c.expiresAt!="string"||typeof c.inspectHref!="string"||typeof c.previewHash!="string"))return c}function SS(d,c){const v=d.findIndex(C=>C.cardId===c.cardId);if(v<0)return[...d,c];const D=[...d];return D[v]=c,D}const DS=["operation","contract","dag","report","html"];function CS(d){const c=d.artifact;if(!c||typeof c!="object")return;const v=c;if(!(v.schemaVersion!==1||typeof v.artifactId!="string"||!v.artifactId||typeof v.kind!="string"||!DS.includes(v.kind)||typeof v.previewHash!="string")){for(const D of["title","summary","htmlPreview","reportText","inspectHref"])if(v[D]!==void 0&&typeof v[D]!="string")return;return v}}function kS(d,c){const v=d.findIndex(D=>D.artifactId===c.artifactId);return v<0?[...d,c]:d.map((D,C)=>C===v?{...D,...c}:D)}function Fr(d,c){return`${d}/${c}`}function Sh(d){return{...d.modelProvider&&d.modelId?{model:{provider:d.modelProvider,modelId:d.modelId}}:{},...d.thinkingLevel?{thinkingLevel:d.thinkingLevel}:{}}}function Rh(d,c){return{...d,model:c.model??d.model,thinkingLevel:c.thinkingLevel??d.thinkingLevel}}function aw(d,c){const v=Rh(d,c);return v.model?.provider===d.model?.provider&&v.model?.modelId===d.model?.modelId&&v.thinkingLevel===d.thinkingLevel}const jh=[{command:"/task",label:"Task context",description:"查看当前任务、Draft 与 assessment",action:"focus-panel:task"},{command:"/contract",label:"Contract",description:"查看 contract diff 与 apply gate",action:"focus-panel:contract"},{command:"/dag",label:"DAG",description:"查看 DAG spine、确认与运行状态",action:"focus-panel:dag"},{command:"/interview",label:"Interview",description:"打开 Requirement Interview",action:"focus:interview"},{command:"/help",label:"Shortcuts",description:"显示可用 shortcut",action:"show-help"}];function US(d){const c=d.trim().split(/\s+/,1)[0]?.toLowerCase();if(!c?.startsWith("/"))return;const v=jh.find(D=>D.command===c);return v?{command:v.command,action:v.action}:{command:c,action:"unknown"}}const po="loop-console.operator-chat.active-session.v1",AS="loop-console.operator-chat.default-landing.v1";function Bd(d){const c=d?.trim().toLowerCase();if(c==="chat")return"chat";if(c==="tasks")return"tasks"}function OS(d){const c=d?.trim().toLowerCase();if(c==="chat"||c==="tasks"||c==="recovery")return c}function TS(d){if(!d)return;const c=new URLSearchParams(d.search),v=Bd(c.get("landing")??c.get("workspace"));if(v)return v;const D=d.hash.startsWith("#")?d.hash.slice(1):d.hash;return Bd(new URLSearchParams(D).get("workspace"))}function RS(d){return TS(d.location)??Bd(d.storage?.getItem(AS))??Bd(d.env)??"tasks"}function jS(d,c={}){const v=new URLSearchParams({workspace:d});for(const[D,C]of Object.entries(c))C?.trim()&&v.set(D,C.trim());return`/?${v.toString()}`}function VS(d){const c=new URLSearchParams(d.search),v=d.hash.startsWith("#")?d.hash.slice(1):d.hash,D=new URLSearchParams(v),C=OS(c.get("workspace")??c.get("landing")??D.get("workspace"));if(!C)return null;const T=z=>c.get(z)?.trim()||void 0;return{workspace:C,...T("taskId")?{taskId:T("taskId")}:{},...T("dagRunId")?{dagRunId:T("dagRunId")}:{},...T("fromNodeId")?{fromNodeId:T("fromNodeId")}:{},...T("featureId")?{featureId:T("featureId")}:{}}}const _S=[{toolId:"safe-read",kind:"explore",description:"安全读取仓库相对路径文件;拒绝敏感文件并自动脱敏 secret。"},{toolId:"safe-grep",kind:"explore",description:"安全搜索仓库内容;跳过敏感文件并自动脱敏搜索结果。"},{toolId:"git-status",kind:"explore",description:"固定参数执行 git status --porcelain(无 shell)。"},{toolId:"git-diff",kind:"explore",description:"固定参数查看 git diff;敏感路径不可查看且结果自动脱敏。"},{toolId:"find",kind:"explore",description:"按名称查找文件路径。"},{toolId:"ls",kind:"explore",description:"列出目录内容。"}];function ow(d){switch(d){case"mutation":return"变更";case"long-running":return"长任务";case"explore":return"探查";default:return"只读"}}function Za(){return window.__CONSOLE_CONFIRMATION_TOKEN__??""}function Cc(d){return`${d}-${Math.random().toString(36).slice(2,10)}`}function Dh(d,c){return new Promise((v,D)=>{if(c?.aborted){D(new DOMException("Aborted","AbortError"));return}const C=setTimeout(()=>{c?.removeEventListener("abort",T),v()},d),T=()=>{clearTimeout(C),D(new DOMException("Aborted","AbortError"))};c?.addEventListener("abort",T)})}function pw(d){return new Date(d).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Ch(d){const c=new Date(d),v=new Date;return c.getFullYear()===v.getFullYear()&&c.getMonth()===v.getMonth()&&c.getDate()===v.getDate()?"今天":c.toLocaleDateString([],{month:"long",day:"numeric"})}function MS(d){if(d==null)return"";try{const c=typeof d=="string"?d:JSON.stringify(d);return c?c.length>120?`${c.slice(0,120)}…`:c:""}catch{return String(d)}}const zS=[{label:"新建任务",hint:"从需求描述导入并创建任务",prompt:"帮我新建一个任务:我描述需求,你引导我用 PRD/需求描述导入(bootstrapFromPrd),并给出建议的 taskKind(如后端研发 backend-feature / 后端测试 backend-test)。"},{label:"查看任务状态",hint:"列出任务与就绪/阻塞状态",prompt:"列出当前所有 task 及其状态,重点说明哪些是 Ready 可以推进、哪些 Blocked 及阻塞原因。"},{label:"诊断 DAG 运行",hint:"对失败运行跑 Doctor",prompt:"帮我诊断最近失败或异常的 DAG 运行:先列出最近的 DAG 运行,对有问题的运行执行 doctor,总结根因和可执行的恢复方案。"},{label:"恢复或重跑任务",hint:"从节点重跑 / 完整重跑",prompt:"我要恢复一个卡住或失败的 DAG 运行。请先列出最近的 DAG 运行和可选节点,说明「从节点重跑 dagRerun」「完整重跑任务 standaloneTaskRerun」「Worker Task 重排队 workerTaskRetry」分别适用于什么情况,确定后直接帮我发起重跑。"}];function lw(d){const c=d.readiness==="setup-required",v=!!d.disabled||c,D=d.mode==="no-session"?"开始一段新的对话":"今天想推进什么?",C=d.mode==="no-session"?"用自然语言编排 loop-agent:查询状态、诊断问题、创建与恢复任务。可先点选下方建议,或新建空白对话。":"会话已就绪。点选建议快速开场,或在下方输入框直接描述目标。业务写入仍经受治理 DAG。";return s.jsxDEV("div",{className:"oc-empty",role:"status",children:[s.jsxDEV("div",{className:"oc-empty-hero",children:[s.jsxDEV("div",{className:"oc-empty-icon","aria-hidden":"true",children:"π"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:320,columnNumber:6},this),s.jsxDEV("div",{className:"oc-empty-copy",children:[s.jsxDEV("h3",{children:D},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:324,columnNumber:7},this),s.jsxDEV("p",{children:C},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:325,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:323,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:319,columnNumber:5},this),s.jsxDEV("div",{className:"oc-suggestions","aria-label":"开场建议",children:zS.map(T=>s.jsxDEV("button",{type:"button",className:"oc-suggestion",onClick:()=>d.onSuggest(T.prompt),disabled:v,children:[s.jsxDEV("strong",{children:T.label},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:337,columnNumber:8},this),s.jsxDEV("span",{children:T.hint},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:338,columnNumber:8},this)]},T.label,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:330,columnNumber:7},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:328,columnNumber:5},this),s.jsxDEV("ul",{className:"oc-empty-tips",children:[s.jsxDEV("li",{children:[s.jsxDEV("kbd",{children:"@"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:344,columnNumber:7},this),s.jsxDEV("span",{children:"引用仓库文件"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:345,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:343,columnNumber:6},this),s.jsxDEV("li",{children:[s.jsxDEV("kbd",{children:"/"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:348,columnNumber:7},this),s.jsxDEV("span",{children:"快捷命令"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:349,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:347,columnNumber:6},this),s.jsxDEV("li",{children:[s.jsxDEV("kbd",{children:"Enter"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:352,columnNumber:7},this),s.jsxDEV("span",{children:"发送 · Shift+Enter 换行"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:353,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:351,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:342,columnNumber:5},this),d.mode==="no-session"&&d.onCreateSession?s.jsxDEV("button",{type:"button",className:"btn btn-primary oc-empty-cta",onClick:d.onCreateSession,disabled:c,children:c?"需先完成 Pi setup":"新建空白对话"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:357,columnNumber:6},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:318,columnNumber:4},this)}function HS(d,c){return d?d.taskId===c.taskId&&d.updatedAt===c.updatedAt&&d.lastEventId===c.lastEventId&&d.operations.length===c.operations.length:!1}function LS(d){const{origin:c,surface:v="standalone"}=d,D=v==="workspace",[C,T]=N.useState(null),[z,V]=N.useState(null),[ce,Ie]=N.useState([]),[fe,M]=N.useState(!0),[k,_]=N.useState({}),[oe,Se]=N.useState(new Set),[He,me]=N.useState(null),[We,vt]=N.useState([]),[qt,Ct]=N.useState(null),[Kt,Rt]=N.useState(!1),[Ee,ct]=N.useState([]),[ee,pt]=N.useState([]),[be,Ue]=N.useState([]),[lt,It]=N.useState([]),[Q,ue]=N.useState(50),[ve,qe]=N.useState(0),[Pe,L]=N.useState([]),[K,ke]=N.useState(null),[Ae,rt]=N.useState(null),[ka,tt]=N.useState(!1),[Wt,kt]=N.useState(!1),[Un,F]=N.useState(0),ho=N.useRef(null),[wn,Ua]=N.useState(""),[ut,Oe]=N.useState(""),[jt,ca]=N.useState([]),[zn,I]=N.useState([]),[Hn,Ln]=N.useState([]),[Aa,An]=N.useState([]),[Xe,Oa]=N.useState(null),[nt,On]=N.useState({inputTokens:0,outputTokens:0,totalTokens:0}),[Ut,Pn]=N.useState(!1),[ua,cn]=N.useState(null),[un,se]=N.useState(null),[$n,Ta]=N.useState(!0),[Bn]=N.useState(!1),[m,S]=N.useState(!1),[B,X]=N.useState(!1),[le,ye]=N.useState(!1),J=N.useRef(null),Te=N.useRef(null),Ne=N.useRef(null),Yt=N.useRef(null),Mt=N.useRef(null),Fn=N.useRef(null),Tn=N.useRef(new Map),da=N.useRef(new Set),at=N.useRef(null),At=N.useRef(null),Pt=N.useRef(new Set),Ra=N.useRef(new Map),dn=N.useRef(null),go=N.useRef(!1),fn=N.useRef(0),Re=N.useRef(null),fa=N.useRef(!1),Jo=N.useCallback(async()=>{try{const p=await fetch(`${c}/api/operator/v1/chat/capabilities`);if(!p.ok)return;const U=await p.json();T(U)}catch{}},[c]),fr=N.useCallback(async p=>{try{const U=await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(p)}`,{credentials:"include"}),R=await U.json();if(!U.ok||!R.session)throw new Error(R.error?.message??"会话不可用");const $={sessionId:R.session.sessionId,...Sh(R.session)};Re.current=$,fa.current=!!R.session.activeTurnId,Pt.current=new Set,Ra.current=new Map,At.current=null,V($),Pn(!!R.session.activeTurnId),cn(null),at.current=null,Fn.current=Tn.current.get(p)??null,I([]),vt([]),Oe(R.session.composerDraft??""),ct((R.session.messages??[]).filter(ae=>ae.role==="user"||ae.role==="assistant").map(ae=>({id:ae.id,role:ae.role,text:ae.text,createdAt:Date.parse(ae.at)||Date.now()}))),pt([]),Ue([]),L([]),It([]),rt(null),ke(null),On({inputTokens:0,outputTokens:0,totalTokens:0}),window.localStorage.setItem(po,p),Ct(null)}catch(U){se(U instanceof Error?U.message:String(U))}},[c]);N.useEffect(()=>{Jo()},[Jo]);const ea=N.useCallback(async()=>{try{const p=await fetch(`${c}/api/operator/v1/chat/sessions`,{credentials:"include"});if(!p.ok)return;const U=(await p.json()).sessions??[],R=U.slice(0,Th),$=U.slice(Th);if(Ie(R),$.length===0)return;await Promise.all($.map(q=>fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(q.sessionId)}`,{method:"DELETE",credentials:"include",headers:{"x-loop-console-confirmation":Za()}}).catch(()=>{})));const ae=Re.current?.sessionId;ae&&$.some(q=>q.sessionId===ae)&&(Re.current=null,V(null),window.localStorage.removeItem(po))}catch{}},[c]),Ja=N.useCallback(async p=>{if(window.confirm("确定删除该会话?删除后不可恢复。"))try{if(!(await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(p)}`,{method:"DELETE",credentials:"include",headers:{"x-loop-console-confirmation":Za()}})).ok){se("删除会话失败");return}Re.current?.sessionId===p&&(Re.current=null,V(null),ct([]),pt([]),Ue([]),L([]),It([]),rt(null),ke(null),Oe(""),S(!1),window.localStorage.removeItem(po)),await ea()}catch(U){se(U instanceof Error?U.message:String(U))}},[c,ea]);N.useEffect(()=>{ea()},[ea]);const ja=N.useCallback(async(p="")=>{try{me(null);const U=await fetch(`${c}/api/operator/v1/chat/repo/tree?path=${encodeURIComponent(p)}`,{credentials:"include"}),R=await U.json();if(!U.ok)throw new Error(R.error?.message??"无法读取仓库目录");_($=>({...$,[p]:R.data?.entries??[]}))}catch(U){me(U instanceof Error?U.message:String(U))}},[c]);N.useEffect(()=>{ja()},[ja]);const ta=N.useCallback(async p=>{Rt(!0);try{const U=await fetch(`${c}/api/operator/v1/chat/repo/file?path=${encodeURIComponent(p)}`,{credentials:"include"}),R=await U.json();if(!U.ok||!R.data)throw new Error(R.error?.message??"无法预览文件");vt($=>{const ae=[...$.filter(dt=>dt.path!==R.data.path),R.data],q=Re.current?.sessionId;return q&&window.localStorage.setItem(`${po}.previews.${q}`,JSON.stringify(ae.map(dt=>dt.path))),ae}),Ct(R.data.path)}catch(U){se(U instanceof Error?U.message:String(U))}finally{Rt(!1)}},[c]);N.useEffect(()=>{if(!z)return;const p=z.sessionId;let U=[];try{const R=JSON.parse(window.localStorage.getItem(`${po}.previews.${p}`)??"[]");Array.isArray(R)&&(U=R.filter($=>typeof $=="string").slice(0,10))}catch{}U.length&&Promise.all(U.map(async R=>{const $=await fetch(`${c}/api/operator/v1/chat/repo/file?path=${encodeURIComponent(R)}`,{credentials:"include"});if($.ok)return(await $.json()).data})).then(R=>{if(Re.current?.sessionId!==p)return;const $=R.filter(ae=>!!ae);vt($),Ct($.at(-1)?.path??null)})},[c,z?.sessionId]),N.useEffect(()=>{let p=!1;const U=window.localStorage.getItem(po);if(U)return(async()=>{try{const R=await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(U)}`,{credentials:"include"});if(!R.ok){window.localStorage.removeItem(po);return}const $=await R.json();if(p||!$.session)return;const ae={sessionId:$.session.sessionId,...Sh($.session)};Re.current=ae,Pt.current=new Set,Ra.current=new Map,At.current=null,V(ae),Oe($.session.composerDraft??""),ct(($.session.messages??[]).filter(q=>q.role==="user"||q.role==="assistant").map(q=>({id:q.id,role:q.role,text:q.text,createdAt:Date.parse(q.at)||Date.now()})))}catch{}})(),()=>{p=!0}},[c]),N.useEffect(()=>{if(!z)return;const p=window.setTimeout(()=>{fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(z.sessionId)}/draft`,{method:"PUT",credentials:"include",headers:{"content-type":"application/json","x-loop-console-confirmation":Za()},body:JSON.stringify({text:ut})})},400);return()=>window.clearTimeout(p)},[c,z,ut]),N.useEffect(()=>{if(!z){Ln([]),Oa(null);return}const p=z.sessionId,U=`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(p)}`;fetch(`${U}/models`,{credentials:"include"}).then(R=>R.ok?R.json():null).then(R=>{!R||Re.current?.sessionId!==p||(Ln(R.models??[]),An(R.thinkingLevels??[]))}),fetch(`${U}/runtime-context`,{credentials:"include"}).then(R=>R.ok?R.json():null).then(R=>{if(!R?.context||Re.current?.sessionId!==p)return;Oa(R.context);const $=R.context,ae={model:$.model,thinkingLevel:$.thinkingLevel};V(q=>{if(!q||q.sessionId!==p||aw(q,ae))return q;const dt=Rh(q,ae);return Re.current=dt,dt})})},[c,z?.sessionId]),N.useEffect(()=>{if(!z)return;const p=ut.slice(0,Ne.current?.selectionStart??ut.length).match(/(?:^|\s)@([^\s@]*)$/);if(!p){ca([]);return}const U=window.setTimeout(()=>{fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(z.sessionId)}/files?q=${encodeURIComponent(p[1]??"")}`).then(R=>R.ok?R.json():null).then(R=>ca((R?.files??[]).map($=>$.path)))},150);return()=>window.clearTimeout(U)},[c,z,ut]);const Ko=N.useCallback(p=>{const U=Ne.current?.selectionStart??ut.length,$=ut.slice(0,U).search(/@[^\s@]*$/);$<0||(Oe(`${ut.slice(0,$)}@${p} ${ut.slice(U)}`),ca([]))},[ut]),Ka=N.useCallback(async p=>{if(!z)return;const U=z.sessionId,R=await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(z.sessionId)}/model`,{method:"POST",credentials:"include",headers:{"content-type":"application/json","x-loop-console-confirmation":Za()},body:JSON.stringify(p)});if(!R.ok){Re.current?.sessionId===U&&se("模型或思考等级切换失败");return}const $=await R.json().catch(()=>({}));$.session&&Re.current?.sessionId===U&&(V(ae=>{if(!ae||ae.sessionId!==U)return ae;const q=Sh($.session);if(aw(ae,q))return ae;const dt=Rh(ae,q);return Re.current=dt,dt}),Oa(ae=>ae&&{...ae,...$.session.modelProvider&&$.session.modelId?{model:{provider:$.session.modelProvider,modelId:$.session.modelId}}:{},...$.session.thinkingLevel?{thinkingLevel:$.session.thinkingLevel}:p.thinkingLevel?{thinkingLevel:p.thinkingLevel}:{}}))},[c,z]);N.useEffect(()=>{if(!B)return;const p=R=>{const $=Yt.current;$&&R.target instanceof Node&&!$.contains(R.target)&&X(!1)},U=R=>{R.key==="Escape"&&X(!1)};return document.addEventListener("mousedown",p),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",U)}},[B]),N.useEffect(()=>{if(!le)return;const p=R=>{const $=Mt.current;$&&R.target instanceof Node&&!$.contains(R.target)&&ye(!1)},U=R=>{R.key==="Escape"&&ye(!1)};return document.addEventListener("mousedown",p),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",p),document.removeEventListener("keydown",U)}},[le]),N.useLayoutEffect(()=>{const p=Ne.current;p&&(p.style.height="auto",p.style.height=`${Math.min(p.scrollHeight,280)}px`)},[ut]);const bo=N.useCallback(()=>{const p=Te.current;if(!p)return;const U=p.scrollHeight-p.scrollTop-p.clientHeight<80;Ta(U)},[]);N.useEffect(()=>{$n&&J.current?.scrollIntoView({behavior:"smooth",block:"end"})},[Ee,$n,Ut]);const Rn=N.useCallback(async(p,U)=>{const R=U?.background===!0;R||tt(!0);try{const $=await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(p)}/context`,{credentials:"include"});if(!$.ok)return;const ae=await $.json();ae.context&&Re.current?.sessionId===p&&rt(q=>HS(q,ae.context)?q:ae.context)}finally{R||tt(!1)}},[c]),ma=N.useCallback(async p=>{se(null),ct([]),pt([]),Ue([]),L([]),ke(null),rt(null),S(!1),Ta(!0);try{const U=await fetch(`${c}/api/operator/v1/chat/sessions`,{method:"POST",headers:{"Content-Type":"application/json","x-loop-console-confirmation":Za()},credentials:"include",body:JSON.stringify(p??{})});if(!U.ok){const ae=await U.json().catch(()=>({}));throw new Error(ae.error?.message??`HTTP ${U.status}`)}const R=await U.json(),$={sessionId:R.sessionId,...R.model?{model:R.model}:{}};return Re.current=$,window.localStorage.setItem(po,$.sessionId),V($),ea(),$}catch(U){return se(U instanceof Error?U.message:String(U)),null}},[c,ea]),zt=N.useCallback((p,U,R,$)=>{const ae=$?.replay===!0;if(p==="reconcile"){const re=typeof U.reason=="string"?U.reason:"cursor_expired";se(`会话事件窗口已过期(${re}),建议刷新历史或新建会话。`);return}const q=U.data&&typeof U.data=="object"?U.data:U,dt=typeof U.turnId=="string"?U.turnId:void 0;let Ft=R;if(dt){const re=Ra.current.get(dt);re?Ft=re:Ra.current.set(dt,R)}if(p==="interview-turn"){ke(re=>({...re??{},interviewSessionId:typeof q.interviewSessionId=="string"?q.interviewSessionId:re?.interviewSessionId,taskId:typeof q.taskId=="string"?q.taskId:re?.taskId,state:typeof q.state=="string"?q.state:re?.state,question:q.question&&typeof q.question=="object"?q.question:void 0}));return}if(p==="draft"){ke(re=>({...re??{},taskId:typeof q.taskId=="string"?q.taskId:re?.taskId,draft:q.draft&&typeof q.draft=="object"?q.draft:re?.draft,draftSha256:typeof q.draftSha256=="string"?q.draftSha256:re?.draftSha256,taskKindRecommendation:typeof q.taskKindRecommendation=="string"?q.taskKindRecommendation:re?.taskKindRecommendation}));return}if(p==="assessment"){ke(re=>({...re??{},assessment:q}));return}if(p==="taskKind-confirmed"){ke(re=>({...re??{},confirmedTaskKind:typeof q.taskKind=="string"?q.taskKind:re?.confirmedTaskKind,taskKindRecommendation:void 0}));return}if(p==="human-gate-card"){const re=ES(q);re&&L(Ve=>SS(Ve,re));return}if(p==="artifact-ref"){const re=CS(q);re&&It(Ve=>kS(Ve,re));return}if(p==="agent_start"){Pn(!0),cn(Ft);return}if(p==="agent_settled"){Pn(!1),cn(null),!ae&&document.hidden&&qe(re=>re+1);return}if(p==="operation-ref"||p==="operation-status"){const re=xS(q);re&&Ue(Ve=>wS(Ve,re));return}if(p==="usage"){if(ae)return;const re=q;On(Ve=>({inputTokens:Ve.inputTokens+(re.inputTokens??0),outputTokens:Ve.outputTokens+(re.outputTokens??0),totalTokens:Ve.totalTokens+(re.totalTokens??0),cost:re.cost===void 0?Ve.cost:(Ve.cost??0)+re.cost}));return}if(p==="message_update"||p==="message_end"){if(ae)return;const re=typeof q.text=="string"?q.text:"";ct(Ve=>Ve.some(y=>y.id===Ft)?Ve.map(y=>y.id===Ft?{...y,text:re}:y):[...Ve,{id:Ft,role:"assistant",text:re,createdAt:Date.now()}])}else if(p==="tool_call"){const re=typeof q.toolCallId=="string"?q.toolCallId:Cc("t"),Ve=typeof q.toolName=="string"?q.toolName:"tool",xt=typeof q.argsPreview=="string"?q.argsPreview:"{}";pt(y=>y.some(G=>G.id===re)?y.map(G=>G.id===re?{...G,args:xt,status:"running"}:G):[...y,{id:re,toolName:Ve,args:xt,status:"running",createdAt:Date.now()}])}else if(p==="tool_result"){const re=typeof q.toolCallId=="string"?q.toolCallId:Cc("r"),Ve=typeof q.toolName=="string"?q.toolName:"tool",xt=q.isError===!0,y=typeof q.resultPreview=="string"?q.resultPreview:"{}";xt&&S(!0),pt(G=>G.find(ne=>ne.id===re)?G.map(ne=>ne.id===re?{...ne,result:y,resultText:y,status:xt?"error":"ok"}:ne):[...G,{id:re,toolName:Ve,result:y,resultText:y,status:xt?"error":"ok",createdAt:Date.now()}])}else p==="error"&&se(typeof q.message=="string"?q.message:"chat error")},[]),Gn=N.useCallback((p,U,R)=>{if(R?.targetSessionId&&Re.current?.sessionId!==R.targetSessionId)return null;const $=p.split(`
241
+ `);let ae="message",q="",dt=null;for(const Ve of $)Ve.startsWith("event: ")?ae=Ve.slice(7).trim():Ve.startsWith("data: ")?q+=Ve.slice(6):Ve.startsWith("id: ")&&(dt=Ve.slice(4).trim());if(!q)return dt;let Ft;try{Ft=JSON.parse(q)}catch{return dt}const re=dt??(typeof Ft.eventId=="string"?Ft.eventId:null);if(re){if(Pt.current.has(re))return re;Pt.current.add(re)}return zt(ae,Ft,U,R),dt??re},[zt]),xn=N.useCallback(async p=>{const U=Re.current;if(!U||!p.trim()&&zn.length===0||fa.current)return;const R={id:Cc("u"),role:"user",text:p.trim(),createdAt:Date.now()};ct(q=>[...q,R]),Oe(""),dn.current?.abort(),dn.current=null,fa.current=!0,Pn(!0),Ta(!0),se(null);const $=Cc("a");at.current=$,cn($),ct(q=>[...q,{id:$,role:"assistant",text:"",createdAt:Date.now()}]);const ae=new AbortController;Fn.current=ae,Tn.current.set(U.sessionId,ae),da.current.add(U.sessionId);try{const q=await fetch(`${c}/api/operator/v1/chat/sessions/${U.sessionId}/prompt`,{method:"POST",headers:{"Content-Type":"application/json","x-loop-console-confirmation":Za(),Accept:"text/event-stream"},credentials:"include",body:JSON.stringify({text:p.trim()||"请查看附件图片。",images:zn.map(({type:Ve,mimeType:xt,data:y})=>({type:Ve,mimeType:xt,data:y}))}),signal:ae.signal});if(!q.ok||!q.body){const Ve=await q.json().catch(()=>({}));throw new Error(Ve.error?.message??`HTTP ${q.status}`)}const dt=q.body.getReader(),Ft=new TextDecoder;let re="";for(;;){const{done:Ve,value:xt}=await dt.read();if(Ve)break;re+=Ft.decode(xt,{stream:!0});const y=re.split(`
242
+
243
+ `);re=y.pop()??"";for(const G of y){const W=Gn(G,$,{targetSessionId:U.sessionId});W&&(At.current=W)}}}catch(q){q?.name==="AbortError"||Re.current?.sessionId===U.sessionId&&se(q instanceof Error?q.message:String(q))}finally{Re.current?.sessionId===U.sessionId&&(fa.current=!1,Pn(!1),cn(null),Fn.current=null,at.current=null,I([])),da.current.delete(U.sessionId),Tn.current.delete(U.sessionId)}},[c,zn]),Wo=N.useCallback(()=>{Fn.current?.abort(),fa.current=!1,Pn(!1),cn(null)},[]),Wa=N.useCallback(async(p,U)=>{for(;!U.aborted;)try{const R={Accept:"text/event-stream"},$=At.current;$&&(R["Last-Event-ID"]=$);const ae=await fetch(`${c}/api/operator/v1/chat/sessions/${p}/events`,{headers:R,credentials:"include",signal:U});if(!ae.ok||!ae.body){if(ae.status===404)return;await Dh(2e3,U);continue}const q=ae.body.getReader(),dt=new TextDecoder;let Ft="",re=at.current;for(re||(re=Cc("a"),at.current=re);;){const{done:Ve,value:xt}=await q.read();if(Ve)break;Ft+=dt.decode(xt,{stream:!0});const y=Ft.split(`
244
+
245
+ `);Ft=y.pop()??"";for(const G of y){const W=Gn(G,re,{replay:!0,targetSessionId:p});W&&(At.current=W)}}await Dh(1e3,U)}catch{if(U.aborted)return;await Dh(2e3,U)}},[c,Gn]);N.useEffect(()=>{if(!z||Ut&&da.current.has(z.sessionId))return;const p=new AbortController;return dn.current=p,Wa(z.sessionId,p.signal),()=>{p.abort(),dn.current===p&&(dn.current=null)}},[z,Ut,Wa]);const vo=N.useCallback(async()=>{const p=Re.current;if(!p)return;const U=window.prompt("Task ID(例如 2026-07-26-my-task)")?.trim();if(!U)return;const R=await fetch(`${c}/api/operator/v1/chat/sessions/${p.sessionId}/interviews`,{method:"POST",headers:{"Content-Type":"application/json","x-loop-console-confirmation":Za()},credentials:"include",body:JSON.stringify({taskId:U})}),$=await R.json();if(!R.ok){se($.error?.message??`HTTP ${R.status}`);return}ke({interviewSessionId:$.interview?.sessionId,taskId:U,state:$.interview?.state,question:$.question,draft:$.draft?.draft,draftSha256:$.draft?.draftSha256,assessment:$.assessment})},[c]),Po=N.useCallback(async p=>{const U=Re.current;if(!U||!K?.interviewSessionId||!K.question)return;const R=await fetch(`${c}/api/operator/v1/chat/sessions/${U.sessionId}/interviews/${K.interviewSessionId}/answers`,{method:"POST",headers:{"Content-Type":"application/json","x-loop-console-confirmation":Za()},credentials:"include",body:JSON.stringify({questionId:K.question.id,response:p,...p==="override"?{text:wn}:{}})}),$=await R.json();if(!R.ok){se($.error?.message??`HTTP ${R.status}`);return}ke(ae=>({...ae??{},state:$.interview?.state,question:$.question,draft:$.draft?.draft,draftSha256:$.draft?.draftSha256,assessment:$.assessment,taskKindRecommendation:$.taskKindRecommendation??ae?.taskKindRecommendation})),Ua("")},[c,K,wn]),Le=N.useCallback(async()=>{const p=Re.current;if(!p||!K?.interviewSessionId||!K.taskKindRecommendation)return;const U=await fetch(`${c}/api/operator/v1/chat/sessions/${p.sessionId}/interviews/${K.interviewSessionId}/task-kind/confirm`,{method:"POST",headers:{"Content-Type":"application/json","x-loop-console-confirmation":Za()},credentials:"include",body:JSON.stringify({taskKind:K.taskKindRecommendation})}),R=await U.json();if(!U.ok){se(R.error?.message??`HTTP ${U.status}`);return}ke($=>({...$??{},confirmedTaskKind:$?.taskKindRecommendation,taskKindRecommendation:void 0,draft:R.draft?.draft,draftSha256:R.draft?.draftSha256,assessment:R.assessment}))},[c,K]);N.useEffect(()=>{z?.sessionId&&Rn(z.sessionId)},[z?.sessionId,Rn]),N.useEffect(()=>{const p=z?.sessionId;if(!p)return;const U=window.setTimeout(()=>{Rn(p,{background:!0})},350);return()=>window.clearTimeout(U)},[z?.sessionId,be,Pe,K,Rn]);const na=N.useCallback(p=>{const U=US(p);Oe(""),kt(!1),U&&(U.action==="focus:interview"?vo():U.action==="show-help"?se(`可用 shortcuts:${jh.map(R=>R.command).join("、")}`):U.action.startsWith("focus-panel:")?ho.current?.scrollIntoView({behavior:"smooth",block:"nearest"}):se(`未知 shortcut:${U.command}`))},[vo]),wt=N.useMemo(()=>ut.startsWith("/")?jh.filter(p=>p.command.startsWith(ut.trim().split(/\s+/,1)[0].toLowerCase())):[],[ut]),mr=N.useCallback(p=>{if(Wt&&wt.length>0&&!p.nativeEvent.isComposing){if(p.key==="ArrowDown"||p.key==="ArrowUp"){p.preventDefault(),F($=>($+(p.key==="ArrowDown"?1:wt.length-1))%wt.length);return}if(p.key==="Escape"){p.preventDefault(),kt(!1);return}if(p.key==="Enter"){p.preventDefault(),na(wt[Un]?.command??wt[0].command);return}}const U=Date.now()-fn.current<100,R=go.current||p.nativeEvent.isComposing;if(p.key==="Enter"&&!p.shiftKey&&(R||U)){U&&p.preventDefault();return}if(p.key==="Enter"&&!p.shiftKey){p.preventDefault(),xn(ut);return}},[ut,xn,Wt,wt,Un,na]),Dl=N.useMemo(()=>Ee.filter(p=>p.role!=="system"||Bn).slice(-Q),[Ee,Bn,Q]);N.useEffect(()=>{const p=()=>{document.hidden||qe(0)};return document.addEventListener("visibilitychange",p),()=>document.removeEventListener("visibilitychange",p)},[]);const es=N.useCallback(async()=>{const p=Re.current;if(!(!p||fa.current))try{const U=await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(p.sessionId)}/compact`,{method:"POST",credentials:"include",headers:{"x-loop-console-confirmation":Za()}}),R=await U.json().catch(()=>({}));if(!U.ok){se(R.error?.message??"上下文压缩失败");return}se(null)}catch(U){se(U instanceof Error?U.message:"上下文压缩失败")}},[c]),yo=N.useMemo(()=>{if(ee.length===0)return null;const p=ee.filter(q=>q.status==="running"),U=ee.filter(q=>q.status==="error"),R=p[p.length-1];let $="完成",ae="ok";return U.length>0?($=`${U.length} 出错`,ae="error"):p.length>0&&($=R?`正在调用 ${R.toolName}`:"运行中",ae="running"),{count:ee.length,statusLabel:$,statusKind:ae}},[ee]),Pa=z?.model??Xe?.model,Fa=Pa?Fr(Pa.provider,Pa.modelId):"",ts=z?.thinkingLevel??Xe?.thinkingLevel??"",Fo=!Fa||Hn.some(p=>Fr(p.provider,p.id)===Fa),No=N.useMemo(()=>{if(!C)return null;const p=(C.tools??[]).map(R=>({toolId:R.toolId,action:R.action,description:R.description,kind:R.kind??"read",cli:R.cli})),U=[..._S];return{explore:U,operator:p,total:U.length+p.length}},[C]),Cl=d.readiness==="setup-required"?"⚠ Pi 未就绪(setup-required):Chat 需要先完成 Pi 认证 / 模型配置。":d.readiness==="degraded"?"⚠ Pi 降级(degraded):可继续对话,但部分能力不可用。":null,eo=async(p,U)=>{if(!(await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(p)}`,{method:"PATCH",credentials:"include",headers:{"content-type":"application/json","x-loop-console-confirmation":Za()},body:JSON.stringify(U)})).ok){se("会话更新失败");return}await ea(),U.state==="archived"&&Re.current?.sessionId===p&&(Re.current=null,V(null),window.localStorage.removeItem(po))},to=s.jsxDEV(vS,{origin:c,open:fe,activeSessionId:z?.sessionId,sessions:ce,tree:k,expanded:oe,treeError:He,onToggleOpen:()=>M(p=>!p),onCreate:()=>{ma()},onActivate:p=>{fr(p)},onRename:(p,U)=>{eo(p,{title:U})},onSetState:(p,U)=>{eo(p,{state:U})},onDelete:p=>{Ja(p)},onRefreshTree:()=>{ja()},onToggleDir:p=>{Se(U=>{const R=new Set(U);return R.has(p)?R.delete(p):R.add(p),R}),k[p]||ja(p)},onInsert:p=>Oe(U=>`${U}${U&&!U.endsWith(" ")?" ":""}@${p} `),onPreview:p=>{ta(p)}},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1872,columnNumber:27},this),Ht=Dl.length>0||be.length>0||Pe.length>0||lt.length>0||!!K;return s.jsxDEV("div",{className:"oc-shell",children:[D?null:s.jsxDEV("div",{className:"oc-banner",children:[s.jsxDEV("span",{className:"oc-banner-title",children:[s.jsxDEV("span",{className:"oc-banner-dot","aria-hidden":"true"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1907,columnNumber:7},this),"对话"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1906,columnNumber:6},this),s.jsxDEV("span",{className:"oc-banner-body",children:["用自然语言编排 loop-agent / agent-worker 的",s.jsxDEV("strong",{children:"全部能力"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1912,columnNumber:7},this),"。这是 ",s.jsxDEV("strong",{children:"Operator"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1912,columnNumber:32},this)," ","面:可通过 safe-read/safe-grep/git-status/git-diff/find/ls 探查仓库、调用受策略约束的 operator action;",s.jsxDEV("strong",{children:"无 bash 或直接写文件工具"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1915,columnNumber:7},this),"(业务写入仍应经受治理 DAG 的 implement-pi / repair-pi)。"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1910,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1905,columnNumber:5},this),Cl&&s.jsxDEV("div",{className:"oc-alert oc-alert-warning",children:Cl},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1922,columnNumber:5},this),un&&s.jsxDEV("div",{className:"oc-alert oc-alert-error",children:[s.jsxDEV("strong",{children:"出错了:"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1926,columnNumber:6},this),un]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1925,columnNumber:5},this),z?s.jsxDEV("div",{className:`oc-workspace${m?" has-process":""}`,children:[to,s.jsxDEV("div",{className:`oc-main${Ht?"":" is-landing"}`,children:[s.jsxDEV(NS,{previews:We,activePath:qt,loading:Kt,onActivate:Ct,onClose:p=>{vt(U=>{const R=U.filter($=>$.path!==p);return z&&window.localStorage.setItem(`${po}.previews.${z.sessionId}`,JSON.stringify(R.map($=>$.path))),R}),Ct(U=>U===p?We.find(R=>R.path!==p)?.path??null:U)}},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1956,columnNumber:7},this),s.jsxDEV("div",{ref:Te,className:`oc-messages${Ht?" has-thread":" is-empty"}`,onScroll:bo,children:[Ht?null:s.jsxDEV(lw,{mode:"empty-session",readiness:d.readiness,disabled:Ut,onSuggest:p=>{xn(p)}},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1981,columnNumber:9},this),Ht&&Ee.length>Dl.length&&s.jsxDEV("button",{type:"button",className:"btn btn-ghost oc-load-history",onClick:()=>ue(p=>p+50),children:"加载更早消息"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1989,columnNumber:9},this),Ht&&Dl.map((p,U)=>{const R=Dl[U-1],$=!R||Ch(R.createdAt)!==Ch(p.createdAt);return s.jsxDEV("div",{children:[$&&s.jsxDEV("div",{className:"oc-day-sep",children:Ch(p.createdAt)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2005,columnNumber:12},this),p.role==="system"?s.jsxDEV("div",{className:"oc-row is-tool",children:s.jsxDEV("div",{className:"oc-bubble oc-bubble-tool",children:p.text},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2009,columnNumber:13},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2008,columnNumber:12},this):s.jsxDEV(qS,{message:p,streaming:Ut,activeAssistantId:ua},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2012,columnNumber:12},this)]},`row-${p.id}`,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2003,columnNumber:10},this)}),K&&s.jsxDEV("section",{className:"oc-draft-card","aria-label":"Requirement Interview",children:[s.jsxDEV("header",{children:[s.jsxDEV("strong",{children:"Requirement Interview"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2028,columnNumber:11},this),s.jsxDEV("span",{children:K.state},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2029,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2027,columnNumber:10},this),K.question&&s.jsxDEV("div",{className:"oc-interview-bubble",children:[s.jsxDEV("strong",{children:K.question.text},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2033,columnNumber:12},this),s.jsxDEV("p",{children:["建议:",K.question.recommendation]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2034,columnNumber:12},this),s.jsxDEV("textarea",{value:wn,onChange:p=>Ua(p.target.value),placeholder:"输入答案"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2035,columnNumber:12},this),s.jsxDEV("div",{children:[s.jsxDEV("button",{className:"btn btn-primary",type:"button",onClick:()=>{Po("override")},disabled:!wn.trim(),children:"提交答案"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2043,columnNumber:13},this),s.jsxDEV("button",{className:"btn btn-ghost",type:"button",onClick:()=>{Po("accept-recommendation")},children:"接受建议"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2051,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2042,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2032,columnNumber:11},this),K.draft&&s.jsxDEV("details",{open:!0,children:[s.jsxDEV("summary",{children:["TaskContractDraftV1 ·"," ",K.draftSha256?.slice(0,12)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2065,columnNumber:12},this),s.jsxDEV("pre",{children:JSON.stringify(K.draft,null,2)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2069,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2064,columnNumber:11},this),K.assessment&&s.jsxDEV("div",{className:`oc-assessment${K.assessment.fresh?" is-fresh":""}`,children:[s.jsxDEV("strong",{children:["完整性:",K.assessment.outcome]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2076,columnNumber:12},this),(K.assessment.missingFields??[]).length>0&&s.jsxDEV("p",{children:["缺失:",K.assessment.missingFields?.join("、")]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2079,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2073,columnNumber:11},this),K.taskKindRecommendation&&s.jsxDEV("div",{className:"oc-task-kind-card",children:[s.jsxDEV("span",{children:"taskKind 建议"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2087,columnNumber:12},this),s.jsxDEV("strong",{children:K.taskKindRecommendation},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2088,columnNumber:12},this),s.jsxDEV("button",{className:"btn btn-primary",type:"button",onClick:()=>{Le()},children:"由我确认"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2089,columnNumber:12},this),s.jsxDEV("small",{children:"模型不能代替人类确认。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2096,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2086,columnNumber:11},this),K.confirmedTaskKind&&s.jsxDEV("div",{className:"oc-task-kind-card is-confirmed",children:["已由人类确认:",s.jsxDEV("strong",{children:K.confirmedTaskKind},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2102,columnNumber:12},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2100,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2023,columnNumber:9},this),Pe.map(p=>s.jsxDEV($S,{card:p,origin:c,sessionId:z.sessionId},p.cardId,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2108,columnNumber:9},this)),be.map(p=>s.jsxDEV(BS,{operation:p,origin:c,onNavigateWorkspace:d.onNavigateWorkspace},p.operationId,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2116,columnNumber:9},this)),lt.map(p=>s.jsxDEV(GS,{artifact:p},p.artifactId,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2124,columnNumber:9},this)),s.jsxDEV("div",{ref:J},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2126,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1975,columnNumber:7},this),s.jsxDEV("div",{className:"oc-composer",children:s.jsxDEV("div",{className:"oc-composer-inner",children:[jt.length>0&&s.jsxDEV("div",{className:"oc-file-palette",role:"listbox","aria-label":"Repository files",children:jt.map(p=>s.jsxDEV("button",{type:"button",role:"option",onMouseDown:U=>U.preventDefault(),onClick:()=>Ko(p),children:s.jsxDEV("code",{children:["@",p]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2145,columnNumber:13},this)},p,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2138,columnNumber:12},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2132,columnNumber:10},this),zn.length>0&&s.jsxDEV("div",{className:"oc-attachment-list",children:zn.map(p=>s.jsxDEV("span",{children:[p.name,s.jsxDEV("button",{type:"button","aria-label":`移除 ${p.name}`,onClick:()=>I(U=>U.filter(R=>R!==p)),children:"×"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2155,columnNumber:13},this)]},p.name,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2153,columnNumber:12},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2151,columnNumber:10},this),s.jsxDEV("div",{className:"oc-composer-toolbar",children:[s.jsxDEV("label",{className:"oc-attach-button",children:["添加图片",s.jsxDEV("input",{type:"file",accept:"image/png,image/jpeg,image/gif,image/webp",multiple:!0,hidden:!0,onChange:p=>{const U=Array.from(p.target.files??[]).slice(0,4);for(const R of U){if(!R.type.startsWith("image/")||R.size>5*1024*1024){se("图片仅支持 PNG/JPEG/GIF/WebP,单张不超过 5 MiB");continue}const $=new FileReader;$.onload=()=>{const ae=String($.result??""),q=ae.slice(ae.indexOf(",")+1);I(dt=>[...dt,{name:R.name,type:"image",mimeType:R.type,data:q}].slice(0,4))},$.readAsDataURL(R)}p.target.value=""}},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2173,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2171,columnNumber:10},this),s.jsxDEV("span",{className:"oc-composer-hint",children:[s.jsxDEV("span",{className:"oc-kbd",children:"Enter"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2216,columnNumber:11},this)," 发送"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2215,columnNumber:10},this),s.jsxDEV("span",{className:"oc-composer-hint",children:[s.jsxDEV("span",{className:"oc-kbd",children:"Shift"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2219,columnNumber:11},this),"+",s.jsxDEV("span",{className:"oc-kbd",children:"Enter"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2220,columnNumber:11},this)," 换行"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2218,columnNumber:10},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2170,columnNumber:9},this),Wt&&wt.length>0&&s.jsxDEV("div",{className:"oc-shortcut-palette",role:"listbox","aria-label":"Chat shortcuts",children:wt.map((p,U)=>s.jsxDEV("button",{type:"button",role:"option","aria-selected":U===Un,className:U===Un?"is-active":"",onMouseDown:R=>R.preventDefault(),onClick:()=>na(p.command),children:[s.jsxDEV("code",{children:p.command},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2239,columnNumber:13},this),s.jsxDEV("span",{children:[s.jsxDEV("strong",{children:p.label},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2241,columnNumber:14},this),s.jsxDEV("small",{children:p.description},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2242,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2240,columnNumber:13},this)]},p.command,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2230,columnNumber:12},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2224,columnNumber:10},this),s.jsxDEV("div",{className:`oc-composer-shell${Ut?" is-busy":""}`,children:[s.jsxDEV("textarea",{ref:Ne,className:"oc-textarea",value:ut,rows:3,placeholder:Ut?"正在生成回复…(可直接发起新问题)":Ht?"输入消息… Enter 发送 · Shift+Enter 换行":"描述目标,或点选上方建议开始…",onChange:p=>{Oe(p.target.value),kt(p.target.value.startsWith("/")),F(0)},onKeyDown:mr,onCompositionStart:()=>{go.current=!0},onCompositionEnd:()=>{go.current=!1,fn.current=Date.now()},disabled:Ut},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2251,columnNumber:10},this),Ut?s.jsxDEV("button",{type:"button",className:"oc-stop",title:"停止生成","aria-label":"停止生成",onClick:Wo,children:s.jsxDEV(KS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2286,columnNumber:12},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2279,columnNumber:11},this):s.jsxDEV("button",{type:"button",className:"oc-send",title:"发送","aria-label":"发送",onClick:()=>{xn(ut)},disabled:!ut.trim()&&zn.length===0,children:s.jsxDEV(JS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2297,columnNumber:12},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2289,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2248,columnNumber:9},this),s.jsxDEV("div",{className:"oc-runtime-controls",children:[s.jsxDEV("select",{className:"oc-model-select","aria-label":"Model",value:Fa,onChange:p=>{const U=Hn.find(R=>Fr(R.provider,R.id)===p.target.value);U&&Ka({provider:U.provider,modelId:U.id})},children:[s.jsxDEV("option",{value:"",children:"选择模型"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2320,columnNumber:11},this),Pa&&!Fo?s.jsxDEV("option",{value:Fa,children:Fa},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2322,columnNumber:12},this):null,Hn.filter(p=>p.hasCredentials!==!1).map(p=>s.jsxDEV("option",{value:Fr(p.provider,p.id),children:Fr(p.provider,p.id)},Fr(p.provider,p.id),!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2327,columnNumber:13},this))]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2302,columnNumber:10},this),s.jsxDEV("select",{className:"oc-thinking-select","aria-label":"Thinking level",value:ts,onChange:p=>{Ka({thinkingLevel:p.target.value})},children:[s.jsxDEV("option",{value:"",children:"思考等级"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2343,columnNumber:11},this),Aa.map(p=>s.jsxDEV("option",{value:p,children:p},p,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2345,columnNumber:12},this))]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2335,columnNumber:10},this),s.jsxDEV("span",{className:"oc-usage",children:[Ut?"运行中":"空闲",ve>0?` · ${ve} 未读`:""," ·"," ",nt.inputTokens," in · ",nt.outputTokens," out ·"," ",nt.totalTokens," tokens ·"," ",nt.cost===void 0?"—":`$${nt.cost.toFixed(4)}`]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2350,columnNumber:10},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost",onClick:()=>{es()},disabled:Ut||!Ht,title:Ht?Ut?"生成中,暂不可压缩":"压缩上下文,释放 token":"先进行对话后再压缩上下文",children:"Compact"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2359,columnNumber:10},this),No?s.jsxDEV("div",{className:"oc-tools-menu oc-tools-menu--composer",ref:Yt,children:[s.jsxDEV("button",{type:"button",className:`oc-cap-chip oc-tools-toggle${B?" is-active":""}`,"aria-pressed":B,"aria-expanded":B,"aria-controls":"oc-tools-catalog",onClick:()=>{X(p=>!p),B||S(!1)},children:[No.total," 工具"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2380,columnNumber:12},this),B&&s.jsxDEV("div",{id:"oc-tools-catalog",className:"oc-tools-catalog",role:"dialog","aria-label":"可用工具列表",children:[s.jsxDEV("header",{className:"oc-tools-catalog-head",children:[s.jsxDEV("strong",{children:"可用工具"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2401,columnNumber:15},this),s.jsxDEV("span",{className:"oc-tools-catalog-meta",children:[No.total," 个 · 点选了解简介"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2402,columnNumber:15},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost oc-tools-catalog-close","aria-label":"关闭工具列表",onClick:()=>X(!1),children:"关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2405,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2400,columnNumber:14},this),s.jsxDEV("div",{className:"oc-tools-catalog-body",children:[No.explore.length>0&&s.jsxDEV("section",{className:"oc-tools-group",children:[s.jsxDEV("h4",{className:"oc-tools-group-title",children:"仓库探查"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2417,columnNumber:17},this),s.jsxDEV("ul",{className:"oc-tools-list",children:No.explore.map(p=>s.jsxDEV("li",{className:"oc-tools-item",children:[s.jsxDEV("div",{className:"oc-tools-item-head",children:[s.jsxDEV("code",{className:"oc-tools-name",children:p.toolId},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2427,columnNumber:21},this),s.jsxDEV("span",{className:"oc-tools-kind is-explore",children:ow(p.kind)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2430,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2426,columnNumber:20},this),s.jsxDEV("p",{className:"oc-tools-desc",children:p.description},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2434,columnNumber:20},this)]},p.toolId,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2422,columnNumber:19},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2420,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2416,columnNumber:16},this),s.jsxDEV("section",{className:"oc-tools-group",children:[s.jsxDEV("h4",{className:"oc-tools-group-title",children:"Operator 动作"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2443,columnNumber:16},this),s.jsxDEV("ul",{className:"oc-tools-list",children:No.operator.map(p=>s.jsxDEV("li",{className:"oc-tools-item",children:[s.jsxDEV("div",{className:"oc-tools-item-head",children:[s.jsxDEV("code",{className:"oc-tools-name",children:p.toolId},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2453,columnNumber:20},this),s.jsxDEV("span",{className:`oc-tools-kind is-${p.kind??"read"}`,children:ow(p.kind)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2456,columnNumber:20},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2452,columnNumber:19},this),s.jsxDEV("p",{className:"oc-tools-desc",children:p.description},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2462,columnNumber:19},this),p.cli&&s.jsxDEV("p",{className:"oc-tools-cli",children:["CLI: ",s.jsxDEV("code",{children:p.cli},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2467,columnNumber:26},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2466,columnNumber:20},this)]},p.toolId,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2448,columnNumber:18},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2446,columnNumber:16},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2442,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2414,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2394,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2376,columnNumber:11},this):null,yo&&s.jsxDEV("button",{type:"button",className:`oc-process-summary is-${yo.statusKind}${m?" is-open":""}`,"aria-pressed":m,"aria-controls":"oc-process-panel",onClick:()=>{S(p=>!p),m||X(!1)},children:["执行过程 · ",yo.count," 工具 ·"," ",yo.statusLabel]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2480,columnNumber:11},this),Xe&&s.jsxDEV(IS,{ref:Mt,open:le,onToggle:()=>ye(p=>!p),onClose:()=>ye(!1),context:Xe},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2497,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2301,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2130,columnNumber:8},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2129,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1955,columnNumber:6},this),m&&s.jsxDEV("aside",{id:"oc-process-panel",className:"oc-process","aria-label":"执行过程",children:[s.jsxDEV("header",{className:"oc-process-head",children:[s.jsxDEV("div",{className:"oc-process-title",children:[s.jsxDEV("span",{className:"oc-process-title-mark","aria-hidden":"true"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2518,columnNumber:10},this),"执行过程",s.jsxDEV("span",{className:"oc-process-count",children:ee.length},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2520,columnNumber:10},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2517,columnNumber:9},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost oc-process-close","aria-label":"关闭执行过程",onClick:()=>S(!1),children:"关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2522,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2516,columnNumber:8},this),s.jsxDEV("div",{className:"oc-process-timeline",children:ee.length===0?s.jsxDEV("div",{className:"oc-process-empty",children:"本轮对话尚无工具调用。诊断细节会在这里按时间线展示。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2533,columnNumber:10},this):ee.map((p,U)=>s.jsxDEV("div",{className:`oc-process-item${U===0?" is-first":""}${U===ee.length-1?" is-last":""}${p.status==="error"?" is-error":""}${p.status==="running"?" is-running":""}`,children:[s.jsxDEV("div",{className:"oc-process-rail","aria-hidden":"true",children:s.jsxDEV("span",{className:"oc-process-dot"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2547,columnNumber:13},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2546,columnNumber:12},this),s.jsxDEV("div",{className:"oc-process-time",children:pw(p.createdAt)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2549,columnNumber:12},this),s.jsxDEV("div",{className:"oc-process-body",children:s.jsxDEV(XS,{entry:p},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2553,columnNumber:13},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2552,columnNumber:12},this)]},p.id,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2538,columnNumber:11},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2531,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2511,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1953,columnNumber:5},this):s.jsxDEV("div",{className:"oc-workspace",children:[to,s.jsxDEV("div",{className:"oc-main is-landing",children:s.jsxDEV("div",{className:"oc-messages is-empty",children:s.jsxDEV(lw,{mode:"no-session",readiness:d.readiness,onSuggest:async p=>{await ma()&&await xn(p)},onCreateSession:()=>{ma()}},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1936,columnNumber:8},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1935,columnNumber:7},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1934,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1932,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:1903,columnNumber:3},this)}N.memo(N.forwardRef(function({context:c,loading:v},D){return s.jsxDEV("section",{ref:D,className:"oc-task-context","aria-label":"Task context",children:[s.jsxDEV("header",{children:[s.jsxDEV("div",{children:[s.jsxDEV("small",{children:"Durable task context"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2576,columnNumber:7},this),s.jsxDEV("strong",{children:c?.taskId??"当前任务"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2577,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2575,columnNumber:6},this),s.jsxDEV("span",{children:v&&!c?"同步中…":c?.updatedAt?"已恢复":"等待事件"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2579,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2574,columnNumber:5},this),c?.taskId?s.jsxDEV("div",{className:"oc-task-context-grid",children:[s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"Draft"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2594,columnNumber:8},this),s.jsxDEV("span",{children:c.draft?c.draft.draftSha256.slice(0,12):"未生成"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2595,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2593,columnNumber:7},this),s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"Assessment"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2602,columnNumber:8},this),s.jsxDEV("span",{children:c.assessment?`${c.assessment.outcome}${c.assessment.fresh?" · fresh":""}`:"未评估"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2603,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2601,columnNumber:7},this),s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"Task kind"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2610,columnNumber:8},this),s.jsxDEV("span",{children:c.taskKind?.value??c.draft?.taskKindRecommendation??"待确认"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2611,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2609,columnNumber:7},this),s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"Contract"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2618,columnNumber:8},this),s.jsxDEV("span",{children:c.contract?.confirmationState??"待准备"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2619,columnNumber:8},this),c.contract?.diffSummary&&s.jsxDEV("small",{children:c.contract.diffSummary},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2621,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2617,columnNumber:7},this),s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"DAG"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2625,columnNumber:8},this),s.jsxDEV("span",{children:c.dag?.confirmationState??"待生成"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2626,columnNumber:8},this),c.dag?.spine&&s.jsxDEV("small",{children:c.dag.spine.join(" → ")},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2628,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2624,columnNumber:7},this),s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"Operations"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2632,columnNumber:8},this),s.jsxDEV("span",{children:c.operations.length?c.operations.map(C=>`${C.action}: ${C.state}`).join(" · "):"无"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2633,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2631,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2592,columnNumber:6},this):s.jsxDEV("p",{className:"oc-task-context-empty",children:"Draft、assessment、Contract 与 DAG 状态会在此实时聚合。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2588,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2573,columnNumber:4},this)}));function $S({card:d,origin:c,sessionId:v}){const[D,C]=N.useState(!1),[T,z]=N.useState(),V=async()=>{C(!0),z(void 0);try{const M=d.gateType==="dag-run"?d.state==="prepared"?"dag-confirm":"dag-run":d.gateType==="mutation"?"mutation-apply":"contract-apply",k=d.gateType==="dag-run"?{confirmationId:d.confirmationId,...d.state==="prepared"?{humanGateToken:d.humanGateToken}:{}}:{receiptId:d.receiptId,humanGateToken:d.humanGateToken},_=await fetch(`${c}/api/operator/v1/chat/sessions/${encodeURIComponent(v)}/human-gate/${M}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","x-loop-console-confirmation":Za()},body:JSON.stringify(k)}),oe=await _.json();if(!_.ok)throw new Error(oe.error?.message??`HTTP ${_.status}`)}catch(M){z(M instanceof Error?M.message:String(M))}finally{C(!1)}},ce=d.state==="prepared"||d.gateType==="dag-run"&&d.state==="confirmed",Ie=d.gateType==="contract-apply"?"Contract apply":d.gateType==="mutation"?"Mutation":"DAG run",fe=d.gateType==="contract-apply"?"Apply":d.gateType==="mutation"?"Execute":d.state==="prepared"?"Confirm":"Run";return s.jsxDEV("section",{className:`oc-human-gate-card is-${d.state}`,"aria-label":`Human gate ${d.cardId}`,children:[s.jsxDEV("header",{children:[s.jsxDEV("div",{children:[s.jsxDEV("small",{children:"HumanGateCard · 仅人类可确认"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2731,columnNumber:6},this),s.jsxDEV("strong",{children:Ie},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2732,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2730,columnNumber:5},this),s.jsxDEV("span",{children:d.state},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2734,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2729,columnNumber:4},this),d.contractDiffSummary&&s.jsxDEV("p",{children:d.contractDiffSummary},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2736,columnNumber:33},this),d.displayOnlyChallenges&&s.jsxDEV("div",{className:"oc-human-gate-challenges",children:[s.jsxDEV("b",{children:"Challenge(仅展示,不是确认信号)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2739,columnNumber:6},this),s.jsxDEV("ul",{children:d.displayOnlyChallenges.map(M=>s.jsxDEV("li",{children:M},M,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2742,columnNumber:8},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2740,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2738,columnNumber:5},this),d.dagSpine&&d.dagSpine.length>0&&s.jsxDEV("div",{children:[s.jsxDEV("b",{children:"DAG spine"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2749,columnNumber:6},this),s.jsxDEV("ol",{children:d.dagSpine.map(M=>s.jsxDEV("li",{children:s.jsxDEV("code",{children:M},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2753,columnNumber:9},this)},M,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2752,columnNumber:8},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2750,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2748,columnNumber:5},this),s.jsxDEV("footer",{children:[s.jsxDEV("a",{href:d.inspectHref,children:"Inspect"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2760,columnNumber:5},this),s.jsxDEV("button",{className:"btn btn-primary",type:"button",disabled:!ce||D,onClick:()=>{V()},children:D?"提交中…":fe},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2761,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2759,columnNumber:4},this),T&&s.jsxDEV("div",{className:"oc-human-gate-error",children:T},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2770,columnNumber:14},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2725,columnNumber:3},this)}function BS(d){const{operation:c}=d,v=c.inspectHref.startsWith("/")?`${d.origin}${c.inspectHref}`:c.inspectHref,D=c.state==="failed"||c.state==="timed-out"||c.state==="needs-reconcile",C=(z,V)=>{d.onNavigateWorkspace?d.onNavigateWorkspace(z,V):window.location.assign(jS(z,V))},T=[c.taskId?["task",c.taskId]:void 0,c.dagRunId?["dag",c.dagRunId]:void 0,c.featureId?["feature",c.featureId]:void 0,c.workerRunId?["worker",c.workerRunId]:void 0].filter(z=>!!z);return s.jsxDEV("section",{className:`oc-operation-card is-${c.state}`,"aria-label":`Operation ${c.operationId}`,children:[s.jsxDEV("header",{className:"oc-operation-head",children:[s.jsxDEV("div",{children:[s.jsxDEV("div",{className:"oc-operation-kicker",children:"Operation"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2808,columnNumber:6},this),s.jsxDEV("strong",{children:c.action},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2809,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2807,columnNumber:5},this),s.jsxDEV("span",{className:`oc-operation-state is-${c.state}`,children:c.state},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2811,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2806,columnNumber:4},this),s.jsxDEV("div",{className:"oc-operation-id",children:s.jsxDEV("code",{children:c.operationId},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2816,columnNumber:5},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2815,columnNumber:4},this),T.length>0&&s.jsxDEV("div",{className:"oc-operation-identities",children:T.map(([z,V])=>s.jsxDEV("span",{children:[s.jsxDEV("b",{children:z},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2822,columnNumber:8},this)," ",V]},`${z}:${V}`,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2821,columnNumber:7},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2819,columnNumber:5},this),c.controller&&s.jsxDEV("div",{className:"oc-operation-controller",children:["controller: ",c.controller]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2828,columnNumber:5},this),c.summaryPreview&&s.jsxDEV("pre",{className:"oc-operation-preview",children:c.summaryPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2833,columnNumber:5},this),c.stderrPreview&&s.jsxDEV("pre",{className:"oc-operation-preview is-error",children:c.stderrPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2836,columnNumber:5},this),c.stdoutPreview&&s.jsxDEV("pre",{className:"oc-operation-preview",children:c.stdoutPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2841,columnNumber:5},this),s.jsxDEV("footer",{className:"oc-operation-actions",children:[s.jsxDEV("a",{className:"btn btn-ghost",href:v,target:"_blank",rel:"noreferrer",children:"Inspect"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2844,columnNumber:5},this),c.taskId&&s.jsxDEV("button",{className:"btn btn-ghost",type:"button",onClick:()=>C("tasks",{taskId:c.taskId}),children:"打开 Task Ops"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2853,columnNumber:6},this),c.dagRunId&&s.jsxDEV("a",{className:"btn btn-ghost",href:`${d.origin}/inspect/#/dag/${encodeURIComponent(c.dagRunId)}`,target:"_blank",rel:"noreferrer",children:"打开 Run / Inspect"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2862,columnNumber:6},this),D&&(c.dagRunId||c.taskId)&&s.jsxDEV("button",{className:"btn btn-primary",type:"button",onClick:()=>C("recovery",{taskId:c.taskId,dagRunId:c.dagRunId}),children:"打开 Recovery"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2872,columnNumber:6},this),s.jsxDEV("time",{dateTime:c.updatedAt,children:new Date(c.updatedAt).toLocaleString()},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2885,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2843,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2802,columnNumber:3},this)}function GS(d){const{artifact:c}=d;return s.jsxDEV("section",{className:"oc-artifact-card","aria-label":`${c.kind} artifact`,children:[s.jsxDEV("header",{children:[s.jsxDEV("strong",{children:c.title??c.artifactId},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2901,columnNumber:5},this),s.jsxDEV("span",{children:c.kind},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2902,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2900,columnNumber:4},this),c.summary&&s.jsxDEV("p",{children:c.summary},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2904,columnNumber:25},this),c.reportText&&s.jsxDEV("pre",{children:c.reportText},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2905,columnNumber:28},this),c.htmlPreview&&s.jsxDEV("iframe",{title:`${c.title??c.artifactId} preview`,sandbox:"",srcDoc:c.htmlPreview},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2907,columnNumber:5},this),c.inspectHref&&s.jsxDEV("a",{href:c.inspectHref,children:"查看详情"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2913,columnNumber:29},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2896,columnNumber:3},this)}function qS(d){const{message:c,streaming:v,activeAssistantId:D}=d,C=c.role==="user",T=C?"你":"π",z=C?"你":"助手",V=!C&&v&&D!==null&&c.id===D,ce=V&&c.text.length===0,Ie=c.text.trim().length>0;return s.jsxDEV("div",{className:`oc-row ${C?"is-user":"is-assistant"}`,children:[s.jsxDEV("div",{className:"oc-meta",children:[s.jsxDEV("span",{className:`oc-avatar ${C?"oc-avatar-user":"oc-avatar-assistant"}`,"aria-hidden":"true",children:T},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2940,columnNumber:5},this),s.jsxDEV("span",{className:"oc-role",children:z},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2946,columnNumber:5},this),s.jsxDEV("span",{className:"oc-time",children:pw(c.createdAt)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2947,columnNumber:5},this),Ie&&s.jsxDEV(YS,{text:c.text},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2948,columnNumber:20},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2939,columnNumber:4},this),s.jsxDEV("div",{className:`oc-bubble ${C?"oc-bubble-user":"oc-bubble-assistant"}`,children:[Ie?C?s.jsxDEV("div",{style:{whiteSpace:"pre-wrap"},children:c.text},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2957,columnNumber:7},this):s.jsxDEV(cS,{text:c.text},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2959,columnNumber:7},this):ce?s.jsxDEV("span",{className:"oc-cursor","aria-hidden":"true"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2962,columnNumber:6},this):s.jsxDEV("span",{style:{color:"var(--muted-soft)"},children:"…"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2964,columnNumber:6},this),V&&Ie&&s.jsxDEV("span",{className:"oc-cursor","aria-hidden":"true"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2967,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2950,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2938,columnNumber:3},this)}const IS=N.forwardRef(function({open:c,onToggle:v,onClose:D,context:C},T){const z=Object.keys(C.resources??{}).length;return s.jsxDEV("div",{className:"oc-runtime-context-menu",ref:T,children:[s.jsxDEV("button",{type:"button",className:`btn btn-ghost oc-runtime-context-toggle${c?" is-active":""}`,"aria-expanded":c,"aria-controls":"oc-runtime-context-panel",onClick:v,children:"注入上下文"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2986,columnNumber:4},this),c&&s.jsxDEV("div",{id:"oc-runtime-context-panel",className:"oc-runtime-context-panel",role:"dialog","aria-label":"注入上下文",children:[s.jsxDEV("header",{className:"oc-runtime-context-head",children:[s.jsxDEV("strong",{children:"注入上下文"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3003,columnNumber:7},this),s.jsxDEV("span",{className:"oc-runtime-context-meta",children:"只读 · 本轮请求实际注入"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3004,columnNumber:7},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost oc-runtime-context-close","aria-label":"关闭",onClick:D,children:"关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3007,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3002,columnNumber:6},this),s.jsxDEV("div",{className:"oc-runtime-context-body",children:[s.jsxDEV("dl",{className:"oc-runtime-context-dl",children:[s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"System prompt"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3019,columnNumber:9},this),s.jsxDEV("dd",{children:[C.systemPrompt.summary??"—",s.jsxDEV("code",{className:"oc-runtime-context-hash",children:[C.systemPrompt.hash.slice(0,12),"…"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3022,columnNumber:10},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3020,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3018,columnNumber:8},this),C.model&&s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Model"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3029,columnNumber:10},this),s.jsxDEV("dd",{children:s.jsxDEV("code",{children:Fr(C.model.provider,C.model.modelId)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3031,columnNumber:11},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3030,columnNumber:10},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3028,columnNumber:9},this),C.thinkingLevel&&s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Thinking"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3042,columnNumber:10},this),s.jsxDEV("dd",{children:C.thinkingLevel},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3043,columnNumber:10},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3041,columnNumber:9},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Skills"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3047,columnNumber:9},this),s.jsxDEV("dd",{children:C.skills.length===0?"无":s.jsxDEV("ul",{className:"oc-runtime-context-skills",children:C.skills.map(V=>s.jsxDEV("li",{children:[s.jsxDEV("code",{children:V.name},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3055,columnNumber:14},this),s.jsxDEV("span",{children:[V.charCount.toLocaleString()," 字"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3056,columnNumber:14},this)]},V.name,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3054,columnNumber:13},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3052,columnNumber:11},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3048,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3046,columnNumber:8},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Suffix"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3064,columnNumber:9},this),s.jsxDEV("dd",{children:C.suffix.present?C.suffix.summary??"已注入":"未注入"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3065,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3063,columnNumber:8},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Resources"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3072,columnNumber:9},this),s.jsxDEV("dd",{children:z>0?`${z} 项`:"无"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3073,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3071,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3017,columnNumber:7},this),s.jsxDEV("details",{className:"oc-runtime-context-raw",children:[s.jsxDEV("summary",{children:"原始 JSON"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3077,columnNumber:8},this),s.jsxDEV("pre",{children:JSON.stringify(C,null,2)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3078,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3076,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3016,columnNumber:6},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2996,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:2985,columnNumber:3},this)});function YS(d){const[c,v]=N.useState(!1),D=()=>{navigator.clipboard?.writeText(d.text).then(()=>{v(!0),window.setTimeout(()=>v(!1),1600)},()=>{})};return s.jsxDEV("button",{type:"button",className:`oc-message-copy${c?" is-copied":""}`,"aria-label":c?"已复制":"复制消息",title:c?"已复制":"复制",onClick:D,children:c?s.jsxDEV(ZS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3106,columnNumber:14},this):s.jsxDEV(QS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3106,columnNumber:30},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3099,columnNumber:3},this)}function XS(d){const{entry:c}=d,[v,D]=N.useState(c.status==="error"),C=c.status==="running"?"运行中":c.status==="error"?"出错":"完成",T=`is-${c.status}`,z=MS(c.args);return s.jsxDEV("div",{className:`oc-tool ${c.status==="error"?"is-error":""} ${c.status==="running"?"is-running":""}`,children:[s.jsxDEV("button",{type:"button",className:"oc-tool-head","aria-expanded":v,onClick:()=>D(V=>!V),children:[s.jsxDEV(WS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3135,columnNumber:5},this),s.jsxDEV("span",{className:"oc-tool-icon","aria-hidden":"true",children:s.jsxDEV(PS,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3137,columnNumber:6},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3136,columnNumber:5},this),s.jsxDEV("span",{className:"oc-tool-name",children:c.toolName},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3139,columnNumber:5},this),z&&s.jsxDEV("span",{className:"oc-tool-args",children:z},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3140,columnNumber:20},this),s.jsxDEV("span",{className:`oc-tool-status ${T}`,children:C},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3141,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3129,columnNumber:4},this),v&&s.jsxDEV("div",{className:"oc-tool-body",children:[c.args!==void 0&&s.jsxDEV("div",{className:"oc-tool-section",children:[s.jsxDEV("div",{className:"oc-tool-label",children:"入参"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3147,columnNumber:8},this),s.jsxDEV("pre",{className:"oc-tool-code",children:typeof c.args=="string"?c.args:JSON.stringify(c.args,null,2)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3148,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3146,columnNumber:7},this),c.resultText!==void 0&&s.jsxDEV("div",{className:"oc-tool-section",children:[s.jsxDEV("div",{className:"oc-tool-label",children:c.status==="error"?"错误":"结果"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3157,columnNumber:8},this),s.jsxDEV("pre",{className:"oc-tool-code",children:c.resultText},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3160,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3156,columnNumber:7},this),c.status==="running"&&c.resultText===void 0&&c.args===void 0&&s.jsxDEV("div",{className:"oc-tool-section",children:s.jsxDEV("div",{className:"oc-tool-waiting",children:"等待结果…"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3167,columnNumber:9},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3166,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3144,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3124,columnNumber:3},this)}function QS(){return s.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[s.jsxDEV("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3191,columnNumber:4},this),s.jsxDEV("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3192,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3180,columnNumber:3},this)}function ZS(){return s.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:s.jsxDEV("polyline",{points:"20 6 9 17 4 12"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3210,columnNumber:4},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3199,columnNumber:3},this)}function JS(){return s.jsxDEV("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[s.jsxDEV("line",{x1:"22",y1:"2",x2:"11",y2:"13"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3228,columnNumber:4},this),s.jsxDEV("polygon",{points:"22 2 15 22 11 13 2 9 22 2"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3229,columnNumber:4},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3217,columnNumber:3},this)}function KS(){return s.jsxDEV("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:s.jsxDEV("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3243,columnNumber:4},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3236,columnNumber:3},this)}function WS(){return s.jsxDEV("svg",{className:"oc-tool-chevron",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:s.jsxDEV("polyline",{points:"4 2.5 7.5 6 4 9.5"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3260,columnNumber:4},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3250,columnNumber:3},this)}function PS(){return s.jsxDEV("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:s.jsxDEV("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3278,columnNumber:4},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/OperatorChat.tsx",lineNumber:3267,columnNumber:3},this)}function Hd(d){const c=(d??"").trim();return c?/controller identity changed|package fingerprint changed|entry binary sha256 changed/i.test(c)?"控制器版本已变更(Console 启动后代码被重新编译)。请重启 Console 后再试,一次会话中途不要升级/重建控制器。":c:"操作失败"}const FS={report:{id:"report",label:"查看报告",action:"dagReport",lane:"dag",guide:"看失败分类与建议动作(交接报告摘要)",commandHint:"loop-agent dag report --run-id <run-id> --json"},doctor:{id:"doctor",label:"Doctor 诊断",action:"doctor",lane:"dag",guide:"只读诊断:检查 Console / Pi / 仓库就绪,不是重跑前置",commandHint:"agent-worker console doctor --repo ."},decision:{id:"decision",label:"人工决策",lane:"dag",guide:"暂停等人时:先看 doctor 输出再做决策(经 CLI)",commandHint:"loop-agent dag doctor --run-id <run-id> --markdown"},resume:{id:"resume",label:"恢复运行",lane:"dag",guide:"仅当运行可安全 resume 时使用(经 CLI)",commandHint:"loop-agent run-dag --resume --run-id <run-id>"},reconcile:{id:"reconcile",label:"对账 / reconcile",requiresReason:!0,lane:"dag",guide:"状态不一致时先对账,再决定是否重跑(需原因)",commandHint:"loop-agent dag reconcile-run --run-id <run-id> --reason <structured-reason>"},regenerate:{id:"regenerate",label:"重新生成契约/计划",lane:"dag",guide:"契约/计划过期时:回任务页或经 CLI 重新 run-task(本页仅提示)",commandHint:"loop-agent dag run-task <task-id> --profile auto"},observeLink:{id:"observeLink",label:"全屏观测",action:"observeLink",lane:"dag",guide:"打开完整 Inspect 画布;顶栏可返回操作台",commandHint:"agent-worker console serve --repo . --port 8790"},dagRerun:{id:"dagRerun",label:"从节点重跑",requiresReason:!0,action:"dagRerun",lane:"dag",guide:"子图重跑:需选起点且 plan 合格;含 writer 的早期节点常不可用",commandHint:"loop-agent dag rerun --run-id <run-id> --from-node <node-id> --plan"},standaloneTaskRerun:{id:"standaloneTaskRerun",label:"完整重跑任务",requiresReason:!0,action:"standaloneTaskRerun",lane:"dag",guide:"整单重跑:失败类默认首选;需确认原因后提交",commandHint:"loop-agent dag rerun-task --run-id <run-id> --reason <reason> --request-id <key>"},workerTaskRetry:{id:"workerTaskRetry",label:"重新排队 Worker Task",requiresReason:!0,action:"workerTaskRetry",lane:"worker",guide:"仅 Worker 队列任务失败时使用,不要与 DAG 重跑混用",commandHint:"agent-worker task retry <task-id> --feature-id <feature-id> --repo . --reason <reason>"}},rw={"validation-failed":["report","doctor","regenerate"],"contract-drift":["report","doctor","decision","reconcile","regenerate"],"runtime-mismatch":["report","doctor","reconcile","regenerate"],"pause-on-human":["decision","resume","report","doctor"],"verification-failed":["report","doctor","standaloneTaskRerun","dagRerun","resume","regenerate"],"orphan-unknown":["report","doctor","reconcile"],"terminal-failed":["report","doctor","dagRerun","standaloneTaskRerun","workerTaskRetry","regenerate"],"terminal-succeeded":["report","observeLink"],"needs-reconcile":["report","doctor","reconcile","regenerate"]};function eD(d){return(rw[d]??rw["orphan-unknown"]).map(v=>FS[v])}function tD(d){const c=[],v=[];for(const D of d)D.lane==="worker"?v.push(D):c.push(D);return{dag:c,worker:v}}function nD(d){return typeof d.action=="string"&&d.action.trim().length>0}function hw(d){return eD(d).filter(nD)}function aD(d){const c=new Set(hw(d).map(D=>D.id)),v=(...D)=>{for(const C of D)if(c.has(C))return C;return null};switch(d){case"terminal-failed":case"verification-failed":return v("standaloneTaskRerun","dagRerun","doctor","report");case"pause-on-human":return v("doctor","report");case"needs-reconcile":case"runtime-mismatch":case"contract-drift":return v("doctor","report");case"validation-failed":return v("doctor","report");case"terminal-succeeded":return v("observeLink","report");default:return v("doctor","report")}}function oD(d){if(d.needsReconcile)return"needs-reconcile";const c=(d.errorCode??"").toLowerCase(),v=(d.operationState??"").toLowerCase(),D=(d.dagStatus??"").toLowerCase();return c.includes("validation")||c.includes("invalid")||v.includes("validation")?"validation-failed":c.includes("contract")||c.includes("drift")||c.includes("binding")?"contract-drift":c.includes("runtime")||c.includes("mismatch")||c.includes("fingerprint")?"runtime-mismatch":c.includes("human")||v.includes("paused")||D.includes("paused")||v.includes("awaiting")?"pause-on-human":c.includes("verif")||v.includes("verif")?"verification-failed":v==="succeeded"||v==="completed"||D==="succeeded"||D==="completed"?"terminal-succeeded":v==="failed"||v.includes("fail")||D==="failed"||c.includes("fail")?"terminal-failed":c.includes("reconcil")||v.includes("reconcil")?"needs-reconcile":"orphan-unknown"}const Vh=new Set(["failed","error","partial_failed"]),gw=new Set(["blocked","paused","awaiting_human"]);function qd(d){return(d??"").trim().toLowerCase()}function lD(d){return Vh.has(qd(d))}function sw(d){const c=qd(d.status);return Vh.has(c)||c.includes("fail")?0:d.lifecycle==="paused"||c==="paused"?1:d.lifecycle==="active"?2:3}function rD(d){return[...d].sort((c,v)=>{const D=sw(c)-sw(v);return D!==0?D:v.mtimeMs-c.mtimeMs})}function sD(d){return rD(d)[0]?.dagRunId}function iw(d){const c=qd(d.status);return Vh.has(c)?0:gw.has(c)?1:2}function bw(d){return[...d].sort((c,v)=>{const D=iw(c)-iw(v);return D!==0?D:c.nodeId.localeCompare(v.nodeId)})}function iD(d){const c=bw(d);return c.find(D=>lD(D.status)||gw.has(qd(D.status)))?.nodeId??c[0]?.nodeId}function cD(d){const c=d.status?.trim()||d.lifecycle;return`${d.dagRunId.length>36?`${d.dagRunId.slice(0,18)}…${d.dagRunId.slice(-8)}`:d.dagRunId} · ${c}`}function uD(d){const c=d.status?.trim()||"unknown",v=d.label?.trim();return v&&v!==d.nodeId?`${d.nodeId} · ${c} · ${v}`:`${d.nodeId} · ${c}`}function dD(d){const v=[`operator-recovery: ${d.actionLabel?.trim()||"恢复"}`],D=d.dagRunId?.trim();if(D){const V=d.runStatus?.trim();v.push(V?`run=${D} (${V})`:`run=${D}`)}const C=d.fromNodeId?.trim();if(C){const V=d.nodeStatus?.trim();v.push(V?`from-node=${C} (${V})`:`from-node=${C}`)}const T=d.factClassLabel?.trim();T&&v.push(`fact=${T}`);const z=d.nodeError?.trim()||d.errorMessage?.trim()||(d.errorCode?.trim()?`code=${d.errorCode.trim()}`:"");return z&&v.push(`detail=${z.replace(/\s+/g," ").slice(0,280)}`),v.join(`
246
+ `).slice(0,500)}function cw(d){const c=d.trim();return c?c==="operator-recovery"||c.startsWith("operator-recovery:")||c.startsWith("recovery:"):!0}function fD(d){return d==="validate"||d==="apply"||d==="spine"?"contract":d}const vw="X-Loop-Console-Confirmation",mD="agent-worker console doctor --repo .",kh=[{kind:"standard",label:"后端研发(默认 DAG)",hint:"生成标准 hybrid DAG(contract → implement → verify)"},{kind:"frontend-implementation",label:"前端研发",hint:"生成 frontend-implementation 专用节点链"},{kind:"backend-test",label:"后端测试",hint:"生成 backend-test-dag(分析 / 用例 / pytest)"},{kind:"frontend-test",label:"前端测试",hint:"生成 frontend-test-dag(RAG 用例 + Playwright CLI)"}],Uh={"setup-required":"需要设置",ready:"已就绪",degraded:"降级可用",unknown:"未知"},pD={idle:"未探测",match:"匹配",mismatch:"仓库不匹配",unavailable:"不可用"},uw={low:"低",medium:"中",high:"高"},dw={"validation-failed":"校验失败","contract-drift":"契约漂移","runtime-mismatch":"运行时不匹配","pause-on-human":"等待人工","verification-failed":"验证失败","orphan-unknown":"孤立/未知","terminal-failed":"已终止(失败)","terminal-succeeded":"已终止(成功)","needs-reconcile":"需要对账"},hD={idle:"空闲","not-started":"未开始","not-run":"未运行","n/a (MVP)":"不适用(MVP)",accepted:"已接受",succeeded:"已成功",running:"运行中",ran:"已执行"};function Ld(d){return hD[d]??d}function yw(){return window.__CONSOLE_CONFIRMATION_TOKEN__??""}function $d(d){return`${d}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`}async function Ah(d,c={},v){const D={"Content-Type":"application/json",[vw]:yw()},C=await fetch("/api/operator/v1/operations",{method:"POST",credentials:"same-origin",headers:D,body:JSON.stringify({action:d,actionParams:c,...v?{clientRequestId:v}:{}})});let T={};try{T=await C.json()}catch{T={ok:!1,error:{code:"INVALID_INPUT",message:"操作响应不是合法 JSON"}}}return{status:C.status,body:T}}const gD=new Set(["runDag","dagRerun","standaloneTaskRerun"]);function Oh(d){const c=(d.blockedReasons??[]).map(String),v=(d.blockingNodes??[]).map(C=>[C.nodeId,C.reasonCode].filter(Boolean).join(":")),D=[...c,...v].filter(Boolean);return D.length===0?"从节点重跑不具备安全资格(子图含 writer / unsafe shell / decision-gate 等)。可改用「完整重跑任务」,或另选只读安全子图的起始节点。":`从节点重跑不具备安全资格:${D.slice(0,6).join("; ")}${D.length>6?"…":""}。可改用「完整重跑任务」。`}async function fw(d,c=9e4){const v=Date.now();for(;Date.now()-v<c;){const D=await fetch(`/api/operator/v1/operations/${encodeURIComponent(d)}`,{credentials:"same-origin"});if(!D.ok)return null;const C=await D.json(),T=C.operation??C,z=T.state??"";if(z==="succeeded"||z==="failed"||z==="needs-reconcile"||z==="timed-out")return T;await new Promise(V=>setTimeout(V,250))}return{state:"needs-reconcile",errorMessage:"等待操作结果超时"}}function bD(){const[d,c]=N.useState(()=>RS({env:void 0,storage:window.localStorage,location:window.location})),[v,D]=N.useState(null),[C,T]=N.useState("setup-required"),[z,V]=N.useState(null),[ce,Ie]=N.useState(null),[fe,M]=N.useState("setup"),k=N.useCallback(y=>{M(G=>fD(typeof y=="function"?y(G):y))},[]),[_,oe]=N.useState(""),[Se,He]=N.useState(""),[me,We]=N.useState("standard"),vt=kh.find(y=>y.kind===me)??kh[0],[qt,Ct]=N.useState(`# 需求
247
+
248
+ 实现 Loop Operator Console Happy Path:Interview → 契约落地 → DAG confirm → run。
249
+ `),[Kt,Rt]=N.useState(null),[Ee,ct]=N.useState(null),[ee,pt]=N.useState(""),[be,Ue]=N.useState(null),[lt,It]=N.useState(null),[Q,ue]=N.useState(null),[ve,qe]=N.useState(null),[Pe,L]=N.useState(null),[K,ke]=N.useState(!1),[Ae,rt]=N.useState(null),[ka,tt]=N.useState(null),Wt=N.useRef(!1),[kt,Un]=N.useState(null),[F,ho]=N.useState(null),[wn,Ua]=N.useState(null),[ut,Oe]=N.useState([]),[jt,ca]=N.useState(!0),zn=N.useRef(null),[I,Hn]=N.useState(!1),[Ln,Aa]=N.useState(!1),[An,Xe]=N.useState(null),[Oa,nt]=N.useState(null),[On,Ut]=N.useState(null),[Pn,ua]=N.useState(null),[cn,un]=N.useState({command:"idle",dag:"not-started",verification:"not-run",promote:"n/a (MVP)"}),[se,$n]=N.useState(""),[Ta,Bn]=N.useState("idle"),[m,S]=N.useState(null),[B,X]=N.useState(null),[le,ye]=N.useState(!1),[J,Te]=N.useState(""),[Ne,Yt]=N.useState(""),[Mt,Fn]=N.useState(""),[Tn,da]=N.useState(!1),[at,At]=N.useState(null),[Pt,Ra]=N.useState(null),[dn,go]=N.useState([]),[fn,Re]=N.useState([]),[fa,Jo]=N.useState(!1),[fr,ea]=N.useState(!1),[Ja,ja]=N.useState(null),[ta,Ko]=N.useState(!1),[Ka,bo]=N.useState(!1),[Rn,ma]=N.useState(null),zt=C==="setup-required",Gn=C==="degraded",xn=N.useCallback((y,G={})=>{c(y),G.taskId&&oe(G.taskId),G.dagRunId&&$n(G.dagRunId),G.fromNodeId&&Te(G.fromNodeId),G.featureId&&Yt(G.featureId)},[]);N.useEffect(()=>{const y=VS(window.location);y&&xn(y.workspace,y)},[xn]);const Wo=N.useCallback(async()=>{try{const G=await(await fetch("/api/health")).json();D(G);const W=G.piReadiness??"setup-required";T(W),Ie(null),k(W==="ready"||W==="degraded"?ne=>ne==="setup"?"import-prd":ne:"setup")}catch(y){Ie(y instanceof Error?y.message:String(y))}try{const G=await(await fetch("/api/operator/v1/readiness")).json();V(G),G.state&&T(G.state)}catch{}},[]);N.useEffect(()=>{Wo()},[Wo]);const Wa=N.useCallback(()=>{ue(null),qe(null),L(null),ke(!1),rt(null),tt(null),Wt.current=!1},[]),vo=N.useCallback(()=>{Wa(),k("contract")},[Wa,k]),Po=N.useCallback(y=>{const G=y.session;G?.sessionId&&Rt(G.sessionId);const W=y.question;ct(W),Ue(y.summary??null);const ne=y.assessmentId;typeof ne=="string"&&ne&&It(ne),(y.complete===!0||typeof ne=="string"&&ne)&&(vo(),nt(y.skipped===!0?"已跳过访谈:已按推荐补齐草稿并签发评估":"访谈已完成:草稿已绑定完整评估结果"))},[vo]),Le=N.useCallback(async(y,G={},W)=>{Hn(!0),Xe(null),Ut(null),nt(null);try{const{status:ne,body:de}=await Ah(y,G,W?.clientRequestId);if(ne===412||de.error?.code==="PI_SETUP_REQUIRED")return Xe(Hd(de.error?.message??"Pi 未就绪或已降级:该操作暂不可用")),Ut(de.error?.code??"PI_SETUP_REQUIRED"),T("setup-required"),k("setup"),c("models"),de;if(ne>=400||de.ok===!1)return Xe(Hd(de.error?.message??de.message??`操作失败(HTTP ${ne})`)),Ut(de.error?.code??String(ne)),ua(de.state??`failed:${ne}`),un(Xt=>({...Xt,command:de.error?.message??`failed:${de.error?.code??ne}`})),de;if(de.operationId){const Xt=window.localStorage.getItem(po)?.trim();if(Xt&&fetch(`/api/operator/v1/chat/sessions/${encodeURIComponent(Xt)}/operation-links`,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json",[vw]:yw()},body:JSON.stringify({operationId:de.operationId})}).then(pe=>{pe.ok||console.warn("Operator Chat operation link failed",pe.status)}).catch(pe=>console.warn("Operator Chat operation link failed",pe)),Ua(de.operationId),ua(de.state??"accepted"),un(pe=>({...pe,command:de.state??"accepted",dag:y==="runDag"?"running":pe.dag})),gD.has(y)){ca(!0),nt(`操作已接受,后台运行中:${de.operationId}(请看事件流;可同时打开 Observe)`);const pe=de.operationId;fw(pe,30*6e4).then(Qt=>{if(Qt){if(ua(Qt.state??null),Qt.state==="failed"||Qt.state==="needs-reconcile"||Qt.state==="timed-out"){Xe(Hd(Qt.errorMessage??Qt.stderrPreview??`操作失败:${Qt.state}`)),Ut(Qt.errorCode??Qt.state??null),un(wo=>({...wo,command:`failed:${Qt.errorCode??Qt.state}`}));return}Qt.state==="succeeded"&&(nt(`${y} 已成功`),un(wo=>({...wo,command:"succeeded"})))}})}else{nt(`操作已接受:${de.operationId}`);const pe=await fw(de.operationId);if(pe){if(ua(pe.state??null),pe.state==="failed"||pe.state==="needs-reconcile"||pe.state==="timed-out")return Xe(Hd(pe.errorMessage??pe.stderrPreview??`操作失败:${pe.state}`)),Ut(pe.errorCode??pe.state??null),un(Qt=>({...Qt,command:`failed:${pe.errorCode??pe.state}`})),{ok:!1,operationId:de.operationId,state:pe.state,error:{code:pe.errorCode??pe.state??"INTERNAL_ERROR",message:pe.errorMessage??pe.stderrPreview??`操作失败:${pe.state}`}};nt(pe.errorMessage?`${y}:${pe.errorMessage}`:`${y} 已成功`),un(Qt=>({...Qt,command:pe.state??"succeeded"}))}}}else nt(`${y} 已完成`),ua(de.state??"succeeded"),un(Xt=>({...Xt,command:"succeeded",verification:y==="contractValidate"||y==="spineCheck"?"ran":Xt.verification}));const ot=de.result??{};(y==="interviewStart"||y==="interviewTurn"||y==="interviewSkip")&&Po(ot);const et=ot.confirmation;return et?.confirmationId&&(Un(et.confirmationId),ho(ot)),W?.advanceTo&&k(W.advanceTo),de}catch(ne){Xe(ne instanceof Error?ne.message:String(ne));return}finally{Hn(!1)}},[Po]),na=N.useCallback(y=>{if(!y)return"无响应";if(y.error?.message)return y.error.message;if(y.message)return y.message;const G=y.result;if(G&&typeof G=="object")try{return JSON.stringify(G).slice(0,1200)}catch{return"已返回结果"}return y.ok===!1?"失败":"成功"},[]),wt=N.useCallback(y=>{if(!y||y.ok===!1||y.error)return!1;const G=y.result;if(!G)return!0;if(typeof G.valid=="boolean")return G.valid;const W=G.result;return W&&typeof W.valid=="boolean"?W.valid:!0},[]),mr=N.useCallback(async(y=!1)=>{const G=_.trim();if(!G)return;const W=`${G}:${lt??""}`;if(!(!y&&ka===W&&Q!==null)&&!Wt.current){Wt.current=!0,ue(null),qe(null),L(null),rt(null),ke(!1);try{const ne=await Le("contractValidate",{taskId:G}),de=wt(ne);if(ue(de),qe(na(ne)),!de){tt(W),nt("契约校验未通过:请先修正草稿后再应用");return}const ot=await Le("contractDiff",{taskId:G});L(na(ot)),tt(W),nt(wt(ot)?"校验与差异已就绪:确认后可应用契约":"校验通过,但差异查询失败(仍可查看下方摘要)")}finally{Wt.current=!1}}},[lt,ka,Q,wt,Le,na,_]),Dl=N.useCallback(async()=>{const y=_.trim();if(!y||!lt)return;const G=await Le("contractApply",{taskId:y,assessmentId:lt},{clientRequestId:$d("apply")});if(!wt(G)){ke(!1);return}ke(!0);const W=await Le("spineCheck",{taskId:y});if(wt(W)){rt(!0),k("dag-confirm"),nt("契约已应用并通过 Spine 审计,可生成并运行 DAG");return}rt(!1),nt("契约已应用,但 Spine 审计未通过:可重试 Spine")},[lt,wt,Le,k,_]),es=N.useCallback(async()=>{const y=_.trim();if(!y)return;const G=await Le("spineCheck",{taskId:y});if(wt(G)){rt(!0),k("dag-confirm"),nt("Spine 审计已通过,可生成并运行 DAG");return}rt(!1)},[wt,Le,k,_]),yo=N.useCallback(async()=>{const y=kt?.trim();if(!y)return;const G=F?.confirmation?.humanGateToken,W=await Le("confirmDagConfirmation",{confirmationId:y,humanGateToken:G});wt(W)&&(k("run"),await Le("runDag",{confirmationId:y},{clientRequestId:$d("run")}))},[kt,F,wt,Le,k]);N.useEffect(()=>{fe==="contract"&&_.trim()&&mr(!1)},[fe,_,lt,mr]);const Pa=N.useCallback(async y=>{zn.current?.abort();const G=new AbortController;zn.current=G,Oe(W=>[...W,`开始跟随事件流 ${y}`]);try{const W=await fetch(`/api/operator/v1/operations/${encodeURIComponent(y)}/events`,{credentials:"same-origin",signal:G.signal});if(!W.ok||!W.body){Oe(et=>[...et,`事件流 HTTP ${W.status}`]);return}const ne=W.body.getReader(),de=new TextDecoder;let ot="";for(;jt;){const{done:et,value:Xt}=await ne.read();if(et)break;ot+=de.decode(Xt,{stream:!0});const pe=ot.split(`
250
+
251
+ `);ot=pe.pop()??"";for(const Qt of pe){const wo=Qt.split(`
252
+ `).find(ns=>ns.startsWith("data:"));if(!wo)continue;const Ac=wo.slice(5).trim();Oe(ns=>[...ns.slice(-80),Ac.slice(0,240)])}}}catch(W){W.name!=="AbortError"&&Oe(ne=>[...ne,`事件流错误:${W instanceof Error?W.message:String(W)}`])}},[jt]);N.useEffect(()=>(wn&&jt&&(fe==="run"||d==="recovery")&&Pa(wn),()=>zn.current?.abort()),[wn,jt,fe,d,Pa]);const Fa=N.useCallback(()=>se.trim()?`/inspect/#/dag/${encodeURIComponent(se.trim())}`:"/inspect/#/",[se]),ts=N.useCallback(()=>{window.location.assign(Fa())},[Fa]),Fo=N.useCallback(async()=>{if(se.trim())return se.trim();const y=_.trim();if(!y)return Xe("打开 DAG 检视需要任务 ID 或 DAG 运行 ID"),null;Aa(!0),Xe(null);try{const{status:G,body:W}=await Ah("observeLink",{taskId:y}),ne=W.result??{};if(G>=400||W.ok===!1)return Xe(W.error?.message??"无法解析 DAG 画布地址"),Bn("unavailable"),S(W.error?.message??null),null;const de=typeof ne.dagRunId=="string"?ne.dagRunId.trim():"";return de?($n(de),Bn("match"),S(null),X(`/inspect/#/dag/${encodeURIComponent(de)}`),de):(Xe("尚未找到该任务的 DAG 运行,请稍后再打开检视"),Bn("unavailable"),S(ne.message??"未解析到 DAG run"),null)}catch(G){return Xe(G instanceof Error?G.message:String(G)),null}finally{Aa(!1)}},[se,_]),No=N.useCallback(async()=>{await Fo()&&ye(!0)},[Fo]),Cl=N.useCallback(async()=>{const y=await Fo();y&&window.location.assign(`/inspect/#/dag/${encodeURIComponent(y)}`)},[Fo]),eo=N.useCallback(async()=>{Jo(!0);try{const y=_.trim(),G=new URLSearchParams;y&&G.set("taskId",y),G.set("limit","40");const W=await fetch(`/api/operator/v1/recovery/candidates?${G.toString()}`,{credentials:"same-origin"});if(!W.ok){go([]);return}const ne=await W.json();go(Array.isArray(ne.runs)?ne.runs:[])}catch{go([])}finally{Jo(!1)}},[_]),to=N.useCallback(async y=>{const G=y.trim();if(!G){Re([]),ja(null);return}ea(!0);try{const W=await fetch(`/api/dag-runs/${encodeURIComponent(G)}`,{credentials:"same-origin"});if(!W.ok){Re([]),ja(null);return}const ne=await W.json();ja(typeof ne.status=="string"?ne.status:null);const de=Array.isArray(ne.nodes)?ne.nodes:[],ot=bw(de.map(et=>{const Xt=(et.nodeId??et.id??"").trim();return Xt?{nodeId:Xt,status:et.status,label:et.label??et.name,errorPreview:et.errorPreview}:null}).filter(et=>et!==null));Re(ot)}catch{Re([]),ja(null)}finally{ea(!1)}},[]);N.useEffect(()=>{d==="recovery"&&eo()},[d,_,eo]),N.useEffect(()=>{if(d!=="recovery"||ta||dn.length===0)return;const y=se.trim(),G=y?dn.some(W=>W.dagRunId===y):!1;if(!y||!G){const W=sD(dn);W&&W!==y&&$n(W)}},[d,dn,se,ta]),N.useEffect(()=>{d==="recovery"&&to(se)},[d,se,to]),N.useEffect(()=>{if(d!=="recovery"||Ka||fn.length===0)return;const y=J.trim(),G=y?fn.some(W=>W.nodeId===y):!1;if(!y||!G){const W=iD(fn);W&&W!==y&&Te(W)}},[d,fn,J,Ka]);const Ht=oD({operationState:Ja?null:Pn,errorCode:Ja?null:On,dagStatus:Ja}),p=N.useMemo(()=>hw(Ht),[Ht]),U=N.useMemo(()=>tD(p),[p]),R=N.useMemo(()=>aD(Ht),[Ht]),$=N.useMemo(()=>fn.find(y=>y.nodeId===J.trim()),[fn,J]),ae=N.useRef(null);N.useEffect(()=>{Pt&&ae.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[Pt?.id]);const q=N.useCallback(y=>dD({actionLabel:y,dagRunId:se.trim()||void 0,fromNodeId:J.trim()||void 0,runStatus:Ja,nodeStatus:$?.status,nodeError:$?.errorPreview,factClassLabel:dw[Ht],errorMessage:An,errorCode:On}),[se,J,An,On,Ht,Ja,$?.errorPreview,$?.status]);N.useEffect(()=>{if(d!=="recovery"||Tn&&!cw(Mt))return;const y=q(Pt?.label);y&&y!==Mt&&Fn(y)},[d,se,J,Ja,$,Ht,An,On,Pt?.label,Tn,Mt,q]);const dt=N.useCallback(async y=>{if(y.requiresReason||(Ra(null),At(null)),y.action==="doctor"){ma(null),Le("doctor",{});return}if(y.action==="dagReport"||y.id==="report"){const G=se.trim();if(G){Ra(null),At(null);const W=await Le("dagReport",{runId:G}),ne=W?.result??{},de=(ne.raw?.runs??ne.runs)?.[0];W&&W.ok!==!1&&!W.error&&de&&(ma({runId:de.runId??G,title:de.title,status:de.status,category:de.productLineFailureCategory,recommendation:de.recoveryRecommendation?.summary??de.recommendedFollowUp??void 0}),nt(null));return}if(_.trim()){ma(null),Le("status",{taskId:_});return}Xe("查看报告需要先选择 DAG 运行 ID(或填写任务 ID)");return}if(y.action==="observeLink"){ma(null),Cl();return}if(y.requiresReason){if(ma(null),Ra(y),At(null),y.id!=="dagRerun"&&(Xe(null),Ut(null)),(!Tn||cw(Mt))&&(Fn(q(y.label)),da(!1)),y.id==="dagRerun"&&se.trim()&&J.trim()){Hn(!0);try{const{status:G,body:W}=await Ah("dagRerunPlan",{runId:se.trim(),fromNode:J.trim()}),ne=W.result??{};ne&&typeof ne=="object"&&("eligible"in ne||ne.planHash)&&At(ne),G<400&&W.ok!==!1&&ne.eligible!==!1?nt(null):ne.eligible===!1?Xe(W.error?.message??Oh(ne)):nt(W.error?.message??"无法预检重跑计划;确认后仍将尝试提交(CLI 可能尚未就绪)")}finally{Hn(!1)}}return}Xe(null),Ut(null),nt(`${y.label}:请经 CLI — ${y.commandHint??""}`)},[q,se,J,Cl,Mt,Tn,Le,_]),Ft=N.useCallback(async()=>{const y=Pt;if(!y)return;const G=Mt.trim();if(!G){Xe("恢复操作需要结构化原因");return}const W=$d(`recovery-${y.id}`);if(Ra(null),y.id==="dagRerun"){const ne=se.trim(),de=J.trim();if(!ne||!de){Xe("从节点重跑需要 DAG 运行 ID 与起始节点 ID");return}let ot=at?.planHash?.trim(),et=at?.eligible;if(!ot||et===void 0){const Xt=await Le("dagRerunPlan",{runId:ne,fromNode:de}),pe=Xt?.result??{};if((pe.planHash||pe.eligible!==void 0)&&At(pe),ot=pe.planHash?.trim()||ot,et=pe.eligible,pe.eligible===!1){Xe(Xt?.error?.message??Oh(pe));return}if(Xt&&Xt.ok===!1&&!ot){Xe(Xt.error?.message??"无法获取 planHash;请确认 loop-agent dag rerun --plan 可用");return}}if(et===!1){Xe(Oh(at??{}));return}if(!ot){Xe("无法获取 planHash;请确认 loop-agent dag rerun --plan 可用");return}await Le("dagRerun",{runId:ne,fromNode:de,planHash:ot,reason:G},{clientRequestId:W});return}if(y.id==="standaloneTaskRerun"){const ne=se.trim();if(!ne){Xe("完整重跑任务需要 DAG 运行 ID");return}const de={runId:ne,reason:G,..._.trim()?{taskId:_.trim()}:{}},ot=await Le("prepareMutationGate",{action:"standaloneTaskRerun",actionParams:de});if(!wt(ot))return;const et=ot?.result??ot;if(!et.receiptId||!et.humanGateToken){Xe("prepareMutationGate 未返回可消费的 Human Gate receipt");return}await Le("standaloneTaskRerun",{...de,confirmationId:et.receiptId,humanGateToken:et.humanGateToken},{clientRequestId:W});return}if(y.id==="workerTaskRetry"){const ne=_.trim();if(!ne){Xe("重新排队 Worker Task 需要任务 ID");return}const de={taskId:ne,reason:G,...Ne.trim()?{featureId:Ne.trim()}:{}},ot=await Le("prepareMutationGate",{action:"workerTaskRetry",actionParams:de});if(!wt(ot))return;const et=ot?.result??ot;if(!et.receiptId||!et.humanGateToken){Xe("prepareMutationGate 未返回可消费的 Human Gate receipt");return}await Le("workerTaskRetry",{...de,confirmationId:et.receiptId,humanGateToken:et.humanGateToken},{clientRequestId:W});return}if(y.id==="reconcile"){if(!se.trim()){Xe("对账恢复需要 DAG 运行 ID");return}nt(`${y.label}:请经 CLI — ${y.commandHint??""}`);return}nt(`${y.label}:请经 CLI — ${y.commandHint??""}`)},[se,Ne,J,Pt,at?.planHash,Mt,Le,wt,_]),re=[{id:"setup",label:"就绪检查"},{id:"import-prd",label:"导入需求"},{id:"interview",label:"需求访谈(可跳过)"},{id:"contract",label:"契约落地"},{id:"dag-confirm",label:"确认 DAG"},{id:"run",label:"运行"}],Ve=re.findIndex(y=>y.id===fe),xt=y=>!Pt||Pt.lane!==y?null:s.jsxDEV("div",{ref:ae,className:"recovery-confirm","data-testid":"recovery-confirm",children:[s.jsxDEV("h3",{children:["待确认:",Pt.label]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1426,columnNumber:9},this),s.jsxDEV("p",{className:"muted",children:"请核对上方运行 / 节点与恢复原因,再点「确定」执行。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1427,columnNumber:9},this),at?s.jsxDEV("div",{className:"recovery-plan-summary",children:[s.jsxDEV("p",{className:"muted",children:["计划 eligible=",String(at.eligible??"—")," · 风险=",uw[at.risk??""]??at.risk??"—"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1432,columnNumber:13},this),at.effectiveFromNodeId?s.jsxDEV("p",{className:"muted",children:["有效起点:",at.effectiveFromNodeId]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1440,columnNumber:15},this):null,at.estimatedExecution?s.jsxDEV("p",{className:"muted",children:["将执行 ",at.estimatedExecution.nodeCount??"?"," ","个节点 / ",at.estimatedExecution.piCallCount??"?"," ","次 Pi;预计避免"," ",at.estimatedExecution.avoidedNodeCount??"?"," ","个节点"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1445,columnNumber:15},this):null,at.planHash?s.jsxDEV("p",{className:"muted",children:["planHash: ",s.jsxDEV("code",{children:[at.planHash.slice(0,16),"…"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1455,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1454,columnNumber:15},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1431,columnNumber:11},this):Pt.id==="dagRerun"?s.jsxDEV("p",{className:"muted",children:"未加载计划摘要;点「确定」前将再次尝试资格检查。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1460,columnNumber:11},this):null,s.jsxDEV("div",{className:"cta-row",children:[s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I||!Mt.trim(),"data-testid":"recovery-confirm-submit",onClick:()=>{Ft()},children:"确定"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1465,columnNumber:11},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I,"data-testid":"recovery-confirm-cancel",onClick:()=>{Ra(null),At(null)},children:"取消"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1474,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1464,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1421,columnNumber:7},this);return s.jsxDEV(s.Fragment,{children:s.jsxDEV("div",{className:`console-app${d==="chat"?" is-chat-focus":""}`,children:[s.jsxDEV("nav",{className:"embedded-operator-nav","aria-label":"Operator 导航",children:[s.jsxDEV("span",{"aria-current":"page",children:"操作"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1495,columnNumber:9},this),s.jsxDEV("a",{href:"/inspect/#/",children:"观测"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1496,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1494,columnNumber:7},this),s.jsxDEV("div",{className:`console-shell${d==="chat"?" is-chat-focus":""}`,children:[s.jsxDEV("nav",{className:"top-nav","aria-label":"控制台导航",children:[[["tasks","任务"],["recovery","恢复"],["chat","对话"],["models","模型与认证"],["settings","设置"]].map(([y,G])=>s.jsxDEV("button",{type:"button",className:d===y?"nav-link nav-link-active":"nav-link",onClick:()=>c(y),children:G},y,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1509,columnNumber:11},this)),s.jsxDEV("button",{type:"button",className:"readiness","data-state":C,"data-testid":"readiness-state",title:zt?"Pi SDK / 认证 / 模型未就绪。不提供纯表单兜底。点击前往模型与认证。":Gn?"Pi 暂时降级:仍可恢复草稿与需求访谈。点击查看详情。":"Pi 已就绪。点击打开设置查看详情。","aria-label":`Pi 就绪:${Uh[C]??C}`,onClick:()=>c(zt||Gn?"models":"settings"),children:[s.jsxDEV("span",{className:"readiness-label",children:"Pi"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1533,columnNumber:11},this),s.jsxDEV("strong",{children:Uh[C]??C},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1534,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1518,columnNumber:9},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1499,columnNumber:7},this),An?s.jsxDEV("div",{className:"flash flash-error","data-testid":"op-error",children:[s.jsxDEV("span",{className:"flash-label",children:"错误"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1540,columnNumber:11},this),s.jsxDEV("p",{className:"flash-body",children:An},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1541,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1539,columnNumber:9},this):null,Oa?s.jsxDEV("div",{className:"flash flash-info","data-testid":"op-message",children:[s.jsxDEV("span",{className:"flash-label",children:"状态"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1546,columnNumber:11},this),s.jsxDEV("p",{className:"flash-body",children:Oa},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1547,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1545,columnNumber:9},this):null,s.jsxDEV("main",{className:`console-main${d==="chat"?" console-main--fill":""}`,children:[d==="tasks"?s.jsxDEV("section",{className:"panel task-ops","aria-labelledby":"task-ops-title",children:[s.jsxDEV("h2",{id:"task-ops-title",children:"任务操作"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1554,columnNumber:13},this),s.jsxDEV("p",{className:"panel-lead",children:"按 Happy Path 推进;契约落地一步内自动校验,人工确认写入。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1555,columnNumber:13},this),s.jsxDEV("ol",{className:"wizard-steps","data-testid":"wizard-steps",children:re.map((y,G)=>s.jsxDEV("li",{"data-active":fe===y.id,"data-done":G<Ve,children:[s.jsxDEV("span",{className:"step-index",children:String(G+1).padStart(2,"0")},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1565,columnNumber:19},this),s.jsxDEV("span",{className:"step-label",children:y.label},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1568,columnNumber:19},this)]},y.id,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1560,columnNumber:17},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1558,columnNumber:13},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"任务 ID"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1574,columnNumber:8},this),s.jsxDEV("input",{"data-testid":"task-id-input",value:_,disabled:I||zt||fe==="import-prd",placeholder:fe==="import-prd"?"导入需求后自动生成":"task-id",onChange:y=>oe(y.target.value.trim())},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1575,columnNumber:8},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1573,columnNumber:7},this),Se?s.jsxDEV("p",{className:"workflow-hint","data-testid":"task-title-chip",children:["任务名称:",Se]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1586,columnNumber:8},this):null,fe!=="import-prd"&&!zt?s.jsxDEV("p",{className:"workflow-hint","data-testid":"workflow-kind-chip",children:["当前流程:",vt.label," · ",s.jsxDEV("code",{children:me},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1592,columnNumber:37},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1591,columnNumber:8},this):null,zt||fe==="setup"?s.jsxDEV("div",{className:"empty-state","data-testid":"setup-gate",children:[s.jsxDEV("p",{className:"empty-title",children:"需要先完成设置"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1598,columnNumber:17},this),s.jsxDEV("p",{className:"muted",children:"请先在「模型与认证」完成 Pi 就绪,再导入需求与访谈。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1599,columnNumber:17},this),s.jsxDEV("div",{className:"cta-row",children:[s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I,onClick:()=>{c("models"),Le("refreshReadiness",{}).then(()=>Wo())},children:"刷新就绪状态"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1603,columnNumber:19},this),s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I,onClick:()=>{Le("doctor",{})},children:"运行诊断"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1616,columnNumber:19},this),s.jsxDEV("pre",{className:"cmd",children:mD},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1624,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1602,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1597,columnNumber:15},this):s.jsxDEV("div",{className:"wizard-body","data-testid":"wizard-body",children:[fe==="import-prd"&&s.jsxDEV("div",{"data-testid":"panel-import-prd",children:[s.jsxDEV("h3",{children:"导入需求"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1631,columnNumber:21},this),s.jsxDEV("p",{className:"muted",children:"粘贴 PRD / 需求 Markdown。系统会根据正文自动生成任务名称与 taskId,并创建任务、写入不可变引用。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1632,columnNumber:21},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"流程类型"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1637,columnNumber:23},this),s.jsxDEV("select",{"data-testid":"workflow-kind-select",value:me,disabled:I,onChange:y=>We(y.target.value),children:kh.map(y=>s.jsxDEV("option",{value:y.kind,children:y.label},y.kind,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1647,columnNumber:27},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1638,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1636,columnNumber:21},this),s.jsxDEV("p",{className:"workflow-hint","data-testid":"workflow-kind-hint",children:[vt.hint," · taskKind=",s.jsxDEV("code",{children:me},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1655,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1653,columnNumber:21},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"PRD Markdown"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1658,columnNumber:23},this),s.jsxDEV("textarea",{rows:10,value:qt,disabled:I,onChange:y=>Ct(y.target.value)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1659,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1657,columnNumber:21},this),s.jsxDEV("div",{className:"cta-row",children:s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I||!qt.trim(),onClick:()=>{(async()=>{const y=await Le("bootstrapFromPrd",{content:qt,taskKind:me});if(!y||y.ok===!1)return;const G=y.result??{};G.taskId&&oe(G.taskId),G.title&&He(G.title),nt(`已创建任务「${G.title??""}」(${G.taskId??""}),来源:${G.identitySource??"prd"}`),k("interview")})()},children:"导入并创建任务"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1667,columnNumber:23},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1666,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1630,columnNumber:19},this),fe==="interview"&&s.jsxDEV("div",{"data-testid":"panel-interview",children:[s.jsxDEV("h3",{children:"需求访谈(grill-me)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1700,columnNumber:21},this),s.jsxDEV("p",{className:"muted",children:"一次一问;也可跳过:系统会按推荐补齐草稿并签发评估,随后进入校验。 访谈中不可应用契约 / 运行 DAG / 对账。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1701,columnNumber:21},this),be?s.jsxDEV("pre",{className:"cmd","data-testid":"draft-summary",children:JSON.stringify(be,null,2)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1706,columnNumber:23},this):null,s.jsxDEV("div",{className:"cta-row",style:{marginBottom:"0.75rem"},children:[!Kt||!Ee?s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I||!_.trim(),onClick:()=>{Le("interviewStart",{taskId:_,title:Se,taskKind:me})},children:"开始 / 继续访谈"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1712,columnNumber:25},this):null,s.jsxDEV("button",{type:"button",className:"btn btn-ghost","data-testid":"interview-skip",disabled:I||!_.trim(),onClick:()=>{Le("interviewSkip",{taskId:_,title:Se,taskKind:me})},children:"跳过访谈"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1727,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1710,columnNumber:21},this),Kt&&Ee?s.jsxDEV("div",{className:"interview-card",children:[s.jsxDEV("p",{className:"interview-q",children:[s.jsxDEV("strong",{children:Ee.id},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1746,columnNumber:27},this)," · 风险=",uw[Ee.risk??""]??Ee.risk??"—"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1745,columnNumber:25},this),s.jsxDEV("p",{children:Ee.text},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1751,columnNumber:25},this),Ee.recommendation?s.jsxDEV("p",{className:"muted",children:["推荐:",Ee.recommendation]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1753,columnNumber:27},this):null,s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"你的回答(覆盖推荐)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1758,columnNumber:27},this),s.jsxDEV("textarea",{rows:3,value:ee,disabled:I,onChange:y=>pt(y.target.value)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1759,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1757,columnNumber:25},this),s.jsxDEV("div",{className:"cta-row",children:[s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I,onClick:()=>{Le("interviewTurn",{sessionId:Kt,questionId:Ee.id,response:"accept-recommendation"}).then(()=>pt(""))},children:"接受推荐"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1767,columnNumber:27},this),s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I||!ee.trim(),onClick:()=>{Le("interviewTurn",{sessionId:Kt,questionId:Ee.id,response:"override",text:ee}).then(()=>pt(""))},children:"提交自定义回答"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1781,columnNumber:27},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I||Ee.risk==="high",onClick:()=>{Le("interviewTurn",{sessionId:Kt,questionId:Ee.id,response:"defer",text:ee||Ee.recommendation}).then(()=>pt(""))},children:"暂缓(非高风险)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1796,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1766,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1744,columnNumber:23},this):null,lt?s.jsxDEV("p",{className:"muted",children:["评估 ID: ",s.jsxDEV("code",{children:lt},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1816,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1815,columnNumber:23},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1699,columnNumber:19},this),fe==="contract"&&s.jsxDEV("div",{"data-testid":"panel-contract",children:[s.jsxDEV("h3",{children:"契约落地"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1824,columnNumber:21},this),s.jsxDEV("p",{className:"muted",children:"进入本步后自动跑确定性校验与差异(非 AI 代判)。写入仓库仍需你人工确认一次;应用成功后会自动跑 Spine 审计。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1825,columnNumber:21},this),s.jsxDEV("p",{className:"muted",children:["评估 ID: ",s.jsxDEV("code",{children:lt??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1830,columnNumber:30},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1829,columnNumber:21},this),s.jsxDEV("div",{className:"contract-checks",children:[s.jsxDEV("p",{children:[s.jsxDEV("strong",{children:"校验"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1834,columnNumber:25},this),":"," ",Q===null?I?"进行中…":"等待开始":Q?"通过":"未通过"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1833,columnNumber:23},this),ve?s.jsxDEV("pre",{className:"cmd","data-testid":"contract-validate-summary",children:ve},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1844,columnNumber:25},this):null,s.jsxDEV("p",{children:[s.jsxDEV("strong",{children:"差异"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1849,columnNumber:25},this),Pe?"":":尚未拉取"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1848,columnNumber:23},this),Pe?s.jsxDEV("pre",{className:"cmd","data-testid":"contract-diff-summary",children:Pe},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1853,columnNumber:25},this):null,K?s.jsxDEV("p",{children:[s.jsxDEV("strong",{children:"Spine"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1859,columnNumber:27},this),":"," ",Ae===null?"待检查":Ae?"通过":"未通过"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1858,columnNumber:25},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1832,columnNumber:21},this),s.jsxDEV("div",{className:"cta-row",children:[s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I||!_.trim(),onClick:()=>{mr(!0)},children:"重新校验"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1869,columnNumber:23},this),s.jsxDEV("button",{type:"button",className:"btn btn-primary","data-testid":"contract-apply",disabled:I||Gn||!lt||Q!==!0||K,onClick:()=>{Dl()},children:"确认并应用契约"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1877,columnNumber:23},this),K&&Ae===!1?s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I,onClick:()=>{es()},children:"重试 Spine"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1893,columnNumber:25},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1868,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1823,columnNumber:19},this),fe==="dag-confirm"&&s.jsxDEV("div",{"data-testid":"panel-dag-confirm",children:[s.jsxDEV("h3",{children:"DAG 确认(§5.5)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1908,columnNumber:21},this),s.jsxDEV("ul",{className:"checklist",children:[s.jsxDEV("li",{children:"源绑定(source)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1910,columnNumber:23},this),s.jsxDEV("li",{children:"Writer 写集范围(writer-scope)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1911,columnNumber:23},this),s.jsxDEV("li",{children:"验证命令(verification)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1912,columnNumber:23},this),s.jsxDEV("li",{children:"人工门禁(human-gates)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1913,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1909,columnNumber:21},this),F?s.jsxDEV("pre",{className:"cmd",children:JSON.stringify(F,null,2).slice(0,4e3)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1916,columnNumber:23},this):null,s.jsxDEV("div",{className:"cta-row",children:[s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I,onClick:()=>{Le("prepareDagConfirmation",{taskId:_,dagHandle:`${_}.dag.json`,profile:"auto"})},children:"生成 DAG 并准备确认"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1924,columnNumber:23},this),s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I||!kt,onClick:()=>{yo()},children:"开始运行"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1938,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1923,columnNumber:21},this),kt?s.jsxDEV("p",{className:"muted",children:["确认 ID: ",s.jsxDEV("code",{children:kt},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1949,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1948,columnNumber:23},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1907,columnNumber:19},this),fe==="run"&&s.jsxDEV("div",{"data-testid":"panel-run",children:[s.jsxDEV("h3",{children:"运行详情"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1957,columnNumber:21},this),s.jsxDEV("div",{className:"meta-row",children:[s.jsxDEV("div",{children:["操作 ID: ",s.jsxDEV("code",{children:wn??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1960,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1959,columnNumber:23},this),s.jsxDEV("div",{children:["确认 ID: ",s.jsxDEV("code",{children:kt??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1963,columnNumber:32},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1962,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1958,columnNumber:21},this),s.jsxDEV("div",{className:"cta-row",children:[s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I||!kt,onClick:()=>{Le("runDag",{confirmationId:kt},{clientRequestId:$d("run")})},children:"重新运行"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1967,columnNumber:23},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",onClick:()=>{ca(!1),zn.current?.abort(),nt("已停止跟随日志(未取消子进程)")},children:"停止跟随日志"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1981,columnNumber:23},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:!se.trim(),onClick:()=>ye(!0),children:"打开检视"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1992,columnNumber:23},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost",disabled:Ln||!se.trim()&&!_.trim(),title:"在本页侧栏预览,可关闭返回",onClick:()=>{No()},children:"侧栏预览"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2e3,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1966,columnNumber:21},this),s.jsxDEV("pre",{className:"cmd","data-testid":"sse-log",children:ut.join(`
253
+ `)||"(尚无事件)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2010,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1956,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1628,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1553,columnNumber:11},this):null,d==="recovery"?s.jsxDEV("section",{className:"panel","aria-labelledby":"recovery-title",children:[s.jsxDEV("h2",{id:"recovery-title",children:"恢复"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2022,columnNumber:13},this),s.jsxDEV("p",{className:"muted",children:["事实分类:",dw[Ht]," · 无 Cancel · 无「直接改代码」"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2023,columnNumber:13},this),s.jsxDEV("ol",{className:"muted recovery-steps",children:[s.jsxDEV("li",{children:"上方选 DAG 运行 / 节点,用「DAG 运行恢复」动作"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2028,columnNumber:15},this),s.jsxDEV("li",{children:"Worker 队列失败才用下方「Worker Task 重排队」(二者不要混用)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2029,columnNumber:15},this),s.jsxDEV("li",{children:"带 * 的动作:核对预填原因 → 点下方「确定」"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2030,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2027,columnNumber:13},this),s.jsxDEV("p",{className:"muted",children:[_.trim()?`按任务 ${_.trim()} 拉取候选。`:"未填任务 ID 时列出最近 DAG 运行。","Doctor 诊断可选,不是重跑前置。"," ",s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I||fa,"data-testid":"recovery-refresh-candidates",onClick:()=>{eo()},children:fa?"刷新中…":"刷新候选"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2038,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2032,columnNumber:13},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"DAG 运行 ID"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2049,columnNumber:15},this),!ta&&dn.length>0?s.jsxDEV("select",{"data-testid":"recovery-run-select",value:se,disabled:I||fa,onChange:y=>{Ko(!1),bo(!1),Te(""),$n(y.target.value),Tn||da(!1)},children:[dn.some(y=>y.dagRunId===se)?null:s.jsxDEV("option",{value:se||"",children:se?`${se}(当前)`:"— 请选择 —"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2064,columnNumber:21},this),dn.map(y=>s.jsxDEV("option",{value:y.dagRunId,children:cD(y)},y.dagRunId,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2069,columnNumber:21},this))]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2051,columnNumber:17},this):s.jsxDEV("input",{"data-testid":"recovery-run-input",value:se,disabled:I,onChange:y=>{Ko(!0),$n(y.target.value.trim())},placeholder:"dag-run-id(子图/完整重跑)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2075,columnNumber:17},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I,"data-testid":"recovery-run-manual-toggle",onClick:()=>{if(!ta&&dn.length>0){Ko(!0);return}Ko(!1),eo()},children:!ta&&dn.length>0?"手动输入运行 ID":"刷新并改用下拉"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2086,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2048,columnNumber:13},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:["起始节点 ID(从节点重跑)",fr?" · 加载节点…":""]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2106,columnNumber:15},this),!Ka&&fn.length>0?s.jsxDEV("select",{"data-testid":"recovery-node-select",value:J,disabled:I||fr,onChange:y=>{bo(!1),Te(y.target.value)},children:[fn.some(y=>y.nodeId===J)?null:s.jsxDEV("option",{value:J||"",children:J?`${J}(当前)`:"— 请选择 —"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2121,columnNumber:21},this),fn.map(y=>s.jsxDEV("option",{value:y.nodeId,children:uD(y)},y.nodeId,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2126,columnNumber:21},this))]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2111,columnNumber:17},this):s.jsxDEV("input",{"data-testid":"recovery-node-input",value:J,disabled:I,onChange:y=>{bo(!0),Te(y.target.value.trim())},placeholder:"例如 review-verdict-recovery-pi"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2132,columnNumber:17},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I,"data-testid":"recovery-node-manual-toggle",onClick:()=>{if(!Ka&&fn.length>0){bo(!0);return}bo(!1),to(se)},children:!Ka&&fn.length>0?"手动输入节点 ID":"刷新并改用下拉"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2143,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2105,columnNumber:13},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"恢复原因(已按 run/节点失败事实自动预填,可编辑)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2163,columnNumber:15},this),s.jsxDEV("textarea",{"data-testid":"recovery-reason",value:Mt,disabled:I,rows:4,onChange:y=>{da(!0),Fn(y.target.value)},placeholder:"将自动预填 operator-recovery / run / from-node / detail"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2166,columnNumber:15},this),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:I,"data-testid":"recovery-reason-refresh",onClick:()=>{da(!1),Fn(q(Pt?.label))},children:"重新预填原因"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2177,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2162,columnNumber:13},this),s.jsxDEV("div",{className:"recovery-lane","data-testid":"recovery-lane-dag",children:[s.jsxDEV("h3",{children:"DAG 运行恢复"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2194,columnNumber:15},this),s.jsxDEV("p",{className:"muted",children:"针对 `.harness/dag-runs` 的 Agent DAG 运行。橙色为当前建议;带 * 需确认原因。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2195,columnNumber:15},this),s.jsxDEV("div",{className:"recovery-cta-row","data-testid":"recovery-cta-row-dag",children:[U.dag.map(y=>{const G=y.id===R;return s.jsxDEV("button",{type:"button",className:G?"btn btn-primary":"btn btn-secondary",disabled:I,title:y.guide,"aria-pressed":Pt?.id===y.id?!0:void 0,"data-testid":`recovery-cta-${y.id}`,"data-recommended":G?"true":void 0,onClick:()=>{dt(y)},children:[y.label,y.requiresReason?" *":""]},y.id,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2205,columnNumber:21},this)}),s.jsxDEV("button",{type:"button",className:"btn btn-secondary",disabled:!se.trim(),"data-testid":"recovery-dag-preview",title:"在本页侧栏预览,可关闭返回",onClick:()=>{if(!se.trim()){Xe("侧栏预览需要先选择 DAG 运行 ID");return}ye(!0)},children:"侧栏预览"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2225,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2198,columnNumber:15},this),Rn?s.jsxDEV("div",{className:"recovery-report","data-testid":"recovery-report",children:[s.jsxDEV("div",{className:"recovery-report-header",children:[s.jsxDEV("h3",{children:"交接报告摘要"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2248,columnNumber:21},this),s.jsxDEV("button",{type:"button",className:"btn btn-ghost","data-testid":"recovery-report-close",onClick:()=>ma(null),children:"关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2249,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2247,columnNumber:19},this),s.jsxDEV("dl",{className:"recovery-report-facts",children:[s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"运行"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2260,columnNumber:23},this),s.jsxDEV("dd",{children:s.jsxDEV("code",{children:Rn.runId},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2262,columnNumber:25},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2261,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2259,columnNumber:21},this),Rn.title?s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"标题"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2267,columnNumber:25},this),s.jsxDEV("dd",{children:Rn.title},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2268,columnNumber:25},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2266,columnNumber:23},this):null,s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"状态"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2272,columnNumber:23},this),s.jsxDEV("dd",{children:Rn.status??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2273,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2271,columnNumber:21},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"失败分类"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2276,columnNumber:23},this),s.jsxDEV("dd",{children:Rn.category??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2277,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2275,columnNumber:21},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"建议"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2280,columnNumber:23},this),s.jsxDEV("dd",{children:Rn.recommendation??"暂无结构化建议"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2281,columnNumber:23},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2279,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2258,columnNumber:19},this),s.jsxDEV("p",{className:"muted",children:["完整 Markdown 可用 CLI:",s.jsxDEV("code",{children:["loop-agent dag report --run-id ",Rn.runId," ","--markdown"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2286,columnNumber:21},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2284,columnNumber:19},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2243,columnNumber:17},this):null,xt("dag")]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2193,columnNumber:13},this),s.jsxDEV("div",{className:"recovery-lane","data-testid":"recovery-lane-worker",children:[s.jsxDEV("h3",{children:"Worker Task 重排队"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2297,columnNumber:15},this),s.jsxDEV("p",{className:"muted",children:"针对 agent-worker Task Pool,不是 DAG run。需要 Task ID;Feature ID 可选。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2298,columnNumber:15},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"Task ID(Worker 重排队必填)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2303,columnNumber:17},this),s.jsxDEV("input",{"data-testid":"recovery-worker-task-id",value:_,disabled:I,onChange:y=>oe(y.target.value.trim()),placeholder:"harness / worker task-id"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2304,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2302,columnNumber:15},this),s.jsxDEV("label",{className:"field",children:[s.jsxDEV("span",{className:"muted",children:"Feature ID(可选)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2313,columnNumber:17},this),s.jsxDEV("input",{"data-testid":"recovery-feature-id",value:Ne,disabled:I,onChange:y=>Yt(y.target.value.trim()),placeholder:"feature-id"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2314,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2312,columnNumber:15},this),s.jsxDEV("div",{className:"recovery-cta-row","data-testid":"recovery-cta-row-worker",children:U.worker.length>0?U.worker.map(y=>s.jsxDEV("button",{type:"button",className:y.id===R?"btn btn-primary":"btn btn-secondary",disabled:I,title:y.guide,"data-testid":`recovery-cta-${y.id}`,"data-recommended":y.id===R?"true":void 0,onClick:()=>{dt(y)},children:[y.label,y.requiresReason?" *":""]},y.id,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2328,columnNumber:21},this)):s.jsxDEV("p",{className:"muted","data-testid":"recovery-worker-unavailable",children:"当前事实分类下不提供 Worker 重排队。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2349,columnNumber:19},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2322,columnNumber:15},this),xt("worker")]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2296,columnNumber:13},this),s.jsxDEV("div",{className:"recovery-cta-row","data-testid":"recovery-cta-row",hidden:!0,children:p.map(y=>s.jsxDEV("span",{children:y.id},y.id,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2359,columnNumber:17},this))},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2357,columnNumber:13},this),m?s.jsxDEV("p",{className:"muted",children:["[",pD[Ta],"] ",m]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2363,columnNumber:15},this):null,B?s.jsxDEV("p",{className:"muted",children:s.jsxDEV("a",{className:"external-link",href:B,children:B},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2369,columnNumber:17},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2368,columnNumber:15},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2021,columnNumber:11},this):null,d==="models"?s.jsxDEV("section",{className:"panel","aria-labelledby":"models-title",children:[s.jsxDEV("h2",{id:"models-title",children:"模型与认证"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2379,columnNumber:13},this),s.jsxDEV("p",{className:"muted",children:["复用 Pi ModelRuntime 凭据平面;密钥不会回传到页面。请用"," ",s.jsxDEV("code",{children:"pi"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2382,columnNumber:15},this)," / Pi 认证存储完成配置,然后刷新就绪探测。"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2380,columnNumber:13},this),s.jsxDEV("button",{type:"button",className:"btn btn-primary",disabled:I,onClick:()=>{Le("refreshReadiness",{}).then(()=>Wo())},children:"刷新就绪探测"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2384,columnNumber:13},this),s.jsxDEV("pre",{className:"cmd","data-testid":"readiness-details",children:JSON.stringify(z??{state:C,health:v},null,2)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2394,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2378,columnNumber:11},this):null,d==="chat"?s.jsxDEV("section",{className:"panel panel--chat","aria-labelledby":"chat-title",children:[s.jsxDEV("h2",{id:"chat-title",className:"sr-only",children:"对话"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2406,columnNumber:13},this),s.jsxDEV(LS,{origin:"",readiness:C,surface:"workspace",onNavigateWorkspace:xn},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2407,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2405,columnNumber:11},this):null,d==="settings"?s.jsxDEV("section",{className:"panel","aria-labelledby":"settings-title",children:[s.jsxDEV("h2",{id:"settings-title",children:"设置"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2417,columnNumber:13},this),s.jsxDEV("dl",{className:"kv",children:[s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"产品"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2420,columnNumber:17},this),s.jsxDEV("dd",{children:v?.productName??"Loop Operator Console"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2421,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2419,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"仓库根目录"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2424,columnNumber:17},this),s.jsxDEV("dd",{children:s.jsxDEV("code",{children:v?.repoRoot??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2426,columnNumber:19},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2425,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2423,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"仓库指纹"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2430,columnNumber:17},this),s.jsxDEV("dd",{children:s.jsxDEV("code",{children:v?.repoFingerprint??"—"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2432,columnNumber:19},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2431,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2429,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Pi 就绪"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2436,columnNumber:17},this),s.jsxDEV("dd",{children:[s.jsxDEV("code",{children:[Uh[C]??C,"(",C,")"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2438,columnNumber:19},this),zt?s.jsxDEV("p",{className:"muted",children:"Pi SDK / 认证 / 模型未就绪。不提供纯表单兜底。请前往「模型与认证」。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2442,columnNumber:21},this):Gn?s.jsxDEV("p",{className:"muted",children:"Pi 暂时降级:仍可恢复草稿与需求访谈。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2446,columnNumber:21},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2437,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2435,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"Inspect"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2451,columnNumber:17},this),s.jsxDEV("dd",{children:[s.jsxDEV("code",{children:"/inspect/"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2453,columnNumber:19},this),"(同一 Console 进程)"]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2452,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2450,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2418,columnNumber:13},this),ce?s.jsxDEV("p",{className:"error",children:ce},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2457,columnNumber:28},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2416,columnNumber:11},this):null,d==="settings"?s.jsxDEV("section",{className:"panel","aria-labelledby":"layers-title",children:[s.jsxDEV("h2",{id:"layers-title",children:"完成语义分层"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2463,columnNumber:13},this),s.jsxDEV("p",{className:"muted",children:"MVP 不执行收尾提交;不显示「任务已关闭/已交付」。"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2464,columnNumber:13},this),s.jsxDEV("dl",{className:"kv","data-testid":"completion-layers",children:[s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"命令"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2469,columnNumber:17},this),s.jsxDEV("dd",{children:Ld(cn.command)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2470,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2468,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"DAG 生命周期"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2473,columnNumber:17},this),s.jsxDEV("dd",{children:Ld(cn.dag)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2474,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2472,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"最终验证"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2477,columnNumber:17},this),s.jsxDEV("dd",{children:Ld(cn.verification)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2478,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2476,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"晋升"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2481,columnNumber:17},this),s.jsxDEV("dd",{children:Ld(cn.promote)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2482,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2480,columnNumber:15},this),s.jsxDEV("div",{children:[s.jsxDEV("dt",{children:"任务关闭"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2485,columnNumber:17},this),s.jsxDEV("dd",{children:"不可用(MVP)"},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2486,columnNumber:17},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2484,columnNumber:15},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2467,columnNumber:13},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2462,columnNumber:11},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1551,columnNumber:7},this),le&&se.trim()?s.jsxDEV(oS,{dagRunId:se.trim(),nodeId:J.trim()||void 0,onClose:()=>ye(!1),onOpenFull:ts},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:2493,columnNumber:9},this):null]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1498,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1493,columnNumber:7},this)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/App.tsx",lineNumber:1492,columnNumber:5},this)}const Nw=document.getElementById("root");if(!Nw)throw new Error("Loop Operator Console: #root missing");nS.createRoot(Nw).render(s.jsxDEV(N.StrictMode,{children:s.jsxDEV(bD,{},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/main.tsx",lineNumber:13,columnNumber:3},void 0)},void 0,!1,{fileName:"/Users/dongwei/ai-learn/loop-agent/src/worker/console/static-src/main.tsx",lineNumber:12,columnNumber:2},void 0));