@aiwg/cockpit 2026.7.21 → 2026.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -6
- package/bridge/src/server.mjs +426 -5
- package/bridge/src/smoke.mjs +44 -3
- package/package.json +1 -1
- package/web/dist/assets/index-BoRrjczI.js +312 -0
- package/web/dist/assets/index-CesGeDud.css +32 -0
- package/web/dist/index.html +2 -2
- package/web/src/App.test.tsx +34 -1
- package/web/src/components/Inventory.test.tsx +165 -0
- package/web/src/components/Inventory.tsx +176 -3
- package/web/src/components/LaunchInstanceModal.test.tsx +151 -1
- package/web/src/components/LaunchInstanceModal.tsx +193 -3
- package/web/src/components/Telemetry.tsx +17 -2
- package/web/src/runtimeContracts.fixtures.ts +230 -0
- package/web/src/runtimeContracts.test.ts +63 -0
- package/web/src/styles.css +7 -0
- package/web/src/types.ts +168 -2
- package/web/dist/assets/index-B0ea5aQ1.css +0 -32
- package/web/dist/assets/index-BRN8u5R_.js +0 -312
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
var XE=Object.defineProperty;var QE=(O,z,G)=>z in O?XE(O,z,{enumerable:!0,configurable:!0,writable:!0,value:G}):O[z]=G;var Wt=(O,z,G)=>QE(O,typeof z!="symbol"?z+"":z,G);(function(){const z=document.createElement("link").relList;if(z&&z.supports&&z.supports("modulepreload"))return;for(const Z of document.querySelectorAll('link[rel="modulepreload"]'))I(Z);new MutationObserver(Z=>{for(const ne of Z)if(ne.type==="childList")for(const W of ne.addedNodes)W.tagName==="LINK"&&W.rel==="modulepreload"&&I(W)}).observe(document,{childList:!0,subtree:!0});function G(Z){const ne={};return Z.integrity&&(ne.integrity=Z.integrity),Z.referrerPolicy&&(ne.referrerPolicy=Z.referrerPolicy),Z.crossOrigin==="use-credentials"?ne.credentials="include":Z.crossOrigin==="anonymous"?ne.credentials="omit":ne.credentials="same-origin",ne}function I(Z){if(Z.ep)return;Z.ep=!0;const ne=G(Z);fetch(Z.href,ne)}})();var zm={exports:{}},Fu={},Lm={exports:{}},Al={exports:{}};Al.exports;var Uy;function KE(){return Uy||(Uy=1,(function(O,z){/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/(function(){function G(U,ee){Object.defineProperty(ne.prototype,U,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ee[0],ee[1])}})}function I(U){return U===null||typeof U!="object"?null:(U=ye&&U[ye]||U["@@iterator"],typeof U=="function"?U:null)}function Z(U,ee){U=(U=U.constructor)&&(U.displayName||U.name)||"ReactClass";var _e=U+"."+ee;Ue[_e]||(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.",ee,U),Ue[_e]=!0)}function ne(U,ee,_e){this.props=U,this.context=ee,this.refs=ze,this.updater=_e||nt}function W(){}function c(U,ee,_e){this.props=U,this.context=ee,this.refs=ze,this.updater=_e||nt}function b(){}function _(U){return""+U}function S(U){try{_(U);var ee=!1}catch{ee=!0}if(ee){ee=console;var _e=ee.error,we=typeof Symbol=="function"&&Symbol.toStringTag&&U[Symbol.toStringTag]||U.constructor.name||"Object";return _e.call(ee,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",we),_(U)}}function d(U){if(U==null)return null;if(typeof U=="function")return U.$$typeof===Ys?null:U.displayName||U.name||null;if(typeof U=="string")return U;switch(U){case A:return"Fragment";case ue:return"Profiler";case $:return"StrictMode";case F:return"Suspense";case j:return"SuspenseList";case oe:return"Activity"}if(typeof U=="object")switch(typeof U.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),U.$$typeof){case V:return"Portal";case be:return U.displayName||"Context";case me:return(U._context.displayName||"Context")+".Consumer";case Ce:var ee=U.render;return U=U.displayName,U||(U=ee.displayName||ee.name||"",U=U!==""?"ForwardRef("+U+")":"ForwardRef"),U;case pe:return ee=U.displayName||null,ee!==null?ee:d(U.type)||"Memo";case se:ee=U._payload,U=U._init;try{return d(U(ee))}catch{}}return null}function m(U){if(U===A)return"<>";if(typeof U=="object"&&U!==null&&U.$$typeof===se)return"<...>";try{var ee=d(U);return ee?"<"+ee+">":"<...>"}catch{return"<...>"}}function y(){var U=xe.A;return U===null?null:U.getOwner()}function E(){return Error("react-stack-top-frame")}function v(U){if(Di.call(U,"key")){var ee=Object.getOwnPropertyDescriptor(U,"key").get;if(ee&&ee.isReactWarning)return!1}return U.key!==void 0}function u(U,ee){function _e(){Te||(Te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ee))}_e.isReactWarning=!0,Object.defineProperty(U,"key",{get:_e,configurable:!0})}function h(){var U=d(this.type);return rt[U]||(rt[U]=!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.")),U=this.props.ref,U!==void 0?U:null}function o(U,ee,_e,we,Oe,Ie){var Re=_e.ref;return U={$$typeof:T,type:U,key:ee,props:_e,_owner:we},(Re!==void 0?Re:null)!==null?Object.defineProperty(U,"ref",{enumerable:!1,get:h}):Object.defineProperty(U,"ref",{enumerable:!1,value:null}),U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(U,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(U,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Oe}),Object.defineProperty(U,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ie}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U}function a(U,ee){return ee=o(U.type,ee,U.props,U._owner,U._debugStack,U._debugTask),U._store&&(ee._store.validated=U._store.validated),ee}function g(U){N(U)?U._store&&(U._store.validated=1):typeof U=="object"&&U!==null&&U.$$typeof===se&&(U._payload.status==="fulfilled"?N(U._payload.value)&&U._payload.value._store&&(U._payload.value._store.validated=1):U._store&&(U._store.validated=1))}function N(U){return typeof U=="object"&&U!==null&&U.$$typeof===T}function C(U){var ee={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(_e){return ee[_e]})}function D(U,ee){return typeof U=="object"&&U!==null&&U.key!=null?(S(U.key),C(""+U.key)):ee.toString(36)}function w(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(b,b):(U.status="pending",U.then(function(ee){U.status==="pending"&&(U.status="fulfilled",U.value=ee)},function(ee){U.status==="pending"&&(U.status="rejected",U.reason=ee)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function k(U,ee,_e,we,Oe){var Ie=typeof U;(Ie==="undefined"||Ie==="boolean")&&(U=null);var Re=!1;if(U===null)Re=!0;else switch(Ie){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(U.$$typeof){case T:case V:Re=!0;break;case se:return Re=U._init,k(Re(U._payload),ee,_e,we,Oe)}}if(Re){Re=U,Oe=Oe(Re);var ot=we===""?"."+D(Re,0):we;return Xt(Oe)?(_e="",ot!=null&&(_e=ot.replace(Nt,"$&/")+"/"),k(Oe,ee,_e,"",function(ui){return ui})):Oe!=null&&(N(Oe)&&(Oe.key!=null&&(Re&&Re.key===Oe.key||S(Oe.key)),_e=a(Oe,_e+(Oe.key==null||Re&&Re.key===Oe.key?"":(""+Oe.key).replace(Nt,"$&/")+"/")+ot),we!==""&&Re!=null&&N(Re)&&Re.key==null&&Re._store&&!Re._store.validated&&(_e._store.validated=2),Oe=_e),ee.push(Oe)),1}if(Re=0,ot=we===""?".":we+":",Xt(U))for(var $e=0;$e<U.length;$e++)we=U[$e],Ie=ot+D(we,$e),Re+=k(we,ee,_e,Ie,Oe);else if($e=I(U),typeof $e=="function")for($e===U.entries&&(dt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),dt=!0),U=$e.call(U),$e=0;!(we=U.next()).done;)we=we.value,Ie=ot+D(we,$e++),Re+=k(we,ee,_e,Ie,Oe);else if(Ie==="object"){if(typeof U.then=="function")return k(w(U),ee,_e,we,Oe);throw ee=String(U),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return Re}function M(U,ee,_e){if(U==null)return U;var we=[],Oe=0;return k(U,we,"","",function(Ie){return ee.call(_e,Ie,Oe++)}),we}function L(U){if(U._status===-1){var ee=U._ioInfo;ee!=null&&(ee.start=ee.end=performance.now()),ee=U._result;var _e=ee();if(_e.then(function(Oe){if(U._status===0||U._status===-1){U._status=1,U._result=Oe;var Ie=U._ioInfo;Ie!=null&&(Ie.end=performance.now()),_e.status===void 0&&(_e.status="fulfilled",_e.value=Oe)}},function(Oe){if(U._status===0||U._status===-1){U._status=2,U._result=Oe;var Ie=U._ioInfo;Ie!=null&&(Ie.end=performance.now()),_e.status===void 0&&(_e.status="rejected",_e.reason=Oe)}}),ee=U._ioInfo,ee!=null){ee.value=_e;var we=_e.displayName;typeof we=="string"&&(ee.name=we)}U._status===-1&&(U._status=0,U._result=_e)}if(U._status===1)return ee=U._result,ee===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
10
|
-
|
|
11
|
-
Your code should look like:
|
|
12
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
13
|
-
|
|
14
|
-
Did you accidentally put curly braces around the import?`,ee),"default"in ee||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
15
|
-
|
|
16
|
-
Your code should look like:
|
|
17
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,ee),ee.default;throw U._result}function H(){var U=xe.H;return U===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:
|
|
18
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
-
2. You might be breaking the Rules of Hooks
|
|
20
|
-
3. You might have more than one copy of React in the same app
|
|
21
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),U}function B(){xe.asyncTransitions--}function J(U){if(ct===null)try{var ee=("require"+Math.random()).slice(0,7);ct=(O&&O[ee]).call(O,"timers").setImmediate}catch{ct=function(we){At===!1&&(At=!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 Oe=new MessageChannel;Oe.port1.onmessage=we,Oe.port2.postMessage(void 0)}}return ct(U)}function ae(U){return 1<U.length&&typeof AggregateError=="function"?new AggregateError(U):U[0]}function te(U,ee){ee!==ps-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. "),ps=ee}function de(U,ee,_e){var we=xe.actQueue;if(we!==null)if(we.length!==0)try{le(we),J(function(){return de(U,ee,_e)});return}catch(Oe){xe.thrownErrors.push(Oe)}else xe.actQueue=null;0<xe.thrownErrors.length?(we=ae(xe.thrownErrors),xe.thrownErrors.length=0,_e(we)):ee(U)}function le(U){if(!Xr){Xr=!0;var ee=0;try{for(;ee<U.length;ee++){var _e=U[ee];do{xe.didUsePromise=!1;var we=_e(!1);if(we!==null){if(xe.didUsePromise){U[ee]=_e,U.splice(0,ee);return}_e=we}else break}while(!0)}U.length=0}catch(Oe){U.splice(0,ee+1),xe.thrownErrors.push(Oe)}finally{Xr=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var T=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),be=Symbol.for("react.context"),Ce=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ye=Symbol.iterator,Ue={},nt={isMounted:function(){return!1},enqueueForceUpdate:function(U){Z(U,"forceUpdate")},enqueueReplaceState:function(U){Z(U,"replaceState")},enqueueSetState:function(U){Z(U,"setState")}},Fe=Object.assign,ze={};Object.freeze(ze),ne.prototype.isReactComponent={},ne.prototype.setState=function(U,ee){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,ee,"setState")},ne.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};var De={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(wn in De)De.hasOwnProperty(wn)&&G(wn,De[wn]);W.prototype=ne.prototype,De=c.prototype=new W,De.constructor=c,Fe(De,ne.prototype),De.isPureReactComponent=!0;var Xt=Array.isArray,Ys=Symbol.for("react.client.reference"),xe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Di=Object.prototype.hasOwnProperty,ge=console.createTask?console.createTask:function(){return null};De={react_stack_bottom_frame:function(U){return U()}};var Te,it,rt={},Xe=De.react_stack_bottom_frame.bind(De,E)(),yt=ge(m(E)),dt=!1,Nt=/\/+/g,Ct=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)},At=!1,ct=null,ps=0,cr=!1,Xr=!1,Qr=typeof queueMicrotask=="function"?function(U){queueMicrotask(function(){return queueMicrotask(U)})}:J;De=Object.freeze({__proto__:null,c:function(U){return H().useMemoCache(U)}});var wn={map:M,forEach:function(U,ee,_e){M(U,function(){ee.apply(this,arguments)},_e)},count:function(U){var ee=0;return M(U,function(){ee++}),ee},toArray:function(U){return M(U,function(ee){return ee})||[]},only:function(U){if(!N(U))throw Error("React.Children.only expected to receive a single React element child.");return U}};z.Activity=oe,z.Children=wn,z.Component=ne,z.Fragment=A,z.Profiler=ue,z.PureComponent=c,z.StrictMode=$,z.Suspense=F,z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe,z.__COMPILER_RUNTIME=De,z.act=function(U){var ee=xe.actQueue,_e=ps;ps++;var we=xe.actQueue=ee!==null?ee:[],Oe=!1;try{var Ie=U()}catch($e){xe.thrownErrors.push($e)}if(0<xe.thrownErrors.length)throw te(ee,_e),U=ae(xe.thrownErrors),xe.thrownErrors.length=0,U;if(Ie!==null&&typeof Ie=="object"&&typeof Ie.then=="function"){var Re=Ie;return Qr(function(){Oe||cr||(cr=!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($e,ui){Oe=!0,Re.then(function(bs){if(te(ee,_e),_e===0){try{le(we),J(function(){return de(bs,$e,ui)})}catch(Kr){xe.thrownErrors.push(Kr)}if(0<xe.thrownErrors.length){var Ml=ae(xe.thrownErrors);xe.thrownErrors.length=0,ui(Ml)}}else $e(bs)},function(bs){te(ee,_e),0<xe.thrownErrors.length&&(bs=ae(xe.thrownErrors),xe.thrownErrors.length=0),ui(bs)})}}}var ot=Ie;if(te(ee,_e),_e===0&&(le(we),we.length!==0&&Qr(function(){Oe||cr||(cr=!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(() => ...)"))}),xe.actQueue=null),0<xe.thrownErrors.length)throw U=ae(xe.thrownErrors),xe.thrownErrors.length=0,U;return{then:function($e,ui){Oe=!0,_e===0?(xe.actQueue=we,J(function(){return de(ot,$e,ui)})):$e(ot)}}},z.cache=function(U){return function(){return U.apply(null,arguments)}},z.cacheSignal=function(){return null},z.captureOwnerStack=function(){var U=xe.getCurrentStack;return U===null?null:U()},z.cloneElement=function(U,ee,_e){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var we=Fe({},U.props),Oe=U.key,Ie=U._owner;if(ee!=null){var Re;e:{if(Di.call(ee,"ref")&&(Re=Object.getOwnPropertyDescriptor(ee,"ref").get)&&Re.isReactWarning){Re=!1;break e}Re=ee.ref!==void 0}Re&&(Ie=y()),v(ee)&&(S(ee.key),Oe=""+ee.key);for(ot in ee)!Di.call(ee,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&ee.ref===void 0||(we[ot]=ee[ot])}var ot=arguments.length-2;if(ot===1)we.children=_e;else if(1<ot){Re=Array(ot);for(var $e=0;$e<ot;$e++)Re[$e]=arguments[$e+2];we.children=Re}for(we=o(U.type,Oe,we,Ie,U._debugStack,U._debugTask),Oe=2;Oe<arguments.length;Oe++)g(arguments[Oe]);return we},z.createContext=function(U){return U={$$typeof:be,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:me,_context:U},U._currentRenderer=null,U._currentRenderer2=null,U},z.createElement=function(U,ee,_e){for(var we=2;we<arguments.length;we++)g(arguments[we]);we={};var Oe=null;if(ee!=null)for($e in it||!("__self"in ee)||"key"in ee||(it=!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")),v(ee)&&(S(ee.key),Oe=""+ee.key),ee)Di.call(ee,$e)&&$e!=="key"&&$e!=="__self"&&$e!=="__source"&&(we[$e]=ee[$e]);var Ie=arguments.length-2;if(Ie===1)we.children=_e;else if(1<Ie){for(var Re=Array(Ie),ot=0;ot<Ie;ot++)Re[ot]=arguments[ot+2];Object.freeze&&Object.freeze(Re),we.children=Re}if(U&&U.defaultProps)for($e in Ie=U.defaultProps,Ie)we[$e]===void 0&&(we[$e]=Ie[$e]);Oe&&u(we,typeof U=="function"?U.displayName||U.name||"Unknown":U);var $e=1e4>xe.recentlyCreatedOwnerStacks++;return o(U,Oe,we,y(),$e?Error("react-stack-top-frame"):Xe,$e?ge(m(U)):yt)},z.createRef=function(){var U={current:null};return Object.seal(U),U},z.forwardRef=function(U){U!=null&&U.$$typeof===pe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof U!="function"?console.error("forwardRef requires a render function but was given %s.",U===null?"null":typeof U):U.length!==0&&U.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",U.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),U!=null&&U.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ee={$$typeof:Ce,render:U},_e;return Object.defineProperty(ee,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(we){_e=we,U.name||U.displayName||(Object.defineProperty(U,"name",{value:we}),U.displayName=we)}}),ee},z.isValidElement=N,z.lazy=function(U){U={_status:-1,_result:U};var ee={$$typeof:se,_payload:U,_init:L},_e={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return U._ioInfo=_e,ee._debugInfo=[{awaited:_e}],ee},z.memo=function(U,ee){U==null&&console.error("memo: The first argument must be a component. Instead received: %s",U===null?"null":typeof U),ee={$$typeof:pe,type:U,compare:ee===void 0?null:ee};var _e;return Object.defineProperty(ee,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(we){_e=we,U.name||U.displayName||(Object.defineProperty(U,"name",{value:we}),U.displayName=we)}}),ee},z.startTransition=function(U){var ee=xe.T,_e={};_e._updatedFibers=new Set,xe.T=_e;try{var we=U(),Oe=xe.S;Oe!==null&&Oe(_e,we),typeof we=="object"&&we!==null&&typeof we.then=="function"&&(xe.asyncTransitions++,we.then(B,B),we.then(b,Ct))}catch(Ie){Ct(Ie)}finally{ee===null&&_e._updatedFibers&&(U=_e._updatedFibers.size,_e._updatedFibers.clear(),10<U&&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.")),ee!==null&&_e.types!==null&&(ee.types!==null&&ee.types!==_e.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."),ee.types=_e.types),xe.T=ee}},z.unstable_useCacheRefresh=function(){return H().useCacheRefresh()},z.use=function(U){return H().use(U)},z.useActionState=function(U,ee,_e){return H().useActionState(U,ee,_e)},z.useCallback=function(U,ee){return H().useCallback(U,ee)},z.useContext=function(U){var ee=H();return U.$$typeof===me&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ee.useContext(U)},z.useDebugValue=function(U,ee){return H().useDebugValue(U,ee)},z.useDeferredValue=function(U,ee){return H().useDeferredValue(U,ee)},z.useEffect=function(U,ee){return U==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useEffect(U,ee)},z.useEffectEvent=function(U){return H().useEffectEvent(U)},z.useId=function(){return H().useId()},z.useImperativeHandle=function(U,ee,_e){return H().useImperativeHandle(U,ee,_e)},z.useInsertionEffect=function(U,ee){return U==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useInsertionEffect(U,ee)},z.useLayoutEffect=function(U,ee){return U==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useLayoutEffect(U,ee)},z.useMemo=function(U,ee){return H().useMemo(U,ee)},z.useOptimistic=function(U,ee){return H().useOptimistic(U,ee)},z.useReducer=function(U,ee,_e){return H().useReducer(U,ee,_e)},z.useRef=function(U){return H().useRef(U)},z.useState=function(U){return H().useState(U)},z.useSyncExternalStore=function(U,ee,_e){return H().useSyncExternalStore(U,ee,_e)},z.useTransition=function(){return H().useTransition()},z.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Al,Al.exports)),Al.exports}var zy;function Ku(){return zy||(zy=1,Lm.exports=KE()),Lm.exports}var Ly;function ZE(){if(Ly)return Fu;Ly=1;/**
|
|
22
|
-
* @license React
|
|
23
|
-
* react-jsx-dev-runtime.development.js
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/return(function(){function O(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===L?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case u:return"Fragment";case o:return"Profiler";case h:return"StrictMode";case C:return"Suspense";case D:return"SuspenseList";case M:return"Activity"}if(typeof A=="object")switch(typeof A.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),A.$$typeof){case v:return"Portal";case g:return A.displayName||"Context";case a:return(A._context.displayName||"Context")+".Consumer";case N:var $=A.render;return A=A.displayName,A||(A=$.displayName||$.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case w:return $=A.displayName||null,$!==null?$:O(A.type)||"Memo";case k:$=A._payload,A=A._init;try{return O(A($))}catch{}}return null}function z(A){return""+A}function G(A){try{z(A);var $=!1}catch{$=!0}if($){$=console;var ue=$.error,me=typeof Symbol=="function"&&Symbol.toStringTag&&A[Symbol.toStringTag]||A.constructor.name||"Object";return ue.call($,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),z(A)}}function I(A){if(A===u)return"<>";if(typeof A=="object"&&A!==null&&A.$$typeof===k)return"<...>";try{var $=O(A);return $?"<"+$+">":"<...>"}catch{return"<...>"}}function Z(){var A=H.A;return A===null?null:A.getOwner()}function ne(){return Error("react-stack-top-frame")}function W(A){if(B.call(A,"key")){var $=Object.getOwnPropertyDescriptor(A,"key").get;if($&&$.isReactWarning)return!1}return A.key!==void 0}function c(A,$){function ue(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",$))}ue.isReactWarning=!0,Object.defineProperty(A,"key",{get:ue,configurable:!0})}function b(){var A=O(this.type);return de[A]||(de[A]=!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.")),A=this.props.ref,A!==void 0?A:null}function _(A,$,ue,me,be,Ce){var F=ue.ref;return A={$$typeof:E,type:A,key:$,props:ue,_owner:me},(F!==void 0?F:null)!==null?Object.defineProperty(A,"ref",{enumerable:!1,get:b}):Object.defineProperty(A,"ref",{enumerable:!1,value:null}),A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(A,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(A,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.defineProperty(A,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ce}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A}function S(A,$,ue,me,be,Ce){var F=$.children;if(F!==void 0)if(me)if(J(F)){for(me=0;me<F.length;me++)d(F[me]);Object.freeze&&Object.freeze(F)}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 d(F);if(B.call($,"key")){F=O(A);var j=Object.keys($).filter(function(se){return se!=="key"});me=0<j.length?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}",V[F+me]||(j=0<j.length?"{"+j.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
30
|
-
let props = %s;
|
|
31
|
-
<%s {...props} />
|
|
32
|
-
React keys must be passed directly to JSX without using spread:
|
|
33
|
-
let props = %s;
|
|
34
|
-
<%s key={someKey} {...props} />`,me,F,j,F),V[F+me]=!0)}if(F=null,ue!==void 0&&(G(ue),F=""+ue),W($)&&(G($.key),F=""+$.key),"key"in $){ue={};for(var pe in $)pe!=="key"&&(ue[pe]=$[pe])}else ue=$;return F&&c(ue,typeof A=="function"?A.displayName||A.name||"Unknown":A),_(A,F,ue,Z(),be,Ce)}function d(A){m(A)?A._store&&(A._store.validated=1):typeof A=="object"&&A!==null&&A.$$typeof===k&&(A._payload.status==="fulfilled"?m(A._payload.value)&&A._payload.value._store&&(A._payload.value._store.validated=1):A._store&&(A._store.validated=1))}function m(A){return typeof A=="object"&&A!==null&&A.$$typeof===E}var y=Ku(),E=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),g=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.for("react.client.reference"),H=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,J=Array.isArray,ae=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(A){return A()}};var te,de={},le=y.react_stack_bottom_frame.bind(y,ne)(),T=ae(I(ne)),V={};Fu.Fragment=u,Fu.jsxDEV=function(A,$,ue,me){var be=1e4>H.recentlyCreatedOwnerStacks++;return S(A,$,ue,me,be?Error("react-stack-top-frame"):le,be?ae(I(A)):T)}})(),Fu}var jy;function JE(){return jy||(jy=1,zm.exports=ZE()),zm.exports}var f=JE(),ie=Ku(),jm={exports:{}},Tl={},Bm={exports:{}},Vm={},By;function eN(){return By||(By=1,(function(O){/**
|
|
35
|
-
* @license React
|
|
36
|
-
* scheduler.development.js
|
|
37
|
-
*
|
|
38
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
-
*
|
|
40
|
-
* This source code is licensed under the MIT license found in the
|
|
41
|
-
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/(function(){function z(){if(N=!1,k){var te=O.unstable_now();H=te;var de=!0;try{e:{a=!1,g&&(g=!1,D(M),M=-1),o=!0;var le=h;try{t:{for(W(te),u=I(y);u!==null&&!(u.expirationTime>te&&b());){var T=u.callback;if(typeof T=="function"){u.callback=null,h=u.priorityLevel;var V=T(u.expirationTime<=te);if(te=O.unstable_now(),typeof V=="function"){u.callback=V,W(te),de=!0;break t}u===I(y)&&Z(y),W(te)}else Z(y);u=I(y)}if(u!==null)de=!0;else{var A=I(E);A!==null&&_(c,A.startTime-te),de=!1}}break e}finally{u=null,h=le,o=!1}de=void 0}}finally{de?B():k=!1}}}function G(te,de){var le=te.length;te.push(de);e:for(;0<le;){var T=le-1>>>1,V=te[T];if(0<ne(V,de))te[T]=de,te[le]=V,le=T;else break e}}function I(te){return te.length===0?null:te[0]}function Z(te){if(te.length===0)return null;var de=te[0],le=te.pop();if(le!==de){te[0]=le;e:for(var T=0,V=te.length,A=V>>>1;T<A;){var $=2*(T+1)-1,ue=te[$],me=$+1,be=te[me];if(0>ne(ue,le))me<V&&0>ne(be,ue)?(te[T]=be,te[me]=le,T=me):(te[T]=ue,te[$]=le,T=$);else if(me<V&&0>ne(be,le))te[T]=be,te[me]=le,T=me;else break e}}return de}function ne(te,de){var le=te.sortIndex-de.sortIndex;return le!==0?le:te.id-de.id}function W(te){for(var de=I(E);de!==null;){if(de.callback===null)Z(E);else if(de.startTime<=te)Z(E),de.sortIndex=de.expirationTime,G(y,de);else break;de=I(E)}}function c(te){if(g=!1,W(te),!a)if(I(y)!==null)a=!0,k||(k=!0,B());else{var de=I(E);de!==null&&_(c,de.startTime-te)}}function b(){return N?!0:!(O.unstable_now()-H<L)}function _(te,de){M=C(function(){te(O.unstable_now())},de)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),O.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var S=performance;O.unstable_now=function(){return S.now()}}else{var d=Date,m=d.now();O.unstable_now=function(){return d.now()-m}}var y=[],E=[],v=1,u=null,h=3,o=!1,a=!1,g=!1,N=!1,C=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null,k=!1,M=-1,L=5,H=-1;if(typeof w=="function")var B=function(){w(z)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,ae=J.port2;J.port1.onmessage=z,B=function(){ae.postMessage(null)}}else B=function(){C(z,0)};O.unstable_IdlePriority=5,O.unstable_ImmediatePriority=1,O.unstable_LowPriority=4,O.unstable_NormalPriority=3,O.unstable_Profiling=null,O.unstable_UserBlockingPriority=2,O.unstable_cancelCallback=function(te){te.callback=null},O.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<te?Math.floor(1e3/te):5},O.unstable_getCurrentPriorityLevel=function(){return h},O.unstable_next=function(te){switch(h){case 1:case 2:case 3:var de=3;break;default:de=h}var le=h;h=de;try{return te()}finally{h=le}},O.unstable_requestPaint=function(){N=!0},O.unstable_runWithPriority=function(te,de){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var le=h;h=te;try{return de()}finally{h=le}},O.unstable_scheduleCallback=function(te,de,le){var T=O.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?T+le:T):le=T,te){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=le+V,te={id:v++,callback:de,priorityLevel:te,startTime:le,expirationTime:V,sortIndex:-1},le>T?(te.sortIndex=le,G(E,te),I(y)===null&&te===I(E)&&(g?(D(M),M=-1):g=!0,_(c,le-T))):(te.sortIndex=V,G(y,te),a||o||(a=!0,k||(k=!0,B()))),te},O.unstable_shouldYield=b,O.unstable_wrapCallback=function(te){var de=h;return function(){var le=h;h=de;try{return te.apply(this,arguments)}finally{h=le}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Vm)),Vm}var Vy;function tN(){return Vy||(Vy=1,Bm.exports=eN()),Bm.exports}var Hm={exports:{}},ci={},Hy;function iN(){if(Hy)return ci;Hy=1;/**
|
|
43
|
-
* @license React
|
|
44
|
-
* react-dom.development.js
|
|
45
|
-
*
|
|
46
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/return(function(){function O(){}function z(d){return""+d}function G(d,m,y){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{z(E);var v=!1}catch{v=!0}return v&&(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&&E[Symbol.toStringTag]||E.constructor.name||"Object"),z(E)),{$$typeof:_,key:E==null?null:""+E,children:d,containerInfo:m,implementation:y}}function I(d,m){if(d==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}function Z(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function ne(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function W(){var d=S.H;return d===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:
|
|
51
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
52
|
-
2. You might be breaking the Rules of Hooks
|
|
53
|
-
3. You might have more than one copy of React in the same app
|
|
54
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=Ku(),b={d:{f:O,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:O,C:O,L:O,m:O,X:O,S:O,M:O},p:0,findDOMNode:null},_=Symbol.for("react.portal"),S=c.__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"),ci.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,ci.createPortal=function(d,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error("Target container is not a DOM element.");return G(d,m,null,y)},ci.flushSync=function(d){var m=S.T,y=b.p;try{if(S.T=null,b.p=2,d)return d()}finally{S.T=m,b.p=y,b.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.")}},ci.preconnect=function(d,m){typeof d=="string"&&d?m!=null&&typeof m!="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.",ne(m)):m!=null&&typeof m.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.",Z(m.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Z(d)),typeof d=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,b.d.C(d,m))},ci.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Z(d));else if(1<arguments.length){var m=arguments[1];typeof m=="object"&&m.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`.",ne(m)):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`.",ne(m))}typeof d=="string"&&b.d.D(d)},ci.preinit=function(d,m){if(typeof d=="string"&&d?m==null||typeof m!="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.",ne(m)):m.as!=="style"&&m.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".',ne(m.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Z(d)),typeof d=="string"&&m&&typeof m.as=="string"){var y=m.as,E=I(y,m.crossOrigin),v=typeof m.integrity=="string"?m.integrity:void 0,u=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?b.d.S(d,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:E,integrity:v,fetchPriority:u}):y==="script"&&b.d.X(d,{crossOrigin:E,integrity:v,fetchPriority:u,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},ci.preinitModule=function(d,m){var y="";if(typeof d=="string"&&d||(y+=" The `href` argument encountered was "+Z(d)+"."),m!==void 0&&typeof m!="object"?y+=" The `options` argument encountered was "+Z(m)+".":m&&"as"in m&&m.as!=="script"&&(y+=" The `as` option encountered was "+ne(m.as)+"."),y)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",y);else switch(y=m&&typeof m.as=="string"?m.as:"script",y){case"script":break;default:y=ne(y),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)',y,d)}typeof d=="string"&&(typeof m=="object"&&m!==null?(m.as==null||m.as==="script")&&(y=I(m.as,m.crossOrigin),b.d.M(d,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})):m==null&&b.d.M(d))},ci.preload=function(d,m){var y="";if(typeof d=="string"&&d||(y+=" The `href` argument encountered was "+Z(d)+"."),m==null||typeof m!="object"?y+=" The `options` argument encountered was "+Z(m)+".":typeof m.as=="string"&&m.as||(y+=" The `as` option encountered was "+Z(m.as)+"."),y&&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',y),typeof d=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){y=m.as;var E=I(y,m.crossOrigin);b.d.L(d,y,{crossOrigin:E,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},ci.preloadModule=function(d,m){var y="";typeof d=="string"&&d||(y+=" The `href` argument encountered was "+Z(d)+"."),m!==void 0&&typeof m!="object"?y+=" The `options` argument encountered was "+Z(m)+".":m&&"as"in m&&typeof m.as!="string"&&(y+=" The `as` option encountered was "+Z(m.as)+"."),y&&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',y),typeof d=="string"&&(m?(y=I(m.as,m.crossOrigin),b.d.m(d,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})):b.d.m(d))},ci.requestFormReset=function(d){b.d.r(d)},ci.unstable_batchedUpdates=function(d,m){return d(m)},ci.useFormState=function(d,m,y){return W().useFormState(d,m,y)},ci.useFormStatus=function(){return W().useHostTransitionStatus()},ci.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ci}var Iy;function sN(){return Iy||(Iy=1,Hm.exports=iN()),Hm.exports}var $y;function nN(){if($y)return Tl;$y=1;/**
|
|
55
|
-
* @license React
|
|
56
|
-
* react-dom-client.development.js
|
|
57
|
-
*
|
|
58
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the MIT license found in the
|
|
61
|
-
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/return(function(){function O(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function z(e,t,i,s){if(i>=t.length)return s;var n=t[i],r=Yt(e)?e.slice():Ke({},e);return r[n]=z(e[n],t,i+1,s),r}function G(e,t,i){if(t.length!==i.length)console.warn("copyWithRename() expects paths of the same length");else{for(var s=0;s<i.length-1;s++)if(t[s]!==i[s]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return I(e,t,i,0)}}function I(e,t,i,s){var n=t[s],r=Yt(e)?e.slice():Ke({},e);return s+1===t.length?(r[i[s]]=r[n],Yt(r)?r.splice(n,1):delete r[n]):r[n]=I(e[n],t,i,s+1),r}function Z(e,t,i){var s=t[i],n=Yt(e)?e.slice():Ke({},e);return i+1===t.length?(Yt(n)?n.splice(s,1):delete n[s],n):(n[s]=Z(e[s],t,i+1),n)}function ne(){return!1}function W(){return null}function c(){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 b(){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 _(){}function S(){}function d(e){var t=[];return e.forEach(function(i){t.push(i)}),t.sort().join(", ")}function m(e,t,i,s){return new Lw(e,t,i,s)}function y(e,t){e.context===In&&(Jd(e.current,2,t,e,null,null),uo())}function E(e,t){if(Gi!==null){var i=t.staleFamilies;t=t.updatedFamilies,xa(),Hp(e.current,t,i),uo()}}function v(e){Gi=e}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function o(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 a(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 g(e){if(h(e)!==e)throw Error("Unable to find node on an unmounted component.")}function N(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var i=e,s=t;;){var n=i.return;if(n===null)break;var r=n.alternate;if(r===null){if(s=n.return,s!==null){i=s;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===i)return g(n),e;if(r===s)return g(n),t;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(i.return!==s.return)i=n,s=r;else{for(var l=!1,p=n.child;p;){if(p===i){l=!0,i=n,s=r;break}if(p===s){l=!0,s=n,i=r;break}p=p.sibling}if(!l){for(p=r.child;p;){if(p===i){l=!0,i=r,s=n;break}if(p===s){l=!0,s=r,i=n;break}p=p.sibling}if(!l)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(i.alternate!==s)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(i.tag!==3)throw Error("Unable to find node on an unmounted component.");return i.stateNode.current===i?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}function D(e){return e===null||typeof e!="object"?null:(e=Fv&&e[Fv]||e["@@iterator"],typeof e=="function"?e:null)}function w(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===n1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vo:return"Fragment";case af:return"Profiler";case Ic:return"StrictMode";case cf:return"Suspense";case uf:return"SuspenseList";case hf: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 go:return"Portal";case Us:return e.displayName||"Context";case lf:return(e._context.displayName||"Context")+".Consumer";case La:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $c:return t=e.displayName||null,t!==null?t:w(e.type)||"Memo";case zi:t=e._payload,e=e._init;try{return w(e(t))}catch{}}return null}function k(e){return typeof e.tag=="number"?M(e):typeof e.name=="string"?e.name:null}function M(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 w(t);case 8:return t===Ic?"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 i=t.length-1;0<=i;i--)if(typeof t[i].name=="string")return t[i].name}if(e.return!==null)return M(e.return)}return null}function L(e){return{current:e}}function H(e,t){0>sn?console.error("Unexpected pop."):(t!==ff[sn]&&console.error("Unexpected Fiber popped."),e.current=df[sn],df[sn]=null,ff[sn]=null,sn--)}function B(e,t,i){sn++,df[sn]=e.current,ff[sn]=i,e.current=t}function J(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 ae(e,t){B(zn,t,e),B(ja,e,e),B(Un,null,e);var i=t.nodeType;switch(i){case 9:case 11:i=i===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?gv(t):vn;break;default:if(i=t.tagName,t=t.namespaceURI)t=gv(t),t=vv(t,i);else switch(i){case"svg":t=Zo;break;case"math":t=Hu;break;default:t=vn}}i=i.toLowerCase(),i=hp(null,i),i={context:t,ancestorInfo:i},H(Un,e),B(Un,i,e)}function te(e){H(Un,e),H(ja,e),H(zn,e)}function de(){return J(Un.current)}function le(e){e.memoizedState!==null&&B(qc,e,e);var t=J(Un.current),i=e.type,s=vv(t.context,i);i=hp(t.ancestorInfo,i),s={context:s,ancestorInfo:i},t!==s&&(B(ja,e,e),B(Un,s,e))}function T(e){ja.current===e&&(H(Un,e),H(ja,e)),qc.current===e&&(H(qc,e),Ol._currentValue=Gr)}function V(){}function A(){if(Ba===0){Gv=console.log,Xv=console.info,Qv=console.warn,Kv=console.error,Zv=console.group,Jv=console.groupCollapsed,e_=console.groupEnd;var e={configurable:!0,enumerable:!0,value:V,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ba++}function $(){if(Ba--,Ba===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:Gv}),info:Ke({},e,{value:Xv}),warn:Ke({},e,{value:Qv}),error:Ke({},e,{value:Kv}),group:Ke({},e,{value:Zv}),groupCollapsed:Ke({},e,{value:Jv}),groupEnd:Ke({},e,{value:e_})})}0>Ba&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ue(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
63
|
-
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
64
|
-
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
65
|
-
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function me(e){if(mf===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);mf=t&&t[1]||"",t_=-1<i.stack.indexOf(`
|
|
66
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
67
|
-
`+mf+e+t_}function be(e,t){if(!e||pf)return"";var i=bf.get(e);if(i!==void 0)return i;pf=!0,i=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var s=null;s=he.H,he.H=null,A();try{var n={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Se){var re=Se}Reflect.construct(e,[],P)}else{try{P.call()}catch(Se){re=Se}e.call(P.prototype)}}else{try{throw Error()}catch(Se){re=Se}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(Se){if(Se&&re&&typeof Se.stack=="string")return[Se.stack,re.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=n.DetermineComponentFrameRoot(),p=l[0],x=l[1];if(p&&x){var R=p.split(`
|
|
68
|
-
`),Q=x.split(`
|
|
69
|
-
`);for(l=r=0;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;for(;l<Q.length&&!Q[l].includes("DetermineComponentFrameRoot");)l++;if(r===R.length||l===Q.length)for(r=R.length-1,l=Q.length-1;1<=r&&0<=l&&R[r]!==Q[l];)l--;for(;1<=r&&0<=l;r--,l--)if(R[r]!==Q[l]){if(r!==1||l!==1)do if(r--,l--,0>l||R[r]!==Q[l]){var K=`
|
|
70
|
-
`+R[r].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),typeof e=="function"&&bf.set(e,K),K}while(1<=r&&0<=l);break}}}finally{pf=!1,he.H=s,$(),Error.prepareStackTrace=i}return R=(R=e?e.displayName||e.name:"")?me(R):"",typeof e=="function"&&bf.set(e,R),R}function Ce(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me("Lazy");case 13:return e.child!==t&&t!==null?me("Suspense Fallback"):me("Suspense");case 19:return me("SuspenseList");case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return me("Activity");default:return""}}function F(e){try{var t="",i=null;do{t+=Ce(e,i);var s=e._debugInfo;if(s)for(var n=s.length-1;0<=n;n--){var r=s[n];if(typeof r.name=="string"){var l=t;e:{var p=r.name,x=r.env,R=r.debugLocation;if(R!=null){var Q=ue(R),K=Q.lastIndexOf(`
|
|
71
|
-
`),P=K===-1?Q:Q.slice(K+1);if(P.indexOf(p)!==-1){var re=`
|
|
72
|
-
`+P;break e}}re=me(p+(x?" ["+x+"]":""))}t=l+re}}i=e,e=e.return}while(e);return t}catch(Se){return`
|
|
73
|
-
Error generating stack: `+Se.message+`
|
|
74
|
-
`+Se.stack}}function j(e){return(e=e?e.displayName||e.name:"")?me(e):""}function pe(){if(Li===null)return null;var e=Li._debugOwner;return e!=null?k(e):null}function se(){if(Li===null)return"";var e=Li;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=me(e.type);break;case 13:t+=me("Suspense");break;case 19:t+=me("SuspenseList");break;case 31:t+=me("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=j(e.type));break;case 11:e._debugOwner||t!==""||(t+=j(e.type.render))}for(;e;)if(typeof e.tag=="number"){var i=e;e=i._debugOwner;var s=i._debugStack;if(e&&s){var n=ue(s);n!==""&&(t+=`
|
|
75
|
-
`+n)}}else if(e.debugStack!=null){var r=e.debugStack;(e=e.owner)&&r&&(t+=`
|
|
76
|
-
`+ue(r))}else break;var l=t}catch(p){l=`
|
|
77
|
-
Error generating stack: `+p.message+`
|
|
78
|
-
`+p.stack}return l}function oe(e,t,i,s,n,r,l){var p=Li;ye(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,i,s,n,r,l)):t(i,s,n,r,l)}finally{ye(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ye(e){he.getCurrentStack=e===null?null:se,zs=!1,Li=e}function Ue(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function nt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function ze(e,t){if(nt(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,Ue(e)),Fe(e)}function De(e,t){if(nt(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,Ue(e)),Fe(e)}function Xt(e){if(nt(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.",Ue(e)),Fe(e)}function Ys(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{yo=t.inject(e),ai=t}catch(i){console.error("React instrumentation encountered an error: %o.",i)}return!!t.checkDCE}function xe(e){if(typeof h1=="function"&&d1(e),ai&&typeof ai.setStrictMode=="function")try{ai.setStrictMode(yo,e)}catch(t){Ls||(Ls=!0,console.error("React instrumentation encountered an error: %o",t))}}function Di(e){return e>>>=0,e===0?32:31-(f1(e)/m1|0)|0}function ge(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 Te(e,t,i){var s=e.pendingLanes;if(s===0)return 0;var n=0,r=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var p=s&134217727;return p!==0?(s=p&~r,s!==0?n=ge(s):(l&=p,l!==0?n=ge(l):i||(i=p&~e,i!==0&&(n=ge(i))))):(p=s&~r,p!==0?n=ge(p):l!==0?n=ge(l):i||(i=s&~e,i!==0&&(n=ge(i)))),n===0?0:t!==0&&t!==n&&(t&r)===0&&(r=n&-n,i=t&-t,r>=i||r===32&&(i&4194048)!==0)?t:n}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(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 Xe(){var e=Yc;return Yc<<=1,(Yc&62914560)===0&&(Yc=4194304),e}function yt(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function dt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nt(e,t,i,s,n,r){var l=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var p=e.entanglements,x=e.expirationTimes,R=e.hiddenUpdates;for(i=l&~i;0<i;){var Q=31-di(i),K=1<<Q;p[Q]=0,x[Q]=-1;var P=R[Q];if(P!==null)for(R[Q]=null,Q=0;Q<P.length;Q++){var re=P[Q];re!==null&&(re.lane&=-536870913)}i&=~K}s!==0&&Ct(e,s,0),r!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=r&~(l&~t))}function Ct(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-di(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|i&261930}function At(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var s=31-di(i),n=1<<s;n&t|e[s]&t&&(e[s]|=t),i&=~n}}function ct(e,t){var i=t&-t;return i=(i&42)!==0?1:ps(i),(i&(e.suspendedLanes|t))!==0?0:i}function ps(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function cr(e,t,i){if(js)for(e=e.pendingUpdatersLaneMap;0<i;){var s=31-di(i),n=1<<s;e[s].add(t),i&=~n}}function Xr(e,t){if(js)for(var i=e.pendingUpdatersLaneMap,s=e.memoizedUpdaters;0<t;){var n=31-di(t);e=1<<n,n=i[n],0<n.size&&(n.forEach(function(r){var l=r.alternate;l!==null&&s.has(l)||s.add(r)}),n.clear()),t&=~e}}function Qr(e){return e&=-e,Wi<e?Bs<e?(e&134217727)!==0?nn:Fc:Bs:Wi}function wn(){var e=ht.p;return e!==0?e:(e=window.event,e===void 0?nn:Hv(e.type))}function U(e,t){var i=ht.p;try{return ht.p=e,t()}finally{ht.p=i}}function ee(e){delete e[ni],delete e[fi],delete e[wf],delete e[p1],delete e[b1]}function _e(e){var t=e[ni];if(t)return t;for(var i=e.parentNode;i;){if(t=i[jn]||i[ni]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=xv(e);e!==null;){if(i=e[ni])return i;e=xv(e)}return t}e=i,i=e.parentNode}return null}function we(e){if(e=e[ni]||e[jn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Oe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ie(e){var t=e[i_];return t||(t=e[i_]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Re(e){e[Va]=!0}function ot(e,t){$e(e,t),$e(e+"Capture",t)}function $e(e,t){Cr[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Cr[e]=t;var i=e.toLowerCase();for(Sf[i]=e,e==="onDoubleClick"&&(Sf.ondblclick=e),e=0;e<t.length;e++)s_.add(t[e])}function ui(e,t){g1[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 bs(e){return ls.call(r_,e)?!0:ls.call(n_,e)?!1:v1.test(e)?r_[e]=!0:(n_[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ml(e,t,i){if(bs(t)){if(!e.hasAttribute(t)){switch(typeof i){case"symbol":case"object":return i;case"function":return i;case"boolean":if(i===!1)return i}return i===void 0?void 0:null}return e=e.getAttribute(t),e===""&&i===!0?!0:(ze(i,t),e===""+i?i:e)}}function Kr(e,t,i){if(bs(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}ze(i,t),e.setAttribute(t,""+i)}}function Ul(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ze(i,t),e.setAttribute(t,""+i)}}function Fs(e,t,i,s){if(s===null)e.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}ze(s,i),e.setAttributeNS(t,i,""+s)}}function $i(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Xt(e),e;default:return""}}function Km(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fw(e,t,i){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var n=s.get,r=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(l){Xt(l),i=""+l,r.call(this,l)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return i},setValue:function(l){Xt(l),i=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ju(e){if(!e._valueTracker){var t=Km(e)?"checked":"value";e._valueTracker=fw(e,t,""+e[t])}}function Zm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),s="";return e&&(s=Km(e)?e.checked?"true":"false":e.value),e=s,e!==i?(t.setValue(e),!0):!1}function zl(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 qi(e){return e.replace(_1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jm(e,t){t.checked===void 0||t.defaultChecked===void 0||a_||(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",pe()||"A component",t.type),a_=!0),t.value===void 0||t.defaultValue===void 0||o_||(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",pe()||"A component",t.type),o_=!0)}function eh(e,t,i,s,n,r,l,p){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?(ze(l,"type"),e.type=l):e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+$i(t)):e.value!==""+$i(t)&&(e.value=""+$i(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?th(e,l,$i(t)):i!=null?th(e,l,$i(i)):s!=null&&e.removeAttribute("value"),n==null&&r!=null&&(e.defaultChecked=!!r),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(ze(p,"name"),e.name=""+$i(p)):e.removeAttribute("name")}function ep(e,t,i,s,n,r,l,p){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(ze(r,"type"),e.type=r),t!=null||i!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Ju(e);return}i=i!=null?""+$i(i):"",t=t!=null?""+$i(t):i,p||t===e.value||(e.value=t),e.defaultValue=t}s=s??n,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=p?e.checked:!!s,e.defaultChecked=!!s,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(ze(l,"name"),e.name=l),Ju(e)}function th(e,t,i){t==="number"&&zl(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function tp(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?of.Children.forEach(t.children,function(i){i==null||typeof i=="string"||typeof i=="number"||typeof i=="bigint"||c_||(c_=!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||u_||(u_=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||l_||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),l_=!0)}function ip(){var e=pe();return e?`
|
|
79
|
-
|
|
80
|
-
Check the render method of \``+e+"`.":""}function Zr(e,t,i,s){if(e=e.options,t){t={};for(var n=0;n<i.length;n++)t["$"+i[n]]=!0;for(i=0;i<e.length;i++)n=t.hasOwnProperty("$"+e[i].value),e[i].selected!==n&&(e[i].selected=n),n&&s&&(e[i].defaultSelected=!0)}else{for(i=""+$i(i),t=null,n=0;n<e.length;n++){if(e[n].value===i){e[n].selected=!0,s&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function sp(e,t){for(e=0;e<d_.length;e++){var i=d_[e];if(t[i]!=null){var s=Yt(t[i]);t.multiple&&!s?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,ip()):!t.multiple&&s&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,ip())}}t.value===void 0||t.defaultValue===void 0||h_||(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"),h_=!0)}function np(e,t){t.value===void 0||t.defaultValue===void 0||f_||(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",pe()||"A component"),f_=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function rp(e,t,i){if(t!=null&&(t=""+$i(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+$i(i):""}function op(e,t,i,s){if(t==null){if(s!=null){if(i!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Yt(s)){if(1<s.length)throw Error("<textarea> can only have at most one child.");s=s[0]}i=s}i==null&&(i=""),t=i}i=$i(t),e.defaultValue=i,s=e.textContent,s===i&&s!==""&&s!==null&&(e.value=s),Ju(e)}function ap(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ap(e.children[0],t):e}function Oi(e){return" "+" ".repeat(e)}function Jr(e){return"+ "+" ".repeat(e)}function ur(e){return"- "+" ".repeat(e)}function lp(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 ia(e,t){return m_.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 Ll(e,t,i){var s=120-2*i;if(t===null)return Jr(i)+ia(e,s)+`
|
|
81
|
-
`;if(typeof t=="string"){for(var n=0;n<t.length&&n<e.length&&t.charCodeAt(n)===e.charCodeAt(n);n++);return n>s-8&&10<n&&(e="..."+e.slice(n-8),t="..."+t.slice(n-8)),Jr(i)+ia(e,s)+`
|
|
82
|
-
`+ur(i)+ia(t,s)+`
|
|
83
|
-
`}return Oi(i)+ia(e,s)+`
|
|
84
|
-
`}function ih(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,i){return i})}function sa(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(Yt(e))return"[...]";if(e.$$typeof===Ms)return(t=w(e.type))?"<"+t+">":"<...>";var i=ih(e);if(i==="Object"){i="",t-=2;for(var s in e)if(e.hasOwnProperty(s)){var n=JSON.stringify(s);if(n!=='"'+s+'"'&&(s=n),t-=s.length-2,n=sa(e[s],15>t?t:15),t-=n.length,0>t){i+=i===""?"...":", ...";break}i+=(i===""?"":",")+s+":"+n}return"{"+i+"}"}return i;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function eo(e,t){return typeof e!="string"||m_.test(e)?"{"+sa(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function sh(e,t,i){var s=120-i.length-e.length,n=[],r;for(r in t)if(t.hasOwnProperty(r)&&r!=="children"){var l=eo(t[r],120-i.length-r.length-1);s-=r.length+l.length+2,n.push(r+"="+l)}return n.length===0?i+"<"+e+`>
|
|
85
|
-
`:0<s?i+"<"+e+" "+n.join(" ")+`>
|
|
86
|
-
`:i+"<"+e+`
|
|
87
|
-
`+i+" "+n.join(`
|
|
88
|
-
`+i+" ")+`
|
|
89
|
-
`+i+`>
|
|
90
|
-
`}function mw(e,t,i){var s="",n=Ke({},t),r;for(r in e)if(e.hasOwnProperty(r)){delete n[r];var l=120-2*i-r.length-2,p=sa(e[r],l);t.hasOwnProperty(r)?(l=sa(t[r],l),s+=Jr(i)+r+": "+p+`
|
|
91
|
-
`,s+=ur(i)+r+": "+l+`
|
|
92
|
-
`):s+=Jr(i)+r+": "+p+`
|
|
93
|
-
`}for(var x in n)n.hasOwnProperty(x)&&(e=sa(n[x],120-2*i-x.length-2),s+=ur(i)+x+": "+e+`
|
|
94
|
-
`);return s}function pw(e,t,i,s){var n="",r=new Map;for(R in i)i.hasOwnProperty(R)&&r.set(R.toLowerCase(),R);if(r.size===1&&r.has("children"))n+=sh(e,t,Oi(s));else{for(var l in t)if(t.hasOwnProperty(l)&&l!=="children"){var p=120-2*(s+1)-l.length-1,x=r.get(l.toLowerCase());if(x!==void 0){r.delete(l.toLowerCase());var R=t[l];x=i[x];var Q=eo(R,p);p=eo(x,p),typeof R=="object"&&R!==null&&typeof x=="object"&&x!==null&&ih(R)==="Object"&&ih(x)==="Object"&&(2<Object.keys(R).length||2<Object.keys(x).length||-1<Q.indexOf("...")||-1<p.indexOf("..."))?n+=Oi(s+1)+l+`={{
|
|
95
|
-
`+mw(R,x,s+2)+Oi(s+1)+`}}
|
|
96
|
-
`:(n+=Jr(s+1)+l+"="+Q+`
|
|
97
|
-
`,n+=ur(s+1)+l+"="+p+`
|
|
98
|
-
`)}else n+=Oi(s+1)+l+"="+eo(t[l],p)+`
|
|
99
|
-
`}r.forEach(function(K){if(K!=="children"){var P=120-2*(s+1)-K.length-1;n+=ur(s+1)+K+"="+eo(i[K],P)+`
|
|
100
|
-
`}}),n=n===""?Oi(s)+"<"+e+`>
|
|
101
|
-
`:Oi(s)+"<"+e+`
|
|
102
|
-
`+n+Oi(s)+`>
|
|
103
|
-
`}return e=i.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(r="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(r=""+t),n+=Ll(r,""+e,s+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(n=e==null?n+Ll(""+t,null,s+1):n+Ll(""+t,void 0,s+1)),n}function cp(e,t){var i=lp(e);if(i===null){for(i="",e=e.child;e;)i+=cp(e,t),e=e.sibling;return i}return Oi(t)+"<"+i+`>
|
|
104
|
-
`}function nh(e,t){var i=ap(e,t);if(i!==e&&(e.children.length!==1||e.children[0]!==i))return Oi(t)+`...
|
|
105
|
-
`+nh(i,t+1);i="";var s=e.fiber._debugInfo;if(s)for(var n=0;n<s.length;n++){var r=s[n].name;typeof r=="string"&&(i+=Oi(t)+"<"+r+`>
|
|
106
|
-
`,t++)}if(s="",n=e.fiber.pendingProps,e.fiber.tag===6)s=Ll(n,e.serverProps,t),t++;else if(r=lp(e.fiber),r!==null)if(e.serverProps===void 0){s=t;var l=120-2*s-r.length-2,p="";for(R in n)if(n.hasOwnProperty(R)&&R!=="children"){var x=eo(n[R],15);if(l-=R.length+x.length+2,0>l){p+=" ...";break}p+=" "+R+"="+x}s=Oi(s)+"<"+r+p+`>
|
|
107
|
-
`,t++}else e.serverProps===null?(s=sh(r,n,Jr(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."):(s=pw(r,n,e.serverProps,t),t++);var R="";for(n=e.fiber.child,r=0;n&&r<e.children.length;)l=e.children[r],l.fiber===n?(R+=nh(l,t),r++):R+=cp(n,t),n=n.sibling;for(n&&0<e.children.length&&(R+=Oi(t)+`...
|
|
108
|
-
`),n=e.serverTail,e.serverProps===null&&t--,e=0;e<n.length;e++)r=n[e],R=typeof r=="string"?R+(ur(t)+ia(r,120-2*t)+`
|
|
109
|
-
`):R+sh(r.type,r.props,ur(t));return i+s+R}function rh(e){try{return`
|
|
110
|
-
|
|
111
|
-
`+nh(e,0)}catch{return""}}function up(e,t,i){for(var s=t,n=null,r=0;s;)s===e&&(r=0),n={fiber:s,children:n!==null?[n]:[],serverProps:s===t?i:s===e?null:void 0,serverTail:[],distanceFromLeaf:r},r++,s=s.return;return n!==null?rh(n).replaceAll(/^[+-]/gm,">"):""}function hp(e,t){var i=Ke({},e||b_),s={tag:t};return p_.indexOf(t)!==-1&&(i.aTagInScope=null,i.buttonTagInScope=null,i.nobrTagInScope=null),w1.indexOf(t)!==-1&&(i.pTagInButtonScope=null),y1.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(i.listItemTagAutoclosing=null,i.dlItemTagAutoclosing=null),i.current=s,t==="form"&&(i.formTag=s),t==="a"&&(i.aTagInScope=s),t==="button"&&(i.buttonTagInScope=s),t==="nobr"&&(i.nobrTagInScope=s),t==="p"&&(i.pTagInButtonScope=s),t==="li"&&(i.listItemTagAutoclosing=s),(t==="dd"||t==="dt")&&(i.dlItemTagAutoclosing=s),t==="#document"||t==="html"?i.containerTagInScope=null:i.containerTagInScope||(i.containerTagInScope=s),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?i.implicitRootScope===!0&&(i.implicitRootScope=!1):i.implicitRootScope=!0,i}function dp(e,t,i){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(i)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!i)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 S1.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 i||t===null;case"html":return i&&t==="#document"||t===null;case"body":return i&&(t==="#document"||t==="html")||t===null}return!0}function bw(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 fp(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 oh(e,t){t=t||b_;var i=t.current;if(t=(i=dp(e,i&&i.tag,t.implicitRootScope)?null:i)?null:bw(e,t),t=i||t,!t)return!0;var s=t.tag;if(t=String(!!i)+"|"+e+"|"+s,Gc[t])return!1;Gc[t]=!0;var n=(t=Li)?fp(t.return,s):null,r=t!==null&&n!==null?up(n,t,null):"",l="<"+e+">";return i?(i="",s==="table"&&e==="tr"&&(i+=" 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
|
|
112
|
-
This will cause a hydration error.%s`,l,s,i,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
113
|
-
This will cause a hydration error.%s`,l,s,r),t&&(e=t.return,n===null||e===null||n===e&&e._debugOwner===t._debugOwner||oe(n,function(){console.error(`<%s> cannot contain a nested %s.
|
|
114
|
-
See this log for the ancestor stack trace.`,s,l)})),!1}function jl(e,t,i){if(i||dp("#text",t,!1))return!0;if(i="#text|"+t,Gc[i])return!1;Gc[i]=!0;var s=(i=Li)?fp(i,t):null;return i=i!==null&&s!==null?up(s,i,i.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
115
|
-
This will cause a hydration error.%s`,t,i):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.
|
|
116
|
-
This will cause a hydration error.%s`,t,i),!1}function na(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}function gw(e){return e.replace(C1,function(t,i){return i.toUpperCase()})}function mp(e,t,i){var s=t.indexOf("--")===0;s||(-1<t.indexOf("-")?wo.hasOwnProperty(t)&&wo[t]||(wo[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,gw(t.replace(N1,"ms-")))):E1.test(t)?wo.hasOwnProperty(t)&&wo[t]||(wo[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!__.test(i)||Nf.hasOwnProperty(i)&&Nf[i]||(Nf[i]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,i.replace(__,""))),typeof i=="number"&&(isNaN(i)?y_||(y_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(i)||w_||(w_=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),i==null||typeof i=="boolean"||i===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,i):typeof i!="number"||i===0||S_.has(t)?t==="float"?e.cssFloat=i:(De(i,t),e[t]=(""+i).trim()):e[t]=i+"px"}function pp(e,t,i){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,i!=null){if(t){var s={};if(i){for(var n in i)if(i.hasOwnProperty(n)&&!t.hasOwnProperty(n))for(var r=Ef[n]||[n],l=0;l<r.length;l++)s[r[l]]=n}for(var p in t)if(t.hasOwnProperty(p)&&(!i||i[p]!==t[p]))for(n=Ef[p]||[p],r=0;r<n.length;r++)s[n[r]]=p;p={};for(var x in t)for(n=Ef[x]||[x],r=0;r<n.length;r++)p[n[r]]=x;x={};for(var R in s)if(n=s[R],(r=p[R])&&n!==r&&(l=n+","+r,!x[l])){x[l]=!0,l=console;var Q=t[n];l.error.call(l,"%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.",Q==null||typeof Q=="boolean"||Q===""?"Removing":"Updating",n,r)}}for(var K in i)!i.hasOwnProperty(K)||t!=null&&t.hasOwnProperty(K)||(K.indexOf("--")===0?e.setProperty(K,""):K==="float"?e.cssFloat="":e[K]="");for(var P in t)R=t[P],t.hasOwnProperty(P)&&i[P]!==R&&mp(e,P,R)}else for(s in t)t.hasOwnProperty(s)&&mp(e,s,t[s])}function ra(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 bp(e){return x1.get(e)||e}function vw(e,t){if(ls.call(Eo,t)&&Eo[t])return!0;if(O1.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=E_.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Eo[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Eo[t]=!0}if(D1.test(t)){if(e=t.toLowerCase(),e=E_.hasOwnProperty(e)?e:null,e==null)return Eo[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Eo[t]=!0)}return!0}function _w(e,t){var i=[],s;for(s in t)vw(e,s)||i.push(s);t=i.map(function(n){return"`"+n+"`"}).join(", "),i.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<i.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function yw(e,t,i,s){if(ls.call(mi,t)&&mi[t])return!0;var n=t.toLowerCase();if(n==="onfocusin"||n==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),mi[t]=!0;if(typeof i=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(s!=null){if(e=s.possibleRegistrationNames,s.registrationNameDependencies.hasOwnProperty(t))return!0;if(s=e.hasOwnProperty(n)?e[n]:null,s!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,s),mi[t]=!0;if(C_.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),mi[t]=!0}else if(C_.test(t))return k1.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),mi[t]=!0;if(R1.test(t)||T1.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),mi[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),mi[t]=!0;if(n==="is"&&i!==null&&i!==void 0&&typeof i!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof i),mi[t]=!0;if(typeof i=="number"&&isNaN(i))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),mi[t]=!0;if(Qc.hasOwnProperty(n)){if(n=Qc[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),mi[t]=!0}else if(t!==n)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,n),mi[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 i){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 n=t.toLowerCase().slice(0,5),n==="data-"||n==="aria-"?!0:(i?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()}.',i,t,t,i,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.',i,t,t,i,t,t,t),mi[t]=!0)}case"function":case"symbol":return mi[t]=!0,!1;case"string":if(i==="false"||i==="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}?",i,t,i==="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,i),mi[t]=!0}}return!0}function ww(e,t,i){var s=[],n;for(n in t)yw(e,n,t[n],i)||s.push(n);t=s.map(function(r){return"`"+r+"`"}).join(", "),s.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<s.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 oa(e){return A1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gs(){}function ah(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function gp(e){var t=we(e);if(t&&(e=t.stateNode)){var i=e[fi]||null;e:switch(e=t.stateNode,t.type){case"input":if(eh(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(ze(t,"name"),i=i.querySelectorAll('input[name="'+qi(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var s=i[t];if(s!==e&&s.form===e.form){var n=s[fi]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");eh(s,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<i.length;t++)s=i[t],s.form===e.form&&Zm(s)}break e;case"textarea":rp(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Zr(e,!!i.multiple,t,!1)}}}function vp(e,t,i){if(Cf)return e(t,i);Cf=!0;try{var s=e(t);return s}finally{if(Cf=!1,(No!==null||Co!==null)&&(uo(),No&&(t=No,e=Co,Co=No=null,gp(t),e)))for(t=0;t<e.length;t++)gp(e[t])}}function aa(e,t){var i=e.stateNode;if(i===null)return null;var s=i[fi]||null;if(s===null)return null;i=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof i+"` type.");return i}function _p(){if(Kc)return Kc;var e,t=Df,i=t.length,s,n="value"in Bn?Bn.value:Bn.textContent,r=n.length;for(e=0;e<i&&t[e]===n[e];e++);var l=i-e;for(s=1;s<=l&&t[i-s]===n[r-s];s++);return Kc=n.slice(e,1<s?1-s:void 0)}function Bl(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 Vl(){return!0}function yp(){return!1}function yi(e){function t(i,s,n,r,l){this._reactName=i,this._targetInst=n,this.type=s,this.nativeEvent=r,this.target=l,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(i=e[p],this[p]=i?i(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Vl:yp,this.isPropagationStopped=yp,this}return Ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Vl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Vl)},persist:function(){},isPersistent:Vl}),t}function Sw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=W1[e])?!!t[e]:!1}function lh(){return Sw}function wp(e,t){switch(e){case"keyup":return sE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==k_;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function Ew(e,t){switch(e){case"compositionend":return Sp(t);case"keypress":return t.which!==T_?null:(M_=!0,A_);case"textInput":return e=t.data,e===A_&&M_?null:e;default:return null}}function Nw(e,t){if(xo)return e==="compositionend"||!Tf&&wp(e,t)?(e=_p(),Kc=Df=Bn=null,xo=!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 R_&&t.locale!=="ko"?null:t.data;default:return null}}function Ep(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rE[e.type]:t==="textarea"}function Cw(e){if(!Vs)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 Np(e,t,i,s){No?Co?Co.push(s):Co=[s]:No=s,t=Tc(t,"onChange"),0<t.length&&(i=new Zc("onChange","change",null,i,s),e.push({event:i,listeners:t}))}function xw(e){ov(e,0)}function Hl(e){var t=Oe(e);if(Zm(t))return e}function Cp(e,t){if(e==="change")return t}function xp(){Wa&&(Wa.detachEvent("onpropertychange",Dp),Ya=Wa=null)}function Dp(e){if(e.propertyName==="value"&&Hl(Ya)){var t=[];Np(t,Ya,e,ah(e)),vp(xw,t)}}function Dw(e,t,i){e==="focusin"?(xp(),Wa=t,Ya=i,Wa.attachEvent("onpropertychange",Dp)):e==="focusout"&&xp()}function Ow(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(Ya)}function kw(e,t){if(e==="click")return Hl(t)}function Rw(e,t){if(e==="input"||e==="change")return Hl(t)}function Tw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function la(e,t){if(pi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var n=i[s];if(!ls.call(t,n)||!pi(e[n],t[n]))return!1}return!0}function Op(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kp(e,t){var i=Op(e);e=0;for(var s;i;){if(i.nodeType===3){if(s=e+i.textContent.length,e<=t&&s>=t)return{node:i,offset:t-e};e=s}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Op(i)}}function Rp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zl(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=zl(e.document)}return t}function ch(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 Ap(e,t,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Mf||Do==null||Do!==zl(s)||(s=Do,"selectionStart"in s&&ch(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Fa&&la(Fa,s)||(Fa=s,s=Tc(Af,"onSelect"),0<s.length&&(t=new Zc("onSelect","select",null,t,i),e.push({event:t,listeners:s}),t.target=Do)))}function hr(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}function dr(e){if(Uf[e])return Uf[e];if(!Oo[e])return e;var t=Oo[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in z_)return Uf[e]=t[i];return e}function ns(e,t){H_.set(e,t),ot(t,[e])}function Aw(e){for(var t=eu,i=0;i<e.length;i++){var s=e[i];if(typeof s=="object"&&s!==null)if(Yt(s)&&s.length===2&&typeof s[0]=="string"){if(t!==eu&&t!==Vf)return jf;t=Vf}else return jf;else{if(typeof s=="function"||typeof s=="string"&&50<s.length||t!==eu&&t!==Bf)return jf;t=Bf}}return t}function uh(e,t,i,s){for(var n in e)ls.call(e,n)&&n[0]!=="_"&&gs(n,e[n],t,i,s)}function gs(e,t,i,s,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Ms){var r=w(t.type)||"…",l=t.key;t=t.props;var p=Object.keys(t),x=p.length;if(l==null&&x===0){t="<"+r+" />";break}if(3>s||x===1&&p[0]==="children"&&l==null){t="<"+r+" … />";break}i.push([n+" ".repeat(s)+e,"<"+r]),l!==null&&gs("key",l,i,s+1,n),e=!1;for(var R in t)R==="children"?t.children!=null&&(!Yt(t.children)||0<t.children.length)&&(e=!0):ls.call(t,R)&&R[0]!=="_"&&gs(R,t[R],i,s+1,n);i.push(["",e?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(t),r=r.slice(8,r.length-1),r==="Array"){if(R=Aw(t),R===Bf||R===eu){t=JSON.stringify(t);break}else if(R===Vf){for(i.push([n+" ".repeat(s)+e,""]),e=0;e<t.length;e++)r=t[e],gs(r[0],r[1],i,s+1,n);return}}if(r==="Promise"){if(t.status==="fulfilled"){if(r=i.length,gs(e,t.value,i,s,n),i.length>r){i=i[r],i[1]="Promise<"+(i[1]||"Object")+">";return}}else if(t.status==="rejected"&&(r=i.length,gs(e,t.reason,i,s,n),i.length>r)){i=i[r],i[1]="Rejected Promise<"+i[1]+">";return}i.push([" ".repeat(s)+e,"Promise"]);return}r==="Object"&&(R=Object.getPrototypeOf(t))&&typeof R.constructor=="function"&&(r=R.constructor.name),i.push([n+" ".repeat(s)+e,r==="Object"?3>s?"":"…":r]),3>s&&uh(t,i,s+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===dE?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}i.push([n+" ".repeat(s)+e,t])}function Mp(e,t,i,s){var n=!0;for(l in e)l in t||(i.push([tu+" ".repeat(s)+l,"…"]),n=!1);for(var r in t)if(r in e){var l=e[r],p=t[r];if(l!==p){if(s===0&&r==="children")n=" ".repeat(s)+r,i.push([tu+n,"…"],[iu+n,"…"]);else{if(!(3<=s)){if(typeof l=="object"&&typeof p=="object"&&l!==null&&p!==null&&l.$$typeof===p.$$typeof)if(p.$$typeof===Ms){if(l.type===p.type&&l.key===p.key){l=w(p.type)||"…",n=" ".repeat(s)+r,l="<"+l+" … />",i.push([tu+n,l],[iu+n,l]),n=!1;continue}}else{var x=Object.prototype.toString.call(l),R=Object.prototype.toString.call(p);if(x===R&&(R==="[object Object]"||R==="[object Array]")){x=[q_+" ".repeat(s)+r,R==="[object Array]"?"Array":""],i.push(x),R=i.length,Mp(l,p,i,s+1)?R===i.length&&(x[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof l=="function"&&typeof p=="function"&&l.name===p.name&&l.length===p.length&&(x=Function.prototype.toString.call(l),R=Function.prototype.toString.call(p),x===R)){l=p.name===""?"() => {}":p.name+"() {}",i.push([q_+" ".repeat(s)+r,l+" Referentially unequal function closure. Consider memoization."]);continue}}gs(r,l,i,s,tu),gs(r,p,i,s,iu)}n=!1}}else i.push([iu+" ".repeat(s)+r,"…"]),n=!1;return n}function rs(e){st=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function vs(e,t,i,s){wt&&(Hn.start=t,Hn.end=i,rn.color="warning",rn.tooltipText=s,rn.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,s,Hn)):performance.measure(s,Hn))}function Il(e,t,i){vs(e,t,i,"Reconnect")}function $l(e,t,i,s,n){var r=M(e);if(r!==null&&wt){var l=e.alternate,p=e.actualDuration;if(l===null||l.child!==e.child)for(var x=e.child;x!==null;x=x.sibling)p-=x.actualDuration;s=.5>p?s?"tertiary-light":"primary-light":10>p?s?"tertiary":"primary":100>p?s?"tertiary-dark":"primary-dark":"error";var R=e.memoizedProps;p=e._debugTask,R!==null&&l!==null&&l.memoizedProps!==R?(x=[fE],R=Mp(l.memoizedProps,R,x,0),1<x.length&&(R&&!Vn&&(l.lanes&n)===0&&100<e.actualDuration?(Vn=!0,x[0]=mE,rn.color="warning",rn.tooltipText=P_):(rn.color=s,rn.tooltipText=r),rn.properties=x,Hn.start=t,Hn.end=i,p!=null?p.run(performance.measure.bind(performance,""+r,Hn)):performance.measure(""+r,Hn))):p!=null?p.run(console.timeStamp.bind(console,r,t,i,Yi,void 0,s)):console.timeStamp(r,t,i,Yi,void 0,s)}}function hh(e,t,i,s){if(wt){var n=M(e);if(n!==null){for(var r=null,l=[],p=0;p<s.length;p++){var x=s[p];r==null&&x.source!==null&&(r=x.source._debugTask),x=x.value,l.push(["Error",typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x)])}e.key!==null&&gs("key",e.key,l,0,""),e.memoizedProps!==null&&uh(e.memoizedProps,l,0,""),r==null&&(r=e._debugTask),e={start:t,end:i,detail:{devtools:{color:"error",track:Yi,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:l}}},r?r.run(performance.measure.bind(performance,""+n,e)):performance.measure(""+n,e)}}}function _s(e,t,i,s,n){if(n!==null){if(wt){var r=M(e);if(r!==null){s=[];for(var l=0;l<n.length;l++){var p=n[l].value;s.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e.key!==null&&gs("key",e.key,s,0,""),e.memoizedProps!==null&&uh(e.memoizedProps,s,0,""),t={start:t,end:i,detail:{devtools:{color:"error",track:Yi,tooltipText:"A lifecycle or effect errored",properties:s}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+r,t)):performance.measure(""+r,t)}}}else r=M(e),r!==null&&wt&&(n=1>s?"secondary-light":100>s?"secondary":500>s?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,r,t,i,Yi,void 0,n)):console.timeStamp(r,t,i,Yi,void 0,n))}function Mw(e,t,i,s){if(wt&&!(t<=e)){var n=(i&738197653)===i?"tertiary-dark":"primary-dark";i=(i&536870912)===i?"Prepared":(i&201326741)===i?"Hydrated":"Render",s?s.run(console.timeStamp.bind(console,i,e,t,st,et,n)):console.timeStamp(i,e,t,st,et,n)}}function Up(e,t,i,s){!wt||t<=e||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",s?s.run(console.timeStamp.bind(console,"Prewarm",e,t,st,et,i)):console.timeStamp("Prewarm",e,t,st,et,i))}function zp(e,t,i,s){!wt||t<=e||(i=(i&738197653)===i?"tertiary-dark":"primary-dark",s?s.run(console.timeStamp.bind(console,"Suspended",e,t,st,et,i)):console.timeStamp("Suspended",e,t,st,et,i))}function Uw(e,t,i,s,n,r){if(wt&&!(t<=e)){i=[];for(var l=0;l<s.length;l++){var p=s[l].value;i.push(["Recoverable Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:st,trackGroup:et,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:i}}},r?r.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function dh(e,t,i,s){!wt||t<=e||(s?s.run(console.timeStamp.bind(console,"Errored",e,t,st,et,"error")):console.timeStamp("Errored",e,t,st,et,"error"))}function zw(e,t,i,s){!wt||t<=e||(s?s.run(console.timeStamp.bind(console,i,e,t,st,et,"secondary-light")):console.timeStamp(i,e,t,st,et,"secondary-light"))}function Lp(e,t,i,s,n){if(wt&&!(t<=e)){for(var r=[],l=0;l<i.length;l++){var p=i[l].value;r.push(["Error",typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p)])}e={start:e,end:t,detail:{devtools:{color:"error",track:st,trackGroup:et,tooltipText:s?"Remaining Effects Errored":"Commit Errored",properties:r}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function fh(e,t,i){!wt||t<=e||console.timeStamp("Animating",e,t,st,et,"secondary-dark")}function ql(){for(var e=ko,t=Hf=ko=0;t<e;){var i=Fi[t];Fi[t++]=null;var s=Fi[t];Fi[t++]=null;var n=Fi[t];Fi[t++]=null;var r=Fi[t];if(Fi[t++]=null,s!==null&&n!==null){var l=s.pending;l===null?n.next=n:(n.next=l.next,l.next=n),s.pending=n}r!==0&&jp(i,n,r)}}function Pl(e,t,i,s){Fi[ko++]=e,Fi[ko++]=t,Fi[ko++]=i,Fi[ko++]=s,Hf|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function mh(e,t,i,s){return Pl(e,t,i,s),Wl(e)}function oi(e,t){return Pl(e,null,null,t),Wl(e)}function jp(e,t,i){e.lanes|=i;var s=e.alternate;s!==null&&(s.lanes|=i);for(var n=!1,r=e.return;r!==null;)r.childLanes|=i,s=r.alternate,s!==null&&(s.childLanes|=i),r.tag===22&&(e=r.stateNode,e===null||e._visibility&Ga||(n=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,n&&t!==null&&(n=31-di(i),e=r.hiddenUpdates,s=e[n],s===null?e[n]=[t]:s.push(t),t.lane=i|536870912),r):null}function Wl(e){if(wl>RE)throw $r=wl=0,Sl=_m=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.");$r>TE&&($r=0,Sl=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&&Jg(e);for(var t=e,i=t.return;i!==null;)t.alternate===null&&(t.flags&4098)!==0&&Jg(e),t=i,i=t.return;return t.tag===3?t.stateNode:null}function fr(e){if(Gi===null)return e;var t=Gi(e);return t===void 0?e:t.current}function ph(e){if(Gi===null)return e;var t=Gi(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=fr(e.render),e.render!==t)?(t={$$typeof:La,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function Bp(e,t){if(Gi===null)return!1;var i=e.elementType;t=t.type;var s=!1,n=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(s=!0);break;case 0:(typeof t=="function"||n===zi)&&(s=!0);break;case 11:(n===La||n===zi)&&(s=!0);break;case 14:case 15:(n===$c||n===zi)&&(s=!0);break;default:return!1}return!!(s&&(e=Gi(i),e!==void 0&&e===Gi(t)))}function Vp(e){Gi!==null&&typeof WeakSet=="function"&&(Ro===null&&(Ro=new WeakSet),Ro.add(e))}function Hp(e,t,i){do{var s=e,n=s.alternate,r=s.child,l=s.sibling,p=s.tag;s=s.type;var x=null;switch(p){case 0:case 15:case 1:x=s;break;case 11:x=s.render}if(Gi===null)throw Error("Expected resolveFamily to be set during hot reload.");var R=!1;if(s=!1,x!==null&&(x=Gi(x),x!==void 0&&(i.has(x)?s=!0:t.has(x)&&(p===1?s=!0:R=!0))),Ro!==null&&(Ro.has(e)||n!==null&&Ro.has(n))&&(s=!0),s&&(e._debugNeedsRemount=!0),(s||R)&&(n=oi(e,2),n!==null&&Rt(n,e,2)),r===null||s||Hp(r,t,i),l===null)break;e=l}while(!0)}function Lw(e,t,i,s){this.tag=e,this.key=i,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=s,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,W_||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function bh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xs(e,t){var i=e.alternate;switch(i===null?(i=m(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i._debugOwner=e._debugOwner,i._debugStack=e._debugStack,i._debugTask=e._debugTask,i._debugHookTypes=e._debugHookTypes,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null,i.actualDuration=-0,i.actualStartTime=-1.1),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i.selfBaseDuration=e.selfBaseDuration,i.treeBaseDuration=e.treeBaseDuration,i._debugInfo=e._debugInfo,i._debugNeedsRemount=e._debugNeedsRemount,i.tag){case 0:case 15:i.type=fr(e.type);break;case 1:i.type=fr(e.type);break;case 11:i.type=ph(e.type)}return i}function Ip(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=i.selfBaseDuration,e.treeBaseDuration=i.treeBaseDuration),e}function gh(e,t,i,s,n,r){var l=0,p=e;if(typeof e=="function")bh(e)&&(l=1),p=fr(p);else if(typeof e=="string")l=de(),l=WS(e,i,l)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case hf:return t=m(31,i,t,n),t.elementType=hf,t.lanes=r,t;case vo:return mr(i.children,n,r,t);case Ic:l=8,n|=li,n|=cs;break;case af:return e=i,s=n,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=m(12,e,t,s|Pe),t.elementType=af,t.lanes=r,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case cf:return t=m(13,i,t,n),t.elementType=cf,t.lanes=r,t;case uf:return t=m(19,i,t,n),t.elementType=uf,t.lanes=r,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Us:l=10;break e;case lf:l=9;break e;case La:l=11,p=ph(p);break e;case $c:l=14;break e;case zi:l=16,p=null;break e}p="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" 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?i="null":Yt(e)?i="array":e!==void 0&&e.$$typeof===Ms?(i="<"+(w(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,(l=s?k(s):null)&&(p+=`
|
|
117
|
-
|
|
118
|
-
Check the render method of \``+l+"`."),l=29,i=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(i+"."+p)),p=null}return t=m(l,i,t,n),t.elementType=e,t.type=p,t.lanes=r,t._debugOwner=s,t}function Yl(e,t,i){return t=gh(e.type,e.key,e.props,e._owner,t,i),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function mr(e,t,i,s){return e=m(7,e,s,t),e.lanes=i,e}function vh(e,t,i){return e=m(6,e,null,t),e.lanes=i,e}function $p(e){var t=m(18,null,null,je);return t.stateNode=e,t}function _h(e,t,i){return t=m(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ki(e,t){if(typeof e=="object"&&e!==null){var i=If.get(e);return i!==void 0?i:(t={value:e,source:t,stack:F(t)},If.set(e,t),t)}return{value:e,source:t,stack:F(t)}}function Qs(e,t){Sn(),To[Ao++]=Xa,To[Ao++]=su,su=e,Xa=t}function qp(e,t,i){Sn(),Xi[Qi++]=an,Xi[Qi++]=ln,Xi[Qi++]=Dr,Dr=e;var s=an;e=ln;var n=32-di(s)-1;s&=~(1<<n),i+=1;var r=32-di(t)+n;if(30<r){var l=n-n%5;r=(s&(1<<l)-1).toString(32),s>>=l,n-=l,an=1<<32-di(t)+n|i<<n|s,ln=r+e}else an=1<<r|i<<n|s,ln=e}function yh(e){Sn(),e.return!==null&&(Qs(e,1),qp(e,1,0))}function wh(e){for(;e===su;)su=To[--Ao],To[Ao]=null,Xa=To[--Ao],To[Ao]=null;for(;e===Dr;)Dr=Xi[--Qi],Xi[Qi]=null,ln=Xi[--Qi],Xi[Qi]=null,an=Xi[--Qi],Xi[Qi]=null}function Pp(){return Sn(),Dr!==null?{id:an,overflow:ln}:null}function Wp(e,t){Sn(),Xi[Qi++]=an,Xi[Qi++]=ln,Xi[Qi++]=Dr,an=t.id,ln=t.overflow,Dr=e}function Sn(){Ze||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function pr(e,t){if(e.return===null){if(ji===null)ji={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(ji.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");ji.distanceFromLeaf>t&&(ji.distanceFromLeaf=t)}return ji}var i=pr(e.return,t+1).children;return 0<i.length&&i[i.length-1].fiber===e?(i=i[i.length-1],i.distanceFromLeaf>t&&(i.distanceFromLeaf=t),i):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},i.push(t),t)}function Yp(){Ze&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Fl(e,t){Hs||(e=pr(e,0),e.serverProps=null,t!==null&&(t=Nv(t),e.serverTail.push(t)))}function En(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,i="",s=ji;throw s!==null&&(ji=null,i=rh(s)),ca(ki(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:
|
|
119
|
-
|
|
120
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
121
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
122
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
123
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
124
|
-
- Invalid HTML tag nesting.
|
|
125
|
-
|
|
126
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
127
|
-
|
|
128
|
-
https://react.dev/link/hydration-mismatch`+i),e)),$f}function Fp(e){var t=e.stateNode,i=e.type,s=e.memoizedProps;switch(t[ni]=e,t[fi]=s,Id(i,s),i){case"dialog":Je("cancel",t),Je("close",t);break;case"iframe":case"object":case"embed":Je("load",t);break;case"video":case"audio":for(i=0;i<El.length;i++)Je(El[i],t);break;case"source":Je("error",t);break;case"img":case"image":case"link":Je("error",t),Je("load",t);break;case"details":Je("toggle",t);break;case"input":ui("input",s),Je("invalid",t),Jm(t,s),ep(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"option":tp(t,s);break;case"select":ui("select",s),Je("invalid",t),sp(t,s);break;case"textarea":ui("textarea",s),Je("invalid",t),np(t,s),op(t,s.value,s.defaultValue,s.children)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||s.suppressHydrationWarning===!0||uv(t.textContent,i)?(s.popover!=null&&(Je("beforetoggle",t),Je("toggle",t)),s.onScroll!=null&&Je("scroll",t),s.onScrollEnd!=null&&Je("scrollend",t),s.onClick!=null&&(t.onclick=Gs),t=!0):t=!1,t||En(e,!0)}function Gp(e){for(ri=e.return;ri;)switch(ri.tag){case 5:case 31:case 13:Ki=!1;return;case 27:case 3:Ki=!0;return;default:ri=ri.return}}function to(e){if(e!==ri)return!1;if(!Ze)return Gp(e),Ze=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Yd(e.type,e.memoizedProps)),i=!i),i&&St){for(i=St;i;){var s=pr(e,0),n=Nv(i);s.serverTail.push(n),i=n.type==="Suspense"?Qd(i):Ui(i.nextSibling)}En(e)}if(Gp(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=Qd(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=Qd(e)}else t===27?(t=St,Mn(e.type)?(e=Tm,Tm=null,St=e):St=t):St=ri?Ui(e.stateNode.nextSibling):null;return!0}function br(){St=ri=null,Hs=Ze=!1}function Sh(){var e=$n;return e!==null&&(_i===null?_i=e:_i.push.apply(_i,e),$n=null),e}function ca(e){$n===null?$n=[e]:$n.push(e)}function Eh(){var e=ji;if(e!==null){ji=null;for(var t=rh(e);0<e.children.length;)e=e.children[0];oe(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:
|
|
129
|
-
|
|
130
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
131
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
132
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
133
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
134
|
-
- Invalid HTML tag nesting.
|
|
135
|
-
|
|
136
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
137
|
-
|
|
138
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function Gl(){Mo=nu=null,Uo=!1}function Nn(e,t,i){B(qf,t._currentValue,e),t._currentValue=i,B(Pf,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==F_&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=F_}function Ks(e,t){e._currentValue=qf.current;var i=Pf.current;H(Pf,t),e._currentRenderer=i,H(qf,t)}function Nh(e,t,i){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===i)break;e=e.return}e!==i&&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 Ch(e,t,i,s){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var r=n.dependencies;if(r!==null){var l=n.child;r=r.firstContext;e:for(;r!==null;){var p=r;r=n;for(var x=0;x<t.length;x++)if(p.context===t[x]){r.lanes|=i,p=r.alternate,p!==null&&(p.lanes|=i),Nh(r.return,i,e),s||(l=null);break e}r=p.next}}else if(n.tag===18){if(l=n.return,l===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");l.lanes|=i,r=l.alternate,r!==null&&(r.lanes|=i),Nh(l,i,e),l=null}else l=n.child;if(l!==null)l.return=n;else for(l=n;l!==null;){if(l===e){l=null;break}if(n=l.sibling,n!==null){n.return=l.return,l=n;break}l=l.return}n=l}}function io(e,t,i,s){e=null;for(var n=t,r=!1;n!==null;){if(!r){if((n.flags&524288)!==0)r=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var l=n.alternate;if(l===null)throw Error("Should have a current fiber. This is a bug in React.");if(l=l.memoizedProps,l!==null){var p=n.type;pi(n.pendingProps.value,l.value)||(e!==null?e.push(p):e=[p])}}else if(n===qc.current){if(l=n.alternate,l===null)throw Error("Should have a current fiber. This is a bug in React.");l.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ol):e=[Ol])}n=n.return}e!==null&&Ch(t,e,i,s),t.flags|=262144}function Xl(e){for(e=e.firstContext;e!==null;){if(!pi(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gr(e){nu=e,Mo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xt(e){return Uo&&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()."),Xp(nu,e)}function Ql(e,t){return nu===null&&gr(e),Xp(e,t)}function Xp(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Mo===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().");Mo=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Mo=Mo.next=t;return i}function xh(){return{controller:new gE,data:new Map,refCount:0}}function vr(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 ua(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&&vE(_E,function(){e.controller.abort()})}function ys(e,t,i){(e&127)!==0?0>Is&&(Is=Vt(),Ka=ru(t),Wf=t,i!=null&&(Yf=M(i)),(at&(Gt|Hi))!==ei&&(Tt=!0,Pn=Qa),e=Ta(),t=Ra(),e!==zo||t!==Za?zo=-1.1:t!==null&&(Pn=Qa),Rr=e,Za=t):(e&4194048)!==0&&0>Zi&&(Zi=Vt(),Ja=ru(t),G_=t,i!=null&&(X_=M(i)),0>dn)&&(e=Ta(),t=Ra(),(e!==Yn||t!==Tr)&&(Yn=-1.1),Wn=e,Tr=t)}function jw(e){if(0>Is){Is=Vt(),Ka=e._debugTask!=null?e._debugTask:null,(at&(Gt|Hi))!==ei&&(Pn=Qa);var t=Ta(),i=Ra();t!==zo||i!==Za?zo=-1.1:i!==null&&(Pn=Qa),Rr=t,Za=i}0>Zi&&(Zi=Vt(),Ja=e._debugTask!=null?e._debugTask:null,0>dn)&&(e=Ta(),t=Ra(),(e!==Yn||t!==Tr)&&(Yn=-1.1),Wn=e,Tr=t)}function Zs(){var e=Or;return Or=0,e}function Kl(e){var t=Or;return Or=e,t}function ha(e){var t=Or;return Or+=e,t}function Zl(){Le=Me=-1.1}function Ri(){var e=Me;return Me=-1.1,e}function Ti(e){0<=e&&(Me=e)}function ws(){var e=Ot;return Ot=-0,e}function Ss(e){0<=e&&(Ot=e)}function Es(){var e=Dt;return Dt=null,e}function Ns(){var e=Tt;return Tt=!1,e}function Dh(e){bi=Vt(),0>e.actualStartTime&&(e.actualStartTime=bi)}function Oh(e){if(0<=bi){var t=Vt()-bi;e.actualDuration+=t,e.selfBaseDuration=t,bi=-1}}function Qp(e){if(0<=bi){var t=Vt()-bi;e.actualDuration+=t,bi=-1}}function Cs(){if(0<=bi){var e=Vt(),t=e-bi;bi=-1,Or+=t,Ot+=t,Le=e}}function Kp(e){Dt===null&&(Dt=[]),Dt.push(e),un===null&&(un=[]),un.push(e)}function xs(){bi=Vt(),0>Me&&(Me=bi)}function da(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Bw(e,t){if(tl===null){var i=tl=[];Gf=0,Ar=jd(),Lo={status:"pending",value:void 0,then:function(s){i.push(s)}}}return Gf++,t.then(Zp,Zp),t}function Zp(){if(--Gf===0&&(-1<Zi||(dn=-1.1),tl!==null)){Lo!==null&&(Lo.status="fulfilled");var e=tl;tl=null,Ar=0,Lo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vw(e,t){var i=[],s={status:"pending",value:null,reason:null,then:function(n){i.push(n)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var n=0;n<i.length;n++)(0,i[n])(t)},function(n){for(s.status="rejected",s.reason=n,n=0;n<i.length;n++)(0,i[n])(void 0)}),s}function kh(){var e=Mr.current;return e!==null?e:gt.pooledCache}function Jl(e,t){t===null?B(Mr,Mr.current,e):B(Mr,t.pool,e)}function Jp(){var e=kh();return e===null?null:{parent:Bt._currentValue,pool:e}}function eb(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function tb(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ib(e,t,i){he.actQueue!==null&&(he.didUsePromise=!0);var s=e.thenables;if(i=s[i],i===void 0?s.push(t):i!==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(Gs,Gs),t=i),t._debugInfo===void 0){e=performance.now(),s=t.displayName;var n={name:typeof s=="string"?s:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:n}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){n.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nb(e),e;default:if(typeof t.status=="string")t.then(Gs,Gs);else{if(e=gt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=r}},function(r){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nb(e),e}throw zr=t,ll=!0,jo}}function Cn(e){try{return NE(e)}catch(t){throw t!==null&&typeof t=="object"&&typeof t.then=="function"?(zr=t,ll=!0,jo):t}}function sb(){if(zr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=zr;return zr=null,ll=!1,e}function nb(e){if(e===jo||e===fu)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 ti(e){var t=We;return e!=null&&(We=t===null?e:t.concat(e)),t}function Rh(){var e=We;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var i=e[t].debugTask;if(i!=null)return i}}return null}function ec(e,t,i){for(var s=Object.keys(e.props),n=0;n<s.length;n++){var r=s[n];if(r!=="children"&&r!=="key"){t===null&&(t=Yl(e,i.mode,0),t._debugInfo=We,t.return=i),oe(t,function(l){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l)},r);break}}}function tc(e){var t=cl;return cl+=1,Bo===null&&(Bo=eb()),ib(Bo,e,t)}function fa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rb(e,t){throw t.$$typeof===i1?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
139
|
-
- Multiple copies of the "react" package is used.
|
|
140
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
141
|
-
- 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 ic(e,t){var i=Rh();i!==null?i.run(rb.bind(null,e,t)):rb(e,t)}function ob(e,t){var i=M(e)||"Component";p0[i]||(p0[i]=!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.
|
|
142
|
-
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.
|
|
143
|
-
<%s>{%s}</%s>`,t,t,i,t,i))}function sc(e,t){var i=Rh();i!==null?i.run(ob.bind(null,e,t)):ob(e,t)}function ab(e,t){var i=M(e)||"Component";b0[i]||(b0[i]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
144
|
-
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
145
|
-
<%s>%s</%s>`,i,t,i))}function nc(e,t){var i=Rh();i!==null?i.run(ab.bind(null,e,t)):ab(e,t)}function lb(e){function t(q,Y){if(e){var X=q.deletions;X===null?(q.deletions=[Y],q.flags|=16):X.push(Y)}}function i(q,Y){if(!e)return null;for(;Y!==null;)t(q,Y),Y=Y.sibling;return null}function s(q){for(var Y=new Map;q!==null;)q.key!==null?Y.set(q.key,q):Y.set(q.index,q),q=q.sibling;return Y}function n(q,Y){return q=Xs(q,Y),q.index=0,q.sibling=null,q}function r(q,Y,X){return q.index=X,e?(X=q.alternate,X!==null?(X=X.index,X<Y?(q.flags|=67108866,Y):X):(q.flags|=67108866,Y)):(q.flags|=1048576,Y)}function l(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function p(q,Y,X,fe){return Y===null||Y.tag!==6?(Y=vh(X,q.mode,fe),Y.return=q,Y._debugOwner=q,Y._debugTask=q._debugTask,Y._debugInfo=We,Y):(Y=n(Y,X),Y.return=q,Y._debugInfo=We,Y)}function x(q,Y,X,fe){var Ee=X.type;return Ee===vo?(Y=Q(q,Y,X.props.children,fe,X.key),ec(X,Y,q),Y):Y!==null&&(Y.elementType===Ee||Bp(Y,X)||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===zi&&Cn(Ee)===Y.type)?(Y=n(Y,X.props),fa(Y,X),Y.return=q,Y._debugOwner=X._owner,Y._debugInfo=We,Y):(Y=Yl(X,q.mode,fe),fa(Y,X),Y.return=q,Y._debugInfo=We,Y)}function R(q,Y,X,fe){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==X.containerInfo||Y.stateNode.implementation!==X.implementation?(Y=_h(X,q.mode,fe),Y.return=q,Y._debugInfo=We,Y):(Y=n(Y,X.children||[]),Y.return=q,Y._debugInfo=We,Y)}function Q(q,Y,X,fe,Ee){return Y===null||Y.tag!==7?(Y=mr(X,q.mode,fe,Ee),Y.return=q,Y._debugOwner=q,Y._debugTask=q._debugTask,Y._debugInfo=We,Y):(Y=n(Y,X),Y.return=q,Y._debugInfo=We,Y)}function K(q,Y,X){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=vh(""+Y,q.mode,X),Y.return=q,Y._debugOwner=q,Y._debugTask=q._debugTask,Y._debugInfo=We,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Ms:return X=Yl(Y,q.mode,X),fa(X,Y),X.return=q,q=ti(Y._debugInfo),X._debugInfo=We,We=q,X;case go:return Y=_h(Y,q.mode,X),Y.return=q,Y._debugInfo=We,Y;case zi:var fe=ti(Y._debugInfo);return Y=Cn(Y),q=K(q,Y,X),We=fe,q}if(Yt(Y)||D(Y))return X=mr(Y,q.mode,X,null),X.return=q,X._debugOwner=q,X._debugTask=q._debugTask,q=ti(Y._debugInfo),X._debugInfo=We,We=q,X;if(typeof Y.then=="function")return fe=ti(Y._debugInfo),q=K(q,tc(Y),X),We=fe,q;if(Y.$$typeof===Us)return K(q,Ql(q,Y),X);ic(q,Y)}return typeof Y=="function"&&sc(q,Y),typeof Y=="symbol"&&nc(q,Y),null}function P(q,Y,X,fe){var Ee=Y!==null?Y.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Ee!==null?null:p(q,Y,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case Ms:return X.key===Ee?(Ee=ti(X._debugInfo),q=x(q,Y,X,fe),We=Ee,q):null;case go:return X.key===Ee?R(q,Y,X,fe):null;case zi:return Ee=ti(X._debugInfo),X=Cn(X),q=P(q,Y,X,fe),We=Ee,q}if(Yt(X)||D(X))return Ee!==null?null:(Ee=ti(X._debugInfo),q=Q(q,Y,X,fe,null),We=Ee,q);if(typeof X.then=="function")return Ee=ti(X._debugInfo),q=P(q,Y,tc(X),fe),We=Ee,q;if(X.$$typeof===Us)return P(q,Y,Ql(q,X),fe);ic(q,X)}return typeof X=="function"&&sc(q,X),typeof X=="symbol"&&nc(q,X),null}function re(q,Y,X,fe,Ee){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return q=q.get(X)||null,p(Y,q,""+fe,Ee);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case Ms:return X=q.get(fe.key===null?X:fe.key)||null,q=ti(fe._debugInfo),Y=x(Y,X,fe,Ee),We=q,Y;case go:return q=q.get(fe.key===null?X:fe.key)||null,R(Y,q,fe,Ee);case zi:var Ve=ti(fe._debugInfo);return fe=Cn(fe),Y=re(q,Y,X,fe,Ee),We=Ve,Y}if(Yt(fe)||D(fe))return X=q.get(X)||null,q=ti(fe._debugInfo),Y=Q(Y,X,fe,Ee,null),We=q,Y;if(typeof fe.then=="function")return Ve=ti(fe._debugInfo),Y=re(q,Y,X,tc(fe),Ee),We=Ve,Y;if(fe.$$typeof===Us)return re(q,Y,X,Ql(Y,fe),Ee);ic(Y,fe)}return typeof fe=="function"&&sc(Y,fe),typeof fe=="symbol"&&nc(Y,fe),null}function Se(q,Y,X,fe){if(typeof X!="object"||X===null)return fe;switch(X.$$typeof){case Ms:case go:S(q,Y,X);var Ee=X.key;if(typeof Ee!="string")break;if(fe===null){fe=new Set,fe.add(Ee);break}if(!fe.has(Ee)){fe.add(Ee);break}oe(Y,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.",Ee)});break;case zi:X=Cn(X),Se(q,Y,X,fe)}return fe}function Ne(q,Y,X,fe){for(var Ee=null,Ve=null,Ae=null,ke=Y,qe=Y=0,Et=null;ke!==null&&qe<X.length;qe++){ke.index>qe?(Et=ke,ke=null):Et=ke.sibling;var Lt=P(q,ke,X[qe],fe);if(Lt===null){ke===null&&(ke=Et);break}Ee=Se(q,Lt,X[qe],Ee),e&&ke&&Lt.alternate===null&&t(q,ke),Y=r(Lt,Y,qe),Ae===null?Ve=Lt:Ae.sibling=Lt,Ae=Lt,ke=Et}if(qe===X.length)return i(q,ke),Ze&&Qs(q,qe),Ve;if(ke===null){for(;qe<X.length;qe++)ke=K(q,X[qe],fe),ke!==null&&(Ee=Se(q,ke,X[qe],Ee),Y=r(ke,Y,qe),Ae===null?Ve=ke:Ae.sibling=ke,Ae=ke);return Ze&&Qs(q,qe),Ve}for(ke=s(ke);qe<X.length;qe++)Et=re(ke,q,qe,X[qe],fe),Et!==null&&(Ee=Se(q,Et,X[qe],Ee),e&&Et.alternate!==null&&ke.delete(Et.key===null?qe:Et.key),Y=r(Et,Y,qe),Ae===null?Ve=Et:Ae.sibling=Et,Ae=Et);return e&&ke.forEach(function(yn){return t(q,yn)}),Ze&&Qs(q,qe),Ve}function _t(q,Y,X,fe){if(X==null)throw Error("An iterable object provided no iterator.");for(var Ee=null,Ve=null,Ae=Y,ke=Y=0,qe=null,Et=null,Lt=X.next();Ae!==null&&!Lt.done;ke++,Lt=X.next()){Ae.index>ke?(qe=Ae,Ae=null):qe=Ae.sibling;var yn=P(q,Ae,Lt.value,fe);if(yn===null){Ae===null&&(Ae=qe);break}Et=Se(q,yn,Lt.value,Et),e&&Ae&&yn.alternate===null&&t(q,Ae),Y=r(yn,Y,ke),Ve===null?Ee=yn:Ve.sibling=yn,Ve=yn,Ae=qe}if(Lt.done)return i(q,Ae),Ze&&Qs(q,ke),Ee;if(Ae===null){for(;!Lt.done;ke++,Lt=X.next())Ae=K(q,Lt.value,fe),Ae!==null&&(Et=Se(q,Ae,Lt.value,Et),Y=r(Ae,Y,ke),Ve===null?Ee=Ae:Ve.sibling=Ae,Ve=Ae);return Ze&&Qs(q,ke),Ee}for(Ae=s(Ae);!Lt.done;ke++,Lt=X.next())qe=re(Ae,q,ke,Lt.value,fe),qe!==null&&(Et=Se(q,qe,Lt.value,Et),e&&qe.alternate!==null&&Ae.delete(qe.key===null?ke:qe.key),Y=r(qe,Y,ke),Ve===null?Ee=qe:Ve.sibling=qe,Ve=qe);return e&&Ae.forEach(function(GE){return t(q,GE)}),Ze&&Qs(q,ke),Ee}function tt(q,Y,X,fe){if(typeof X=="object"&&X!==null&&X.type===vo&&X.key===null&&(ec(X,null,q),X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case Ms:var Ee=ti(X._debugInfo);e:{for(var Ve=X.key;Y!==null;){if(Y.key===Ve){if(Ve=X.type,Ve===vo){if(Y.tag===7){i(q,Y.sibling),fe=n(Y,X.props.children),fe.return=q,fe._debugOwner=X._owner,fe._debugInfo=We,ec(X,fe,q),q=fe;break e}}else if(Y.elementType===Ve||Bp(Y,X)||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===zi&&Cn(Ve)===Y.type){i(q,Y.sibling),fe=n(Y,X.props),fa(fe,X),fe.return=q,fe._debugOwner=X._owner,fe._debugInfo=We,q=fe;break e}i(q,Y);break}else t(q,Y);Y=Y.sibling}X.type===vo?(fe=mr(X.props.children,q.mode,fe,X.key),fe.return=q,fe._debugOwner=q,fe._debugTask=q._debugTask,fe._debugInfo=We,ec(X,fe,q),q=fe):(fe=Yl(X,q.mode,fe),fa(fe,X),fe.return=q,fe._debugInfo=We,q=fe)}return q=l(q),We=Ee,q;case go:e:{for(Ee=X,X=Ee.key;Y!==null;){if(Y.key===X)if(Y.tag===4&&Y.stateNode.containerInfo===Ee.containerInfo&&Y.stateNode.implementation===Ee.implementation){i(q,Y.sibling),fe=n(Y,Ee.children||[]),fe.return=q,q=fe;break e}else{i(q,Y);break}else t(q,Y);Y=Y.sibling}fe=_h(Ee,q.mode,fe),fe.return=q,q=fe}return l(q);case zi:return Ee=ti(X._debugInfo),X=Cn(X),q=tt(q,Y,X,fe),We=Ee,q}if(Yt(X))return Ee=ti(X._debugInfo),q=Ne(q,Y,X,fe),We=Ee,q;if(D(X)){if(Ee=ti(X._debugInfo),Ve=D(X),typeof Ve!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ae=Ve.call(X);return Ae===X?(q.tag!==0||Object.prototype.toString.call(q.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ae)!=="[object Generator]")&&(f0||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."),f0=!0):X.entries!==Ve||Zf||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Zf=!0),q=_t(q,Y,Ae,fe),We=Ee,q}if(typeof X.then=="function")return Ee=ti(X._debugInfo),q=tt(q,Y,tc(X),fe),We=Ee,q;if(X.$$typeof===Us)return tt(q,Y,Ql(q,X),fe);ic(q,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(Ee=""+X,Y!==null&&Y.tag===6?(i(q,Y.sibling),fe=n(Y,Ee),fe.return=q,q=fe):(i(q,Y),fe=vh(Ee,q.mode,fe),fe.return=q,fe._debugOwner=q,fe._debugTask=q._debugTask,fe._debugInfo=We,q=fe),l(q)):(typeof X=="function"&&sc(q,X),typeof X=="symbol"&&nc(q,X),i(q,Y))}return function(q,Y,X,fe){var Ee=We;We=null;try{cl=0;var Ve=tt(q,Y,X,fe);return Bo=null,Ve}catch(Et){if(Et===jo||Et===fu)throw Et;var Ae=m(29,Et,null,q.mode);Ae.lanes=fe,Ae.return=q;var ke=Ae._debugInfo=We;if(Ae._debugOwner=q._debugOwner,Ae._debugTask=q._debugTask,ke!=null){for(var qe=ke.length-1;0<=qe;qe--)if(typeof ke[qe].stack=="string"){Ae._debugOwner=ke[qe],Ae._debugTask=ke[qe].debugTask;break}}return Ae}finally{We=Ee}}}function cb(e,t){var i=Yt(e);return e=!i&&typeof D(e)=="function",i||e?(i=i?"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>",i,t,i),!1):!0}function Th(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ah(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 xn(e){return{lane:e,tag:v0,payload:null,callback:null,next:null}}function Dn(e,t,i){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,em===s&&!w0){var n=M(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.
|
|
146
|
-
|
|
147
|
-
Please update the following component: %s`,n),w0=!0}return(at&Gt)!==ei?(n=s.pending,n===null?t.next=t:(t.next=n.next,n.next=t),s.pending=t,t=Wl(e),jp(e,null,i),t):(Pl(e,s,t,i),Wl(e))}function ma(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,At(e,i)}}function rc(e,t){var i=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var n=null,r=null;if(i=i.firstBaseUpdate,i!==null){do{var l={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};r===null?n=r=l:r=r.next=l,i=i.next}while(i!==null);r===null?n=r=t:r=r.next=t}else n=r=t;i={baseState:s.baseState,firstBaseUpdate:n,lastBaseUpdate:r,shared:s.shared,callbacks:s.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function pa(){if(tm){var e=Lo;if(e!==null)throw e}}function ba(e,t,i,s){tm=!1;var n=e.updateQueue;Fn=!1,em=n.shared;var r=n.firstBaseUpdate,l=n.lastBaseUpdate,p=n.shared.pending;if(p!==null){n.shared.pending=null;var x=p,R=x.next;x.next=null,l===null?r=R:l.next=R,l=x;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,p=Q.lastBaseUpdate,p!==l&&(p===null?Q.firstBaseUpdate=R:p.next=R,Q.lastBaseUpdate=x))}if(r!==null){var K=n.baseState;l=0,Q=R=x=null,p=r;do{var P=p.lane&-536870913,re=P!==p.lane;if(re?(Ye&P)===P:(s&P)===P){P!==0&&P===Ar&&(tm=!0),Q!==null&&(Q=Q.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{P=e;var Se=p,Ne=t,_t=i;switch(Se.tag){case _0:if(Se=Se.payload,typeof Se=="function"){Uo=!0;var tt=Se.call(_t,K,Ne);if(P.mode&li){xe(!0);try{Se.call(_t,K,Ne)}finally{xe(!1)}}Uo=!1,K=tt;break e}K=Se;break e;case Jf:P.flags=P.flags&-65537|128;case v0:if(tt=Se.payload,typeof tt=="function"){if(Uo=!0,Se=tt.call(_t,K,Ne),P.mode&li){xe(!0);try{tt.call(_t,K,Ne)}finally{xe(!1)}}Uo=!1}else Se=tt;if(Se==null)break e;K=Ke({},K,Se);break e;case y0:Fn=!0}}P=p.callback,P!==null&&(e.flags|=64,re&&(e.flags|=8192),re=n.callbacks,re===null?n.callbacks=[P]:re.push(P))}else re={lane:P,tag:p.tag,payload:p.payload,callback:p.callback,next:null},Q===null?(R=Q=re,x=K):Q=Q.next=re,l|=P;if(p=p.next,p===null){if(p=n.shared.pending,p===null)break;re=p,p=re.next,re.next=null,n.lastBaseUpdate=re,n.shared.pending=null}}while(!0);Q===null&&(x=K),n.baseState=x,n.firstBaseUpdate=R,n.lastBaseUpdate=Q,r===null&&(n.shared.lanes=0),Qn|=l,e.lanes=l,e.memoizedState=K}em=null}function ub(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 i=e.shared.hiddenCallbacks;if(i!==null)for(e.shared.hiddenCallbacks=null,e=0;e<i.length;e++)ub(i[e],t)}function hb(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)ub(i[e],t)}function db(e,t){var i=qs;B(pu,i,e),B(Vo,t,e),qs=i|t.baseLanes}function Mh(e){B(pu,qs,e),B(Vo,Vo.current,e)}function Uh(e){qs=pu.current,H(Vo,e),H(pu,e)}function On(e){var t=e.alternate;B(zt,zt.current&Ho,e),B(Bi,e,e),Ji===null&&(t===null||Vo.current!==null||t.memoizedState!==null)&&(Ji=e)}function zh(e){B(zt,zt.current,e),B(Bi,e,e),Ji===null&&(Ji=e)}function fb(e){e.tag===22?(B(zt,zt.current,e),B(Bi,e,e),Ji===null&&(Ji=e)):kn(e)}function kn(e){B(zt,zt.current,e),B(Bi,Bi.current,e)}function Ai(e){H(Bi,e),Ji===e&&(Ji=null),H(zt,e)}function oc(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Gd(i)||Xd(i)))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 Qe(){var e=ce;ts===null?ts=[e]:ts.push(e)}function ve(){var e=ce;if(ts!==null&&(pn++,ts[pn]!==e)){var t=M(Be);if(!S0.has(t)&&(S0.add(t),ts!==null)){for(var i="",s=0;s<=pn;s++){var n=ts[s],r=s===pn?e:n;for(n=s+1+". "+n;30>n.length;)n+=" ";n+=r+`
|
|
148
|
-
`,i+=n}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
149
|
-
|
|
150
|
-
Previous render Next render
|
|
151
|
-
------------------------------------------------------
|
|
152
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
153
|
-
`,t,i)}}}function so(e){e==null||Yt(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.",ce,typeof e)}function ac(){var e=M(Be);N0.has(e)||(N0.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Mt(){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:
|
|
154
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
155
|
-
2. You might be breaking the Rules of Hooks
|
|
156
|
-
3. You might have more than one copy of React in the same app
|
|
157
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Lh(e,t){if(dl)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.",ce),!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.
|
|
158
|
-
|
|
159
|
-
Previous: %s
|
|
160
|
-
Incoming: %s`,ce,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var i=0;i<t.length&&i<e.length;i++)if(!pi(e[i],t[i]))return!1;return!0}function jh(e,t,i,s,n,r){fn=r,Be=t,ts=e!==null?e._debugHookTypes:null,pn=-1,dl=e!==null&&e.type!==t.type,(Object.prototype.toString.call(i)==="[object AsyncFunction]"||Object.prototype.toString.call(i)==="[object AsyncGeneratorFunction]")&&(r=M(Be),im.has(r)||(im.add(r),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",r===null?"An unknown Component":"<"+r+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e!==null&&e.memoizedState!==null?nm:ts!==null?C0:sm,jr=r=(t.mode&li)!==je;var l=Xf(i,s,n);if(jr=!1,$o&&(l=Bh(t,i,s,n)),r){xe(!0);try{l=Bh(t,i,s,n)}finally{xe(!1)}}return mb(e,t),l}function mb(e,t){t._debugHookTypes=ts,t.dependencies===null?mn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:mn}):t.dependencies._debugThenableState=mn,he.H=fl;var i=bt!==null&&bt.next!==null;if(fn=0,ts=ce=Ht=bt=Be=null,pn=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),gu=!1,hl=0,mn=null,i)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||It||(e=e.dependencies,e!==null&&Xl(e)&&(It=!0)),ll?(ll=!1,e=!0):e=!1,e&&(t=M(t)||"Unknown",E0.has(t)||im.has(t)||(E0.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 Bh(e,t,i,s){Be=e;var n=0;do{if($o&&(mn=null),hl=0,$o=!1,n>=xE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,dl=!1,Ht=bt=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}pn=-1,he.H=x0,r=Xf(t,i,s)}while($o);return r}function Iw(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?ga(t):t,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(Be.flags|=1024),t}function Vh(){var e=vu!==0;return vu=0,e}function Hh(e,t,i){t.updateQueue=e.updateQueue,t.flags=(t.mode&cs)!==je?t.flags&-402655237:t.flags&-2053,e.lanes&=~i}function Ih(e){if(gu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gu=!1}fn=0,ts=Ht=bt=Be=null,pn=-1,ce=null,$o=!1,hl=vu=0,mn=null}function hi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ht===null?Be.memoizedState=Ht=e:Ht=Ht.next=e,Ht}function ft(){if(bt===null){var e=Be.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var t=Ht===null?Be.memoizedState:Ht.next;if(t!==null)Ht=t,bt=e;else{if(e===null)throw Be.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.");bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Ht===null?Be.memoizedState=Ht=e:Ht=Ht.next=e}return Ht}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ga(e){var t=hl;return hl+=1,mn===null&&(mn=eb()),e=ib(mn,e,t),t=Be,(Ht===null?t.memoizedState:Ht.next)===null&&(t=t.alternate,he.H=t!==null&&t.memoizedState!==null?nm:sm),e}function Rn(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ga(e);if(e.$$typeof===Us)return xt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function _r(e){var t=null,i=Be.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var s=Be.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=lc(),Be.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0||dl)for(i=t.data[t.index]=Array(e),s=0;s<e;s++)i[s]=s1;else i.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.",i.length,e);return t.index++,i}function os(e,t){return typeof t=="function"?t(e):t}function $h(e,t,i){var s=hi();if(i!==void 0){var n=i(t);if(jr){xe(!0);try{i(t)}finally{xe(!1)}}}else n=t;return s.memoizedState=s.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=Yw.bind(null,Be,e),[s.memoizedState,e]}function no(e){var t=ft();return qh(t,bt,e)}function qh(e,t,i){var s=e.queue;if(s===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");s.lastRenderedReducer=i;var n=e.baseQueue,r=s.pending;if(r!==null){if(n!==null){var l=n.next;n.next=r.next,r.next=l}t.baseQueue!==n&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=n=r,s.pending=null}if(r=e.baseState,n===null)e.memoizedState=r;else{t=n.next;var p=l=null,x=null,R=t,Q=!1;do{var K=R.lane&-536870913;if(K!==R.lane?(Ye&K)===K:(fn&K)===K){var P=R.revertLane;if(P===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),K===Ar&&(Q=!0);else if((fn&P)===P){R=R.next,P===Ar&&(Q=!0);continue}else K={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},x===null?(p=x=K,l=r):x=x.next=K,Be.lanes|=P,Qn|=P;K=R.action,jr&&i(r,K),r=R.hasEagerState?R.eagerState:i(r,K)}else P={lane:K,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},x===null?(p=x=P,l=r):x=x.next=P,Be.lanes|=K,Qn|=K;R=R.next}while(R!==null&&R!==t);if(x===null?l=r:x.next=p,!pi(r,e.memoizedState)&&(It=!0,Q&&(i=Lo,i!==null)))throw i;e.memoizedState=r,e.baseState=l,e.baseQueue=x,s.lastRenderedState=r}return n===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function va(e){var t=ft(),i=t.queue;if(i===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");i.lastRenderedReducer=e;var s=i.dispatch,n=i.pending,r=t.memoizedState;if(n!==null){i.pending=null;var l=n=n.next;do r=e(r,l.action),l=l.next;while(l!==n);pi(r,t.memoizedState)||(It=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),i.lastRenderedState=r}return[r,s]}function Ph(e,t,i){var s=Be,n=hi();if(Ze){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=i();Io||r===i()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Io=!0)}else{if(r=t(),Io||(i=t(),pi(r,i)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Io=!0)),gt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ye&127)!==0||pb(s,t,r)}return n.memoizedState=r,i={value:r,getSnapshot:t},n.queue=i,dc(gb.bind(null,s,i,e),[e]),s.flags|=2048,oo(es|vi,{destroy:void 0},bb.bind(null,s,i,r,t),null),r}function cc(e,t,i){var s=Be,n=ft(),r=Ze;if(r){if(i===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=i()}else if(i=t(),!Io){var l=t();pi(i,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Io=!0)}(l=!pi((bt||n).memoizedState,i))&&(n.memoizedState=i,It=!0),n=n.queue;var p=gb.bind(null,s,n,e);if(wi(2048,vi,p,[e]),n.getSnapshot!==t||l||Ht!==null&&Ht.memoizedState.tag&es){if(s.flags|=2048,oo(es|vi,{destroy:void 0},bb.bind(null,s,n,i,t),null),gt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(fn&127)!==0||pb(s,t,i)}return i}function pb(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Be.updateQueue,t===null?(t=lc(),Be.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function bb(e,t,i,s){t.value=i,t.getSnapshot=s,vb(t)&&_b(e)}function gb(e,t,i){return i(function(){vb(t)&&(ys(2,"updateSyncExternalStore()",e),_b(e))})}function vb(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!pi(e,i)}catch{return!0}}function _b(e){var t=oi(e,2);t!==null&&Rt(t,e,2)}function Wh(e){var t=hi();if(typeof e=="function"){var i=e;if(e=i(),jr){xe(!0);try{i()}finally{xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:e},t}function Yh(e){e=Wh(e);var t=e.queue,i=Bb.bind(null,Be,t);return t.dispatch=i,[e.memoizedState,i]}function Fh(e){var t=hi();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=ad.bind(null,Be,!0,i),i.dispatch=t,[e,t]}function yb(e,t){var i=ft();return wb(i,bt,e,t)}function wb(e,t,i,s){return e.baseState=i,qh(e,bt,typeof s=="function"?s:os)}function Sb(e,t){var i=ft();return bt!==null?wb(i,bt,e,t):(i.baseState=e,[e,i.queue.dispatch])}function $w(e,t,i,s,n){if(vc(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var r={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){r.listeners.push(l)}};he.T!==null?i(!0):r.isTransition=!1,s(r),i=t.pending,i===null?(r.next=t.pending=r,Eb(t,r)):(r.next=i.next,t.pending=i.next=r)}}function Eb(e,t){var i=t.action,s=t.payload,n=e.state;if(t.isTransition){var r=he.T,l={};l._updatedFibers=new Set,he.T=l;try{var p=i(n,s),x=he.S;x!==null&&x(l,p),Nb(e,t,p)}catch(R){Gh(e,t,R)}finally{r!==null&&l.types!==null&&(r.types!==null&&r.types!==l.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=l.types),he.T=r,r===null&&l._updatedFibers&&(e=l._updatedFibers.size,l._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{l=i(n,s),Nb(e,t,l)}catch(R){Gh(e,t,R)}}function Nb(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?(he.asyncTransitions++,i.then(gc,gc),i.then(function(s){Cb(e,t,s)},function(s){return Gh(e,t,s)}),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.")):Cb(e,t,i)}function Cb(e,t,i){t.status="fulfilled",t.value=i,xb(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Eb(e,i)))}function Gh(e,t,i){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=i,xb(t),t=t.next;while(t!==s)}e.action=null}function xb(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Db(e,t){return t}function ro(e,t){if(Ze){var i=gt.formState;if(i!==null){e:{var s=Be;if(Ze){if(St){t:{for(var n=St,r=Ki;n.nodeType!==8;){if(!r){n=null;break t}if(n=Ui(n.nextSibling),n===null){n=null;break t}}r=n.data,n=r===Dm||r===hy?n:null}if(n){St=Ui(n.nextSibling),s=n.data===Dm;break e}}En(s)}s=!1}s&&(t=i[0])}}return i=hi(),i.memoizedState=i.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Db,lastRenderedState:t},i.queue=s,i=Bb.bind(null,Be,s),s.dispatch=i,s=Wh(!1),r=ad.bind(null,Be,!1,s.queue),s=hi(),n={state:t,dispatch:null,action:e,pending:null},s.queue=n,i=$w.bind(null,Be,n,r,i),n.dispatch=i,s.memoizedState=e,[t,i,!1]}function uc(e){var t=ft();return Ob(t,bt,e)}function Ob(e,t,i){if(t=qh(e,t,Db)[0],e=no(os)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ga(t)}catch(l){throw l===jo?fu:l}else s=t;t=ft();var n=t.queue,r=n.dispatch;return i!==t.memoizedState&&(Be.flags|=2048,oo(es|vi,{destroy:void 0},qw.bind(null,n,i),null)),[s,r,e]}function qw(e,t){e.action=t}function hc(e){var t=ft(),i=bt;if(i!==null)return Ob(t,i,e);ft(),t=t.memoizedState,i=ft();var s=i.queue.dispatch;return i.memoizedState=e,[t,s,!1]}function oo(e,t,i,s){return e={tag:e,create:i,deps:s,inst:t,next:null},t=Be.updateQueue,t===null&&(t=lc(),Be.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(s=i.next,i.next=e,e.next=s,t.lastEffect=e),e}function Xh(e){var t=hi();return e={current:e},t.memoizedState=e}function yr(e,t,i,s){var n=hi();Be.flags|=e,n.memoizedState=oo(es|t,{destroy:void 0},i,s===void 0?null:s)}function wi(e,t,i,s){var n=ft();s=s===void 0?null:s;var r=n.memoizedState.inst;bt!==null&&s!==null&&Lh(s,bt.memoizedState.deps)?n.memoizedState=oo(t,r,i,s):(Be.flags|=e,n.memoizedState=oo(es|t,r,i,s))}function dc(e,t){(Be.mode&cs)!==je?yr(276826112,vi,e,t):yr(8390656,vi,e,t)}function Pw(e){Be.flags|=4;var t=Be.updateQueue;if(t===null)t=lc(),Be.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Qh(e){var t=hi(),i={impl:e};return t.memoizedState=i,function(){if((at&Gt)!==ei)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function fc(e){var t=ft().memoizedState;return Pw({ref:t,nextImpl:e}),function(){if((at&Gt)!==ei)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Kh(e,t){var i=4194308;return(Be.mode&cs)!==je&&(i|=134217728),yr(i,Vi,e,t)}function kb(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():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 Zh(e,t,i){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"),i=i!=null?i.concat([e]):null;var s=4194308;(Be.mode&cs)!==je&&(s|=134217728),yr(s,Vi,kb.bind(null,t,e),i)}function mc(e,t,i){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"),i=i!=null?i.concat([e]):null,wi(4,Vi,kb.bind(null,t,e),i)}function Jh(e,t){return hi().memoizedState=[e,t===void 0?null:t],e}function pc(e,t){var i=ft();t=t===void 0?null:t;var s=i.memoizedState;return t!==null&&Lh(t,s[1])?s[0]:(i.memoizedState=[e,t],e)}function ed(e,t){var i=hi();t=t===void 0?null:t;var s=e();if(jr){xe(!0);try{e()}finally{xe(!1)}}return i.memoizedState=[s,t],s}function bc(e,t){var i=ft();t=t===void 0?null:t;var s=i.memoizedState;if(t!==null&&Lh(t,s[1]))return s[0];if(s=e(),jr){xe(!0);try{e()}finally{xe(!1)}}return i.memoizedState=[s,t],s}function td(e,t){var i=hi();return id(i,e,t)}function Rb(e,t){var i=ft();return Ab(i,bt.memoizedState,e,t)}function Tb(e,t){var i=ft();return bt===null?id(i,e,t):Ab(i,bt.memoizedState,e,t)}function id(e,t,i){return i===void 0||(fn&1073741824)!==0&&(Ye&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Mg(),Be.lanes|=e,Qn|=e,i)}function Ab(e,t,i,s){return pi(i,t)?i:Vo.current!==null?(e=id(e,i,s),pi(e,t)||(It=!0),e):(fn&42)===0||(fn&1073741824)!==0&&(Ye&261930)===0?(It=!0,e.memoizedState=i):(e=Mg(),Be.lanes|=e,Qn|=e,t)}function gc(){he.asyncTransitions--}function Mb(e,t,i,s,n){var r=ht.p;ht.p=r!==0&&r<Bs?r:Bs;var l=he.T,p={};p._updatedFibers=new Set,he.T=p,ad(e,!1,t,i);try{var x=n(),R=he.S;if(R!==null&&R(p,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){he.asyncTransitions++,x.then(gc,gc);var Q=Vw(x,s);_a(e,t,Q,Mi(e))}else _a(e,t,s,Mi(e))}catch(K){_a(e,t,{then:function(){},status:"rejected",reason:K},Mi(e))}finally{ht.p=r,l!==null&&p.types!==null&&(l.types!==null&&l.types!==p.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=p.types),he.T=l,l===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._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 sd(e,t,i,s){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var n=Ub(e).queue;jw(e),Mb(e,n,t,Gr,i===null?_:function(){return zb(e),i(s)})}function Ub(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Gr,baseState:Gr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:Gr},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zb(e){he.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Ub(e);t.next===null&&(t=e.alternate.memoizedState),_a(e,t.next.queue,{},Mi(e))}function nd(){var e=Wh(!1);return e=Mb.bind(null,Be,e.queue,!0,!1),hi().memoizedState=e,[!1,e]}function Lb(){var e=no(os)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:ga(e),t]}function jb(){var e=va(os)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:ga(e),t]}function wr(){return xt(Ol)}function rd(){var e=hi(),t=gt.identifierPrefix;if(Ze){var i=ln,s=an;i=(s&~(1<<32-di(s)-1)).toString(32)+i,t="_"+t+"R_"+i,i=vu++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=CE++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t}function od(){return hi().memoizedState=Ww.bind(null,Be)}function Ww(e,t){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var s=Mi(i),n=xn(s),r=Dn(i,n,s);r!==null&&(ys(s,"refresh()",e),Rt(r,i,s),ma(r,i,s)),e=xh(),t!=null&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}i=i.return}}function Yw(e,t,i){var s=arguments;typeof s[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()."),s=Mi(e);var n={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};vc(e)?Vb(t,n):(n=mh(e,t,n,s),n!==null&&(ys(s,"dispatch()",e),Rt(n,e,s),Hb(n,t,s)))}function Bb(e,t,i){var s=arguments;typeof s[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()."),s=Mi(e),_a(e,t,i,s)&&ys(s,"setState()",e)}function _a(e,t,i,s){var n={lane:s,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(vc(e))Vb(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null)){var l=he.H;he.H=hs;try{var p=t.lastRenderedState,x=r(p,i);if(n.hasEagerState=!0,n.eagerState=x,pi(x,p))return Pl(e,t,n,0),gt===null&&ql(),!1}catch{}finally{he.H=l}}if(i=mh(e,t,n,s),i!==null)return Rt(i,e,s),Hb(i,t,s),!0}return!1}function ad(e,t,i,s){if(he.T===null&&Ar===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."),s={lane:2,revertLane:jd(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},vc(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=mh(e,i,s,2),t!==null&&(ys(2,"setOptimistic()",e),Rt(t,e,2))}function vc(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Vb(e,t){$o=gu=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Hb(e,t,i){if((i&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,i|=s,t.lanes=i,At(e,i)}}function ld(e){if(e!==null&&typeof e!="function"){var t=String(e);j0.has(t)||(j0.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function cd(e,t,i,s){var n=e.memoizedState,r=i(s,n);if(e.mode&li){xe(!0);try{r=i(s,n)}finally{xe(!1)}}r===void 0&&(t=w(t)||"Component",M0.has(t)||(M0.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=r==null?n:Ke({},n,r),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function Ib(e,t,i,s,n,r,l){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(i=p.shouldComponentUpdate(s,r,l),e.mode&li){xe(!0);try{i=p.shouldComponentUpdate(s,r,l)}finally{xe(!1)}}return i===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",w(t)||"Component"),i}return t.prototype&&t.prototype.isPureReactComponent?!la(i,s)||!la(n,r):!0}function $b(e,t,i,s){var n=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,s),t.state!==n&&(e=M(e)||"Component",O0.has(e)||(O0.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),rm.enqueueReplaceState(t,t.state,null))}function Sr(e,t){var i=t;if("ref"in t){i={};for(var s in t)s!=="ref"&&(i[s]=t[s])}if(e=e.defaultProps){i===t&&(i=Ke({},i));for(var n in e)i[n]===void 0&&(i[n]=e[n])}return i}function qb(e){Lf(e),console.warn(`%s
|
|
161
|
-
|
|
162
|
-
%s
|
|
163
|
-
`,qo?"An error occurred in the <"+qo+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
164
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Pb(e){var t=qo?"The above error occurred in the <"+qo+"> component.":"The above error occurred in one of your React components.",i="React will try to recreate this component tree from scratch using the error boundary you provided, "+((om||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var s=e.environmentName;e=[`%o
|
|
165
|
-
|
|
166
|
-
%s
|
|
167
|
-
|
|
168
|
-
%s
|
|
169
|
-
`,e,t,i].slice(0),typeof e[0]=="string"?e.splice(0,1,_y+" "+e[0],yy,qu+s+qu,wy):e.splice(0,0,_y,yy,qu+s+qu,wy),e.unshift(console),s=YE.apply(console.error,e),s()}else console.error(`%o
|
|
170
|
-
|
|
171
|
-
%s
|
|
172
|
-
|
|
173
|
-
%s
|
|
174
|
-
`,e,t,i)}function Wb(e){Lf(e)}function _c(e,t){try{qo=t.source?M(t.source):null,om=null;var i=t.value;if(he.actQueue!==null)he.thrownErrors.push(i);else{var s=e.onUncaughtError;s(i,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function Yb(e,t,i){try{qo=i.source?M(i.source):null,om=M(t);var s=e.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ud(e,t,i){return i=xn(i),i.tag=Jf,i.payload={element:null},i.callback=function(){oe(t.source,_c,e,t)},i}function hd(e){return e=xn(e),e.tag=Jf,e}function dd(e,t,i,s){var n=i.type.getDerivedStateFromError;if(typeof n=="function"){var r=s.value;e.payload=function(){return n(r)},e.callback=function(){Vp(i),oe(s.source,Yb,t,i,s)}}var l=i.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Vp(i),oe(s.source,Yb,t,i,s),typeof n!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this)),wE(this,s),typeof n=="function"||(i.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.",M(i)||"Unknown")})}function Fw(e,t,i,s,n){if(i.flags|=32768,js&&Da(e,n),s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=i.alternate,t!==null&&io(t,i,n,!0),Ze&&(Hs=!0),i=Bi.current,i!==null){switch(i.tag){case 31:case 13:return Ji===null?Oc():i.alternate===null&&kt===gn&&(kt=wu),i.flags&=-257,i.flags|=65536,i.lanes=n,s===mu?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([s]):t.add(s),Md(e,s,n)),!1;case 22:return i.flags|=65536,s===mu?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([s]):i.add(s)),Md(e,s,n)),!1}throw Error("Unexpected Suspense handler tag ("+i.tag+"). This is a bug in React.")}return Md(e,s,n),Oc(),!1}if(Ze)return Hs=!0,t=Bi.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,s!==$f&&ca(ki(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:s}),i))):(s!==$f&&ca(ki(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:s}),i)),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,s=ki(s,i),n=ud(e.stateNode,s,n),rc(e,n),kt!==Gn&&(kt=Br)),!1;var r=ki(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:s}),i);if(_l===null?_l=[r]:_l.push(r),kt!==Gn&&(kt=Br),t===null)return!0;s=ki(s,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=n&-n,i.lanes|=e,e=ud(i.stateNode,s,e),rc(i,e),!1;case 1:if(t=i.type,r=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Zn===null||!Zn.has(r))))return i.flags|=65536,n&=-n,i.lanes|=n,n=hd(n),dd(n,e,i,s),rc(i,n),!1}i=i.return}while(i!==null);return!1}function ii(e,t,i,s){t.child=e===null?g0(t,null,i,s):Lr(t,e.child,i,s)}function Fb(e,t,i,s,n){i=i.render;var r=t.ref;if("ref"in s){var l={};for(var p in s)p!=="ref"&&(l[p]=s[p])}else l=s;return gr(t),s=jh(e,t,i,l,r,n),p=Vh(),e!==null&&!It?(Hh(e,t,n),Js(e,t,n)):(Ze&&p&&yh(t),t.flags|=1,ii(e,t,s,n),t.child)}function Gb(e,t,i,s,n){if(e===null){var r=i.type;return typeof r=="function"&&!bh(r)&&r.defaultProps===void 0&&i.compare===null?(i=fr(r),t.tag=15,t.type=i,md(t,r),Xb(e,t,i,s,n)):(e=gh(i.type,null,s,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!yd(e,n)){var l=r.memoizedProps;if(i=i.compare,i=i!==null?i:la,i(l,s)&&e.ref===t.ref)return Js(e,t,n)}return t.flags|=1,e=Xs(r,s),e.ref=t.ref,e.return=t,t.child=e}function Xb(e,t,i,s,n){if(e!==null){var r=e.memoizedProps;if(la(r,s)&&e.ref===t.ref&&t.type===e.type)if(It=!1,t.pendingProps=s=r,yd(e,n))(e.flags&131072)!==0&&(It=!0);else return t.lanes=e.lanes,Js(e,t,n)}return fd(e,t,i,s,n)}function Qb(e,t,i,s){var n=s.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Ga,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|i:i,e!==null){for(s=t.child=e.child,n=0;s!==null;)n=n|s.lanes|s.childLanes,s=s.sibling;s=n&~r}else s=0,t.child=null;return Kb(e,t,r,i,s)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jl(t,r!==null?r.cachePool:null),r!==null?db(t,r):Mh(t),fb(t);else return s=t.lanes=536870912,Kb(e,t,r!==null?r.baseLanes|i:i,i,s)}else r!==null?(Jl(t,r.cachePool),db(t,r),kn(t),t.memoizedState=null):(e!==null&&Jl(t,null),Mh(t),kn(t));return ii(e,t,n,i),t.child}function ya(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Ga,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Kb(e,t,i,s,n){var r=kh();return r=r===null?null:{parent:Bt._currentValue,pool:r},t.memoizedState={baseLanes:i,cachePool:r},e!==null&&Jl(t,null),Mh(t),fb(t),e!==null&&io(e,t,s,!0),t.childLanes=n,null}function yc(e,t){var i=t.hidden;return i!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
175
|
-
- <Activity %s>
|
|
176
|
-
+ <Activity %s>`,i===!0?"hidden":i===!1?"hidden={false}":"hidden={...}",i?'mode="hidden"':'mode="visible"'),t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zb(e,t,i){return Lr(t,e.child,null,i),e=yc(t,t.pendingProps),e.flags|=2,Ai(t),t.memoizedState=null,e}function Gw(e,t,i){var s=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ze){if(s.mode==="hidden")return e=yc(t,s),t.lanes=536870912,ya(null,e);if(zh(t),(e=St)?(i=Ev(e,Ki),i=i!==null&&i.data===Pr?i:null,i!==null&&(s={dehydrated:i,treeContext:Pp(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=$p(i),s.return=t,t.child=s,ri=t,St=null)):i=null,i===null)throw Fl(t,e),En(t);return t.lanes=536870912,null}return yc(t,s)}var r=e.memoizedState;if(r!==null){var l=r.dehydrated;if(zh(t),n)if(t.flags&256)t.flags&=-257,t=Zb(e,t,i);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(Yp(),(i&536870912)!==0&&Dc(t),It||io(e,t,i,!1),n=(i&e.childLanes)!==0,It||n){if(s=gt,s!==null&&(l=ct(s,i),l!==0&&l!==r.retryLane))throw r.retryLane=l,oi(e,l),Rt(s,e,l),am;Oc(),t=Zb(e,t,i)}else e=r.treeContext,St=Ui(l.nextSibling),ri=t,Ze=!0,$n=null,Hs=!1,ji=null,Ki=!1,e!==null&&Wp(t,e),t=yc(t,s),t.flags|=4096;return t}return r=e.child,s={mode:s.mode,children:s.children},(i&536870912)!==0&&(i&e.lanes)!==0&&Dc(t),e=Xs(r,s),e.ref=t.ref,t.child=e,e.return=t,e}function wc(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==i)&&(t.flags|=4194816)}}function fd(e,t,i,s,n){if(i.prototype&&typeof i.prototype.render=="function"){var r=w(i)||"Unknown";B0[r]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",r,r),B0[r]=!0)}return t.mode&li&&us.recordLegacyContextWarning(t,null),e===null&&(md(t,t.type),i.contextTypes&&(r=w(i)||"Unknown",H0[r]||(H0[r]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",r)))),gr(t),i=jh(e,t,i,s,void 0,n),s=Vh(),e!==null&&!It?(Hh(e,t,n),Js(e,t,n)):(Ze&&s&&yh(t),t.flags|=1,ii(e,t,i,n),t.child)}function Jb(e,t,i,s,n,r){return gr(t),pn=-1,dl=e!==null&&e.type!==t.type,t.updateQueue=null,i=Bh(t,s,i,n),mb(e,t),s=Vh(),e!==null&&!It?(Hh(e,t,r),Js(e,t,r)):(Ze&&s&&yh(t),t.flags|=1,ii(e,t,i,r),t.child)}function eg(e,t,i,s,n){switch(W(t)){case!1:var r=t.stateNode,l=new t.type(t.memoizedProps,r.context).state;r.updater.enqueueSetState(r,l,null);break;case!0:t.flags|=128,t.flags|=65536,r=Error("Simulated error coming from DevTools");var p=n&-n;if(t.lanes|=p,l=gt,l===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=hd(p),dd(p,l,t,ki(r,t)),rc(t,p)}if(gr(t),t.stateNode===null){if(l=In,r=i.contextType,"contextType"in i&&r!==null&&(r===void 0||r.$$typeof!==Us)&&!L0.has(i)&&(L0.add(i),p=r===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof r!="object"?" However, it is set to a "+typeof r+".":r.$$typeof===lf?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",w(i)||"Component",p)),typeof r=="object"&&r!==null&&(l=xt(r)),r=new i(s,l),t.mode&li){xe(!0);try{r=new i(s,l)}finally{xe(!1)}}if(l=t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=rm,t.stateNode=r,r._reactInternals=t,r._reactInternalInstance=D0,typeof i.getDerivedStateFromProps=="function"&&l===null&&(l=w(i)||"Component",k0.has(l)||(k0.add(l),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.",l,r.state===null?"null":"undefined",l))),typeof i.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"){var x=p=l=null;if(typeof r.componentWillMount=="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?l="componentWillMount":typeof r.UNSAFE_componentWillMount=="function"&&(l="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps=="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate=="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?x="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate=="function"&&(x="UNSAFE_componentWillUpdate"),l!==null||p!==null||x!==null){r=w(i)||"Component";var R=typeof i.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";T0.has(r)||(T0.add(r),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
177
|
-
|
|
178
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
179
|
-
|
|
180
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
181
|
-
https://react.dev/link/unsafe-component-lifecycles`,r,R,l!==null?`
|
|
182
|
-
`+l:"",p!==null?`
|
|
183
|
-
`+p:"",x!==null?`
|
|
184
|
-
`+x:""))}}r=t.stateNode,l=w(i)||"Component",r.render||(i.prototype&&typeof i.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",l):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",l)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",l),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",l),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",l),i.childContextTypes&&!z0.has(i)&&(z0.add(i),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",l)),i.contextTypes&&!U0.has(i)&&(U0.add(i),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)",l)),typeof r.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",l),i.prototype&&i.prototype.isPureReactComponent&&typeof r.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",w(i)||"A pure component"),typeof r.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",l),typeof r.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",l),typeof r.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",l),typeof r.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",l),p=r.props!==s,r.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",l),r.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",l,l),typeof r.getSnapshotBeforeUpdate!="function"||typeof r.componentDidUpdate=="function"||R0.has(i)||(R0.add(i),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",w(i))),typeof r.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",l),typeof r.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",l),typeof i.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",l),(p=r.state)&&(typeof p!="object"||Yt(p))&&console.error("%s.state: must be set to an object or null",l),typeof r.getChildContext=="function"&&typeof i.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",l),r=t.stateNode,r.props=s,r.state=t.memoizedState,r.refs={},Th(t),l=i.contextType,r.context=typeof l=="object"&&l!==null?xt(l):In,r.state===s&&(l=w(i)||"Component",A0.has(l)||(A0.add(l),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.",l))),t.mode&li&&us.recordLegacyContextWarning(t,r),us.recordUnsafeLifecycleWarnings(t,r),r.state=t.memoizedState,l=i.getDerivedStateFromProps,typeof l=="function"&&(cd(t,i,l,s),r.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(l=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),l!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",M(t)||"Component"),rm.enqueueReplaceState(r,r.state,null)),ba(t,s,r,n),pa(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&cs)!==je&&(t.flags|=134217728),r=!0}else if(e===null){r=t.stateNode;var Q=t.memoizedProps;p=Sr(i,Q),r.props=p;var K=r.context;x=i.contextType,l=In,typeof x=="object"&&x!==null&&(l=xt(x)),R=i.getDerivedStateFromProps,x=typeof R=="function"||typeof r.getSnapshotBeforeUpdate=="function",Q=t.pendingProps!==Q,x||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(Q||K!==l)&&$b(t,r,s,l),Fn=!1;var P=t.memoizedState;r.state=P,ba(t,s,r,n),pa(),K=t.memoizedState,Q||P!==K||Fn?(typeof R=="function"&&(cd(t,i,R,s),K=t.memoizedState),(p=Fn||Ib(t,i,p,s,P,K,l))?(x||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&cs)!==je&&(t.flags|=134217728)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&cs)!==je&&(t.flags|=134217728),t.memoizedProps=s,t.memoizedState=K),r.props=s,r.state=K,r.context=l,r=p):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&cs)!==je&&(t.flags|=134217728),r=!1)}else{r=t.stateNode,Ah(e,t),l=t.memoizedProps,x=Sr(i,l),r.props=x,R=t.pendingProps,P=r.context,K=i.contextType,p=In,typeof K=="object"&&K!==null&&(p=xt(K)),Q=i.getDerivedStateFromProps,(K=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==R||P!==p)&&$b(t,r,s,p),Fn=!1,P=t.memoizedState,r.state=P,ba(t,s,r,n),pa();var re=t.memoizedState;l!==R||P!==re||Fn||e!==null&&e.dependencies!==null&&Xl(e.dependencies)?(typeof Q=="function"&&(cd(t,i,Q,s),re=t.memoizedState),(x=Fn||Ib(t,i,x,s,P,re,p)||e!==null&&e.dependencies!==null&&Xl(e.dependencies))?(K||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(s,re,p),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(s,re,p)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=re),r.props=s,r.state=re,r.context=p,r=x):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),r=!1)}if(p=r,wc(e,t),l=(t.flags&128)!==0,p||l){if(p=t.stateNode,ye(t),l&&typeof i.getDerivedStateFromError!="function")i=null,bi=-1;else if(i=s0(p),t.mode&li){xe(!0);try{s0(p)}finally{xe(!1)}}t.flags|=1,e!==null&&l?(t.child=Lr(t,e.child,null,n),t.child=Lr(t,null,i,n)):ii(e,t,i,n),t.memoizedState=p.state,e=t.child}else e=Js(e,t,n);return n=t.stateNode,r&&n.props!==s&&(Po||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",M(t)||"a component"),Po=!0),e}function tg(e,t,i,s){return br(),t.flags|=256,ii(e,t,i,s),t.child}function md(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
185
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=w(t)||"Unknown",I0[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),I0[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=w(t)||"Unknown",V0[t]||(console.error("%s: Function components do not support contextType.",t),V0[t]=!0))}function pd(e){return{baseLanes:e,cachePool:Jp()}}function bd(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=xi),e}function ig(e,t,i){var s,n=t.pendingProps;ne(t)&&(t.flags|=128);var r=!1,l=(t.flags&128)!==0;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(zt.current&ul)!==0),s&&(r=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ze){if(r?On(t):kn(t),(e=St)?(i=Ev(e,Ki),i=i!==null&&i.data!==Pr?i:null,i!==null&&(s={dehydrated:i,treeContext:Pp(),retryLane:536870912,hydrationErrors:null},t.memoizedState=s,s=$p(i),s.return=t,t.child=s,ri=t,St=null)):i=null,i===null)throw Fl(t,e),En(t);return Xd(i)?t.lanes=32:t.lanes=536870912,null}var p=n.children;if(n=n.fallback,r){kn(t);var x=t.mode;return p=Sc({mode:"hidden",children:p},x),n=mr(n,x,i,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=pd(i),n.childLanes=bd(e,s,i),t.memoizedState=lm,ya(null,n)}return On(t),gd(t,p)}var R=e.memoizedState;if(R!==null){var Q=R.dehydrated;if(Q!==null){if(l)t.flags&256?(On(t),t.flags&=-257,t=vd(e,t,i)):t.memoizedState!==null?(kn(t),t.child=e.child,t.flags|=128,t=null):(kn(t),p=n.fallback,x=t.mode,n=Sc({mode:"visible",children:n.children},x),p=mr(p,x,i,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,Lr(t,e.child,null,i),n=t.child,n.memoizedState=pd(i),n.childLanes=bd(e,s,i),t.memoizedState=lm,t=ya(null,n));else if(On(t),Yp(),(i&536870912)!==0&&Dc(t),Xd(Q)){if(s=Q.nextSibling&&Q.nextSibling.dataset,s){p=s.dgst;var K=s.msg;x=s.stck;var P=s.cstck}r=K,s=p,n=x,Q=P,p=r,x=Q,p=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),p.stack=n||"",p.digest=s,s=x===void 0?null:x,n={value:p,source:null,stack:s},typeof s=="string"&&If.set(p,n),ca(n),t=vd(e,t,i)}else if(It||io(e,t,i,!1),s=(i&e.childLanes)!==0,It||s){if(s=gt,s!==null&&(n=ct(s,i),n!==0&&n!==R.retryLane))throw R.retryLane=n,oi(e,n),Rt(s,e,n),am;Gd(Q)||Oc(),t=vd(e,t,i)}else Gd(Q)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,St=Ui(Q.nextSibling),ri=t,Ze=!0,$n=null,Hs=!1,ji=null,Ki=!1,e!==null&&Wp(t,e),t=gd(t,n.children),t.flags|=4096);return t}}return r?(kn(t),p=n.fallback,x=t.mode,P=e.child,Q=P.sibling,n=Xs(P,{mode:"hidden",children:n.children}),n.subtreeFlags=P.subtreeFlags&65011712,Q!==null?p=Xs(Q,p):(p=mr(p,x,i,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,ya(null,n),n=t.child,p=e.child.memoizedState,p===null?p=pd(i):(x=p.cachePool,x!==null?(P=Bt._currentValue,x=x.parent!==P?{parent:P,pool:P}:x):x=Jp(),p={baseLanes:p.baseLanes|i,cachePool:x}),n.memoizedState=p,n.childLanes=bd(e,s,i),t.memoizedState=lm,ya(e.child,n)):(R!==null&&(i&62914560)===i&&(i&e.lanes)!==0&&Dc(t),On(t),i=e.child,e=i.sibling,i=Xs(i,{mode:"visible",children:n.children}),i.return=t,i.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=i,t.memoizedState=null,i)}function gd(e,t){return t=Sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=m(22,e,null,t),e.lanes=0,e}function vd(e,t,i){return Lr(t,e.child,null,i),e=gd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sg(e,t,i){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Nh(e.return,t,i)}function _d(e,t,i,s,n,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:n,treeForkCount:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=s,l.tail=i,l.tailMode=n,l.treeForkCount=r)}function ng(e,t,i){var s=t.pendingProps,n=s.revealOrder,r=s.tail,l=s.children,p=zt.current;if((s=(p&ul)!==0)?(p=p&Ho|ul,t.flags|=128):p&=Ho,B(zt,p,t),p=n??"null",n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!$0[p])if($0[p]=!0,n==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(n==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof n=="string")switch(n.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',n,n.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',n,n.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n);p=r??"null",yu[p]||(r==null?(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&(yu[p]=!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".')):r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(yu[p]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(yu[p]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r)));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&l!==void 0&&l!==null&&l!==!1)if(Yt(l)){for(p=0;p<l.length;p++)if(!cb(l[p],p))break e}else if(p=D(l),typeof p=="function"){if(p=p.call(l))for(var x=p.next(),R=0;!x.done;x=p.next()){if(!cb(x.value,R))break e;R++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',n);if(ii(e,t,l,i),Ze?(Sn(),l=Xa):l=0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sg(e,i,t);else if(e.tag===19)sg(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(i=t.child,n=null;i!==null;)e=i.alternate,e!==null&&oc(e)===null&&(n=i),i=i.sibling;i=n,i===null?(n=t.child,t.child=null):(n=i.sibling,i.sibling=null),_d(t,!1,n,i,r,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&oc(e)===null){t.child=n;break}e=n.sibling,n.sibling=i,i=n,n=e}_d(t,!0,i,null,r,l);break;case"together":_d(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Js(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),bi=-1,Qn|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(io(e,t,i,!1),(i&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,i=Xs(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Xs(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function yd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Xl(e)))}function Xw(e,t,i){switch(t.tag){case 3:ae(t,t.stateNode.containerInfo),Nn(t,Bt,e.memoizedState.cache),br();break;case 27:case 5:le(t);break;case 4:ae(t,t.stateNode.containerInfo);break;case 10:Nn(t,t.type,t.memoizedProps.value);break;case 12:(i&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var s=t.stateNode;s.effectDuration=-0,s.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,zh(t),null;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(On(t),t.flags|=128,null):(i&t.child.childLanes)!==0?ig(e,t,i):(On(t),e=Js(e,t,i),e!==null?e.sibling:null);On(t);break;case 19:var n=(e.flags&128)!==0;if(s=(i&t.childLanes)!==0,s||(io(e,t,i,!1),s=(i&t.childLanes)!==0),n){if(s)return ng(e,t,i);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),B(zt,zt.current,t),s)break;return null;case 22:return t.lanes=0,Qb(e,t,i,t.pendingProps);case 24:Nn(t,Bt,e.memoizedState.cache)}return Js(e,t,i)}function wd(e,t,i){if(t._debugNeedsRemount&&e!==null){i=gh(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),i._debugStack=t._debugStack,i._debugTask=t._debugTask;var s=t.return;if(s===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,i.index=t.index,i.sibling=t.sibling,i.return=t.return,i.ref=t.ref,i._debugInfo=t._debugInfo,t===s.child)s.child=i;else{var n=s.child;if(n===null)throw Error("Expected parent to have a child.");for(;n.sibling!==t;)if(n=n.sibling,n===null)throw Error("Expected to find the previous sibling.");n.sibling=i}return t=s.deletions,t===null?(s.deletions=[e],s.flags|=16):t.push(e),i.flags|=2,i}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)It=!0;else{if(!yd(e,i)&&(t.flags&128)===0)return It=!1,Xw(e,t,i);It=(e.flags&131072)!==0}else It=!1,(s=Ze)&&(Sn(),s=(t.flags&1048576)!==0),s&&(s=t.index,Sn(),qp(t,Xa,s));switch(t.lanes=0,t.tag){case 16:e:if(s=t.pendingProps,e=Cn(t.elementType),t.type=e,typeof e=="function")bh(e)?(s=Sr(e,s),t.tag=1,t.type=e=fr(e),t=eg(null,t,e,s,i)):(t.tag=0,md(t,e),t.type=e=fr(e),t=fd(null,t,e,s,i));else{if(e!=null){if(n=e.$$typeof,n===La){t.tag=11,t.type=e=ph(e),t=Fb(null,t,e,s,i);break e}else if(n===$c){t.tag=14,t=Gb(null,t,e,s,i);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===zi&&(t=" Did you wrap a component in React.lazy() more than once?"),i=w(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+i+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return fd(e,t,t.type,t.pendingProps,i);case 1:return s=t.type,n=Sr(s,t.pendingProps),eg(e,t,s,n,i);case 3:e:{if(ae(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");s=t.pendingProps;var r=t.memoizedState;n=r.element,Ah(e,t),ba(t,s,null,i);var l=t.memoizedState;if(s=l.cache,Nn(t,Bt,s),s!==r.cache&&Ch(t,[Bt],i,!0),pa(),s=l.element,r.isDehydrated)if(r={element:s,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=tg(e,t,s,i);break e}else if(s!==n){n=ki(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),ca(n),t=tg(e,t,s,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(St=Ui(e.firstChild),ri=t,Ze=!0,$n=null,Hs=!1,ji=null,Ki=!0,i=g0(t,null,s,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(br(),s===n){t=Js(e,t,i);break e}ii(e,t,s,i)}t=t.child}return t;case 26:return wc(e,t),e===null?(i=kv(t.type,null,t.pendingProps,null))?t.memoizedState=i:Ze||(i=t.type,e=t.pendingProps,s=J(zn.current),s=Ac(s).createElement(i),s[ni]=t,s[fi]=e,si(s,i,e),Re(s),t.stateNode=s):t.memoizedState=kv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return le(t),e===null&&Ze&&(s=J(zn.current),n=de(),s=t.stateNode=Dv(t.type,t.pendingProps,s,n,!1),Hs||(n=pv(s,t.type,t.pendingProps,n),n!==null&&(pr(t,0).serverProps=n)),ri=t,Ki=!0,n=St,Mn(t.type)?(Tm=n,St=Ui(s.firstChild)):St=n),ii(e,t,t.pendingProps.children,i),wc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ze&&(r=de(),s=oh(t.type,r.ancestorInfo),n=St,(l=!n)||(l=jS(n,t.type,t.pendingProps,Ki),l!==null?(t.stateNode=l,Hs||(r=pv(l,t.type,t.pendingProps,r),r!==null&&(pr(t,0).serverProps=r)),ri=t,St=Ui(l.firstChild),Ki=!1,r=!0):r=!1,l=!r),l&&(s&&Fl(t,n),En(t))),le(t),n=t.type,r=t.pendingProps,l=e!==null?e.memoizedProps:null,s=r.children,Yd(n,r)?s=null:l!==null&&Yd(n,l)&&(t.flags|=32),t.memoizedState!==null&&(n=jh(e,t,Iw,null,null,i),Ol._currentValue=n),wc(e,t),ii(e,t,s,i),t.child;case 6:return e===null&&Ze&&(i=t.pendingProps,e=de(),s=e.ancestorInfo.current,i=s!=null?jl(i,s.tag,e.ancestorInfo.implicitRootScope):!0,e=St,(s=!e)||(s=BS(e,t.pendingProps,Ki),s!==null?(t.stateNode=s,ri=t,St=null,s=!0):s=!1,s=!s),s&&(i&&Fl(t,e),En(t))),null;case 13:return ig(e,t,i);case 4:return ae(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Lr(t,null,s,i):ii(e,t,s,i),t.child;case 11:return Fb(e,t,t.type,t.pendingProps,i);case 7:return ii(e,t,t.pendingProps,i),t.child;case 8:return ii(e,t,t.pendingProps.children,i),t.child;case 12:return t.flags|=4,t.flags|=2048,s=t.stateNode,s.effectDuration=-0,s.passiveEffectDuration=-0,ii(e,t,t.pendingProps.children,i),t.child;case 10:return s=t.type,n=t.pendingProps,r=n.value,"value"in n||q0||(q0=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Nn(t,s,r),ii(e,t,n.children,i),t.child;case 9:return n=t.type._context,s=t.pendingProps.children,typeof s!="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."),gr(t),n=xt(n),s=Xf(s,n,void 0),t.flags|=1,ii(e,t,s,i),t.child;case 14:return Gb(e,t,t.type,t.pendingProps,i);case 15:return Xb(e,t,t.type,t.pendingProps,i);case 19:return ng(e,t,i);case 31:return Gw(e,t,i);case 22:return Qb(e,t,i,t.pendingProps);case 24:return gr(t),s=xt(Bt),e===null?(n=kh(),n===null&&(n=gt,r=xh(),n.pooledCache=r,vr(r),r!==null&&(n.pooledCacheLanes|=i),n=r),t.memoizedState={parent:s,cache:n},Th(t),Nn(t,Bt,n)):((e.lanes&i)!==0&&(Ah(e,t),ba(t,null,null,i),pa()),n=e.memoizedState,r=t.memoizedState,n.parent!==s?(n={parent:s,cache:s},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Nn(t,Bt,s)):(s=r.cache,Nn(t,Bt,s),s!==n.cache&&Ch(t,[Bt],i,!0))),ii(e,t,t.pendingProps.children,i),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 en(e){e.flags|=4}function Sd(e,t,i,s,n){if((t=(e.mode&bE)!==je)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(jg())e.flags|=8192;else throw zr=mu,Kf}else e.flags&=-16777217}function rg(e,t){if(t.type!=="stylesheet"||(t.state.loading&is)!==Fr)e.flags&=-16777217;else if(e.flags|=16777216,!Uv(t))if(jg())e.flags|=8192;else throw zr=mu,Kf}function Ec(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xe():536870912,e.lanes|=t,Ir|=t)}function wa(e,t){if(!Ze)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,s=0;if(t)if((e.mode&Pe)!==je){for(var n=e.selfBaseDuration,r=e.child;r!==null;)i|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,n+=r.treeBaseDuration,r=r.sibling;e.treeBaseDuration=n}else for(n=e.child;n!==null;)i|=n.lanes|n.childLanes,s|=n.subtreeFlags&65011712,s|=n.flags&65011712,n.return=e,n=n.sibling;else if((e.mode&Pe)!==je){n=e.actualDuration,r=e.selfBaseDuration;for(var l=e.child;l!==null;)i|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,n+=l.actualDuration,r+=l.treeBaseDuration,l=l.sibling;e.actualDuration=n,e.treeBaseDuration=r}else for(n=e.child;n!==null;)i|=n.lanes|n.childLanes,s|=n.subtreeFlags,s|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=s,e.childLanes=i,t}function Qw(e,t,i){var s=t.pendingProps;switch(wh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return vt(t),null;case 3:return i=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Ks(Bt,t),te(t),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(to(t)?(Eh(),en(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sh())),vt(t),null;case 26:var n=t.type,r=t.memoizedState;return e===null?(en(t),r!==null?(vt(t),rg(t,r)):(vt(t),Sd(t,n,null,s,i))):r?r!==e.memoizedState?(en(t),vt(t),rg(t,r)):(vt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&en(t),vt(t),Sd(t,n,e,s,i)),null;case 27:if(T(t),i=J(zn.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&en(t);else{if(!s){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 vt(t),null}e=de(),to(t)?Fp(t):(e=Dv(n,s,i,e,!0),t.stateNode=e,en(t))}return vt(t),null;case 5:if(T(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&en(t);else{if(!s){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 vt(t),null}var l=de();if(to(t))Fp(t);else{switch(r=J(zn.current),oh(n,l.ancestorInfo),l=l.context,r=Ac(r),l){case Zo:r=r.createElementNS(So,n);break;case Hu:r=r.createElementNS(Xc,n);break;default:switch(n){case"svg":r=r.createElementNS(So,n);break;case"math":r=r.createElementNS(Xc,n);break;case"script":r=r.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof s.is=="string"?r.createElement("select",{is:s.is}):r.createElement("select"),s.multiple?r.multiple=!0:s.size&&(r.size=s.size);break;default:r=typeof s.is=="string"?r.createElement(n,{is:s.is}):r.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||ls.call(fy,n)||(fy[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}r[ni]=t,r[fi]=s;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=r;e:switch(si(r,n,s),n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&en(t)}}return vt(t),Sd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&en(t);else{if(typeof s!="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=J(zn.current),i=de(),to(t)){if(e=t.stateNode,i=t.memoizedProps,n=!Hs,s=null,r=ri,r!==null)switch(r.tag){case 3:n&&(n=Cv(e,i,s),n!==null&&(pr(t,0).serverProps=n));break;case 27:case 5:s=r.memoizedProps,n&&(n=Cv(e,i,s),n!==null&&(pr(t,0).serverProps=n))}e[ni]=t,e=!!(e.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||uv(e.nodeValue,i)),e||En(t,!0)}else n=i.ancestorInfo.current,n!=null&&jl(s,n.tag,i.ancestorInfo.implicitRootScope),e=Ac(e).createTextNode(s),e[ni]=t,t.stateNode=e}return vt(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(s=to(t),i!==null){if(e===null){if(!s)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[ni]=t,vt(t),(t.mode&Pe)!==je&&i!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Eh(),br(),(t.flags&128)===0&&(i=t.memoizedState=null),t.flags|=4,vt(t),(t.mode&Pe)!==je&&i!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else i=Sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(Ai(t),t):(Ai(t),null);if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return vt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=s,r=to(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[ni]=t,vt(t),(t.mode&Pe)!==je&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else Eh(),br(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,vt(t),(t.mode&Pe)!==je&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=Sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Ai(t),t):(Ai(t),null)}return Ai(t),(t.flags&128)!==0?(t.lanes=i,(t.mode&Pe)!==je&&da(t),t):(i=s!==null,e=e!==null&&e.memoizedState!==null,i&&(s=t.child,n=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(n=s.alternate.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==n&&(s.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Ec(t,t.updateQueue),vt(t),(t.mode&Pe)!==je&&i&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return te(t),e===null&&Vd(t.stateNode.containerInfo),vt(t),null;case 10:return Ks(t.type,t),vt(t),null;case 19:if(H(zt,t),s=t.memoizedState,s===null)return vt(t),null;if(n=(t.flags&128)!==0,r=s.rendering,r===null)if(n)wa(s,!1);else{if(kt!==gn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=oc(e),r!==null){for(t.flags|=128,wa(s,!1),e=r.updateQueue,t.updateQueue=e,Ec(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Ip(i,e),i=i.sibling;return B(zt,zt.current&Ho|ul,t),Ze&&Qs(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Kt()>Du&&(t.flags|=128,n=!0,wa(s,!1),t.lanes=4194304)}else{if(!n)if(e=oc(r),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ec(t,e),wa(s,!0),s.tail===null&&s.tailMode==="hidden"&&!r.alternate&&!Ze)return vt(t),null}else 2*Kt()-s.renderingStartTime>Du&&i!==536870912&&(t.flags|=128,n=!0,wa(s,!1),t.lanes=4194304);s.isBackwards?(r.sibling=t.child,t.child=r):(e=s.last,e!==null?e.sibling=r:t.child=r,s.last=r)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Kt(),e.sibling=null,i=zt.current,i=n?i&Ho|ul:i&Ho,B(zt,i,t),Ze&&Qs(t,s.treeForkCount),e):(vt(t),null);case 22:case 23:return Ai(t),Uh(t),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(i&536870912)!==0&&(t.flags&128)===0&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),i=t.updateQueue,i!==null&&Ec(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==i&&(t.flags|=2048),e!==null&&H(Mr,t),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ks(Bt,t),vt(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 Kw(e,t){switch(wh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==je&&da(t),t):null;case 3:return Ks(Bt,t),te(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return T(t),null;case 31:if(t.memoizedState!==null){if(Ai(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==je&&da(t),t):null;case 13:if(Ai(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.");br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==je&&da(t),t):null;case 19:return H(zt,t),null;case 4:return te(t),null;case 10:return Ks(t.type,t),null;case 22:case 23:return Ai(t),Uh(t),e!==null&&H(Mr,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Pe)!==je&&da(t),t):null;case 24:return Ks(Bt,t),null;case 25:return null;default:return null}}function og(e,t){switch(wh(t),t.tag){case 3:Ks(Bt,t),te(t);break;case 26:case 27:case 5:T(t);break;case 4:te(t);break;case 31:t.memoizedState!==null&&Ai(t);break;case 13:Ai(t);break;case 19:H(zt,t);break;case 10:Ks(t.type,t);break;case 22:case 23:Ai(t),Uh(t),e!==null&&H(Mr,t);break;case 24:Ks(Bt,t)}}function Ds(e){return(e.mode&Pe)!==je}function ag(e,t){Ds(e)?(xs(),Sa(t,e),Cs()):Sa(t,e)}function Ed(e,t,i){Ds(e)?(xs(),ao(i,e,t),Cs()):ao(i,e,t)}function Sa(e,t){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var n=s.next;i=n;do{if((i.tag&e)===e&&(s=void 0,(e&gi)!==bu&&(Xo=!0),s=oe(t,SE,i),(e&gi)!==bu&&(Xo=!1),s!==void 0&&typeof s!="function")){var r=void 0;r=(i.tag&Vi)!==0?"useLayoutEffect":(i.tag&gi)!==0?"useInsertionEffect":"useEffect";var l=void 0;l=s===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof s.then=="function"?`
|
|
186
|
-
|
|
187
|
-
It looks like you wrote `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
188
|
-
|
|
189
|
-
`+r+`(() => {
|
|
190
|
-
async function fetchData() {
|
|
191
|
-
// You can await here
|
|
192
|
-
const response = await MyAPI.getData(someId);
|
|
193
|
-
// ...
|
|
194
|
-
}
|
|
195
|
-
fetchData();
|
|
196
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
197
|
-
|
|
198
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+s,oe(t,function(p,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,x)},r,l)}i=i.next}while(i!==n)}}catch(p){ut(t,t.return,p)}}function ao(e,t,i){try{var s=t.updateQueue,n=s!==null?s.lastEffect:null;if(n!==null){var r=n.next;s=r;do{if((s.tag&e)===e){var l=s.inst,p=l.destroy;p!==void 0&&(l.destroy=void 0,(e&gi)!==bu&&(Xo=!0),n=t,oe(n,EE,n,i,p),(e&gi)!==bu&&(Xo=!1))}s=s.next}while(s!==r)}}catch(x){ut(t,t.return,x)}}function lg(e,t){Ds(e)?(xs(),Sa(t,e),Cs()):Sa(t,e)}function Nd(e,t,i){Ds(e)?(xs(),ao(i,e,t),Cs()):ao(i,e,t)}function cg(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Po||(i.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.",M(e)||"instance"),i.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.",M(e)||"instance"));try{oe(e,hb,t,i)}catch(s){ut(e,e.return,s)}}}function Zw(e,t,i){return e.getSnapshotBeforeUpdate(t,i)}function Jw(e,t){var i=t.memoizedProps,s=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Po||(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.",M(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.",M(e)||"instance"));try{var n=Sr(e.type,i),r=oe(e,Zw,t,n,s);i=P0,r!==void 0||i.has(e.type)||(i.add(e.type),oe(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",M(e))})),t.__reactInternalSnapshotBeforeUpdate=r}catch(l){ut(e,e.return,l)}}function ug(e,t,i){i.props=Sr(e.type,e.memoizedProps),i.state=e.memoizedState,Ds(e)?(xs(),oe(e,c0,e,t,i),Cs()):oe(e,c0,e,t,i)}function eS(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}if(typeof t=="function")if(Ds(e))try{xs(),e.refCleanup=t(i)}finally{Cs()}else e.refCleanup=t(i);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().",M(e)),t.current=i}}function Ea(e,t){try{oe(e,eS,e)}catch(i){ut(e,t,i)}}function Os(e,t){var i=e.ref,s=e.refCleanup;if(i!==null)if(typeof s=="function")try{if(Ds(e))try{xs(),oe(e,s)}finally{Cs(e)}else oe(e,s)}catch(n){ut(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{if(Ds(e))try{xs(),oe(e,i,null)}finally{Cs(e)}else oe(e,i,null)}catch(n){ut(e,t,n)}else i.current=null}function hg(e,t,i,s){var n=e.memoizedProps,r=n.id,l=n.onCommit;n=n.onRender,t=t===null?"mount":"update",uu&&(t="nested-update"),typeof n=="function"&&n(r,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,i),typeof l=="function"&&l(r,t,s,i)}function tS(e,t,i,s){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",uu&&(t="nested-update"),typeof n=="function"&&n(e,t,s,i)}function dg(e){var t=e.type,i=e.memoizedProps,s=e.stateNode;try{oe(e,CS,s,t,i,e)}catch(n){ut(e,e.return,n)}}function Cd(e,t,i){try{oe(e,DS,e.stateNode,e.type,i,t,e)}catch(s){ut(e,e.return,s)}}function fg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mn(e.type)||e.tag===4}function xd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fg(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&&Mn(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 Dd(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(yv(i),(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t)):(yv(i),t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=Gs));else if(s!==4&&(s===27&&Mn(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Dd(e,t,i),e=e.sibling;e!==null;)Dd(e,t,i),e=e.sibling}function Nc(e,t,i){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(s!==4&&(s===27&&Mn(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Nc(e,t,i),e=e.sibling;e!==null;)Nc(e,t,i),e=e.sibling}function iS(e){for(var t,i=e.return;i!==null;){if(fg(i)){t=i;break}i=i.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,i=xd(e),Nc(e,i,t);break;case 5:i=t.stateNode,t.flags&32&&(_v(i),t.flags&=-33),t=xd(e),Nc(e,t,i);break;case 3:case 4:t=t.stateNode.containerInfo,i=xd(e),Dd(e,i,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mg(e){var t=e.stateNode,i=e.memoizedProps;try{oe(e,qS,e.type,i,t,e)}catch(s){ut(e,e.return,s)}}function pg(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 sS(e,t){if(e=e.containerInfo,Om=Pu,e=Tp(e),ch(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var n=s.anchorOffset,r=s.focusNode;s=s.focusOffset;try{i.nodeType,r.nodeType}catch{i=null;break e}var l=0,p=-1,x=-1,R=0,Q=0,K=e,P=null;t:for(;;){for(var re;K!==i||n!==0&&K.nodeType!==3||(p=l+n),K!==r||s!==0&&K.nodeType!==3||(x=l+s),K.nodeType===3&&(l+=K.nodeValue.length),(re=K.firstChild)!==null;)P=K,K=re;for(;;){if(K===e)break t;if(P===i&&++R===n&&(p=l),P===r&&++Q===s&&(x=l),(re=K.nextSibling)!==null)break;K=P,P=K.parentNode}K=re}i=p===-1||x===-1?null:{start:p,end:x}}else i=null}i=i||{start:0,end:0}}else i=null;for(km={focusedElem:e,selectionRange:i},Pu=!1,Jt=t;Jt!==null;)if(t=Jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Jt=e;else for(;Jt!==null;){switch(e=t=Jt,i=e.alternate,n=e.flags,e.tag){case 0:if((n&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)n=e[i],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:(n&1024)!==0&&i!==null&&Jw(e,i);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,i=e.nodeType,i===9)Fd(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Jt=e;break}Jt=t.return}}function bg(e,t,i){var s=Ri(),n=ws(),r=Es(),l=Ns(),p=i.flags;switch(i.tag){case 0:case 11:case 15:ks(e,i),p&4&&ag(i,Vi|es);break;case 1:if(ks(e,i),p&4)if(e=i.stateNode,t===null)i.type.defaultProps||"ref"in i.memoizedProps||Po||(e.props!==i.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.",M(i)||"instance"),e.state!==i.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.",M(i)||"instance")),Ds(i)?(xs(),oe(i,Qf,i,e),Cs()):oe(i,Qf,i,e);else{var x=Sr(i.type,t.memoizedProps);t=t.memoizedState,i.type.defaultProps||"ref"in i.memoizedProps||Po||(e.props!==i.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.",M(i)||"instance"),e.state!==i.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.",M(i)||"instance")),Ds(i)?(xs(),oe(i,o0,i,e,x,t,e.__reactInternalSnapshotBeforeUpdate),Cs()):oe(i,o0,i,e,x,t,e.__reactInternalSnapshotBeforeUpdate)}p&64&&cg(i),p&512&&Ea(i,i.return);break;case 3:if(t=Zs(),ks(e,i),p&64&&(p=i.updateQueue,p!==null)){if(x=null,i.child!==null)switch(i.child.tag){case 27:case 5:x=i.child.stateNode;break;case 1:x=i.child.stateNode}try{oe(i,hb,p,x)}catch(Q){ut(i,i.return,Q)}}e.effectDuration+=Kl(t);break;case 27:t===null&&p&4&&mg(i);case 26:case 5:if(ks(e,i),t===null){if(p&4)dg(i);else if(p&64){e=i.type,t=i.memoizedProps,x=i.stateNode;try{oe(i,xS,x,e,t,i)}catch(Q){ut(i,i.return,Q)}}}p&512&&Ea(i,i.return);break;case 12:if(p&4){p=Zs(),ks(e,i),e=i.stateNode,e.effectDuration+=ha(p);try{oe(i,hg,i,t,qn,e.effectDuration)}catch(Q){ut(i,i.return,Q)}}else ks(e,i);break;case 31:ks(e,i),p&4&&_g(e,i);break;case 13:ks(e,i),p&4&&yg(e,i),p&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(p=dS.bind(null,i),VS(e,p))));break;case 22:if(p=i.memoizedState!==null||bn,!p){t=t!==null&&t.memoizedState!==null||$t,x=bn;var R=$t;bn=p,($t=t)&&!R?(Rs(e,i,(i.subtreeFlags&8772)!==0),(i.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&Il(i,Me,Le)):ks(e,i),bn=x,$t=R}break;case 30:break;default:ks(e,i)}(i.mode&Pe)!==je&&0<=Me&&0<=Le&&((Tt||.05<Ot)&&_s(i,Me,Le,Ot,Dt),i.alternate===null&&i.return!==null&&i.return.alternate!==null&&.05<Le-Me&&(pg(i.return.alternate,i.return)||vs(i,Me,Le,"Mount"))),Ti(s),Ss(n),Dt=r,Tt=l}function gg(e){var t=e.alternate;t!==null&&(e.alternate=null,gg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ee(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 tn(e,t,i){for(i=i.child;i!==null;)vg(e,t,i),i=i.sibling}function vg(e,t,i){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(yo,i)}catch(R){Ls||(Ls=!0,console.error("React instrumentation encountered an error: %o",R))}var s=Ri(),n=ws(),r=Es(),l=Ns();switch(i.tag){case 26:$t||Os(i,t),tn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(e=i.stateNode,e.parentNode.removeChild(e));break;case 27:$t||Os(i,t);var p=qt,x=Ni;Mn(i.type)&&(qt=i.stateNode,Ni=!1),tn(e,t,i),oe(i,Aa,i.stateNode),qt=p,Ni=x;break;case 5:$t||Os(i,t);case 6:if(p=qt,x=Ni,qt=null,tn(e,t,i),qt=p,Ni=x,qt!==null)if(Ni)try{oe(i,RS,qt,i.stateNode)}catch(R){ut(i,t,R)}else try{oe(i,kS,qt,i.stateNode)}catch(R){ut(i,t,R)}break;case 18:qt!==null&&(Ni?(e=qt,wv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),bo(e)):wv(qt,i.stateNode));break;case 4:p=qt,x=Ni,qt=i.stateNode.containerInfo,Ni=!0,tn(e,t,i),qt=p,Ni=x;break;case 0:case 11:case 14:case 15:ao(gi,i,t),$t||Ed(i,t,Vi),tn(e,t,i);break;case 1:$t||(Os(i,t),p=i.stateNode,typeof p.componentWillUnmount=="function"&&ug(i,t,p)),tn(e,t,i);break;case 21:tn(e,t,i);break;case 22:$t=(p=$t)||i.memoizedState!==null,tn(e,t,i),$t=p;break;default:tn(e,t,i)}(i.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(i,Me,Le,Ot,Dt),Ti(s),Ss(n),Dt=r,Tt=l}function _g(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{oe(t,IS,e)}catch(i){ut(t,t.return,i)}}}function yg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{oe(t,$S,e)}catch(i){ut(t,t.return,i)}}function nS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new W0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new W0),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Cc(e,t){var i=nS(e);t.forEach(function(s){if(!i.has(s)){if(i.add(s),js)if(Wo!==null&&Yo!==null)Da(Yo,Wo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=fS.bind(null,e,s);s.then(n,n)}})}function Si(e,t){var i=t.deletions;if(i!==null)for(var s=0;s<i.length;s++){var n=e,r=t,l=i[s],p=Ri(),x=r;e:for(;x!==null;){switch(x.tag){case 27:if(Mn(x.type)){qt=x.stateNode,Ni=!1;break e}break;case 5:qt=x.stateNode,Ni=!1;break e;case 3:case 4:qt=x.stateNode.containerInfo,Ni=!0;break e}x=x.return}if(qt===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");vg(n,r,l),qt=null,Ni=!1,(l.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&vs(l,Me,Le,"Unmount"),Ti(p),n=l,r=n.alternate,r!==null&&(r.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wg(t,e),t=t.sibling}function wg(e,t){var i=Ri(),s=ws(),n=Es(),r=Ns(),l=e.alternate,p=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Si(t,e),Ei(e),p&4&&(ao(gi|es,e,e.return),Sa(gi|es,e),Ed(e,e.return,Vi|es));break;case 1:if(Si(t,e),Ei(e),p&512&&($t||l===null||Os(l,l.return)),p&64&&bn&&(p=e.updateQueue,p!==null&&(l=p.callbacks,l!==null))){var x=p.shared.hiddenCallbacks;p.shared.hiddenCallbacks=x===null?l:x.concat(l)}break;case 26:if(x=ds,Si(t,e),Ei(e),p&512&&($t||l===null||Os(l,l.return)),p&4){var R=l!==null?l.memoizedState:null;if(p=e.memoizedState,l===null)if(p===null)if(e.stateNode===null){e:{p=e.type,l=e.memoizedProps,x=x.ownerDocument||x;t:switch(p){case"title":R=x.getElementsByTagName("title")[0],(!R||R[Va]||R[ni]||R.namespaceURI===So||R.hasAttribute("itemprop"))&&(R=x.createElement(p),x.head.insertBefore(R,x.querySelector("head > title"))),si(R,p,l),R[ni]=e,Re(R),p=R;break e;case"link":var Q=Av("link","href",x).get(p+(l.href||""));if(Q){for(var K=0;K<Q.length;K++)if(R=Q[K],R.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&R.getAttribute("rel")===(l.rel==null?null:l.rel)&&R.getAttribute("title")===(l.title==null?null:l.title)&&R.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){Q.splice(K,1);break t}}R=x.createElement(p),si(R,p,l),x.head.appendChild(R);break;case"meta":if(Q=Av("meta","content",x).get(p+(l.content||""))){for(K=0;K<Q.length;K++)if(R=Q[K],ze(l.content,"content"),R.getAttribute("content")===(l.content==null?null:""+l.content)&&R.getAttribute("name")===(l.name==null?null:l.name)&&R.getAttribute("property")===(l.property==null?null:l.property)&&R.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&R.getAttribute("charset")===(l.charSet==null?null:l.charSet)){Q.splice(K,1);break t}}R=x.createElement(p),si(R,p,l),x.head.appendChild(R);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+p+'". This is a bug in React.')}R[ni]=e,Re(R),p=R}e.stateNode=p}else Mv(x,e.type,e.stateNode);else e.stateNode=Tv(x,p,e.memoizedProps);else R!==p?(R===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):R.count--,p===null?Mv(x,e.type,e.stateNode):Tv(x,p,e.memoizedProps)):p===null&&e.stateNode!==null&&Cd(e,e.memoizedProps,l.memoizedProps)}break;case 27:Si(t,e),Ei(e),p&512&&($t||l===null||Os(l,l.return)),l!==null&&p&4&&Cd(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Si(t,e),Ei(e),p&512&&($t||l===null||Os(l,l.return)),e.flags&32){x=e.stateNode;try{oe(e,_v,x)}catch(Ne){ut(e,e.return,Ne)}}p&4&&e.stateNode!=null&&(x=e.memoizedProps,Cd(e,x,l!==null?l.memoizedProps:x)),p&1024&&(cm=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Si(t,e),Ei(e),p&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.");p=e.memoizedProps,l=l!==null?l.memoizedProps:p,x=e.stateNode;try{oe(e,OS,x,l,p)}catch(Ne){ut(e,e.return,Ne)}}break;case 3:if(x=Zs(),Iu=null,R=ds,ds=Mc(t.containerInfo),Si(t,e),ds=R,Ei(e),p&4&&l!==null&&l.memoizedState.isDehydrated)try{oe(e,HS,t.containerInfo)}catch(Ne){ut(e,e.return,Ne)}cm&&(cm=!1,Sg(e)),t.effectDuration+=Kl(x);break;case 4:p=ds,ds=Mc(e.stateNode.containerInfo),Si(t,e),Ei(e),ds=p;break;case 12:p=Zs(),Si(t,e),Ei(e),e.stateNode.effectDuration+=ha(p);break;case 31:Si(t,e),Ei(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Cc(e,p)));break;case 13:Si(t,e),Ei(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xu=Kt()),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Cc(e,p)));break;case 22:x=e.memoizedState!==null;var P=l!==null&&l.memoizedState!==null,re=bn,Se=$t;if(bn=re||x,$t=Se||P,Si(t,e),$t=Se,bn=re,P&&!x&&!re&&!Se&&(e.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&Il(e,Me,Le),Ei(e),p&8192)e:for(t=e.stateNode,t._visibility=x?t._visibility&~Ga:t._visibility|Ga,!x||l===null||P||bn||$t||(Er(e),(e.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&vs(e,Me,Le,"Disconnect")),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){P=l=t;try{R=P.stateNode,x?oe(P,AS,R):oe(P,zS,P.stateNode,P.memoizedProps)}catch(Ne){ut(P,P.return,Ne)}}}else if(t.tag===6){if(l===null){P=t;try{Q=P.stateNode,x?oe(P,MS,Q):oe(P,LS,Q,P.memoizedProps)}catch(Ne){ut(P,P.return,Ne)}}}else if(t.tag===18){if(l===null){P=t;try{K=P.stateNode,x?oe(P,TS,K):oe(P,US,P.stateNode)}catch(Ne){ut(P,P.return,Ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}p&4&&(p=e.updateQueue,p!==null&&(l=p.retryQueue,l!==null&&(p.retryQueue=null,Cc(e,l))));break;case 19:Si(t,e),Ei(e),p&4&&(p=e.updateQueue,p!==null&&(e.updateQueue=null,Cc(e,p)));break;case 30:break;case 21:break;default:Si(t,e),Ei(e)}(e.mode&Pe)!==je&&0<=Me&&0<=Le&&((Tt||.05<Ot)&&_s(e,Me,Le,Ot,Dt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Le-Me&&(pg(e.return.alternate,e.return)||vs(e,Me,Le,"Mount"))),Ti(i),Ss(s),Dt=n,Tt=r}function Ei(e){var t=e.flags;if(t&2){try{oe(e,iS,e)}catch(i){ut(e,e.return,i)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ks(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bg(e,t.alternate,t),t=t.sibling}function Eg(e){var t=Ri(),i=ws(),s=Es(),n=Ns();switch(e.tag){case 0:case 11:case 14:case 15:Ed(e,e.return,Vi),Er(e);break;case 1:Os(e,e.return);var r=e.stateNode;typeof r.componentWillUnmount=="function"&&ug(e,e.return,r),Er(e);break;case 27:oe(e,Aa,e.stateNode);case 26:case 5:Os(e,e.return),Er(e);break;case 22:e.memoizedState===null&&Er(e);break;case 30:Er(e);break;default:Er(e)}(e.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(e,Me,Le,Ot,Dt),Ti(t),Ss(i),Dt=s,Tt=n}function Er(e){for(e=e.child;e!==null;)Eg(e),e=e.sibling}function Ng(e,t,i,s){var n=Ri(),r=ws(),l=Es(),p=Ns(),x=i.flags;switch(i.tag){case 0:case 11:case 15:Rs(e,i,s),ag(i,Vi);break;case 1:if(Rs(e,i,s),t=i.stateNode,typeof t.componentDidMount=="function"&&oe(i,Qf,i,t),t=i.updateQueue,t!==null){e=i.stateNode;try{oe(i,Hw,t,e)}catch(R){ut(i,i.return,R)}}s&&x&64&&cg(i),Ea(i,i.return);break;case 27:mg(i);case 26:case 5:Rs(e,i,s),s&&t===null&&x&4&&dg(i),Ea(i,i.return);break;case 12:if(s&&x&4){x=Zs(),Rs(e,i,s),s=i.stateNode,s.effectDuration+=ha(x);try{oe(i,hg,i,t,qn,s.effectDuration)}catch(R){ut(i,i.return,R)}}else Rs(e,i,s);break;case 31:Rs(e,i,s),s&&x&4&&_g(e,i);break;case 13:Rs(e,i,s),s&&x&4&&yg(e,i);break;case 22:i.memoizedState===null&&Rs(e,i,s),Ea(i,i.return);break;case 30:break;default:Rs(e,i,s)}(i.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(i,Me,Le,Ot,Dt),Ti(n),Ss(r),Dt=l,Tt=p}function Rs(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Ng(e,t.alternate,t,i),t=t.sibling}function Od(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&vr(e),i!=null&&ua(i))}function kd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(vr(t),e!=null&&ua(e))}function as(e,t,i,s,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var r=t.sibling;Cg(e,t,i,s,r!==null?r.actualStartTime:n),t=r}}function Cg(e,t,i,s,n){var r=Ri(),l=ws(),p=Es(),x=Ns(),R=Vn,Q=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Pe)!==je&&0<t.actualStartTime&&(t.flags&1)!==0&&$l(t,t.actualStartTime,n,Ft,i),as(e,t,i,s,n),Q&2048&&lg(t,vi|es);break;case 1:(t.mode&Pe)!==je&&0<t.actualStartTime&&((t.flags&128)!==0?hh(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&$l(t,t.actualStartTime,n,Ft,i)),as(e,t,i,s,n);break;case 3:var K=Zs(),P=Ft;Ft=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,as(e,t,i,s,n),Ft=P,Q&2048&&(i=null,t.alternate!==null&&(i=t.alternate.memoizedState.cache),s=t.memoizedState.cache,s!==i&&(vr(s),i!=null&&ua(i))),e.passiveEffectDuration+=Kl(K);break;case 12:if(Q&2048){Q=Zs(),as(e,t,i,s,n),e=t.stateNode,e.passiveEffectDuration+=ha(Q);try{oe(t,tS,t,t.alternate,qn,e.passiveEffectDuration)}catch(re){ut(t,t.return,re)}}else as(e,t,i,s,n);break;case 31:Q=Ft,K=t.alternate!==null?t.alternate.memoizedState:null,P=t.memoizedState,K!==null&&P===null?(P=t.deletions,P!==null&&0<P.length&&P[0].tag===18?(Ft=!1,K=K.hydrationErrors,K!==null&&hh(t,t.actualStartTime,n,K)):Ft=!0):Ft=!1,as(e,t,i,s,n),Ft=Q;break;case 13:Q=Ft,K=t.alternate!==null?t.alternate.memoizedState:null,P=t.memoizedState,K===null||K.dehydrated===null||P!==null&&P.dehydrated!==null?Ft=!1:(P=t.deletions,P!==null&&0<P.length&&P[0].tag===18?(Ft=!1,K=K.hydrationErrors,K!==null&&hh(t,t.actualStartTime,n,K)):Ft=!0),as(e,t,i,s,n),Ft=Q;break;case 23:break;case 22:P=t.stateNode,K=t.alternate,t.memoizedState!==null?P._visibility&on?as(e,t,i,s,n):Na(e,t,i,s,n):P._visibility&on?as(e,t,i,s,n):(P._visibility|=on,lo(e,t,i,s,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&Pe)===je||Ft||(e=t.actualStartTime,0<=e&&.05<n-e&&Il(t,e,n),0<=Me&&0<=Le&&.05<Le-Me&&Il(t,Me,Le))),Q&2048&&Od(K,t);break;case 24:as(e,t,i,s,n),Q&2048&&kd(t.alternate,t);break;default:as(e,t,i,s,n)}(t.mode&Pe)!==je&&((e=!Ft&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(i=t.actualStartTime,0<=i&&.05<n-i&&vs(t,i,n,"Mount")),0<=Me&&0<=Le&&((Tt||.05<Ot)&&_s(t,Me,Le,Ot,Dt),e&&.05<Le-Me&&vs(t,Me,Le,"Mount"))),Ti(r),Ss(l),Dt=p,Tt=x,Vn=R}function lo(e,t,i,s,n,r){for(n=n&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child)),t=t.child;t!==null;){var l=t.sibling;xg(e,t,i,s,n,l!==null?l.actualStartTime:r),t=l}}function xg(e,t,i,s,n,r){var l=Ri(),p=ws(),x=Es(),R=Ns(),Q=Vn;n&&(t.mode&Pe)!==je&&0<t.actualStartTime&&(t.flags&1)!==0&&$l(t,t.actualStartTime,r,Ft,i);var K=t.flags;switch(t.tag){case 0:case 11:case 15:lo(e,t,i,s,n,r),lg(t,vi);break;case 23:break;case 22:var P=t.stateNode;t.memoizedState!==null?P._visibility&on?lo(e,t,i,s,n,r):Na(e,t,i,s,r):(P._visibility|=on,lo(e,t,i,s,n,r)),n&&K&2048&&Od(t.alternate,t);break;case 24:lo(e,t,i,s,n,r),n&&K&2048&&kd(t.alternate,t);break;default:lo(e,t,i,s,n,r)}(t.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(t,Me,Le,Ot,Dt),Ti(l),Ss(p),Dt=x,Tt=R,Vn=Q}function Na(e,t,i,s,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var r=t.child;r!==null;){t=r.sibling;var l=e,p=i,x=s,R=t!==null?t.actualStartTime:n,Q=Vn;(r.mode&Pe)!==je&&0<r.actualStartTime&&(r.flags&1)!==0&&$l(r,r.actualStartTime,R,Ft,p);var K=r.flags;switch(r.tag){case 22:Na(l,r,p,x,R),K&2048&&Od(r.alternate,r);break;case 24:Na(l,r,p,x,R),K&2048&&kd(r.alternate,r);break;default:Na(l,r,p,x,R)}Vn=Q,r=t}}function co(e,t,i){if(e.subtreeFlags&ml)for(e=e.child;e!==null;)Dg(e,t,i),e=e.sibling}function Dg(e,t,i){switch(e.tag){case 26:co(e,t,i),e.flags&ml&&e.memoizedState!==null&&YS(i,ds,e.memoizedState,e.memoizedProps);break;case 5:co(e,t,i);break;case 3:case 4:var s=ds;ds=Mc(e.stateNode.containerInfo),co(e,t,i),ds=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=ml,ml=16777216,co(e,t,i),ml=s):co(e,t,i));break;default:co(e,t,i)}}function Og(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 Ca(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var s=t[i],n=Ri();Jt=s,Tg(s,e),(s.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&vs(s,Me,Le,"Unmount"),Ti(n)}Og(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kg(e),e=e.sibling}function kg(e){var t=Ri(),i=ws(),s=Es(),n=Ns();switch(e.tag){case 0:case 11:case 15:Ca(e),e.flags&2048&&Nd(e,e.return,vi|es);break;case 3:var r=Zs();Ca(e),e.stateNode.passiveEffectDuration+=Kl(r);break;case 12:r=Zs(),Ca(e),e.stateNode.passiveEffectDuration+=ha(r);break;case 22:r=e.stateNode,e.memoizedState!==null&&r._visibility&on&&(e.return===null||e.return.tag!==13)?(r._visibility&=~on,xc(e),(e.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&vs(e,Me,Le,"Disconnect")):Ca(e);break;default:Ca(e)}(e.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(e,Me,Le,Ot,Dt),Ti(t),Ss(i),Tt=n,Dt=s}function xc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var s=t[i],n=Ri();Jt=s,Tg(s,e),(s.mode&Pe)!==je&&0<=Me&&0<=Le&&.05<Le-Me&&vs(s,Me,Le,"Unmount"),Ti(n)}Og(e)}for(e=e.child;e!==null;)Rg(e),e=e.sibling}function Rg(e){var t=Ri(),i=ws(),s=Es(),n=Ns();switch(e.tag){case 0:case 11:case 15:Nd(e,e.return,vi),xc(e);break;case 22:var r=e.stateNode;r._visibility&on&&(r._visibility&=~on,xc(e));break;default:xc(e)}(e.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(e,Me,Le,Ot,Dt),Ti(t),Ss(i),Tt=n,Dt=s}function Tg(e,t){for(;Jt!==null;){var i=Jt,s=i,n=t,r=Ri(),l=ws(),p=Es(),x=Ns();switch(s.tag){case 0:case 11:case 15:Nd(s,n,vi);break;case 23:case 22:s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(n=s.memoizedState.cachePool.pool,n!=null&&vr(n));break;case 24:ua(s.memoizedState.cache)}if((s.mode&Pe)!==je&&0<=Me&&0<=Le&&(Tt||.05<Ot)&&_s(s,Me,Le,Ot,Dt),Ti(r),Ss(l),Tt=x,Dt=p,s=i.child,s!==null)s.return=i,Jt=s;else e:for(i=e;Jt!==null;){if(s=Jt,r=s.sibling,l=s.return,gg(s),s===i){Jt=null;break e}if(r!==null){r.return=l,Jt=r;break e}Jt=l}}}function rS(){OE.forEach(function(e){return e()})}function Ag(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||he.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Mi(e){if((at&Gt)!==ei&&Ye!==0)return Ye&-Ye;var t=he.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),jd()):wn()}function Mg(){if(xi===0)if((Ye&536870912)===0||Ze){var e=Wc;Wc<<=1,(Wc&3932160)===0&&(Wc=262144),xi=e}else xi=536870912;return e=Bi.current,e!==null&&(e.flags|=32),xi}function Rt(e,t,i){if(Xo&&console.error("useInsertionEffect must not schedule updates."),ym&&(Ru=!0),(e===gt&&(mt===Vr||mt===Hr)||e.cancelPendingCommit!==null)&&(ho(e,0),Tn(e,Ye,xi,!1)),dt(e,i),(at&Gt)!==ei&&e===gt){if(zs)switch(t.tag){case 0:case 11:case 15:e=Ge&&M(Ge)||"Unknown",oy.has(e)||(oy.add(e),t=M(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:ry||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),ry=!0)}}else js&&cr(e,t,i),pS(t),e===gt&&((at&Gt)===ei&&(Kn|=i),kt===Gn&&Tn(e,Ye,xi,!1)),Ts(e)}function Ug(e,t,i){if((at&(Gt|Hi))!==ei)throw Error("Should not already be working.");if(Ye!==0&&Ge!==null){var s=Ge,n=Kt();switch(Z_){case gl:case Vr:var r=el;wt&&((s=s._debugTask)?s.run(console.timeStamp.bind(console,"Suspended",r,n,Yi,void 0,"primary-light")):console.timeStamp("Suspended",r,n,Yi,void 0,"primary-light"));break;case Hr:r=el,wt&&((s=s._debugTask)?s.run(console.timeStamp.bind(console,"Action",r,n,Yi,void 0,"primary-light")):console.timeStamp("Action",r,n,Yi,void 0,"primary-light"));break;default:wt&&(s=n-el,3>s||console.timeStamp("Blocked",el,n,Yi,void 0,5>s?"primary-light":10>s?"primary":100>s?"primary-dark":"error"))}}r=(i=!i&&(t&127)===0&&(t&e.expiredLanes)===0||it(e,t))?aS(e,t):Td(e,t,!0);var l=i;do{if(r===gn){Fo&&!i&&Tn(e,t,0,!1),t=mt,el=Vt(),Z_=t;break}else{if(s=Kt(),n=e.current.alternate,l&&!oS(n)){rs(t),n=Zt,r=s,!wt||r<=n||(Ut?Ut.run(console.timeStamp.bind(console,"Teared Render",n,r,st,et,"error")):console.timeStamp("Teared Render",n,r,st,et,"error")),Nr(t,s),r=Td(e,t,!1),l=!1;continue}if(r===Br){if(l=t,e.errorRecoveryDisabledLanes&l)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){rs(t),dh(Zt,s,t,Ut),Nr(t,s),t=p;e:{s=e,r=l,l=_l;var x=s.current.memoizedState.isDehydrated;if(x&&(ho(s,p).flags|=256),p=Td(s,p,!1),p!==Br){if(dm&&!x){s.errorRecoveryDisabledLanes|=r,Kn|=r,r=Gn;break e}s=_i,_i=l,s!==null&&(_i===null?_i=s:_i.push.apply(_i,s))}r=p}if(l=!1,r!==Br)continue;s=Kt()}}if(r===bl){rs(t),dh(Zt,s,t,Ut),Nr(t,s),ho(e,0),Tn(e,t,0,!0);break}e:{switch(i=e,r){case gn:case bl:throw Error("Root did not complete. This is a bug in React.");case Gn:if((t&4194048)!==t)break;case Su:rs(t),Up(Zt,s,t,Ut),Nr(t,s),n=t,(n&127)!==0?au=s:(n&4194048)!==0&&(lu=s),Tn(i,t,xi,!Xn);break e;case Br:_i=null;break;case wu:case Y0:break;default:throw Error("Unknown root exit status.")}if(he.actQueue!==null)Ad(i,n,t,_i,yl,Cu,xi,Kn,Ir,r,null,null,Zt,s);else{if((t&62914560)===t&&(l=xu+X0-Kt(),10<l)){if(Tn(i,t,xi,!Xn),Te(i,0,!0)!==0)break e;fs=t,i.timeoutHandle=my(zg.bind(null,i,n,_i,yl,Cu,t,xi,Kn,Ir,Xn,r,"Throttled",Zt,s),l);break e}zg(i,n,_i,yl,Cu,t,xi,Kn,Ir,Xn,r,null,Zt,s)}}}break}while(!0);Ts(e)}function zg(e,t,i,s,n,r,l,p,x,R,Q,K,P,re){e.timeoutHandle=Yr;var Se=t.subtreeFlags,Ne=null;if((Se&8192||(Se&16785408)===16785408)&&(Ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gs},Dg(t,r,Ne),Se=(r&62914560)===r?xu-Kt():(r&4194048)===r?G0-Kt():0,Se=FS(Ne,Se),Se!==null)){fs=r,e.cancelPendingCommit=Se(Ad.bind(null,e,t,r,i,s,n,l,p,x,Q,Ne,Ne.waitingForViewTransition?"Waiting for the previous Animation":0<Ne.count?0<Ne.imgCount?"Suspended on CSS and Images":"Suspended on CSS":Ne.imgCount===1?"Suspended on an Image":0<Ne.imgCount?"Suspended on Images":null,P,re)),Tn(e,r,l,!R);return}Ad(e,t,r,i,s,n,l,p,x,Q,Ne,K,P,re)}function oS(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var n=i[s],r=n.getSnapshot;n=n.value;try{if(!pi(r(),n))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 Tn(e,t,i,s){t&=~fm,t&=~Kn,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var n=t;0<n;){var r=31-di(n),l=1<<r;s[r]=-1,n&=~l}i!==0&&Ct(e,i,t)}function uo(){return(at&(Gt|Hi))===ei?(Oa(0),!1):!0}function Rd(){if(Ge!==null){if(mt===Ci)var e=Ge.return;else e=Ge,Gl(),Ih(e),Bo=null,cl=0,e=Ge;for(;e!==null;)og(e.alternate,e),e=e.return;Ge=null}}function Nr(e,t){(e&127)!==0&&(kr=t),(e&4194048)!==0&&(hn=t),(e&62914560)!==0&&(Q_=t),(e&2080374784)!==0&&(K_=t)}function ho(e,t){wt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",et,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",et,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",et,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",et,"primary-light"));var i=Zt;if(Zt=Vt(),Ye!==0&&0<i){if(rs(Ye),kt===wu||kt===Gn)Up(i,Zt,t,Ut);else{var s=Zt,n=Ut;if(wt&&!(s<=i)){var r=(t&738197653)===t?"tertiary-dark":"primary-dark",l=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,l,i,s,st,et,r)):console.timeStamp(l,i,s,st,et,r)}}Nr(Ye,Zt)}if(i=Ut,Ut=null,(t&127)!==0){Ut=Ka,n=0<=Is&&Is<kr?kr:Is,s=0<=Rr&&Rr<kr?kr:Rr,r=0<=s?s:0<=n?n:Zt,0<=au?(rs(2),zp(au,r,t,i)):cu&127,i=n;var p=s,x=Za,R=0<zo,Q=Pn===Qa,K=Pn===ou;if(n=Zt,s=Ka,r=Wf,l=Yf,wt){if(st="Blocking",0<i?i>n&&(i=n):i=n,0<p?p>i&&(p=i):p=i,x!==null&&i>p){var P=R?"secondary-light":"warning";s?s.run(console.timeStamp.bind(console,R?"Consecutive":"Event: "+x,p,i,st,et,P)):console.timeStamp(R?"Consecutive":"Event: "+x,p,i,st,et,P)}n>i&&(p=Q?"error":(t&738197653)===t?"tertiary-light":"primary-light",Q=K?"Promise Resolved":Q?"Cascading Update":5<n-i?"Update Blocked":"Update",K=[],l!=null&&K.push(["Component name",l]),r!=null&&K.push(["Method name",r]),i={start:i,end:n,detail:{devtools:{properties:K,track:st,trackGroup:et,color:p}}},s?s.run(performance.measure.bind(performance,Q,i)):performance.measure(Q,i))}Is=-1.1,Pn=0,Yf=Wf=null,au=-1.1,zo=Rr,Rr=-1.1,kr=Vt()}if((t&4194048)!==0&&(Ut=Ja,n=0<=dn&&dn<hn?hn:dn,i=0<=Zi&&Zi<hn?hn:Zi,s=0<=Wn&&Wn<hn?hn:Wn,r=0<=s?s:0<=i?i:Zt,0<=lu?(rs(256),zp(lu,r,t,Ut)):cu&4194048,K=s,p=Tr,x=0<Yn,R=Ff===ou,r=Zt,s=Ja,l=G_,Q=X_,wt&&(st="Transition",0<i?i>r&&(i=r):i=r,0<n?n>i&&(n=i):n=i,0<K?K>n&&(K=n):K=n,n>K&&p!==null&&(P=x?"secondary-light":"warning",s?s.run(console.timeStamp.bind(console,x?"Consecutive":"Event: "+p,K,n,st,et,P)):console.timeStamp(x?"Consecutive":"Event: "+p,K,n,st,et,P)),i>n&&(s?s.run(console.timeStamp.bind(console,"Action",n,i,st,et,"primary-dark")):console.timeStamp("Action",n,i,st,et,"primary-dark")),r>i&&(n=R?"Promise Resolved":5<r-i?"Update Blocked":"Update",K=[],Q!=null&&K.push(["Component name",Q]),l!=null&&K.push(["Method name",l]),i={start:i,end:r,detail:{devtools:{properties:K,track:st,trackGroup:et,color:"primary-light"}}},s?s.run(performance.measure.bind(performance,n,i)):performance.measure(n,i))),Zi=dn=-1.1,Ff=0,lu=-1.1,Yn=Wn,Wn=-1.1,hn=Vt()),(t&62914560)!==0&&(cu&62914560)!==0&&(rs(4194304),fh(Q_,Zt)),(t&2080374784)!==0&&(cu&2080374784)!==0&&(rs(268435456),fh(K_,Zt)),i=e.timeoutHandle,i!==Yr&&(e.timeoutHandle=Yr,IE(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),fs=0,Rd(),gt=e,Ge=i=Xs(e.current,null),Ye=t,mt=Ci,Ii=null,Xn=!1,Fo=it(e,t),dm=!1,kt=gn,Ir=xi=fm=Kn=Qn=0,_i=_l=null,Cu=!1,(t&8)!==0&&(t|=t&32),s=e.entangledLanes,s!==0)for(e=e.entanglements,s&=t;0<s;)n=31-di(s),r=1<<n,t|=e[n],s&=~r;return qs=t,ql(),e=$_(),1e3<e-I_&&(he.recentlyCreatedOwnerStacks=0,I_=e),us.discardPendingWarnings(),i}function Lg(e,t){Be=null,he.H=fl,he.getCurrentStack=null,zs=!1,Li=null,t===jo||t===fu?(t=sb(),mt=gl):t===Kf?(t=sb(),mt=F0):mt=t===am?hm:t!==null&&typeof t=="object"&&typeof t.then=="function"?vl:Eu,Ii=t;var i=Ge;i===null?(kt=bl,_c(e,ki(t,e.current))):i.mode&Pe&&Oh(i)}function jg(){var e=Bi.current;return e===null?!0:(Ye&4194048)===Ye?Ji===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?e===Ji:!1}function Bg(){var e=he.H;return he.H=fl,e===null?fl:e}function Vg(){var e=he.A;return he.A=DE,e}function Dc(e){Ut===null&&(Ut=e._debugTask==null?null:e._debugTask)}function Oc(){kt=Gn,Xn||(Ye&4194048)!==Ye&&Bi.current!==null||(Fo=!0),(Qn&134217727)===0&&(Kn&134217727)===0||gt===null||Tn(gt,Ye,xi,!1)}function Td(e,t,i){var s=at;at|=Gt;var n=Bg(),r=Vg();if(gt!==e||Ye!==t){if(js){var l=e.memoizedUpdaters;0<l.size&&(Da(e,Ye),l.clear()),Xr(e,t)}yl=null,ho(e,t)}t=!1,l=kt;e:do try{if(mt!==Ci&&Ge!==null){var p=Ge,x=Ii;switch(mt){case hm:Rd(),l=Su;break e;case gl:case Vr:case Hr:case vl:Bi.current===null&&(t=!0);var R=mt;if(mt=Ci,Ii=null,fo(e,p,x,R),i&&Fo){l=gn;break e}break;default:R=mt,mt=Ci,Ii=null,fo(e,p,x,R)}}Hg(),l=kt;break}catch(Q){Lg(e,Q)}while(!0);return t&&e.shellSuspendCounter++,Gl(),at=s,he.H=n,he.A=r,Ge===null&&(gt=null,Ye=0,ql()),l}function Hg(){for(;Ge!==null;)Ig(Ge)}function aS(e,t){var i=at;at|=Gt;var s=Bg(),n=Vg();if(gt!==e||Ye!==t){if(js){var r=e.memoizedUpdaters;0<r.size&&(Da(e,Ye),r.clear()),Xr(e,t)}yl=null,Du=Kt()+Q0,ho(e,t)}else Fo=it(e,t);e:do try{if(mt!==Ci&&Ge!==null)t:switch(t=Ge,r=Ii,mt){case Eu:mt=Ci,Ii=null,fo(e,t,r,Eu);break;case Vr:case Hr:if(tb(r)){mt=Ci,Ii=null,$g(t);break}t=function(){mt!==Vr&&mt!==Hr||gt!==e||(mt=Nu),Ts(e)},r.then(t,t);break e;case gl:mt=Nu;break e;case F0:mt=um;break e;case Nu:tb(r)?(mt=Ci,Ii=null,$g(t)):(mt=Ci,Ii=null,fo(e,t,r,Nu));break;case um:var l=null;switch(Ge.tag){case 26:l=Ge.memoizedState;case 5:case 27:var p=Ge;if(l?Uv(l):p.stateNode.complete){mt=Ci,Ii=null;var x=p.sibling;if(x!==null)Ge=x;else{var R=p.return;R!==null?(Ge=R,kc(R)):Ge=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}mt=Ci,Ii=null,fo(e,t,r,um);break;case vl:mt=Ci,Ii=null,fo(e,t,r,vl);break;case hm:Rd(),kt=Su;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}he.actQueue!==null?Hg():lS();break}catch(Q){Lg(e,Q)}while(!0);return Gl(),he.H=s,he.A=n,at=i,Ge!==null?gn:(gt=null,Ye=0,ql(),kt)}function lS(){for(;Ge!==null&&!a1();)Ig(Ge)}function Ig(e){var t=e.alternate;(e.mode&Pe)!==je?(Dh(e),t=oe(e,wd,t,e,qs),Oh(e)):t=oe(e,wd,t,e,qs),e.memoizedProps=e.pendingProps,t===null?kc(e):Ge=t}function $g(e){var t=oe(e,cS,e);e.memoizedProps=e.pendingProps,t===null?kc(e):Ge=t}function cS(e){var t=e.alternate,i=(e.mode&Pe)!==je;switch(i&&Dh(e),e.tag){case 15:case 0:t=Jb(t,e,e.pendingProps,e.type,void 0,Ye);break;case 11:t=Jb(t,e,e.pendingProps,e.type.render,e.ref,Ye);break;case 5:Ih(e);default:og(t,e),e=Ge=Ip(e,qs),t=wd(t,e,qs)}return i&&Oh(e),t}function fo(e,t,i,s){Gl(),Ih(t),Bo=null,cl=0;var n=t.return;try{if(Fw(e,n,t,i,Ye)){kt=bl,_c(e,ki(i,e.current)),Ge=null;return}}catch(r){if(n!==null)throw Ge=n,r;kt=bl,_c(e,ki(i,e.current)),Ge=null;return}t.flags&32768?(Ze||s===Eu?e=!0:Fo||(Ye&536870912)!==0?e=!1:(Xn=e=!0,(s===Vr||s===Hr||s===gl||s===vl)&&(s=Bi.current,s!==null&&s.tag===13&&(s.flags|=16384))),qg(t,e)):kc(t)}function kc(e){var t=e;do{if((t.flags&32768)!==0){qg(t,Xn);return}var i=t.alternate;if(e=t.return,Dh(t),i=oe(t,Qw,i,t,qs),(t.mode&Pe)!==je&&Qp(t),i!==null){Ge=i;return}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);kt===gn&&(kt=Y0)}function qg(e,t){do{var i=Kw(e.alternate,e);if(i!==null){i.flags&=32767,Ge=i;return}if((e.mode&Pe)!==je){Qp(e),i=e.actualDuration;for(var s=e.child;s!==null;)i+=s.actualDuration,s=s.sibling;e.actualDuration=i}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ge=e;return}Ge=e=i}while(e!==null);kt=Su,Ge=null}function Ad(e,t,i,s,n,r,l,p,x,R,Q,K,P,re){e.cancelPendingCommit=null;do xa();while(Pt!==Jn);if(us.flushLegacyContextWarning(),us.flushPendingUnsafeLifecycleWarnings(),(at&(Gt|Hi))!==ei)throw Error("Should not already be working.");if(rs(i),R===Br?dh(P,re,i,Ut):s!==null?Uw(P,re,i,s,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,Ut):Mw(P,re,i,Ut),t!==null){if(i===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(r=t.lanes|t.childLanes,r|=Hf,Nt(e,i,r,l,p,x),e===gt&&(Ge=gt=null,Ye=0),Go=t,er=e,fs=i,bm=r,vm=n,iy=s,gm=re,sy=K,ms=Ou,ny=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mS(_o,function(){return xl=window.event,ms===Ou&&(ms=pm),Gg(),null})):(e.callbackNode=null,e.callbackPriority=0),un=null,qn=Vt(),K!==null&&zw(re,qn,K,Ut),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=he.T,he.T=null,n=ht.p,ht.p=Wi,l=at,at|=Hi;try{sS(e,t,i)}finally{at=l,ht.p=n,he.T=s}}Pt=Z0,Pg(),Wg(),Yg()}}function Pg(){if(Pt===Z0){Pt=Jn;var e=er,t=Go,i=fs,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=he.T,he.T=null;var n=ht.p;ht.p=Wi;var r=at;at|=Hi;try{Wo=i,Yo=e,Zl(),wg(t,e),Yo=Wo=null,i=km;var l=Tp(e.containerInfo),p=i.focusedElem,x=i.selectionRange;if(l!==p&&p&&p.ownerDocument&&Rp(p.ownerDocument.documentElement,p)){if(x!==null&&ch(p)){var R=x.start,Q=x.end;if(Q===void 0&&(Q=R),"selectionStart"in p)p.selectionStart=R,p.selectionEnd=Math.min(Q,p.value.length);else{var K=p.ownerDocument||document,P=K&&K.defaultView||window;if(P.getSelection){var re=P.getSelection(),Se=p.textContent.length,Ne=Math.min(x.start,Se),_t=x.end===void 0?Ne:Math.min(x.end,Se);!re.extend&&Ne>_t&&(l=_t,_t=Ne,Ne=l);var tt=kp(p,Ne),q=kp(p,_t);if(tt&&q&&(re.rangeCount!==1||re.anchorNode!==tt.node||re.anchorOffset!==tt.offset||re.focusNode!==q.node||re.focusOffset!==q.offset)){var Y=K.createRange();Y.setStart(tt.node,tt.offset),re.removeAllRanges(),Ne>_t?(re.addRange(Y),re.extend(q.node,q.offset)):(Y.setEnd(q.node,q.offset),re.addRange(Y))}}}}for(K=[],re=p;re=re.parentNode;)re.nodeType===1&&K.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<K.length;p++){var X=K[p];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Pu=!!Om,km=Om=null}finally{at=r,ht.p=n,he.T=s}}e.current=t,Pt=J0}}function Wg(){if(Pt===J0){Pt=Jn;var e=ny;if(e!==null){qn=Vt();var t=cn,i=qn;!wt||i<=t||console.timeStamp(e,t,i,st,et,"secondary-light")}e=er,t=Go,i=fs;var s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=he.T,he.T=null;var n=ht.p;ht.p=Wi;var r=at;at|=Hi;try{Wo=i,Yo=e,Zl(),bg(e,t.alternate,t),Yo=Wo=null}finally{at=r,ht.p=n,he.T=s}}e=gm,t=sy,cn=Vt(),e=t===null?e:qn,t=cn,i=ms===mm,s=Ut,un!==null?Lp(e,t,un,!1,s):!wt||t<=e||(s?s.run(console.timeStamp.bind(console,i?"Commit Interrupted View Transition":"Commit",e,t,st,et,i?"error":"secondary-dark")):console.timeStamp(i?"Commit Interrupted View Transition":"Commit",e,t,st,et,i?"error":"secondary-dark")),Pt=ey}}function Yg(){if(Pt===ty||Pt===ey){if(Pt===ty){var e=cn;cn=Vt();var t=cn,i=ms===mm;!wt||t<=e||console.timeStamp(i?"Interrupted View Transition":"Starting Animation",e,t,st,et,i?" error":"secondary-light"),ms!==mm&&(ms=K0)}Pt=Jn,l1(),e=er;var s=Go;t=fs,i=iy;var n=s.actualDuration!==0||(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0;n?Pt=ku:(Pt=Jn,Go=er=null,Fg(e,e.pendingLanes),$r=0,Sl=null);var r=e.pendingLanes;if(r===0&&(Zn=null),n||Zg(e),r=Qr(t),s=s.stateNode,ai&&typeof ai.onCommitFiberRoot=="function")try{var l=(s.current.flags&128)===128;switch(r){case Wi:var p=vf;break;case Bs:p=_f;break;case nn:p=_o;break;case Fc:p=yf;break;default:p=_o}ai.onCommitFiberRoot(yo,s,p,l)}catch(K){Ls||(Ls=!0,console.error("React instrumentation encountered an error: %o",K))}if(js&&e.memoizedUpdaters.clear(),rS(),i!==null){l=he.T,p=ht.p,ht.p=Wi,he.T=null;try{var x=e.onRecoverableError;for(s=0;s<i.length;s++){var R=i[s],Q=uS(R.stack);oe(R.source,x,R.value,Q)}}finally{he.T=l,ht.p=p}}(fs&3)!==0&&xa(),Ts(e),r=e.pendingLanes,(t&261930)!==0&&(r&42)!==0?(hu=!0,e===_m?wl++:(wl=0,_m=e)):wl=0,n||Nr(t,cn),Oa(0)}}function uS(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 Fg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function xa(){return Pg(),Wg(),Yg(),Gg()}function Gg(){if(Pt!==ku)return!1;var e=er,t=bm;bm=0;var i=Qr(fs),s=nn>i?nn:i;i=he.T;var n=ht.p;try{ht.p=s,he.T=null;var r=vm;vm=null,s=er;var l=fs;if(Pt=Jn,Go=er=null,fs=0,(at&(Gt|Hi))!==ei)throw Error("Cannot flush passive effects while already rendering.");rs(l),ym=!0,Ru=!1;var p=0;if(un=null,p=Kt(),ms===K0)fh(cn,p,yE);else{var x=cn,R=p,Q=ms===pm;!wt||R<=x||(Ut?Ut.run(console.timeStamp.bind(console,Q?"Waiting for Paint":"Waiting",x,R,st,et,"secondary-light")):console.timeStamp(Q?"Waiting for Paint":"Waiting",x,R,st,et,"secondary-light"))}x=at,at|=Hi;var K=s.current;Zl(),kg(K);var P=s.current;K=gm,Zl(),Cg(s,P,l,r,K),Zg(s),at=x;var re=Kt();if(P=p,K=Ut,un!==null?Lp(P,re,un,!0,K):!wt||re<=P||(K?K.run(console.timeStamp.bind(console,"Remaining Effects",P,re,st,et,"secondary-dark")):console.timeStamp("Remaining Effects",P,re,st,et,"secondary-dark")),Nr(l,re),Oa(0,!1),Ru?s===Sl?$r++:($r=0,Sl=s):$r=0,Ru=ym=!1,ai&&typeof ai.onPostCommitFiberRoot=="function")try{ai.onPostCommitFiberRoot(yo,s)}catch(Ne){Ls||(Ls=!0,console.error("React instrumentation encountered an error: %o",Ne))}var Se=s.current.stateNode;return Se.effectDuration=0,Se.passiveEffectDuration=0,!0}finally{ht.p=n,he.T=i,Fg(e,t)}}function Xg(e,t,i){t=ki(i,t),Kp(t),t=ud(e.stateNode,t,2),e=Dn(e,t,2),e!==null&&(dt(e,2),Ts(e))}function ut(e,t,i){if(Xo=!1,e.tag===3)Xg(e,e,i);else{for(;t!==null;){if(t.tag===3){Xg(t,e,i);return}if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Zn===null||!Zn.has(s))){e=ki(i,e),Kp(e),i=hd(2),s=Dn(t,i,2),s!==null&&(dd(i,s,t,e),dt(s,2),Ts(s));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.
|
|
199
|
-
|
|
200
|
-
Error message:
|
|
201
|
-
|
|
202
|
-
%s`,i)}}function Md(e,t,i){var s=e.pingCache;if(s===null){s=e.pingCache=new kE;var n=new Set;s.set(t,n)}else n=s.get(t),n===void 0&&(n=new Set,s.set(t,n));n.has(i)||(dm=!0,n.add(i),s=hS.bind(null,e,t,i),js&&Da(e,i),t.then(s,s))}function hS(e,t,i){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,(i&127)!==0?0>Is&&(kr=Is=Vt(),Ka=ru("Promise Resolved"),Pn=ou):(i&4194048)!==0&&0>Zi&&(hn=Zi=Vt(),Ja=ru("Promise Resolved"),Ff=ou),Ag()&&he.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
203
|
-
|
|
204
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
205
|
-
|
|
206
|
-
act(() => {
|
|
207
|
-
/* finish loading suspended data */
|
|
208
|
-
});
|
|
209
|
-
/* assert on the output */
|
|
210
|
-
|
|
211
|
-
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`),gt===e&&(Ye&i)===i&&(kt===Gn||kt===wu&&(Ye&62914560)===Ye&&Kt()-xu<X0?(at&Gt)===ei&&ho(e,0):fm|=i,Ir===Ye&&(Ir=0)),Ts(e)}function Qg(e,t){t===0&&(t=Xe()),e=oi(e,t),e!==null&&(dt(e,t),Ts(e))}function dS(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Qg(e,i)}function fS(e,t){var i=0;switch(e.tag){case 31:case 13:var s=e.stateNode,n=e.memoizedState;n!==null&&(i=n.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}s!==null&&s.delete(t),Qg(e,i)}function Ud(e,t,i){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var s=e,n=t,r=n.type===Ic;r=i||r,n.tag!==22?n.flags&67108864?r&&oe(n,Kg,s,n):Ud(s,n,r):n.memoizedState===null&&(r&&n.flags&8192?oe(n,Kg,s,n):n.subtreeFlags&67108864&&oe(n,Ud,s,n,r)),t=t.sibling}}function Kg(e,t){xe(!0);try{Eg(t),Rg(t),Ng(e,t.alternate,t,!1),xg(e,t,0,null,!1,0)}finally{xe(!1)}}function Zg(e){var t=!0;e.current.mode&(li|cs)||(t=!1),Ud(e,e.current,t)}function Jg(e){if((at&Gt)===ei){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=M(e)||"ReactComponent",Tu!==null){if(Tu.has(t))return;Tu.add(t)}else Tu=new Set([t]);oe(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 Da(e,t){js&&e.memoizedUpdaters.forEach(function(i){cr(e,i,t)})}function mS(e,t){var i=he.actQueue;return i!==null?(i.push(t),AE):gf(e,t)}function pS(e){Ag()&&he.actQueue===null&&oe(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
212
|
-
|
|
213
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
214
|
-
|
|
215
|
-
act(() => {
|
|
216
|
-
/* fire events that update state */
|
|
217
|
-
});
|
|
218
|
-
/* assert on the output */
|
|
219
|
-
|
|
220
|
-
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`,M(e))})}function Ts(e){e!==Qo&&e.next===null&&(Qo===null?Au=Qo=e:Qo=Qo.next=e),Mu=!0,he.actQueue!==null?Sm||(Sm=!0,sv()):wm||(wm=!0,sv())}function Oa(e,t){if(!Em&&Mu){Em=!0;do for(var i=!1,s=Au;s!==null;){if(e!==0){var n=s.pendingLanes;if(n===0)var r=0;else{var l=s.suspendedLanes,p=s.pingedLanes;r=(1<<31-di(42|e)+1)-1,r&=n&~(l&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(i=!0,iv(s,r))}else r=Ye,r=Te(s,s===gt?r:0,s.cancelPendingCommit!==null||s.timeoutHandle!==Yr),(r&3)===0||it(s,r)||(i=!0,iv(s,r));s=s.next}while(i);Em=!1}}function bS(){xl=window.event,zd()}function zd(){Mu=Sm=wm=!1;var e=0;tr!==0&&ES()&&(e=tr);for(var t=Kt(),i=null,s=Au;s!==null;){var n=s.next,r=ev(s,t);r===0?(s.next=null,i===null?Au=n:i.next=n,n===null&&(Qo=i)):(i=s,(e!==0||(r&3)!==0)&&(Mu=!0)),s=n}Pt!==Jn&&Pt!==ku||Oa(e),tr!==0&&(tr=0)}function ev(e,t){for(var i=e.suspendedLanes,s=e.pingedLanes,n=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var l=31-di(r),p=1<<l,x=n[l];x===-1?((p&i)===0||(p&s)!==0)&&(n[l]=rt(p,t)):x<=t&&(e.expiredLanes|=p),r&=~p}if(t=gt,i=Ye,i=Te(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Yr),s=e.callbackNode,i===0||e===t&&(mt===Vr||mt===Hr)||e.cancelPendingCommit!==null)return s!==null&&Ld(s),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||it(e,i)){if(t=i&-i,t!==e.callbackPriority||he.actQueue!==null&&s!==Nm)Ld(s);else return t;switch(Qr(i)){case Wi:case Bs:i=_f;break;case nn:i=_o;break;case Fc:i=yf;break;default:i=_o}return s=tv.bind(null,e),he.actQueue!==null?(he.actQueue.push(s),i=Nm):i=gf(i,s),e.callbackPriority=t,e.callbackNode=i,t}return s!==null&&Ld(s),e.callbackPriority=2,e.callbackNode=null,2}function tv(e,t){if(hu=uu=!1,xl=window.event,Pt!==Jn&&Pt!==ku)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(ms===Ou&&(ms=pm),xa()&&e.callbackNode!==i)return null;var s=Ye;return s=Te(e,e===gt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Yr),s===0?null:(Ug(e,s,t),ev(e,Kt()),e.callbackNode!=null&&e.callbackNode===i?tv.bind(null,e):null)}function iv(e,t){if(xa())return null;uu=hu,hu=!1,Ug(e,t,!0)}function Ld(e){e!==Nm&&e!==null&&o1(e)}function sv(){he.actQueue!==null&&he.actQueue.push(function(){return zd(),null}),$E(function(){(at&(Gt|Hi))!==ei?gf(vf,bS):zd()})}function jd(){if(tr===0){var e=Ar;e===0&&(e=Pc,Pc<<=1,(Pc&261888)===0&&(Pc=256)),tr=e}return tr}function nv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ze(e,"action"),oa(""+e))}function rv(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function gS(e,t,i,s,n){if(t==="submit"&&i&&i.stateNode===n){var r=nv((n[fi]||null).action),l=s.submitter;l&&(t=(t=l[fi]||null)?nv(t.formAction):l.getAttribute("formAction"),t!==null&&(r=t,l=null));var p=new Zc("action","action",null,s,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(tr!==0){var x=l?rv(n,l):new FormData(n),R={pending:!0,data:x,method:n.method,action:r};Object.freeze(R),sd(i,R,null,x)}}else typeof r=="function"&&(p.preventDefault(),x=l?rv(n,l):new FormData(n),R={pending:!0,data:x,method:n.method,action:r},Object.freeze(R),sd(i,R,r,x))},currentTarget:n}]})}}function Rc(e,t,i){e.currentTarget=i;try{t(e)}catch(s){Lf(s)}e.currentTarget=null}function ov(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var s=e[i];e:{var n=void 0,r=s.event;if(s=s.listeners,t)for(var l=s.length-1;0<=l;l--){var p=s[l],x=p.instance,R=p.currentTarget;if(p=p.listener,x!==n&&r.isPropagationStopped())break e;x!==null?oe(x,Rc,r,p,R):Rc(r,p,R),n=x}else for(l=0;l<s.length;l++){if(p=s[l],x=p.instance,R=p.currentTarget,p=p.listener,x!==n&&r.isPropagationStopped())break e;x!==null?oe(x,Rc,r,p,R):Rc(r,p,R),n=x}}}}function Je(e,t){Cm.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var i=t[wf];i===void 0&&(i=t[wf]=new Set);var s=e+"__bubble";i.has(s)||(av(t,e,2,!1),i.add(s))}function Bd(e,t,i){Cm.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 s=0;t&&(s|=4),av(i,e,s,t)}function Vd(e){if(!e[Uu]){e[Uu]=!0,s_.forEach(function(i){i!=="selectionchange"&&(Cm.has(i)||Bd(i,!1,e),Bd(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uu]||(t[Uu]=!0,Bd("selectionchange",!1,t))}}function av(e,t,i,s){switch(Hv(t)){case Wi:var n=KS;break;case Bs:n=ZS;break;default:n=tf}i=n.bind(null,t,i,e),n=void 0,!xf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),s?n!==void 0?e.addEventListener(t,i,{capture:!0,passive:n}):e.addEventListener(t,i,!0):n!==void 0?e.addEventListener(t,i,{passive:n}):e.addEventListener(t,i,!1)}function Hd(e,t,i,s,n){var r=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var l=s.tag;if(l===3||l===4){var p=s.stateNode.containerInfo;if(p===n)break;if(l===4)for(l=s.return;l!==null;){var x=l.tag;if((x===3||x===4)&&l.stateNode.containerInfo===n)return;l=l.return}for(;p!==null;){if(l=_e(p),l===null)return;if(x=l.tag,x===5||x===6||x===26||x===27){s=r=l;continue e}p=p.parentNode}}s=s.return}vp(function(){var R=r,Q=ah(i),K=[];e:{var P=H_.get(e);if(P!==void 0){var re=Zc,Se=e;switch(e){case"keypress":if(Bl(i)===0)break e;case"keydown":case"keyup":re=F1;break;case"focusin":Se="focus",re=Rf;break;case"focusout":Se="blur",re=Rf;break;case"beforeblur":case"afterblur":re=Rf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=x_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=z1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=Q1;break;case L_:case j_:case B_:re=B1;break;case V_:re=Z1;break;case"scroll":case"scrollend":re=M1;break;case"wheel":re=eE;break;case"copy":case"cut":case"paste":re=H1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=O_;break;case"toggle":case"beforetoggle":re=iE}var Ne=(t&4)!==0,_t=!Ne&&(e==="scroll"||e==="scrollend"),tt=Ne?P!==null?P+"Capture":null:P;Ne=[];for(var q=R,Y;q!==null;){var X=q;if(Y=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||Y===null||tt===null||(X=aa(q,tt),X!=null&&Ne.push(ka(q,X,Y))),_t)break;q=q.return}0<Ne.length&&(P=new re(P,Se,null,i,Q),K.push({event:P,listeners:Ne}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",re=e==="mouseout"||e==="pointerout",P&&i!==Ha&&(Se=i.relatedTarget||i.fromElement)&&(_e(Se)||Se[jn]))break e;if((re||P)&&(P=Q.window===Q?Q:(P=Q.ownerDocument)?P.defaultView||P.parentWindow:window,re?(Se=i.relatedTarget||i.toElement,re=R,Se=Se?_e(Se):null,Se!==null&&(_t=h(Se),Ne=Se.tag,Se!==_t||Ne!==5&&Ne!==27&&Ne!==6)&&(Se=null)):(re=null,Se=R),re!==Se)){if(Ne=x_,X="onMouseLeave",tt="onMouseEnter",q="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=O_,X="onPointerLeave",tt="onPointerEnter",q="pointer"),_t=re==null?P:Oe(re),Y=Se==null?P:Oe(Se),P=new Ne(X,q+"leave",re,i,Q),P.target=_t,P.relatedTarget=Y,X=null,_e(Q)===R&&(Ne=new Ne(tt,q+"enter",Se,i,Q),Ne.target=Y,Ne.relatedTarget=_t,X=Ne),_t=X,re&&Se)t:{for(Ne=vS,tt=re,q=Se,Y=0,X=tt;X;X=Ne(X))Y++;X=0;for(var fe=q;fe;fe=Ne(fe))X++;for(;0<Y-X;)tt=Ne(tt),Y--;for(;0<X-Y;)q=Ne(q),X--;for(;Y--;){if(tt===q||q!==null&&tt===q.alternate){Ne=tt;break t}tt=Ne(tt),q=Ne(q)}Ne=null}else Ne=null;re!==null&&lv(K,P,re,Ne,!1),Se!==null&&_t!==null&&lv(K,_t,Se,Ne,!0)}}e:{if(P=R?Oe(R):window,re=P.nodeName&&P.nodeName.toLowerCase(),re==="select"||re==="input"&&P.type==="file")var Ee=Cp;else if(Ep(P))if(U_)Ee=Rw;else{Ee=Ow;var Ve=Dw}else re=P.nodeName,!re||re.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?R&&ra(R.elementType)&&(Ee=Cp):Ee=kw;if(Ee&&(Ee=Ee(e,R))){Np(K,Ee,i,Q);break e}Ve&&Ve(e,P,R),e==="focusout"&&R&&P.type==="number"&&R.memoizedProps.value!=null&&th(P,"number",P.value)}switch(Ve=R?Oe(R):window,e){case"focusin":(Ep(Ve)||Ve.contentEditable==="true")&&(Do=Ve,Af=R,Fa=null);break;case"focusout":Fa=Af=Do=null;break;case"mousedown":Mf=!0;break;case"contextmenu":case"mouseup":case"dragend":Mf=!1,Ap(K,i,Q);break;case"selectionchange":if(oE)break;case"keydown":case"keyup":Ap(K,i,Q)}var Ae;if(Tf)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else xo?wp(e,i)&&(ke="onCompositionEnd"):e==="keydown"&&i.keyCode===k_&&(ke="onCompositionStart");ke&&(R_&&i.locale!=="ko"&&(xo||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&xo&&(Ae=_p()):(Bn=Q,Df="value"in Bn?Bn.value:Bn.textContent,xo=!0)),Ve=Tc(R,ke),0<Ve.length&&(ke=new D_(ke,e,null,i,Q),K.push({event:ke,listeners:Ve}),Ae?ke.data=Ae:(Ae=Sp(i),Ae!==null&&(ke.data=Ae)))),(Ae=nE?Ew(e,i):Nw(e,i))&&(ke=Tc(R,"onBeforeInput"),0<ke.length&&(Ve=new $1("onBeforeInput","beforeinput",null,i,Q),K.push({event:Ve,listeners:ke}),Ve.data=Ae)),gS(K,e,R,i,Q)}ov(K,t)})}function ka(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Tc(e,t){for(var i=t+"Capture",s=[];e!==null;){var n=e,r=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||r===null||(n=aa(e,i),n!=null&&s.unshift(ka(e,n,r)),n=aa(e,t),n!=null&&s.push(ka(e,n,r))),e.tag===3)return s;e=e.return}return[]}function vS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lv(e,t,i,s,n){for(var r=t._reactName,l=[];i!==null&&i!==s;){var p=i,x=p.alternate,R=p.stateNode;if(p=p.tag,x!==null&&x===s)break;p!==5&&p!==26&&p!==27||R===null||(x=R,n?(R=aa(i,r),R!=null&&l.unshift(ka(i,R,x))):n||(R=aa(i,r),R!=null&&l.push(ka(i,R,x)))),i=i.return}l.length!==0&&e.push({event:t,listeners:l})}function Id(e,t){_w(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||N_||(N_=!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 i={registrationNameDependencies:Cr,possibleRegistrationNames:Sf};ra(e)||typeof t.is=="string"||ww(e,t,i),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 Qt(e,t,i,s){t!==i&&(i=An(i),An(t)!==i&&(s[e]=t))}function _S(e,t,i){t.forEach(function(s){i[hv(s)]=s==="style"?qd(e):e.getAttribute(s)})}function As(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 cv(e,t){return e=e.namespaceURI===Xc||e.namespaceURI===So?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function An(e){return nt(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.",Ue(e)),Fe(e)),(typeof e=="string"?e:""+e).replace(ME,`
|
|
221
|
-
`).replace(UE,"")}function uv(e,t){return t=An(t),An(e)===t}function pt(e,t,i,s,n,r){switch(i){case"children":typeof s=="string"?(jl(s,t,!1),t==="body"||t==="textarea"&&s===""||na(e,s)):(typeof s=="number"||typeof s=="bigint")&&(jl(""+s,t,!1),t!=="body"&&na(e,""+s));break;case"className":Ul(e,"class",s);break;case"tabIndex":Ul(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Ul(e,i,s);break;case"style":pp(e,s,r);break;case"data":if(t!=="object"){Ul(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||i!=="href")){console.error(i==="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.',i,i),e.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}ze(s,i),s=oa(""+s),e.setAttribute(i,s);break;case"action":case"formAction":if(s!=null&&(t==="form"?i==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof s=="function"&&(n.encType==null&&n.method==null||ju||(ju=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),n.target==null||Lu||(Lu=!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"?i==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||n.type==="submit"||n.type==="image"||zu?t!=="button"||n.type==null||n.type==="submit"||zu?typeof s=="function"&&(n.name==null||cy||(cy=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),n.formEncType==null&&n.formMethod==null||ju||(ju=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),n.formTarget==null||Lu||(Lu=!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."))):(zu=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(zu=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(i==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof s=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(i==="formAction"?(t!=="input"&&pt(e,t,"name",n.name,n,null),pt(e,t,"formEncType",n.formEncType,n,null),pt(e,t,"formMethod",n.formMethod,n,null),pt(e,t,"formTarget",n.formTarget,n,null)):(pt(e,t,"encType",n.encType,n,null),pt(e,t,"method",n.method,n,null),pt(e,t,"target",n.target,n,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(i);break}ze(s,i),s=oa(""+s),e.setAttribute(i,s);break;case"onClick":s!=null&&(typeof s!="function"&&As(i,s),e.onclick=Gs);break;case"onScroll":s!=null&&(typeof s!="function"&&As(i,s),Je("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&As(i,s),Je("scrollend",e));break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(i=s.__html,i!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=i}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}ze(s,i),i=oa(""+s),e.setAttributeNS(qr,"xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?(ze(s,i),e.setAttribute(i,""+s)):e.removeAttribute(i);break;case"inert":s!==""||Bu[i]||(Bu[i]=!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.",i));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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":s===!0?e.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?(ze(s,i),e.setAttribute(i,s)):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?(ze(s,i),e.setAttribute(i,s)):e.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(i):(ze(s,i),e.setAttribute(i,s));break;case"popover":Je("beforetoggle",e),Je("toggle",e),Kr(e,"popover",s);break;case"xlinkActuate":Fs(e,qr,"xlink:actuate",s);break;case"xlinkArcrole":Fs(e,qr,"xlink:arcrole",s);break;case"xlinkRole":Fs(e,qr,"xlink:role",s);break;case"xlinkShow":Fs(e,qr,"xlink:show",s);break;case"xlinkTitle":Fs(e,qr,"xlink:title",s);break;case"xlinkType":Fs(e,qr,"xlink:type",s);break;case"xmlBase":Fs(e,xm,"xml:base",s);break;case"xmlLang":Fs(e,xm,"xml:lang",s);break;case"xmlSpace":Fs(e,xm,"xml:space",s);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Kr(e,"is",s);break;case"innerText":case"textContent":break;case"popoverTarget":uy||s==null||typeof s!="object"||(uy=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",s));default:!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N"?(i=bp(i),Kr(e,i,s)):Cr.hasOwnProperty(i)&&s!=null&&typeof s!="function"&&As(i,s)}}function $d(e,t,i,s,n,r){switch(i){case"style":pp(e,s,r);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(i=s.__html,i!=null){if(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=i}}break;case"children":typeof s=="string"?na(e,s):(typeof s=="number"||typeof s=="bigint")&&na(e,""+s);break;case"onScroll":s!=null&&(typeof s!="function"&&As(i,s),Je("scroll",e));break;case"onScrollEnd":s!=null&&(typeof s!="function"&&As(i,s),Je("scrollend",e));break;case"onClick":s!=null&&(typeof s!="function"&&As(i,s),e.onclick=Gs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Cr.hasOwnProperty(i))s!=null&&typeof s!="function"&&As(i,s);else e:{if(i[0]==="o"&&i[1]==="n"&&(n=i.endsWith("Capture"),t=i.slice(2,n?i.length-7:void 0),r=e[fi]||null,r=r!=null?r[i]:null,typeof r=="function"&&e.removeEventListener(t,r,n),typeof s=="function")){typeof r!="function"&&r!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,s,n);break e}i in e?e[i]=s:s===!0?e.setAttribute(i,""):Kr(e,i,s)}}}function si(e,t,i){switch(Id(t,i),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",e),Je("load",e);var s=!1,n=!1,r;for(r in i)if(i.hasOwnProperty(r)){var l=i[r];if(l!=null)switch(r){case"src":s=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pt(e,t,r,l,i,null)}}n&&pt(e,t,"srcSet",i.srcSet,i,null),s&&pt(e,t,"src",i.src,i,null);return;case"input":ui("input",i),Je("invalid",e);var p=r=l=n=null,x=null,R=null;for(s in i)if(i.hasOwnProperty(s)){var Q=i[s];if(Q!=null)switch(s){case"name":n=Q;break;case"type":l=Q;break;case"checked":x=Q;break;case"defaultChecked":R=Q;break;case"value":r=Q;break;case"defaultValue":p=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:pt(e,t,s,Q,i,null)}}Jm(e,i),ep(e,r,p,x,R,l,n,!1);return;case"select":ui("select",i),Je("invalid",e),s=l=r=null;for(n in i)if(i.hasOwnProperty(n)&&(p=i[n],p!=null))switch(n){case"value":r=p;break;case"defaultValue":l=p;break;case"multiple":s=p;default:pt(e,t,n,p,i,null)}sp(e,i),t=r,i=l,e.multiple=!!s,t!=null?Zr(e,!!s,t,!1):i!=null&&Zr(e,!!s,i,!0);return;case"textarea":ui("textarea",i),Je("invalid",e),r=n=s=null;for(l in i)if(i.hasOwnProperty(l)&&(p=i[l],p!=null))switch(l){case"value":s=p;break;case"defaultValue":n=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:pt(e,t,l,p,i,null)}np(e,i),op(e,s,n,r);return;case"option":tp(e,i);for(x in i)if(i.hasOwnProperty(x)&&(s=i[x],s!=null))switch(x){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:pt(e,t,x,s,i,null)}return;case"dialog":Je("beforetoggle",e),Je("toggle",e),Je("cancel",e),Je("close",e);break;case"iframe":case"object":Je("load",e);break;case"video":case"audio":for(s=0;s<El.length;s++)Je(El[s],e);break;case"image":Je("error",e),Je("load",e);break;case"details":Je("toggle",e);break;case"embed":case"source":case"link":Je("error",e),Je("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(R in i)if(i.hasOwnProperty(R)&&(s=i[R],s!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:pt(e,t,R,s,i,null)}return;default:if(ra(t)){for(Q in i)i.hasOwnProperty(Q)&&(s=i[Q],s!==void 0&&$d(e,t,Q,s,i,void 0));return}}for(p in i)i.hasOwnProperty(p)&&(s=i[p],s!=null&&pt(e,t,p,s,i,null))}function yS(e,t,i,s){switch(Id(t,s),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,r=null,l=null,p=null,x=null,R=null,Q=null;for(re in i){var K=i[re];if(i.hasOwnProperty(re)&&K!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":x=K;default:s.hasOwnProperty(re)||pt(e,t,re,null,s,K)}}for(var P in s){var re=s[P];if(K=i[P],s.hasOwnProperty(P)&&(re!=null||K!=null))switch(P){case"type":r=re;break;case"name":n=re;break;case"checked":R=re;break;case"defaultChecked":Q=re;break;case"value":l=re;break;case"defaultValue":p=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:re!==K&&pt(e,t,P,re,s,K)}}t=i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null,s=s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null,t||!s||ly||(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"),ly=!0),!t||s||ay||(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"),ay=!0),eh(e,l,p,x,R,Q,r,n);return;case"select":re=l=p=P=null;for(r in i)if(x=i[r],i.hasOwnProperty(r)&&x!=null)switch(r){case"value":break;case"multiple":re=x;default:s.hasOwnProperty(r)||pt(e,t,r,null,s,x)}for(n in s)if(r=s[n],x=i[n],s.hasOwnProperty(n)&&(r!=null||x!=null))switch(n){case"value":P=r;break;case"defaultValue":p=r;break;case"multiple":l=r;default:r!==x&&pt(e,t,n,r,s,x)}s=p,t=l,i=re,P!=null?Zr(e,!!t,P,!1):!!i!=!!t&&(s!=null?Zr(e,!!t,s,!0):Zr(e,!!t,t?[]:"",!1));return;case"textarea":re=P=null;for(p in i)if(n=i[p],i.hasOwnProperty(p)&&n!=null&&!s.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:pt(e,t,p,null,s,n)}for(l in s)if(n=s[l],r=i[l],s.hasOwnProperty(l)&&(n!=null||r!=null))switch(l){case"value":P=n;break;case"defaultValue":re=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==r&&pt(e,t,l,n,s,r)}rp(e,P,re);return;case"option":for(var Se in i)if(P=i[Se],i.hasOwnProperty(Se)&&P!=null&&!s.hasOwnProperty(Se))switch(Se){case"selected":e.selected=!1;break;default:pt(e,t,Se,null,s,P)}for(x in s)if(P=s[x],re=i[x],s.hasOwnProperty(x)&&P!==re&&(P!=null||re!=null))switch(x){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:pt(e,t,x,P,s,re)}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 Ne in i)P=i[Ne],i.hasOwnProperty(Ne)&&P!=null&&!s.hasOwnProperty(Ne)&&pt(e,t,Ne,null,s,P);for(R in s)if(P=s[R],re=i[R],s.hasOwnProperty(R)&&P!==re&&(P!=null||re!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:pt(e,t,R,P,s,re)}return;default:if(ra(t)){for(var _t in i)P=i[_t],i.hasOwnProperty(_t)&&P!==void 0&&!s.hasOwnProperty(_t)&&$d(e,t,_t,void 0,s,P);for(Q in s)P=s[Q],re=i[Q],!s.hasOwnProperty(Q)||P===re||P===void 0&&re===void 0||$d(e,t,Q,P,s,re);return}}for(var tt in i)P=i[tt],i.hasOwnProperty(tt)&&P!=null&&!s.hasOwnProperty(tt)&&pt(e,t,tt,null,s,P);for(K in s)P=s[K],re=i[K],!s.hasOwnProperty(K)||P===re||P==null&&re==null||pt(e,t,K,P,s,re)}function hv(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function qd(e){var t={};e=e.style;for(var i=0;i<e.length;i++){var s=e[i];t[s]=e.getPropertyValue(s)}return t}function dv(e,t,i){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 s,n=s="",r;for(r in t)if(t.hasOwnProperty(r)){var l=t[r];l!=null&&typeof l!="boolean"&&l!==""&&(r.indexOf("--")===0?(De(l,r),s+=n+r+":"+(""+l).trim()):typeof l!="number"||l===0||S_.has(r)?(De(l,r),s+=n+r.replace(g_,"-$1").toLowerCase().replace(v_,"-ms-")+":"+(""+l).trim()):s+=n+r.replace(g_,"-$1").toLowerCase().replace(v_,"-ms-")+":"+l+"px",n=";")}s=s||null,t=e.getAttribute("style"),t!==s&&(s=An(s),An(t)!==s&&(i.style=qd(e)))}}function Pi(e,t,i,s,n,r){if(n.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(ze(s,t),e===""+s)return}Qt(t,e,s,r)}function fv(e,t,i,s,n,r){if(n.delete(i),e=e.getAttribute(i),e===null){switch(typeof s){case"function":case"symbol":return}if(!s)return}else switch(typeof s){case"function":case"symbol":break;default:if(s)return}Qt(t,e,s,r)}function Pd(e,t,i,s,n,r){if(n.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":return}else if(s!=null)switch(typeof s){case"function":case"symbol":break;default:if(ze(s,i),e===""+s)return}Qt(t,e,s,r)}function mv(e,t,i,s,n,r){if(n.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(s))return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(!isNaN(s)&&(ze(s,t),e===""+s))return}Qt(t,e,s,r)}function Wd(e,t,i,s,n,r){if(n.delete(i),e=e.getAttribute(i),e===null)switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":return}else if(s!=null)switch(typeof s){case"function":case"symbol":case"boolean":break;default:if(ze(s,t),i=oa(""+s),e===i)return}Qt(t,e,s,r)}function pv(e,t,i,s){for(var n={},r=new Set,l=e.attributes,p=0;p<l.length;p++)switch(l[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(l[p].name)}if(ra(t)){for(var x in i)if(i.hasOwnProperty(x)){var R=i[x];if(R!=null){if(Cr.hasOwnProperty(x))typeof R!="function"&&As(x,R);else if(i.suppressHydrationWarning!==!0)switch(x){case"children":typeof R!="string"&&typeof R!="number"||Qt("children",e.textContent,R,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":l=e.innerHTML,R=R?R.__html:void 0,R!=null&&(R=cv(e,R),Qt(x,l,R,n));continue;case"style":r.delete(x),dv(e,R,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(x.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",x);continue;case"className":r.delete("class"),l=Ml(e,"class",R),Qt("className",l,R,n);continue;default:s.context===vn&&t!=="svg"&&t!=="math"?r.delete(x.toLowerCase()):r.delete(x),l=Ml(e,x,R),Qt(x,l,R,n)}}}}else for(R in i)if(i.hasOwnProperty(R)&&(x=i[R],x!=null)){if(Cr.hasOwnProperty(R))typeof x!="function"&&As(R,x);else if(i.suppressHydrationWarning!==!0)switch(R){case"children":typeof x!="string"&&typeof x!="number"||Qt("children",e.textContent,x,n);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":l=e.innerHTML,x=x?x.__html:void 0,x!=null&&(x=cv(e,x),l!==x&&(n[R]={__html:l}));continue;case"className":Pi(e,R,"class",x,r,n);continue;case"tabIndex":Pi(e,R,"tabindex",x,r,n);continue;case"style":r.delete(R),dv(e,x,n);continue;case"multiple":r.delete(R),Qt(R,e.multiple,x,n);continue;case"muted":r.delete(R),Qt(R,e.muted,x,n);continue;case"autoFocus":r.delete("autofocus"),Qt(R,e.autofocus,x,n);continue;case"data":if(t!=="object"){r.delete(R),l=e.getAttribute("data"),Qt(R,l,x,n);continue}case"src":case"href":if(!(x!==""||t==="a"&&R==="href"||t==="object"&&R==="data")){console.error(R==="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.',R,R);continue}Wd(e,R,R,x,r,n);continue;case"action":case"formAction":if(l=e.getAttribute(R),typeof x=="function"){r.delete(R.toLowerCase()),R==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(l===zE){r.delete(R.toLowerCase()),Qt(R,"function",x,n);continue}Wd(e,R,R.toLowerCase(),x,r,n);continue;case"xlinkHref":Wd(e,R,"xlink:href",x,r,n);continue;case"contentEditable":Pd(e,R,"contenteditable",x,r,n);continue;case"spellCheck":Pd(e,R,"spellcheck",x,r,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Pd(e,R,R,x,r,n);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":fv(e,R,R.toLowerCase(),x,r,n);continue;case"capture":case"download":e:{p=e;var Q=l=R,K=n;if(r.delete(Q),p=p.getAttribute(Q),p===null)switch(typeof x){case"undefined":case"function":case"symbol":break e;default:if(x===!1)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":break;case"boolean":if(x===!0&&p==="")break e;break;default:if(ze(x,l),p===""+x)break e}Qt(l,p,x,K)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,Q=l=R,K=n,r.delete(Q),p=p.getAttribute(Q),p===null)switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(x)||1>x)break e}else if(x!=null)switch(typeof x){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(x)||1>x)&&(ze(x,l),p===""+x))break e}Qt(l,p,x,K)}continue;case"rowSpan":mv(e,R,"rowspan",x,r,n);continue;case"start":mv(e,R,R,x,r,n);continue;case"xHeight":Pi(e,R,"x-height",x,r,n);continue;case"xlinkActuate":Pi(e,R,"xlink:actuate",x,r,n);continue;case"xlinkArcrole":Pi(e,R,"xlink:arcrole",x,r,n);continue;case"xlinkRole":Pi(e,R,"xlink:role",x,r,n);continue;case"xlinkShow":Pi(e,R,"xlink:show",x,r,n);continue;case"xlinkTitle":Pi(e,R,"xlink:title",x,r,n);continue;case"xlinkType":Pi(e,R,"xlink:type",x,r,n);continue;case"xmlBase":Pi(e,R,"xml:base",x,r,n);continue;case"xmlLang":Pi(e,R,"xml:lang",x,r,n);continue;case"xmlSpace":Pi(e,R,"xml:space",x,r,n);continue;case"inert":x!==""||Bu[R]||(Bu[R]=!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.",R)),fv(e,R,R,x,r,n);continue;default:if(!(2<R.length)||R[0]!=="o"&&R[0]!=="O"||R[1]!=="n"&&R[1]!=="N"){p=bp(R),l=!1,s.context===vn&&t!=="svg"&&t!=="math"?r.delete(p.toLowerCase()):(Q=R.toLowerCase(),Q=Qc.hasOwnProperty(Q)&&Qc[Q]||null,Q!==null&&Q!==R&&(l=!0,r.delete(Q)),r.delete(p));e:if(Q=e,K=p,p=x,bs(K))if(Q.hasAttribute(K))Q=Q.getAttribute(K),ze(p,K),p=Q===""+p?p:Q;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(Q=K.toLowerCase().slice(0,5),Q!=="data-"&&Q!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;l||Qt(R,p,x,n)}}}return 0<r.size&&i.suppressHydrationWarning!==!0&&_S(e,r,n),Object.keys(n).length===0?null:n}function wS(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 bv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),s=0;s<i.length;s++){var n=i[s],r=n.transferSize,l=n.initiatorType,p=n.duration;if(r&&p&&bv(l)){for(l=0,p=n.responseEnd,s+=1;s<i.length;s++){var x=i[s],R=x.startTime;if(R>p)break;var Q=x.transferSize,K=x.initiatorType;Q&&bv(K)&&(x=x.responseEnd,l+=Q*(x<p?1:(p-R)/(x-R)))}if(--s,t+=8*(r+l)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Ac(e){return e.nodeType===9?e:e.ownerDocument}function gv(e){switch(e){case So:return Zo;case Xc:return Hu;default:return vn}}function vv(e,t){if(e===vn)switch(t){case"svg":return Zo;case"math":return Hu;default:return vn}return e===Zo&&t==="foreignObject"?vn:e}function Yd(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 ES(){var e=window.event;return e&&e.type==="popstate"?e===Rm?!1:(Rm=e,!0):(Rm=null,!1)}function Ra(){var e=window.event;return e&&e!==xl?e.type:null}function Ta(){var e=window.event;return e&&e!==xl?e.timeStamp:-1.1}function NS(e){setTimeout(function(){throw e})}function CS(e,t,i){switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&e.focus();break;case"img":i.src?e.src=i.src:i.srcSet&&(e.srcset=i.srcSet)}}function xS(){}function DS(e,t,i,s){yS(e,t,i,s),e[fi]=s}function _v(e){na(e,"")}function OS(e,t,i){e.nodeValue=i}function yv(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[fi]||null;if(t!==null){var i=we(e);i!==null&&(typeof t.children=="string"||typeof t.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,oe(i,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,oe(i,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 Mn(e){return e==="head"}function kS(e,t){e.removeChild(t)}function RS(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function wv(e,t){var i=t,s=0;do{var n=i.nextSibling;if(e.removeChild(i),n&&n.nodeType===8)if(i=n.data,i===Cl||i===Vu){if(s===0){e.removeChild(n),bo(t);return}s--}else if(i===Nl||i===ir||i===Wr||i===Ko||i===Pr)s++;else if(i===jE)Aa(e.ownerDocument.documentElement);else if(i===VE){i=e.ownerDocument.head,Aa(i);for(var r=i.firstChild;r;){var l=r.nextSibling,p=r.nodeName;r[Va]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||i.removeChild(r),r=l}}else i===BE&&Aa(e.ownerDocument.body);i=n}while(i);bo(t)}function Sv(e,t){var i=e;e=0;do{var s=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),s&&s.nodeType===8)if(i=s.data,i===Cl){if(e===0)break;e--}else i!==Nl&&i!==ir&&i!==Wr&&i!==Ko||e++;i=s}while(i)}function TS(e){Sv(e,!0)}function AS(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function MS(e){e.nodeValue=""}function US(e){Sv(e,!1)}function zS(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 LS(e,t){e.nodeValue=t}function Fd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Fd(i),ee(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function jS(e,t,i,s){for(;e.nodeType===1;){var n=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ze(n.name,"name");var r=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ui(e.nextSibling),e===null)break}return null}function BS(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Ui(e.nextSibling),e===null))return null;return e}function Ev(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ui(e.nextSibling),e===null))return null;return e}function Gd(e){return e.data===ir||e.data===Wr}function Xd(e){return e.data===Ko||e.data===ir&&e.ownerDocument.readyState!==dy}function VS(e,t){var i=e.ownerDocument;if(e.data===Wr)e._reactRetry=t;else if(e.data!==ir||i.readyState!==dy)t();else{var s=function(){t(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Ui(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===Nl||t===Ko||t===ir||t===Wr||t===Pr||t===Dm||t===hy)break;if(t===Cl||t===Vu)return null}}return e}function Nv(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),i={},s=e.attributes,n=0;n<s.length;n++){var r=s[n];i[hv(r.name)]=r.name.toLowerCase()==="style"?qd(e):r.value}return{type:t,props:i}}return e.nodeType===8?e.data===Pr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function Cv(e,t,i){return i===null||i[LE]!==!0?(e.nodeValue===t?e=null:(t=An(t),e=An(e.nodeValue)===t?null:e.nodeValue),e):null}function Qd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i===Cl||i===Vu){if(t===0)return Ui(e.nextSibling);t--}else i!==Nl&&i!==Ko&&i!==ir&&i!==Wr&&i!==Pr||t++}e=e.nextSibling}return null}function xv(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i===Nl||i===Ko||i===ir||i===Wr||i===Pr){if(t===0)return e;t--}else i!==Cl&&i!==Vu||t++}e=e.previousSibling}return null}function HS(e){bo(e)}function IS(e){bo(e)}function $S(e){bo(e)}function Dv(e,t,i,s,n){switch(n&&oh(e,s.ancestorInfo),t=Ac(i),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 qS(e,t,i,s){if(!i[jn]&&we(i)){var n=i.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",n,n,n)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(n=i.attributes;n.length;)i.removeAttributeNode(n[0]);si(i,e,t),i[ni]=s,i[fi]=t}function Aa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ee(e)}function Mc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Ov(e,t,i){var s=Jo;if(s&&typeof t=="string"&&t){var n=qi(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof i=="string"&&(n+='[crossorigin="'+i+'"]'),vy.has(n)||(vy.add(n),e={rel:e,crossOrigin:i,href:t},s.querySelector(n)===null&&(t=s.createElement("link"),si(t,"link",e),Re(t),s.head.appendChild(t)))}}function kv(e,t,i,s){var n=(n=zn.current)?Mc(n):null;if(!n)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(i=mo(i.href),t=Ie(n).hoistableStyles,s=t.get(i),s||(s={type:"style",instance:null,count:0,state:null},t.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=mo(i.href);var r=Ie(n).hoistableStyles,l=r.get(e);if(!l&&(n=n.ownerDocument||n,l={type:"stylesheet",instance:null,count:0,state:{loading:Fr,preload:null}},r.set(e,l),(r=n.querySelector(Ma(e)))&&!r._p&&(l.instance=r,l.state.loading=Dl|is),!ss.has(e))){var p={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy};ss.set(e,p),r||PS(n,e,p,l.state)}if(t&&s===null)throw i=`
|
|
222
|
-
|
|
223
|
-
- `+Uc(t)+`
|
|
224
|
-
+ `+Uc(i),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."+i);return l}if(t&&s!==null)throw i=`
|
|
225
|
-
|
|
226
|
-
- `+Uc(t)+`
|
|
227
|
-
+ `+Uc(i),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."+i);return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(i=po(i),t=Ie(n).hoistableScripts,s=t.get(i),s||(s={type:"script",instance:null,count:0,state:null},t.set(i,s)),s):{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 Uc(e){var t=0,i="<link";return typeof e.rel=="string"?(t++,i+=' rel="'+e.rel+'"'):ls.call(e,"rel")&&(t++,i+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,i+=' href="'+e.href+'"'):ls.call(e,"href")&&(t++,i+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,i+=' precedence="'+e.precedence+'"'):ls.call(e,"precedence")&&(t++,i+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(i+=" ..."),i+" />"}function mo(e){return'href="'+qi(e)+'"'}function Ma(e){return'link[rel="stylesheet"]['+e+"]"}function Rv(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function PS(e,t,i,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=Dl:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=Dl}),t.addEventListener("error",function(){return s.loading|=by}),si(t,"link",i),Re(t),e.head.appendChild(t))}function po(e){return'[src="'+qi(e)+'"]'}function Ua(e){return"script[async]"+e}function Tv(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+qi(i.href)+'"]');if(s)return t.instance=s,Re(s),s;var n=Ke({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Re(s),si(s,"style",n),zc(s,i.precedence,e),t.instance=s;case"stylesheet":n=mo(i.href);var r=e.querySelector(Ma(n));if(r)return t.state.loading|=is,t.instance=r,Re(r),r;s=Rv(i),(n=ss.get(n))&&Kd(s,n),r=(e.ownerDocument||e).createElement("link"),Re(r);var l=r;return l._p=new Promise(function(p,x){l.onload=p,l.onerror=x}),si(r,"link",s),t.state.loading|=is,zc(r,i.precedence,e),t.instance=r;case"script":return r=po(i.src),(n=e.querySelector(Ua(r)))?(t.instance=n,Re(n),n):(s=i,(n=ss.get(r))&&(s=Ke({},i),Zd(s,n)),e=e.ownerDocument||e,n=e.createElement("script"),Re(n),si(n,"link",s),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&is)===Fr&&(s=t.instance,t.state.loading|=is,zc(s,i.precedence,e));return t.instance}function zc(e,t,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=s.length?s[s.length-1]:null,r=n,l=0;l<s.length;l++){var p=s[l];if(p.dataset.precedence===t)r=p;else if(r!==n)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Kd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Av(e,t,i){if(Iu===null){var s=new Map,n=Iu=new Map;n.set(i,s)}else n=Iu,s=n.get(i),s||(s=new Map,n.set(i,s));if(s.has(e))return s;for(s.set(e,null),i=i.getElementsByTagName(e),n=0;n<i.length;n++){var r=i[n];if(!(r[Va]||r[ni]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==So){var l=r.getAttribute(t)||"";l=e+l;var p=s.get(l);p?p.push(r):s.set(l,[r])}}return s}function Mv(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function WS(e,t,i){var s=!i.ancestorInfo.containerTagInScope;if(i.context===Zo||t.itemProp!=null)return!s||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===""){s&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var n=t.onError,r=t.disabled;i=[],t.onLoad&&i.push("`onLoad`"),n&&i.push("`onError`"),r!=null&&i.push("`disabled`"),n=wS(i,"and"),n+=i.length===1?" prop":" props",r=i.length===1?"an "+n:"the "+n,i.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,r,n)}s&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&s&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){s&&(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":s&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Uv(e){return!(e.type==="stylesheet"&&(e.state.loading&gy)===Fr)}function YS(e,t,i,s){if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&is)===Fr){if(i.instance===null){var n=mo(s.href),r=t.querySelector(Ma(n));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Lc.bind(e),t.then(e,e)),i.state.loading|=is,i.instance=r,Re(r);return}r=t.ownerDocument||t,s=Rv(s),(n=ss.get(n))&&Kd(s,n),r=r.createElement("link"),Re(r);var l=r;l._p=new Promise(function(p,x){l.onload=p,l.onerror=x}),si(r,"link",s),i.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&gy)===Fr&&(e.count++,i=Lc.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}function FS(e,t){return e.stylesheets&&e.count===0&&jc(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var s=setTimeout(function(){if(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},qE+t);0<e.imgBytes&&Am===0&&(Am=125*SS()*WE);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Am?50:PE)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(n)}}:null}function Lc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function jc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(GS,e),$u=null,Lc.call(e))}function GS(e,t){if(!(t.state.loading&is)){var i=$u.get(e);if(i)var s=i.get(Mm);else{i=new Map,$u.set(e,i);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<n.length;r++){var l=n[r];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(i.set(l.dataset.precedence,l),s=l)}s&&i.set(Mm,s)}n=t.instance,l=n.getAttribute("data-precedence"),r=i.get(l)||s,r===s&&i.set(Mm,n),i.set(l,n),this.count++,s=Lc.bind(this),n.addEventListener("load",s),n.addEventListener("error",s),r?r.parentNode.insertBefore(n,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=is}}function XS(e,t,i,s,n,r,l,p,x){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Yr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.hiddenUpdates=yt(null),this.identifierPrefix=s,this.onUncaughtError=n,this.onCaughtError=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,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=i?"hydrateRoot()":"createRoot()"}function zv(e,t,i,s,n,r,l,p,x,R,Q,K){return e=new XS(e,t,i,l,x,R,Q,K,p),t=pE,r===!0&&(t|=li|cs),t|=Pe,r=m(3,null,null,t),e.current=r,r.stateNode=e,t=xh(),vr(t),e.pooledCache=t,vr(t),r.memoizedState={element:s,isDehydrated:i,cache:t},Th(r),e}function Lv(e){return e?(e=In,e):In}function Jd(e,t,i,s,n,r){if(ai&&typeof ai.onScheduleFiberRoot=="function")try{ai.onScheduleFiberRoot(yo,s,i)}catch(l){Ls||(Ls=!0,console.error("React instrumentation encountered an error: %o",l))}n=Lv(n),s.context===null?s.context=n:s.pendingContext=n,zs&&Li!==null&&!Sy&&(Sy=!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.
|
|
228
|
-
|
|
229
|
-
Check the render method of %s.`,M(Li)||"Unknown")),s=xn(t),s.payload={element:i},r=r===void 0?null:r,r!==null&&(typeof r!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),s.callback=r),i=Dn(e,s,t),i!==null&&(ys(t,"root.render()",null),Rt(i,e,t),ma(i,e,t))}function jv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function ef(e,t){jv(e,t),(e=e.alternate)&&jv(e,t)}function Bv(e){if(e.tag===13||e.tag===31){var t=oi(e,67108864);t!==null&&Rt(t,e,67108864),ef(e,67108864)}}function Vv(e){if(e.tag===13||e.tag===31){var t=Mi(e);t=ps(t);var i=oi(e,t);i!==null&&Rt(i,e,t),ef(e,t)}}function QS(){return Li}function KS(e,t,i,s){var n=he.T;he.T=null;var r=ht.p;try{ht.p=Wi,tf(e,t,i,s)}finally{ht.p=r,he.T=n}}function ZS(e,t,i,s){var n=he.T;he.T=null;var r=ht.p;try{ht.p=Bs,tf(e,t,i,s)}finally{ht.p=r,he.T=n}}function tf(e,t,i,s){if(Pu){var n=sf(s);if(n===null)Hd(e,t,s,Wu,i),Iv(e,s);else if(JS(n,e,t,i,s))s.stopPropagation();else if(Iv(e,s),t&4&&-1<FE.indexOf(e)){for(;n!==null;){var r=we(n);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var l=ge(r.pendingLanes);if(l!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;l;){var x=1<<31-di(l);p.entanglements[1]|=x,l&=~x}Ts(r),(at&(Gt|Hi))===ei&&(Du=Kt()+Q0,Oa(0))}}break;case 31:case 13:p=oi(r,2),p!==null&&Rt(p,r,2),uo(),ef(r,2)}if(r=sf(s),r===null&&Hd(e,t,s,Wu,i),r===n)break;n=r}n!==null&&s.stopPropagation()}else Hd(e,t,s,null,i)}}function sf(e){return e=ah(e),nf(e)}function nf(e){if(Wu=null,e=_e(e),e!==null){var t=h(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=o(t),e!==null)return e;e=null}else if(i===31){if(e=a(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Wu=e,null}function Hv(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 Wi;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 Bs;case"message":switch(c1()){case vf:return Wi;case _f:return Bs;case _o:case u1:return nn;case yf:return Fc;default:return nn}default:return nn}}function Iv(e,t){switch(e){case"focusin":case"focusout":sr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":kl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(t.pointerId)}}function za(e,t,i,s,n,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:i,eventSystemFlags:s,nativeEvent:r,targetContainers:[n]},t!==null&&(t=we(t),t!==null&&Bv(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function JS(e,t,i,s,n){switch(t){case"focusin":return sr=za(sr,e,t,i,s,n),!0;case"dragenter":return nr=za(nr,e,t,i,s,n),!0;case"mouseover":return rr=za(rr,e,t,i,s,n),!0;case"pointerover":var r=n.pointerId;return kl.set(r,za(kl.get(r)||null,e,t,i,s,n)),!0;case"gotpointercapture":return r=n.pointerId,Rl.set(r,za(Rl.get(r)||null,e,t,i,s,n)),!0}return!1}function $v(e){var t=_e(e.target);if(t!==null){var i=h(t);if(i!==null){if(t=i.tag,t===13){if(t=o(i),t!==null){e.blockedOn=t,U(e.priority,function(){Vv(i)});return}}else if(t===31){if(t=a(i),t!==null){e.blockedOn=t,U(e.priority,function(){Vv(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=sf(e.nativeEvent);if(i===null){i=e.nativeEvent;var s=new i.constructor(i.type,i),n=s;Ha!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ha=n,i.target.dispatchEvent(s),Ha===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."),Ha=null}else return t=we(i),t!==null&&Bv(t),e.blockedOn=i,!1;t.shift()}return!0}function qv(e,t,i){Bc(e)&&i.delete(t)}function e1(){Um=!1,sr!==null&&Bc(sr)&&(sr=null),nr!==null&&Bc(nr)&&(nr=null),rr!==null&&Bc(rr)&&(rr=null),kl.forEach(qv),Rl.forEach(qv)}function Vc(e,t){e.blockedOn===t&&(e.blockedOn=null,Um||(Um=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,e1)))}function Pv(e){Yu!==e&&(Yu=e,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,function(){Yu===e&&(Yu=null);for(var t=0;t<e.length;t+=3){var i=e[t],s=e[t+1],n=e[t+2];if(typeof s!="function"){if(nf(s||i)===null)continue;break}var r=we(i);r!==null&&(e.splice(t,3),t-=3,i={pending:!0,data:n,method:i.method,action:s},Object.freeze(i),sd(r,i,s,n))}}))}function bo(e){function t(x){return Vc(x,e)}sr!==null&&Vc(sr,e),nr!==null&&Vc(nr,e),rr!==null&&Vc(rr,e),kl.forEach(t),Rl.forEach(t);for(var i=0;i<or.length;i++){var s=or[i];s.blockedOn===e&&(s.blockedOn=null)}for(;0<or.length&&(i=or[0],i.blockedOn===null);)$v(i),i.blockedOn===null&&or.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var n=i[s],r=i[s+1],l=n[fi]||null;if(typeof r=="function")l||Pv(i);else if(l){var p=null;if(r&&r.hasAttribute("formAction")){if(n=r,l=r[fi]||null)p=l.formAction;else if(nf(n)!==null)continue}else p=l.action;typeof p=="function"?i[s+1]=p:(i.splice(s,3),s-=3),Pv(i)}}}function Wv(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(l){return n=l})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),s||setTimeout(i,20)}function i(){if(!s&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function rf(e){this._internalRoot=e}function Hc(e){this._internalRoot=e}function Yv(e){e[jn]&&(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 jt=tN(),of=Ku(),t1=sN(),Ke=Object.assign,i1=Symbol.for("react.element"),Ms=Symbol.for("react.transitional.element"),go=Symbol.for("react.portal"),vo=Symbol.for("react.fragment"),Ic=Symbol.for("react.strict_mode"),af=Symbol.for("react.profiler"),lf=Symbol.for("react.consumer"),Us=Symbol.for("react.context"),La=Symbol.for("react.forward_ref"),cf=Symbol.for("react.suspense"),uf=Symbol.for("react.suspense_list"),$c=Symbol.for("react.memo"),zi=Symbol.for("react.lazy"),hf=Symbol.for("react.activity"),s1=Symbol.for("react.memo_cache_sentinel"),Fv=Symbol.iterator,n1=Symbol.for("react.client.reference"),Yt=Array.isArray,he=of.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ht=t1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,r1=Object.freeze({pending:!1,data:null,method:null,action:null}),df=[],ff=[],sn=-1,Un=L(null),ja=L(null),zn=L(null),qc=L(null),Ba=0,Gv,Xv,Qv,Kv,Zv,Jv,e_;V.__reactDisabledLog=!0;var mf,t_,pf=!1,bf=new(typeof WeakMap=="function"?WeakMap:Map),Li=null,zs=!1,ls=Object.prototype.hasOwnProperty,gf=jt.unstable_scheduleCallback,o1=jt.unstable_cancelCallback,a1=jt.unstable_shouldYield,l1=jt.unstable_requestPaint,Kt=jt.unstable_now,c1=jt.unstable_getCurrentPriorityLevel,vf=jt.unstable_ImmediatePriority,_f=jt.unstable_UserBlockingPriority,_o=jt.unstable_NormalPriority,u1=jt.unstable_LowPriority,yf=jt.unstable_IdlePriority,h1=jt.log,d1=jt.unstable_setDisableYieldValue,yo=null,ai=null,Ls=!1,js=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",di=Math.clz32?Math.clz32:Di,f1=Math.log,m1=Math.LN2,Pc=256,Wc=262144,Yc=4194304,Wi=2,Bs=8,nn=32,Fc=268435456,Ln=Math.random().toString(36).slice(2),ni="__reactFiber$"+Ln,fi="__reactProps$"+Ln,jn="__reactContainer$"+Ln,wf="__reactEvents$"+Ln,p1="__reactListeners$"+Ln,b1="__reactHandles$"+Ln,i_="__reactResources$"+Ln,Va="__reactMarker$"+Ln,s_=new Set,Cr={},Sf={},g1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},v1=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]*$"),n_={},r_={},_1=/[\n"\\]/g,o_=!1,a_=!1,l_=!1,c_=!1,u_=!1,h_=!1,d_=["value","defaultValue"],f_=!1,m_=/["'&<>\n\t]|^\s|\s$/,y1="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(" "),p_="applet caption html table td th marquee object template foreignObject desc title".split(" "),w1=p_.concat(["button"]),S1="dd dt li option optgroup p rp rt".split(" "),b_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Gc={},Ef={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"]},g_=/([A-Z])/g,v_=/^ms-/,E1=/^(?:webkit|moz|o)[A-Z]/,N1=/^-ms-/,C1=/-(.)/g,__=/;\s*$/,wo={},Nf={},y_=!1,w_=!1,S_=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(" ")),Xc="http://www.w3.org/1998/Math/MathML",So="http://www.w3.org/2000/svg",x1=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"]]),Qc={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"},E_={"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},Eo={},D1=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]*$"),O1=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]*$"),N_=!1,mi={},C_=/^on./,k1=/^on[^A-Z]/,R1=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]*$"),T1=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]*$"),A1=/^[\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,Ha=null,No=null,Co=null,Cf=!1,Vs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xf=!1;if(Vs)try{var Ia={};Object.defineProperty(Ia,"passive",{get:function(){xf=!0}}),window.addEventListener("test",Ia,Ia),window.removeEventListener("test",Ia,Ia)}catch{xf=!1}var Bn=null,Df=null,Kc=null,xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zc=yi(xr),$a=Ke({},xr,{view:0,detail:0}),M1=yi($a),Of,kf,qa,Jc=Ke({},$a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lh,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!==qa&&(qa&&e.type==="mousemove"?(Of=e.screenX-qa.screenX,kf=e.screenY-qa.screenY):kf=Of=0,qa=e),Of)},movementY:function(e){return"movementY"in e?e.movementY:kf}}),x_=yi(Jc),U1=Ke({},Jc,{dataTransfer:0}),z1=yi(U1),L1=Ke({},$a,{relatedTarget:0}),Rf=yi(L1),j1=Ke({},xr,{animationName:0,elapsedTime:0,pseudoElement:0}),B1=yi(j1),V1=Ke({},xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),H1=yi(V1),I1=Ke({},xr,{data:0}),D_=yi(I1),$1=D_,q1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P1={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"},W1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Y1=Ke({},$a,{key:function(e){if(e.key){var t=q1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Bl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lh,charCode:function(e){return e.type==="keypress"?Bl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Bl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),F1=yi(Y1),G1=Ke({},Jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),O_=yi(G1),X1=Ke({},$a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lh}),Q1=yi(X1),K1=Ke({},xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z1=yi(K1),J1=Ke({},Jc,{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}),eE=yi(J1),tE=Ke({},xr,{newState:0,oldState:0}),iE=yi(tE),sE=[9,13,27,32],k_=229,Tf=Vs&&"CompositionEvent"in window,Pa=null;Vs&&"documentMode"in document&&(Pa=document.documentMode);var nE=Vs&&"TextEvent"in window&&!Pa,R_=Vs&&(!Tf||Pa&&8<Pa&&11>=Pa),T_=32,A_=String.fromCharCode(T_),M_=!1,xo=!1,rE={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},Wa=null,Ya=null,U_=!1;Vs&&(U_=Cw("input")&&(!document.documentMode||9<document.documentMode));var pi=typeof Object.is=="function"?Object.is:Tw,oE=Vs&&"documentMode"in document&&11>=document.documentMode,Do=null,Af=null,Fa=null,Mf=!1,Oo={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionrun:hr("Transition","TransitionRun"),transitionstart:hr("Transition","TransitionStart"),transitioncancel:hr("Transition","TransitionCancel"),transitionend:hr("Transition","TransitionEnd")},Uf={},z_={};Vs&&(z_=document.createElement("div").style,"AnimationEvent"in window||(delete Oo.animationend.animation,delete Oo.animationiteration.animation,delete Oo.animationstart.animation),"TransitionEvent"in window||delete Oo.transitionend.transition);var L_=dr("animationend"),j_=dr("animationiteration"),B_=dr("animationstart"),aE=dr("transitionrun"),lE=dr("transitionstart"),cE=dr("transitioncancel"),V_=dr("transitionend"),H_=new Map,zf="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(" ");zf.push("scrollEnd");var I_=0;if(typeof performance=="object"&&typeof performance.now=="function")var uE=performance,$_=function(){return uE.now()};else{var hE=Date;$_=function(){return hE.now()}}var Lf=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)},dE="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.",eu=0,jf=1,Bf=2,Vf=3,tu="– ",iu="+ ",q_=" ",wt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Yi="Components ⚛",et="Scheduler ⚛",st="Blocking",Vn=!1,rn={color:"primary",properties:null,tooltipText:"",track:Yi},Hn={start:-0,end:-0,detail:{devtools:rn}},fE=["Changed Props",""],P_="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",mE=["Changed Props",P_],Ga=1,on=2,Fi=[],ko=0,Hf=0,In={};Object.freeze(In);var Gi=null,Ro=null,je=0,pE=1,Pe=2,li=8,cs=16,bE=32,W_=!1;try{var Y_=Object.preventExtensions({})}catch{W_=!0}var If=new WeakMap,To=[],Ao=0,su=null,Xa=0,Xi=[],Qi=0,Dr=null,an=1,ln="",ri=null,St=null,Ze=!1,Hs=!1,ji=null,$n=null,Ki=!1,$f=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."),qf=L(null),Pf=L(null),F_={},nu=null,Mo=null,Uo=!1,gE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},vE=jt.unstable_scheduleCallback,_E=jt.unstable_NormalPriority,Bt={$$typeof:Us,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Vt=jt.unstable_now,ru=console.createTask?console.createTask:function(){return null},Qa=1,ou=2,Zt=-0,qn=-0,cn=-0,un=null,bi=-1.1,Or=-0,Ot=-0,Me=-1.1,Le=-1.1,Dt=null,Tt=!1,kr=-0,Is=-1.1,Ka=null,Pn=0,Wf=null,Yf=null,Rr=-1.1,Za=null,zo=-1.1,au=-1.1,hn=-0,dn=-1.1,Zi=-1.1,Ff=0,Ja=null,G_=null,X_=null,Wn=-1.1,Tr=null,Yn=-1.1,lu=-1.1,Q_=-0,K_=-0,cu=0,yE=null,Z_=0,el=-1.1,uu=!1,hu=!1,tl=null,Gf=0,Ar=0,Lo=null,J_=he.S;he.S=function(e,t){if(G0=Kt(),typeof t=="object"&&t!==null&&typeof t.then=="function"){if(0>dn&&0>Zi){dn=Vt();var i=Ta(),s=Ra();(i!==Yn||s!==Tr)&&(Yn=-1.1),Wn=i,Tr=s}Bw(e,t)}J_!==null&&J_(e,t)};var Mr=L(null),us={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},il=[],sl=[],nl=[],rl=[],ol=[],al=[],Ur=new Set;us.recordUnsafeLifecycleWarnings=function(e,t){Ur.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&il.push(e),e.mode&li&&typeof t.UNSAFE_componentWillMount=="function"&&sl.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&nl.push(e),e.mode&li&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&rl.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&ol.push(e),e.mode&li&&typeof t.UNSAFE_componentWillUpdate=="function"&&al.push(e))},us.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<il.length&&(il.forEach(function(p){e.add(M(p)||"Component"),Ur.add(p.type)}),il=[]);var t=new Set;0<sl.length&&(sl.forEach(function(p){t.add(M(p)||"Component"),Ur.add(p.type)}),sl=[]);var i=new Set;0<nl.length&&(nl.forEach(function(p){i.add(M(p)||"Component"),Ur.add(p.type)}),nl=[]);var s=new Set;0<rl.length&&(rl.forEach(function(p){s.add(M(p)||"Component"),Ur.add(p.type)}),rl=[]);var n=new Set;0<ol.length&&(ol.forEach(function(p){n.add(M(p)||"Component"),Ur.add(p.type)}),ol=[]);var r=new Set;if(0<al.length&&(al.forEach(function(p){r.add(M(p)||"Component"),Ur.add(p.type)}),al=[]),0<t.size){var l=d(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.
|
|
230
|
-
|
|
231
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
232
|
-
|
|
233
|
-
Please update the following components: %s`,l)}0<s.size&&(l=d(s),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.
|
|
234
|
-
|
|
235
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
236
|
-
* 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
|
|
237
|
-
|
|
238
|
-
Please update the following components: %s`,l)),0<r.size&&(l=d(r),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
239
|
-
|
|
240
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
241
|
-
|
|
242
|
-
Please update the following components: %s`,l)),0<e.size&&(l=d(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
243
|
-
|
|
244
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
245
|
-
* 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.
|
|
246
|
-
|
|
247
|
-
Please update the following components: %s`,l)),0<i.size&&(l=d(i),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
248
|
-
|
|
249
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
250
|
-
* 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
|
|
251
|
-
* 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.
|
|
252
|
-
|
|
253
|
-
Please update the following components: %s`,l)),0<n.size&&(l=d(n),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
254
|
-
|
|
255
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
256
|
-
* 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.
|
|
257
|
-
|
|
258
|
-
Please update the following components: %s`,l))};var du=new Map,e0=new Set;us.recordLegacyContextWarning=function(e,t){for(var i=null,s=e;s!==null;)s.mode&li&&(i=s),s=s.return;i===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."):!e0.has(e.type)&&(s=du.get(i),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(s===void 0&&(s=[],du.set(i,s)),s.push(e))},us.flushLegacyContextWarning=function(){du.forEach(function(e){if(e.length!==0){var t=e[0],i=new Set;e.forEach(function(n){i.add(M(n)||"Component"),e0.add(n.type)});var s=d(i);oe(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
259
|
-
|
|
260
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
261
|
-
|
|
262
|
-
Please update the following components: %s
|
|
263
|
-
|
|
264
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,s)})}})},us.discardPendingWarnings=function(){il=[],sl=[],nl=[],rl=[],ol=[],al=[],du=new Map};var t0={react_stack_bottom_frame:function(e,t,i){var s=zs;zs=!0;try{return e(t,i)}finally{zs=s}}},Xf=t0.react_stack_bottom_frame.bind(t0),i0={react_stack_bottom_frame:function(e){var t=zs;zs=!0;try{return e.render()}finally{zs=t}}},s0=i0.react_stack_bottom_frame.bind(i0),n0={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(i){ut(e,e.return,i)}}},Qf=n0.react_stack_bottom_frame.bind(n0),r0={react_stack_bottom_frame:function(e,t,i,s,n){try{t.componentDidUpdate(i,s,n)}catch(r){ut(e,e.return,r)}}},o0=r0.react_stack_bottom_frame.bind(r0),a0={react_stack_bottom_frame:function(e,t){var i=t.stack;e.componentDidCatch(t.value,{componentStack:i!==null?i:""})}},wE=a0.react_stack_bottom_frame.bind(a0),l0={react_stack_bottom_frame:function(e,t,i){try{i.componentWillUnmount()}catch(s){ut(e,t,s)}}},c0=l0.react_stack_bottom_frame.bind(l0),u0={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},SE=u0.react_stack_bottom_frame.bind(u0),h0={react_stack_bottom_frame:function(e,t,i){try{i()}catch(s){ut(e,t,s)}}},EE=h0.react_stack_bottom_frame.bind(h0),d0={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},NE=d0.react_stack_bottom_frame.bind(d0),jo=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`."),Kf=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."),fu=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."),mu={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.')}},zr=null,ll=!1,Bo=null,cl=0,We=null,Zf,f0=Zf=!1,m0={},p0={},b0={};S=function(e,t,i){if(i!==null&&typeof i=="object"&&i._store&&(!i._store.validated&&i.key==null||i._store.validated===2)){if(typeof i._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.");i._store.validated=1;var s=M(e),n=s||"null";if(!m0[n]){m0[n]=!0,i=i._owner,e=e._debugOwner;var r="";e&&typeof e.tag=="number"&&(n=M(e))&&(r=`
|
|
265
|
-
|
|
266
|
-
Check the render method of \``+n+"`."),r||s&&(r=`
|
|
267
|
-
|
|
268
|
-
Check the top-level render call using <`+s+">.");var l="";i!=null&&e!==i&&(s=null,typeof i.tag=="number"?s=M(i):typeof i.name=="string"&&(s=i.name),s&&(l=" It was passed a child from "+s+".")),oe(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,l)})}}};var Lr=lb(!0),g0=lb(!1),v0=0,_0=1,y0=2,Jf=3,Fn=!1,w0=!1,em=null,tm=!1,Vo=L(null),pu=L(0),Bi=L(null),Ji=null,Ho=1,ul=2,zt=L(0),bu=0,es=1,gi=2,Vi=4,vi=8,Io,S0=new Set,E0=new Set,im=new Set,N0=new Set,fn=0,Be=null,bt=null,Ht=null,gu=!1,$o=!1,jr=!1,vu=0,hl=0,mn=null,CE=0,xE=25,ce=null,ts=null,pn=-1,dl=!1,fl={readContext:xt,use:Rn,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt,useHostTransitionStatus:Mt,useFormState:Mt,useActionState:Mt,useOptimistic:Mt,useMemoCache:Mt,useCacheRefresh:Mt};fl.useEffectEvent=Mt;var sm=null,C0=null,nm=null,x0=null,$s=null,hs=null,_u=null;sm={readContext:function(e){return xt(e)},use:Rn,useCallback:function(e,t){return ce="useCallback",Qe(),so(t),Jh(e,t)},useContext:function(e){return ce="useContext",Qe(),xt(e)},useEffect:function(e,t){return ce="useEffect",Qe(),so(t),dc(e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",Qe(),so(i),Zh(e,t,i)},useInsertionEffect:function(e,t){ce="useInsertionEffect",Qe(),so(t),yr(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",Qe(),so(t),Kh(e,t)},useMemo:function(e,t){ce="useMemo",Qe(),so(t);var i=he.H;he.H=$s;try{return ed(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",Qe();var s=he.H;he.H=$s;try{return $h(e,t,i)}finally{he.H=s}},useRef:function(e){return ce="useRef",Qe(),Xh(e)},useState:function(e){ce="useState",Qe();var t=he.H;he.H=$s;try{return Yh(e)}finally{he.H=t}},useDebugValue:function(){ce="useDebugValue",Qe()},useDeferredValue:function(e,t){return ce="useDeferredValue",Qe(),td(e,t)},useTransition:function(){return ce="useTransition",Qe(),nd()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",Qe(),Ph(e,t,i)},useId:function(){return ce="useId",Qe(),rd()},useFormState:function(e,t){return ce="useFormState",Qe(),ac(),ro(e,t)},useActionState:function(e,t){return ce="useActionState",Qe(),ro(e,t)},useOptimistic:function(e){return ce="useOptimistic",Qe(),Fh(e)},useHostTransitionStatus:wr,useMemoCache:_r,useCacheRefresh:function(){return ce="useCacheRefresh",Qe(),od()},useEffectEvent:function(e){return ce="useEffectEvent",Qe(),Qh(e)}},C0={readContext:function(e){return xt(e)},use:Rn,useCallback:function(e,t){return ce="useCallback",ve(),Jh(e,t)},useContext:function(e){return ce="useContext",ve(),xt(e)},useEffect:function(e,t){return ce="useEffect",ve(),dc(e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",ve(),Zh(e,t,i)},useInsertionEffect:function(e,t){ce="useInsertionEffect",ve(),yr(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",ve(),Kh(e,t)},useMemo:function(e,t){ce="useMemo",ve();var i=he.H;he.H=$s;try{return ed(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",ve();var s=he.H;he.H=$s;try{return $h(e,t,i)}finally{he.H=s}},useRef:function(e){return ce="useRef",ve(),Xh(e)},useState:function(e){ce="useState",ve();var t=he.H;he.H=$s;try{return Yh(e)}finally{he.H=t}},useDebugValue:function(){ce="useDebugValue",ve()},useDeferredValue:function(e,t){return ce="useDeferredValue",ve(),td(e,t)},useTransition:function(){return ce="useTransition",ve(),nd()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",ve(),Ph(e,t,i)},useId:function(){return ce="useId",ve(),rd()},useActionState:function(e,t){return ce="useActionState",ve(),ro(e,t)},useFormState:function(e,t){return ce="useFormState",ve(),ac(),ro(e,t)},useOptimistic:function(e){return ce="useOptimistic",ve(),Fh(e)},useHostTransitionStatus:wr,useMemoCache:_r,useCacheRefresh:function(){return ce="useCacheRefresh",ve(),od()},useEffectEvent:function(e){return ce="useEffectEvent",ve(),Qh(e)}},nm={readContext:function(e){return xt(e)},use:Rn,useCallback:function(e,t){return ce="useCallback",ve(),pc(e,t)},useContext:function(e){return ce="useContext",ve(),xt(e)},useEffect:function(e,t){ce="useEffect",ve(),wi(2048,vi,e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",ve(),mc(e,t,i)},useInsertionEffect:function(e,t){return ce="useInsertionEffect",ve(),wi(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",ve(),wi(4,Vi,e,t)},useMemo:function(e,t){ce="useMemo",ve();var i=he.H;he.H=hs;try{return bc(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",ve();var s=he.H;he.H=hs;try{return no(e,t,i)}finally{he.H=s}},useRef:function(){return ce="useRef",ve(),ft().memoizedState},useState:function(){ce="useState",ve();var e=he.H;he.H=hs;try{return no(os)}finally{he.H=e}},useDebugValue:function(){ce="useDebugValue",ve()},useDeferredValue:function(e,t){return ce="useDeferredValue",ve(),Rb(e,t)},useTransition:function(){return ce="useTransition",ve(),Lb()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",ve(),cc(e,t,i)},useId:function(){return ce="useId",ve(),ft().memoizedState},useFormState:function(e){return ce="useFormState",ve(),ac(),uc(e)},useActionState:function(e){return ce="useActionState",ve(),uc(e)},useOptimistic:function(e,t){return ce="useOptimistic",ve(),yb(e,t)},useHostTransitionStatus:wr,useMemoCache:_r,useCacheRefresh:function(){return ce="useCacheRefresh",ve(),ft().memoizedState},useEffectEvent:function(e){return ce="useEffectEvent",ve(),fc(e)}},x0={readContext:function(e){return xt(e)},use:Rn,useCallback:function(e,t){return ce="useCallback",ve(),pc(e,t)},useContext:function(e){return ce="useContext",ve(),xt(e)},useEffect:function(e,t){ce="useEffect",ve(),wi(2048,vi,e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",ve(),mc(e,t,i)},useInsertionEffect:function(e,t){return ce="useInsertionEffect",ve(),wi(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",ve(),wi(4,Vi,e,t)},useMemo:function(e,t){ce="useMemo",ve();var i=he.H;he.H=_u;try{return bc(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",ve();var s=he.H;he.H=_u;try{return va(e,t,i)}finally{he.H=s}},useRef:function(){return ce="useRef",ve(),ft().memoizedState},useState:function(){ce="useState",ve();var e=he.H;he.H=_u;try{return va(os)}finally{he.H=e}},useDebugValue:function(){ce="useDebugValue",ve()},useDeferredValue:function(e,t){return ce="useDeferredValue",ve(),Tb(e,t)},useTransition:function(){return ce="useTransition",ve(),jb()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",ve(),cc(e,t,i)},useId:function(){return ce="useId",ve(),ft().memoizedState},useFormState:function(e){return ce="useFormState",ve(),ac(),hc(e)},useActionState:function(e){return ce="useActionState",ve(),hc(e)},useOptimistic:function(e,t){return ce="useOptimistic",ve(),Sb(e,t)},useHostTransitionStatus:wr,useMemoCache:_r,useCacheRefresh:function(){return ce="useCacheRefresh",ve(),ft().memoizedState},useEffectEvent:function(e){return ce="useEffectEvent",ve(),fc(e)}},$s={readContext:function(e){return b(),xt(e)},use:function(e){return c(),Rn(e)},useCallback:function(e,t){return ce="useCallback",c(),Qe(),Jh(e,t)},useContext:function(e){return ce="useContext",c(),Qe(),xt(e)},useEffect:function(e,t){return ce="useEffect",c(),Qe(),dc(e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",c(),Qe(),Zh(e,t,i)},useInsertionEffect:function(e,t){ce="useInsertionEffect",c(),Qe(),yr(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",c(),Qe(),Kh(e,t)},useMemo:function(e,t){ce="useMemo",c(),Qe();var i=he.H;he.H=$s;try{return ed(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",c(),Qe();var s=he.H;he.H=$s;try{return $h(e,t,i)}finally{he.H=s}},useRef:function(e){return ce="useRef",c(),Qe(),Xh(e)},useState:function(e){ce="useState",c(),Qe();var t=he.H;he.H=$s;try{return Yh(e)}finally{he.H=t}},useDebugValue:function(){ce="useDebugValue",c(),Qe()},useDeferredValue:function(e,t){return ce="useDeferredValue",c(),Qe(),td(e,t)},useTransition:function(){return ce="useTransition",c(),Qe(),nd()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",c(),Qe(),Ph(e,t,i)},useId:function(){return ce="useId",c(),Qe(),rd()},useFormState:function(e,t){return ce="useFormState",c(),Qe(),ro(e,t)},useActionState:function(e,t){return ce="useActionState",c(),Qe(),ro(e,t)},useOptimistic:function(e){return ce="useOptimistic",c(),Qe(),Fh(e)},useMemoCache:function(e){return c(),_r(e)},useHostTransitionStatus:wr,useCacheRefresh:function(){return ce="useCacheRefresh",Qe(),od()},useEffectEvent:function(e){return ce="useEffectEvent",c(),Qe(),Qh(e)}},hs={readContext:function(e){return b(),xt(e)},use:function(e){return c(),Rn(e)},useCallback:function(e,t){return ce="useCallback",c(),ve(),pc(e,t)},useContext:function(e){return ce="useContext",c(),ve(),xt(e)},useEffect:function(e,t){ce="useEffect",c(),ve(),wi(2048,vi,e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",c(),ve(),mc(e,t,i)},useInsertionEffect:function(e,t){return ce="useInsertionEffect",c(),ve(),wi(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",c(),ve(),wi(4,Vi,e,t)},useMemo:function(e,t){ce="useMemo",c(),ve();var i=he.H;he.H=hs;try{return bc(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",c(),ve();var s=he.H;he.H=hs;try{return no(e,t,i)}finally{he.H=s}},useRef:function(){return ce="useRef",c(),ve(),ft().memoizedState},useState:function(){ce="useState",c(),ve();var e=he.H;he.H=hs;try{return no(os)}finally{he.H=e}},useDebugValue:function(){ce="useDebugValue",c(),ve()},useDeferredValue:function(e,t){return ce="useDeferredValue",c(),ve(),Rb(e,t)},useTransition:function(){return ce="useTransition",c(),ve(),Lb()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",c(),ve(),cc(e,t,i)},useId:function(){return ce="useId",c(),ve(),ft().memoizedState},useFormState:function(e){return ce="useFormState",c(),ve(),uc(e)},useActionState:function(e){return ce="useActionState",c(),ve(),uc(e)},useOptimistic:function(e,t){return ce="useOptimistic",c(),ve(),yb(e,t)},useMemoCache:function(e){return c(),_r(e)},useHostTransitionStatus:wr,useCacheRefresh:function(){return ce="useCacheRefresh",ve(),ft().memoizedState},useEffectEvent:function(e){return ce="useEffectEvent",c(),ve(),fc(e)}},_u={readContext:function(e){return b(),xt(e)},use:function(e){return c(),Rn(e)},useCallback:function(e,t){return ce="useCallback",c(),ve(),pc(e,t)},useContext:function(e){return ce="useContext",c(),ve(),xt(e)},useEffect:function(e,t){ce="useEffect",c(),ve(),wi(2048,vi,e,t)},useImperativeHandle:function(e,t,i){return ce="useImperativeHandle",c(),ve(),mc(e,t,i)},useInsertionEffect:function(e,t){return ce="useInsertionEffect",c(),ve(),wi(4,gi,e,t)},useLayoutEffect:function(e,t){return ce="useLayoutEffect",c(),ve(),wi(4,Vi,e,t)},useMemo:function(e,t){ce="useMemo",c(),ve();var i=he.H;he.H=hs;try{return bc(e,t)}finally{he.H=i}},useReducer:function(e,t,i){ce="useReducer",c(),ve();var s=he.H;he.H=hs;try{return va(e,t,i)}finally{he.H=s}},useRef:function(){return ce="useRef",c(),ve(),ft().memoizedState},useState:function(){ce="useState",c(),ve();var e=he.H;he.H=hs;try{return va(os)}finally{he.H=e}},useDebugValue:function(){ce="useDebugValue",c(),ve()},useDeferredValue:function(e,t){return ce="useDeferredValue",c(),ve(),Tb(e,t)},useTransition:function(){return ce="useTransition",c(),ve(),jb()},useSyncExternalStore:function(e,t,i){return ce="useSyncExternalStore",c(),ve(),cc(e,t,i)},useId:function(){return ce="useId",c(),ve(),ft().memoizedState},useFormState:function(e){return ce="useFormState",c(),ve(),hc(e)},useActionState:function(e){return ce="useActionState",c(),ve(),hc(e)},useOptimistic:function(e,t){return ce="useOptimistic",c(),ve(),Sb(e,t)},useMemoCache:function(e){return c(),_r(e)},useHostTransitionStatus:wr,useCacheRefresh:function(){return ce="useCacheRefresh",ve(),ft().memoizedState},useEffectEvent:function(e){return ce="useEffectEvent",c(),ve(),fc(e)}};var D0={},O0=new Set,k0=new Set,R0=new Set,T0=new Set,A0=new Set,M0=new Set,U0=new Set,z0=new Set,L0=new Set,j0=new Set;Object.freeze(D0);var rm={enqueueSetState:function(e,t,i){e=e._reactInternals;var s=Mi(e),n=xn(s);n.payload=t,i!=null&&(ld(i),n.callback=i),t=Dn(e,n,s),t!==null&&(ys(s,"this.setState()",e),Rt(t,e,s),ma(t,e,s))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var s=Mi(e),n=xn(s);n.tag=_0,n.payload=t,i!=null&&(ld(i),n.callback=i),t=Dn(e,n,s),t!==null&&(ys(s,"this.replaceState()",e),Rt(t,e,s),ma(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Mi(e),s=xn(i);s.tag=y0,t!=null&&(ld(t),s.callback=t),t=Dn(e,s,i),t!==null&&(ys(i,"this.forceUpdate()",e),Rt(t,e,i),ma(t,e,i))}},qo=null,om=null,am=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."),It=!1,B0={},V0={},H0={},I0={},Po=!1,$0={},yu={},lm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},q0=!1,P0=null;P0=new Set;var bn=!1,$t=!1,cm=!1,W0=typeof WeakSet=="function"?WeakSet:Set,Jt=null,Wo=null,Yo=null,qt=null,Ni=!1,ds=null,Ft=!1,ml=8192,DE={getCacheForType:function(e){var t=xt(Bt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return xt(Bt).controller.signal},getOwner:function(){return Li}};if(typeof Symbol=="function"&&Symbol.for){var pl=Symbol.for;pl("selector.component"),pl("selector.has_pseudo_class"),pl("selector.role"),pl("selector.test_id"),pl("selector.text")}var OE=[],kE=typeof WeakMap=="function"?WeakMap:Map,ei=0,Gt=2,Hi=4,gn=0,bl=1,Br=2,wu=3,Gn=4,Su=6,Y0=5,at=ei,gt=null,Ge=null,Ye=0,Ci=0,Eu=1,Vr=2,gl=3,F0=4,um=5,vl=6,Nu=7,hm=8,Hr=9,mt=Ci,Ii=null,Xn=!1,Fo=!1,dm=!1,qs=0,kt=gn,Qn=0,Kn=0,fm=0,xi=0,Ir=0,_l=null,_i=null,Cu=!1,xu=0,G0=0,X0=300,Du=1/0,Q0=500,yl=null,Ut=null,Zn=null,Ou=0,mm=1,pm=2,K0=3,Jn=0,Z0=1,J0=2,ey=3,ty=4,ku=5,Pt=0,er=null,Go=null,fs=0,bm=0,gm=-0,vm=null,iy=null,sy=null,ms=Ou,ny=null,RE=50,wl=0,_m=null,ym=!1,Ru=!1,TE=50,$r=0,Sl=null,Xo=!1,Tu=null,ry=!1,oy=new Set,AE={},Au=null,Qo=null,wm=!1,Sm=!1,Mu=!1,Em=!1,tr=0,Nm={};(function(){for(var e=0;e<zf.length;e++){var t=zf[e],i=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ns(i,"on"+t)}ns(L_,"onAnimationEnd"),ns(j_,"onAnimationIteration"),ns(B_,"onAnimationStart"),ns("dblclick","onDoubleClick"),ns("focusin","onFocus"),ns("focusout","onBlur"),ns(aE,"onTransitionRun"),ns(lE,"onTransitionStart"),ns(cE,"onTransitionCancel"),ns(V_,"onTransitionEnd")})(),$e("onMouseEnter",["mouseout","mouseover"]),$e("onMouseLeave",["mouseout","mouseover"]),$e("onPointerEnter",["pointerout","pointerover"]),$e("onPointerLeave",["pointerout","pointerover"]),ot("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ot("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ot("onBeforeInput",["compositionend","keypress","textInput","paste"]),ot("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ot("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ot("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var El="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(" "),Cm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(El)),Uu="_reactListening"+Math.random().toString(36).slice(2),ay=!1,ly=!1,zu=!1,cy=!1,Lu=!1,ju=!1,uy=!1,Bu={},ME=/\r\n?/g,UE=/\u0000|\uFFFD/g,qr="http://www.w3.org/1999/xlink",xm="http://www.w3.org/XML/1998/namespace",zE="javascript:throw new Error('React form unexpectedly submitted.')",LE="suppressHydrationWarning",Pr="&",Vu="/&",Nl="$",Cl="/$",ir="$?",Wr="$~",Ko="$!",jE="html",BE="body",VE="head",Dm="F!",hy="F",dy="loading",HE="style",vn=0,Zo=1,Hu=2,Om=null,km=null,fy={dialog:!0,webview:!0},Rm=null,xl=void 0,my=typeof setTimeout=="function"?setTimeout:void 0,IE=typeof clearTimeout=="function"?clearTimeout:void 0,Yr=-1,py=typeof Promise=="function"?Promise:void 0,$E=typeof queueMicrotask=="function"?queueMicrotask:typeof py<"u"?function(e){return py.resolve(null).then(e).catch(NS)}:my,Tm=null,Fr=0,Dl=1,by=2,gy=3,is=4,ss=new Map,vy=new Set,_n=ht.d;ht.d={f:function(){var e=_n.f(),t=uo();return e||t},r:function(e){var t=we(e);t!==null&&t.tag===5&&t.type==="form"?zb(t):_n.r(e)},D:function(e){_n.D(e),Ov("dns-prefetch",e,null)},C:function(e,t){_n.C(e,t),Ov("preconnect",e,t)},L:function(e,t,i){_n.L(e,t,i);var s=Jo;if(s&&e&&t){var n='link[rel="preload"][as="'+qi(t)+'"]';t==="image"&&i&&i.imageSrcSet?(n+='[imagesrcset="'+qi(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(n+='[imagesizes="'+qi(i.imageSizes)+'"]')):n+='[href="'+qi(e)+'"]';var r=n;switch(t){case"style":r=mo(e);break;case"script":r=po(e)}ss.has(r)||(e=Ke({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),ss.set(r,e),s.querySelector(n)!==null||t==="style"&&s.querySelector(Ma(r))||t==="script"&&s.querySelector(Ua(r))||(t=s.createElement("link"),si(t,"link",e),Re(t),s.head.appendChild(t)))}},m:function(e,t){_n.m(e,t);var i=Jo;if(i&&e){var s=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+qi(s)+'"][href="'+qi(e)+'"]',r=n;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=po(e)}if(!ss.has(r)&&(e=Ke({rel:"modulepreload",href:e},t),ss.set(r,e),i.querySelector(n)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Ua(r)))return}s=i.createElement("link"),si(s,"link",e),Re(s),i.head.appendChild(s)}}},X:function(e,t){_n.X(e,t);var i=Jo;if(i&&e){var s=Ie(i).hoistableScripts,n=po(e),r=s.get(n);r||(r=i.querySelector(Ua(n)),r||(e=Ke({src:e,async:!0},t),(t=ss.get(n))&&Zd(e,t),r=i.createElement("script"),Re(r),si(r,"link",e),i.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},s.set(n,r))}},S:function(e,t,i){_n.S(e,t,i);var s=Jo;if(s&&e){var n=Ie(s).hoistableStyles,r=mo(e);t=t||"default";var l=n.get(r);if(!l){var p={loading:Fr,preload:null};if(l=s.querySelector(Ma(r)))p.loading=Dl|is;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},i),(i=ss.get(r))&&Kd(e,i);var x=l=s.createElement("link");Re(x),si(x,"link",e),x._p=new Promise(function(R,Q){x.onload=R,x.onerror=Q}),x.addEventListener("load",function(){p.loading|=Dl}),x.addEventListener("error",function(){p.loading|=by}),p.loading|=is,zc(l,t,s)}l={type:"stylesheet",instance:l,count:1,state:p},n.set(r,l)}}},M:function(e,t){_n.M(e,t);var i=Jo;if(i&&e){var s=Ie(i).hoistableScripts,n=po(e),r=s.get(n);r||(r=i.querySelector(Ua(n)),r||(e=Ke({src:e,async:!0,type:"module"},t),(t=ss.get(n))&&Zd(e,t),r=i.createElement("script"),Re(r),si(r,"link",e),i.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},s.set(n,r))}}};var Jo=typeof document>"u"?null:document,Iu=null,qE=6e4,PE=800,WE=500,Am=0,Mm=null,$u=null,Gr=r1,Ol={$$typeof:Us,Provider:null,Consumer:null,_currentValue:Gr,_currentValue2:Gr,_threadCount:0},_y="%c%s%c",yy="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",wy="",qu=" ",YE=Function.prototype.bind,Sy=!1,Ey=null,Ny=null,Cy=null,xy=null,Dy=null,Oy=null,ky=null,Ry=null,Ty=null,Ay=null;Ey=function(e,t,i,s){t=O(e,t),t!==null&&(i=z(t.memoizedState,i,0,s),t.memoizedState=i,t.baseState=i,e.memoizedProps=Ke({},e.memoizedProps),i=oi(e,2),i!==null&&Rt(i,e,2))},Ny=function(e,t,i){t=O(e,t),t!==null&&(i=Z(t.memoizedState,i,0),t.memoizedState=i,t.baseState=i,e.memoizedProps=Ke({},e.memoizedProps),i=oi(e,2),i!==null&&Rt(i,e,2))},Cy=function(e,t,i,s){t=O(e,t),t!==null&&(i=G(t.memoizedState,i,s),t.memoizedState=i,t.baseState=i,e.memoizedProps=Ke({},e.memoizedProps),i=oi(e,2),i!==null&&Rt(i,e,2))},xy=function(e,t,i){e.pendingProps=z(e.memoizedProps,t,0,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=oi(e,2),t!==null&&Rt(t,e,2)},Dy=function(e,t){e.pendingProps=Z(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=oi(e,2),t!==null&&Rt(t,e,2)},Oy=function(e,t,i){e.pendingProps=G(e.memoizedProps,t,i),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=oi(e,2),t!==null&&Rt(t,e,2)},ky=function(e){var t=oi(e,2);t!==null&&Rt(t,e,2)},Ry=function(e){var t=Xe(),i=oi(e,t);i!==null&&Rt(i,e,t)},Ty=function(e){W=e},Ay=function(e){ne=e};var Pu=!0,Wu=null,Um=!1,sr=null,nr=null,rr=null,kl=new Map,Rl=new Map,or=[],FE="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(" "),Yu=null;if(Hc.prototype.render=rf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var i=arguments;typeof i[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()."):u(i[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 i[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),i=e;var s=t.current,n=Mi(s);Jd(s,n,i,t,null,null)},Hc.prototype.unmount=rf.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;(at&(Gt|Hi))!==ei&&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."),Jd(e.current,2,null,e,null,null),uo(),t[jn]=null}},Hc.prototype.unstable_scheduleHydration=function(e){if(e){var t=wn();e={blockedOn:null,target:e,priority:t};for(var i=0;i<or.length&&t!==0&&t<or[i].priority;i++);or.splice(i,0,e),i===0&&$v(e)}},(function(){var e=of.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
269
|
-
- react: `+(e+`
|
|
270
|
-
- react-dom: 19.2.7
|
|
271
|
-
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"),ht.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=N(t),e=e!==null?C(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.7"};return e.overrideHookState=Ey,e.overrideHookStateDeletePath=Ny,e.overrideHookStateRenamePath=Cy,e.overrideProps=xy,e.overridePropsDeletePath=Dy,e.overridePropsRenamePath=Oy,e.scheduleUpdate=ky,e.scheduleRetry=Ry,e.setErrorHandler=Ty,e.setSuspenseHandler=Ay,e.scheduleRefresh=E,e.scheduleRoot=y,e.setRefreshHandler=v,e.getCurrentFiber=QS,Ys(e)})()&&Vs&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var My=window.location.protocol;/^(https?|file):$/.test(My)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(My==="file:"?`
|
|
272
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Tl.createRoot=function(e,t){if(!u(e))throw Error("Target container is not a DOM element.");Yv(e);var i=!1,s="",n=qb,r=Pb,l=Wb;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===Ms&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
273
|
-
|
|
274
|
-
let root = createRoot(domContainer);
|
|
275
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=zv(e,1,!1,null,null,i,s,null,n,r,l,Wv),e[jn]=t.current,Vd(e),new rf(t)},Tl.hydrateRoot=function(e,t,i){if(!u(e))throw Error("Target container is not a DOM element.");Yv(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var s=!1,n="",r=qb,l=Pb,p=Wb,x=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(n=i.identifierPrefix),i.onUncaughtError!==void 0&&(r=i.onUncaughtError),i.onCaughtError!==void 0&&(l=i.onCaughtError),i.onRecoverableError!==void 0&&(p=i.onRecoverableError),i.formState!==void 0&&(x=i.formState)),t=zv(e,1,!0,t,i??null,s,n,x,r,l,p,Wv),t.context=Lv(null),i=t.current,s=Mi(i),s=ps(s),n=xn(s),n.callback=null,Dn(i,n,s),ys(s,"hydrateRoot()",null),i=s,t.current.lanes=i,dt(t,i),Ts(t),e[jn]=t.current,Vd(e),new Hc(t)},Tl.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Tl}var qy;function rN(){return qy||(qy=1,jm.exports=nN()),jm.exports}var oN=rN(),Im={exports:{}},Py;function aN(){return Py||(Py=1,(function(O,z){(function(G,I){O.exports=I()})(globalThis,(()=>(()=>{var G={4567:function(W,c,b){var _=this&&this.__decorate||function(o,a,g,N){var C,D=arguments.length,w=D<3?a:N===null?N=Object.getOwnPropertyDescriptor(a,g):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(o,a,g,N);else for(var k=o.length-1;k>=0;k--)(C=o[k])&&(w=(D<3?C(w):D>3?C(a,g,w):C(a,g))||w);return D>3&&w&&Object.defineProperty(a,g,w),w},S=this&&this.__param||function(o,a){return function(g,N){a(g,N,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.AccessibilityManager=void 0;const d=b(9042),m=b(9924),y=b(844),E=b(4725),v=b(2585),u=b(3656);let h=c.AccessibilityManager=class extends y.Disposable{constructor(o,a,g,N){super(),this._terminal=o,this._coreBrowserService=g,this._renderService=N,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let C=0;C<this._terminal.rows;C++)this._rowElements[C]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[C]);if(this._topBoundaryFocusListener=C=>this._handleBoundaryFocus(C,0),this._bottomBoundaryFocusListener=C=>this._handleBoundaryFocus(C,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new m.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((C=>this._handleResize(C.rows)))),this.register(this._terminal.onRender((C=>this._refreshRows(C.start,C.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((C=>this._handleChar(C)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
276
|
-
`)))),this.register(this._terminal.onA11yTab((C=>this._handleTab(C)))),this.register(this._terminal.onKey((C=>this._handleKey(C.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,u.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,y.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(o){for(let a=0;a<o;a++)this._handleChar(" ")}_handleChar(o){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==o&&(this._charsToAnnounce+=o):this._charsToAnnounce+=o,o===`
|
|
277
|
-
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(o){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(o)||this._charsToConsume.push(o)}_refreshRows(o,a){this._liveRegionDebouncer.refresh(o,a,this._terminal.rows)}_renderRows(o,a){const g=this._terminal.buffer,N=g.lines.length.toString();for(let C=o;C<=a;C++){const D=g.lines.get(g.ydisp+C),w=[],k=(D==null?void 0:D.translateToString(!0,void 0,void 0,w))||"",M=(g.ydisp+C+1).toString(),L=this._rowElements[C];L&&(k.length===0?(L.innerText=" ",this._rowColumns.set(L,[0,1])):(L.textContent=k,this._rowColumns.set(L,w)),L.setAttribute("aria-posinset",M),L.setAttribute("aria-setsize",N))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(o,a){const g=o.target,N=this._rowElements[a===0?1:this._rowElements.length-2];if(g.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||o.relatedTarget!==N)return;let C,D;if(a===0?(C=g,D=this._rowElements.pop(),this._rowContainer.removeChild(D)):(C=this._rowElements.shift(),D=g,this._rowContainer.removeChild(C)),C.removeEventListener("focus",this._topBoundaryFocusListener),D.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){const w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else{const w=this._createAccessibilityTreeNode();this._rowElements.push(w),this._rowContainer.appendChild(w)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),o.preventDefault(),o.stopImmediatePropagation()}_handleSelectionChange(){var k;if(this._rowElements.length===0)return;const o=document.getSelection();if(!o)return;if(o.isCollapsed)return void(this._rowContainer.contains(o.anchorNode)&&this._terminal.clearSelection());if(!o.anchorNode||!o.focusNode)return void console.error("anchorNode and/or focusNode are null");let a={node:o.anchorNode,offset:o.anchorOffset},g={node:o.focusNode,offset:o.focusOffset};if((a.node.compareDocumentPosition(g.node)&Node.DOCUMENT_POSITION_PRECEDING||a.node===g.node&&a.offset>g.offset)&&([a,g]=[g,a]),a.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(a={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(a.node))return;const N=this._rowElements.slice(-1)[0];if(g.node.compareDocumentPosition(N)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(g={node:N,offset:((k=N.textContent)==null?void 0:k.length)??0}),!this._rowContainer.contains(g.node))return;const C=({node:M,offset:L})=>{const H=M instanceof Text?M.parentNode:M;let B=parseInt(H==null?void 0:H.getAttribute("aria-posinset"),10)-1;if(isNaN(B))return console.warn("row is invalid. Race condition?"),null;const J=this._rowColumns.get(H);if(!J)return console.warn("columns is null. Race condition?"),null;let ae=L<J.length?J[L]:J.slice(-1)[0]+1;return ae>=this._terminal.cols&&(++B,ae=0),{row:B,column:ae}},D=C(a),w=C(g);if(D&&w){if(D.row>w.row||D.row===w.row&&D.column>=w.column)throw new Error("invalid range");this._terminal.select(D.column,D.row,(w.row-D.row)*this._terminal.cols-D.column+w.column)}}_handleResize(o){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>o;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const o=this._coreBrowserService.mainDocument.createElement("div");return o.setAttribute("role","listitem"),o.tabIndex=-1,this._refreshRowDimensions(o),o}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let o=0;o<this._terminal.rows;o++)this._refreshRowDimensions(this._rowElements[o])}}_refreshRowDimensions(o){o.style.height=`${this._renderService.dimensions.css.cell.height}px`}};c.AccessibilityManager=h=_([S(1,v.IInstantiationService),S(2,E.ICoreBrowserService),S(3,E.IRenderService)],h)},3614:(W,c)=>{function b(m){return m.replace(/\r?\n/g,"\r")}function _(m,y){return y?"\x1B[200~"+m+"\x1B[201~":m}function S(m,y,E,v){m=_(m=b(m),E.decPrivateModes.bracketedPasteMode&&v.rawOptions.ignoreBracketedPasteMode!==!0),E.triggerDataEvent(m,!0),y.value=""}function d(m,y,E){const v=E.getBoundingClientRect(),u=m.clientX-v.left-10,h=m.clientY-v.top-10;y.style.width="20px",y.style.height="20px",y.style.left=`${u}px`,y.style.top=`${h}px`,y.style.zIndex="1000",y.focus()}Object.defineProperty(c,"__esModule",{value:!0}),c.rightClickHandler=c.moveTextAreaUnderMouseCursor=c.paste=c.handlePasteEvent=c.copyHandler=c.bracketTextForPaste=c.prepareTextForTerminal=void 0,c.prepareTextForTerminal=b,c.bracketTextForPaste=_,c.copyHandler=function(m,y){m.clipboardData&&m.clipboardData.setData("text/plain",y.selectionText),m.preventDefault()},c.handlePasteEvent=function(m,y,E,v){m.stopPropagation(),m.clipboardData&&S(m.clipboardData.getData("text/plain"),y,E,v)},c.paste=S,c.moveTextAreaUnderMouseCursor=d,c.rightClickHandler=function(m,y,E,v,u){d(m,y,E),u&&v.rightClickSelect(m),y.value=v.selectionText,y.select()}},7239:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorContrastCache=void 0;const _=b(1505);c.ColorContrastCache=class{constructor(){this._color=new _.TwoKeyMap,this._css=new _.TwoKeyMap}setCss(S,d,m){this._css.set(S,d,m)}getCss(S,d){return this._css.get(S,d)}setColor(S,d,m){this._color.set(S,d,m)}getColor(S,d){return this._color.get(S,d)}clear(){this._color.clear(),this._css.clear()}}},3656:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.addDisposableDomListener=void 0,c.addDisposableDomListener=function(b,_,S,d){b.addEventListener(_,S,d);let m=!1;return{dispose:()=>{m||(m=!0,b.removeEventListener(_,S,d))}}}},3551:function(W,c,b){var _=this&&this.__decorate||function(h,o,a,g){var N,C=arguments.length,D=C<3?o:g===null?g=Object.getOwnPropertyDescriptor(o,a):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(h,o,a,g);else for(var w=h.length-1;w>=0;w--)(N=h[w])&&(D=(C<3?N(D):C>3?N(o,a,D):N(o,a))||D);return C>3&&D&&Object.defineProperty(o,a,D),D},S=this&&this.__param||function(h,o){return function(a,g){o(a,g,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Linkifier=void 0;const d=b(3656),m=b(8460),y=b(844),E=b(2585),v=b(4725);let u=c.Linkifier=class extends y.Disposable{get currentLink(){return this._currentLink}constructor(h,o,a,g,N){super(),this._element=h,this._mouseService=o,this._renderService=a,this._bufferService=g,this._linkProviderService=N,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new m.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new m.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,y.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,y.toDisposable)((()=>{var C;this._lastMouseEvent=void 0,(C=this._activeProviderReplies)==null||C.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,d.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,d.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,d.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,d.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(h){this._lastMouseEvent=h;const o=this._positionFromMouseEvent(h,this._element,this._mouseService);if(!o)return;this._isMouseOut=!1;const a=h.composedPath();for(let g=0;g<a.length;g++){const N=a[g];if(N.classList.contains("xterm"))break;if(N.classList.contains("xterm-hover"))return}this._lastBufferCell&&o.x===this._lastBufferCell.x&&o.y===this._lastBufferCell.y||(this._handleHover(o),this._lastBufferCell=o)}_handleHover(h){if(this._activeLine!==h.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(h,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,h)||(this._clearCurrentLink(),this._askForLink(h,!0))}_askForLink(h,o){var g,N;this._activeProviderReplies&&o||((g=this._activeProviderReplies)==null||g.forEach((C=>{C==null||C.forEach((D=>{D.link.dispose&&D.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=h.y);let a=!1;for(const[C,D]of this._linkProviderService.linkProviders.entries())o?(N=this._activeProviderReplies)!=null&&N.get(C)&&(a=this._checkLinkProviderResult(C,h,a)):D.provideLinks(h.y,(w=>{var M,L;if(this._isMouseOut)return;const k=w==null?void 0:w.map((H=>({link:H})));(M=this._activeProviderReplies)==null||M.set(C,k),a=this._checkLinkProviderResult(C,h,a),((L=this._activeProviderReplies)==null?void 0:L.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(h.y,this._activeProviderReplies)}))}_removeIntersectingLinks(h,o){const a=new Set;for(let g=0;g<o.size;g++){const N=o.get(g);if(N)for(let C=0;C<N.length;C++){const D=N[C],w=D.link.range.start.y<h?0:D.link.range.start.x,k=D.link.range.end.y>h?this._bufferService.cols:D.link.range.end.x;for(let M=w;M<=k;M++){if(a.has(M)){N.splice(C--,1);break}a.add(M)}}}}_checkLinkProviderResult(h,o,a){var C;if(!this._activeProviderReplies)return a;const g=this._activeProviderReplies.get(h);let N=!1;for(let D=0;D<h;D++)this._activeProviderReplies.has(D)&&!this._activeProviderReplies.get(D)||(N=!0);if(!N&&g){const D=g.find((w=>this._linkAtPosition(w.link,o)));D&&(a=!0,this._handleNewLink(D))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!a)for(let D=0;D<this._activeProviderReplies.size;D++){const w=(C=this._activeProviderReplies.get(D))==null?void 0:C.find((k=>this._linkAtPosition(k.link,o)));if(w){a=!0,this._handleNewLink(w);break}}return a}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(h){if(!this._currentLink)return;const o=this._positionFromMouseEvent(h,this._element,this._mouseService);o&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,o)&&this._currentLink.link.activate(h,this._currentLink.link.text)}_clearCurrentLink(h,o){this._currentLink&&this._lastMouseEvent&&(!h||!o||this._currentLink.link.range.start.y>=h&&this._currentLink.link.range.end.y<=o)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,y.disposeArray)(this._linkCacheDisposables))}_handleNewLink(h){if(!this._lastMouseEvent)return;const o=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);o&&this._linkAtPosition(h.link,o)&&(this._currentLink=h,this._currentLink.state={decorations:{underline:h.link.decorations===void 0||h.link.decorations.underline,pointerCursor:h.link.decorations===void 0||h.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,h.link,this._lastMouseEvent),h.link.decorations={},Object.defineProperties(h.link.decorations,{pointerCursor:{get:()=>{var a,g;return(g=(a=this._currentLink)==null?void 0:a.state)==null?void 0:g.decorations.pointerCursor},set:a=>{var g;(g=this._currentLink)!=null&&g.state&&this._currentLink.state.decorations.pointerCursor!==a&&(this._currentLink.state.decorations.pointerCursor=a,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",a))}},underline:{get:()=>{var a,g;return(g=(a=this._currentLink)==null?void 0:a.state)==null?void 0:g.decorations.underline},set:a=>{var g,N,C;(g=this._currentLink)!=null&&g.state&&((C=(N=this._currentLink)==null?void 0:N.state)==null?void 0:C.decorations.underline)!==a&&(this._currentLink.state.decorations.underline=a,this._currentLink.state.isHovered&&this._fireUnderlineEvent(h.link,a))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((a=>{if(!this._currentLink)return;const g=a.start===0?0:a.start+1+this._bufferService.buffer.ydisp,N=this._bufferService.buffer.ydisp+1+a.end;if(this._currentLink.link.range.start.y>=g&&this._currentLink.link.range.end.y<=N&&(this._clearCurrentLink(g,N),this._lastMouseEvent)){const C=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);C&&this._askForLink(C,!1)}}))))}_linkHover(h,o,a){var g;(g=this._currentLink)!=null&&g.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!0),this._currentLink.state.decorations.pointerCursor&&h.classList.add("xterm-cursor-pointer")),o.hover&&o.hover(a,o.text)}_fireUnderlineEvent(h,o){const a=h.range,g=this._bufferService.buffer.ydisp,N=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-g-1,a.end.x,a.end.y-g-1,void 0);(o?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(N)}_linkLeave(h,o,a){var g;(g=this._currentLink)!=null&&g.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!1),this._currentLink.state.decorations.pointerCursor&&h.classList.remove("xterm-cursor-pointer")),o.leave&&o.leave(a,o.text)}_linkAtPosition(h,o){const a=h.range.start.y*this._bufferService.cols+h.range.start.x,g=h.range.end.y*this._bufferService.cols+h.range.end.x,N=o.y*this._bufferService.cols+o.x;return a<=N&&N<=g}_positionFromMouseEvent(h,o,a){const g=a.getCoords(h,o,this._bufferService.cols,this._bufferService.rows);if(g)return{x:g[0],y:g[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(h,o,a,g,N){return{x1:h,y1:o,x2:a,y2:g,cols:this._bufferService.cols,fg:N}}};c.Linkifier=u=_([S(1,v.IMouseService),S(2,v.IRenderService),S(3,E.IBufferService),S(4,v.ILinkProviderService)],u)},9042:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.tooMuchOutput=c.promptLabel=void 0,c.promptLabel="Terminal input",c.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(W,c,b){var _=this&&this.__decorate||function(v,u,h,o){var a,g=arguments.length,N=g<3?u:o===null?o=Object.getOwnPropertyDescriptor(u,h):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(v,u,h,o);else for(var C=v.length-1;C>=0;C--)(a=v[C])&&(N=(g<3?a(N):g>3?a(u,h,N):a(u,h))||N);return g>3&&N&&Object.defineProperty(u,h,N),N},S=this&&this.__param||function(v,u){return function(h,o){u(h,o,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.OscLinkProvider=void 0;const d=b(511),m=b(2585);let y=c.OscLinkProvider=class{constructor(v,u,h){this._bufferService=v,this._optionsService=u,this._oscLinkService=h}provideLinks(v,u){var k;const h=this._bufferService.buffer.lines.get(v-1);if(!h)return void u(void 0);const o=[],a=this._optionsService.rawOptions.linkHandler,g=new d.CellData,N=h.getTrimmedLength();let C=-1,D=-1,w=!1;for(let M=0;M<N;M++)if(D!==-1||h.hasContent(M)){if(h.loadCell(M,g),g.hasExtendedAttrs()&&g.extended.urlId){if(D===-1){D=M,C=g.extended.urlId;continue}w=g.extended.urlId!==C}else D!==-1&&(w=!0);if(w||D!==-1&&M===N-1){const L=(k=this._oscLinkService.getLinkData(C))==null?void 0:k.uri;if(L){const H={start:{x:D+1,y:v},end:{x:M+(w||M!==N-1?0:1),y:v}};let B=!1;if(!(a!=null&&a.allowNonHttpProtocols))try{const J=new URL(L);["http:","https:"].includes(J.protocol)||(B=!0)}catch{B=!0}B||o.push({text:L,range:H,activate:(J,ae)=>a?a.activate(J,ae,H):E(0,ae),hover:(J,ae)=>{var te;return(te=a==null?void 0:a.hover)==null?void 0:te.call(a,J,ae,H)},leave:(J,ae)=>{var te;return(te=a==null?void 0:a.leave)==null?void 0:te.call(a,J,ae,H)}})}w=!1,g.hasExtendedAttrs()&&g.extended.urlId?(D=M,C=g.extended.urlId):(D=-1,C=-1)}}u(o)}};function E(v,u){if(confirm(`Do you want to navigate to ${u}?
|
|
278
|
-
|
|
279
|
-
WARNING: This link could potentially be dangerous`)){const h=window.open();if(h){try{h.opener=null}catch{}h.location.href=u}else console.warn("Opening link blocked as opener could not be cleared")}}c.OscLinkProvider=y=_([S(0,m.IBufferService),S(1,m.IOptionsService),S(2,m.IOscLinkService)],y)},6193:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.RenderDebouncer=void 0,c.RenderDebouncer=class{constructor(b,_){this._renderCallback=b,this._coreBrowserService=_,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(b){return this._refreshCallbacks.push(b),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(b,_,S){this._rowCount=S,b=b!==void 0?b:0,_=_!==void 0?_:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,b):b,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,_):_,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const b=Math.max(this._rowStart,0),_=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(b,_),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const b of this._refreshCallbacks)b(0);this._refreshCallbacks=[]}}},3236:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.Terminal=void 0;const _=b(3614),S=b(3656),d=b(3551),m=b(9042),y=b(3730),E=b(1680),v=b(3107),u=b(5744),h=b(2950),o=b(1296),a=b(428),g=b(4269),N=b(5114),C=b(8934),D=b(3230),w=b(9312),k=b(4725),M=b(6731),L=b(8055),H=b(8969),B=b(8460),J=b(844),ae=b(6114),te=b(8437),de=b(2584),le=b(7399),T=b(5941),V=b(9074),A=b(2585),$=b(5435),ue=b(4567),me=b(779);class be extends H.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(F={}){super(F),this.browser=ae,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new J.MutableDisposable),this._onCursorMove=this.register(new B.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new B.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new B.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new B.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new B.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new B.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new B.EventEmitter),this._onBlur=this.register(new B.EventEmitter),this._onA11yCharEmitter=this.register(new B.EventEmitter),this._onA11yTabEmitter=this.register(new B.EventEmitter),this._onWillOpen=this.register(new B.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(V.DecorationService),this._instantiationService.setService(A.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(me.LinkProviderService),this._instantiationService.setService(k.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(y.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((j,pe)=>this.refresh(j,pe)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((j=>this._reportWindowsOptions(j)))),this.register(this._inputHandler.onColor((j=>this._handleColorEvent(j)))),this.register((0,B.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,B.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,B.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,B.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((j=>this._afterResize(j.cols,j.rows)))),this.register((0,J.toDisposable)((()=>{var j,pe;this._customKeyEventHandler=void 0,(pe=(j=this.element)==null?void 0:j.parentNode)==null||pe.removeChild(this.element)})))}_handleColorEvent(F){if(this._themeService)for(const j of F){let pe,se="";switch(j.index){case 256:pe="foreground",se="10";break;case 257:pe="background",se="11";break;case 258:pe="cursor",se="12";break;default:pe="ansi",se="4;"+j.index}switch(j.type){case 0:const oe=L.color.toColorRGB(pe==="ansi"?this._themeService.colors.ansi[j.index]:this._themeService.colors[pe]);this.coreService.triggerDataEvent(`${de.C0.ESC}]${se};${(0,T.toRgbString)(oe)}${de.C1_ESCAPED.ST}`);break;case 1:if(pe==="ansi")this._themeService.modifyColors((ye=>ye.ansi[j.index]=L.channels.toColor(...j.color)));else{const ye=pe;this._themeService.modifyColors((Ue=>Ue[ye]=L.channels.toColor(...j.color)))}break;case 2:this._themeService.restoreColor(j.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(F){F?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(ue.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(F){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(de.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var F;return(F=this.textarea)==null?void 0:F.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(de.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const F=this.buffer.ybase+this.buffer.y,j=this.buffer.lines.get(F);if(!j)return;const pe=Math.min(this.buffer.x,this.cols-1),se=this._renderService.dimensions.css.cell.height,oe=j.getWidth(pe),ye=this._renderService.dimensions.css.cell.width*oe,Ue=this.buffer.y*this._renderService.dimensions.css.cell.height,nt=pe*this._renderService.dimensions.css.cell.width;this.textarea.style.left=nt+"px",this.textarea.style.top=Ue+"px",this.textarea.style.width=ye+"px",this.textarea.style.height=se+"px",this.textarea.style.lineHeight=se+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,S.addDisposableDomListener)(this.element,"copy",(j=>{this.hasSelection()&&(0,_.copyHandler)(j,this._selectionService)})));const F=j=>(0,_.handlePasteEvent)(j,this.textarea,this.coreService,this.optionsService);this.register((0,S.addDisposableDomListener)(this.textarea,"paste",F)),this.register((0,S.addDisposableDomListener)(this.element,"paste",F)),ae.isFirefox?this.register((0,S.addDisposableDomListener)(this.element,"mousedown",(j=>{j.button===2&&(0,_.rightClickHandler)(j,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,S.addDisposableDomListener)(this.element,"contextmenu",(j=>{(0,_.rightClickHandler)(j,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),ae.isLinux&&this.register((0,S.addDisposableDomListener)(this.element,"auxclick",(j=>{j.button===1&&(0,_.moveTextAreaUnderMouseCursor)(j,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,S.addDisposableDomListener)(this.textarea,"keyup",(F=>this._keyUp(F)),!0)),this.register((0,S.addDisposableDomListener)(this.textarea,"keydown",(F=>this._keyDown(F)),!0)),this.register((0,S.addDisposableDomListener)(this.textarea,"keypress",(F=>this._keyPress(F)),!0)),this.register((0,S.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,S.addDisposableDomListener)(this.textarea,"compositionupdate",(F=>this._compositionHelper.compositionupdate(F)))),this.register((0,S.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,S.addDisposableDomListener)(this.textarea,"input",(F=>this._inputEvent(F)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(F){var pe;if(!F)throw new Error("Terminal requires a parent element.");if(F.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((pe=this.element)==null?void 0:pe.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=F.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),F.appendChild(this.element);const j=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),j.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,S.addDisposableDomListener)(this.screenElement,"mousemove",(se=>this.updateCursorStyle(se)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),j.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",m.promptLabel),ae.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(N.CoreBrowserService,this.textarea,F.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(k.ICoreBrowserService,this._coreBrowserService),this.register((0,S.addDisposableDomListener)(this.textarea,"focus",(se=>this._handleTextAreaFocus(se)))),this.register((0,S.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(a.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(k.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(M.ThemeService),this._instantiationService.setService(k.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(g.CharacterJoinerService),this._instantiationService.setService(k.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(D.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(k.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((se=>this._onRender.fire(se)))),this.onResize((se=>this._renderService.resize(se.cols,se.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(h.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(C.MouseService),this._instantiationService.setService(k.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(d.Linkifier,this.screenElement)),this.element.appendChild(j);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(E.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((se=>this.scrollLines(se.amount,se.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(w.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(k.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((se=>this.scrollLines(se.amount,se.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((se=>this._renderService.handleSelectionChanged(se.start,se.end,se.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((se=>{this.textarea.value=se,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((se=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,S.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(v.BufferDecorationRenderer,this.screenElement)),this.register((0,S.addDisposableDomListener)(this.element,"mousedown",(se=>this._selectionService.handleMouseDown(se)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(ue.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(se=>this._handleScreenReaderModeOptionChange(se)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(u.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(se=>{!this._overviewRulerRenderer&&se&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(u.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(o.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const F=this,j=this.element;function pe(ye){const Ue=F._mouseService.getMouseReportCoords(ye,F.screenElement);if(!Ue)return!1;let nt,Fe;switch(ye.overrideType||ye.type){case"mousemove":Fe=32,ye.buttons===void 0?(nt=3,ye.button!==void 0&&(nt=ye.button<3?ye.button:3)):nt=1&ye.buttons?0:4&ye.buttons?1:2&ye.buttons?2:3;break;case"mouseup":Fe=0,nt=ye.button<3?ye.button:3;break;case"mousedown":Fe=1,nt=ye.button<3?ye.button:3;break;case"wheel":if(F._customWheelEventHandler&&F._customWheelEventHandler(ye)===!1||F.viewport.getLinesScrolled(ye)===0)return!1;Fe=ye.deltaY<0?0:1,nt=4;break;default:return!1}return!(Fe===void 0||nt===void 0||nt>4)&&F.coreMouseService.triggerMouseEvent({col:Ue.col,row:Ue.row,x:Ue.x,y:Ue.y,button:nt,action:Fe,ctrl:ye.ctrlKey,alt:ye.altKey,shift:ye.shiftKey})}const se={mouseup:null,wheel:null,mousedrag:null,mousemove:null},oe={mouseup:ye=>(pe(ye),ye.buttons||(this._document.removeEventListener("mouseup",se.mouseup),se.mousedrag&&this._document.removeEventListener("mousemove",se.mousedrag)),this.cancel(ye)),wheel:ye=>(pe(ye),this.cancel(ye,!0)),mousedrag:ye=>{ye.buttons&&pe(ye)},mousemove:ye=>{ye.buttons||pe(ye)}};this.register(this.coreMouseService.onProtocolChange((ye=>{ye?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(ye)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&ye?se.mousemove||(j.addEventListener("mousemove",oe.mousemove),se.mousemove=oe.mousemove):(j.removeEventListener("mousemove",se.mousemove),se.mousemove=null),16&ye?se.wheel||(j.addEventListener("wheel",oe.wheel,{passive:!1}),se.wheel=oe.wheel):(j.removeEventListener("wheel",se.wheel),se.wheel=null),2&ye?se.mouseup||(se.mouseup=oe.mouseup):(this._document.removeEventListener("mouseup",se.mouseup),se.mouseup=null),4&ye?se.mousedrag||(se.mousedrag=oe.mousedrag):(this._document.removeEventListener("mousemove",se.mousedrag),se.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,S.addDisposableDomListener)(j,"mousedown",(ye=>{if(ye.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(ye))return pe(ye),se.mouseup&&this._document.addEventListener("mouseup",se.mouseup),se.mousedrag&&this._document.addEventListener("mousemove",se.mousedrag),this.cancel(ye)}))),this.register((0,S.addDisposableDomListener)(j,"wheel",(ye=>{if(!se.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(ye)===!1)return!1;if(!this.buffer.hasScrollback){const Ue=this.viewport.getLinesScrolled(ye);if(Ue===0)return;const nt=de.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ye.deltaY<0?"A":"B");let Fe="";for(let ze=0;ze<Math.abs(Ue);ze++)Fe+=nt;return this.coreService.triggerDataEvent(Fe,!0),this.cancel(ye,!0)}return this.viewport.handleWheel(ye)?this.cancel(ye):void 0}}),{passive:!1})),this.register((0,S.addDisposableDomListener)(j,"touchstart",(ye=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(ye),this.cancel(ye)}),{passive:!0})),this.register((0,S.addDisposableDomListener)(j,"touchmove",(ye=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(ye)?void 0:this.cancel(ye)}),{passive:!1}))}refresh(F,j){var pe;(pe=this._renderService)==null||pe.refreshRows(F,j)}updateCursorStyle(F){var j;(j=this._selectionService)!=null&&j.shouldColumnSelect(F)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(F,j,pe=0){var se;pe===1?(super.scrollLines(F,j,pe),this.refresh(0,this.rows-1)):(se=this.viewport)==null||se.scrollLines(F)}paste(F){(0,_.paste)(F,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(F){this._customKeyEventHandler=F}attachCustomWheelEventHandler(F){this._customWheelEventHandler=F}registerLinkProvider(F){return this._linkProviderService.registerLinkProvider(F)}registerCharacterJoiner(F){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const j=this._characterJoinerService.register(F);return this.refresh(0,this.rows-1),j}deregisterCharacterJoiner(F){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(F)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(F){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+F)}registerDecoration(F){return this._decorationService.registerDecoration(F)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(F,j,pe){this._selectionService.setSelection(F,j,pe)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var F;(F=this._selectionService)==null||F.clearSelection()}selectAll(){var F;(F=this._selectionService)==null||F.selectAll()}selectLines(F,j){var pe;(pe=this._selectionService)==null||pe.selectLines(F,j)}_keyDown(F){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(F)===!1)return!1;const j=this.browser.isMac&&this.options.macOptionIsMeta&&F.altKey;if(!j&&!this._compositionHelper.keydown(F))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;j||F.key!=="Dead"&&F.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const pe=(0,le.evaluateKeyboardEvent)(F,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(F),pe.type===3||pe.type===2){const se=this.rows-1;return this.scrollLines(pe.type===2?-se:se),this.cancel(F,!0)}return pe.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,F)||(pe.cancel&&this.cancel(F,!0),!pe.key||!!(F.key&&!F.ctrlKey&&!F.altKey&&!F.metaKey&&F.key.length===1&&F.key.charCodeAt(0)>=65&&F.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(pe.key!==de.C0.ETX&&pe.key!==de.C0.CR||(this.textarea.value=""),this._onKey.fire({key:pe.key,domEvent:F}),this._showCursor(),this.coreService.triggerDataEvent(pe.key,!0),!this.optionsService.rawOptions.screenReaderMode||F.altKey||F.ctrlKey?this.cancel(F,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(F,j){const pe=F.isMac&&!this.options.macOptionIsMeta&&j.altKey&&!j.ctrlKey&&!j.metaKey||F.isWindows&&j.altKey&&j.ctrlKey&&!j.metaKey||F.isWindows&&j.getModifierState("AltGraph");return j.type==="keypress"?pe:pe&&(!j.keyCode||j.keyCode>47)}_keyUp(F){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(F)===!1||((function(j){return j.keyCode===16||j.keyCode===17||j.keyCode===18})(F)||this.focus(),this.updateCursorStyle(F),this._keyPressHandled=!1)}_keyPress(F){let j;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(F)===!1)return!1;if(this.cancel(F),F.charCode)j=F.charCode;else if(F.which===null||F.which===void 0)j=F.keyCode;else{if(F.which===0||F.charCode===0)return!1;j=F.which}return!(!j||(F.altKey||F.ctrlKey||F.metaKey)&&!this._isThirdLevelShift(this.browser,F)||(j=String.fromCharCode(j),this._onKey.fire({key:j,domEvent:F}),this._showCursor(),this.coreService.triggerDataEvent(j,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(F){if(F.data&&F.inputType==="insertText"&&(!F.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const j=F.data;return this.coreService.triggerDataEvent(j,!0),this.cancel(F),!0}return!1}resize(F,j){F!==this.cols||j!==this.rows?super.resize(F,j):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(F,j){var pe,se;(pe=this._charSizeService)==null||pe.measure(),(se=this.viewport)==null||se.syncScrollArea(!0)}clear(){var F;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let j=1;j<this.rows;j++)this.buffer.lines.push(this.buffer.getBlankLine(te.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),(F=this.viewport)==null||F.reset(),this.refresh(0,this.rows-1)}}reset(){var j,pe;this.options.rows=this.rows,this.options.cols=this.cols;const F=this._customKeyEventHandler;this._setup(),super.reset(),(j=this._selectionService)==null||j.reset(),this._decorationService.reset(),(pe=this.viewport)==null||pe.reset(),this._customKeyEventHandler=F,this.refresh(0,this.rows-1)}clearTextureAtlas(){var F;(F=this._renderService)==null||F.clearTextureAtlas()}_reportFocus(){var F;(F=this.element)!=null&&F.classList.contains("focus")?this.coreService.triggerDataEvent(de.C0.ESC+"[I"):this.coreService.triggerDataEvent(de.C0.ESC+"[O")}_reportWindowsOptions(F){if(this._renderService)switch(F){case $.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const j=this._renderService.dimensions.css.canvas.width.toFixed(0),pe=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${de.C0.ESC}[4;${pe};${j}t`);break;case $.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const se=this._renderService.dimensions.css.cell.width.toFixed(0),oe=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${de.C0.ESC}[6;${oe};${se}t`)}}cancel(F,j){if(this.options.cancelEvents||j)return F.preventDefault(),F.stopPropagation(),!1}}c.Terminal=be},9924:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.TimeBasedDebouncer=void 0,c.TimeBasedDebouncer=class{constructor(b,_=1e3){this._renderCallback=b,this._debounceThresholdMS=_,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(b,_,S){this._rowCount=S,b=b!==void 0?b:0,_=_!==void 0?_:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,b):b,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,_):_;const d=Date.now();if(d-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=d,this._innerRefresh();else if(!this._additionalRefreshRequested){const m=d-this._lastRefreshMs,y=this._debounceThresholdMS-m;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),y)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const b=Math.max(this._rowStart,0),_=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(b,_)}}},1680:function(W,c,b){var _=this&&this.__decorate||function(h,o,a,g){var N,C=arguments.length,D=C<3?o:g===null?g=Object.getOwnPropertyDescriptor(o,a):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(h,o,a,g);else for(var w=h.length-1;w>=0;w--)(N=h[w])&&(D=(C<3?N(D):C>3?N(o,a,D):N(o,a))||D);return C>3&&D&&Object.defineProperty(o,a,D),D},S=this&&this.__param||function(h,o){return function(a,g){o(a,g,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.Viewport=void 0;const d=b(3656),m=b(4725),y=b(8460),E=b(844),v=b(2585);let u=c.Viewport=class extends E.Disposable{constructor(h,o,a,g,N,C,D,w){super(),this._viewportElement=h,this._scrollArea=o,this._bufferService=a,this._optionsService=g,this._charSizeService=N,this._renderService=C,this._coreBrowserService=D,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new y.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,d.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((k=>this._activeBuffer=k.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((k=>this._renderDimensions=k))),this._handleThemeChange(w.colors),this.register(w.onChangeColors((k=>this._handleThemeChange(k)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(h){this._viewportElement.style.backgroundColor=h.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(h){if(h)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const o=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==o&&(this._lastRecordedBufferHeight=o,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const h=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==h&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=h),this._refreshAnimationFrame=null}syncScrollArea(h=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(h);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(h)}_handleScroll(h){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const o=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:o,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const h=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(h*(this._smoothScrollState.target-this._smoothScrollState.origin)),h<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(h,o){const a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(o<0&&this._viewportElement.scrollTop!==0||o>0&&a<this._lastRecordedBufferHeight)||(h.cancelable&&h.preventDefault(),!1)}handleWheel(h){const o=this._getPixelsScrolled(h);return o!==0&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target===-1?this._smoothScrollState.target=this._viewportElement.scrollTop+o:this._smoothScrollState.target+=o,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=o,this._bubbleScroll(h,o))}scrollLines(h){if(h!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const o=h*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+o,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:h,suppressScrollEvent:!1})}_getPixelsScrolled(h){if(h.deltaY===0||h.shiftKey)return 0;let o=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_LINE?o*=this._currentRowHeight:h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._currentRowHeight*this._bufferService.rows),o}getBufferElements(h,o){var w;let a,g="";const N=[],C=o??this._bufferService.buffer.lines.length,D=this._bufferService.buffer.lines;for(let k=h;k<C;k++){const M=D.get(k);if(!M)continue;const L=(w=D.get(k+1))==null?void 0:w.isWrapped;if(g+=M.translateToString(!L),!L||k===D.length-1){const H=document.createElement("div");H.textContent=g,N.push(H),g.length>0&&(a=H),g=""}}return{bufferElements:N,cursorElement:a}}getLinesScrolled(h){if(h.deltaY===0||h.shiftKey)return 0;let o=this._applyScrollModifier(h.deltaY,h);return h.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(o/=this._currentRowHeight+0,this._wheelPartialScroll+=o,o=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):h.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o}_applyScrollModifier(h,o){const a=this._optionsService.rawOptions.fastScrollModifier;return a==="alt"&&o.altKey||a==="ctrl"&&o.ctrlKey||a==="shift"&&o.shiftKey?h*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:h*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(h){this._lastTouchY=h.touches[0].pageY}handleTouchMove(h){const o=this._lastTouchY-h.touches[0].pageY;return this._lastTouchY=h.touches[0].pageY,o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(h,o))}};c.Viewport=u=_([S(2,v.IBufferService),S(3,v.IOptionsService),S(4,m.ICharSizeService),S(5,m.IRenderService),S(6,m.ICoreBrowserService),S(7,m.IThemeService)],u)},3107:function(W,c,b){var _=this&&this.__decorate||function(v,u,h,o){var a,g=arguments.length,N=g<3?u:o===null?o=Object.getOwnPropertyDescriptor(u,h):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(v,u,h,o);else for(var C=v.length-1;C>=0;C--)(a=v[C])&&(N=(g<3?a(N):g>3?a(u,h,N):a(u,h))||N);return g>3&&N&&Object.defineProperty(u,h,N),N},S=this&&this.__param||function(v,u){return function(h,o){u(h,o,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferDecorationRenderer=void 0;const d=b(4725),m=b(844),y=b(2585);let E=c.BufferDecorationRenderer=class extends m.Disposable{constructor(v,u,h,o,a){super(),this._screenElement=v,this._bufferService=u,this._coreBrowserService=h,this._decorationService=o,this._renderService=a,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((g=>this._removeDecoration(g)))),this.register((0,m.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const v of this._decorationService.decorations)this._renderDecoration(v);this._dimensionsChanged=!1}_renderDecoration(v){this._refreshStyle(v),this._dimensionsChanged&&this._refreshXPosition(v)}_createElement(v){var o;const u=this._coreBrowserService.mainDocument.createElement("div");u.classList.add("xterm-decoration"),u.classList.toggle("xterm-decoration-top-layer",((o=v==null?void 0:v.options)==null?void 0:o.layer)==="top"),u.style.width=`${Math.round((v.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,u.style.height=(v.options.height||1)*this._renderService.dimensions.css.cell.height+"px",u.style.top=(v.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",u.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const h=v.options.x??0;return h&&h>this._bufferService.cols&&(u.style.display="none"),this._refreshXPosition(v,u),u}_refreshStyle(v){const u=v.marker.line-this._bufferService.buffers.active.ydisp;if(u<0||u>=this._bufferService.rows)v.element&&(v.element.style.display="none",v.onRenderEmitter.fire(v.element));else{let h=this._decorationElements.get(v);h||(h=this._createElement(v),v.element=h,this._decorationElements.set(v,h),this._container.appendChild(h),v.onDispose((()=>{this._decorationElements.delete(v),h.remove()}))),h.style.top=u*this._renderService.dimensions.css.cell.height+"px",h.style.display=this._altBufferIsActive?"none":"block",v.onRenderEmitter.fire(h)}}_refreshXPosition(v,u=v.element){if(!u)return;const h=v.options.x??0;(v.options.anchor||"left")==="right"?u.style.right=h?h*this._renderService.dimensions.css.cell.width+"px":"":u.style.left=h?h*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(v){var u;(u=this._decorationElements.get(v))==null||u.remove(),this._decorationElements.delete(v),v.dispose()}};c.BufferDecorationRenderer=E=_([S(1,y.IBufferService),S(2,d.ICoreBrowserService),S(3,y.IDecorationService),S(4,d.IRenderService)],E)},5871:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ColorZoneStore=void 0,c.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(b){if(b.options.overviewRulerOptions){for(const _ of this._zones)if(_.color===b.options.overviewRulerOptions.color&&_.position===b.options.overviewRulerOptions.position){if(this._lineIntersectsZone(_,b.marker.line))return;if(this._lineAdjacentToZone(_,b.marker.line,b.options.overviewRulerOptions.position))return void this._addLineToZone(_,b.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=b.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=b.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=b.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=b.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:b.options.overviewRulerOptions.color,position:b.options.overviewRulerOptions.position,startBufferLine:b.marker.line,endBufferLine:b.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(b){this._linePadding=b}_lineIntersectsZone(b,_){return _>=b.startBufferLine&&_<=b.endBufferLine}_lineAdjacentToZone(b,_,S){return _>=b.startBufferLine-this._linePadding[S||"full"]&&_<=b.endBufferLine+this._linePadding[S||"full"]}_addLineToZone(b,_){b.startBufferLine=Math.min(b.startBufferLine,_),b.endBufferLine=Math.max(b.endBufferLine,_)}}},5744:function(W,c,b){var _=this&&this.__decorate||function(a,g,N,C){var D,w=arguments.length,k=w<3?g:C===null?C=Object.getOwnPropertyDescriptor(g,N):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,g,N,C);else for(var M=a.length-1;M>=0;M--)(D=a[M])&&(k=(w<3?D(k):w>3?D(g,N,k):D(g,N))||k);return w>3&&k&&Object.defineProperty(g,N,k),k},S=this&&this.__param||function(a,g){return function(N,C){g(N,C,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.OverviewRulerRenderer=void 0;const d=b(5871),m=b(4725),y=b(844),E=b(2585),v={full:0,left:0,center:0,right:0},u={full:0,left:0,center:0,right:0},h={full:0,left:0,center:0,right:0};let o=c.OverviewRulerRenderer=class extends y.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(a,g,N,C,D,w,k){var L;super(),this._viewportElement=a,this._screenElement=g,this._bufferService=N,this._decorationService=C,this._renderService=D,this._optionsService=w,this._coreBrowserService=k,this._colorZoneStore=new d.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(L=this._viewportElement.parentElement)==null||L.insertBefore(this._canvas,this._viewportElement);const M=this._canvas.getContext("2d");if(!M)throw new Error("Ctx cannot be null");this._ctx=M,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,y.toDisposable)((()=>{var H;(H=this._canvas)==null||H.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const a=Math.floor(this._canvas.width/3),g=Math.ceil(this._canvas.width/3);u.full=this._canvas.width,u.left=a,u.center=g,u.right=a,this._refreshDrawHeightConstants(),h.full=0,h.left=0,h.center=u.left,h.right=u.left+u.center}_refreshDrawHeightConstants(){v.full=Math.round(2*this._coreBrowserService.dpr);const a=this._canvas.height/this._bufferService.buffer.lines.length,g=Math.round(Math.max(Math.min(a,12),6)*this._coreBrowserService.dpr);v.left=g,v.center=g,v.right=g}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*v.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const g of this._decorationService.decorations)this._colorZoneStore.addDecoration(g);this._ctx.lineWidth=1;const a=this._colorZoneStore.zones;for(const g of a)g.position!=="full"&&this._renderColorZone(g);for(const g of a)g.position==="full"&&this._renderColorZone(g);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(a){this._ctx.fillStyle=a.color,this._ctx.fillRect(h[a.position||"full"],Math.round((this._canvas.height-1)*(a.startBufferLine/this._bufferService.buffers.active.lines.length)-v[a.position||"full"]/2),u[a.position||"full"],Math.round((this._canvas.height-1)*((a.endBufferLine-a.startBufferLine)/this._bufferService.buffers.active.lines.length)+v[a.position||"full"]))}_queueRefresh(a,g){this._shouldUpdateDimensions=a||this._shouldUpdateDimensions,this._shouldUpdateAnchor=g||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};c.OverviewRulerRenderer=o=_([S(2,E.IBufferService),S(3,E.IDecorationService),S(4,m.IRenderService),S(5,E.IOptionsService),S(6,m.ICoreBrowserService)],o)},2950:function(W,c,b){var _=this&&this.__decorate||function(v,u,h,o){var a,g=arguments.length,N=g<3?u:o===null?o=Object.getOwnPropertyDescriptor(u,h):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(v,u,h,o);else for(var C=v.length-1;C>=0;C--)(a=v[C])&&(N=(g<3?a(N):g>3?a(u,h,N):a(u,h))||N);return g>3&&N&&Object.defineProperty(u,h,N),N},S=this&&this.__param||function(v,u){return function(h,o){u(h,o,v)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CompositionHelper=void 0;const d=b(4725),m=b(2585),y=b(2584);let E=c.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(v,u,h,o,a,g){this._textarea=v,this._compositionView=u,this._bufferService=h,this._optionsService=o,this._coreService=a,this._renderService=g,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(v){this._compositionView.textContent=v.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(v){if(this._isComposing||this._isSendingComposition){if(v.keyCode===229||v.keyCode===16||v.keyCode===17||v.keyCode===18)return!1;this._finalizeComposition(!1)}return v.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(v){if(this._compositionView.classList.remove("active"),this._isComposing=!1,v){const u={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let h;this._isSendingComposition=!1,u.start+=this._dataAlreadySent.length,h=this._isComposing?this._textarea.value.substring(u.start,u.end):this._textarea.value.substring(u.start),h.length>0&&this._coreService.triggerDataEvent(h,!0)}}),0)}else{this._isSendingComposition=!1;const u=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(u,!0)}}_handleAnyTextareaChanges(){const v=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const u=this._textarea.value,h=u.replace(v,"");this._dataAlreadySent=h,u.length>v.length?this._coreService.triggerDataEvent(h,!0):u.length<v.length?this._coreService.triggerDataEvent(`${y.C0.DEL}`,!0):u.length===v.length&&u!==v&&this._coreService.triggerDataEvent(u,!0)}}),0)}updateCompositionElements(v){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const u=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),h=this._renderService.dimensions.css.cell.height,o=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,a=u*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=a+"px",this._compositionView.style.top=o+"px",this._compositionView.style.height=h+"px",this._compositionView.style.lineHeight=h+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const g=this._compositionView.getBoundingClientRect();this._textarea.style.left=a+"px",this._textarea.style.top=o+"px",this._textarea.style.width=Math.max(g.width,1)+"px",this._textarea.style.height=Math.max(g.height,1)+"px",this._textarea.style.lineHeight=g.height+"px"}v||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};c.CompositionHelper=E=_([S(2,m.IBufferService),S(3,m.IOptionsService),S(4,m.ICoreService),S(5,d.IRenderService)],E)},9806:(W,c)=>{function b(_,S,d){const m=d.getBoundingClientRect(),y=_.getComputedStyle(d),E=parseInt(y.getPropertyValue("padding-left")),v=parseInt(y.getPropertyValue("padding-top"));return[S.clientX-m.left-E,S.clientY-m.top-v]}Object.defineProperty(c,"__esModule",{value:!0}),c.getCoords=c.getCoordsRelativeToElement=void 0,c.getCoordsRelativeToElement=b,c.getCoords=function(_,S,d,m,y,E,v,u,h){if(!E)return;const o=b(_,S,d);return o?(o[0]=Math.ceil((o[0]+(h?v/2:0))/v),o[1]=Math.ceil(o[1]/u),o[0]=Math.min(Math.max(o[0],1),m+(h?1:0)),o[1]=Math.min(Math.max(o[1],1),y),o):void 0}},9504:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.moveToCellSequence=void 0;const _=b(2584);function S(u,h,o,a){const g=u-d(u,o),N=h-d(h,o),C=Math.abs(g-N)-(function(D,w,k){let M=0;const L=D-d(D,k),H=w-d(w,k);for(let B=0;B<Math.abs(L-H);B++){const J=m(D,w)==="A"?-1:1,ae=k.buffer.lines.get(L+J*B);ae!=null&&ae.isWrapped&&M++}return M})(u,h,o);return v(C,E(m(u,h),a))}function d(u,h){let o=0,a=h.buffer.lines.get(u),g=a==null?void 0:a.isWrapped;for(;g&&u>=0&&u<h.rows;)o++,a=h.buffer.lines.get(--u),g=a==null?void 0:a.isWrapped;return o}function m(u,h){return u>h?"A":"B"}function y(u,h,o,a,g,N){let C=u,D=h,w="";for(;C!==o||D!==a;)C+=g?1:-1,g&&C>N.cols-1?(w+=N.buffer.translateBufferLineToString(D,!1,u,C),C=0,u=0,D++):!g&&C<0&&(w+=N.buffer.translateBufferLineToString(D,!1,0,u+1),C=N.cols-1,u=C,D--);return w+N.buffer.translateBufferLineToString(D,!1,u,C)}function E(u,h){const o=h?"O":"[";return _.C0.ESC+o+u}function v(u,h){u=Math.floor(u);let o="";for(let a=0;a<u;a++)o+=h;return o}c.moveToCellSequence=function(u,h,o,a){const g=o.buffer.x,N=o.buffer.y;if(!o.buffer.hasScrollback)return(function(w,k,M,L,H,B){return S(k,L,H,B).length===0?"":v(y(w,k,w,k-d(k,H),!1,H).length,E("D",B))})(g,N,0,h,o,a)+S(N,h,o,a)+(function(w,k,M,L,H,B){let J;J=S(k,L,H,B).length>0?L-d(L,H):k;const ae=L,te=(function(de,le,T,V,A,$){let ue;return ue=S(T,V,A,$).length>0?V-d(V,A):le,de<T&&ue<=V||de>=T&&ue<V?"C":"D"})(w,k,M,L,H,B);return v(y(w,J,M,ae,te==="C",H).length,E(te,B))})(g,N,u,h,o,a);let C;if(N===h)return C=g>u?"D":"C",v(Math.abs(g-u),E(C,a));C=N>h?"D":"C";const D=Math.abs(N-h);return v((function(w,k){return k.cols-w})(N>h?u:g,o)+(D-1)*o.cols+1+((N>h?g:u)-1),E(C,a))}},1296:function(W,c,b){var _=this&&this.__decorate||function(B,J,ae,te){var de,le=arguments.length,T=le<3?J:te===null?te=Object.getOwnPropertyDescriptor(J,ae):te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(B,J,ae,te);else for(var V=B.length-1;V>=0;V--)(de=B[V])&&(T=(le<3?de(T):le>3?de(J,ae,T):de(J,ae))||T);return le>3&&T&&Object.defineProperty(J,ae,T),T},S=this&&this.__param||function(B,J){return function(ae,te){J(ae,te,B)}};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRenderer=void 0;const d=b(3787),m=b(2550),y=b(2223),E=b(6171),v=b(6052),u=b(4725),h=b(8055),o=b(8460),a=b(844),g=b(2585),N="xterm-dom-renderer-owner-",C="xterm-rows",D="xterm-fg-",w="xterm-bg-",k="xterm-focus",M="xterm-selection";let L=1,H=c.DomRenderer=class extends a.Disposable{constructor(B,J,ae,te,de,le,T,V,A,$,ue,me,be){super(),this._terminal=B,this._document=J,this._element=ae,this._screenElement=te,this._viewportElement=de,this._helperContainer=le,this._linkifier2=T,this._charSizeService=A,this._optionsService=$,this._bufferService=ue,this._coreBrowserService=me,this._themeService=be,this._terminalClass=L++,this._rowElements=[],this._selectionRenderModel=(0,v.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new o.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(C),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(M),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,E.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((Ce=>this._injectCss(Ce)))),this._injectCss(this._themeService.colors),this._rowFactory=V.createInstance(d.DomRendererRowFactory,document),this._element.classList.add(N+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((Ce=>this._handleLinkHover(Ce)))),this.register(this._linkifier2.onHideLinkUnderline((Ce=>this._handleLinkLeave(Ce)))),this.register((0,a.toDisposable)((()=>{this._element.classList.remove(N+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new m.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const B=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*B,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*B),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/B),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/B),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const ae of this._rowElements)ae.style.width=`${this.dimensions.css.canvas.width}px`,ae.style.height=`${this.dimensions.css.cell.height}px`,ae.style.lineHeight=`${this.dimensions.css.cell.height}px`,ae.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const J=`${this._terminalSelector} .${C} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=J,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(B){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let J=`${this._terminalSelector} .${C} { color: ${B.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;J+=`${this._terminalSelector} .${C} .xterm-dim { color: ${h.color.multiplyOpacity(B.foreground,.5).css};}`,J+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;const ae=`blink_underline_${this._terminalClass}`,te=`blink_bar_${this._terminalClass}`,de=`blink_block_${this._terminalClass}`;J+=`@keyframes ${ae} { 50% { border-bottom-style: hidden; }}`,J+=`@keyframes ${te} { 50% { box-shadow: none; }}`,J+=`@keyframes ${de} { 0% { background-color: ${B.cursor.css}; color: ${B.cursorAccent.css}; } 50% { background-color: inherit; color: ${B.cursor.css}; }}`,J+=`${this._terminalSelector} .${C}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${ae} 1s step-end infinite;}${this._terminalSelector} .${C}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${te} 1s step-end infinite;}${this._terminalSelector} .${C}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${de} 1s step-end infinite;}${this._terminalSelector} .${C} .xterm-cursor.xterm-cursor-block { background-color: ${B.cursor.css}; color: ${B.cursorAccent.css};}${this._terminalSelector} .${C} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${B.cursor.css} !important; color: ${B.cursorAccent.css} !important;}${this._terminalSelector} .${C} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${B.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${C} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${B.cursor.css} inset;}${this._terminalSelector} .${C} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${B.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,J+=`${this._terminalSelector} .${M} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${M} div { position: absolute; background-color: ${B.selectionBackgroundOpaque.css};}${this._terminalSelector} .${M} div { position: absolute; background-color: ${B.selectionInactiveBackgroundOpaque.css};}`;for(const[le,T]of B.ansi.entries())J+=`${this._terminalSelector} .${D}${le} { color: ${T.css}; }${this._terminalSelector} .${D}${le}.xterm-dim { color: ${h.color.multiplyOpacity(T,.5).css}; }${this._terminalSelector} .${w}${le} { background-color: ${T.css}; }`;J+=`${this._terminalSelector} .${D}${y.INVERTED_DEFAULT_COLOR} { color: ${h.color.opaque(B.background).css}; }${this._terminalSelector} .${D}${y.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${h.color.multiplyOpacity(h.color.opaque(B.background),.5).css}; }${this._terminalSelector} .${w}${y.INVERTED_DEFAULT_COLOR} { background-color: ${B.foreground.css}; }`,this._themeStyleElement.textContent=J}_setDefaultSpacing(){const B=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${B}px`,this._rowFactory.defaultSpacing=B}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(B,J){for(let ae=this._rowElements.length;ae<=J;ae++){const te=this._document.createElement("div");this._rowContainer.appendChild(te),this._rowElements.push(te)}for(;this._rowElements.length>J;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(B,J){this._refreshRowElements(B,J),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(k),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(k),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(B,J,ae){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(B,J,ae),this.renderRows(0,this._bufferService.rows-1),!B||!J)return;this._selectionRenderModel.update(this._terminal,B,J,ae);const te=this._selectionRenderModel.viewportStartRow,de=this._selectionRenderModel.viewportEndRow,le=this._selectionRenderModel.viewportCappedStartRow,T=this._selectionRenderModel.viewportCappedEndRow;if(le>=this._bufferService.rows||T<0)return;const V=this._document.createDocumentFragment();if(ae){const A=B[0]>J[0];V.appendChild(this._createSelectionElement(le,A?J[0]:B[0],A?B[0]:J[0],T-le+1))}else{const A=te===le?B[0]:0,$=le===de?J[0]:this._bufferService.cols;V.appendChild(this._createSelectionElement(le,A,$));const ue=T-le-1;if(V.appendChild(this._createSelectionElement(le+1,0,this._bufferService.cols,ue)),le!==T){const me=de===T?J[0]:this._bufferService.cols;V.appendChild(this._createSelectionElement(T,0,me))}}this._selectionContainer.appendChild(V)}_createSelectionElement(B,J,ae,te=1){const de=this._document.createElement("div"),le=J*this.dimensions.css.cell.width;let T=this.dimensions.css.cell.width*(ae-J);return le+T>this.dimensions.css.canvas.width&&(T=this.dimensions.css.canvas.width-le),de.style.height=te*this.dimensions.css.cell.height+"px",de.style.top=B*this.dimensions.css.cell.height+"px",de.style.left=`${le}px`,de.style.width=`${T}px`,de}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const B of this._rowElements)B.replaceChildren()}renderRows(B,J){const ae=this._bufferService.buffer,te=ae.ybase+ae.y,de=Math.min(ae.x,this._bufferService.cols-1),le=this._optionsService.rawOptions.cursorBlink,T=this._optionsService.rawOptions.cursorStyle,V=this._optionsService.rawOptions.cursorInactiveStyle;for(let A=B;A<=J;A++){const $=A+ae.ydisp,ue=this._rowElements[A],me=ae.lines.get($);if(!ue||!me)break;ue.replaceChildren(...this._rowFactory.createRow(me,$,$===te,T,V,de,le,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${N}${this._terminalClass}`}_handleLinkHover(B){this._setCellUnderline(B.x1,B.x2,B.y1,B.y2,B.cols,!0)}_handleLinkLeave(B){this._setCellUnderline(B.x1,B.x2,B.y1,B.y2,B.cols,!1)}_setCellUnderline(B,J,ae,te,de,le){ae<0&&(B=0),te<0&&(J=0);const T=this._bufferService.rows-1;ae=Math.max(Math.min(ae,T),0),te=Math.max(Math.min(te,T),0),de=Math.min(de,this._bufferService.cols);const V=this._bufferService.buffer,A=V.ybase+V.y,$=Math.min(V.x,de-1),ue=this._optionsService.rawOptions.cursorBlink,me=this._optionsService.rawOptions.cursorStyle,be=this._optionsService.rawOptions.cursorInactiveStyle;for(let Ce=ae;Ce<=te;++Ce){const F=Ce+V.ydisp,j=this._rowElements[Ce],pe=V.lines.get(F);if(!j||!pe)break;j.replaceChildren(...this._rowFactory.createRow(pe,F,F===A,me,be,$,ue,this.dimensions.css.cell.width,this._widthCache,le?Ce===ae?B:0:-1,le?(Ce===te?J:de)-1:-1))}}};c.DomRenderer=H=_([S(7,g.IInstantiationService),S(8,u.ICharSizeService),S(9,g.IOptionsService),S(10,g.IBufferService),S(11,u.ICoreBrowserService),S(12,u.IThemeService)],H)},3787:function(W,c,b){var _=this&&this.__decorate||function(C,D,w,k){var M,L=arguments.length,H=L<3?D:k===null?k=Object.getOwnPropertyDescriptor(D,w):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(C,D,w,k);else for(var B=C.length-1;B>=0;B--)(M=C[B])&&(H=(L<3?M(H):L>3?M(D,w,H):M(D,w))||H);return L>3&&H&&Object.defineProperty(D,w,H),H},S=this&&this.__param||function(C,D){return function(w,k){D(w,k,C)}};Object.defineProperty(c,"__esModule",{value:!0}),c.DomRendererRowFactory=void 0;const d=b(2223),m=b(643),y=b(511),E=b(2585),v=b(8055),u=b(4725),h=b(4269),o=b(6171),a=b(3734);let g=c.DomRendererRowFactory=class{constructor(C,D,w,k,M,L,H){this._document=C,this._characterJoinerService=D,this._optionsService=w,this._coreBrowserService=k,this._coreService=M,this._decorationService=L,this._themeService=H,this._workCell=new y.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(C,D,w){this._selectionStart=C,this._selectionEnd=D,this._columnSelectMode=w}createRow(C,D,w,k,M,L,H,B,J,ae,te){const de=[],le=this._characterJoinerService.getJoinedCharacters(D),T=this._themeService.colors;let V,A=C.getNoBgTrimmedLength();w&&A<L+1&&(A=L+1);let $=0,ue="",me=0,be=0,Ce=0,F=!1,j=0,pe=!1,se=0;const oe=[],ye=ae!==-1&&te!==-1;for(let Ue=0;Ue<A;Ue++){C.loadCell(Ue,this._workCell);let nt=this._workCell.getWidth();if(nt===0)continue;let Fe=!1,ze=Ue,De=this._workCell;if(le.length>0&&Ue===le[0][0]){Fe=!0;const ct=le.shift();De=new h.JoinedCellData(this._workCell,C.translateToString(!0,ct[0],ct[1]),ct[1]-ct[0]),ze=ct[1]-1,nt=De.getWidth()}const Xt=this._isCellInSelection(Ue,D),Ys=w&&Ue===L,xe=ye&&Ue>=ae&&Ue<=te;let Di=!1;this._decorationService.forEachDecorationAtCell(Ue,D,void 0,(ct=>{Di=!0}));let ge=De.getChars()||m.WHITESPACE_CELL_CHAR;if(ge===" "&&(De.isUnderline()||De.isOverline())&&(ge=" "),se=nt*B-J.get(ge,De.isBold(),De.isItalic()),V){if($&&(Xt&&pe||!Xt&&!pe&&De.bg===me)&&(Xt&&pe&&T.selectionForeground||De.fg===be)&&De.extended.ext===Ce&&xe===F&&se===j&&!Ys&&!Fe&&!Di){De.isInvisible()?ue+=m.WHITESPACE_CELL_CHAR:ue+=ge,$++;continue}$&&(V.textContent=ue),V=this._document.createElement("span"),$=0,ue=""}else V=this._document.createElement("span");if(me=De.bg,be=De.fg,Ce=De.extended.ext,F=xe,j=se,pe=Xt,Fe&&L>=Ue&&L<=ze&&(L=Ue),!this._coreService.isCursorHidden&&Ys&&this._coreService.isCursorInitialized){if(oe.push("xterm-cursor"),this._coreBrowserService.isFocused)H&&oe.push("xterm-cursor-blink"),oe.push(k==="bar"?"xterm-cursor-bar":k==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(M)switch(M){case"outline":oe.push("xterm-cursor-outline");break;case"block":oe.push("xterm-cursor-block");break;case"bar":oe.push("xterm-cursor-bar");break;case"underline":oe.push("xterm-cursor-underline")}}if(De.isBold()&&oe.push("xterm-bold"),De.isItalic()&&oe.push("xterm-italic"),De.isDim()&&oe.push("xterm-dim"),ue=De.isInvisible()?m.WHITESPACE_CELL_CHAR:De.getChars()||m.WHITESPACE_CELL_CHAR,De.isUnderline()&&(oe.push(`xterm-underline-${De.extended.underlineStyle}`),ue===" "&&(ue=" "),!De.isUnderlineColorDefault()))if(De.isUnderlineColorRGB())V.style.textDecorationColor=`rgb(${a.AttributeData.toColorRGB(De.getUnderlineColor()).join(",")})`;else{let ct=De.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&De.isBold()&&ct<8&&(ct+=8),V.style.textDecorationColor=T.ansi[ct].css}De.isOverline()&&(oe.push("xterm-overline"),ue===" "&&(ue=" ")),De.isStrikethrough()&&oe.push("xterm-strikethrough"),xe&&(V.style.textDecoration="underline");let Te=De.getFgColor(),it=De.getFgColorMode(),rt=De.getBgColor(),Xe=De.getBgColorMode();const yt=!!De.isInverse();if(yt){const ct=Te;Te=rt,rt=ct;const ps=it;it=Xe,Xe=ps}let dt,Nt,Ct,At=!1;switch(this._decorationService.forEachDecorationAtCell(Ue,D,void 0,(ct=>{ct.options.layer!=="top"&&At||(ct.backgroundColorRGB&&(Xe=50331648,rt=ct.backgroundColorRGB.rgba>>8&16777215,dt=ct.backgroundColorRGB),ct.foregroundColorRGB&&(it=50331648,Te=ct.foregroundColorRGB.rgba>>8&16777215,Nt=ct.foregroundColorRGB),At=ct.options.layer==="top")})),!At&&Xt&&(dt=this._coreBrowserService.isFocused?T.selectionBackgroundOpaque:T.selectionInactiveBackgroundOpaque,rt=dt.rgba>>8&16777215,Xe=50331648,At=!0,T.selectionForeground&&(it=50331648,Te=T.selectionForeground.rgba>>8&16777215,Nt=T.selectionForeground)),At&&oe.push("xterm-decoration-top"),Xe){case 16777216:case 33554432:Ct=T.ansi[rt],oe.push(`xterm-bg-${rt}`);break;case 50331648:Ct=v.channels.toColor(rt>>16,rt>>8&255,255&rt),this._addStyle(V,`background-color:#${N((rt>>>0).toString(16),"0",6)}`);break;default:yt?(Ct=T.foreground,oe.push(`xterm-bg-${d.INVERTED_DEFAULT_COLOR}`)):Ct=T.background}switch(dt||De.isDim()&&(dt=v.color.multiplyOpacity(Ct,.5)),it){case 16777216:case 33554432:De.isBold()&&Te<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Te+=8),this._applyMinimumContrast(V,Ct,T.ansi[Te],De,dt,void 0)||oe.push(`xterm-fg-${Te}`);break;case 50331648:const ct=v.channels.toColor(Te>>16&255,Te>>8&255,255&Te);this._applyMinimumContrast(V,Ct,ct,De,dt,Nt)||this._addStyle(V,`color:#${N(Te.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(V,Ct,T.foreground,De,dt,Nt)||yt&&oe.push(`xterm-fg-${d.INVERTED_DEFAULT_COLOR}`)}oe.length&&(V.className=oe.join(" "),oe.length=0),Ys||Fe||Di?V.textContent=ue:$++,se!==this.defaultSpacing&&(V.style.letterSpacing=`${se}px`),de.push(V),Ue=ze}return V&&$&&(V.textContent=ue),de}_applyMinimumContrast(C,D,w,k,M,L){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,o.treatGlyphAsBackgroundColor)(k.getCode()))return!1;const H=this._getContrastCache(k);let B;if(M||L||(B=H.getColor(D.rgba,w.rgba)),B===void 0){const J=this._optionsService.rawOptions.minimumContrastRatio/(k.isDim()?2:1);B=v.color.ensureContrastRatio(M||D,L||w,J),H.setColor((M||D).rgba,(L||w).rgba,B??null)}return!!B&&(this._addStyle(C,`color:${B.css}`),!0)}_getContrastCache(C){return C.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(C,D){C.setAttribute("style",`${C.getAttribute("style")||""}${D};`)}_isCellInSelection(C,D){const w=this._selectionStart,k=this._selectionEnd;return!(!w||!k)&&(this._columnSelectMode?w[0]<=k[0]?C>=w[0]&&D>=w[1]&&C<k[0]&&D<=k[1]:C<w[0]&&D>=w[1]&&C>=k[0]&&D<=k[1]:D>w[1]&&D<k[1]||w[1]===k[1]&&D===w[1]&&C>=w[0]&&C<k[0]||w[1]<k[1]&&D===k[1]&&C<k[0]||w[1]<k[1]&&D===w[1]&&C>=w[0])}};function N(C,D,w){for(;C.length<w;)C=D+C;return C}c.DomRendererRowFactory=g=_([S(1,u.ICharacterJoinerService),S(2,E.IOptionsService),S(3,u.ICoreBrowserService),S(4,E.ICoreService),S(5,E.IDecorationService),S(6,u.IThemeService)],g)},2550:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.WidthCache=void 0,c.WidthCache=class{constructor(b,_){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=b.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const S=b.createElement("span");S.classList.add("xterm-char-measure-element");const d=b.createElement("span");d.classList.add("xterm-char-measure-element"),d.style.fontWeight="bold";const m=b.createElement("span");m.classList.add("xterm-char-measure-element"),m.style.fontStyle="italic";const y=b.createElement("span");y.classList.add("xterm-char-measure-element"),y.style.fontWeight="bold",y.style.fontStyle="italic",this._measureElements=[S,d,m,y],this._container.appendChild(S),this._container.appendChild(d),this._container.appendChild(m),this._container.appendChild(y),_.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(b,_,S,d){b===this._font&&_===this._fontSize&&S===this._weight&&d===this._weightBold||(this._font=b,this._fontSize=_,this._weight=S,this._weightBold=d,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${S}`,this._measureElements[1].style.fontWeight=`${d}`,this._measureElements[2].style.fontWeight=`${S}`,this._measureElements[3].style.fontWeight=`${d}`,this.clear())}get(b,_,S){let d=0;if(!_&&!S&&b.length===1&&(d=b.charCodeAt(0))<256){if(this._flat[d]!==-9999)return this._flat[d];const E=this._measure(b,0);return E>0&&(this._flat[d]=E),E}let m=b;_&&(m+="B"),S&&(m+="I");let y=this._holey.get(m);if(y===void 0){let E=0;_&&(E|=1),S&&(E|=2),y=this._measure(b,E),y>0&&this._holey.set(m,y)}return y}_measure(b,_){const S=this._measureElements[_];return S.textContent=b.repeat(32),S.offsetWidth/32}}},2223:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.TEXT_BASELINE=c.DIM_OPACITY=c.INVERTED_DEFAULT_COLOR=void 0;const _=b(6114);c.INVERTED_DEFAULT_COLOR=257,c.DIM_OPACITY=.5,c.TEXT_BASELINE=_.isFirefox||_.isLegacyEdge?"bottom":"ideographic"},6171:(W,c)=>{function b(S){return 57508<=S&&S<=57558}function _(S){return S>=128512&&S<=128591||S>=127744&&S<=128511||S>=128640&&S<=128767||S>=9728&&S<=9983||S>=9984&&S<=10175||S>=65024&&S<=65039||S>=129280&&S<=129535||S>=127462&&S<=127487}Object.defineProperty(c,"__esModule",{value:!0}),c.computeNextVariantOffset=c.createRenderDimensions=c.treatGlyphAsBackgroundColor=c.allowRescaling=c.isEmoji=c.isRestrictedPowerlineGlyph=c.isPowerlineGlyph=c.throwIfFalsy=void 0,c.throwIfFalsy=function(S){if(!S)throw new Error("value must not be falsy");return S},c.isPowerlineGlyph=b,c.isRestrictedPowerlineGlyph=function(S){return 57520<=S&&S<=57527},c.isEmoji=_,c.allowRescaling=function(S,d,m,y){return d===1&&m>Math.ceil(1.5*y)&&S!==void 0&&S>255&&!_(S)&&!b(S)&&!(function(E){return 57344<=E&&E<=63743})(S)},c.treatGlyphAsBackgroundColor=function(S){return b(S)||(function(d){return 9472<=d&&d<=9631})(S)},c.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},c.computeNextVariantOffset=function(S,d,m=0){return(S-(2*Math.round(d)-m))%(2*Math.round(d))}},6052:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.createSelectionRenderModel=void 0;class b{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(S,d,m,y=!1){if(this.selectionStart=d,this.selectionEnd=m,!d||!m||d[0]===m[0]&&d[1]===m[1])return void this.clear();const E=S.buffers.active.ydisp,v=d[1]-E,u=m[1]-E,h=Math.max(v,0),o=Math.min(u,S.rows-1);h>=S.rows||o<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=y,this.viewportStartRow=v,this.viewportEndRow=u,this.viewportCappedStartRow=h,this.viewportCappedEndRow=o,this.startCol=d[0],this.endCol=m[0])}isCellSelected(S,d,m){return!!this.hasSelection&&(m-=S.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?d>=this.startCol&&m>=this.viewportCappedStartRow&&d<this.endCol&&m<=this.viewportCappedEndRow:d<this.startCol&&m>=this.viewportCappedStartRow&&d>=this.endCol&&m<=this.viewportCappedEndRow:m>this.viewportStartRow&&m<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&m===this.viewportStartRow&&d>=this.startCol&&d<this.endCol||this.viewportStartRow<this.viewportEndRow&&m===this.viewportEndRow&&d<this.endCol||this.viewportStartRow<this.viewportEndRow&&m===this.viewportStartRow&&d>=this.startCol)}}c.createSelectionRenderModel=function(){return new b}},456:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionModel=void 0,c.SelectionModel=class{constructor(b){this._bufferService=b,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const b=this.selectionStart[0]+this.selectionStartLength;return b>this._bufferService.cols?b%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)-1]:[b%this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)]:[b,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const b=this.selectionStart[0]+this.selectionStartLength;return b>this._bufferService.cols?[b%this._bufferService.cols,this.selectionStart[1]+Math.floor(b/this._bufferService.cols)]:[Math.max(b,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const b=this.selectionStart,_=this.selectionEnd;return!(!b||!_)&&(b[1]>_[1]||b[1]===_[1]&&b[0]>_[0])}handleTrim(b){return this.selectionStart&&(this.selectionStart[1]-=b),this.selectionEnd&&(this.selectionEnd[1]-=b),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(W,c,b){var _=this&&this.__decorate||function(o,a,g,N){var C,D=arguments.length,w=D<3?a:N===null?N=Object.getOwnPropertyDescriptor(a,g):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(o,a,g,N);else for(var k=o.length-1;k>=0;k--)(C=o[k])&&(w=(D<3?C(w):D>3?C(a,g,w):C(a,g))||w);return D>3&&w&&Object.defineProperty(a,g,w),w},S=this&&this.__param||function(o,a){return function(g,N){a(g,N,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharSizeService=void 0;const d=b(2585),m=b(8460),y=b(844);let E=c.CharSizeService=class extends y.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(o,a,g){super(),this._optionsService=g,this.width=0,this.height=0,this._onCharSizeChange=this.register(new m.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new h(this._optionsService))}catch{this._measureStrategy=this.register(new u(o,a,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())}};c.CharSizeService=E=_([S(2,d.IOptionsService)],E);class v extends y.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(a,g){a!==void 0&&a>0&&g!==void 0&&g>0&&(this._result.width=a,this._result.height=g)}}class u extends v{constructor(a,g,N){super(),this._document=a,this._parentElement=g,this._optionsService=N,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class h extends v{constructor(a){super(),this._optionsService=a,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const g=this._ctx.measureText("W");if(!("width"in g&&"fontBoundingBoxAscent"in g&&"fontBoundingBoxDescent"in g))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const a=this._ctx.measureText("W");return this._validateAndSet(a.width,a.fontBoundingBoxAscent+a.fontBoundingBoxDescent),this._result}}},4269:function(W,c,b){var _=this&&this.__decorate||function(h,o,a,g){var N,C=arguments.length,D=C<3?o:g===null?g=Object.getOwnPropertyDescriptor(o,a):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(h,o,a,g);else for(var w=h.length-1;w>=0;w--)(N=h[w])&&(D=(C<3?N(D):C>3?N(o,a,D):N(o,a))||D);return C>3&&D&&Object.defineProperty(o,a,D),D},S=this&&this.__param||function(h,o){return function(a,g){o(a,g,h)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CharacterJoinerService=c.JoinedCellData=void 0;const d=b(3734),m=b(643),y=b(511),E=b(2585);class v extends d.AttributeData{constructor(o,a,g){super(),this.content=0,this.combinedData="",this.fg=o.fg,this.bg=o.bg,this.combinedData=a,this._width=g}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(o){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}c.JoinedCellData=v;let u=c.CharacterJoinerService=class nw{constructor(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new y.CellData}register(o){const a={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(a),a.id}deregister(o){for(let a=0;a<this._characterJoiners.length;a++)if(this._characterJoiners[a].id===o)return this._characterJoiners.splice(a,1),!0;return!1}getJoinedCharacters(o){if(this._characterJoiners.length===0)return[];const a=this._bufferService.buffer.lines.get(o);if(!a||a.length===0)return[];const g=[],N=a.translateToString(!0);let C=0,D=0,w=0,k=a.getFg(0),M=a.getBg(0);for(let L=0;L<a.getTrimmedLength();L++)if(a.loadCell(L,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==k||this._workCell.bg!==M){if(L-C>1){const H=this._getJoinedRanges(N,w,D,a,C);for(let B=0;B<H.length;B++)g.push(H[B])}C=L,w=D,k=this._workCell.fg,M=this._workCell.bg}D+=this._workCell.getChars().length||m.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-C>1){const L=this._getJoinedRanges(N,w,D,a,C);for(let H=0;H<L.length;H++)g.push(L[H])}return g}_getJoinedRanges(o,a,g,N,C){const D=o.substring(a,g);let w=[];try{w=this._characterJoiners[0].handler(D)}catch(k){console.error(k)}for(let k=1;k<this._characterJoiners.length;k++)try{const M=this._characterJoiners[k].handler(D);for(let L=0;L<M.length;L++)nw._mergeRanges(w,M[L])}catch(M){console.error(M)}return this._stringRangesToCellRanges(w,N,C),w}_stringRangesToCellRanges(o,a,g){let N=0,C=!1,D=0,w=o[N];if(w){for(let k=g;k<this._bufferService.cols;k++){const M=a.getWidth(k),L=a.getString(k).length||m.WHITESPACE_CELL_CHAR.length;if(M!==0){if(!C&&w[0]<=D&&(w[0]=k,C=!0),w[1]<=D){if(w[1]=k,w=o[++N],!w)break;w[0]<=D?(w[0]=k,C=!0):C=!1}D+=L}}w&&(w[1]=this._bufferService.cols)}}static _mergeRanges(o,a){let g=!1;for(let N=0;N<o.length;N++){const C=o[N];if(g){if(a[1]<=C[0])return o[N-1][1]=a[1],o;if(a[1]<=C[1])return o[N-1][1]=Math.max(a[1],C[1]),o.splice(N,1),o;o.splice(N,1),N--}else{if(a[1]<=C[0])return o.splice(N,0,a),o;if(a[1]<=C[1])return C[0]=Math.min(a[0],C[0]),o;a[0]<C[1]&&(C[0]=Math.min(a[0],C[0]),g=!0)}}return g?o[o.length-1][1]=a[1]:o.push(a),o}};c.CharacterJoinerService=u=_([S(0,E.IBufferService)],u)},5114:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreBrowserService=void 0;const _=b(844),S=b(8460),d=b(3656);class m extends _.Disposable{constructor(v,u,h){super(),this._textarea=v,this._window=u,this.mainDocument=h,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new y(this._window),this._onDprChange=this.register(new S.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new S.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((o=>this._screenDprMonitor.setWindow(o)))),this.register((0,S.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(v){this._window!==v&&(this._window=v,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}c.CoreBrowserService=m;class y extends _.Disposable{constructor(v){super(),this._parentWindow=v,this._windowResizeListener=this.register(new _.MutableDisposable),this._onDprChange=this.register(new S.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,_.toDisposable)((()=>this.clearListener())))}setWindow(v){this._parentWindow=v,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,d.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)==null||v.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.LinkProviderService=void 0;const _=b(844);class S extends _.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,_.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(m){return this.linkProviders.push(m),{dispose:()=>{const y=this.linkProviders.indexOf(m);y!==-1&&this.linkProviders.splice(y,1)}}}}c.LinkProviderService=S},8934:function(W,c,b){var _=this&&this.__decorate||function(E,v,u,h){var o,a=arguments.length,g=a<3?v:h===null?h=Object.getOwnPropertyDescriptor(v,u):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(E,v,u,h);else for(var N=E.length-1;N>=0;N--)(o=E[N])&&(g=(a<3?o(g):a>3?o(v,u,g):o(v,u))||g);return a>3&&g&&Object.defineProperty(v,u,g),g},S=this&&this.__param||function(E,v){return function(u,h){v(u,h,E)}};Object.defineProperty(c,"__esModule",{value:!0}),c.MouseService=void 0;const d=b(4725),m=b(9806);let y=c.MouseService=class{constructor(E,v){this._renderService=E,this._charSizeService=v}getCoords(E,v,u,h,o){return(0,m.getCoords)(window,E,v,u,h,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,o)}getMouseReportCoords(E,v){const u=(0,m.getCoordsRelativeToElement)(window,E,v);if(this._charSizeService.hasValidSize)return u[0]=Math.min(Math.max(u[0],0),this._renderService.dimensions.css.canvas.width-1),u[1]=Math.min(Math.max(u[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(u[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(u[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(u[0]),y:Math.floor(u[1])}}};c.MouseService=y=_([S(0,d.IRenderService),S(1,d.ICharSizeService)],y)},3230:function(W,c,b){var _=this&&this.__decorate||function(o,a,g,N){var C,D=arguments.length,w=D<3?a:N===null?N=Object.getOwnPropertyDescriptor(a,g):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(o,a,g,N);else for(var k=o.length-1;k>=0;k--)(C=o[k])&&(w=(D<3?C(w):D>3?C(a,g,w):C(a,g))||w);return D>3&&w&&Object.defineProperty(a,g,w),w},S=this&&this.__param||function(o,a){return function(g,N){a(g,N,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.RenderService=void 0;const d=b(6193),m=b(4725),y=b(8460),E=b(844),v=b(7226),u=b(2585);let h=c.RenderService=class extends E.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(o,a,g,N,C,D,w,k){super(),this._rowCount=o,this._charSizeService=N,this._renderer=this.register(new E.MutableDisposable),this._pausedResizeTask=new v.DebouncedIdleTask,this._observerDisposable=this.register(new E.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new y.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new y.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new y.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new y.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new d.RenderDebouncer(((M,L)=>this._renderRows(M,L)),w),this.register(this._renderDebouncer),this.register(w.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(D.onResize((()=>this._fullRefresh()))),this.register(D.buffers.onBufferActivate((()=>{var M;return(M=this._renderer.value)==null?void 0:M.clear()}))),this.register(g.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(C.onDecorationRegistered((()=>this._fullRefresh()))),this.register(C.onDecorationRemoved((()=>this._fullRefresh()))),this.register(g.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(D.cols,D.rows),this._fullRefresh()}))),this.register(g.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(D.buffer.y,D.buffer.y,!0)))),this.register(k.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(w.window,a),this.register(w.onWindowChange((M=>this._registerIntersectionObserver(M,a))))}_registerIntersectionObserver(o,a){if("IntersectionObserver"in o){const g=new o.IntersectionObserver((N=>this._handleIntersectionChange(N[N.length-1])),{threshold:0});g.observe(a),this._observerDisposable.value=(0,E.toDisposable)((()=>g.disconnect()))}}_handleIntersectionChange(o){this._isPaused=o.isIntersecting===void 0?o.intersectionRatio===0:!o.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(o,a,g=!1){this._isPaused?this._needsFullRefresh=!0:(g||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(o,a,this._rowCount))}_renderRows(o,a){this._renderer.value&&(o=Math.min(o,this._rowCount-1),a=Math.min(a,this._rowCount-1),this._renderer.value.renderRows(o,a),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:o,end:a}),this._onRender.fire({start:o,end:a}),this._isNextRenderRedrawOnly=!0)}resize(o,a){this._rowCount=a,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(o){this._renderer.value=o,this._renderer.value&&(this._renderer.value.onRequestRedraw((a=>this.refreshRows(a.start,a.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(o){return this._renderDebouncer.addRefreshCallback(o)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var o,a;this._renderer.value&&((a=(o=this._renderer.value).clearTextureAtlas)==null||a.call(o),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(o,a){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var g;return(g=this._renderer.value)==null?void 0:g.handleResize(o,a)})):this._renderer.value.handleResize(o,a),this._fullRefresh())}handleCharSizeChanged(){var o;(o=this._renderer.value)==null||o.handleCharSizeChanged()}handleBlur(){var o;(o=this._renderer.value)==null||o.handleBlur()}handleFocus(){var o;(o=this._renderer.value)==null||o.handleFocus()}handleSelectionChanged(o,a,g){var N;this._selectionState.start=o,this._selectionState.end=a,this._selectionState.columnSelectMode=g,(N=this._renderer.value)==null||N.handleSelectionChanged(o,a,g)}handleCursorMove(){var o;(o=this._renderer.value)==null||o.handleCursorMove()}clear(){var o;(o=this._renderer.value)==null||o.clear()}};c.RenderService=h=_([S(2,u.IOptionsService),S(3,m.ICharSizeService),S(4,u.IDecorationService),S(5,u.IBufferService),S(6,m.ICoreBrowserService),S(7,m.IThemeService)],h)},9312:function(W,c,b){var _=this&&this.__decorate||function(w,k,M,L){var H,B=arguments.length,J=B<3?k:L===null?L=Object.getOwnPropertyDescriptor(k,M):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(w,k,M,L);else for(var ae=w.length-1;ae>=0;ae--)(H=w[ae])&&(J=(B<3?H(J):B>3?H(k,M,J):H(k,M))||J);return B>3&&J&&Object.defineProperty(k,M,J),J},S=this&&this.__param||function(w,k){return function(M,L){k(M,L,w)}};Object.defineProperty(c,"__esModule",{value:!0}),c.SelectionService=void 0;const d=b(9806),m=b(9504),y=b(456),E=b(4725),v=b(8460),u=b(844),h=b(6114),o=b(4841),a=b(511),g=b(2585),N=" ",C=new RegExp(N,"g");let D=c.SelectionService=class extends u.Disposable{constructor(w,k,M,L,H,B,J,ae,te){super(),this._element=w,this._screenElement=k,this._linkifier=M,this._bufferService=L,this._coreService=H,this._mouseService=B,this._optionsService=J,this._renderService=ae,this._coreBrowserService=te,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new a.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new v.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new v.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new v.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new v.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=de=>this._handleMouseMove(de),this._mouseUpListener=de=>this._handleMouseUp(de),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((de=>this._handleTrim(de))),this.register(this._bufferService.buffers.onBufferActivate((de=>this._handleBufferActivate(de)))),this.enable(),this._model=new y.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,u.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const w=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;return!(!w||!k||w[0]===k[0]&&w[1]===k[1])}get selectionText(){const w=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;if(!w||!k)return"";const M=this._bufferService.buffer,L=[];if(this._activeSelectionMode===3){if(w[0]===k[0])return"";const H=w[0]<k[0]?w[0]:k[0],B=w[0]<k[0]?k[0]:w[0];for(let J=w[1];J<=k[1];J++){const ae=M.translateBufferLineToString(J,!0,H,B);L.push(ae)}}else{const H=w[1]===k[1]?k[0]:void 0;L.push(M.translateBufferLineToString(w[1],!0,w[0],H));for(let B=w[1]+1;B<=k[1]-1;B++){const J=M.lines.get(B),ae=M.translateBufferLineToString(B,!0);J!=null&&J.isWrapped?L[L.length-1]+=ae:L.push(ae)}if(w[1]!==k[1]){const B=M.lines.get(k[1]),J=M.translateBufferLineToString(k[1],!0,0,k[0]);B&&B.isWrapped?L[L.length-1]+=J:L.push(J)}}return L.map((H=>H.replace(C," "))).join(h.isWindows?`\r
|
|
280
|
-
`:`
|
|
281
|
-
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(w){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),h.isLinux&&w&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(w){const k=this._getMouseBufferCoords(w),M=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(M&&L&&k)&&this._areCoordsInSelection(k,M,L)}isCellInSelection(w,k){const M=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!M||!L)&&this._areCoordsInSelection([w,k],M,L)}_areCoordsInSelection(w,k,M){return w[1]>k[1]&&w[1]<M[1]||k[1]===M[1]&&w[1]===k[1]&&w[0]>=k[0]&&w[0]<M[0]||k[1]<M[1]&&w[1]===M[1]&&w[0]<M[0]||k[1]<M[1]&&w[1]===k[1]&&w[0]>=k[0]}_selectWordAtCursor(w,k){var H,B;const M=(B=(H=this._linkifier.currentLink)==null?void 0:H.link)==null?void 0:B.range;if(M)return this._model.selectionStart=[M.start.x-1,M.start.y-1],this._model.selectionStartLength=(0,o.getRangeLength)(M,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const L=this._getMouseBufferCoords(w);return!!L&&(this._selectWordAt(L,k),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(w,k){this._model.clearSelection(),w=Math.max(w,0),k=Math.min(k,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,w],this._model.selectionEnd=[this._bufferService.cols,k],this.refresh(),this._onSelectionChange.fire()}_handleTrim(w){this._model.handleTrim(w)&&this.refresh()}_getMouseBufferCoords(w){const k=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(k)return k[0]--,k[1]--,k[1]+=this._bufferService.buffer.ydisp,k}_getMouseEventScrollAmount(w){let k=(0,d.getCoordsRelativeToElement)(this._coreBrowserService.window,w,this._screenElement)[1];const M=this._renderService.dimensions.css.canvas.height;return k>=0&&k<=M?0:(k>M&&(k-=M),k=Math.min(Math.max(k,-50),50),k/=50,k/Math.abs(k)+Math.round(14*k))}shouldForceSelection(w){return h.isMac?w.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:w.shiftKey}handleMouseDown(w){if(this._mouseDownTimeStamp=w.timeStamp,(w.button!==2||!this.hasSelection)&&w.button===0){if(!this._enabled){if(!this.shouldForceSelection(w))return;w.stopPropagation()}w.preventDefault(),this._dragScrollAmount=0,this._enabled&&w.shiftKey?this._handleIncrementalClick(w):w.detail===1?this._handleSingleClick(w):w.detail===2?this._handleDoubleClick(w):w.detail===3&&this._handleTripleClick(w),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(w){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(w))}_handleSingleClick(w){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(w)?3:0,this._model.selectionStart=this._getMouseBufferCoords(w),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const k=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);k&&k.length!==this._model.selectionStart[0]&&k.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(w){this._selectWordAtCursor(w,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(w){const k=this._getMouseBufferCoords(w);k&&(this._activeSelectionMode=2,this._selectLineAt(k[1]))}shouldColumnSelect(w){return w.altKey&&!(h.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(w){if(w.stopImmediatePropagation(),!this._model.selectionStart)return;const k=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(w),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(w),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const M=this._bufferService.buffer;if(this._model.selectionEnd[1]<M.lines.length){const L=M.lines.get(this._model.selectionEnd[1]);L&&L.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}k&&k[0]===this._model.selectionEnd[0]&&k[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const w=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(w.ydisp+this._bufferService.rows,w.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=w.ydisp),this.refresh()}}_handleMouseUp(w){const k=w.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&k<500&&w.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const M=this._mouseService.getCoords(w,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(M&&M[0]!==void 0&&M[1]!==void 0){const L=(0,m.moveToCellSequence)(M[0]-1,M[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const w=this._model.finalSelectionStart,k=this._model.finalSelectionEnd,M=!(!w||!k||w[0]===k[0]&&w[1]===k[1]);M?w&&k&&(this._oldSelectionStart&&this._oldSelectionEnd&&w[0]===this._oldSelectionStart[0]&&w[1]===this._oldSelectionStart[1]&&k[0]===this._oldSelectionEnd[0]&&k[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(w,k,M)):this._oldHasSelection&&this._fireOnSelectionChange(w,k,M)}_fireOnSelectionChange(w,k,M){this._oldSelectionStart=w,this._oldSelectionEnd=k,this._oldHasSelection=M,this._onSelectionChange.fire()}_handleBufferActivate(w){this.clearSelection(),this._trimListener.dispose(),this._trimListener=w.activeBuffer.lines.onTrim((k=>this._handleTrim(k)))}_convertViewportColToCharacterIndex(w,k){let M=k;for(let L=0;k>=L;L++){const H=w.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?M--:H>1&&k!==L&&(M+=H-1)}return M}setSelection(w,k,M){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[w,k],this._model.selectionStartLength=M,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(w){this._isClickInSelection(w)||(this._selectWordAtCursor(w,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(w,k,M=!0,L=!0){if(w[0]>=this._bufferService.cols)return;const H=this._bufferService.buffer,B=H.lines.get(w[1]);if(!B)return;const J=H.translateBufferLineToString(w[1],!1);let ae=this._convertViewportColToCharacterIndex(B,w[0]),te=ae;const de=w[0]-ae;let le=0,T=0,V=0,A=0;if(J.charAt(ae)===" "){for(;ae>0&&J.charAt(ae-1)===" ";)ae--;for(;te<J.length&&J.charAt(te+1)===" ";)te++}else{let me=w[0],be=w[0];B.getWidth(me)===0&&(le++,me--),B.getWidth(be)===2&&(T++,be++);const Ce=B.getString(be).length;for(Ce>1&&(A+=Ce-1,te+=Ce-1);me>0&&ae>0&&!this._isCharWordSeparator(B.loadCell(me-1,this._workCell));){B.loadCell(me-1,this._workCell);const F=this._workCell.getChars().length;this._workCell.getWidth()===0?(le++,me--):F>1&&(V+=F-1,ae-=F-1),ae--,me--}for(;be<B.length&&te+1<J.length&&!this._isCharWordSeparator(B.loadCell(be+1,this._workCell));){B.loadCell(be+1,this._workCell);const F=this._workCell.getChars().length;this._workCell.getWidth()===2?(T++,be++):F>1&&(A+=F-1,te+=F-1),te++,be++}}te++;let $=ae+de-le+V,ue=Math.min(this._bufferService.cols,te-ae+le+T-V-A);if(k||J.slice(ae,te).trim()!==""){if(M&&$===0&&B.getCodePoint(0)!==32){const me=H.lines.get(w[1]-1);if(me&&B.isWrapped&&me.getCodePoint(this._bufferService.cols-1)!==32){const be=this._getWordAt([this._bufferService.cols-1,w[1]-1],!1,!0,!1);if(be){const Ce=this._bufferService.cols-be.start;$-=Ce,ue+=Ce}}}if(L&&$+ue===this._bufferService.cols&&B.getCodePoint(this._bufferService.cols-1)!==32){const me=H.lines.get(w[1]+1);if(me!=null&&me.isWrapped&&me.getCodePoint(0)!==32){const be=this._getWordAt([0,w[1]+1],!1,!1,!0);be&&(ue+=be.length)}}return{start:$,length:ue}}}_selectWordAt(w,k){const M=this._getWordAt(w,k);if(M){for(;M.start<0;)M.start+=this._bufferService.cols,w[1]--;this._model.selectionStart=[M.start,w[1]],this._model.selectionStartLength=M.length}}_selectToWordAt(w){const k=this._getWordAt(w,!0);if(k){let M=w[1];for(;k.start<0;)k.start+=this._bufferService.cols,M--;if(!this._model.areSelectionValuesReversed())for(;k.start+k.length>this._bufferService.cols;)k.length-=this._bufferService.cols,M++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?k.start:k.start+k.length,M]}}_isCharWordSeparator(w){return w.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(w.getChars())>=0}_selectLineAt(w){const k=this._bufferService.buffer.getWrappedRangeForLine(w),M={start:{x:0,y:k.first},end:{x:this._bufferService.cols-1,y:k.last}};this._model.selectionStart=[0,k.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,o.getRangeLength)(M,this._bufferService.cols)}};c.SelectionService=D=_([S(3,g.IBufferService),S(4,g.ICoreService),S(5,E.IMouseService),S(6,g.IOptionsService),S(7,E.IRenderService),S(8,E.ICoreBrowserService)],D)},4725:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ILinkProviderService=c.IThemeService=c.ICharacterJoinerService=c.ISelectionService=c.IRenderService=c.IMouseService=c.ICoreBrowserService=c.ICharSizeService=void 0;const _=b(8343);c.ICharSizeService=(0,_.createDecorator)("CharSizeService"),c.ICoreBrowserService=(0,_.createDecorator)("CoreBrowserService"),c.IMouseService=(0,_.createDecorator)("MouseService"),c.IRenderService=(0,_.createDecorator)("RenderService"),c.ISelectionService=(0,_.createDecorator)("SelectionService"),c.ICharacterJoinerService=(0,_.createDecorator)("CharacterJoinerService"),c.IThemeService=(0,_.createDecorator)("ThemeService"),c.ILinkProviderService=(0,_.createDecorator)("LinkProviderService")},6731:function(W,c,b){var _=this&&this.__decorate||function(D,w,k,M){var L,H=arguments.length,B=H<3?w:M===null?M=Object.getOwnPropertyDescriptor(w,k):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(D,w,k,M);else for(var J=D.length-1;J>=0;J--)(L=D[J])&&(B=(H<3?L(B):H>3?L(w,k,B):L(w,k))||B);return H>3&&B&&Object.defineProperty(w,k,B),B},S=this&&this.__param||function(D,w){return function(k,M){w(k,M,D)}};Object.defineProperty(c,"__esModule",{value:!0}),c.ThemeService=c.DEFAULT_ANSI_COLORS=void 0;const d=b(7239),m=b(8055),y=b(8460),E=b(844),v=b(2585),u=m.css.toColor("#ffffff"),h=m.css.toColor("#000000"),o=m.css.toColor("#ffffff"),a=m.css.toColor("#000000"),g={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};c.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const D=[m.css.toColor("#2e3436"),m.css.toColor("#cc0000"),m.css.toColor("#4e9a06"),m.css.toColor("#c4a000"),m.css.toColor("#3465a4"),m.css.toColor("#75507b"),m.css.toColor("#06989a"),m.css.toColor("#d3d7cf"),m.css.toColor("#555753"),m.css.toColor("#ef2929"),m.css.toColor("#8ae234"),m.css.toColor("#fce94f"),m.css.toColor("#729fcf"),m.css.toColor("#ad7fa8"),m.css.toColor("#34e2e2"),m.css.toColor("#eeeeec")],w=[0,95,135,175,215,255];for(let k=0;k<216;k++){const M=w[k/36%6|0],L=w[k/6%6|0],H=w[k%6];D.push({css:m.channels.toCss(M,L,H),rgba:m.channels.toRgba(M,L,H)})}for(let k=0;k<24;k++){const M=8+10*k;D.push({css:m.channels.toCss(M,M,M),rgba:m.channels.toRgba(M,M,M)})}return D})());let N=c.ThemeService=class extends E.Disposable{get colors(){return this._colors}constructor(D){super(),this._optionsService=D,this._contrastCache=new d.ColorContrastCache,this._halfContrastCache=new d.ColorContrastCache,this._onChangeColors=this.register(new y.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:u,background:h,cursor:o,cursorAccent:a,selectionForeground:void 0,selectionBackgroundTransparent:g,selectionBackgroundOpaque:m.color.blend(h,g),selectionInactiveBackgroundTransparent:g,selectionInactiveBackgroundOpaque:m.color.blend(h,g),ansi:c.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(D={}){const w=this._colors;if(w.foreground=C(D.foreground,u),w.background=C(D.background,h),w.cursor=C(D.cursor,o),w.cursorAccent=C(D.cursorAccent,a),w.selectionBackgroundTransparent=C(D.selectionBackground,g),w.selectionBackgroundOpaque=m.color.blend(w.background,w.selectionBackgroundTransparent),w.selectionInactiveBackgroundTransparent=C(D.selectionInactiveBackground,w.selectionBackgroundTransparent),w.selectionInactiveBackgroundOpaque=m.color.blend(w.background,w.selectionInactiveBackgroundTransparent),w.selectionForeground=D.selectionForeground?C(D.selectionForeground,m.NULL_COLOR):void 0,w.selectionForeground===m.NULL_COLOR&&(w.selectionForeground=void 0),m.color.isOpaque(w.selectionBackgroundTransparent)&&(w.selectionBackgroundTransparent=m.color.opacity(w.selectionBackgroundTransparent,.3)),m.color.isOpaque(w.selectionInactiveBackgroundTransparent)&&(w.selectionInactiveBackgroundTransparent=m.color.opacity(w.selectionInactiveBackgroundTransparent,.3)),w.ansi=c.DEFAULT_ANSI_COLORS.slice(),w.ansi[0]=C(D.black,c.DEFAULT_ANSI_COLORS[0]),w.ansi[1]=C(D.red,c.DEFAULT_ANSI_COLORS[1]),w.ansi[2]=C(D.green,c.DEFAULT_ANSI_COLORS[2]),w.ansi[3]=C(D.yellow,c.DEFAULT_ANSI_COLORS[3]),w.ansi[4]=C(D.blue,c.DEFAULT_ANSI_COLORS[4]),w.ansi[5]=C(D.magenta,c.DEFAULT_ANSI_COLORS[5]),w.ansi[6]=C(D.cyan,c.DEFAULT_ANSI_COLORS[6]),w.ansi[7]=C(D.white,c.DEFAULT_ANSI_COLORS[7]),w.ansi[8]=C(D.brightBlack,c.DEFAULT_ANSI_COLORS[8]),w.ansi[9]=C(D.brightRed,c.DEFAULT_ANSI_COLORS[9]),w.ansi[10]=C(D.brightGreen,c.DEFAULT_ANSI_COLORS[10]),w.ansi[11]=C(D.brightYellow,c.DEFAULT_ANSI_COLORS[11]),w.ansi[12]=C(D.brightBlue,c.DEFAULT_ANSI_COLORS[12]),w.ansi[13]=C(D.brightMagenta,c.DEFAULT_ANSI_COLORS[13]),w.ansi[14]=C(D.brightCyan,c.DEFAULT_ANSI_COLORS[14]),w.ansi[15]=C(D.brightWhite,c.DEFAULT_ANSI_COLORS[15]),D.extendedAnsi){const k=Math.min(w.ansi.length-16,D.extendedAnsi.length);for(let M=0;M<k;M++)w.ansi[M+16]=C(D.extendedAnsi[M],c.DEFAULT_ANSI_COLORS[M+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(D){this._restoreColor(D),this._onChangeColors.fire(this.colors)}_restoreColor(D){if(D!==void 0)switch(D){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[D]=this._restoreColors.ansi[D]}else for(let w=0;w<this._restoreColors.ansi.length;++w)this._colors.ansi[w]=this._restoreColors.ansi[w]}modifyColors(D){D(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function C(D,w){if(D!==void 0)try{return m.css.toColor(D)}catch{}return w}c.ThemeService=N=_([S(0,v.IOptionsService)],N)},6349:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CircularList=void 0;const _=b(8460),S=b(844);class d extends S.Disposable{constructor(y){super(),this._maxLength=y,this.onDeleteEmitter=this.register(new _.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new _.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new _.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(y){if(this._maxLength===y)return;const E=new Array(y);for(let v=0;v<Math.min(y,this.length);v++)E[v]=this._array[this._getCyclicIndex(v)];this._array=E,this._maxLength=y,this._startIndex=0}get length(){return this._length}set length(y){if(y>this._length)for(let E=this._length;E<y;E++)this._array[E]=void 0;this._length=y}get(y){return this._array[this._getCyclicIndex(y)]}set(y,E){this._array[this._getCyclicIndex(y)]=E}push(y){this._array[this._getCyclicIndex(this._length)]=y,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(y,E,...v){if(E){for(let u=y;u<this._length-E;u++)this._array[this._getCyclicIndex(u)]=this._array[this._getCyclicIndex(u+E)];this._length-=E,this.onDeleteEmitter.fire({index:y,amount:E})}for(let u=this._length-1;u>=y;u--)this._array[this._getCyclicIndex(u+v.length)]=this._array[this._getCyclicIndex(u)];for(let u=0;u<v.length;u++)this._array[this._getCyclicIndex(y+u)]=v[u];if(v.length&&this.onInsertEmitter.fire({index:y,amount:v.length}),this._length+v.length>this._maxLength){const u=this._length+v.length-this._maxLength;this._startIndex+=u,this._length=this._maxLength,this.onTrimEmitter.fire(u)}else this._length+=v.length}trimStart(y){y>this._length&&(y=this._length),this._startIndex+=y,this._length-=y,this.onTrimEmitter.fire(y)}shiftElements(y,E,v){if(!(E<=0)){if(y<0||y>=this._length)throw new Error("start argument out of range");if(y+v<0)throw new Error("Cannot shift elements in list beyond index 0");if(v>0){for(let h=E-1;h>=0;h--)this.set(y+h+v,this.get(y+h));const u=y+E+v-this._length;if(u>0)for(this._length+=u;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let u=0;u<E;u++)this.set(y+u+v,this.get(y+u))}}_getCyclicIndex(y){return(this._startIndex+y)%this._maxLength}}c.CircularList=d},1439:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.clone=void 0,c.clone=function b(_,S=5){if(typeof _!="object")return _;const d=Array.isArray(_)?[]:{};for(const m in _)d[m]=S<=1?_[m]:_[m]&&b(_[m],S-1);return d}},8055:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.contrastRatio=c.toPaddedHex=c.rgba=c.rgb=c.css=c.color=c.channels=c.NULL_COLOR=void 0;let b=0,_=0,S=0,d=0;var m,y,E,v,u;function h(a){const g=a.toString(16);return g.length<2?"0"+g:g}function o(a,g){return a<g?(g+.05)/(a+.05):(a+.05)/(g+.05)}c.NULL_COLOR={css:"#00000000",rgba:0},(function(a){a.toCss=function(g,N,C,D){return D!==void 0?`#${h(g)}${h(N)}${h(C)}${h(D)}`:`#${h(g)}${h(N)}${h(C)}`},a.toRgba=function(g,N,C,D=255){return(g<<24|N<<16|C<<8|D)>>>0},a.toColor=function(g,N,C,D){return{css:a.toCss(g,N,C,D),rgba:a.toRgba(g,N,C,D)}}})(m||(c.channels=m={})),(function(a){function g(N,C){return d=Math.round(255*C),[b,_,S]=u.toChannels(N.rgba),{css:m.toCss(b,_,S,d),rgba:m.toRgba(b,_,S,d)}}a.blend=function(N,C){if(d=(255&C.rgba)/255,d===1)return{css:C.css,rgba:C.rgba};const D=C.rgba>>24&255,w=C.rgba>>16&255,k=C.rgba>>8&255,M=N.rgba>>24&255,L=N.rgba>>16&255,H=N.rgba>>8&255;return b=M+Math.round((D-M)*d),_=L+Math.round((w-L)*d),S=H+Math.round((k-H)*d),{css:m.toCss(b,_,S),rgba:m.toRgba(b,_,S)}},a.isOpaque=function(N){return(255&N.rgba)==255},a.ensureContrastRatio=function(N,C,D){const w=u.ensureContrastRatio(N.rgba,C.rgba,D);if(w)return m.toColor(w>>24&255,w>>16&255,w>>8&255)},a.opaque=function(N){const C=(255|N.rgba)>>>0;return[b,_,S]=u.toChannels(C),{css:m.toCss(b,_,S),rgba:C}},a.opacity=g,a.multiplyOpacity=function(N,C){return d=255&N.rgba,g(N,d*C/255)},a.toColorRGB=function(N){return[N.rgba>>24&255,N.rgba>>16&255,N.rgba>>8&255]}})(y||(c.color=y={})),(function(a){let g,N;try{const C=document.createElement("canvas");C.width=1,C.height=1;const D=C.getContext("2d",{willReadFrequently:!0});D&&(g=D,g.globalCompositeOperation="copy",N=g.createLinearGradient(0,0,1,1))}catch{}a.toColor=function(C){if(C.match(/#[\da-f]{3,8}/i))switch(C.length){case 4:return b=parseInt(C.slice(1,2).repeat(2),16),_=parseInt(C.slice(2,3).repeat(2),16),S=parseInt(C.slice(3,4).repeat(2),16),m.toColor(b,_,S);case 5:return b=parseInt(C.slice(1,2).repeat(2),16),_=parseInt(C.slice(2,3).repeat(2),16),S=parseInt(C.slice(3,4).repeat(2),16),d=parseInt(C.slice(4,5).repeat(2),16),m.toColor(b,_,S,d);case 7:return{css:C,rgba:(parseInt(C.slice(1),16)<<8|255)>>>0};case 9:return{css:C,rgba:parseInt(C.slice(1),16)>>>0}}const D=C.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(D)return b=parseInt(D[1]),_=parseInt(D[2]),S=parseInt(D[3]),d=Math.round(255*(D[5]===void 0?1:parseFloat(D[5]))),m.toColor(b,_,S,d);if(!g||!N)throw new Error("css.toColor: Unsupported css format");if(g.fillStyle=N,g.fillStyle=C,typeof g.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(g.fillRect(0,0,1,1),[b,_,S,d]=g.getImageData(0,0,1,1).data,d!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:m.toRgba(b,_,S,d),css:C}}})(E||(c.css=E={})),(function(a){function g(N,C,D){const w=N/255,k=C/255,M=D/255;return .2126*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.7152*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.0722*(M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4))}a.relativeLuminance=function(N){return g(N>>16&255,N>>8&255,255&N)},a.relativeLuminance2=g})(v||(c.rgb=v={})),(function(a){function g(C,D,w){const k=C>>24&255,M=C>>16&255,L=C>>8&255;let H=D>>24&255,B=D>>16&255,J=D>>8&255,ae=o(v.relativeLuminance2(H,B,J),v.relativeLuminance2(k,M,L));for(;ae<w&&(H>0||B>0||J>0);)H-=Math.max(0,Math.ceil(.1*H)),B-=Math.max(0,Math.ceil(.1*B)),J-=Math.max(0,Math.ceil(.1*J)),ae=o(v.relativeLuminance2(H,B,J),v.relativeLuminance2(k,M,L));return(H<<24|B<<16|J<<8|255)>>>0}function N(C,D,w){const k=C>>24&255,M=C>>16&255,L=C>>8&255;let H=D>>24&255,B=D>>16&255,J=D>>8&255,ae=o(v.relativeLuminance2(H,B,J),v.relativeLuminance2(k,M,L));for(;ae<w&&(H<255||B<255||J<255);)H=Math.min(255,H+Math.ceil(.1*(255-H))),B=Math.min(255,B+Math.ceil(.1*(255-B))),J=Math.min(255,J+Math.ceil(.1*(255-J))),ae=o(v.relativeLuminance2(H,B,J),v.relativeLuminance2(k,M,L));return(H<<24|B<<16|J<<8|255)>>>0}a.blend=function(C,D){if(d=(255&D)/255,d===1)return D;const w=D>>24&255,k=D>>16&255,M=D>>8&255,L=C>>24&255,H=C>>16&255,B=C>>8&255;return b=L+Math.round((w-L)*d),_=H+Math.round((k-H)*d),S=B+Math.round((M-B)*d),m.toRgba(b,_,S)},a.ensureContrastRatio=function(C,D,w){const k=v.relativeLuminance(C>>8),M=v.relativeLuminance(D>>8);if(o(k,M)<w){if(M<k){const B=g(C,D,w),J=o(k,v.relativeLuminance(B>>8));if(J<w){const ae=N(C,D,w);return J>o(k,v.relativeLuminance(ae>>8))?B:ae}return B}const L=N(C,D,w),H=o(k,v.relativeLuminance(L>>8));if(H<w){const B=g(C,D,w);return H>o(k,v.relativeLuminance(B>>8))?L:B}return L}},a.reduceLuminance=g,a.increaseLuminance=N,a.toChannels=function(C){return[C>>24&255,C>>16&255,C>>8&255,255&C]}})(u||(c.rgba=u={})),c.toPaddedHex=h,c.contrastRatio=o},8969:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CoreTerminal=void 0;const _=b(844),S=b(2585),d=b(4348),m=b(7866),y=b(744),E=b(7302),v=b(6975),u=b(8460),h=b(1753),o=b(1480),a=b(7994),g=b(9282),N=b(5435),C=b(5981),D=b(2660);let w=!1;class k extends _.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new u.EventEmitter),this._onScroll.event((L=>{var H;(H=this._onScrollApi)==null||H.fire(L.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(L){for(const H in L)this.optionsService.options[H]=L[H]}constructor(L){super(),this._windowsWrappingHeuristics=this.register(new _.MutableDisposable),this._onBinary=this.register(new u.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new u.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new u.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new u.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new u.EventEmitter),this._instantiationService=new d.InstantiationService,this.optionsService=this.register(new E.OptionsService(L)),this._instantiationService.setService(S.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(y.BufferService)),this._instantiationService.setService(S.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(m.LogService)),this._instantiationService.setService(S.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(v.CoreService)),this._instantiationService.setService(S.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(h.CoreMouseService)),this._instantiationService.setService(S.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(o.UnicodeService)),this._instantiationService.setService(S.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(a.CharsetService),this._instantiationService.setService(S.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(D.OscLinkService),this._instantiationService.setService(S.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new N.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,u.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,u.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,u.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,u.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((H=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((H=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new C.WriteBuffer(((H,B)=>this._inputHandler.parse(H,B)))),this.register((0,u.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(L,H){this._writeBuffer.write(L,H)}writeSync(L,H){this._logService.logLevel<=S.LogLevelEnum.WARN&&!w&&(this._logService.warn("writeSync is unreliable and will be removed soon."),w=!0),this._writeBuffer.writeSync(L,H)}input(L,H=!0){this.coreService.triggerDataEvent(L,H)}resize(L,H){isNaN(L)||isNaN(H)||(L=Math.max(L,y.MINIMUM_COLS),H=Math.max(H,y.MINIMUM_ROWS),this._bufferService.resize(L,H))}scroll(L,H=!1){this._bufferService.scroll(L,H)}scrollLines(L,H,B){this._bufferService.scrollLines(L,H,B)}scrollPages(L){this.scrollLines(L*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(L){const H=L-this._bufferService.buffer.ydisp;H!==0&&this.scrollLines(H)}registerEscHandler(L,H){return this._inputHandler.registerEscHandler(L,H)}registerDcsHandler(L,H){return this._inputHandler.registerDcsHandler(L,H)}registerCsiHandler(L,H){return this._inputHandler.registerCsiHandler(L,H)}registerOscHandler(L,H){return this._inputHandler.registerOscHandler(L,H)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let L=!1;const H=this.optionsService.rawOptions.windowsPty;H&&H.buildNumber!==void 0&&H.buildNumber!==void 0?L=H.backend==="conpty"&&H.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(L=!0),L?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const L=[];L.push(this.onLineFeed(g.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.registerCsiHandler({final:"H"},(()=>((0,g.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,_.toDisposable)((()=>{for(const H of L)H.dispose()}))}}}c.CoreTerminal=k},8460:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.runAndSubscribe=c.forwardEvent=c.EventEmitter=void 0,c.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=b=>(this._listeners.push(b),{dispose:()=>{if(!this._disposed){for(let _=0;_<this._listeners.length;_++)if(this._listeners[_]===b)return void this._listeners.splice(_,1)}}})),this._event}fire(b,_){const S=[];for(let d=0;d<this._listeners.length;d++)S.push(this._listeners[d]);for(let d=0;d<S.length;d++)S[d].call(void 0,b,_)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},c.forwardEvent=function(b,_){return b((S=>_.fire(S)))},c.runAndSubscribe=function(b,_){return _(void 0),b((S=>_(S)))}},5435:function(W,c,b){var _=this&&this.__decorate||function(le,T,V,A){var $,ue=arguments.length,me=ue<3?T:A===null?A=Object.getOwnPropertyDescriptor(T,V):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(le,T,V,A);else for(var be=le.length-1;be>=0;be--)($=le[be])&&(me=(ue<3?$(me):ue>3?$(T,V,me):$(T,V))||me);return ue>3&&me&&Object.defineProperty(T,V,me),me},S=this&&this.__param||function(le,T){return function(V,A){T(V,A,le)}};Object.defineProperty(c,"__esModule",{value:!0}),c.InputHandler=c.WindowsOptionsReportType=void 0;const d=b(2584),m=b(7116),y=b(2015),E=b(844),v=b(482),u=b(8437),h=b(8460),o=b(643),a=b(511),g=b(3734),N=b(2585),C=b(1480),D=b(6242),w=b(6351),k=b(5941),M={"(":0,")":1,"*":2,"+":3,"-":1,".":2},L=131072;function H(le,T){if(le>24)return T.setWinLines||!1;switch(le){case 1:return!!T.restoreWin;case 2:return!!T.minimizeWin;case 3:return!!T.setWinPosition;case 4:return!!T.setWinSizePixels;case 5:return!!T.raiseWin;case 6:return!!T.lowerWin;case 7:return!!T.refreshWin;case 8:return!!T.setWinSizeChars;case 9:return!!T.maximizeWin;case 10:return!!T.fullscreenWin;case 11:return!!T.getWinState;case 13:return!!T.getWinPosition;case 14:return!!T.getWinSizePixels;case 15:return!!T.getScreenSizePixels;case 16:return!!T.getCellSizePixels;case 18:return!!T.getWinSizeChars;case 19:return!!T.getScreenSizeChars;case 20:return!!T.getIconTitle;case 21:return!!T.getWinTitle;case 22:return!!T.pushTitle;case 23:return!!T.popTitle;case 24:return!!T.setWinLines}return!1}var B;(function(le){le[le.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",le[le.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(B||(c.WindowsOptionsReportType=B={}));let J=0;class ae extends E.Disposable{getAttrData(){return this._curAttrData}constructor(T,V,A,$,ue,me,be,Ce,F=new y.EscapeSequenceParser){super(),this._bufferService=T,this._charsetService=V,this._coreService=A,this._logService=$,this._optionsService=ue,this._oscLinkService=me,this._coreMouseService=be,this._unicodeService=Ce,this._parser=F,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new v.StringToUtf32,this._utf8Decoder=new v.Utf8ToUtf32,this._workCell=new a.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new h.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new h.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new h.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new h.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new h.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new h.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new h.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new h.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new h.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new h.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new h.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new h.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new h.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new te(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((j=>this._activeBuffer=j.activeBuffer))),this._parser.setCsiHandlerFallback(((j,pe)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(j),params:pe.toArray()})})),this._parser.setEscHandlerFallback((j=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(j)})})),this._parser.setExecuteHandlerFallback((j=>{this._logService.debug("Unknown EXECUTE code: ",{code:j})})),this._parser.setOscHandlerFallback(((j,pe,se)=>{this._logService.debug("Unknown OSC code: ",{identifier:j,action:pe,data:se})})),this._parser.setDcsHandlerFallback(((j,pe,se)=>{pe==="HOOK"&&(se=se.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(j),action:pe,payload:se})})),this._parser.setPrintHandler(((j,pe,se)=>this.print(j,pe,se))),this._parser.registerCsiHandler({final:"@"},(j=>this.insertChars(j))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(j=>this.scrollLeft(j))),this._parser.registerCsiHandler({final:"A"},(j=>this.cursorUp(j))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(j=>this.scrollRight(j))),this._parser.registerCsiHandler({final:"B"},(j=>this.cursorDown(j))),this._parser.registerCsiHandler({final:"C"},(j=>this.cursorForward(j))),this._parser.registerCsiHandler({final:"D"},(j=>this.cursorBackward(j))),this._parser.registerCsiHandler({final:"E"},(j=>this.cursorNextLine(j))),this._parser.registerCsiHandler({final:"F"},(j=>this.cursorPrecedingLine(j))),this._parser.registerCsiHandler({final:"G"},(j=>this.cursorCharAbsolute(j))),this._parser.registerCsiHandler({final:"H"},(j=>this.cursorPosition(j))),this._parser.registerCsiHandler({final:"I"},(j=>this.cursorForwardTab(j))),this._parser.registerCsiHandler({final:"J"},(j=>this.eraseInDisplay(j,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(j=>this.eraseInDisplay(j,!0))),this._parser.registerCsiHandler({final:"K"},(j=>this.eraseInLine(j,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(j=>this.eraseInLine(j,!0))),this._parser.registerCsiHandler({final:"L"},(j=>this.insertLines(j))),this._parser.registerCsiHandler({final:"M"},(j=>this.deleteLines(j))),this._parser.registerCsiHandler({final:"P"},(j=>this.deleteChars(j))),this._parser.registerCsiHandler({final:"S"},(j=>this.scrollUp(j))),this._parser.registerCsiHandler({final:"T"},(j=>this.scrollDown(j))),this._parser.registerCsiHandler({final:"X"},(j=>this.eraseChars(j))),this._parser.registerCsiHandler({final:"Z"},(j=>this.cursorBackwardTab(j))),this._parser.registerCsiHandler({final:"`"},(j=>this.charPosAbsolute(j))),this._parser.registerCsiHandler({final:"a"},(j=>this.hPositionRelative(j))),this._parser.registerCsiHandler({final:"b"},(j=>this.repeatPrecedingCharacter(j))),this._parser.registerCsiHandler({final:"c"},(j=>this.sendDeviceAttributesPrimary(j))),this._parser.registerCsiHandler({prefix:">",final:"c"},(j=>this.sendDeviceAttributesSecondary(j))),this._parser.registerCsiHandler({final:"d"},(j=>this.linePosAbsolute(j))),this._parser.registerCsiHandler({final:"e"},(j=>this.vPositionRelative(j))),this._parser.registerCsiHandler({final:"f"},(j=>this.hVPosition(j))),this._parser.registerCsiHandler({final:"g"},(j=>this.tabClear(j))),this._parser.registerCsiHandler({final:"h"},(j=>this.setMode(j))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(j=>this.setModePrivate(j))),this._parser.registerCsiHandler({final:"l"},(j=>this.resetMode(j))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(j=>this.resetModePrivate(j))),this._parser.registerCsiHandler({final:"m"},(j=>this.charAttributes(j))),this._parser.registerCsiHandler({final:"n"},(j=>this.deviceStatus(j))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(j=>this.deviceStatusPrivate(j))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(j=>this.softReset(j))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(j=>this.setCursorStyle(j))),this._parser.registerCsiHandler({final:"r"},(j=>this.setScrollRegion(j))),this._parser.registerCsiHandler({final:"s"},(j=>this.saveCursor(j))),this._parser.registerCsiHandler({final:"t"},(j=>this.windowOptions(j))),this._parser.registerCsiHandler({final:"u"},(j=>this.restoreCursor(j))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(j=>this.insertColumns(j))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(j=>this.deleteColumns(j))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(j=>this.selectProtected(j))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(j=>this.requestMode(j,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(j=>this.requestMode(j,!1))),this._parser.setExecuteHandler(d.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(d.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(d.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(d.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(d.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(d.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(d.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(d.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(d.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(d.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(d.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(d.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new D.OscHandler((j=>(this.setTitle(j),this.setIconName(j),!0)))),this._parser.registerOscHandler(1,new D.OscHandler((j=>this.setIconName(j)))),this._parser.registerOscHandler(2,new D.OscHandler((j=>this.setTitle(j)))),this._parser.registerOscHandler(4,new D.OscHandler((j=>this.setOrReportIndexedColor(j)))),this._parser.registerOscHandler(8,new D.OscHandler((j=>this.setHyperlink(j)))),this._parser.registerOscHandler(10,new D.OscHandler((j=>this.setOrReportFgColor(j)))),this._parser.registerOscHandler(11,new D.OscHandler((j=>this.setOrReportBgColor(j)))),this._parser.registerOscHandler(12,new D.OscHandler((j=>this.setOrReportCursorColor(j)))),this._parser.registerOscHandler(104,new D.OscHandler((j=>this.restoreIndexedColor(j)))),this._parser.registerOscHandler(110,new D.OscHandler((j=>this.restoreFgColor(j)))),this._parser.registerOscHandler(111,new D.OscHandler((j=>this.restoreBgColor(j)))),this._parser.registerOscHandler(112,new D.OscHandler((j=>this.restoreCursorColor(j)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const j in m.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:j},(()=>this.selectCharset("("+j))),this._parser.registerEscHandler({intermediates:")",final:j},(()=>this.selectCharset(")"+j))),this._parser.registerEscHandler({intermediates:"*",final:j},(()=>this.selectCharset("*"+j))),this._parser.registerEscHandler({intermediates:"+",final:j},(()=>this.selectCharset("+"+j))),this._parser.registerEscHandler({intermediates:"-",final:j},(()=>this.selectCharset("-"+j))),this._parser.registerEscHandler({intermediates:".",final:j},(()=>this.selectCharset("."+j))),this._parser.registerEscHandler({intermediates:"/",final:j},(()=>this.selectCharset("/"+j)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((j=>(this._logService.error("Parsing error: ",j),j))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new w.DcsHandler(((j,pe)=>this.requestStatusString(j,pe))))}_preserveStack(T,V,A,$){this._parseStack.paused=!0,this._parseStack.cursorStartX=T,this._parseStack.cursorStartY=V,this._parseStack.decodedLength=A,this._parseStack.position=$}_logSlowResolvingAsync(T){this._logService.logLevel<=N.LogLevelEnum.WARN&&Promise.race([T,new Promise(((V,A)=>setTimeout((()=>A("#SLOW_TIMEOUT")),5e3)))]).catch((V=>{if(V!=="#SLOW_TIMEOUT")throw V;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(T,V){let A,$=this._activeBuffer.x,ue=this._activeBuffer.y,me=0;const be=this._parseStack.paused;if(be){if(A=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,V))return this._logSlowResolvingAsync(A),A;$=this._parseStack.cursorStartX,ue=this._parseStack.cursorStartY,this._parseStack.paused=!1,T.length>L&&(me=this._parseStack.position+L)}if(this._logService.logLevel<=N.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof T=="string"?` "${T}"`:` "${Array.prototype.map.call(T,(j=>String.fromCharCode(j))).join("")}"`),typeof T=="string"?T.split("").map((j=>j.charCodeAt(0))):T),this._parseBuffer.length<T.length&&this._parseBuffer.length<L&&(this._parseBuffer=new Uint32Array(Math.min(T.length,L))),be||this._dirtyRowTracker.clearRange(),T.length>L)for(let j=me;j<T.length;j+=L){const pe=j+L<T.length?j+L:T.length,se=typeof T=="string"?this._stringDecoder.decode(T.substring(j,pe),this._parseBuffer):this._utf8Decoder.decode(T.subarray(j,pe),this._parseBuffer);if(A=this._parser.parse(this._parseBuffer,se))return this._preserveStack($,ue,se,j),this._logSlowResolvingAsync(A),A}else if(!be){const j=typeof T=="string"?this._stringDecoder.decode(T,this._parseBuffer):this._utf8Decoder.decode(T,this._parseBuffer);if(A=this._parser.parse(this._parseBuffer,j))return this._preserveStack($,ue,j,0),this._logSlowResolvingAsync(A),A}this._activeBuffer.x===$&&this._activeBuffer.y===ue||this._onCursorMove.fire();const Ce=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),F=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);F<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min(F,this._bufferService.rows-1),Math.min(Ce,this._bufferService.rows-1))}print(T,V,A){let $,ue;const me=this._charsetService.charset,be=this._optionsService.rawOptions.screenReaderMode,Ce=this._bufferService.cols,F=this._coreService.decPrivateModes.wraparound,j=this._coreService.modes.insertMode,pe=this._curAttrData;let se=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&A-V>0&&se.getWidth(this._activeBuffer.x-1)===2&&se.setCellFromCodepoint(this._activeBuffer.x-1,0,1,pe);let oe=this._parser.precedingJoinState;for(let ye=V;ye<A;++ye){if($=T[ye],$<127&&me){const ze=me[String.fromCharCode($)];ze&&($=ze.charCodeAt(0))}const Ue=this._unicodeService.charProperties($,oe);ue=C.UnicodeService.extractWidth(Ue);const nt=C.UnicodeService.extractShouldJoin(Ue),Fe=nt?C.UnicodeService.extractWidth(oe):0;if(oe=Ue,be&&this._onA11yChar.fire((0,v.stringFromCodePoint)($)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+ue-Fe>Ce){if(F){const ze=se;let De=this._activeBuffer.x-Fe;for(this._activeBuffer.x=Fe,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),se=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),Fe>0&&se instanceof u.BufferLine&&se.copyCellsFrom(ze,De,0,Fe,!1);De<Ce;)ze.setCellFromCodepoint(De++,0,1,pe)}else if(this._activeBuffer.x=Ce-1,ue===2)continue}if(nt&&this._activeBuffer.x){const ze=se.getWidth(this._activeBuffer.x-1)?1:2;se.addCodepointToCell(this._activeBuffer.x-ze,$,ue);for(let De=ue-Fe;--De>=0;)se.setCellFromCodepoint(this._activeBuffer.x++,0,0,pe)}else if(j&&(se.insertCells(this._activeBuffer.x,ue-Fe,this._activeBuffer.getNullCell(pe)),se.getWidth(Ce-1)===2&&se.setCellFromCodepoint(Ce-1,o.NULL_CELL_CODE,o.NULL_CELL_WIDTH,pe)),se.setCellFromCodepoint(this._activeBuffer.x++,$,ue,pe),ue>0)for(;--ue;)se.setCellFromCodepoint(this._activeBuffer.x++,0,0,pe)}this._parser.precedingJoinState=oe,this._activeBuffer.x<Ce&&A-V>0&&se.getWidth(this._activeBuffer.x)===0&&!se.hasContent(this._activeBuffer.x)&&se.setCellFromCodepoint(this._activeBuffer.x,0,1,pe),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(T,V){return T.final!=="t"||T.prefix||T.intermediates?this._parser.registerCsiHandler(T,V):this._parser.registerCsiHandler(T,(A=>!H(A.params[0],this._optionsService.rawOptions.windowOptions)||V(A)))}registerDcsHandler(T,V){return this._parser.registerDcsHandler(T,new w.DcsHandler(V))}registerEscHandler(T,V){return this._parser.registerEscHandler(T,V)}registerOscHandler(T,V){return this._parser.registerOscHandler(T,new D.OscHandler(V))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var T;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((T=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&T.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);V.hasWidth(this._activeBuffer.x)&&!V.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const T=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-T),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(T=this._bufferService.cols-1){this._activeBuffer.x=Math.min(T,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(T,V){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=T,this._activeBuffer.y=this._activeBuffer.scrollTop+V):(this._activeBuffer.x=T,this._activeBuffer.y=V),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(T,V){this._restrictCursor(),this._setCursor(this._activeBuffer.x+T,this._activeBuffer.y+V)}cursorUp(T){const V=this._activeBuffer.y-this._activeBuffer.scrollTop;return V>=0?this._moveCursor(0,-Math.min(V,T.params[0]||1)):this._moveCursor(0,-(T.params[0]||1)),!0}cursorDown(T){const V=this._activeBuffer.scrollBottom-this._activeBuffer.y;return V>=0?this._moveCursor(0,Math.min(V,T.params[0]||1)):this._moveCursor(0,T.params[0]||1),!0}cursorForward(T){return this._moveCursor(T.params[0]||1,0),!0}cursorBackward(T){return this._moveCursor(-(T.params[0]||1),0),!0}cursorNextLine(T){return this.cursorDown(T),this._activeBuffer.x=0,!0}cursorPrecedingLine(T){return this.cursorUp(T),this._activeBuffer.x=0,!0}cursorCharAbsolute(T){return this._setCursor((T.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(T){return this._setCursor(T.length>=2?(T.params[1]||1)-1:0,(T.params[0]||1)-1),!0}charPosAbsolute(T){return this._setCursor((T.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(T){return this._moveCursor(T.params[0]||1,0),!0}linePosAbsolute(T){return this._setCursor(this._activeBuffer.x,(T.params[0]||1)-1),!0}vPositionRelative(T){return this._moveCursor(0,T.params[0]||1),!0}hVPosition(T){return this.cursorPosition(T),!0}tabClear(T){const V=T.params[0];return V===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:V===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let V=T.params[0]||1;for(;V--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(T){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let V=T.params[0]||1;for(;V--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(T){const V=T.params[0];return V===1&&(this._curAttrData.bg|=536870912),V!==2&&V!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(T,V,A,$=!1,ue=!1){const me=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);me.replaceCells(V,A,this._activeBuffer.getNullCell(this._eraseAttrData()),ue),$&&(me.isWrapped=!1)}_resetBufferLine(T,V=!1){const A=this._activeBuffer.lines.get(this._activeBuffer.ybase+T);A&&(A.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),V),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+T),A.isWrapped=!1)}eraseInDisplay(T,V=!1){let A;switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:for(A=this._activeBuffer.y,this._dirtyRowTracker.markDirty(A),this._eraseInBufferLine(A++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,V);A<this._bufferService.rows;A++)this._resetBufferLine(A,V);this._dirtyRowTracker.markDirty(A);break;case 1:for(A=this._activeBuffer.y,this._dirtyRowTracker.markDirty(A),this._eraseInBufferLine(A,0,this._activeBuffer.x+1,!0,V),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(A+1).isWrapped=!1);A--;)this._resetBufferLine(A,V);this._dirtyRowTracker.markDirty(0);break;case 2:for(A=this._bufferService.rows,this._dirtyRowTracker.markDirty(A-1);A--;)this._resetBufferLine(A,V);this._dirtyRowTracker.markDirty(0);break;case 3:const $=this._activeBuffer.lines.length-this._bufferService.rows;$>0&&(this._activeBuffer.lines.trimStart($),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-$,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-$,0),this._onScroll.fire(0))}return!0}eraseInLine(T,V=!1){switch(this._restrictCursor(this._bufferService.cols),T.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,V);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,V);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,V)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(T){this._restrictCursor();let V=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const A=this._activeBuffer.ybase+this._activeBuffer.y,$=this._bufferService.rows-1-this._activeBuffer.scrollBottom,ue=this._bufferService.rows-1+this._activeBuffer.ybase-$+1;for(;V--;)this._activeBuffer.lines.splice(ue-1,1),this._activeBuffer.lines.splice(A,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(T){this._restrictCursor();let V=T.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const A=this._activeBuffer.ybase+this._activeBuffer.y;let $;for($=this._bufferService.rows-1-this._activeBuffer.scrollBottom,$=this._bufferService.rows-1+this._activeBuffer.ybase-$;V--;)this._activeBuffer.lines.splice(A,1),this._activeBuffer.lines.splice($,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(T){this._restrictCursor();const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return V&&(V.insertCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(T){this._restrictCursor();const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return V&&(V.deleteCells(this._activeBuffer.x,T.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(T){let V=T.params[0]||1;for(;V--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(T){let V=T.params[0]||1;for(;V--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(u.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const V=T.params[0]||1;for(let A=this._activeBuffer.scrollTop;A<=this._activeBuffer.scrollBottom;++A){const $=this._activeBuffer.lines.get(this._activeBuffer.ybase+A);$.deleteCells(0,V,this._activeBuffer.getNullCell(this._eraseAttrData())),$.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const V=T.params[0]||1;for(let A=this._activeBuffer.scrollTop;A<=this._activeBuffer.scrollBottom;++A){const $=this._activeBuffer.lines.get(this._activeBuffer.ybase+A);$.insertCells(0,V,this._activeBuffer.getNullCell(this._eraseAttrData())),$.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const V=T.params[0]||1;for(let A=this._activeBuffer.scrollTop;A<=this._activeBuffer.scrollBottom;++A){const $=this._activeBuffer.lines.get(this._activeBuffer.ybase+A);$.insertCells(this._activeBuffer.x,V,this._activeBuffer.getNullCell(this._eraseAttrData())),$.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(T){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const V=T.params[0]||1;for(let A=this._activeBuffer.scrollTop;A<=this._activeBuffer.scrollBottom;++A){const $=this._activeBuffer.lines.get(this._activeBuffer.ybase+A);$.deleteCells(this._activeBuffer.x,V,this._activeBuffer.getNullCell(this._eraseAttrData())),$.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(T){this._restrictCursor();const V=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return V&&(V.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(T.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(T){const V=this._parser.precedingJoinState;if(!V)return!0;const A=T.params[0]||1,$=C.UnicodeService.extractWidth(V),ue=this._activeBuffer.x-$,me=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(ue),be=new Uint32Array(me.length*A);let Ce=0;for(let j=0;j<me.length;){const pe=me.codePointAt(j)||0;be[Ce++]=pe,j+=pe>65535?2:1}let F=Ce;for(let j=1;j<A;++j)be.copyWithin(F,0,Ce),F+=Ce;return this.print(be,0,F),!0}sendDeviceAttributesPrimary(T){return T.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(d.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(d.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(T){return T.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(d.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(d.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(T.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c")),!0}_is(T){return(this._optionsService.rawOptions.termName+"").indexOf(T)===0}setMode(T){for(let V=0;V<T.length;V++)switch(T.params[V]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(T){for(let V=0;V<T.length;V++)switch(T.params[V]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,m.DEFAULT_CHARSET),this._charsetService.setgCharset(1,m.DEFAULT_CHARSET),this._charsetService.setgCharset(2,m.DEFAULT_CHARSET),this._charsetService.setgCharset(3,m.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(T){for(let V=0;V<T.length;V++)switch(T.params[V]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(T){for(let V=0;V<T.length;V++)switch(T.params[V]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),T.params[V]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(T,V){const A=this._coreService.decPrivateModes,{activeProtocol:$,activeEncoding:ue}=this._coreMouseService,me=this._coreService,{buffers:be,cols:Ce}=this._bufferService,{active:F,alt:j}=be,pe=this._optionsService.rawOptions,se=nt=>nt?1:2,oe=T.params[0];return ye=oe,Ue=V?oe===2?4:oe===4?se(me.modes.insertMode):oe===12?3:oe===20?se(pe.convertEol):0:oe===1?se(A.applicationCursorKeys):oe===3?pe.windowOptions.setWinLines?Ce===80?2:Ce===132?1:0:0:oe===6?se(A.origin):oe===7?se(A.wraparound):oe===8?3:oe===9?se($==="X10"):oe===12?se(pe.cursorBlink):oe===25?se(!me.isCursorHidden):oe===45?se(A.reverseWraparound):oe===66?se(A.applicationKeypad):oe===67?4:oe===1e3?se($==="VT200"):oe===1002?se($==="DRAG"):oe===1003?se($==="ANY"):oe===1004?se(A.sendFocus):oe===1005?4:oe===1006?se(ue==="SGR"):oe===1015?4:oe===1016?se(ue==="SGR_PIXELS"):oe===1048?1:oe===47||oe===1047||oe===1049?se(F===j):oe===2004?se(A.bracketedPasteMode):0,me.triggerDataEvent(`${d.C0.ESC}[${V?"":"?"}${ye};${Ue}$y`),!0;var ye,Ue}_updateAttrColor(T,V,A,$,ue){return V===2?(T|=50331648,T&=-16777216,T|=g.AttributeData.fromColorRGB([A,$,ue])):V===5&&(T&=-50331904,T|=33554432|255&A),T}_extractColor(T,V,A){const $=[0,0,-1,0,0,0];let ue=0,me=0;do{if($[me+ue]=T.params[V+me],T.hasSubParams(V+me)){const be=T.getSubParams(V+me);let Ce=0;do $[1]===5&&(ue=1),$[me+Ce+1+ue]=be[Ce];while(++Ce<be.length&&Ce+me+1+ue<$.length);break}if($[1]===5&&me+ue>=2||$[1]===2&&me+ue>=5)break;$[1]&&(ue=1)}while(++me+V<T.length&&me+ue<$.length);for(let be=2;be<$.length;++be)$[be]===-1&&($[be]=0);switch($[0]){case 38:A.fg=this._updateAttrColor(A.fg,$[1],$[3],$[4],$[5]);break;case 48:A.bg=this._updateAttrColor(A.bg,$[1],$[3],$[4],$[5]);break;case 58:A.extended=A.extended.clone(),A.extended.underlineColor=this._updateAttrColor(A.extended.underlineColor,$[1],$[3],$[4],$[5])}return me}_processUnderline(T,V){V.extended=V.extended.clone(),(!~T||T>5)&&(T=1),V.extended.underlineStyle=T,V.fg|=268435456,T===0&&(V.fg&=-268435457),V.updateExtended()}_processSGR0(T){T.fg=u.DEFAULT_ATTR_DATA.fg,T.bg=u.DEFAULT_ATTR_DATA.bg,T.extended=T.extended.clone(),T.extended.underlineStyle=0,T.extended.underlineColor&=-67108864,T.updateExtended()}charAttributes(T){if(T.length===1&&T.params[0]===0)return this._processSGR0(this._curAttrData),!0;const V=T.length;let A;const $=this._curAttrData;for(let ue=0;ue<V;ue++)A=T.params[ue],A>=30&&A<=37?($.fg&=-50331904,$.fg|=16777216|A-30):A>=40&&A<=47?($.bg&=-50331904,$.bg|=16777216|A-40):A>=90&&A<=97?($.fg&=-50331904,$.fg|=16777224|A-90):A>=100&&A<=107?($.bg&=-50331904,$.bg|=16777224|A-100):A===0?this._processSGR0($):A===1?$.fg|=134217728:A===3?$.bg|=67108864:A===4?($.fg|=268435456,this._processUnderline(T.hasSubParams(ue)?T.getSubParams(ue)[0]:1,$)):A===5?$.fg|=536870912:A===7?$.fg|=67108864:A===8?$.fg|=1073741824:A===9?$.fg|=2147483648:A===2?$.bg|=134217728:A===21?this._processUnderline(2,$):A===22?($.fg&=-134217729,$.bg&=-134217729):A===23?$.bg&=-67108865:A===24?($.fg&=-268435457,this._processUnderline(0,$)):A===25?$.fg&=-536870913:A===27?$.fg&=-67108865:A===28?$.fg&=-1073741825:A===29?$.fg&=2147483647:A===39?($.fg&=-67108864,$.fg|=16777215&u.DEFAULT_ATTR_DATA.fg):A===49?($.bg&=-67108864,$.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):A===38||A===48||A===58?ue+=this._extractColor(T,ue,$):A===53?$.bg|=1073741824:A===55?$.bg&=-1073741825:A===59?($.extended=$.extended.clone(),$.extended.underlineColor=-1,$.updateExtended()):A===100?($.fg&=-67108864,$.fg|=16777215&u.DEFAULT_ATTR_DATA.fg,$.bg&=-67108864,$.bg|=16777215&u.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",A);return!0}deviceStatus(T){switch(T.params[0]){case 5:this._coreService.triggerDataEvent(`${d.C0.ESC}[0n`);break;case 6:const V=this._activeBuffer.y+1,A=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${d.C0.ESC}[${V};${A}R`)}return!0}deviceStatusPrivate(T){if(T.params[0]===6){const V=this._activeBuffer.y+1,A=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${d.C0.ESC}[?${V};${A}R`)}return!0}softReset(T){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(T){const V=T.params[0]||1;switch(V){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const A=V%2==1;return this._optionsService.options.cursorBlink=A,!0}setScrollRegion(T){const V=T.params[0]||1;let A;return(T.length<2||(A=T.params[1])>this._bufferService.rows||A===0)&&(A=this._bufferService.rows),A>V&&(this._activeBuffer.scrollTop=V-1,this._activeBuffer.scrollBottom=A-1,this._setCursor(0,0)),!0}windowOptions(T){if(!H(T.params[0],this._optionsService.rawOptions.windowOptions))return!0;const V=T.length>1?T.params[1]:0;switch(T.params[0]){case 14:V!==2&&this._onRequestWindowsOptionsReport.fire(B.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(B.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${d.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:V!==0&&V!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),V!==0&&V!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:V!==0&&V!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),V!==0&&V!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(T){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(T){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(T){return this._windowTitle=T,this._onTitleChange.fire(T),!0}setIconName(T){return this._iconName=T,!0}setOrReportIndexedColor(T){const V=[],A=T.split(";");for(;A.length>1;){const $=A.shift(),ue=A.shift();if(/^\d+$/.exec($)){const me=parseInt($);if(de(me))if(ue==="?")V.push({type:0,index:me});else{const be=(0,k.parseColor)(ue);be&&V.push({type:1,index:me,color:be})}}}return V.length&&this._onColor.fire(V),!0}setHyperlink(T){const V=T.split(";");return!(V.length<2)&&(V[1]?this._createHyperlink(V[0],V[1]):!V[0]&&this._finishHyperlink())}_createHyperlink(T,V){this._getCurrentLinkId()&&this._finishHyperlink();const A=T.split(":");let $;const ue=A.findIndex((me=>me.startsWith("id=")));return ue!==-1&&($=A[ue].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:$,uri:V}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(T,V){const A=T.split(";");for(let $=0;$<A.length&&!(V>=this._specialColors.length);++$,++V)if(A[$]==="?")this._onColor.fire([{type:0,index:this._specialColors[V]}]);else{const ue=(0,k.parseColor)(A[$]);ue&&this._onColor.fire([{type:1,index:this._specialColors[V],color:ue}])}return!0}setOrReportFgColor(T){return this._setOrReportSpecialColor(T,0)}setOrReportBgColor(T){return this._setOrReportSpecialColor(T,1)}setOrReportCursorColor(T){return this._setOrReportSpecialColor(T,2)}restoreIndexedColor(T){if(!T)return this._onColor.fire([{type:2}]),!0;const V=[],A=T.split(";");for(let $=0;$<A.length;++$)if(/^\d+$/.exec(A[$])){const ue=parseInt(A[$]);de(ue)&&V.push({type:2,index:ue})}return V.length&&this._onColor.fire(V),!0}restoreFgColor(T){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(T){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(T){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,m.DEFAULT_CHARSET),!0}selectCharset(T){return T.length!==2?(this.selectDefaultCharset(),!0):(T[0]==="/"||this._charsetService.setgCharset(M[T[0]],m.CHARSETS[T[1]]||m.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const T=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,T,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=u.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=u.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(T){return this._charsetService.setgLevel(T),!0}screenAlignmentPattern(){const T=new a.CellData;T.content=4194373,T.fg=this._curAttrData.fg,T.bg=this._curAttrData.bg,this._setCursor(0,0);for(let V=0;V<this._bufferService.rows;++V){const A=this._activeBuffer.ybase+this._activeBuffer.y+V,$=this._activeBuffer.lines.get(A);$&&($.fill(T),$.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(T,V){const A=this._bufferService.buffer,$=this._optionsService.rawOptions;return(ue=>(this._coreService.triggerDataEvent(`${d.C0.ESC}${ue}${d.C0.ESC}\\`),!0))(T==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:T==='"p'?'P1$r61;1"p':T==="r"?`P1$r${A.scrollTop+1};${A.scrollBottom+1}r`:T==="m"?"P1$r0m":T===" q"?`P1$r${{block:2,underline:4,bar:6}[$.cursorStyle]-($.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(T,V){this._dirtyRowTracker.markRangeDirty(T,V)}}c.InputHandler=ae;let te=class{constructor(le){this._bufferService=le,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(le){le<this.start?this.start=le:le>this.end&&(this.end=le)}markRangeDirty(le,T){le>T&&(J=le,le=T,T=J),le<this.start&&(this.start=le),T>this.end&&(this.end=T)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function de(le){return 0<=le&&le<256}te=_([S(0,N.IBufferService)],te)},844:(W,c)=>{function b(_){for(const S of _)S.dispose();_.length=0}Object.defineProperty(c,"__esModule",{value:!0}),c.getDisposeArrayDisposable=c.disposeArray=c.toDisposable=c.MutableDisposable=c.Disposable=void 0,c.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const _ of this._disposables)_.dispose();this._disposables.length=0}register(_){return this._disposables.push(_),_}unregister(_){const S=this._disposables.indexOf(_);S!==-1&&this._disposables.splice(S,1)}},c.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(_){var S;this._isDisposed||_===this._value||((S=this._value)==null||S.dispose(),this._value=_)}clear(){this.value=void 0}dispose(){var _;this._isDisposed=!0,(_=this._value)==null||_.dispose(),this._value=void 0}},c.toDisposable=function(_){return{dispose:_}},c.disposeArray=b,c.getDisposeArrayDisposable=function(_){return{dispose:()=>b(_)}}},1505:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.FourKeyMap=c.TwoKeyMap=void 0;class b{constructor(){this._data={}}set(S,d,m){this._data[S]||(this._data[S]={}),this._data[S][d]=m}get(S,d){return this._data[S]?this._data[S][d]:void 0}clear(){this._data={}}}c.TwoKeyMap=b,c.FourKeyMap=class{constructor(){this._data=new b}set(_,S,d,m,y){this._data.get(_,S)||this._data.set(_,S,new b),this._data.get(_,S).set(d,m,y)}get(_,S,d,m){var y;return(y=this._data.get(_,S))==null?void 0:y.get(d,m)}clear(){this._data.clear()}}},6114:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.isChromeOS=c.isLinux=c.isWindows=c.isIphone=c.isIpad=c.isMac=c.getSafariVersion=c.isSafari=c.isLegacyEdge=c.isFirefox=c.isNode=void 0,c.isNode=typeof process<"u"&&"title"in process;const b=c.isNode?"node":navigator.userAgent,_=c.isNode?"node":navigator.platform;c.isFirefox=b.includes("Firefox"),c.isLegacyEdge=b.includes("Edge"),c.isSafari=/^((?!chrome|android).)*safari/i.test(b),c.getSafariVersion=function(){if(!c.isSafari)return 0;const S=b.match(/Version\/(\d+)/);return S===null||S.length<2?0:parseInt(S[1])},c.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(_),c.isIpad=_==="iPad",c.isIphone=_==="iPhone",c.isWindows=["Windows","Win16","Win32","WinCE"].includes(_),c.isLinux=_.indexOf("Linux")>=0,c.isChromeOS=/\bCrOS\b/.test(b)},6106:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.SortedList=void 0;let b=0;c.SortedList=class{constructor(_){this._getKey=_,this._array=[]}clear(){this._array.length=0}insert(_){this._array.length!==0?(b=this._search(this._getKey(_)),this._array.splice(b,0,_)):this._array.push(_)}delete(_){if(this._array.length===0)return!1;const S=this._getKey(_);if(S===void 0||(b=this._search(S),b===-1)||this._getKey(this._array[b])!==S)return!1;do if(this._array[b]===_)return this._array.splice(b,1),!0;while(++b<this._array.length&&this._getKey(this._array[b])===S);return!1}*getKeyIterator(_){if(this._array.length!==0&&(b=this._search(_),!(b<0||b>=this._array.length)&&this._getKey(this._array[b])===_))do yield this._array[b];while(++b<this._array.length&&this._getKey(this._array[b])===_)}forEachByKey(_,S){if(this._array.length!==0&&(b=this._search(_),!(b<0||b>=this._array.length)&&this._getKey(this._array[b])===_))do S(this._array[b]);while(++b<this._array.length&&this._getKey(this._array[b])===_)}values(){return[...this._array].values()}_search(_){let S=0,d=this._array.length-1;for(;d>=S;){let m=S+d>>1;const y=this._getKey(this._array[m]);if(y>_)d=m-1;else{if(!(y<_)){for(;m>0&&this._getKey(this._array[m-1])===_;)m--;return m}S=m+1}}return S}}},7226:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.DebouncedIdleTask=c.IdleTaskQueue=c.PriorityTaskQueue=void 0;const _=b(6114);class S{constructor(){this._tasks=[],this._i=0}enqueue(y){this._tasks.push(y),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(y){this._idleCallback=void 0;let E=0,v=0,u=y.timeRemaining(),h=0;for(;this._i<this._tasks.length;){if(E=Date.now(),this._tasks[this._i]()||this._i++,E=Math.max(1,Date.now()-E),v=Math.max(E,v),h=y.timeRemaining(),1.5*v>h)return u-E<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(u-E))}ms`),void this._start();u=h}this.clear()}}class d extends S{_requestCallback(y){return setTimeout((()=>y(this._createDeadline(16))))}_cancelCallback(y){clearTimeout(y)}_createDeadline(y){const E=Date.now()+y;return{timeRemaining:()=>Math.max(0,E-Date.now())}}}c.PriorityTaskQueue=d,c.IdleTaskQueue=!_.isNode&&"requestIdleCallback"in window?class extends S{_requestCallback(m){return requestIdleCallback(m)}_cancelCallback(m){cancelIdleCallback(m)}}:d,c.DebouncedIdleTask=class{constructor(){this._queue=new c.IdleTaskQueue}set(m){this._queue.clear(),this._queue.enqueue(m)}flush(){this._queue.flush()}}},9282:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.updateWindowsModeWrappedState=void 0;const _=b(643);c.updateWindowsModeWrappedState=function(S){const d=S.buffer.lines.get(S.buffer.ybase+S.buffer.y-1),m=d==null?void 0:d.get(S.cols-1),y=S.buffer.lines.get(S.buffer.ybase+S.buffer.y);y&&m&&(y.isWrapped=m[_.CHAR_DATA_CODE_INDEX]!==_.NULL_CELL_CODE&&m[_.CHAR_DATA_CODE_INDEX]!==_.WHITESPACE_CELL_CODE)}},3734:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ExtendedAttrs=c.AttributeData=void 0;class b{constructor(){this.fg=0,this.bg=0,this.extended=new _}static toColorRGB(d){return[d>>>16&255,d>>>8&255,255&d]}static fromColorRGB(d){return(255&d[0])<<16|(255&d[1])<<8|255&d[2]}clone(){const d=new b;return d.fg=this.fg,d.bg=this.bg,d.extended=this.extended.clone(),d}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}c.AttributeData=b;class _{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(d){this._ext=d}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(d){this._ext&=-469762049,this._ext|=d<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(d){this._ext&=-67108864,this._ext|=67108863&d}get urlId(){return this._urlId}set urlId(d){this._urlId=d}get underlineVariantOffset(){const d=(3758096384&this._ext)>>29;return d<0?4294967288^d:d}set underlineVariantOffset(d){this._ext&=536870911,this._ext|=d<<29&3758096384}constructor(d=0,m=0){this._ext=0,this._urlId=0,this._ext=d,this._urlId=m}clone(){return new _(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}c.ExtendedAttrs=_},9092:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.Buffer=c.MAX_BUFFER_SIZE=void 0;const _=b(6349),S=b(7226),d=b(3734),m=b(8437),y=b(4634),E=b(511),v=b(643),u=b(4863),h=b(7116);c.MAX_BUFFER_SIZE=4294967295,c.Buffer=class{constructor(o,a,g){this._hasScrollback=o,this._optionsService=a,this._bufferService=g,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=m.DEFAULT_ATTR_DATA.clone(),this.savedCharset=h.DEFAULT_CHARSET,this.markers=[],this._nullCell=E.CellData.fromCharData([0,v.NULL_CELL_CHAR,v.NULL_CELL_WIDTH,v.NULL_CELL_CODE]),this._whitespaceCell=E.CellData.fromCharData([0,v.WHITESPACE_CELL_CHAR,v.WHITESPACE_CELL_WIDTH,v.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new S.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new _.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(o){return o?(this._nullCell.fg=o.fg,this._nullCell.bg=o.bg,this._nullCell.extended=o.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new d.ExtendedAttrs),this._nullCell}getWhitespaceCell(o){return o?(this._whitespaceCell.fg=o.fg,this._whitespaceCell.bg=o.bg,this._whitespaceCell.extended=o.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new d.ExtendedAttrs),this._whitespaceCell}getBlankLine(o,a){return new m.BufferLine(this._bufferService.cols,this.getNullCell(o),a)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const o=this.ybase+this.y-this.ydisp;return o>=0&&o<this._rows}_getCorrectBufferLength(o){if(!this._hasScrollback)return o;const a=o+this._optionsService.rawOptions.scrollback;return a>c.MAX_BUFFER_SIZE?c.MAX_BUFFER_SIZE:a}fillViewportRows(o){if(this.lines.length===0){o===void 0&&(o=m.DEFAULT_ATTR_DATA);let a=this._rows;for(;a--;)this.lines.push(this.getBlankLine(o))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new _.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(o,a){const g=this.getNullCell(m.DEFAULT_ATTR_DATA);let N=0;const C=this._getCorrectBufferLength(a);if(C>this.lines.maxLength&&(this.lines.maxLength=C),this.lines.length>0){if(this._cols<o)for(let w=0;w<this.lines.length;w++)N+=+this.lines.get(w).resize(o,g);let D=0;if(this._rows<a)for(let w=this._rows;w<a;w++)this.lines.length<a+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new m.BufferLine(o,g)):this.ybase>0&&this.lines.length<=this.ybase+this.y+D+1?(this.ybase--,D++,this.ydisp>0&&this.ydisp--):this.lines.push(new m.BufferLine(o,g)));else for(let w=this._rows;w>a;w--)this.lines.length>a+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(C<this.lines.maxLength){const w=this.lines.length-C;w>0&&(this.lines.trimStart(w),this.ybase=Math.max(this.ybase-w,0),this.ydisp=Math.max(this.ydisp-w,0),this.savedY=Math.max(this.savedY-w,0)),this.lines.maxLength=C}this.x=Math.min(this.x,o-1),this.y=Math.min(this.y,a-1),D&&(this.y+=D),this.savedX=Math.min(this.savedX,o-1),this.scrollTop=0}if(this.scrollBottom=a-1,this._isReflowEnabled&&(this._reflow(o,a),this._cols>o))for(let D=0;D<this.lines.length;D++)N+=+this.lines.get(D).resize(o,g);this._cols=o,this._rows=a,this._memoryCleanupQueue.clear(),N>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let o=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,o=!1);let a=0;for(;this._memoryCleanupPosition<this.lines.length;)if(a+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),a>100)return!0;return o}get _isReflowEnabled(){const o=this._optionsService.rawOptions.windowsPty;return o&&o.buildNumber?this._hasScrollback&&o.backend==="conpty"&&o.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(o,a){this._cols!==o&&(o>this._cols?this._reflowLarger(o,a):this._reflowSmaller(o,a))}_reflowLarger(o,a){const g=(0,y.reflowLargerGetLinesToRemove)(this.lines,this._cols,o,this.ybase+this.y,this.getNullCell(m.DEFAULT_ATTR_DATA));if(g.length>0){const N=(0,y.reflowLargerCreateNewLayout)(this.lines,g);(0,y.reflowLargerApplyNewLayout)(this.lines,N.layout),this._reflowLargerAdjustViewport(o,a,N.countRemoved)}}_reflowLargerAdjustViewport(o,a,g){const N=this.getNullCell(m.DEFAULT_ATTR_DATA);let C=g;for(;C-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new m.BufferLine(o,N))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-g,0)}_reflowSmaller(o,a){const g=this.getNullCell(m.DEFAULT_ATTR_DATA),N=[];let C=0;for(let D=this.lines.length-1;D>=0;D--){let w=this.lines.get(D);if(!w||!w.isWrapped&&w.getTrimmedLength()<=o)continue;const k=[w];for(;w.isWrapped&&D>0;)w=this.lines.get(--D),k.unshift(w);const M=this.ybase+this.y;if(M>=D&&M<D+k.length)continue;const L=k[k.length-1].getTrimmedLength(),H=(0,y.reflowSmallerGetNewLineLengths)(k,this._cols,o),B=H.length-k.length;let J;J=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+B):Math.max(0,this.lines.length-this.lines.maxLength+B);const ae=[];for(let A=0;A<B;A++){const $=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);ae.push($)}ae.length>0&&(N.push({start:D+k.length+C,newLines:ae}),C+=ae.length),k.push(...ae);let te=H.length-1,de=H[te];de===0&&(te--,de=H[te]);let le=k.length-B-1,T=L;for(;le>=0;){const A=Math.min(T,de);if(k[te]===void 0)break;if(k[te].copyCellsFrom(k[le],T-A,de-A,A,!0),de-=A,de===0&&(te--,de=H[te]),T-=A,T===0){le--;const $=Math.max(le,0);T=(0,y.getWrappedLineTrimmedLength)(k,$,this._cols)}}for(let A=0;A<k.length;A++)H[A]<o&&k[A].setCell(H[A],g);let V=B-J;for(;V-- >0;)this.ybase===0?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+C)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+B,this.ybase+a-1)}if(N.length>0){const D=[],w=[];for(let te=0;te<this.lines.length;te++)w.push(this.lines.get(te));const k=this.lines.length;let M=k-1,L=0,H=N[L];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+C);let B=0;for(let te=Math.min(this.lines.maxLength-1,k+C-1);te>=0;te--)if(H&&H.start>M+B){for(let de=H.newLines.length-1;de>=0;de--)this.lines.set(te--,H.newLines[de]);te++,D.push({index:M+1,amount:H.newLines.length}),B+=H.newLines.length,H=N[++L]}else this.lines.set(te,w[M--]);let J=0;for(let te=D.length-1;te>=0;te--)D[te].index+=J,this.lines.onInsertEmitter.fire(D[te]),J+=D[te].amount;const ae=Math.max(0,k+C-this.lines.maxLength);ae>0&&this.lines.onTrimEmitter.fire(ae)}}translateBufferLineToString(o,a,g=0,N){const C=this.lines.get(o);return C?C.translateToString(a,g,N):""}getWrappedRangeForLine(o){let a=o,g=o;for(;a>0&&this.lines.get(a).isWrapped;)a--;for(;g+1<this.lines.length&&this.lines.get(g+1).isWrapped;)g++;return{first:a,last:g}}setupTabStops(o){for(o!=null?this.tabs[o]||(o=this.prevStop(o)):(this.tabs={},o=0);o<this._cols;o+=this._optionsService.rawOptions.tabStopWidth)this.tabs[o]=!0}prevStop(o){for(o==null&&(o=this.x);!this.tabs[--o]&&o>0;);return o>=this._cols?this._cols-1:o<0?0:o}nextStop(o){for(o==null&&(o=this.x);!this.tabs[++o]&&o<this._cols;);return o>=this._cols?this._cols-1:o<0?0:o}clearMarkers(o){this._isClearing=!0;for(let a=0;a<this.markers.length;a++)this.markers[a].line===o&&(this.markers[a].dispose(),this.markers.splice(a--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let o=0;o<this.markers.length;o++)this.markers[o].dispose(),this.markers.splice(o--,1);this._isClearing=!1}addMarker(o){const a=new u.Marker(o);return this.markers.push(a),a.register(this.lines.onTrim((g=>{a.line-=g,a.line<0&&a.dispose()}))),a.register(this.lines.onInsert((g=>{a.line>=g.index&&(a.line+=g.amount)}))),a.register(this.lines.onDelete((g=>{a.line>=g.index&&a.line<g.index+g.amount&&a.dispose(),a.line>g.index&&(a.line-=g.amount)}))),a.register(a.onDispose((()=>this._removeMarker(a)))),a}_removeMarker(o){this._isClearing||this.markers.splice(this.markers.indexOf(o),1)}}},8437:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BufferLine=c.DEFAULT_ATTR_DATA=void 0;const _=b(3734),S=b(511),d=b(643),m=b(482);c.DEFAULT_ATTR_DATA=Object.freeze(new _.AttributeData);let y=0;class E{constructor(u,h,o=!1){this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*u);const a=h||S.CellData.fromCharData([0,d.NULL_CELL_CHAR,d.NULL_CELL_WIDTH,d.NULL_CELL_CODE]);for(let g=0;g<u;++g)this.setCell(g,a);this.length=u}get(u){const h=this._data[3*u+0],o=2097151&h;return[this._data[3*u+1],2097152&h?this._combined[u]:o?(0,m.stringFromCodePoint)(o):"",h>>22,2097152&h?this._combined[u].charCodeAt(this._combined[u].length-1):o]}set(u,h){this._data[3*u+1]=h[d.CHAR_DATA_ATTR_INDEX],h[d.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[u]=h[1],this._data[3*u+0]=2097152|u|h[d.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*u+0]=h[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|h[d.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(u){return this._data[3*u+0]>>22}hasWidth(u){return 12582912&this._data[3*u+0]}getFg(u){return this._data[3*u+1]}getBg(u){return this._data[3*u+2]}hasContent(u){return 4194303&this._data[3*u+0]}getCodePoint(u){const h=this._data[3*u+0];return 2097152&h?this._combined[u].charCodeAt(this._combined[u].length-1):2097151&h}isCombined(u){return 2097152&this._data[3*u+0]}getString(u){const h=this._data[3*u+0];return 2097152&h?this._combined[u]:2097151&h?(0,m.stringFromCodePoint)(2097151&h):""}isProtected(u){return 536870912&this._data[3*u+2]}loadCell(u,h){return y=3*u,h.content=this._data[y+0],h.fg=this._data[y+1],h.bg=this._data[y+2],2097152&h.content&&(h.combinedData=this._combined[u]),268435456&h.bg&&(h.extended=this._extendedAttrs[u]),h}setCell(u,h){2097152&h.content&&(this._combined[u]=h.combinedData),268435456&h.bg&&(this._extendedAttrs[u]=h.extended),this._data[3*u+0]=h.content,this._data[3*u+1]=h.fg,this._data[3*u+2]=h.bg}setCellFromCodepoint(u,h,o,a){268435456&a.bg&&(this._extendedAttrs[u]=a.extended),this._data[3*u+0]=h|o<<22,this._data[3*u+1]=a.fg,this._data[3*u+2]=a.bg}addCodepointToCell(u,h,o){let a=this._data[3*u+0];2097152&a?this._combined[u]+=(0,m.stringFromCodePoint)(h):2097151&a?(this._combined[u]=(0,m.stringFromCodePoint)(2097151&a)+(0,m.stringFromCodePoint)(h),a&=-2097152,a|=2097152):a=h|4194304,o&&(a&=-12582913,a|=o<<22),this._data[3*u+0]=a}insertCells(u,h,o){if((u%=this.length)&&this.getWidth(u-1)===2&&this.setCellFromCodepoint(u-1,0,1,o),h<this.length-u){const a=new S.CellData;for(let g=this.length-u-h-1;g>=0;--g)this.setCell(u+h+g,this.loadCell(u+g,a));for(let g=0;g<h;++g)this.setCell(u+g,o)}else for(let a=u;a<this.length;++a)this.setCell(a,o);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,o)}deleteCells(u,h,o){if(u%=this.length,h<this.length-u){const a=new S.CellData;for(let g=0;g<this.length-u-h;++g)this.setCell(u+g,this.loadCell(u+h+g,a));for(let g=this.length-h;g<this.length;++g)this.setCell(g,o)}else for(let a=u;a<this.length;++a)this.setCell(a,o);u&&this.getWidth(u-1)===2&&this.setCellFromCodepoint(u-1,0,1,o),this.getWidth(u)!==0||this.hasContent(u)||this.setCellFromCodepoint(u,0,1,o)}replaceCells(u,h,o,a=!1){if(a)for(u&&this.getWidth(u-1)===2&&!this.isProtected(u-1)&&this.setCellFromCodepoint(u-1,0,1,o),h<this.length&&this.getWidth(h-1)===2&&!this.isProtected(h)&&this.setCellFromCodepoint(h,0,1,o);u<h&&u<this.length;)this.isProtected(u)||this.setCell(u,o),u++;else for(u&&this.getWidth(u-1)===2&&this.setCellFromCodepoint(u-1,0,1,o),h<this.length&&this.getWidth(h-1)===2&&this.setCellFromCodepoint(h,0,1,o);u<h&&u<this.length;)this.setCell(u++,o)}resize(u,h){if(u===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const o=3*u;if(u>this.length){if(this._data.buffer.byteLength>=4*o)this._data=new Uint32Array(this._data.buffer,0,o);else{const a=new Uint32Array(o);a.set(this._data),this._data=a}for(let a=this.length;a<u;++a)this.setCell(a,h)}else{this._data=this._data.subarray(0,o);const a=Object.keys(this._combined);for(let N=0;N<a.length;N++){const C=parseInt(a[N],10);C>=u&&delete this._combined[C]}const g=Object.keys(this._extendedAttrs);for(let N=0;N<g.length;N++){const C=parseInt(g[N],10);C>=u&&delete this._extendedAttrs[C]}}return this.length=u,4*o*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const u=new Uint32Array(this._data.length);return u.set(this._data),this._data=u,1}return 0}fill(u,h=!1){if(h)for(let o=0;o<this.length;++o)this.isProtected(o)||this.setCell(o,u);else{this._combined={},this._extendedAttrs={};for(let o=0;o<this.length;++o)this.setCell(o,u)}}copyFrom(u){this.length!==u.length?this._data=new Uint32Array(u._data):this._data.set(u._data),this.length=u.length,this._combined={};for(const h in u._combined)this._combined[h]=u._combined[h];this._extendedAttrs={};for(const h in u._extendedAttrs)this._extendedAttrs[h]=u._extendedAttrs[h];this.isWrapped=u.isWrapped}clone(){const u=new E(0);u._data=new Uint32Array(this._data),u.length=this.length;for(const h in this._combined)u._combined[h]=this._combined[h];for(const h in this._extendedAttrs)u._extendedAttrs[h]=this._extendedAttrs[h];return u.isWrapped=this.isWrapped,u}getTrimmedLength(){for(let u=this.length-1;u>=0;--u)if(4194303&this._data[3*u+0])return u+(this._data[3*u+0]>>22);return 0}getNoBgTrimmedLength(){for(let u=this.length-1;u>=0;--u)if(4194303&this._data[3*u+0]||50331648&this._data[3*u+2])return u+(this._data[3*u+0]>>22);return 0}copyCellsFrom(u,h,o,a,g){const N=u._data;if(g)for(let D=a-1;D>=0;D--){for(let w=0;w<3;w++)this._data[3*(o+D)+w]=N[3*(h+D)+w];268435456&N[3*(h+D)+2]&&(this._extendedAttrs[o+D]=u._extendedAttrs[h+D])}else for(let D=0;D<a;D++){for(let w=0;w<3;w++)this._data[3*(o+D)+w]=N[3*(h+D)+w];268435456&N[3*(h+D)+2]&&(this._extendedAttrs[o+D]=u._extendedAttrs[h+D])}const C=Object.keys(u._combined);for(let D=0;D<C.length;D++){const w=parseInt(C[D],10);w>=h&&(this._combined[w-h+o]=u._combined[w])}}translateToString(u,h,o,a){h=h??0,o=o??this.length,u&&(o=Math.min(o,this.getTrimmedLength())),a&&(a.length=0);let g="";for(;h<o;){const N=this._data[3*h+0],C=2097151&N,D=2097152&N?this._combined[h]:C?(0,m.stringFromCodePoint)(C):d.WHITESPACE_CELL_CHAR;if(g+=D,a)for(let w=0;w<D.length;++w)a.push(h);h+=N>>22||1}return a&&a.push(h),g}}c.BufferLine=E},4841:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.getRangeLength=void 0,c.getRangeLength=function(b,_){if(b.start.y>b.end.y)throw new Error(`Buffer range end (${b.end.x}, ${b.end.y}) cannot be before start (${b.start.x}, ${b.start.y})`);return _*(b.end.y-b.start.y)+(b.end.x-b.start.x+1)}},4634:(W,c)=>{function b(_,S,d){if(S===_.length-1)return _[S].getTrimmedLength();const m=!_[S].hasContent(d-1)&&_[S].getWidth(d-1)===1,y=_[S+1].getWidth(0)===2;return m&&y?d-1:d}Object.defineProperty(c,"__esModule",{value:!0}),c.getWrappedLineTrimmedLength=c.reflowSmallerGetNewLineLengths=c.reflowLargerApplyNewLayout=c.reflowLargerCreateNewLayout=c.reflowLargerGetLinesToRemove=void 0,c.reflowLargerGetLinesToRemove=function(_,S,d,m,y){const E=[];for(let v=0;v<_.length-1;v++){let u=v,h=_.get(++u);if(!h.isWrapped)continue;const o=[_.get(v)];for(;u<_.length&&h.isWrapped;)o.push(h),h=_.get(++u);if(m>=v&&m<u){v+=o.length-1;continue}let a=0,g=b(o,a,S),N=1,C=0;for(;N<o.length;){const w=b(o,N,S),k=w-C,M=d-g,L=Math.min(k,M);o[a].copyCellsFrom(o[N],C,g,L,!1),g+=L,g===d&&(a++,g=0),C+=L,C===w&&(N++,C=0),g===0&&a!==0&&o[a-1].getWidth(d-1)===2&&(o[a].copyCellsFrom(o[a-1],d-1,g++,1,!1),o[a-1].setCell(d-1,y))}o[a].replaceCells(g,d,y);let D=0;for(let w=o.length-1;w>0&&(w>a||o[w].getTrimmedLength()===0);w--)D++;D>0&&(E.push(v+o.length-D),E.push(D)),v+=o.length-1}return E},c.reflowLargerCreateNewLayout=function(_,S){const d=[];let m=0,y=S[m],E=0;for(let v=0;v<_.length;v++)if(y===v){const u=S[++m];_.onDeleteEmitter.fire({index:v-E,amount:u}),v+=u-1,E+=u,y=S[++m]}else d.push(v);return{layout:d,countRemoved:E}},c.reflowLargerApplyNewLayout=function(_,S){const d=[];for(let m=0;m<S.length;m++)d.push(_.get(S[m]));for(let m=0;m<d.length;m++)_.set(m,d[m]);_.length=S.length},c.reflowSmallerGetNewLineLengths=function(_,S,d){const m=[],y=_.map(((h,o)=>b(_,o,S))).reduce(((h,o)=>h+o));let E=0,v=0,u=0;for(;u<y;){if(y-u<d){m.push(y-u);break}E+=d;const h=b(_,v,S);E>h&&(E-=h,v++);const o=_[v].getWidth(E-1)===2;o&&E--;const a=o?d-1:d;m.push(a),u+=a}return m},c.getWrappedLineTrimmedLength=b},5295:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BufferSet=void 0;const _=b(8460),S=b(844),d=b(9092);class m extends S.Disposable{constructor(E,v){super(),this._optionsService=E,this._bufferService=v,this._onBufferActivate=this.register(new _.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new d.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new d.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(E){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(E),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(E,v){this._normal.resize(E,v),this._alt.resize(E,v),this.setupTabStops(E)}setupTabStops(E){this._normal.setupTabStops(E),this._alt.setupTabStops(E)}}c.BufferSet=m},511:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CellData=void 0;const _=b(482),S=b(643),d=b(3734);class m extends d.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new d.ExtendedAttrs,this.combinedData=""}static fromCharData(E){const v=new m;return v.setFromCharData(E),v}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,_.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(E){this.fg=E[S.CHAR_DATA_ATTR_INDEX],this.bg=0;let v=!1;if(E[S.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(E[S.CHAR_DATA_CHAR_INDEX].length===2){const u=E[S.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=u&&u<=56319){const h=E[S.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=h&&h<=57343?this.content=1024*(u-55296)+h-56320+65536|E[S.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=E[S.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|E[S.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=E[S.CHAR_DATA_CHAR_INDEX],this.content=2097152|E[S.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}c.CellData=m},643:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.WHITESPACE_CELL_CODE=c.WHITESPACE_CELL_WIDTH=c.WHITESPACE_CELL_CHAR=c.NULL_CELL_CODE=c.NULL_CELL_WIDTH=c.NULL_CELL_CHAR=c.CHAR_DATA_CODE_INDEX=c.CHAR_DATA_WIDTH_INDEX=c.CHAR_DATA_CHAR_INDEX=c.CHAR_DATA_ATTR_INDEX=c.DEFAULT_EXT=c.DEFAULT_ATTR=c.DEFAULT_COLOR=void 0,c.DEFAULT_COLOR=0,c.DEFAULT_ATTR=256|c.DEFAULT_COLOR<<9,c.DEFAULT_EXT=0,c.CHAR_DATA_ATTR_INDEX=0,c.CHAR_DATA_CHAR_INDEX=1,c.CHAR_DATA_WIDTH_INDEX=2,c.CHAR_DATA_CODE_INDEX=3,c.NULL_CELL_CHAR="",c.NULL_CELL_WIDTH=1,c.NULL_CELL_CODE=0,c.WHITESPACE_CELL_CHAR=" ",c.WHITESPACE_CELL_WIDTH=1,c.WHITESPACE_CELL_CODE=32},4863:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.Marker=void 0;const _=b(8460),S=b(844);class d{get id(){return this._id}constructor(y){this.line=y,this.isDisposed=!1,this._disposables=[],this._id=d._nextId++,this._onDispose=this.register(new _.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,S.disposeArray)(this._disposables),this._disposables.length=0)}register(y){return this._disposables.push(y),y}}c.Marker=d,d._nextId=1},7116:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.DEFAULT_CHARSET=c.CHARSETS=void 0,c.CHARSETS={},c.DEFAULT_CHARSET=c.CHARSETS.B,c.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},c.CHARSETS.A={"#":"£"},c.CHARSETS.B=void 0,c.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},c.CHARSETS.C=c.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},c.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},c.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},c.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},c.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},c.CHARSETS.E=c.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},c.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},c.CHARSETS.H=c.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},c.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(W,c)=>{var b,_,S;Object.defineProperty(c,"__esModule",{value:!0}),c.C1_ESCAPED=c.C1=c.C0=void 0,(function(d){d.NUL="\0",d.SOH="",d.STX="",d.ETX="",d.EOT="",d.ENQ="",d.ACK="",d.BEL="\x07",d.BS="\b",d.HT=" ",d.LF=`
|
|
282
|
-
`,d.VT="\v",d.FF="\f",d.CR="\r",d.SO="",d.SI="",d.DLE="",d.DC1="",d.DC2="",d.DC3="",d.DC4="",d.NAK="",d.SYN="",d.ETB="",d.CAN="",d.EM="",d.SUB="",d.ESC="\x1B",d.FS="",d.GS="",d.RS="",d.US="",d.SP=" ",d.DEL=""})(b||(c.C0=b={})),(function(d){d.PAD="",d.HOP="",d.BPH="",d.NBH="",d.IND="",d.NEL="
",d.SSA="",d.ESA="",d.HTS="",d.HTJ="",d.VTS="",d.PLD="",d.PLU="",d.RI="",d.SS2="",d.SS3="",d.DCS="",d.PU1="",d.PU2="",d.STS="",d.CCH="",d.MW="",d.SPA="",d.EPA="",d.SOS="",d.SGCI="",d.SCI="",d.CSI="",d.ST="",d.OSC="",d.PM="",d.APC=""})(_||(c.C1=_={})),(function(d){d.ST=`${b.ESC}\\`})(S||(c.C1_ESCAPED=S={}))},7399:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.evaluateKeyboardEvent=void 0;const _=b(2584),S={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};c.evaluateKeyboardEvent=function(d,m,y,E){const v={type:0,cancel:!1,key:void 0},u=(d.shiftKey?1:0)|(d.altKey?2:0)|(d.ctrlKey?4:0)|(d.metaKey?8:0);switch(d.keyCode){case 0:d.key==="UIKeyInputUpArrow"?v.key=m?_.C0.ESC+"OA":_.C0.ESC+"[A":d.key==="UIKeyInputLeftArrow"?v.key=m?_.C0.ESC+"OD":_.C0.ESC+"[D":d.key==="UIKeyInputRightArrow"?v.key=m?_.C0.ESC+"OC":_.C0.ESC+"[C":d.key==="UIKeyInputDownArrow"&&(v.key=m?_.C0.ESC+"OB":_.C0.ESC+"[B");break;case 8:v.key=d.ctrlKey?"\b":_.C0.DEL,d.altKey&&(v.key=_.C0.ESC+v.key);break;case 9:if(d.shiftKey){v.key=_.C0.ESC+"[Z";break}v.key=_.C0.HT,v.cancel=!0;break;case 13:v.key=d.altKey?_.C0.ESC+_.C0.CR:_.C0.CR,v.cancel=!0;break;case 27:v.key=_.C0.ESC,d.altKey&&(v.key=_.C0.ESC+_.C0.ESC),v.cancel=!0;break;case 37:if(d.metaKey)break;u?(v.key=_.C0.ESC+"[1;"+(u+1)+"D",v.key===_.C0.ESC+"[1;3D"&&(v.key=_.C0.ESC+(y?"b":"[1;5D"))):v.key=m?_.C0.ESC+"OD":_.C0.ESC+"[D";break;case 39:if(d.metaKey)break;u?(v.key=_.C0.ESC+"[1;"+(u+1)+"C",v.key===_.C0.ESC+"[1;3C"&&(v.key=_.C0.ESC+(y?"f":"[1;5C"))):v.key=m?_.C0.ESC+"OC":_.C0.ESC+"[C";break;case 38:if(d.metaKey)break;u?(v.key=_.C0.ESC+"[1;"+(u+1)+"A",y||v.key!==_.C0.ESC+"[1;3A"||(v.key=_.C0.ESC+"[1;5A")):v.key=m?_.C0.ESC+"OA":_.C0.ESC+"[A";break;case 40:if(d.metaKey)break;u?(v.key=_.C0.ESC+"[1;"+(u+1)+"B",y||v.key!==_.C0.ESC+"[1;3B"||(v.key=_.C0.ESC+"[1;5B")):v.key=m?_.C0.ESC+"OB":_.C0.ESC+"[B";break;case 45:d.shiftKey||d.ctrlKey||(v.key=_.C0.ESC+"[2~");break;case 46:v.key=u?_.C0.ESC+"[3;"+(u+1)+"~":_.C0.ESC+"[3~";break;case 36:v.key=u?_.C0.ESC+"[1;"+(u+1)+"H":m?_.C0.ESC+"OH":_.C0.ESC+"[H";break;case 35:v.key=u?_.C0.ESC+"[1;"+(u+1)+"F":m?_.C0.ESC+"OF":_.C0.ESC+"[F";break;case 33:d.shiftKey?v.type=2:d.ctrlKey?v.key=_.C0.ESC+"[5;"+(u+1)+"~":v.key=_.C0.ESC+"[5~";break;case 34:d.shiftKey?v.type=3:d.ctrlKey?v.key=_.C0.ESC+"[6;"+(u+1)+"~":v.key=_.C0.ESC+"[6~";break;case 112:v.key=u?_.C0.ESC+"[1;"+(u+1)+"P":_.C0.ESC+"OP";break;case 113:v.key=u?_.C0.ESC+"[1;"+(u+1)+"Q":_.C0.ESC+"OQ";break;case 114:v.key=u?_.C0.ESC+"[1;"+(u+1)+"R":_.C0.ESC+"OR";break;case 115:v.key=u?_.C0.ESC+"[1;"+(u+1)+"S":_.C0.ESC+"OS";break;case 116:v.key=u?_.C0.ESC+"[15;"+(u+1)+"~":_.C0.ESC+"[15~";break;case 117:v.key=u?_.C0.ESC+"[17;"+(u+1)+"~":_.C0.ESC+"[17~";break;case 118:v.key=u?_.C0.ESC+"[18;"+(u+1)+"~":_.C0.ESC+"[18~";break;case 119:v.key=u?_.C0.ESC+"[19;"+(u+1)+"~":_.C0.ESC+"[19~";break;case 120:v.key=u?_.C0.ESC+"[20;"+(u+1)+"~":_.C0.ESC+"[20~";break;case 121:v.key=u?_.C0.ESC+"[21;"+(u+1)+"~":_.C0.ESC+"[21~";break;case 122:v.key=u?_.C0.ESC+"[23;"+(u+1)+"~":_.C0.ESC+"[23~";break;case 123:v.key=u?_.C0.ESC+"[24;"+(u+1)+"~":_.C0.ESC+"[24~";break;default:if(!d.ctrlKey||d.shiftKey||d.altKey||d.metaKey)if(y&&!E||!d.altKey||d.metaKey)!y||d.altKey||d.ctrlKey||d.shiftKey||!d.metaKey?d.key&&!d.ctrlKey&&!d.altKey&&!d.metaKey&&d.keyCode>=48&&d.key.length===1?v.key=d.key:d.key&&d.ctrlKey&&(d.key==="_"&&(v.key=_.C0.US),d.key==="@"&&(v.key=_.C0.NUL)):d.keyCode===65&&(v.type=1);else{const h=S[d.keyCode],o=h==null?void 0:h[d.shiftKey?1:0];if(o)v.key=_.C0.ESC+o;else if(d.keyCode>=65&&d.keyCode<=90){const a=d.ctrlKey?d.keyCode-64:d.keyCode+32;let g=String.fromCharCode(a);d.shiftKey&&(g=g.toUpperCase()),v.key=_.C0.ESC+g}else if(d.keyCode===32)v.key=_.C0.ESC+(d.ctrlKey?_.C0.NUL:" ");else if(d.key==="Dead"&&d.code.startsWith("Key")){let a=d.code.slice(3,4);d.shiftKey||(a=a.toLowerCase()),v.key=_.C0.ESC+a,v.cancel=!0}}else d.keyCode>=65&&d.keyCode<=90?v.key=String.fromCharCode(d.keyCode-64):d.keyCode===32?v.key=_.C0.NUL:d.keyCode>=51&&d.keyCode<=55?v.key=String.fromCharCode(d.keyCode-51+27):d.keyCode===56?v.key=_.C0.DEL:d.keyCode===219?v.key=_.C0.ESC:d.keyCode===220?v.key=_.C0.FS:d.keyCode===221&&(v.key=_.C0.GS)}return v}},482:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.Utf8ToUtf32=c.StringToUtf32=c.utf32ToString=c.stringFromCodePoint=void 0,c.stringFromCodePoint=function(b){return b>65535?(b-=65536,String.fromCharCode(55296+(b>>10))+String.fromCharCode(b%1024+56320)):String.fromCharCode(b)},c.utf32ToString=function(b,_=0,S=b.length){let d="";for(let m=_;m<S;++m){let y=b[m];y>65535?(y-=65536,d+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):d+=String.fromCharCode(y)}return d},c.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(b,_){const S=b.length;if(!S)return 0;let d=0,m=0;if(this._interim){const y=b.charCodeAt(m++);56320<=y&&y<=57343?_[d++]=1024*(this._interim-55296)+y-56320+65536:(_[d++]=this._interim,_[d++]=y),this._interim=0}for(let y=m;y<S;++y){const E=b.charCodeAt(y);if(55296<=E&&E<=56319){if(++y>=S)return this._interim=E,d;const v=b.charCodeAt(y);56320<=v&&v<=57343?_[d++]=1024*(E-55296)+v-56320+65536:(_[d++]=E,_[d++]=v)}else E!==65279&&(_[d++]=E)}return d}},c.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(b,_){const S=b.length;if(!S)return 0;let d,m,y,E,v=0,u=0,h=0;if(this.interim[0]){let g=!1,N=this.interim[0];N&=(224&N)==192?31:(240&N)==224?15:7;let C,D=0;for(;(C=63&this.interim[++D])&&D<4;)N<<=6,N|=C;const w=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,k=w-D;for(;h<k;){if(h>=S)return 0;if(C=b[h++],(192&C)!=128){h--,g=!0;break}this.interim[D++]=C,N<<=6,N|=63&C}g||(w===2?N<128?h--:_[v++]=N:w===3?N<2048||N>=55296&&N<=57343||N===65279||(_[v++]=N):N<65536||N>1114111||(_[v++]=N)),this.interim.fill(0)}const o=S-4;let a=h;for(;a<S;){for(;!(!(a<o)||128&(d=b[a])||128&(m=b[a+1])||128&(y=b[a+2])||128&(E=b[a+3]));)_[v++]=d,_[v++]=m,_[v++]=y,_[v++]=E,a+=4;if(d=b[a++],d<128)_[v++]=d;else if((224&d)==192){if(a>=S)return this.interim[0]=d,v;if(m=b[a++],(192&m)!=128){a--;continue}if(u=(31&d)<<6|63&m,u<128){a--;continue}_[v++]=u}else if((240&d)==224){if(a>=S)return this.interim[0]=d,v;if(m=b[a++],(192&m)!=128){a--;continue}if(a>=S)return this.interim[0]=d,this.interim[1]=m,v;if(y=b[a++],(192&y)!=128){a--;continue}if(u=(15&d)<<12|(63&m)<<6|63&y,u<2048||u>=55296&&u<=57343||u===65279)continue;_[v++]=u}else if((248&d)==240){if(a>=S)return this.interim[0]=d,v;if(m=b[a++],(192&m)!=128){a--;continue}if(a>=S)return this.interim[0]=d,this.interim[1]=m,v;if(y=b[a++],(192&y)!=128){a--;continue}if(a>=S)return this.interim[0]=d,this.interim[1]=m,this.interim[2]=y,v;if(E=b[a++],(192&E)!=128){a--;continue}if(u=(7&d)<<18|(63&m)<<12|(63&y)<<6|63&E,u<65536||u>1114111)continue;_[v++]=u}}return v}}},225:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.UnicodeV6=void 0;const _=b(1480),S=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],d=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let m;c.UnicodeV6=class{constructor(){if(this.version="6",!m){m=new Uint8Array(65536),m.fill(1),m[0]=0,m.fill(0,1,32),m.fill(0,127,160),m.fill(2,4352,4448),m[9001]=2,m[9002]=2,m.fill(2,11904,42192),m[12351]=1,m.fill(2,44032,55204),m.fill(2,63744,64256),m.fill(2,65040,65050),m.fill(2,65072,65136),m.fill(2,65280,65377),m.fill(2,65504,65511);for(let y=0;y<S.length;++y)m.fill(0,S[y][0],S[y][1]+1)}}wcwidth(y){return y<32?0:y<127?1:y<65536?m[y]:(function(E,v){let u,h=0,o=v.length-1;if(E<v[0][0]||E>v[o][1])return!1;for(;o>=h;)if(u=h+o>>1,E>v[u][1])h=u+1;else{if(!(E<v[u][0]))return!0;o=u-1}return!1})(y,d)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1}charProperties(y,E){let v=this.wcwidth(y),u=v===0&&E!==0;if(u){const h=_.UnicodeService.extractWidth(E);h===0?u=!1:h>v&&(v=h)}return _.UnicodeService.createPropertyValue(0,v,u)}}},5981:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.WriteBuffer=void 0;const _=b(8460),S=b(844);class d extends S.Disposable{constructor(y){super(),this._action=y,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new _.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(y,E){if(E!==void 0&&this._syncCalls>E)return void(this._syncCalls=0);if(this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let v;for(this._isSyncWriting=!0;v=this._writeBuffer.shift();){this._action(v);const u=this._callbacks.shift();u&&u()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(y,E){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(E),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(E)}_innerWrite(y=0,E=!0){const v=y||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const u=this._writeBuffer[this._bufferOffset],h=this._action(u,E);if(h){const a=g=>Date.now()-v>=12?setTimeout((()=>this._innerWrite(0,g))):this._innerWrite(v,g);return void h.catch((g=>(queueMicrotask((()=>{throw g})),Promise.resolve(!1)))).then(a)}const o=this._callbacks[this._bufferOffset];if(o&&o(),this._bufferOffset++,this._pendingData-=u.length,Date.now()-v>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}c.WriteBuffer=d},5941:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.toRgbString=c.parseColor=void 0;const b=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,_=/^[\da-f]+$/;function S(d,m){const y=d.toString(16),E=y.length<2?"0"+y:y;switch(m){case 4:return y[0];case 8:return E;case 12:return(E+E).slice(0,3);default:return E+E}}c.parseColor=function(d){if(!d)return;let m=d.toLowerCase();if(m.indexOf("rgb:")===0){m=m.slice(4);const y=b.exec(m);if(y){const E=y[1]?15:y[4]?255:y[7]?4095:65535;return[Math.round(parseInt(y[1]||y[4]||y[7]||y[10],16)/E*255),Math.round(parseInt(y[2]||y[5]||y[8]||y[11],16)/E*255),Math.round(parseInt(y[3]||y[6]||y[9]||y[12],16)/E*255)]}}else if(m.indexOf("#")===0&&(m=m.slice(1),_.exec(m)&&[3,6,9,12].includes(m.length))){const y=m.length/3,E=[0,0,0];for(let v=0;v<3;++v){const u=parseInt(m.slice(y*v,y*v+y),16);E[v]=y===1?u<<4:y===2?u:y===3?u>>4:u>>8}return E}},c.toRgbString=function(d,m=16){const[y,E,v]=d;return`rgb:${S(y,m)}/${S(E,m)}/${S(v,m)}`}},5770:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.PAYLOAD_LIMIT=void 0,c.PAYLOAD_LIMIT=1e7},6351:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.DcsHandler=c.DcsParser=void 0;const _=b(482),S=b(8742),d=b(5770),m=[];c.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=m,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=m}registerHandler(E,v){this._handlers[E]===void 0&&(this._handlers[E]=[]);const u=this._handlers[E];return u.push(v),{dispose:()=>{const h=u.indexOf(v);h!==-1&&u.splice(h,1)}}}clearHandler(E){this._handlers[E]&&delete this._handlers[E]}setHandlerFallback(E){this._handlerFb=E}reset(){if(this._active.length)for(let E=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;E>=0;--E)this._active[E].unhook(!1);this._stack.paused=!1,this._active=m,this._ident=0}hook(E,v){if(this.reset(),this._ident=E,this._active=this._handlers[E]||m,this._active.length)for(let u=this._active.length-1;u>=0;u--)this._active[u].hook(v);else this._handlerFb(this._ident,"HOOK",v)}put(E,v,u){if(this._active.length)for(let h=this._active.length-1;h>=0;h--)this._active[h].put(E,v,u);else this._handlerFb(this._ident,"PUT",(0,_.utf32ToString)(E,v,u))}unhook(E,v=!0){if(this._active.length){let u=!1,h=this._active.length-1,o=!1;if(this._stack.paused&&(h=this._stack.loopPosition-1,u=v,o=this._stack.fallThrough,this._stack.paused=!1),!o&&u===!1){for(;h>=0&&(u=this._active[h].unhook(E),u!==!0);h--)if(u instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=h,this._stack.fallThrough=!1,u;h--}for(;h>=0;h--)if(u=this._active[h].unhook(!1),u instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=h,this._stack.fallThrough=!0,u}else this._handlerFb(this._ident,"UNHOOK",E);this._active=m,this._ident=0}};const y=new S.Params;y.addParam(0),c.DcsHandler=class{constructor(E){this._handler=E,this._data="",this._params=y,this._hitLimit=!1}hook(E){this._params=E.length>1||E.params[0]?E.clone():y,this._data="",this._hitLimit=!1}put(E,v,u){this._hitLimit||(this._data+=(0,_.utf32ToString)(E,v,u),this._data.length>d.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(E){let v=!1;if(this._hitLimit)v=!1;else if(E&&(v=this._handler(this._data,this._params),v instanceof Promise))return v.then((u=>(this._params=y,this._data="",this._hitLimit=!1,u)));return this._params=y,this._data="",this._hitLimit=!1,v}}},2015:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.EscapeSequenceParser=c.VT500_TRANSITION_TABLE=c.TransitionTable=void 0;const _=b(844),S=b(8742),d=b(6242),m=b(6351);class y{constructor(h){this.table=new Uint8Array(h)}setDefault(h,o){this.table.fill(h<<4|o)}add(h,o,a,g){this.table[o<<8|h]=a<<4|g}addMany(h,o,a,g){for(let N=0;N<h.length;N++)this.table[o<<8|h[N]]=a<<4|g}}c.TransitionTable=y;const E=160;c.VT500_TRANSITION_TABLE=(function(){const u=new y(4095),h=Array.apply(null,Array(256)).map(((D,w)=>w)),o=(D,w)=>h.slice(D,w),a=o(32,127),g=o(0,24);g.push(25),g.push.apply(g,o(28,32));const N=o(0,14);let C;for(C in u.setDefault(1,0),u.addMany(a,0,2,0),N)u.addMany([24,26,153,154],C,3,0),u.addMany(o(128,144),C,3,0),u.addMany(o(144,152),C,3,0),u.add(156,C,0,0),u.add(27,C,11,1),u.add(157,C,4,8),u.addMany([152,158,159],C,0,7),u.add(155,C,11,3),u.add(144,C,11,9);return u.addMany(g,0,3,0),u.addMany(g,1,3,1),u.add(127,1,0,1),u.addMany(g,8,0,8),u.addMany(g,3,3,3),u.add(127,3,0,3),u.addMany(g,4,3,4),u.add(127,4,0,4),u.addMany(g,6,3,6),u.addMany(g,5,3,5),u.add(127,5,0,5),u.addMany(g,2,3,2),u.add(127,2,0,2),u.add(93,1,4,8),u.addMany(a,8,5,8),u.add(127,8,5,8),u.addMany([156,27,24,26,7],8,6,0),u.addMany(o(28,32),8,0,8),u.addMany([88,94,95],1,0,7),u.addMany(a,7,0,7),u.addMany(g,7,0,7),u.add(156,7,0,0),u.add(127,7,0,7),u.add(91,1,11,3),u.addMany(o(64,127),3,7,0),u.addMany(o(48,60),3,8,4),u.addMany([60,61,62,63],3,9,4),u.addMany(o(48,60),4,8,4),u.addMany(o(64,127),4,7,0),u.addMany([60,61,62,63],4,0,6),u.addMany(o(32,64),6,0,6),u.add(127,6,0,6),u.addMany(o(64,127),6,0,0),u.addMany(o(32,48),3,9,5),u.addMany(o(32,48),5,9,5),u.addMany(o(48,64),5,0,6),u.addMany(o(64,127),5,7,0),u.addMany(o(32,48),4,9,5),u.addMany(o(32,48),1,9,2),u.addMany(o(32,48),2,9,2),u.addMany(o(48,127),2,10,0),u.addMany(o(48,80),1,10,0),u.addMany(o(81,88),1,10,0),u.addMany([89,90,92],1,10,0),u.addMany(o(96,127),1,10,0),u.add(80,1,11,9),u.addMany(g,9,0,9),u.add(127,9,0,9),u.addMany(o(28,32),9,0,9),u.addMany(o(32,48),9,9,12),u.addMany(o(48,60),9,8,10),u.addMany([60,61,62,63],9,9,10),u.addMany(g,11,0,11),u.addMany(o(32,128),11,0,11),u.addMany(o(28,32),11,0,11),u.addMany(g,10,0,10),u.add(127,10,0,10),u.addMany(o(28,32),10,0,10),u.addMany(o(48,60),10,8,10),u.addMany([60,61,62,63],10,0,11),u.addMany(o(32,48),10,9,12),u.addMany(g,12,0,12),u.add(127,12,0,12),u.addMany(o(28,32),12,0,12),u.addMany(o(32,48),12,9,12),u.addMany(o(48,64),12,0,11),u.addMany(o(64,127),12,12,13),u.addMany(o(64,127),10,12,13),u.addMany(o(64,127),9,12,13),u.addMany(g,13,13,13),u.addMany(a,13,13,13),u.add(127,13,0,13),u.addMany([27,156,24,26],13,14,0),u.add(E,0,2,0),u.add(E,8,5,8),u.add(E,6,0,6),u.add(E,11,0,11),u.add(E,13,13,13),u})();class v extends _.Disposable{constructor(h=c.VT500_TRANSITION_TABLE){super(),this._transitions=h,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new S.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(o,a,g)=>{},this._executeHandlerFb=o=>{},this._csiHandlerFb=(o,a)=>{},this._escHandlerFb=o=>{},this._errorHandlerFb=o=>o,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,_.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new d.OscParser),this._dcsParser=this.register(new m.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(h,o=[64,126]){let a=0;if(h.prefix){if(h.prefix.length>1)throw new Error("only one byte as prefix supported");if(a=h.prefix.charCodeAt(0),a&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(h.intermediates){if(h.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let N=0;N<h.intermediates.length;++N){const C=h.intermediates.charCodeAt(N);if(32>C||C>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=C}}if(h.final.length!==1)throw new Error("final must be a single byte");const g=h.final.charCodeAt(0);if(o[0]>g||g>o[1])throw new Error(`final must be in range ${o[0]} .. ${o[1]}`);return a<<=8,a|=g,a}identToString(h){const o=[];for(;h;)o.push(String.fromCharCode(255&h)),h>>=8;return o.reverse().join("")}setPrintHandler(h){this._printHandler=h}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(h,o){const a=this._identifier(h,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);const g=this._escHandlers[a];return g.push(o),{dispose:()=>{const N=g.indexOf(o);N!==-1&&g.splice(N,1)}}}clearEscHandler(h){this._escHandlers[this._identifier(h,[48,126])]&&delete this._escHandlers[this._identifier(h,[48,126])]}setEscHandlerFallback(h){this._escHandlerFb=h}setExecuteHandler(h,o){this._executeHandlers[h.charCodeAt(0)]=o}clearExecuteHandler(h){this._executeHandlers[h.charCodeAt(0)]&&delete this._executeHandlers[h.charCodeAt(0)]}setExecuteHandlerFallback(h){this._executeHandlerFb=h}registerCsiHandler(h,o){const a=this._identifier(h);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);const g=this._csiHandlers[a];return g.push(o),{dispose:()=>{const N=g.indexOf(o);N!==-1&&g.splice(N,1)}}}clearCsiHandler(h){this._csiHandlers[this._identifier(h)]&&delete this._csiHandlers[this._identifier(h)]}setCsiHandlerFallback(h){this._csiHandlerFb=h}registerDcsHandler(h,o){return this._dcsParser.registerHandler(this._identifier(h),o)}clearDcsHandler(h){this._dcsParser.clearHandler(this._identifier(h))}setDcsHandlerFallback(h){this._dcsParser.setHandlerFallback(h)}registerOscHandler(h,o){return this._oscParser.registerHandler(h,o)}clearOscHandler(h){this._oscParser.clearHandler(h)}setOscHandlerFallback(h){this._oscParser.setHandlerFallback(h)}setErrorHandler(h){this._errorHandler=h}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(h,o,a,g,N){this._parseStack.state=h,this._parseStack.handlers=o,this._parseStack.handlerPos=a,this._parseStack.transition=g,this._parseStack.chunkPos=N}parse(h,o,a){let g,N=0,C=0,D=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,D=this._parseStack.chunkPos+1;else{if(a===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const w=this._parseStack.handlers;let k=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(a===!1&&k>-1){for(;k>=0&&(g=w[k](this._params),g!==!0);k--)if(g instanceof Promise)return this._parseStack.handlerPos=k,g}this._parseStack.handlers=[];break;case 4:if(a===!1&&k>-1){for(;k>=0&&(g=w[k](),g!==!0);k--)if(g instanceof Promise)return this._parseStack.handlerPos=k,g}this._parseStack.handlers=[];break;case 6:if(N=h[this._parseStack.chunkPos],g=this._dcsParser.unhook(N!==24&&N!==26,a),g)return g;N===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(N=h[this._parseStack.chunkPos],g=this._oscParser.end(N!==24&&N!==26,a),g)return g;N===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,D=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let w=D;w<o;++w){switch(N=h[w],C=this._transitions.table[this.currentState<<8|(N<160?N:E)],C>>4){case 2:for(let B=w+1;;++B){if(B>=o||(N=h[B])<32||N>126&&N<E){this._printHandler(h,w,B),w=B-1;break}if(++B>=o||(N=h[B])<32||N>126&&N<E){this._printHandler(h,w,B),w=B-1;break}if(++B>=o||(N=h[B])<32||N>126&&N<E){this._printHandler(h,w,B),w=B-1;break}if(++B>=o||(N=h[B])<32||N>126&&N<E){this._printHandler(h,w,B),w=B-1;break}}break;case 3:this._executeHandlers[N]?this._executeHandlers[N]():this._executeHandlerFb(N),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:w,code:N,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const k=this._csiHandlers[this._collect<<8|N];let M=k?k.length-1:-1;for(;M>=0&&(g=k[M](this._params),g!==!0);M--)if(g instanceof Promise)return this._preserveStack(3,k,M,C,w),g;M<0&&this._csiHandlerFb(this._collect<<8|N,this._params),this.precedingJoinState=0;break;case 8:do switch(N){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(N-48)}while(++w<o&&(N=h[w])>47&&N<60);w--;break;case 9:this._collect<<=8,this._collect|=N;break;case 10:const L=this._escHandlers[this._collect<<8|N];let H=L?L.length-1:-1;for(;H>=0&&(g=L[H](),g!==!0);H--)if(g instanceof Promise)return this._preserveStack(4,L,H,C,w),g;H<0&&this._escHandlerFb(this._collect<<8|N),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|N,this._params);break;case 13:for(let B=w+1;;++B)if(B>=o||(N=h[B])===24||N===26||N===27||N>127&&N<E){this._dcsParser.put(h,w,B),w=B-1;break}break;case 14:if(g=this._dcsParser.unhook(N!==24&&N!==26),g)return this._preserveStack(6,[],0,C,w),g;N===27&&(C|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let B=w+1;;B++)if(B>=o||(N=h[B])<32||N>127&&N<E){this._oscParser.put(h,w,B),w=B-1;break}break;case 6:if(g=this._oscParser.end(N!==24&&N!==26),g)return this._preserveStack(5,[],0,C,w),g;N===27&&(C|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&C}}}c.EscapeSequenceParser=v},6242:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.OscHandler=c.OscParser=void 0;const _=b(5770),S=b(482),d=[];c.OscParser=class{constructor(){this._state=0,this._active=d,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(m,y){this._handlers[m]===void 0&&(this._handlers[m]=[]);const E=this._handlers[m];return E.push(y),{dispose:()=>{const v=E.indexOf(y);v!==-1&&E.splice(v,1)}}}clearHandler(m){this._handlers[m]&&delete this._handlers[m]}setHandlerFallback(m){this._handlerFb=m}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=d}reset(){if(this._state===2)for(let m=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;m>=0;--m)this._active[m].end(!1);this._stack.paused=!1,this._active=d,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||d,this._active.length)for(let m=this._active.length-1;m>=0;m--)this._active[m].start();else this._handlerFb(this._id,"START")}_put(m,y,E){if(this._active.length)for(let v=this._active.length-1;v>=0;v--)this._active[v].put(m,y,E);else this._handlerFb(this._id,"PUT",(0,S.utf32ToString)(m,y,E))}start(){this.reset(),this._state=1}put(m,y,E){if(this._state!==3){if(this._state===1)for(;y<E;){const v=m[y++];if(v===59){this._state=2,this._start();break}if(v<48||57<v)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+v-48}this._state===2&&E-y>0&&this._put(m,y,E)}}end(m,y=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let E=!1,v=this._active.length-1,u=!1;if(this._stack.paused&&(v=this._stack.loopPosition-1,E=y,u=this._stack.fallThrough,this._stack.paused=!1),!u&&E===!1){for(;v>=0&&(E=this._active[v].end(m),E!==!0);v--)if(E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!1,E;v--}for(;v>=0;v--)if(E=this._active[v].end(!1),E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!0,E}else this._handlerFb(this._id,"END",m);this._active=d,this._id=-1,this._state=0}}},c.OscHandler=class{constructor(m){this._handler=m,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(m,y,E){this._hitLimit||(this._data+=(0,S.utf32ToString)(m,y,E),this._data.length>_.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(m){let y=!1;if(this._hitLimit)y=!1;else if(m&&(y=this._handler(this._data),y instanceof Promise))return y.then((E=>(this._data="",this._hitLimit=!1,E)));return this._data="",this._hitLimit=!1,y}}},8742:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.Params=void 0;const b=2147483647;class _{static fromArray(d){const m=new _;if(!d.length)return m;for(let y=Array.isArray(d[0])?1:0;y<d.length;++y){const E=d[y];if(Array.isArray(E))for(let v=0;v<E.length;++v)m.addSubParam(E[v]);else m.addParam(E)}return m}constructor(d=32,m=32){if(this.maxLength=d,this.maxSubParamsLength=m,m>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(d),this.length=0,this._subParams=new Int32Array(m),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(d),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const d=new _(this.maxLength,this.maxSubParamsLength);return d.params.set(this.params),d.length=this.length,d._subParams.set(this._subParams),d._subParamsLength=this._subParamsLength,d._subParamsIdx.set(this._subParamsIdx),d._rejectDigits=this._rejectDigits,d._rejectSubDigits=this._rejectSubDigits,d._digitIsSub=this._digitIsSub,d}toArray(){const d=[];for(let m=0;m<this.length;++m){d.push(this.params[m]);const y=this._subParamsIdx[m]>>8,E=255&this._subParamsIdx[m];E-y>0&&d.push(Array.prototype.slice.call(this._subParams,y,E))}return d}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(d){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(d<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=d>b?b:d}}addSubParam(d){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(d<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=d>b?b:d,this._subParamsIdx[this.length-1]++}}hasSubParams(d){return(255&this._subParamsIdx[d])-(this._subParamsIdx[d]>>8)>0}getSubParams(d){const m=this._subParamsIdx[d]>>8,y=255&this._subParamsIdx[d];return y-m>0?this._subParams.subarray(m,y):null}getSubParamsAll(){const d={};for(let m=0;m<this.length;++m){const y=this._subParamsIdx[m]>>8,E=255&this._subParamsIdx[m];E-y>0&&(d[m]=this._subParams.slice(y,E))}return d}addDigit(d){let m;if(this._rejectDigits||!(m=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const y=this._digitIsSub?this._subParams:this.params,E=y[m-1];y[m-1]=~E?Math.min(10*E+d,b):d}}c.Params=_},5741:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.AddonManager=void 0,c.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let b=this._addons.length-1;b>=0;b--)this._addons[b].instance.dispose()}loadAddon(b,_){const S={instance:_,dispose:_.dispose,isDisposed:!1};this._addons.push(S),_.dispose=()=>this._wrappedAddonDispose(S),_.activate(b)}_wrappedAddonDispose(b){if(b.isDisposed)return;let _=-1;for(let S=0;S<this._addons.length;S++)if(this._addons[S]===b){_=S;break}if(_===-1)throw new Error("Could not dispose an addon that has not been loaded");b.isDisposed=!0,b.dispose.apply(b.instance),this._addons.splice(_,1)}}},8771:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BufferApiView=void 0;const _=b(3785),S=b(511);c.BufferApiView=class{constructor(d,m){this._buffer=d,this.type=m}init(d){return this._buffer=d,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(d){const m=this._buffer.lines.get(d);if(m)return new _.BufferLineApiView(m)}getNullCell(){return new S.CellData}}},3785:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BufferLineApiView=void 0;const _=b(511);c.BufferLineApiView=class{constructor(S){this._line=S}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(S,d){if(!(S<0||S>=this._line.length))return d?(this._line.loadCell(S,d),d):this._line.loadCell(S,new _.CellData)}translateToString(S,d,m){return this._line.translateToString(S,d,m)}}},8285:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.BufferNamespaceApi=void 0;const _=b(8771),S=b(8460),d=b(844);class m extends d.Disposable{constructor(E){super(),this._core=E,this._onBufferChange=this.register(new S.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new _.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new _.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}c.BufferNamespaceApi=m},7975:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.ParserApi=void 0,c.ParserApi=class{constructor(b){this._core=b}registerCsiHandler(b,_){return this._core.registerCsiHandler(b,(S=>_(S.toArray())))}addCsiHandler(b,_){return this.registerCsiHandler(b,_)}registerDcsHandler(b,_){return this._core.registerDcsHandler(b,((S,d)=>_(S,d.toArray())))}addDcsHandler(b,_){return this.registerDcsHandler(b,_)}registerEscHandler(b,_){return this._core.registerEscHandler(b,_)}addEscHandler(b,_){return this.registerEscHandler(b,_)}registerOscHandler(b,_){return this._core.registerOscHandler(b,_)}addOscHandler(b,_){return this.registerOscHandler(b,_)}}},7090:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.UnicodeApi=void 0,c.UnicodeApi=class{constructor(b){this._core=b}register(b){this._core.unicodeService.register(b)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(b){this._core.unicodeService.activeVersion=b}}},744:function(W,c,b){var _=this&&this.__decorate||function(u,h,o,a){var g,N=arguments.length,C=N<3?h:a===null?a=Object.getOwnPropertyDescriptor(h,o):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(u,h,o,a);else for(var D=u.length-1;D>=0;D--)(g=u[D])&&(C=(N<3?g(C):N>3?g(h,o,C):g(h,o))||C);return N>3&&C&&Object.defineProperty(h,o,C),C},S=this&&this.__param||function(u,h){return function(o,a){h(o,a,u)}};Object.defineProperty(c,"__esModule",{value:!0}),c.BufferService=c.MINIMUM_ROWS=c.MINIMUM_COLS=void 0;const d=b(8460),m=b(844),y=b(5295),E=b(2585);c.MINIMUM_COLS=2,c.MINIMUM_ROWS=1;let v=c.BufferService=class extends m.Disposable{get buffer(){return this.buffers.active}constructor(u){super(),this.isUserScrolling=!1,this._onResize=this.register(new d.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(u.rawOptions.cols||0,c.MINIMUM_COLS),this.rows=Math.max(u.rawOptions.rows||0,c.MINIMUM_ROWS),this.buffers=this.register(new y.BufferSet(u,this))}resize(u,h){this.cols=u,this.rows=h,this.buffers.resize(u,h),this._onResize.fire({cols:u,rows:h})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(u,h=!1){const o=this.buffer;let a;a=this._cachedBlankLine,a&&a.length===this.cols&&a.getFg(0)===u.fg&&a.getBg(0)===u.bg||(a=o.getBlankLine(u,h),this._cachedBlankLine=a),a.isWrapped=h;const g=o.ybase+o.scrollTop,N=o.ybase+o.scrollBottom;if(o.scrollTop===0){const C=o.lines.isFull;N===o.lines.length-1?C?o.lines.recycle().copyFrom(a):o.lines.push(a.clone()):o.lines.splice(N+1,0,a.clone()),C?this.isUserScrolling&&(o.ydisp=Math.max(o.ydisp-1,0)):(o.ybase++,this.isUserScrolling||o.ydisp++)}else{const C=N-g+1;o.lines.shiftElements(g+1,C-1,-1),o.lines.set(N,a.clone())}this.isUserScrolling||(o.ydisp=o.ybase),this._onScroll.fire(o.ydisp)}scrollLines(u,h,o){const a=this.buffer;if(u<0){if(a.ydisp===0)return;this.isUserScrolling=!0}else u+a.ydisp>=a.ybase&&(this.isUserScrolling=!1);const g=a.ydisp;a.ydisp=Math.max(Math.min(a.ydisp+u,a.ybase),0),g!==a.ydisp&&(h||this._onScroll.fire(a.ydisp))}};c.BufferService=v=_([S(0,E.IOptionsService)],v)},7994:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.CharsetService=void 0,c.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(b){this.glevel=b,this.charset=this._charsets[b]}setgCharset(b,_){this._charsets[b]=_,this.glevel===b&&(this.charset=_)}}},1753:function(W,c,b){var _=this&&this.__decorate||function(a,g,N,C){var D,w=arguments.length,k=w<3?g:C===null?C=Object.getOwnPropertyDescriptor(g,N):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,g,N,C);else for(var M=a.length-1;M>=0;M--)(D=a[M])&&(k=(w<3?D(k):w>3?D(g,N,k):D(g,N))||k);return w>3&&k&&Object.defineProperty(g,N,k),k},S=this&&this.__param||function(a,g){return function(N,C){g(N,C,a)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CoreMouseService=void 0;const d=b(2585),m=b(8460),y=b(844),E={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:a=>a.button!==4&&a.action===1&&(a.ctrl=!1,a.alt=!1,a.shift=!1,!0)},VT200:{events:19,restrict:a=>a.action!==32},DRAG:{events:23,restrict:a=>a.action!==32||a.button!==3},ANY:{events:31,restrict:a=>!0}};function v(a,g){let N=(a.ctrl?16:0)|(a.shift?4:0)|(a.alt?8:0);return a.button===4?(N|=64,N|=a.action):(N|=3&a.button,4&a.button&&(N|=64),8&a.button&&(N|=128),a.action===32?N|=32:a.action!==0||g||(N|=3)),N}const u=String.fromCharCode,h={DEFAULT:a=>{const g=[v(a,!1)+32,a.col+32,a.row+32];return g[0]>255||g[1]>255||g[2]>255?"":`\x1B[M${u(g[0])}${u(g[1])}${u(g[2])}`},SGR:a=>{const g=a.action===0&&a.button!==4?"m":"M";return`\x1B[<${v(a,!0)};${a.col};${a.row}${g}`},SGR_PIXELS:a=>{const g=a.action===0&&a.button!==4?"m":"M";return`\x1B[<${v(a,!0)};${a.x};${a.y}${g}`}};let o=c.CoreMouseService=class extends y.Disposable{constructor(a,g){super(),this._bufferService=a,this._coreService=g,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new m.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const N of Object.keys(E))this.addProtocol(N,E[N]);for(const N of Object.keys(h))this.addEncoding(N,h[N]);this.reset()}addProtocol(a,g){this._protocols[a]=g}addEncoding(a,g){this._encodings[a]=g}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(a){if(!this._protocols[a])throw new Error(`unknown protocol "${a}"`);this._activeProtocol=a,this._onProtocolChange.fire(this._protocols[a].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(a){if(!this._encodings[a])throw new Error(`unknown encoding "${a}"`);this._activeEncoding=a}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(a){if(a.col<0||a.col>=this._bufferService.cols||a.row<0||a.row>=this._bufferService.rows||a.button===4&&a.action===32||a.button===3&&a.action!==32||a.button!==4&&(a.action===2||a.action===3)||(a.col++,a.row++,a.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,a,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(a))return!1;const g=this._encodings[this._activeEncoding](a);return g&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(g):this._coreService.triggerDataEvent(g,!0)),this._lastEvent=a,!0}explainEvents(a){return{down:!!(1&a),up:!!(2&a),drag:!!(4&a),move:!!(8&a),wheel:!!(16&a)}}_equalEvents(a,g,N){if(N){if(a.x!==g.x||a.y!==g.y)return!1}else if(a.col!==g.col||a.row!==g.row)return!1;return a.button===g.button&&a.action===g.action&&a.ctrl===g.ctrl&&a.alt===g.alt&&a.shift===g.shift}};c.CoreMouseService=o=_([S(0,d.IBufferService),S(1,d.ICoreService)],o)},6975:function(W,c,b){var _=this&&this.__decorate||function(o,a,g,N){var C,D=arguments.length,w=D<3?a:N===null?N=Object.getOwnPropertyDescriptor(a,g):N;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(o,a,g,N);else for(var k=o.length-1;k>=0;k--)(C=o[k])&&(w=(D<3?C(w):D>3?C(a,g,w):C(a,g))||w);return D>3&&w&&Object.defineProperty(a,g,w),w},S=this&&this.__param||function(o,a){return function(g,N){a(g,N,o)}};Object.defineProperty(c,"__esModule",{value:!0}),c.CoreService=void 0;const d=b(1439),m=b(8460),y=b(844),E=b(2585),v=Object.freeze({insertMode:!1}),u=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let h=c.CoreService=class extends y.Disposable{constructor(o,a,g){super(),this._bufferService=o,this._logService=a,this._optionsService=g,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new m.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new m.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new m.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new m.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,d.clone)(v),this.decPrivateModes=(0,d.clone)(u)}reset(){this.modes=(0,d.clone)(v),this.decPrivateModes=(0,d.clone)(u)}triggerDataEvent(o,a=!1){if(this._optionsService.rawOptions.disableStdin)return;const g=this._bufferService.buffer;a&&this._optionsService.rawOptions.scrollOnUserInput&&g.ybase!==g.ydisp&&this._onRequestScrollToBottom.fire(),a&&this._onUserInput.fire(),this._logService.debug(`sending data "${o}"`,(()=>o.split("").map((N=>N.charCodeAt(0))))),this._onData.fire(o)}triggerBinaryEvent(o){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${o}"`,(()=>o.split("").map((a=>a.charCodeAt(0))))),this._onBinary.fire(o))}};c.CoreService=h=_([S(0,E.IBufferService),S(1,E.ILogService),S(2,E.IOptionsService)],h)},9074:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.DecorationService=void 0;const _=b(8055),S=b(8460),d=b(844),m=b(6106);let y=0,E=0;class v extends d.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new m.SortedList((o=>o==null?void 0:o.marker.line)),this._onDecorationRegistered=this.register(new S.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new S.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,d.toDisposable)((()=>this.reset())))}registerDecoration(o){if(o.marker.isDisposed)return;const a=new u(o);if(a){const g=a.marker.onDispose((()=>a.dispose()));a.onDispose((()=>{a&&(this._decorations.delete(a)&&this._onDecorationRemoved.fire(a),g.dispose())})),this._decorations.insert(a),this._onDecorationRegistered.fire(a)}return a}reset(){for(const o of this._decorations.values())o.dispose();this._decorations.clear()}*getDecorationsAtCell(o,a,g){let N=0,C=0;for(const D of this._decorations.getKeyIterator(a))N=D.options.x??0,C=N+(D.options.width??1),o>=N&&o<C&&(!g||(D.options.layer??"bottom")===g)&&(yield D)}forEachDecorationAtCell(o,a,g,N){this._decorations.forEachByKey(a,(C=>{y=C.options.x??0,E=y+(C.options.width??1),o>=y&&o<E&&(!g||(C.options.layer??"bottom")===g)&&N(C)}))}}c.DecorationService=v;class u extends d.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=_.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=_.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(o){super(),this.options=o,this.onRenderEmitter=this.register(new S.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new S.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=o.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.InstantiationService=c.ServiceCollection=void 0;const _=b(2585),S=b(8343);class d{constructor(...y){this._entries=new Map;for(const[E,v]of y)this.set(E,v)}set(y,E){const v=this._entries.get(y);return this._entries.set(y,E),v}forEach(y){for(const[E,v]of this._entries.entries())y(E,v)}has(y){return this._entries.has(y)}get(y){return this._entries.get(y)}}c.ServiceCollection=d,c.InstantiationService=class{constructor(){this._services=new d,this._services.set(_.IInstantiationService,this)}setService(m,y){this._services.set(m,y)}getService(m){return this._services.get(m)}createInstance(m,...y){const E=(0,S.getServiceDependencies)(m).sort(((h,o)=>h.index-o.index)),v=[];for(const h of E){const o=this._services.get(h.id);if(!o)throw new Error(`[createInstance] ${m.name} depends on UNKNOWN service ${h.id}.`);v.push(o)}const u=E.length>0?E[0].index:y.length;if(y.length!==u)throw new Error(`[createInstance] First service dependency of ${m.name} at position ${u+1} conflicts with ${y.length} static arguments`);return new m(...y,...v)}}},7866:function(W,c,b){var _=this&&this.__decorate||function(u,h,o,a){var g,N=arguments.length,C=N<3?h:a===null?a=Object.getOwnPropertyDescriptor(h,o):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(u,h,o,a);else for(var D=u.length-1;D>=0;D--)(g=u[D])&&(C=(N<3?g(C):N>3?g(h,o,C):g(h,o))||C);return N>3&&C&&Object.defineProperty(h,o,C),C},S=this&&this.__param||function(u,h){return function(o,a){h(o,a,u)}};Object.defineProperty(c,"__esModule",{value:!0}),c.traceCall=c.setTraceLogger=c.LogService=void 0;const d=b(844),m=b(2585),y={trace:m.LogLevelEnum.TRACE,debug:m.LogLevelEnum.DEBUG,info:m.LogLevelEnum.INFO,warn:m.LogLevelEnum.WARN,error:m.LogLevelEnum.ERROR,off:m.LogLevelEnum.OFF};let E,v=c.LogService=class extends d.Disposable{get logLevel(){return this._logLevel}constructor(u){super(),this._optionsService=u,this._logLevel=m.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),E=this}_updateLogLevel(){this._logLevel=y[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(u){for(let h=0;h<u.length;h++)typeof u[h]=="function"&&(u[h]=u[h]())}_log(u,h,o){this._evalLazyOptionalParams(o),u.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+h,...o)}trace(u,...h){var o;this._logLevel<=m.LogLevelEnum.TRACE&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.trace.bind(this._optionsService.options.logger))??console.log,u,h)}debug(u,...h){var o;this._logLevel<=m.LogLevelEnum.DEBUG&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.debug.bind(this._optionsService.options.logger))??console.log,u,h)}info(u,...h){var o;this._logLevel<=m.LogLevelEnum.INFO&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.info.bind(this._optionsService.options.logger))??console.info,u,h)}warn(u,...h){var o;this._logLevel<=m.LogLevelEnum.WARN&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.warn.bind(this._optionsService.options.logger))??console.warn,u,h)}error(u,...h){var o;this._logLevel<=m.LogLevelEnum.ERROR&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.error.bind(this._optionsService.options.logger))??console.error,u,h)}};c.LogService=v=_([S(0,m.IOptionsService)],v),c.setTraceLogger=function(u){E=u},c.traceCall=function(u,h,o){if(typeof o.value!="function")throw new Error("not supported");const a=o.value;o.value=function(...g){if(E.logLevel!==m.LogLevelEnum.TRACE)return a.apply(this,g);E.trace(`GlyphRenderer#${a.name}(${g.map((C=>JSON.stringify(C))).join(", ")})`);const N=a.apply(this,g);return E.trace(`GlyphRenderer#${a.name} return`,N),N}}},7302:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.OptionsService=c.DEFAULT_OPTIONS=void 0;const _=b(8460),S=b(844),d=b(6114);c.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:d.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const m=["normal","bold","100","200","300","400","500","600","700","800","900"];class y extends S.Disposable{constructor(v){super(),this._onOptionChange=this.register(new _.EventEmitter),this.onOptionChange=this._onOptionChange.event;const u={...c.DEFAULT_OPTIONS};for(const h in v)if(h in u)try{const o=v[h];u[h]=this._sanitizeAndValidateOption(h,o)}catch(o){console.error(o)}this.rawOptions=u,this.options={...u},this._setupOptions(),this.register((0,S.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(v,u){return this.onOptionChange((h=>{h===v&&u(this.rawOptions[v])}))}onMultipleOptionChange(v,u){return this.onOptionChange((h=>{v.indexOf(h)!==-1&&u()}))}_setupOptions(){const v=h=>{if(!(h in c.DEFAULT_OPTIONS))throw new Error(`No option with key "${h}"`);return this.rawOptions[h]},u=(h,o)=>{if(!(h in c.DEFAULT_OPTIONS))throw new Error(`No option with key "${h}"`);o=this._sanitizeAndValidateOption(h,o),this.rawOptions[h]!==o&&(this.rawOptions[h]=o,this._onOptionChange.fire(h))};for(const h in this.rawOptions){const o={get:v.bind(this,h),set:u.bind(this,h)};Object.defineProperty(this.options,h,o)}}_sanitizeAndValidateOption(v,u){switch(v){case"cursorStyle":if(u||(u=c.DEFAULT_OPTIONS[v]),!(function(h){return h==="block"||h==="underline"||h==="bar"})(u))throw new Error(`"${u}" is not a valid value for ${v}`);break;case"wordSeparator":u||(u=c.DEFAULT_OPTIONS[v]);break;case"fontWeight":case"fontWeightBold":if(typeof u=="number"&&1<=u&&u<=1e3)break;u=m.includes(u)?u:c.DEFAULT_OPTIONS[v];break;case"cursorWidth":u=Math.floor(u);case"lineHeight":case"tabStopWidth":if(u<1)throw new Error(`${v} cannot be less than 1, value: ${u}`);break;case"minimumContrastRatio":u=Math.max(1,Math.min(21,Math.round(10*u)/10));break;case"scrollback":if((u=Math.min(u,4294967295))<0)throw new Error(`${v} cannot be less than 0, value: ${u}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(u<=0)throw new Error(`${v} cannot be less than or equal to 0, value: ${u}`);break;case"rows":case"cols":if(!u&&u!==0)throw new Error(`${v} must be numeric, value: ${u}`);break;case"windowsPty":u=u??{}}return u}}c.OptionsService=y},2660:function(W,c,b){var _=this&&this.__decorate||function(y,E,v,u){var h,o=arguments.length,a=o<3?E:u===null?u=Object.getOwnPropertyDescriptor(E,v):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(y,E,v,u);else for(var g=y.length-1;g>=0;g--)(h=y[g])&&(a=(o<3?h(a):o>3?h(E,v,a):h(E,v))||a);return o>3&&a&&Object.defineProperty(E,v,a),a},S=this&&this.__param||function(y,E){return function(v,u){E(v,u,y)}};Object.defineProperty(c,"__esModule",{value:!0}),c.OscLinkService=void 0;const d=b(2585);let m=c.OscLinkService=class{constructor(y){this._bufferService=y,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(y){const E=this._bufferService.buffer;if(y.id===void 0){const g=E.addMarker(E.ybase+E.y),N={data:y,id:this._nextId++,lines:[g]};return g.onDispose((()=>this._removeMarkerFromLink(N,g))),this._dataByLinkId.set(N.id,N),N.id}const v=y,u=this._getEntryIdKey(v),h=this._entriesWithId.get(u);if(h)return this.addLineToLink(h.id,E.ybase+E.y),h.id;const o=E.addMarker(E.ybase+E.y),a={id:this._nextId++,key:this._getEntryIdKey(v),data:v,lines:[o]};return o.onDispose((()=>this._removeMarkerFromLink(a,o))),this._entriesWithId.set(a.key,a),this._dataByLinkId.set(a.id,a),a.id}addLineToLink(y,E){const v=this._dataByLinkId.get(y);if(v&&v.lines.every((u=>u.line!==E))){const u=this._bufferService.buffer.addMarker(E);v.lines.push(u),u.onDispose((()=>this._removeMarkerFromLink(v,u)))}}getLinkData(y){var E;return(E=this._dataByLinkId.get(y))==null?void 0:E.data}_getEntryIdKey(y){return`${y.id};;${y.uri}`}_removeMarkerFromLink(y,E){const v=y.lines.indexOf(E);v!==-1&&(y.lines.splice(v,1),y.lines.length===0&&(y.data.id!==void 0&&this._entriesWithId.delete(y.key),this._dataByLinkId.delete(y.id)))}};c.OscLinkService=m=_([S(0,d.IBufferService)],m)},8343:(W,c)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.createDecorator=c.getServiceDependencies=c.serviceRegistry=void 0;const b="di$target",_="di$dependencies";c.serviceRegistry=new Map,c.getServiceDependencies=function(S){return S[_]||[]},c.createDecorator=function(S){if(c.serviceRegistry.has(S))return c.serviceRegistry.get(S);const d=function(m,y,E){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(v,u,h){u[b]===u?u[_].push({id:v,index:h}):(u[_]=[{id:v,index:h}],u[b]=u)})(d,m,E)};return d.toString=()=>S,c.serviceRegistry.set(S,d),d}},2585:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.IDecorationService=c.IUnicodeService=c.IOscLinkService=c.IOptionsService=c.ILogService=c.LogLevelEnum=c.IInstantiationService=c.ICharsetService=c.ICoreService=c.ICoreMouseService=c.IBufferService=void 0;const _=b(8343);var S;c.IBufferService=(0,_.createDecorator)("BufferService"),c.ICoreMouseService=(0,_.createDecorator)("CoreMouseService"),c.ICoreService=(0,_.createDecorator)("CoreService"),c.ICharsetService=(0,_.createDecorator)("CharsetService"),c.IInstantiationService=(0,_.createDecorator)("InstantiationService"),(function(d){d[d.TRACE=0]="TRACE",d[d.DEBUG=1]="DEBUG",d[d.INFO=2]="INFO",d[d.WARN=3]="WARN",d[d.ERROR=4]="ERROR",d[d.OFF=5]="OFF"})(S||(c.LogLevelEnum=S={})),c.ILogService=(0,_.createDecorator)("LogService"),c.IOptionsService=(0,_.createDecorator)("OptionsService"),c.IOscLinkService=(0,_.createDecorator)("OscLinkService"),c.IUnicodeService=(0,_.createDecorator)("UnicodeService"),c.IDecorationService=(0,_.createDecorator)("DecorationService")},1480:(W,c,b)=>{Object.defineProperty(c,"__esModule",{value:!0}),c.UnicodeService=void 0;const _=b(8460),S=b(225);class d{static extractShouldJoin(y){return(1&y)!=0}static extractWidth(y){return y>>1&3}static extractCharKind(y){return y>>3}static createPropertyValue(y,E,v=!1){return(16777215&y)<<3|(3&E)<<1|(v?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new _.EventEmitter,this.onChange=this._onChange.event;const y=new S.UnicodeV6;this.register(y),this._active=y.version,this._activeProvider=y}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(y){if(!this._providers[y])throw new Error(`unknown Unicode version "${y}"`);this._active=y,this._activeProvider=this._providers[y],this._onChange.fire(y)}register(y){this._providers[y.version]=y}wcwidth(y){return this._activeProvider.wcwidth(y)}getStringCellWidth(y){let E=0,v=0;const u=y.length;for(let h=0;h<u;++h){let o=y.charCodeAt(h);if(55296<=o&&o<=56319){if(++h>=u)return E+this.wcwidth(o);const N=y.charCodeAt(h);56320<=N&&N<=57343?o=1024*(o-55296)+N-56320+65536:E+=this.wcwidth(N)}const a=this.charProperties(o,v);let g=d.extractWidth(a);d.extractShouldJoin(a)&&(g-=d.extractWidth(v)),E+=g,v=a}return E}charProperties(y,E){return this._activeProvider.charProperties(y,E)}}c.UnicodeService=d}},I={};function Z(W){var c=I[W];if(c!==void 0)return c.exports;var b=I[W]={exports:{}};return G[W].call(b.exports,b,b.exports,Z),b.exports}var ne={};return(()=>{var W=ne;Object.defineProperty(W,"__esModule",{value:!0}),W.Terminal=void 0;const c=Z(9042),b=Z(3236),_=Z(844),S=Z(5741),d=Z(8285),m=Z(7975),y=Z(7090),E=["cols","rows"];class v extends _.Disposable{constructor(h){super(),this._core=this.register(new b.Terminal(h)),this._addonManager=this.register(new S.AddonManager),this._publicOptions={...this._core.options};const o=g=>this._core.options[g],a=(g,N)=>{this._checkReadonlyOptions(g),this._core.options[g]=N};for(const g in this._core.options){const N={get:o.bind(this,g),set:a.bind(this,g)};Object.defineProperty(this._publicOptions,g,N)}}_checkReadonlyOptions(h){if(E.includes(h))throw new Error(`Option "${h}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new m.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new y.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new d.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const h=this._core.coreService.decPrivateModes;let o="none";switch(this._core.coreMouseService.activeProtocol){case"X10":o="x10";break;case"VT200":o="vt200";break;case"DRAG":o="drag";break;case"ANY":o="any"}return{applicationCursorKeysMode:h.applicationCursorKeys,applicationKeypadMode:h.applicationKeypad,bracketedPasteMode:h.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:o,originMode:h.origin,reverseWraparoundMode:h.reverseWraparound,sendFocusMode:h.sendFocus,wraparoundMode:h.wraparound}}get options(){return this._publicOptions}set options(h){for(const o in h)this._publicOptions[o]=h[o]}blur(){this._core.blur()}focus(){this._core.focus()}input(h,o=!0){this._core.input(h,o)}resize(h,o){this._verifyIntegers(h,o),this._core.resize(h,o)}open(h){this._core.open(h)}attachCustomKeyEventHandler(h){this._core.attachCustomKeyEventHandler(h)}attachCustomWheelEventHandler(h){this._core.attachCustomWheelEventHandler(h)}registerLinkProvider(h){return this._core.registerLinkProvider(h)}registerCharacterJoiner(h){return this._checkProposedApi(),this._core.registerCharacterJoiner(h)}deregisterCharacterJoiner(h){this._checkProposedApi(),this._core.deregisterCharacterJoiner(h)}registerMarker(h=0){return this._verifyIntegers(h),this._core.registerMarker(h)}registerDecoration(h){return this._checkProposedApi(),this._verifyPositiveIntegers(h.x??0,h.width??0,h.height??0),this._core.registerDecoration(h)}hasSelection(){return this._core.hasSelection()}select(h,o,a){this._verifyIntegers(h,o,a),this._core.select(h,o,a)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(h,o){this._verifyIntegers(h,o),this._core.selectLines(h,o)}dispose(){super.dispose()}scrollLines(h){this._verifyIntegers(h),this._core.scrollLines(h)}scrollPages(h){this._verifyIntegers(h),this._core.scrollPages(h)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(h){this._verifyIntegers(h),this._core.scrollToLine(h)}clear(){this._core.clear()}write(h,o){this._core.write(h,o)}writeln(h,o){this._core.write(h),this._core.write(`\r
|
|
283
|
-
`,o)}paste(h){this._core.paste(h)}refresh(h,o){this._verifyIntegers(h,o),this._core.refresh(h,o)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(h){this._addonManager.loadAddon(this,h)}static get strings(){return c}_verifyIntegers(...h){for(const o of h)if(o===1/0||isNaN(o)||o%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...h){for(const o of h)if(o&&(o===1/0||isNaN(o)||o%1!=0||o<0))throw new Error("This API only accepts positive integers")}}W.Terminal=v})(),ne})()))})(Im)),Im.exports}var lN=aN(),$m={exports:{}},Wy;function cN(){return Wy||(Wy=1,(function(O,z){(function(G,I){O.exports=I()})(self,(()=>(()=>{var G={};return(()=>{var I=G;Object.defineProperty(I,"__esModule",{value:!0}),I.FitAddon=void 0,I.FitAddon=class{activate(Z){this._terminal=Z}dispose(){}fit(){const Z=this.proposeDimensions();if(!Z||!this._terminal||isNaN(Z.cols)||isNaN(Z.rows))return;const ne=this._terminal._core;this._terminal.rows===Z.rows&&this._terminal.cols===Z.cols||(ne._renderService.clear(),this._terminal.resize(Z.cols,Z.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const Z=this._terminal._core,ne=Z._renderService.dimensions;if(ne.css.cell.width===0||ne.css.cell.height===0)return;const W=this._terminal.options.scrollback===0?0:Z.viewport.scrollBarWidth,c=window.getComputedStyle(this._terminal.element.parentElement),b=parseInt(c.getPropertyValue("height")),_=Math.max(0,parseInt(c.getPropertyValue("width"))),S=window.getComputedStyle(this._terminal.element),d=b-(parseInt(S.getPropertyValue("padding-top"))+parseInt(S.getPropertyValue("padding-bottom"))),m=_-(parseInt(S.getPropertyValue("padding-right"))+parseInt(S.getPropertyValue("padding-left")))-W;return{cols:Math.max(2,Math.floor(m/ne.css.cell.width)),rows:Math.max(1,Math.floor(d/ne.css.cell.height))}}}})(),G})()))})($m)),$m.exports}var uN=cN();const ta=typeof window<"u"&&window.__COCKPIT_TOKEN__||"";function rw(O,z={}){const G=String(z.method||"GET").toUpperCase(),I=new Headers(z.headers);return I.set("authorization",`Bearer ${ta}`),["GET","HEAD","OPTIONS"].includes(G)||I.set("x-cockpit-csrf",ta),fetch(O,{...z,headers:I})}async function He(O,z={}){const G=await rw(O,z);if(!G.ok)throw new Error(`${O} → ${G.status}`);return G.status===204?{}:G.json()}const Yy=20,Fy=5,Gy=6,hN=1200,dN=2e3,Gu=4e3,Ws=new TextEncoder,fN=new TextDecoder;function mN(O){if(!ta||!/\/api\/pty\/agents\//.test(O))return;const z=Ws.encode(ta);let G="";for(let Z=0;Z<z.length;Z+=1)G+=String.fromCharCode(z[Z]);return["pty-ws.v1",`cockpit.${btoa(G).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}`]}const Xy=O=>{try{const z=atob(O),G=new Uint8Array(z.length);for(let I=0;I<z.length;I++)G[I]=z.charCodeAt(I);return G}catch{return new Uint8Array(0)}},Qy=O=>{const z=Ws.encode(O);let G="";for(let I=0;I<z.length;I++)G+=String.fromCharCode(z[I]);return btoa(G)};function Ky(O){if(!O)return null;const z=/\/agents\/([^/]+)\/sessions\/([^/]+)\/attach/;try{const I=new URL(O).pathname.match(z);return I?{instanceId:decodeURIComponent(I[1]),sessionId:decodeURIComponent(I[2])}:null}catch{const G=O.match(z);return G?{instanceId:decodeURIComponent(G[1]),sessionId:decodeURIComponent(G[2])}:null}}function pN(O){return O.replace(/\x1b\][\s\S]*?(?:\x07|\x1b\\)/g,"").replace(/\x1b\[\?[0-9;]*[cnhl]/g,"").replace(/\x1b\[[0-9;]*[Rn]/g,"")}function bN(O){return O.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g,"").replace(/\x1b\][^\x07]*(?:\x07|\x1b\\)/g,"").replace(/\x1b[()][A-Za-z0-9]/g,"")}function gN(O){const G=bN(O).replace(/\r/g,`
|
|
284
|
-
`).split(`
|
|
285
|
-
`).map(ne=>ne.trim()).filter(Boolean).slice(-24),I=G.join(`
|
|
286
|
-
`);return[/Enter to select\b/i,/(?:↑|up)\/(?:↓|down)|arrow keys|navigate/i,/\bEsc to cancel\b/i,/\b(?:y\/n|Y\/n|y\/N|\[y\/N\]|\[Y\/n\])\b/,/\b(?:choose|select|pick) (?:one|an option|a number)\b/i,/\?$/].some(ne=>ne.test(I))?G.slice(-10).join(`
|
|
287
|
-
`).slice(0,900):""}function Zy(O,z){return O?`${O.instanceId}:${O.sessionId}`:`url:${z}`}class vN{constructor(z,G,I,Z,ne){Wt(this,"term");Wt(this,"fit");Wt(this,"wrapper");Wt(this,"url");Wt(this,"target");Wt(this,"role",null);Wt(this,"attached",!1);Wt(this,"ws",null);Wt(this,"lastSeq",0);Wt(this,"connId",0);Wt(this,"closedByUser",!1);Wt(this,"gotFrame",!1);Wt(this,"retries",0);Wt(this,"outputTail","");Wt(this,"ro",null);Wt(this,"retryTimer",null);Wt(this,"noticeTimer",null);Wt(this,"deadlineTimer",null);Wt(this,"disposed",!1);this.onChange=I,this.onPrompt=Z,this.isActive=ne,this.url=z,this.target=G,this.term=new lN.Terminal({convertEol:!1,scrollback:5e3,cursorBlink:!1,disableStdin:!0,fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:13,theme:{background:"#0a0c10",foreground:"#cdd3de"}}),this.fit=new uN.FitAddon,this.term.loadAddon(this.fit),this.wrapper=document.createElement("div"),this.wrapper.className="pty-surface",this.wrapper.style.width="100%",this.wrapper.style.height="100%";try{this.term.open(this.wrapper)}catch{}this.term.onData(W=>{if(this.role!=="controller")return;const c=pN(W);c&&(this.isActive()&&this.onPrompt(null),this.send("pty.session_input",{data:Qy(c)}))}),this.term.onResize(({cols:W,rows:c})=>{this.role==="controller"&&(W<Yy||c<Fy||this.send("pty.session_resize",{cols:W,rows:c}))})}fitSafe(){try{this.fit.fit()}catch{}}write(z){const G=fN.decode(z,{stream:!0});if(G){this.outputTail=(this.outputTail+G).slice(-6e3);const I=gN(this.outputTail);I&&this.isActive()&&this.onPrompt({needed:!0,prompt:I,since:new Date().toISOString(),source:"pty"})}try{this.term.write(z)}catch{}}send(z,G){var I;try{(I=this.ws)==null||I.send(JSON.stringify(G===void 0?{op:z}:{op:z,payload:G}))}catch{}}sendOn(z,G,I){try{z.send(JSON.stringify(I===void 0?{op:G}:{op:G,payload:I}))}catch{}}clearTimers(){this.retryTimer&&(clearTimeout(this.retryTimer),this.retryTimer=null),this.noticeTimer&&(clearTimeout(this.noticeTimer),this.noticeTimer=null),this.deadlineTimer&&(clearTimeout(this.deadlineTimer),this.deadlineTimer=null)}clearFrameTimers(){this.noticeTimer&&(clearTimeout(this.noticeTimer),this.noticeTimer=null),this.deadlineTimer&&(clearTimeout(this.deadlineTimer),this.deadlineTimer=null)}setVisible(z){this.wrapper.style.display=z?"block":"none",z&&(this.fitSafe(),requestAnimationFrame(()=>this.fitSafe()))}onContainerResize(){this.wrapper.style.display!=="none"&&this.fitSafe()}connect(z,G,I){var W;this.clearTimers();const Z=++this.connId;if(this.closedByUser=!1,this.retries=0,this.gotFrame=!1,(W=this.ws)==null||W.close(),!G){this.lastSeq=0,this.outputTail="";try{this.term.reset()}catch{}}this.role=null,this.term.options.disableStdin=!0,this.attached=!1,this.isActive()&&this.onPrompt(null),this.onChange();const ne=()=>{if(this.connId!==Z||this.closedByUser||this.disposed)return;const c=new WebSocket(this.url,mN(this.url));this.ws=c;let b=!1;c.addEventListener("open",()=>{this.connId!==Z||this.ws!==c||(this.attached=!0,this.onChange(),this.clearFrameTimers(),this.noticeTimer=setTimeout(()=>{this.connId!==Z||this.ws!==c||this.closedByUser||this.gotFrame||this.write(Ws.encode(`\r
|
|
288
|
-
[attached — no output yet]\r
|
|
289
|
-
`))},dN),this.deadlineTimer=setTimeout(()=>{if(!(this.connId!==Z||this.ws!==c||this.closedByUser||this.gotFrame)){if(this.role==="controller"){this.write(Ws.encode(`\r
|
|
290
|
-
[attached — no output after ${Math.round(Gu/1e3)}s; requesting repaint]\r
|
|
291
|
-
`)),this.sendOn(c,"pty.request_keyframe");return}if(this.retries>=Gy){this.write(Ws.encode(`\r
|
|
292
|
-
[attached — no output after ${Math.round(Gu/1e3)}s]\r
|
|
293
|
-
`));return}this.retries+=1,this.write(Ws.encode(`\r
|
|
294
|
-
[attached — no output after ${Math.round(Gu/1e3)}s; requesting repaint]\r
|
|
295
|
-
`));try{c.close()}catch{}ne()}},Gu))});const _=()=>{if(!(this.connId!==Z||this.ws!==c||b)&&(b=!0,this.clearFrameTimers(),this.role=null,this.attached=!1,this.onChange(),!(this.closedByUser||this.gotFrame))){if(this.retries<Gy){this.retries+=1,this.retries===1&&this.write(Ws.encode(`\r
|
|
296
|
-
[waiting for session…]\r
|
|
297
|
-
`)),this.retryTimer=setTimeout(ne,hN);return}this.write(Ws.encode(`\r
|
|
298
|
-
[connection error — session did not become ready]\r
|
|
299
|
-
`))}};c.addEventListener("close",_),c.addEventListener("error",_),c.addEventListener("message",S=>{var m,y,E,v;if(this.connId!==Z||this.ws!==c)return;let d;try{d=JSON.parse(S.data)}catch{return}switch(d.op){case"binding_hello":{const u=I??(G?this.lastSeq:0);this.sendOn(c,"pty.join_session",{role:z,replay_from:u}),z==="controller"&&this.term.cols>=Yy&&this.term.rows>=Fy&&this.sendOn(c,"pty.session_resize",{cols:this.term.cols,rows:this.term.rows});break}case"role_assigned":{const u=((m=d.payload)==null?void 0:m.role)??null;this.role=u,this.term.options.disableStdin=u!=="controller",this.onChange(),requestAnimationFrame(()=>this.fitSafe());break}case"output":this.clearFrameTimers(),this.gotFrame=!0,this.retries=0,d.seq&&(this.lastSeq=Math.max(this.lastSeq,d.seq)),this.write(Xy(((y=d.payload)==null?void 0:y.data)??""));break;case"keyframe":this.clearFrameTimers(),this.gotFrame=!0,this.retries=0;for(const u of((E=d.payload)==null?void 0:E.frames)??[])u.seq&&(this.lastSeq=Math.max(this.lastSeq,u.seq)),this.write(Xy(u.payload.data));break;case"error":this.write(Ws.encode(`\r
|
|
300
|
-
[${((v=d.payload)==null?void 0:v.code)??"error"}]\r
|
|
301
|
-
`));break}})};ne()}requestKeyframe(){this.send("pty.request_keyframe")}sendInput(z){return!this.ws||this.role!=="controller"||!z?!1:(this.isActive()&&this.onPrompt(null),this.send("pty.session_input",{data:Qy(z+`\r
|
|
302
|
-
`)}),!0)}close(){var z;this.closedByUser=!0,this.connId+=1,this.role=null,this.attached=!1,this.term.options.disableStdin=!0,this.clearTimers(),(z=this.ws)==null||z.close(),this.ws=null,this.onChange()}dispose(){var z;this.disposed=!0,this.close();try{(z=this.ro)==null||z.disconnect()}catch{}try{this.term.dispose()}catch{}try{this.wrapper.remove()}catch{}}observe(z){this.ro||typeof ResizeObserver>"u"||(this.ro=new ResizeObserver(()=>this.onContainerResize()),this.ro.observe(z))}}function _N(){const O=ie.useRef(new Map),z=ie.useRef(""),G=ie.useRef(null),[I,Z]=ie.useState({attached:!1,role:null,url:null,target:null}),[ne,W]=ie.useState({needed:!1,prompt:"",since:null,source:"pty"}),c=()=>O.current.get(z.current)??null,b=ie.useCallback(()=>{const o=O.current.get(z.current);if(!o){Z({attached:!1,role:null,url:null,target:null});return}Z({attached:o.attached,role:o.role,url:o.url,target:o.target})},[]),_=ie.useCallback(o=>{W(o??{needed:!1,prompt:"",since:null,source:"pty"})},[]),S=ie.useCallback(o=>{z.current=o;for(const[a,g]of O.current)g.setVisible(a===o);_(null),b()},[_,b]),d=ie.useCallback((o,a=!1,g="observer",N)=>{const C=N??Ky(o),D=Zy(C,o);let w=O.current.get(D);w?(w.url=o,(a||g==="controller"&&w.role!=="controller")&&w.connect(g,a)):(w=new vN(o,C,b,_,()=>z.current===D),O.current.set(D,w),G.current&&(G.current.appendChild(w.wrapper),w.observe(G.current)),w.connect(g,a)),S(D)},[S,_,b]),m=ie.useCallback(()=>{const o=c();if(!o)return;const a=z.current;o.dispose(),O.current.delete(a);const g=O.current.keys().next();g.done?(z.current="",_(null),b()):S(g.value)},[S,_,b]),y=ie.useCallback((o,a,g)=>{const N=g??Ky(o),C=O.current.get(Zy(N,o)),D=a??(C==null?void 0:C.role)??"observer";d(o,!0,D,N)},[d]),E=ie.useCallback(()=>{var o;(o=c())==null||o.requestKeyframe()},[]),v=ie.useCallback((o,a)=>{const g=c();if(!g)return!1;if(a&&(!g.target||g.target.instanceId!==a.instanceId||g.target.sessionId!==a.sessionId)){try{g.term.write(Ws.encode(`\r
|
|
303
|
-
[inject refused: target ${a.instanceId}:${a.sessionId} does not match attached session ${g.target?`${g.target.instanceId}:${g.target.sessionId}`:"none"}]\r
|
|
304
|
-
`))}catch{}return!1}return g.sendInput(o)},[]),u=ie.useCallback(o=>{if(!o){G.current=null;return}G.current=o;for(const[a,g]of O.current)g.wrapper.parentElement!==o&&o.appendChild(g.wrapper),g.observe(o),g.setVisible(a===z.current)},[]);ie.useEffect(()=>{const o=()=>{for(const a of O.current.values())a.onContainerResize()};return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]);const h=O.current;return ie.useEffect(()=>()=>{for(const o of h.values())o.dispose();h.clear()},[h]),{state:I,responseNeeded:ne,attach:d,detach:m,replay:y,requestKeyframe:E,sendInput:v,openTerminal:u,isController:I.role==="controller"}}const lt=O=>O&&O.length>12?O.slice(0,8)+"…":O;function lr(O){const z=String(O??"").toLowerCase();return z==="host"?"host":z==="container"||z==="docker"?"container":z==="vm"||z==="qemu"||z==="kvm"?"vm":"other"}function ow(O,z){return O==="agent"?`@${z}`:O==="command"?`/${z}`:z}const Jy=[[50,10],[72,16],[88,34],[84,58],[68,72],[50,72],[32,72],[16,58],[12,34],[28,16],[50,30]];function yN({onStartSession:O,onLaunchInstance:z,goTo:G}){var w,k;const[I,Z]=ie.useState(null),[ne]=ie.useState(()=>!localStorage.getItem("cockpit.welcomed")),[W,c]=ie.useState(""),[b,_]=ie.useState("auto"),[S,d]=ie.useState("observe"),[m,y]=ie.useState(()=>CN());ie.useEffect(()=>{localStorage.setItem("cockpit.welcomed","1")},[]),ie.useEffect(()=>{(async()=>{try{const[M,L]=await Promise.all([He("/api/inventory"),He("/api/health")]),[H,B,J]=await Promise.all([He("/api/running").catch(()=>({running:[]})),He("/api/approvals?status=pending").catch(()=>({approvals:[]})),He("/api/cost").catch(()=>null)]);Z({instances:M.instances,running:H.running??[],approvals:B.approvals??[],cost:J,executor:L.executor_url,connected:M.instances.length>0,inventoryWarning:wN(M)})}catch{Z({instances:[],running:[],approvals:[],cost:null,executor:"",connected:!1})}})()},[]);const E=(I==null?void 0:I.instances.filter(M=>M.state==="running"))??[],v={host:(I==null?void 0:I.instances.some(M=>{var L;return lr(((L=M.runtime_posture)==null?void 0:L.kind)??M.runtime)==="host"}))??!1,container:(I==null?void 0:I.instances.some(M=>{var L;return lr(((L=M.runtime_posture)==null?void 0:L.kind)??M.runtime)==="container"}))??!1,vm:(I==null?void 0:I.instances.some(M=>{var L;return lr(((L=M.runtime_posture)==null?void 0:L.kind)??M.runtime)==="vm"}))??!1},u=async()=>{var M;await((M=navigator.clipboard)==null?void 0:M.writeText("aiwg cockpit"))},h=xN(I),o=((I==null?void 0:I.approvals.length)??0)+(v.host&&v.container&&v.vm?0:1),a=E.find(M=>M.id===W)??E[0]??(I==null?void 0:I.instances[0]),g=a?(w=I==null?void 0:I.cost)==null?void 0:w.per_instance.find(M=>M.instance_id===a.id):void 0,N=((k=I==null?void 0:I.cost)==null?void 0:k.total.usd)??0,C=I!=null&&I.cost?Math.min(100,Math.max(6,N*12)):0,D=[a?a.loadout:"no stack",b==="auto"?"auto runtime":b,S].join(" / ");return f.jsxDEV("div",{className:"welcome operator-wall",children:[f.jsxDEV("section",{className:`wall-hero ${I!=null&&I.connected?"wall-hero-compact":""}`,"aria-labelledby":"cockpit-wall-title",children:[f.jsxDEV("div",{children:[f.jsxDEV("p",{className:"eyebrow",children:"Operator wall"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:108,columnNumber:11},this),f.jsxDEV("h2",{id:"cockpit-wall-title",children:"Work alongside your agents"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:109,columnNumber:11},this),f.jsxDEV("p",{className:"lead",children:"Observe live stacks, take control when a session allows it, and keep approvals, cost, runtime posture, and handoff context visible in one control plane."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:110,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:107,columnNumber:9},this),f.jsxDEV("div",{className:"hero-actions","aria-label":"Primary Cockpit actions",children:[f.jsxDEV("button",{className:"cta",onClick:z,children:"+ New instance + session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:116,columnNumber:11},this),f.jsxDEV("button",{className:"cta",onClick:O,children:"▸ Start a session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:117,columnNumber:11},this),f.jsxDEV("button",{onClick:()=>G("running"),children:"View board"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:118,columnNumber:11},this),f.jsxDEV("button",{onClick:u,children:"Copy CLI"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:119,columnNumber:11},this),(I==null?void 0:I.connected)&&f.jsxDEV("div",{className:"segmented",role:"group","aria-label":"Wall review mode",children:[f.jsxDEV("button",{"aria-pressed":m==="topology",onClick:()=>y("topology"),children:"Topology"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:122,columnNumber:15},this),f.jsxDEV("button",{"aria-pressed":m==="handoff",onClick:()=>y("handoff"),children:"Handoff"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:123,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:121,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:115,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:106,columnNumber:7},this),I?I.connected?f.jsxDEV(f.Fragment,{children:[f.jsxDEV("section",{className:"radial-wall","aria-labelledby":"operator-wall-map-title",children:f.jsxDEV("div",{className:`radial-map mode-${m}`,"aria-label":"Operator wall topology",children:[f.jsxDEV("svg",{className:"radial-links",viewBox:"0 0 100 100","aria-hidden":"true",focusable:"false",children:[f.jsxDEV("circle",{className:"link-ring",cx:"50",cy:"50",r:"37"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:154,columnNumber:19},this),f.jsxDEV("circle",{className:"link-ring link-ring-inner",cx:"50",cy:"50",r:"22"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:155,columnNumber:19},this),h.map(M=>f.jsxDEV("line",{className:`link-line link-${M.state}`,x1:"50",y1:"50",x2:M.x,y2:M.y},M.key,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:157,columnNumber:21},this)),f.jsxDEV("path",{className:"handoff-arc",d:"M 17 58 C 29 19, 70 13, 87 42"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:159,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:153,columnNumber:17},this),f.jsxDEV("button",{className:"central-hub",onClick:O,"aria-label":"Start from Cockpit command hub",children:[f.jsxDEV("span",{className:"hub-core","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:162,columnNumber:19},this),f.jsxDEV("strong",{children:"Cockpit"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:163,columnNumber:19},this),f.jsxDEV("span",{children:[E.length," running · ",I.approvals.length," approvals"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:164,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:161,columnNumber:17},this),h.map((M,L)=>f.jsxDEV("button",{className:`orbit-node node-${M.family} node-${M.state}`,style:NN(M),onClick:()=>G(M.tab),"aria-label":`${M.label}: ${M.meta}`,children:[f.jsxDEV("span",{className:`node-glyph glyph-${M.family}`,"aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:174,columnNumber:21},this),f.jsxDEV("span",{className:"node-copy",children:[f.jsxDEV("strong",{children:M.label},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:176,columnNumber:23},this),f.jsxDEV("span",{children:M.meta},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:177,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:175,columnNumber:21},this),L===3&&f.jsxDEV("span",{className:"handoff-marker","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:179,columnNumber:37},this)]},M.key,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:167,columnNumber:19},this)),m==="handoff"&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("div",{className:"handoff-callout handoff-source",children:[f.jsxDEV("span",{children:"Source"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:185,columnNumber:23},this),f.jsxDEV("strong",{children:I.running[0]?lt(I.running[0].instance_id):"ready"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:186,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:184,columnNumber:21},this),f.jsxDEV("div",{className:"handoff-callout handoff-destination",children:[f.jsxDEV("span",{children:"Destination"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:189,columnNumber:23},this),f.jsxDEV("strong",{children:E[1]?lt(E[1].id):"next stack"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:190,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:188,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:183,columnNumber:19},this),f.jsxDEV("div",{className:"radial-overlay","aria-labelledby":"operator-wall-map-title",children:[f.jsxDEV("div",{className:"radial-overlay-head",children:[f.jsxDEV("div",{children:[f.jsxDEV("p",{className:"eyebrow",children:m==="handoff"?"Mission route":"Live topology"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:197,columnNumber:23},this),f.jsxDEV("h3",{id:"operator-wall-map-title",children:m==="handoff"?"Mission-handoff operator wall":"Eleven-stack operator wall"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:198,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:196,columnNumber:21},this),f.jsxDEV("div",{className:"mission-route","aria-label":"Mission handoff state",children:[f.jsxDEV("span",{children:"Mission"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:201,columnNumber:23},this),f.jsxDEV("strong",{children:I.running[0]?lt(I.running[0].task_id):"ready"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:202,columnNumber:23},this),f.jsxDEV("span",{className:o>0?"route-attention":"route-ready",children:o>0?`${o} gate(s)`:"clear"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:203,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:200,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:195,columnNumber:19},this),f.jsxDEV("dl",{className:"wall-readout",children:[f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Coverage"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:209,columnNumber:26},this),f.jsxDEV("dd",{children:[[v.host,v.container,v.vm].filter(Boolean).length,"/3"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:209,columnNumber:43},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:209,columnNumber:21},this),f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Executor"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:210,columnNumber:26},this),f.jsxDEV("dd",{children:I.executor||"unknown"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:210,columnNumber:43},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:210,columnNumber:21},this),f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Control"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:211,columnNumber:26},this),f.jsxDEV("dd",{children:E.some(M=>M.session_backends.some(L=>L.available&&L.drive))?"drive available":"observe first"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:211,columnNumber:42},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:211,columnNumber:21},this),f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Quota"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:212,columnNumber:26},this),f.jsxDEV("dd",{children:I.cost?`$${I.cost.total.usd.toFixed(2)}`:"n/a"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:212,columnNumber:40},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:212,columnNumber:21},this),f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Gates"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:213,columnNumber:26},this),f.jsxDEV("dd",{children:o>0?`${o} attention`:"clear"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:213,columnNumber:40},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:213,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:208,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:194,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:152,columnNumber:15},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:151,columnNumber:13},this),f.jsxDEV("section",{className:"stack-board","aria-label":"Running stack board",children:E.slice(0,6).map(M=>{var J;const L=I.running.find(ae=>ae.instance_id===M.id),H=(J=I.cost)==null?void 0:J.per_instance.find(ae=>ae.instance_id===M.id),B=M.session_backends.some(ae=>ae.available&&ae.drive);return f.jsxDEV("article",{className:`stack-card accent-${EN(M.id)}`,children:[f.jsxDEV("div",{className:"stack-head",children:[f.jsxDEV("span",{className:`topology topology-${SN(M)}`,"aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:227,columnNumber:23},this),f.jsxDEV("div",{children:[f.jsxDEV("h3",{children:M.loadout},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:229,columnNumber:25},this),f.jsxDEV("p",{children:[lt(M.id)," · ",M.runtime_posture.label]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:230,columnNumber:25},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:228,columnNumber:23},this),f.jsxDEV("span",{className:`badge isolation-${M.runtime_posture.isolation}`,children:M.state},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:232,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:226,columnNumber:21},this),f.jsxDEV("div",{className:"stack-log",role:"img","aria-label":`Recent activity for ${M.loadout}`,children:[f.jsxDEV("span",{children:L?`task ${lt(L.task_id)} · ${L.state}`:"idle · ready for session attach"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:235,columnNumber:23},this),f.jsxDEV("span",{children:[M.transport.label," · ",M.transport.mode]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:236,columnNumber:23},this),f.jsxDEV("span",{children:B?"Drive enabled":"Observe only"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:237,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:234,columnNumber:21},this),f.jsxDEV("div",{className:"segment-progress","aria-label":"Session progress",children:f.jsxDEV("span",{style:{width:L?"68%":"28%"}},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:240,columnNumber:23},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:239,columnNumber:21},this),f.jsxDEV("div",{className:"transport-bar",children:[f.jsxDEV("button",{onClick:()=>G("sessions"),children:"Attach"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:243,columnNumber:23},this),f.jsxDEV("button",{onClick:()=>G("running"),children:"Details"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:244,columnNumber:23},this),f.jsxDEV("span",{children:H?`$${H.usd.toFixed(2)}`:"cost n/a"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:245,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:242,columnNumber:21},this)]},M.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:225,columnNumber:19},this)})},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:219,columnNumber:13},this),f.jsxDEV("section",{className:"telemetry-strip","aria-label":"Fleet telemetry",children:[f.jsxDEV("button",{onClick:()=>G("inventory"),children:[f.jsxDEV("strong",{children:I.instances.length},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:254,columnNumber:17},this),f.jsxDEV("span",{children:["instances · ",E.length," running"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:255,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:253,columnNumber:15},this),f.jsxDEV("button",{onClick:()=>G("running"),children:[f.jsxDEV("strong",{children:I.running.length},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:258,columnNumber:17},this),f.jsxDEV("span",{children:"active tasks"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:259,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:257,columnNumber:15},this),f.jsxDEV("button",{onClick:()=>G("approvals"),children:[f.jsxDEV("strong",{children:I.approvals.length},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:262,columnNumber:17},this),f.jsxDEV("span",{children:"pending approvals"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:263,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:261,columnNumber:15},this),f.jsxDEV("button",{onClick:()=>G("running"),children:[f.jsxDEV("strong",{children:I.cost?`$${I.cost.total.usd.toFixed(2)}`:"--"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:266,columnNumber:17},this),f.jsxDEV("span",{children:"cost · quota"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:267,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:265,columnNumber:15},this),f.jsxDEV("button",{onClick:()=>G("inventory"),children:[f.jsxDEV("strong",{children:v.host&&v.container&&v.vm?"3/3":`${[v.host,v.container,v.vm].filter(Boolean).length}/3`},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:270,columnNumber:17},this),f.jsxDEV("span",{children:"host · docker · vm"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:271,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:269,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:252,columnNumber:13},this),f.jsxDEV("section",{className:"control-planner","aria-label":"Guided start and cost quota",children:[f.jsxDEV("div",{className:"guided-start","aria-label":"Guided start",children:[f.jsxDEV("div",{children:[f.jsxDEV("p",{className:"eyebrow",children:"Guided start"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:278,columnNumber:19},this),f.jsxDEV("h3",{children:"Pick stack, runtime, and task posture."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:279,columnNumber:19},this),f.jsxDEV("p",{className:"hint",children:["Plan: ",D]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:280,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:277,columnNumber:17},this),f.jsxDEV("div",{className:"planner-grid",children:[f.jsxDEV("label",{children:[f.jsxDEV("span",{children:"Stack"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:284,columnNumber:21},this),f.jsxDEV("select",{value:(a==null?void 0:a.id)??"",onChange:M=>c(M.target.value),children:E.map(M=>f.jsxDEV("option",{value:M.id,children:[M.loadout," · ",M.runtime_posture.kind]},M.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:286,columnNumber:52},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:285,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:283,columnNumber:19},this),f.jsxDEV("label",{children:[f.jsxDEV("span",{children:"Runtime"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:290,columnNumber:21},this),f.jsxDEV("select",{value:b,onChange:M=>_(M.target.value),children:[f.jsxDEV("option",{value:"auto",children:"Auto from selected stack"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:292,columnNumber:23},this),f.jsxDEV("option",{value:"host",children:"Host"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:293,columnNumber:23},this),f.jsxDEV("option",{value:"container",children:"Docker/container"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:294,columnNumber:23},this),f.jsxDEV("option",{value:"vm",children:"VM"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:295,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:291,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:289,columnNumber:19},this),f.jsxDEV("label",{children:[f.jsxDEV("span",{children:"Task"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:299,columnNumber:21},this),f.jsxDEV("select",{value:S,onChange:M=>d(M.target.value),children:[f.jsxDEV("option",{value:"observe",children:"Observe first"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:301,columnNumber:23},this),f.jsxDEV("option",{value:"drive",children:"Drive when granted"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:302,columnNumber:23},this),f.jsxDEV("option",{value:"handoff",children:"Mission handoff"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:303,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:300,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:298,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:282,columnNumber:17},this),f.jsxDEV("div",{className:"cta-row",children:[f.jsxDEV("button",{className:"cta",onClick:O,children:"▸ Start planned session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:308,columnNumber:19},this),f.jsxDEV("button",{onClick:()=>G("explore"),children:"Browse capabilities"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:309,columnNumber:19},this),I.approvals.length>0&&f.jsxDEV("button",{onClick:()=>G("approvals"),children:["Review ",I.approvals.length," approval(s)"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:310,columnNumber:47},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:307,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:276,columnNumber:15},this),f.jsxDEV("aside",{className:"quota-panel","aria-label":"Cost and quota",children:[f.jsxDEV("p",{className:"eyebrow",children:"Cost & quota"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:315,columnNumber:17},this),f.jsxDEV("div",{className:"quota-donut",style:{"--quota":`${C}%`},children:[f.jsxDEV("strong",{children:I.cost?`$${N.toFixed(2)}`:"--"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:317,columnNumber:19},this),f.jsxDEV("span",{children:I.cost?`${I.cost.total.input_tokens+I.cost.total.output_tokens} tokens`:"metrics unavailable"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:318,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:316,columnNumber:17},this),f.jsxDEV("dl",{className:"quota-readout",children:[f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Selected stack"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:321,columnNumber:24},this),f.jsxDEV("dd",{children:g?`$${g.usd.toFixed(2)}`:"n/a"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:321,columnNumber:47},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:321,columnNumber:19},this),f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Headroom"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:322,columnNumber:24},this),f.jsxDEV("dd",{children:I.cost?C>80?"near limit":"clear":"unknown"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:322,columnNumber:41},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:322,columnNumber:19},this),f.jsxDEV("div",{children:[f.jsxDEV("dt",{children:"Approval load"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:323,columnNumber:24},this),f.jsxDEV("dd",{children:[I.approvals.length," pending"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:323,columnNumber:46},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:323,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:320,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:314,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:275,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:150,columnNumber:11},this):f.jsxDEV("div",{className:"card warn-card",children:[f.jsxDEV("h3",{children:"No stack connected"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:132,columnNumber:13},this),I.executor?f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{children:["Bridge is connected to a real executor at ",f.jsxDEV("code",{children:I.executor},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:135,columnNumber:62},this),", but that executor is not reporting any registered instances or agents."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:135,columnNumber:17},this),I.inventoryWarning&&f.jsxDEV("p",{className:"warn",children:["Inventory note: ",I.inventoryWarning]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:136,columnNumber:41},this),f.jsxDEV("div",{className:"cta-row",children:[f.jsxDEV("button",{className:"cta",onClick:z,children:"+ Launch instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:138,columnNumber:19},this),f.jsxDEV("button",{onClick:()=>G("inventory"),children:"Open inventory"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:139,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:137,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:134,columnNumber:15},this):f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{children:"Cockpit talks to a real agentic-sandbox executor. Start the executor, then point the Bridge at it:"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:144,columnNumber:17},this),f.jsxDEV("pre",{className:"terminal",children:"AIWG_COCKPIT_EXECUTOR_URL=http://127.0.0.1:<executor-port> node apps/cockpit/bridge/src/server.mjs"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:145,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:143,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:131,columnNumber:11},this):f.jsxDEV("p",{className:"empty",children:"Checking your stacks…"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:129,columnNumber:14},this),ne&&f.jsxDEV("div",{className:"card tour",children:[f.jsxDEV("h3",{children:"Three things to know"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:332,columnNumber:11},this),f.jsxDEV("ol",{children:[f.jsxDEV("li",{children:[f.jsxDEV("strong",{children:"Sessions"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:334,columnNumber:17},this)," are where work happens — attach to observe, take the wheel to drive. Output mirrors to every viewer."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:334,columnNumber:13},this),f.jsxDEV("li",{children:[f.jsxDEV("strong",{children:"Actions"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:335,columnNumber:17},this)," and the ",f.jsxDEV("strong",{children:"+ capability picker"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:335,columnNumber:50},this)," drop a command into a session; the agent runs it. The Cockpit never runs the CLI."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:335,columnNumber:13},this),f.jsxDEV("li",{children:[f.jsxDEV("strong",{children:"Explore"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:336,columnNumber:17},this)," browses the read-only AIWG catalog. Your own copied/imported assets live in your library — AIWG files are never overwritten."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:336,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:333,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:331,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Welcome.tsx",lineNumber:105,columnNumber:5},this)}function wN(O){const z=O.admin_error;return[O.degraded_admin_inventory,z==null?void 0:z.code,z==null?void 0:z.title,z==null?void 0:z.detail].filter(Boolean).join(" · ")||void 0}function SN(O){var G;const z=lr(((G=O.runtime_posture)==null?void 0:G.kind)??O.runtime);return z==="host"?"terminal":z==="vm"||z==="container"?"cube":"window"}function EN(O){let z=0;for(const G of O)z+=G.charCodeAt(0);return z%4+1}function NN(O){return{"--x":`${O.x}%`,"--y":`${O.y}%`}}function CN(){return new URLSearchParams(window.location.search).get("wall")==="handoff"?"handoff":"topology"}function xN(O){var _,S;const z=(O==null?void 0:O.instances.filter(d=>d.state==="running"))??[],G=O==null?void 0:O.instances.find(d=>{var m;return lr(((m=d.runtime_posture)==null?void 0:m.kind)??d.runtime)==="host"}),I=O==null?void 0:O.instances.find(d=>{var m;return lr(((m=d.runtime_posture)==null?void 0:m.kind)??d.runtime)==="container"}),Z=O==null?void 0:O.instances.find(d=>{var m;return lr(((m=d.runtime_posture)==null?void 0:m.kind)??d.runtime)==="vm"}),ne=(O==null?void 0:O.instances.some(d=>d.session_backends.some(m=>m.available&&m.drive)))??!1,W=(O==null?void 0:O.approvals.length)??0,c=(S=(_=O==null?void 0:O.cost)==null?void 0:_.total)==null?void 0:S.usd;return[{key:"host",label:(G==null?void 0:G.loadout)||"Host CLI",meta:G?`${lt(G.id)} · ${G.state}`:"not connected",family:"host",tab:"inventory",state:G?"running":"blocked"},{key:"vm",label:(Z==null?void 0:Z.loadout)||"VM sandbox",meta:Z?`${lt(Z.id)} · ${Z.state}`:"not connected",family:"vm",tab:"inventory",state:Z?"running":"blocked"},{key:"container",label:(I==null?void 0:I.loadout)||"Docker runtime",meta:I?`${lt(I.id)} · ${I.state}`:"not connected",family:"container",tab:"inventory",state:I?"running":"blocked"},{key:"mission",label:"Mission handoff",meta:O!=null&&O.running[0]?`${lt(O.running[0].task_id)} · ${O.running[0].state}`:"ready",family:"mission",tab:"running",state:O!=null&&O.running.length?"running":"ready"},{key:"approvals",label:"Approvals",meta:W?`${W} pending`:"clear",family:"approval",tab:"approvals",state:W?"attention":"ready"},{key:"cost",label:"Cost & quota",meta:c===void 0?"metrics n/a":`$${c.toFixed(2)}`,family:"cost",tab:"running",state:c===void 0?"idle":"ready"},{key:"capabilities",label:"Capability search",meta:"catalog ready",family:"capability",tab:"explore",state:"ready"},{key:"library",label:"Library",meta:"workspace assets",family:"library",tab:"library",state:"ready"},{key:"actions",label:"Actions",meta:ne?"drive available":"observe first",family:"action",tab:"actions",state:ne?"ready":"idle"},{key:"sessions",label:"Sessions",meta:z.length?`${z.length} attachable`:"none active",family:"session",tab:"sessions",state:z.length?"running":"idle"},{key:"inventory",label:"Inventory",meta:`${(O==null?void 0:O.instances.length)??0} registered`,family:"inventory",tab:"inventory",state:O!=null&&O.instances.length?"ready":"idle"}].map((d,m)=>({...d,x:Jy[m][0],y:Jy[m][1]}))}function DN({onStartSession:O,onLaunchInstance:z,refreshTick:G=0,refreshMs:I=5e3}){const[Z,ne]=ie.useState(null),[W,c]=ie.useState(""),[b,_]=ie.useState(""),[S,d]=ie.useState(""),m=ie.useCallback(()=>{He("/api/inventory").then(E=>{ne(E),c("")}).catch(E=>c(E.message))},[]);ie.useEffect(()=>{m();const E=window.setInterval(m,I);return()=>window.clearInterval(E)},[m,I,G]);const y=(E,v,u="")=>He(E,{method:v}).then(h=>{_(""),d(h.message??(h.already_gone?"Instance already removed; inventory refreshed.":u)),m()}).catch(h=>{d(""),_(h.message)});return W?f.jsxDEV("p",{className:"err",children:["Could not load inventory: ",W]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:37,columnNumber:19},this):Z?Z.instances.length?f.jsxDEV(f.Fragment,{children:[f.jsxDEV("div",{className:"section-toolbar",children:[f.jsxDEV("div",{children:[f.jsxDEV("h2",{children:"Agent instances"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:53,columnNumber:11},this),f.jsxDEV("p",{className:"hint",children:[Z.count," ",Z.count===1?"target":"targets"," · ",new Date(Z.fetched_at).toLocaleTimeString()]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:54,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:52,columnNumber:9},this),z&&f.jsxDEV("button",{className:"cta",onClick:z,children:"New instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:56,columnNumber:30},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:51,columnNumber:7},this),b&&f.jsxDEV("p",{className:"err",children:["Action failed: ",b]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:58,columnNumber:21},this),S&&f.jsxDEV("p",{className:"hint",role:"status",children:S},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:59,columnNumber:21},this),f.jsxDEV("table",{className:"inventory-table",children:[f.jsxDEV("caption",{children:"Available instance deployments"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:61,columnNumber:9},this),f.jsxDEV("thead",{children:f.jsxDEV("tr",{children:[f.jsxDEV("th",{scope:"col",children:"Instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:64,columnNumber:13},this),f.jsxDEV("th",{scope:"col",children:"Runtime"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:64,columnNumber:42},this),f.jsxDEV("th",{scope:"col",children:"Loadout"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:64,columnNumber:70},this),f.jsxDEV("th",{scope:"col",children:"Transport"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:65,columnNumber:13},this),f.jsxDEV("th",{scope:"col",children:"Host daemon"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:65,columnNumber:43},this),f.jsxDEV("th",{scope:"col",children:"State"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:65,columnNumber:75},this),f.jsxDEV("th",{scope:"col",children:"Tenant"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:65,columnNumber:101},this),f.jsxDEV("th",{scope:"col",children:"Manage"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:65,columnNumber:128},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:63,columnNumber:11},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:62,columnNumber:9},this),f.jsxDEV("tbody",{children:Z.instances.map(E=>f.jsxDEV("tr",{children:(()=>{var a,g,N,C,D,w,k;const v=(a=E.session_backends)==null?void 0:a.some(M=>M.available),u=(N=(g=E.session_backends)==null?void 0:g.find(M=>!M.available))==null?void 0:N.reason,h=kN(E),o=RN(E);return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("td",{className:"instance-cell",children:[f.jsxDEV("code",{title:E.id,children:((C=E.launch_context)==null?void 0:C.name)??lt(E.id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:83,columnNumber:17},this),((D=E.launch_context)==null?void 0:D.name)&&f.jsxDEV("div",{className:"cell-note",children:lt(E.id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:84,columnNumber:44},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:82,columnNumber:15},this),f.jsxDEV("td",{className:"runtime-cell",children:[f.jsxDEV("span",{className:`badge isolation-${E.runtime_posture.isolation}`,title:E.runtime_posture.warning||E.runtime_posture.label,children:E.runtime_posture.label},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:87,columnNumber:17},this),E.runtime_posture.warning&&f.jsxDEV("div",{className:"cell-note",children:E.runtime_posture.warning},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:90,columnNumber:47},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:86,columnNumber:15},this),f.jsxDEV("td",{children:[E.loadout,((w=E.launch_context)==null?void 0:w.image_ref)&&f.jsxDEV("div",{className:"cell-note",children:E.launch_context.image_ref},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:94,columnNumber:49},this),((k=E.launch_context)==null?void 0:k.source)&&f.jsxDEV("div",{className:"cell-note",children:E.launch_context.source},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:95,columnNumber:46},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:92,columnNumber:15},this),f.jsxDEV("td",{children:[f.jsxDEV("span",{className:`badge trust-${E.transport.trust}`,title:`${E.transport.source}${E.transport.evidence?`: ${E.transport.evidence}`:""}`,children:E.transport.label},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:98,columnNumber:17},this),f.jsxDEV("div",{className:"cell-note",children:[E.transport.mode,E.transport.stale?" · stale":""]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:101,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:97,columnNumber:15},this),f.jsxDEV("td",{className:"daemon-cell",children:[f.jsxDEV("span",{className:`badge daemon-${E.host_daemon.status}`,children:E.host_daemon.status.replace("_"," ")},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:104,columnNumber:17},this),E.host_daemon.detail&&f.jsxDEV("div",{className:"cell-note",children:E.host_daemon.detail},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:105,columnNumber:42},this),E.host_daemon.operator_command&&f.jsxDEV("code",{title:"Operator start command",children:E.host_daemon.operator_command},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:106,columnNumber:52},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:103,columnNumber:15},this),f.jsxDEV("td",{children:[f.jsxDEV("span",{className:`state ${o.kind==="stale-agent"?"degraded":E.state}`,title:o.detail,children:[f.jsxDEV("span",{className:"dot","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:110,columnNumber:19},this),o.label]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:109,columnNumber:17},this),o.detail&&o.kind!=="healthy"&&f.jsxDEV("div",{className:"cell-note",children:o.detail},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:112,columnNumber:64},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:108,columnNumber:15},this),f.jsxDEV("td",{children:E.tenant},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:114,columnNumber:15},this),f.jsxDEV("td",{className:"manage-actions",children:[E.state==="running"&&O&&f.jsxDEV("button",{className:"cta","aria-label":`Start session on ${lt(E.id)}`,disabled:!v,title:v?void 0:u,onClick:()=>O(E.id),children:"Session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:117,columnNumber:19},this)," ",h&&f.jsxDEV("button",{"aria-label":`Reconnect agent for ${lt(E.id)}`,title:u??"Ask the running agent to re-register without restarting the instance.",onClick:()=>y(`/api/instances/${encodeURIComponent(E.id)}/reconnect`,"POST","Reconnect requested; inventory will refresh shortly."),children:"Reconnect"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:128,columnNumber:19},this)," ",E.state==="running"?f.jsxDEV("button",{"aria-label":`Stop instance ${lt(E.id)}`,onClick:()=>y(`/api/instances/${encodeURIComponent(E.id)}/stop`,"POST"),children:"Stop"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:137,columnNumber:21},this):f.jsxDEV("button",{"aria-label":`Start instance ${lt(E.id)}`,onClick:()=>y(`/api/instances/${encodeURIComponent(E.id)}/start`,"POST"),children:"Start"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:138,columnNumber:21},this)," ",f.jsxDEV("button",{"aria-label":`Destroy instance ${lt(E.id)}`,title:E.state!=="running"&&E.runtime==="docker"?"Stopped Docker row — Destroy removes the container directly (admin-v2 has no instance record).":void 0,onClick:()=>{confirm(`Destroy ${lt(E.id)}? This cannot be undone.`)&&y(`/api/instances/${encodeURIComponent(E.id)}`,"DELETE")},children:"Destroy"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:139,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:115,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:81,columnNumber:13},this)})()},E.id,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:70,columnNumber:13},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:68,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:60,columnNumber:7},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:50,columnNumber:5},this):f.jsxDEV("section",{className:"empty-state",children:[f.jsxDEV("h2",{children:"No instances"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:42,columnNumber:9},this),f.jsxDEV("p",{className:"hint",children:"Bridge is connected, but no host, Docker, or VM targets are registered."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:43,columnNumber:9},this),z&&f.jsxDEV("button",{className:"cta",onClick:z,children:"+ New instance + session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:44,columnNumber:30},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:41,columnNumber:7},this):f.jsxDEV("p",{className:"empty",children:"Loading…"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Inventory.tsx",lineNumber:38,columnNumber:21},this)}const ON=["docker","container","vm","qemu","kvm"];function kN(O){var Z,ne;const z=String(((Z=O.runtime_posture)==null?void 0:Z.kind)??O.runtime).toLowerCase(),G=String(O.state).toLowerCase()==="running",I=O.agent_ready===!1||((ne=O.session_backends)==null?void 0:ne.some(W=>W.available===!1));return G&&ON.includes(z)&&!!I}function RN(O){var Z,ne;const z=String(O.state).toLowerCase()==="running",G=(ne=(Z=O.session_backends)==null?void 0:Z.find(W=>W.available===!1))==null?void 0:ne.reason,I=O.agent_ready===!1||!!G;return z&&I?{kind:"stale-agent",label:"agent unreachable",detail:G??"Runtime is still running, but the agent is not registered."}:{kind:"healthy",label:O.state}}function TN({refreshTick:O=0}){const[z,G]=ie.useState(null),[I,Z]=ie.useState(null),[ne,W]=ie.useState(""),c=ie.useCallback(()=>{He("/api/running").then(_=>{G(_),W("")}).catch(_=>W(_.message)),He("/api/cost").then(Z).catch(()=>Z(null))},[]);ie.useEffect(()=>{c()},[c,O]);const b=_=>He(`/api/tasks/${encodeURIComponent(_.instance_id)}/${encodeURIComponent(_.task_id)}/cancel`,{method:"POST"}).then(c).catch(S=>alert(S.message));return ne?f.jsxDEV("p",{className:"err",children:["Could not load running: ",ne]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:23,columnNumber:19},this):z?f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:[f.jsxDEV("strong",{children:"Fleet overview."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:29,columnNumber:9},this)," Every task running across all stacks — a read-only board. To attach to one and observe or drive it, open it in ",f.jsxDEV("strong",{children:"Sessions"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:30,columnNumber:59},this)," (the attached workspace)."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:28,columnNumber:7},this),I&&f.jsxDEV("p",{className:"hint",children:["Spend across stacks: ",f.jsxDEV("strong",{children:["$",I.total.usd.toFixed(2)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:33,columnNumber:50},this)," · ",(I.total.input_tokens+I.total.output_tokens).toLocaleString()," tokens"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:33,columnNumber:9},this),z.running.length?f.jsxDEV("table",{children:[f.jsxDEV("caption",{children:["Running across all stacks — ",z.count," task(s)"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:39,columnNumber:13},this),f.jsxDEV("thead",{children:f.jsxDEV("tr",{children:[f.jsxDEV("th",{scope:"col",children:"Instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:19},this),f.jsxDEV("th",{scope:"col",children:"Runtime"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:48},this),f.jsxDEV("th",{scope:"col",children:"Transport"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:76},this),f.jsxDEV("th",{scope:"col",children:"Task"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:106},this),f.jsxDEV("th",{scope:"col",children:"State"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:131},this),f.jsxDEV("th",{scope:"col",children:"Tenant"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:157},this),f.jsxDEV("th",{scope:"col",children:"Control"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:184},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:41,columnNumber:15},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:40,columnNumber:13},this),f.jsxDEV("tbody",{children:z.running.map(_=>f.jsxDEV("tr",{children:[f.jsxDEV("td",{children:f.jsxDEV("code",{title:_.instance_id,children:lt(_.instance_id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:46,columnNumber:23},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:46,columnNumber:19},this),f.jsxDEV("td",{children:_.runtime_posture?f.jsxDEV("span",{className:`badge isolation-${_.runtime_posture.isolation}`,title:_.runtime_posture.warning||_.runtime_posture.label,children:_.runtime_posture.label},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:47,columnNumber:44},this):f.jsxDEV("span",{className:"badge",children:"unknown"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:47,columnNumber:207},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:47,columnNumber:19},this),f.jsxDEV("td",{children:_.transport?f.jsxDEV("span",{className:`badge trust-${_.transport.trust}`,children:_.transport.label},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:48,columnNumber:38},this):f.jsxDEV("span",{className:"badge",children:"unknown"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:48,columnNumber:120},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:48,columnNumber:19},this),f.jsxDEV("td",{children:f.jsxDEV("code",{title:_.task_id,children:lt(_.task_id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:49,columnNumber:23},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:49,columnNumber:19},this),f.jsxDEV("td",{children:f.jsxDEV("span",{className:`state ${_.state}`,children:[f.jsxDEV("span",{className:"dot","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:50,columnNumber:60},this),_.state]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:50,columnNumber:23},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:50,columnNumber:19},this),f.jsxDEV("td",{children:_.tenant},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:51,columnNumber:19},this),f.jsxDEV("td",{children:f.jsxDEV("button",{"aria-label":`Stop task ${lt(_.task_id)}`,onClick:()=>b(_),children:"Stop"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:52,columnNumber:23},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:52,columnNumber:19},this)]},_.task_id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:45,columnNumber:17},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:43,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:38,columnNumber:11},this):f.jsxDEV("p",{className:"empty",children:"Nothing running yet — use “Start a session” (top right or Home) to put an agent to work."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:36,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:27,columnNumber:5},this):f.jsxDEV("p",{className:"empty",children:"Loading…"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Running.tsx",lineNumber:24,columnNumber:20},this)}function AN({refreshTick:O=0}){const[z,G]=ie.useState(null),[I,Z]=ie.useState(""),[ne,W]=ie.useState(null),c=ie.useCallback(()=>{He("/api/missions").then(S=>{G(S),Z(""),W(d=>{var m;return d??((m=S.sessions[0])==null?void 0:m.id)??null})}).catch(S=>Z(S.message))},[]);if(ie.useEffect(()=>{c()},[c,O]),I)return f.jsxDEV("p",{className:"err",children:["Could not load Missions: ",I]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:23,columnNumber:19},this);if(!z)return f.jsxDEV("p",{className:"empty",children:"Loading..."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:24,columnNumber:21},this);const b=z.sessions.find(S=>S.id===ne)??z.sessions[0]??null,_=UN(z.missions);return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:["Durable Mission Control state and live executor work share one projection. Cockpit reads",f.jsxDEV("code",{children:" aiwg mc "},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:33,columnNumber:9},this)," sessions and audit logs; the conductor remains the owner of durability."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:31,columnNumber:7},this),f.jsxDEV("div",{className:"mission-summary","aria-label":"Mission status summary",children:[f.jsxDEV("span",{children:[f.jsxDEV("strong",{children:z.count},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:36,columnNumber:15},this)," total"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:36,columnNumber:9},this),f.jsxDEV("span",{children:[f.jsxDEV("strong",{children:_.active},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:37,columnNumber:15},this)," active"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:37,columnNumber:9},this),f.jsxDEV("span",{children:[f.jsxDEV("strong",{children:_.awaiting},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:38,columnNumber:15},this)," awaiting approval"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:38,columnNumber:9},this),f.jsxDEV("span",{children:[f.jsxDEV("strong",{children:_.terminal},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:39,columnNumber:15},this)," terminal"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:39,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:35,columnNumber:7},this),z.sessions.length?f.jsxDEV("div",{className:"missions-layout",children:[f.jsxDEV("aside",{className:"mission-sessions","aria-label":"Mission sessions",children:z.sessions.map(S=>f.jsxDEV("button",{className:S.id===(b==null?void 0:b.id)?"selected":"",onClick:()=>W(S.id),"aria-pressed":S.id===(b==null?void 0:b.id),children:[f.jsxDEV("span",{children:S.name},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:51,columnNumber:17},this),f.jsxDEV("small",{children:[S.source," · ",S.missions.length]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:52,columnNumber:17},this)]},S.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:45,columnNumber:15},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:43,columnNumber:11},this),b&&f.jsxDEV(MN,{session:b},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:56,columnNumber:22},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:42,columnNumber:9},this):f.jsxDEV("p",{className:"empty",children:"No Mission Control sessions or live executor tasks are visible yet."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:41,columnNumber:32},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:30,columnNumber:5},this)}function MN({session:O}){return f.jsxDEV("section",{className:"mission-detail","aria-label":`${O.name} missions`,children:[f.jsxDEV("div",{className:"mission-detail-head",children:[f.jsxDEV("div",{children:[f.jsxDEV("h2",{children:O.name},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:68,columnNumber:11},this),f.jsxDEV("p",{children:[O.source," · ",O.state,O.updated_at?` · updated ${new Date(O.updated_at).toLocaleString()}`:""]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:67,columnNumber:9},this),f.jsxDEV("span",{className:"badge",children:[O.audit_count," audit events"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:71,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:66,columnNumber:7},this),O.missions.length?f.jsxDEV("table",{children:[f.jsxDEV("caption",{children:[O.missions.length," mission projection(s)"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:75,columnNumber:11},this),f.jsxDEV("thead",{children:f.jsxDEV("tr",{children:[f.jsxDEV("th",{scope:"col",children:"Mission"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:77,columnNumber:17},this),f.jsxDEV("th",{scope:"col",children:"Status"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:77,columnNumber:45},this),f.jsxDEV("th",{scope:"col",children:"Source"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:77,columnNumber:72},this),f.jsxDEV("th",{scope:"col",children:"Loop"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:77,columnNumber:99},this),f.jsxDEV("th",{scope:"col",children:"Backing"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:77,columnNumber:124},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:77,columnNumber:13},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:76,columnNumber:11},this),f.jsxDEV("tbody",{children:O.missions.map(z=>f.jsxDEV("tr",{children:[f.jsxDEV("td",{children:[f.jsxDEV("strong",{children:z.title},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:83,columnNumber:19},this),z.completion&&f.jsxDEV("small",{className:"block",children:["Done when: ",z.completion]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:84,columnNumber:36},this),z.error&&f.jsxDEV("small",{className:"block err",children:z.error},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:85,columnNumber:31},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:82,columnNumber:17},this),f.jsxDEV("td",{children:f.jsxDEV("span",{className:`state ${zN(z.status)}`,children:[f.jsxDEV("span",{className:"dot","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:87,columnNumber:72},this),z.status]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:87,columnNumber:21},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:87,columnNumber:17},this),f.jsxDEV("td",{children:z.source},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:88,columnNumber:17},this),f.jsxDEV("td",{children:LN(z)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:89,columnNumber:17},this),f.jsxDEV("td",{children:jN(z)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:90,columnNumber:17},this)]},z.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:81,columnNumber:15},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:74,columnNumber:9},this):f.jsxDEV("p",{className:"empty",children:"This session has no missions."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:73,columnNumber:35},this),O.audit_tail.length>0&&f.jsxDEV("section",{className:"audit-tail","aria-label":"Mission audit tail",children:[f.jsxDEV("h3",{children:"Audit Tail"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:98,columnNumber:11},this),O.audit_tail.map((z,G)=>f.jsxDEV("p",{children:[f.jsxDEV("code",{children:z.ts?new Date(z.ts).toLocaleTimeString():"event"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:101,columnNumber:15},this)," ",String(z.event??"mission_event"),z.missionId||z.mission_id?f.jsxDEV(f.Fragment,{children:[" · ",f.jsxDEV("code",{children:lt(String(z.missionId??z.mission_id))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:103,columnNumber:59},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:103,columnNumber:54},this):null]},`${z.ts??"event"}-${G}`,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:100,columnNumber:13},this))]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:97,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Missions.tsx",lineNumber:65,columnNumber:5},this)}function UN(O){return O.reduce((z,G)=>((G.status==="awaiting-approval"||G.status==="input-required")&&(z.awaiting+=1),G.terminal?z.terminal+=1:z.active+=1,z),{active:0,awaiting:0,terminal:0})}function zN(O){return O.replace(/[^a-z0-9_-]/gi,"-")}function LN(O){return O.loop===void 0&&!O.max_iterations?"-":`${O.loop??0}/${O.max_iterations??"?"}`}function jN(O){return O.ralph_loop_id?`Ralph ${lt(O.ralph_loop_id)}`:O.task_id&&O.instance_id?`${lt(O.instance_id)} / ${lt(O.task_id)}`:O.target_agent?lt(O.target_agent):"-"}function BN(O,z=300){const[G,I]=ie.useState(O);return ie.useEffect(()=>{const Z=setTimeout(()=>I(O),z);return()=>clearTimeout(Z)},[O,z]),G}const VN=["all","skill","agent","command","rule","flow"];function Gm({onPick:O,autoFocus:z,compact:G}){const[I,Z]=ie.useState(""),[ne,W]=ie.useState("all"),[c,b]=ie.useState(null),[_,S]=ie.useState(""),d=BN(I,300),m=ie.useRef(null);return ie.useEffect(()=>{var y;z&&((y=m.current)==null||y.focus())},[z]),ie.useEffect(()=>{const y=E=>{var v;(E.ctrlKey||E.metaKey)&&E.key==="k"&&(E.preventDefault(),(v=m.current)==null||v.focus())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[]),ie.useEffect(()=>{const y=d.trim();if(!y){b(null);return}let E=!0;return He(`/api/capabilities?q=${encodeURIComponent(y)}&type=${encodeURIComponent(ne)}&limit=12`).then(v=>{E&&(b(v.results),S(""))}).catch(v=>{E&&S(v.message)}),()=>{E=!1}},[d,ne]),f.jsxDEV("div",{children:[f.jsxDEV("div",{className:"controls",children:[f.jsxDEV("input",{ref:m,type:"search",value:I,onChange:y=>Z(y.target.value),placeholder:"Search capabilities… (Ctrl/⌘-K)","aria-label":"Search capabilities",style:{minWidth:G?220:300}},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:44,columnNumber:9},this),f.jsxDEV("select",{value:ne,onChange:y=>W(y.target.value),"aria-label":"Capability type filter",children:VN.map(y=>f.jsxDEV("option",{value:y,children:y},y,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:47,columnNumber:29},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:46,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:43,columnNumber:7},this),_&&f.jsxDEV("p",{className:"err",children:_},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:50,columnNumber:15},this),c===null?f.jsxDEV("p",{className:"hint",children:"Type to search skills, agents, commands, rules, flows."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:52,columnNumber:11},this):c.length?f.jsxDEV("div",{className:"capgrid",role:"listbox","aria-label":"Capability results",children:c.map(y=>{var E;return f.jsxDEV("button",{className:"capcard",role:"option","aria-selected":!1,onClick:()=>O(y),children:[f.jsxDEV("div",{className:"capcard-head",children:[f.jsxDEV("span",{className:"badge",children:y.type},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:60,columnNumber:21},this)," ",f.jsxDEV("strong",{children:y.name},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:60,columnNumber:61},this),f.jsxDEV("span",{className:"capcard-score",children:(y.score??0).toFixed(2)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:61,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:59,columnNumber:19},this),f.jsxDEV("div",{className:"capcard-cap",children:(y.capability||y.title||"").slice(0,110)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:63,columnNumber:19},this),(E=y.triggers)!=null&&E.length?f.jsxDEV("div",{className:"capcard-tags",children:y.triggers.slice(0,3).map(v=>f.jsxDEV("span",{className:"tag",children:v},v,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:65,columnNumber:88},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:65,columnNumber:23},this):null]},y.path,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:58,columnNumber:17},this)})},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:56,columnNumber:13},this):f.jsxDEV("p",{className:"empty",children:"No matches."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:54,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/CapabilitySearch.tsx",lineNumber:42,columnNumber:5},this)}const aw={needed:!1,prompt:"",since:null,source:"snapshot"};let Qu={activeKey:null,entries:{}};const Ym=new Set;function Zu(O,z){return`${O}:${z}`}function lw(O){return Zu(O.instance_id,O.id)}function HN(O){return Ym.add(O),()=>Ym.delete(O)}function Fm(){return Qu}function Xm(){return ie.useSyncExternalStore(HN,Fm,Fm)}function IN(O){return Object.values(O.entries).filter(z=>z.responseNeeded.needed).map(z=>({id:`pty:${z.key}`,instance_id:z.instanceId,prompt:z.responseNeeded.prompt,source:z.responseNeeded.source,status:"response-needed",attach_url:z.metadata.attach_url}))}function $N(O,z=new Date().toISOString()){O.length&&Qm(G=>{const I={...G.entries};for(const Z of O){const ne=lw(Z),W=I[ne];I[ne]={key:ne,instanceId:Z.instance_id,sessionId:Z.id,metadata:{...(W==null?void 0:W.metadata)??{},...Z},lastOutputAt:(W==null?void 0:W.lastOutputAt)??null,unread:(W==null?void 0:W.unread)??!1,responseNeeded:(W==null?void 0:W.responseNeeded)??aw,snapshot:(W==null?void 0:W.snapshot)??null,attached:(W==null?void 0:W.attached)??!1,updatedAt:z}}return{...G,entries:I}})}function qm(O,z,G=new Date().toISOString()){const I=O&&z?Zu(O,z):null;Qm(Z=>{const ne={...Z.entries};for(const[W,c]of Object.entries(ne))c.attached!==(W===I)&&(ne[W]={...c,attached:W===I,updatedAt:G});return{activeKey:I,entries:ne}})}function qN(O,z,G=new Date().toISOString()){const I=Zu(O,z);cw(I,Z=>({...Z,unread:!1,updatedAt:G}))}function PN(O,z,G,I={}){const Z=Zu(O,z),ne=I.now??new Date().toISOString();cw(Z,W=>{var d;const c=((d=W.snapshot)==null?void 0:d.text)??"",b=G,_=b!==c,S=GN(b);return{...W,lastOutputAt:_?ne:W.lastOutputAt,unread:W.attached?!1:W.unread||_,responseNeeded:S?{needed:!0,prompt:S,since:W.responseNeeded.prompt===S?W.responseNeeded.since:ne,source:I.source??"snapshot"}:{...aw,source:I.source??"snapshot"},snapshot:{text:b,lines:YN(b),fetchedAt:ne,seq:I.seq},updatedAt:ne}})}function cw(O,z){Qm(G=>{const I=G.entries[O];return I?{...G,entries:{...G.entries,[O]:z(I)}}:G})}function Qm(O){const z=O(Qu);z!==Qu&&(Qu=z,WN())}function WN(){for(const O of Ym)O()}function YN(O,z=24){return O.replace(/\r/g,`
|
|
305
|
-
`).split(`
|
|
306
|
-
`).filter(Boolean).slice(-z)}function FN(O){return O.replace(/\x1b\[[0-?]*[ -/]*[@-~]/g,"").replace(/\x1b\][^\x07]*(?:\x07|\x1b\\)/g,"").replace(/\x1b[()][A-Za-z0-9]/g,"")}function GN(O){const G=FN(O).replace(/\r/g,`
|
|
307
|
-
`).split(`
|
|
308
|
-
`).map(ne=>ne.trim()).filter(Boolean).slice(-24),I=G.join(`
|
|
309
|
-
`);return[/Enter to select\b/i,/(?:↑|up)\/(?:↓|down)|arrow keys|navigate/i,/\bEsc to cancel\b/i,/\b(?:y\/n|Y\/n|y\/N|\[y\/N\]|\[Y\/n\])\b/,/\b(?:choose|select|pick) (?:one|an option|a number)\b/i,/\?$/].some(ne=>ne.test(I))?G.slice(-10).join(`
|
|
310
|
-
`).slice(0,900):""}function XN(O=12e3){Xm();const z=ie.useRef(new Set);ie.useEffect(()=>{let G=!1,I;const Z=(W=O)=>{I=window.setTimeout(ne,W)},ne=async()=>{if(G)return;if(document.hidden){Z(O);return}const W=Object.values(Fm().entries).filter(c=>!c.attached).filter(c=>c.metadata.has_screen!==!1).filter(c=>!z.current.has(`${c.instanceId}:${c.sessionId}`));await Promise.all(W.map(async c=>{const b=`${c.instanceId}:${c.sessionId}`;try{const _=await rw(`/api/instances/${encodeURIComponent(c.instanceId)}/sessions/${encodeURIComponent(c.sessionId)}/screen`);if(!_.ok){_.status===404&&z.current.add(b);return}const S=await _.json(),d=String(S.text??S.snapshot??S.screen??S.content??""),m=S.seq??S.sequence??S.anchor_sequence??S.anchorSequence;PN(c.instanceId,c.sessionId,d,{seq:typeof m=="number"?m:void 0})}catch{}})),G||Z(O)};return Z(0),()=>{G=!0,I!==void 0&&window.clearTimeout(I)}},[O])}function QN({session:O,composer:z,setComposer:G,onRequestStart:I,refreshMs:Z=5e3,refreshTick:ne=0}){var Di;const[W,c]=ie.useState([]),[b,_]=ie.useState([]),[S,d]=ie.useState(""),[m,y]=ie.useState(""),[E,v]=ie.useState(""),[u,h]=ie.useState(!1),[o,a]=ie.useState(""),[g,N]=ie.useState(""),[C,D]=ie.useState(""),[w,k]=ie.useState(""),[M,L]=ie.useState(""),H=ie.useRef(""),B=ie.useRef(!1),J=ie.useRef(""),ae=ie.useRef(0),te=ie.useRef(0),de=ie.useRef(0),le=ie.useRef(null),T=Xm();XN(),ie.useEffect(()=>{H.current=S},[S]),ie.useEffect(()=>{B.current=O.state.attached},[O.state.attached]);const V=ge=>{var it;const Te=z&&!z.endsWith(" ")?" ":"";G(z+Te+ow(ge.type,ge.name)),h(!1),(it=le.current)==null||it.focus()},A=ie.useCallback(async()=>{var yt;const ge=ae.current+1;ae.current=ge;const Te=await He("/api/inventory");if(ge!==ae.current)return;const it=eC(Te.instances).filter(dt=>{var Nt;return dt.state==="running"&&((Nt=dt.session_backends)==null?void 0:Nt.length)});c(it);const rt=H.current;let Xe=((yt=it[0])==null?void 0:yt.id)??"";(rt&&it.some(dt=>dt.id===rt)||B.current&&rt)&&(Xe=rt),H.current=Xe,d(Xe),v(dt=>{const Nt=it.find(At=>At.id===Xe)??it[0];if(dt&&(Nt!=null&&Nt.session_backends.some(At=>`${At.mode}:${At.backend}`===dt&&At.available!==!1))||B.current&&dt)return dt;const Ct=(Nt==null?void 0:Nt.session_backends.find(At=>At.available!==!1))??(Nt==null?void 0:Nt.session_backends[0]);return Ct?`${Ct.mode}:${Ct.backend}`:""})},[]);ie.useEffect(()=>{J.current=w||ew(O.state.url)},[w,O.state.url]);const $=ie.useCallback(async ge=>{if(!ge)return;const Te=te.current+1;te.current=Te;const it=await He(`/api/sessions?instance=${encodeURIComponent(ge)}`);if(Te!==te.current||ge!==H.current)return;const rt=it.sessions??[];$N(rt),_(rt),D(""),y(Xe=>Xe&&rt.some(yt=>ar(yt)===Xe)||B.current&&J.current===ge&&Xe?Xe:rt[0]?ar(rt[0]):"")},[]);ie.useEffect(()=>{let ge=!1,Te,it=Z;const rt=yt=>{Te=window.setTimeout(Xe,yt)},Xe=async()=>{if(!ge){if(o){rt(Z);return}try{const yt=H.current;await A(),yt&&yt===H.current&&await $(H.current),it=Z}catch(yt){ge||D(yt.message),it=Math.min(Math.max(Z,it*2),3e4)}ge||rt(it)}};return Xe(),()=>{ge=!0,Te!==void 0&&window.clearTimeout(Te)}},[o,$,A,Z,ne]),ie.useEffect(()=>{S&&(_([]),D(""),$(S).catch(ge=>D(ge.message)))},[S,$]);const ue=O.state.attached,me=O.state.role==="controller"?"controller":"observer",be=W.find(ge=>ge.id===S),Ce=(be==null?void 0:be.session_backends)??[],F=Ce.find(ge=>`${ge.mode}:${ge.backend}`===E)??Ce.find(ge=>ge.available!==!1)??Ce[0],j=(Di=Ce.find(ge=>ge.available===!1))==null?void 0:Di.reason,pe=be?tw(be):!1,se=b.find(ge=>ar(ge)===m),oe=w||ew(O.state.url),ye=oe&&M?`${oe}:${M}`:JN(O.state.url),Ue=O.state.target??(oe&&M?{instanceId:oe,sessionId:M}:null),nt=ue&&oe===S&&M&&!b.some(ge=>ar(ge)===ye)?[...b,{id:M,instance_id:S,attach_url:O.state.url??"",session_name:"attached session",session_backend:F==null?void 0:F.backend,session_class:F==null?void 0:F.mode}]:b,Fe=()=>{O.sendInput(z,Ue)&&G("")},ze=(ge,Te)=>{k(ge.instance_id||S),L(String(ge.id)),qm(ge.instance_id||S,String(ge.id)),O.attach(ge.attach_url,!1,Te,{instanceId:ge.instance_id||S,sessionId:String(ge.id)})},De=(ge,Te)=>{k(ge.instance_id||S),L(String(ge.id)),qm(ge.instance_id||S,String(ge.id)),O.replay(ge.attach_url,Te,{instanceId:ge.instance_id||S,sessionId:String(ge.id)})},Xt=()=>{k(""),L(""),qm(null,null),O.detach()};ie.useEffect(()=>{const ge=b.find(Te=>ar(Te)===m);ge&&qN(ge.instance_id,String(ge.id))},[m,b]),ie.useEffect(()=>{if(!O.state.url||!oe||oe!==S)return;if(b.some(Te=>ar(Te)===ye)){de.current=0;return}b.length&&(de.current+=1,de.current>=2&&Xt())},[ye,oe,S,O.state.url,b]),ie.useEffect(()=>{if(!be)return;if(!be.session_backends.some(Te=>`${Te.mode}:${Te.backend}`===E)){const Te=be.session_backends.find(it=>it.available)??be.session_backends[0];v(Te?`${Te.mode}:${Te.backend}`:"")}},[E,be]);const Ys=async ge=>{const Te=ge??se;if(!be||!Te)return;const it=Te.session_name??Te.id;if(confirm(`End session ${it}? This closes the PTY and detaches connected views.`)){a(Te.id),D("");try{await He(`/api/instances/${encodeURIComponent(be.id)}/sessions/${encodeURIComponent(Te.id)}`,{method:"DELETE"}),ar(Te)===ye&&Xt(),await $(be.id)}catch(rt){D(rt.message)}finally{a("")}}},xe=async()=>{if(be){N(be.id),D("");try{await He(`/api/instances/${encodeURIComponent(be.id)}/reconnect`,{method:"POST"}),await A(),await $(be.id)}catch(ge){D(ge.message)}finally{N("")}}};return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:[f.jsxDEV("strong",{children:"Workspace."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:242,columnNumber:9},this)," Pick an instance on the left, then a session under it to observe or drive. Start a new session per instance, or open a live task from the ",f.jsxDEV("strong",{children:"Running"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:243,columnNumber:72},this)," fleet board."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:241,columnNumber:7},this),f.jsxDEV("div",{className:"session-workspace",children:[f.jsxDEV("aside",{className:"session-nav","aria-label":"Instances and sessions",children:[f.jsxDEV("div",{className:"session-nav-head",children:[f.jsxDEV("h2",{children:"Instances"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:249,columnNumber:13},this),f.jsxDEV("span",{className:"hint",children:W.length},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:250,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:248,columnNumber:11},this),!W.length&&f.jsxDEV("p",{className:"empty",children:"No running instances with session metadata."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:252,columnNumber:33},this),f.jsxDEV("ul",{className:"nav-list",children:W.map(ge=>{var rt;const Te=ge.id===S,it=((rt=ge.launch_context)==null?void 0:rt.name)??lt(ge.id);return f.jsxDEV("li",{className:`nav-instance${Te?" selected":""}`,children:[f.jsxDEV("button",{className:"nav-instance-row","aria-expanded":Te,onClick:()=>d(ge.id),title:ge.id,children:[f.jsxDEV("span",{className:`badge isolation-${ge.runtime_posture.isolation}`,children:ge.runtime},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:260,columnNumber:21},this),f.jsxDEV("span",{className:"nav-instance-name",children:it},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:261,columnNumber:21},this),f.jsxDEV("span",{className:`state ${ge.state}`,children:[f.jsxDEV("span",{className:"dot","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:262,columnNumber:58},this),ge.state]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:262,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:259,columnNumber:19},this),Te&&f.jsxDEV("div",{className:"nav-sessions",children:[nt.length===0&&f.jsxDEV("p",{className:"empty nav-empty",children:tw(ge)?"Agent unreachable; reconnect to recover existing sessions.":"No sessions yet."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:267,columnNumber:25},this),f.jsxDEV("ul",{children:nt.map(Xe=>{const yt=ar(Xe),dt=yt===m,Nt=yt===ye&&ue,Ct=T.entries[lw(Xe)];return f.jsxDEV("li",{children:[f.jsxDEV("button",{className:`nav-session${dt?" selected":""}${Nt?" live":""}`,onClick:()=>{const At=O.state.role==="controller"&&(F==null?void 0:F.drive)!==!1?"controller":"observer";y(yt),yt===ye&&ue?De(Xe,At):ze(Xe,At)},title:Xe.id,children:[f.jsxDEV("span",{className:"nav-session-name",children:Pm(Xe)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:296,columnNumber:33},this),f.jsxDEV("span",{className:"nav-session-meta",children:KN(Xe)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:297,columnNumber:33},this),ZN(Xe)&&f.jsxDEV("span",{className:"badge controller",title:"A controller is connected",children:"ctrl"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:298,columnNumber:63},this),(Ct==null?void 0:Ct.unread)&&f.jsxDEV("span",{className:"badge unread",title:"Unread output",children:"unread"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:299,columnNumber:59},this),(Ct==null?void 0:Ct.responseNeeded.needed)&&f.jsxDEV("span",{className:"badge response",title:"Response needed",children:"response"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:300,columnNumber:74},this),Nt&&f.jsxDEV("span",{className:"badge live-dot",title:"Attached here",children:"●"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:301,columnNumber:42},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:279,columnNumber:31},this),f.jsxDEV("button",{className:"nav-session-end","aria-label":`End session ${Pm(Xe)}`,title:"End this PTY session",disabled:o===Xe.id,onClick:()=>Ys(Xe),children:o===Xe.id?"…":"×"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:303,columnNumber:31},this)]},Xe.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:278,columnNumber:29},this)})},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:271,columnNumber:23},this),f.jsxDEV("button",{className:"cta-sm nav-new-session",disabled:Ce.length>0&&(F==null?void 0:F.available)===!1,onClick:()=>I(ge.id),children:"+ New session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:316,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:265,columnNumber:21},this)]},ge.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:258,columnNumber:17},this)})},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:253,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:247,columnNumber:9},this),f.jsxDEV("section",{className:"session-main",children:[f.jsxDEV("div",{className:"controls",children:[Ce.length>1&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"sel-backend",children:"Mode"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:329,columnNumber:17},this),f.jsxDEV("select",{id:"sel-backend",value:E,onChange:ge=>v(ge.target.value),children:Ce.map(ge=>f.jsxDEV("option",{value:`${ge.mode}:${ge.backend}`,disabled:!ge.available,children:[ge.mode," · ",ge.backend,ge.available?"":` — ${ge.reason??"unsupported"}`]},`${ge.mode}:${ge.backend}`,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:331,columnNumber:40},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:330,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:328,columnNumber:15},this),f.jsxDEV("span",{className:"controls-active",title:se==null?void 0:se.id,children:se?Pm(se):"— no session selected —"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:335,columnNumber:13},this),f.jsxDEV("button",{disabled:!se||ue&&O.state.role==="observer",onClick:()=>se&&ze(se,"observer"),children:"Observe"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:336,columnNumber:13},this),f.jsxDEV("button",{disabled:!se||(F==null?void 0:F.drive)===!1||ue&&O.state.role==="controller",onClick:()=>se&&ze(se,"controller"),children:ue&&O.state.role==="observer"?"Take Control":"Drive"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:337,columnNumber:13},this),f.jsxDEV("button",{disabled:!ue||(F==null?void 0:F.keyframe)===!1,onClick:O.requestKeyframe,children:"Keyframe"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:340,columnNumber:13},this),f.jsxDEV("button",{disabled:!ue,onClick:()=>se&&De(se,me),children:"Reattach + replay"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:341,columnNumber:13},this),f.jsxDEV("button",{disabled:!ue,onClick:Xt,children:"Detach"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:342,columnNumber:13},this),pe&&f.jsxDEV("button",{disabled:g===(be==null?void 0:be.id),onClick:xe,children:g===(be==null?void 0:be.id)?"Reconnecting…":"Reconnect"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:344,columnNumber:15},this),O.state.role&&f.jsxDEV("span",{className:`badge ${O.state.role}`,children:O.state.role},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:348,columnNumber:36},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:326,columnNumber:11},this),C&&f.jsxDEV("p",{className:"err",children:["Session action failed: ",C]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:350,columnNumber:26},this),be&&f.jsxDEV("p",{className:"hint",children:[be.runtime_posture.label," · ",be.transport.label," (",be.transport.mode,") · attach starts as observe unless control is explicitly granted.",ue&&O.state.role==="observer"?" Click Take Control to re-attach with write access.":"",F&&!F.available?` ${F.reason??"Selected backend is unavailable."}`:"",pe?` Agent is unreachable while the runtime is still running. ${j??"Reconnect can re-register the agent without restarting the instance."}`:""]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:352,columnNumber:13},this),f.jsxDEV("div",{className:"terminal",ref:O.openTerminal,role:"log","aria-label":"Session output"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:359,columnNumber:11},this),u&&f.jsxDEV("div",{className:"picker",children:[f.jsxDEV("p",{className:"hint",style:{marginTop:0},children:"Pick a capability to insert into the command — then Send to inject it. (Lookup is UI; the agent runs it.)"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:362,columnNumber:15},this),f.jsxDEV(Gm,{compact:!0,autoFocus:!0,onPick:V},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:363,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:361,columnNumber:13},this),f.jsxDEV("div",{className:"inputrow",children:[f.jsxDEV("button",{"aria-label":"Insert a capability",title:"Insert a capability (search)",onClick:()=>h(ge=>!ge),children:"+"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:367,columnNumber:13},this),f.jsxDEV("input",{ref:le,value:z,onChange:ge=>G(ge.target.value),onKeyDown:ge=>{ge.key==="Enter"&&Fe()},placeholder:O.isController?"Type to drive the session…":"Observing — input is read-only",disabled:!O.isController,"aria-label":"Session input"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:368,columnNumber:13},this),f.jsxDEV("button",{disabled:!O.isController,onClick:Fe,children:"Send"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:377,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:366,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:325,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:245,columnNumber:7},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Sessions.tsx",lineNumber:240,columnNumber:5},this)}function Pm(O){return O.session_name??lt(O.id)}function KN(O){const z=`${O.session_class??"managed"}/${O.session_backend??"tmux"}`;if(!O.membership)return z;const G=O.membership.attachment_count;return`${z} · ${G} viewer${G===1?"":"s"}`}function ZN(O){var z;return(((z=O.membership)==null?void 0:z.controllers.length)??0)>0}function ar(O){return`${O.instance_id}:${O.id}`}function JN(O){const z=uw(O);return z?`${z.instanceId}:${z.sessionId}`:""}function uw(O){if(!O)return null;const z=/\/agents\/([^/]+)\/sessions\/([^/]+)\/attach/;try{const I=new URL(O).pathname.match(z);return I?{instanceId:decodeURIComponent(I[1]),sessionId:decodeURIComponent(I[2])}:null}catch{const G=O.match(z);return G?{instanceId:decodeURIComponent(G[1]),sessionId:decodeURIComponent(G[2])}:null}}function ew(O){var z;return((z=uw(O))==null?void 0:z.instanceId)??""}function eC(O){const z=new Set;return O.filter(G=>z.has(G.id)?!1:(z.add(G.id),!0))}const tC=["docker","container","vm","qemu","kvm"];function tw(O){var Z,ne;const z=String(((Z=O.runtime_posture)==null?void 0:Z.kind)??O.runtime).toLowerCase(),G=String(O.state).toLowerCase()==="running",I=O.agent_ready===!1||((ne=O.session_backends)==null?void 0:ne.some(W=>W.available===!1));return G&&tC.includes(z)&&!!I}function iC({refreshTick:O=0,responses:z=[],goSessions:G}){const[I,Z]=ie.useState(null),[ne,W]=ie.useState(""),c=ie.useCallback(()=>{He("/api/approvals?status=pending").then(_=>{Z(_.approvals),W("")}).catch(_=>W(_.message))},[]);ie.useEffect(()=>{c()},[c,O]);const b=(_,S)=>He(`/api/approvals/${encodeURIComponent(_)}?decision=${S}`,{method:"POST"}).then(c).catch(d=>alert(d.message));return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:["Unified response-needed inbox — formal ",f.jsxDEV("code",{children:"hitl-prompt/v1"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:22,columnNumber:66},this)," approvals, provider prompts, and agent sessions waiting for human input."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:22,columnNumber:7},this),ne&&f.jsxDEV("p",{className:"err",children:ne},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:23,columnNumber:15},this),z.length>0&&f.jsxDEV("section",{className:"response-needed","aria-label":"Sessions waiting for response",children:[f.jsxDEV("h2",{children:"Response Needed"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:26,columnNumber:11},this),z.map(_=>f.jsxDEV("article",{className:"response-item",children:[f.jsxDEV("div",{children:[f.jsxDEV("strong",{children:_.source==="pty"?"Interactive session prompt":_.source},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:30,columnNumber:17},this),f.jsxDEV("p",{children:_.prompt},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:31,columnNumber:17},this),f.jsxDEV("span",{children:[f.jsxDEV("code",{children:lt(_.instance_id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:32,columnNumber:23},this)," · ",_.status]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:32,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:29,columnNumber:15},this),G&&f.jsxDEV("button",{onClick:G,children:"Open Session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:34,columnNumber:30},this)]},_.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:28,columnNumber:13},this))]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:25,columnNumber:9},this),I?!I.length&&!z.length?f.jsxDEV("p",{className:"empty",children:"No pending approvals or responses."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:40,columnNumber:48},this):I.length?f.jsxDEV("table",{children:[f.jsxDEV("caption",{children:[I.length," approval request(s) awaiting your decision"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:43,columnNumber:15},this),f.jsxDEV("thead",{children:f.jsxDEV("tr",{children:[f.jsxDEV("th",{scope:"col",children:"Request"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:44,columnNumber:26},this),f.jsxDEV("th",{scope:"col",children:"Risk"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:44,columnNumber:54},this),f.jsxDEV("th",{scope:"col",children:"Instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:44,columnNumber:79},this),f.jsxDEV("th",{scope:"col",children:"Decision"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:44,columnNumber:108},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:44,columnNumber:22},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:44,columnNumber:15},this),f.jsxDEV("tbody",{children:I.map(_=>f.jsxDEV("tr",{children:[f.jsxDEV("td",{children:_.prompt},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:48,columnNumber:21},this),f.jsxDEV("td",{children:f.jsxDEV("span",{className:`badge ${_.risk==="high"?"high":""}`,children:_.risk},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:49,columnNumber:25},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:49,columnNumber:21},this),f.jsxDEV("td",{children:f.jsxDEV("code",{title:_.instance_id,children:lt(_.instance_id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:50,columnNumber:25},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:50,columnNumber:21},this),f.jsxDEV("td",{style:{whiteSpace:"nowrap"},children:[f.jsxDEV("button",{onClick:()=>b(_.id,"approve"),children:"Approve"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:52,columnNumber:23},this)," ",f.jsxDEV("button",{onClick:()=>b(_.id,"deny"),children:"Deny"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:53,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:51,columnNumber:21},this)]},_.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:47,columnNumber:19},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:45,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:42,columnNumber:13},this):null:f.jsxDEV("p",{className:"empty",children:"Loading…"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:39,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Approvals.tsx",lineNumber:21,columnNumber:5},this)}function sC(){const[O,z]=ie.useState(null),[G,I]=ie.useState(null),[Z,ne]=ie.useState("requirements"),[W,c]=ie.useState(null),[b,_]=ie.useState(""),[S,d]=ie.useState(""),m=()=>{He("/api/index/status").then(I).catch(o=>d(o.message))};ie.useEffect(()=>{m()},[]);const y=o=>{z(null),d("");const a=`type=${encodeURIComponent(o.type)}&name=${encodeURIComponent(o.name)}&path=${encodeURIComponent(o.path)}`;He(`/api/show?${a}`).then(z).catch(g=>d(g.message))},E=async()=>{const o=Z.trim();if(o){_("query"),d("");try{c(await He(`/api/index/query?q=${encodeURIComponent(o)}&limit=8`))}catch(a){d(a.message)}finally{_("")}}},v=async()=>{_("rebuild"),d("");try{const o=await He("/api/index/rebuild",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({all:!0})});I(o.status),c(null)}catch(o){d(o.message)}finally{_("")}},u=(G==null?void 0:G.graphs)??[],h=(W==null?void 0:W.results)??[];return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:["Read-only catalog from the AIWG registry — display, not execution. To ",f.jsxDEV("em",{children:"run"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:65,columnNumber:79},this)," a capability, inject it into a session (Actions/Sessions). Search modeled on the fortemi-react patterns."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:64,columnNumber:7},this),S&&f.jsxDEV("p",{className:"err",children:S},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:68,columnNumber:15},this),f.jsxDEV("section",{className:"index-live","aria-label":"Live index status",children:[f.jsxDEV("div",{className:"section-toolbar",children:[f.jsxDEV("div",{children:[f.jsxDEV("h2",{children:"Live Index"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:72,columnNumber:13},this),f.jsxDEV("p",{className:"hint",children:G?`${G.summary.built}/${G.summary.total} graphs built, ${G.summary.missing} missing, ${G.summary.orphans} orphan dirs.`:"Loading index status."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:73,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:71,columnNumber:11},this),f.jsxDEV("div",{className:"manage-actions",children:[f.jsxDEV("button",{onClick:m,disabled:b==="rebuild",children:"Refresh"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:80,columnNumber:13},this),f.jsxDEV("button",{onClick:v,disabled:b==="rebuild",children:b==="rebuild"?"Rebuilding...":"Rebuild all"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:81,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:70,columnNumber:9},this),f.jsxDEV("div",{className:"index-grid",children:u.map(o=>f.jsxDEV("article",{className:o.missing?"index-graph missing":"index-graph",children:[f.jsxDEV("div",{children:[f.jsxDEV("strong",{children:o.name},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:87,columnNumber:20},this)," ",f.jsxDEV("span",{className:"badge",children:o.origin},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:87,columnNumber:46},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:87,columnNumber:15},this),f.jsxDEV("p",{children:[o.built?`${o.entries??0} entries`:"not built",o.ageHours!==null?` · ${o.ageHours}h old`:""]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:88,columnNumber:15},this)]},o.name,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:86,columnNumber:13},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:84,columnNumber:9},this),f.jsxDEV("div",{className:"index-query",children:[f.jsxDEV("label",{children:["Index query",f.jsxDEV("input",{value:Z,onChange:o=>ne(o.target.value),onKeyDown:o=>{o.key==="Enter"&&E()}},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:95,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:93,columnNumber:11},this),f.jsxDEV("button",{onClick:E,disabled:b==="query",children:b==="query"?"Searching...":"Search index"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:92,columnNumber:9},this),W&&f.jsxDEV("div",{className:"index-results","aria-label":"Index query results",children:h.length?h.map(o=>f.jsxDEV("article",{children:[f.jsxDEV("strong",{children:o.title||o.path},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:104,columnNumber:19},this),f.jsxDEV("p",{children:o.summary||o.path},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:105,columnNumber:19},this),f.jsxDEV("small",{children:[o.type||"artifact",o.phase?` · ${o.phase}`:"",typeof o.score=="number"?` · ${o.score.toFixed(2)}`:""]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:106,columnNumber:19},this)]},o.path,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:103,columnNumber:17},this)):f.jsxDEV("p",{className:"empty",children:"No index hits."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:109,columnNumber:17},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:100,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:69,columnNumber:7},this),f.jsxDEV("div",{className:"grid2",children:[f.jsxDEV(Gm,{onPick:y,autoFocus:!0},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:114,columnNumber:9},this),f.jsxDEV("div",{role:"region","aria-label":"Capability detail",children:O?f.jsxDEV(f.Fragment,{children:[f.jsxDEV("div",{style:{marginBottom:8},children:[f.jsxDEV("span",{className:"badge",children:O.type},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:120,columnNumber:50},this)," ",f.jsxDEV("strong",{children:O.name},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:120,columnNumber:93},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:120,columnNumber:17},this),f.jsxDEV("div",{className:"terminal",style:{maxHeight:"52vh"},children:O.body},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:121,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:119,columnNumber:15},this):f.jsxDEV("p",{className:"empty",children:"Select a capability to inspect its definition."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:117,columnNumber:15},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:115,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:113,columnNumber:7},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Explore.tsx",lineNumber:63,columnNumber:5},this)}function nC({session:O,setComposer:z,goSessions:G}){const[I,Z]=ie.useState(null),[ne,W]=ie.useState(!1),[c,b]=ie.useState(""),_=ie.useCallback(()=>{He("/api/library").then(y=>{Z(y.library),b("")}).catch(y=>b(y.message))},[]);ie.useEffect(()=>{_()},[_]);const S=async y=>{try{await He(`/api/library/clone?type=${encodeURIComponent(y.type)}&name=${encodeURIComponent(y.name)}&path=${encodeURIComponent(y.path)}`,{method:"POST"}),W(!1),_()}catch(E){b(E.message)}},d=y=>{confirm(`Remove "${y.name}" from your library? (Your copy only — AIWG is untouched.)`)&&He(`/api/library/${encodeURIComponent(y.name)}`,{method:"DELETE"}).then(_).catch(E=>alert(E.message))},m=y=>{const E=ow(y.type,y.name.replace(/\.(md|markdown|ya?ml|json)$/i,""));O.isController&&O.state.target&&O.sendInput(E,O.state.target)||z(E),G()};return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:["Your ",f.jsxDEV("strong",{children:"own"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:39,columnNumber:14},this)," assets — copied, cloned, or imported. Edit them freely; ",f.jsxDEV("strong",{children:"AIWG install files are never touched"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:39,columnNumber:91},this),". Stored on disk under ",f.jsxDEV("code",{children:"~/.aiwg/cockpit/library"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:40,columnNumber:48},this),". Deploying one into a project is an agent action (Use → inject into a session)."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:38,columnNumber:7},this),c&&f.jsxDEV("p",{className:"err",children:c},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:43,columnNumber:15},this),f.jsxDEV("div",{className:"controls",children:f.jsxDEV("button",{onClick:()=>W(y=>!y),children:ne?"Close":"+ Clone from catalog"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:45,columnNumber:9},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:44,columnNumber:7},this),ne&&f.jsxDEV("div",{className:"picker",children:[f.jsxDEV("p",{className:"hint",style:{marginTop:0},children:"Search the AIWG catalog and clone a copy into your library."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:49,columnNumber:11},this),f.jsxDEV(Gm,{compact:!0,autoFocus:!0,onPick:S},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:48,columnNumber:9},this),I?I.length?f.jsxDEV("table",{children:[f.jsxDEV("caption",{children:[I.length," asset(s) in your library"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:57,columnNumber:15},this),f.jsxDEV("thead",{children:f.jsxDEV("tr",{children:[f.jsxDEV("th",{scope:"col",children:"Name"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:58,columnNumber:26},this),f.jsxDEV("th",{scope:"col",children:"Type"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:58,columnNumber:51},this),f.jsxDEV("th",{scope:"col",children:"Origin"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:58,columnNumber:76},this),f.jsxDEV("th",{scope:"col",children:"Actions"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:58,columnNumber:103},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:58,columnNumber:22},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:58,columnNumber:15},this),f.jsxDEV("tbody",{children:I.map(y=>f.jsxDEV("tr",{children:[f.jsxDEV("td",{children:f.jsxDEV("strong",{children:y.name},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:62,columnNumber:25},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:62,columnNumber:21},this),f.jsxDEV("td",{children:f.jsxDEV("span",{className:"badge",children:y.type},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:63,columnNumber:25},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:63,columnNumber:21},this),f.jsxDEV("td",{children:y.origin},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:64,columnNumber:21},this),f.jsxDEV("td",{style:{whiteSpace:"nowrap"},children:[f.jsxDEV("button",{onClick:()=>m(y),children:"Use"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:66,columnNumber:23},this)," ",f.jsxDEV("button",{onClick:()=>d(y),"aria-label":`Remove ${y.name}`,children:"Remove"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:67,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:65,columnNumber:21},this)]},y.name,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:61,columnNumber:19},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:59,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:56,columnNumber:13},this):f.jsxDEV("p",{className:"empty",children:"Your library is empty. Clone a capability from the catalog to get a copy you can modify."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:54,columnNumber:27},this):f.jsxDEV("p",{className:"empty",children:"Loading…"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:53,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Library.tsx",lineNumber:37,columnNumber:5},this)}function rC({refreshTick:O=0,session:z,setComposer:G,goSessions:I}){const[Z,ne]=ie.useState([]),[W,c]=ie.useState([]),[b,_]=ie.useState([]),[S,d]=ie.useState(""),[m,y]=ie.useState("");ie.useEffect(()=>{He("/api/contributions").then(o=>{ne(o.actions??[]),c(o.screens??[]),_(o.workflows??[])}).catch(o=>d(o.message))},[O]);const E=async o=>{let a=o.inject.command;if(o.inject.needs_args){const g=prompt(`Arguments for ${o.title}${o.inject.args_hint?` (${o.inject.args_hint})`:""}:`,"");if(g===null)return;g.trim()&&(a+=" "+g.trim())}await He("/api/audit/intent",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({event:"action.inject.requested",detail:{action_id:o.id,source:o.source,target:o.inject.target??"focused",command:a,controller_attached:z.isController}})}).catch(()=>{}),z.isController&&z.state.target&&z.sendInput(a,z.state.target)?y(`Injected "${a}" into the attached session — the agent runs it.`):(G(a),y(`Ready to inject "${a}". Attach to a session (drive) or start one, then Send.`)),I()},v=async o=>{var a;await((a=navigator.clipboard)==null?void 0:a.writeText(o.inject.command)),y(`Copied "${o.inject.command}" to the clipboard.`)},u=new Map(Z.map(o=>[o.id,o])),h=o=>{if(o.source==="cockpit://index/live"){window.location.hash="#explore",y("Opened the contributed Live Index screen.");return}if(o.source==="cockpit://issues/workbench"){window.location.hash="#actions",y("Issue Workbench is available here through the contributed issue actions and workflows.");return}y(`Unsupported contributed screen source: ${o.source}`)};return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:["Actions are ",f.jsxDEV("strong",{children:"contributed declaratively"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:73,columnNumber:21},this),". Clicking one ",f.jsxDEV("strong",{children:"injects a command into an agentic session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:73,columnNumber:78},this)," ","(focused, else it offers a new one); the agent runs it. The Cockpit never runs the CLI — agents do."]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:72,columnNumber:7},this),S&&f.jsxDEV("p",{className:"err",children:S},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:76,columnNumber:15},this),f.jsxDEV("div",{className:"controls",role:"group","aria-label":"Contributed actions",children:Z.length?Z.map(o=>f.jsxDEV("span",{className:"action-cluster",children:[f.jsxDEV("button",{className:"act",title:`injects: ${o.inject.command}`,onClick:()=>E(o),children:[o.icon?o.icon+" ":"",o.title]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:81,columnNumber:15},this),f.jsxDEV("button",{className:"copy-command","aria-label":`Copy CLI command for ${o.title}`,title:o.inject.command,onClick:()=>v(o),children:"Copy CLI"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:84,columnNumber:15},this)]},o.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:80,columnNumber:13},this)):f.jsxDEV("p",{className:"empty",children:"No contributed actions."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:89,columnNumber:13},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:77,columnNumber:7},this),f.jsxDEV("div",{className:"contrib-layout",children:[f.jsxDEV("section",{"aria-label":"Contributed screens",children:[f.jsxDEV("div",{className:"section-toolbar",children:f.jsxDEV("h2",{children:"Screens"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:94,columnNumber:13},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:93,columnNumber:11},this),f.jsxDEV("div",{className:"contrib-grid",children:W.length?W.map(o=>f.jsxDEV("article",{className:"contrib-item",children:[f.jsxDEV("strong",{children:o.title},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:100,columnNumber:19},this),f.jsxDEV("p",{children:o.source},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:101,columnNumber:19},this),f.jsxDEV("button",{onClick:()=>h(o),children:"Open"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:102,columnNumber:19},this)]},o.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:99,columnNumber:17},this)):f.jsxDEV("p",{className:"empty",children:"No contributed screens."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:105,columnNumber:17},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:96,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:92,columnNumber:9},this),f.jsxDEV("section",{"aria-label":"Contributed workflows",children:[f.jsxDEV("div",{className:"section-toolbar",children:f.jsxDEV("h2",{children:"Workflows"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:110,columnNumber:13},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:109,columnNumber:11},this),f.jsxDEV("div",{className:"contrib-grid",children:b.length?b.map(o=>f.jsxDEV("article",{className:"contrib-item",children:[f.jsxDEV("strong",{children:o.title},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:116,columnNumber:19},this),o.description&&f.jsxDEV("p",{children:o.description},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:117,columnNumber:37},this),f.jsxDEV("div",{className:"workflow-steps",children:o.steps.map((a,g)=>{const N=u.get(a.action);return f.jsxDEV("button",{disabled:!N,onClick:()=>N&&E(N),children:a.label||(N==null?void 0:N.title)||a.action},`${o.id}-${g}-${a.action}`,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:122,columnNumber:25},this)})},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:118,columnNumber:19},this)]},o.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:115,columnNumber:17},this)):f.jsxDEV("p",{className:"empty",children:"No contributed workflows."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:130,columnNumber:17},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:112,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:108,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:91,columnNumber:7},this),f.jsxDEV("p",{className:"empty",children:m||"Output appears in the session terminal — actions drop a command into a session and the agent executes it."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:134,columnNumber:7},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Actions.tsx",lineNumber:71,columnNumber:5},this)}function oC({refreshTick:O=0}){const[z,G]=ie.useState(null),[I,Z]=ie.useState(null),[ne,W]=ie.useState(null),[c,b]=ie.useState("all"),[_,S]=ie.useState(""),d=ie.useCallback(()=>{Promise.all([He("/api/events/snapshot"),He("/api/missions").catch(()=>null),He("/api/cost").catch(()=>null)]).then(([v,u,h])=>{G(v),Z(u),W(h),S("")}).catch(v=>S(v.message))},[]);if(ie.useEffect(()=>{d()},[d,O]),_)return f.jsxDEV("p",{className:"err",children:["Could not load telemetry: ",_]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:30,columnNumber:19},this);if(!z)return f.jsxDEV("p",{className:"empty",children:"Loading..."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:31,columnNumber:23},this);const m=c==="all"?z.events:z.events.filter(v=>v.type.startsWith(c)),y=aC(I),E=ne?ne.total.input_tokens+ne.total.output_tokens:0;return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:"Live Cockpit telemetry from the unified event model. This replaces the legacy dashboard feed with Bridge-backed inventory, session, task, approval, Mission, and cost posture."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:39,columnNumber:7},this),f.jsxDEV("section",{className:"telemetry-kpis","aria-label":"Telemetry key performance indicators",children:[f.jsxDEV("article",{children:[f.jsxDEV("span",{children:"Events"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:44,columnNumber:18},this),f.jsxDEV("strong",{children:z.count},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:44,columnNumber:37},this),f.jsxDEV("small",{children:z.source},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:44,columnNumber:68},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:44,columnNumber:9},this),f.jsxDEV("article",{children:[f.jsxDEV("span",{children:"Active Missions"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:45,columnNumber:18},this),f.jsxDEV("strong",{children:y.active},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:45,columnNumber:46},this),f.jsxDEV("small",{children:[y.terminal," terminal"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:45,columnNumber:85},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:45,columnNumber:9},this),f.jsxDEV("article",{children:[f.jsxDEV("span",{children:"Approvals"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:46,columnNumber:18},this),f.jsxDEV("strong",{children:y.awaiting},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:46,columnNumber:40},this),f.jsxDEV("small",{children:"awaiting operator input"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:46,columnNumber:81},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:46,columnNumber:9},this),f.jsxDEV("article",{children:[f.jsxDEV("span",{children:"Spend"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:47,columnNumber:18},this),f.jsxDEV("strong",{children:ne?`$${ne.total.usd.toFixed(2)}`:"-"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:47,columnNumber:36},this),f.jsxDEV("small",{children:E?`${E.toLocaleString()} tokens`:"cost route unavailable"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:47,columnNumber:99},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:47,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:43,columnNumber:7},this),f.jsxDEV("div",{className:"controls",role:"group","aria-label":"Filter telemetry events",children:["all","mission","task","approval","session","inventory"].map(v=>f.jsxDEV("button",{"aria-pressed":c===v,onClick:()=>b(v),children:v},v,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:52,columnNumber:11},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:50,columnNumber:7},this),m.length?f.jsxDEV("table",{children:[f.jsxDEV("caption",{children:[m.length," event(s), fetched ",new Date(z.fetched_at).toLocaleTimeString()]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:58,columnNumber:11},this),f.jsxDEV("thead",{children:f.jsxDEV("tr",{children:[f.jsxDEV("th",{scope:"col",children:"Time"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:22},this),f.jsxDEV("th",{scope:"col",children:"Type"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:47},this),f.jsxDEV("th",{scope:"col",children:"Subject"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:72},this),f.jsxDEV("th",{scope:"col",children:"State"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:100},this),f.jsxDEV("th",{scope:"col",children:"Source"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:126},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:18},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:59,columnNumber:11},this),f.jsxDEV("tbody",{children:m.map(v=>f.jsxDEV("tr",{children:[f.jsxDEV("td",{children:f.jsxDEV("time",{dateTime:v.ts,children:new Date(v.ts).toLocaleTimeString()},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:63,columnNumber:21},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:63,columnNumber:17},this),f.jsxDEV("td",{children:f.jsxDEV("span",{className:"badge",children:v.type},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:64,columnNumber:21},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:64,columnNumber:17},this),f.jsxDEV("td",{children:f.jsxDEV("code",{title:v.subject,children:lt(v.subject)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:65,columnNumber:21},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:65,columnNumber:17},this),f.jsxDEV("td",{children:v.state?f.jsxDEV("span",{className:`state ${v.state}`,children:[f.jsxDEV("span",{className:"dot","aria-hidden":"true"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:66,columnNumber:69},this),v.state]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:66,columnNumber:32},this):"-"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:66,columnNumber:17},this),f.jsxDEV("td",{children:v.source},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:67,columnNumber:17},this)]},v.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:62,columnNumber:15},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:60,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:57,columnNumber:9},this):f.jsxDEV("p",{className:"empty",children:"No events match this filter."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:56,columnNumber:26},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Telemetry.tsx",lineNumber:38,columnNumber:5},this)}function aC(O){const z={active:0,terminal:0,awaiting:0};for(const G of(O==null?void 0:O.missions)??[])(G.status==="awaiting-approval"||G.status==="input-required")&&(z.awaiting+=1),G.terminal?z.terminal+=1:z.active+=1;return z}const hw="aiwg.cockpit.memory.notes.v1";function lC({refreshTick:O=0}){const[z,G]=ie.useState(()=>cC()),[I,Z]=ie.useState([]),[ne,W]=ie.useState(""),[c,b]=ie.useState(""),[_,S]=ie.useState(""),[d,m]=ie.useState(""),[y,E]=ie.useState(""),v=ie.useCallback(a=>{G(a),localStorage.setItem(hw,JSON.stringify(a))},[]);ie.useEffect(()=>{He("/api/missions").then(a=>{Z(a.missions),E("");const g=uC(z,a.missions);g!==z&&v(g)}).catch(a=>E(a.message))},[O]);const u=ie.useMemo(()=>{const a=ne.trim().toLowerCase();return a?z.filter(g=>[g.title,g.body,g.source,g.mission_id??"",...g.tags].some(N=>N.toLowerCase().includes(a))):z},[z,ne]),h=()=>{c.trim()&&(v([{id:`note-${Date.now()}`,title:c.trim(),body:_.trim(),tags:d.split(",").map(a=>a.trim()).filter(Boolean),created_at:new Date().toISOString(),source:"operator"},...z]),b(""),S(""),m(""))},o=a=>v(z.filter(g=>g.id!==a));return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("p",{className:"hint",children:"Operator memory for Cockpit: local notes plus automatic Mission completion notes from durable Mission Control state. Notes stay in this browser profile; AIWG source files are not modified."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:73,columnNumber:7},this),y&&f.jsxDEV("p",{className:"err",children:["Mission memory sync failed: ",y]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:77,columnNumber:15},this),f.jsxDEV("section",{className:"memory-layout",children:[f.jsxDEV("form",{className:"memory-form",onSubmit:a=>{a.preventDefault(),h()},"aria-label":"Add memory note",children:[f.jsxDEV("h2",{children:"Add Note"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:80,columnNumber:11},this),f.jsxDEV("label",{children:["Title",f.jsxDEV("input",{value:c,onChange:a=>b(a.target.value),placeholder:"Note title"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:81,columnNumber:23},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:81,columnNumber:11},this),f.jsxDEV("label",{children:["Body",f.jsxDEV("textarea",{value:_,onChange:a=>S(a.target.value),placeholder:"What should future you remember?",rows:4},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:82,columnNumber:22},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:82,columnNumber:11},this),f.jsxDEV("label",{children:["Tags",f.jsxDEV("input",{value:d,onChange:a=>m(a.target.value),placeholder:"cockpit, release, risk"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:83,columnNumber:22},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:83,columnNumber:11},this),f.jsxDEV("button",{type:"submit",disabled:!c.trim(),children:"Save Note"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:84,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:79,columnNumber:9},this),f.jsxDEV("section",{className:"memory-list","aria-label":"Memory notes",children:[f.jsxDEV("div",{className:"section-toolbar",children:[f.jsxDEV("div",{children:[f.jsxDEV("h2",{children:"Notes"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:89,columnNumber:15},this),f.jsxDEV("p",{className:"hint",children:[z.length," saved · ",I.filter(a=>a.terminal).length," terminal mission(s) observed"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:90,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:88,columnNumber:13},this),f.jsxDEV("input",{"aria-label":"Search memory notes",value:ne,onChange:a=>W(a.target.value),placeholder:"Search notes"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:92,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:87,columnNumber:11},this),u.length?f.jsxDEV("div",{className:"note-grid",children:u.map(a=>f.jsxDEV("article",{className:"note-card",children:[f.jsxDEV("header",{children:[f.jsxDEV("h3",{children:a.title},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:99,columnNumber:21},this),f.jsxDEV("button",{"aria-label":`Delete note ${a.title}`,onClick:()=>o(a.id),children:"Remove"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:100,columnNumber:21},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:98,columnNumber:19},this),a.body&&f.jsxDEV("p",{children:a.body},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:102,columnNumber:33},this),f.jsxDEV("footer",{children:[f.jsxDEV("time",{dateTime:a.created_at,children:new Date(a.created_at).toLocaleString()},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:104,columnNumber:21},this),a.mission_id&&f.jsxDEV("code",{children:lt(a.mission_id)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:105,columnNumber:41},this),a.tags.map(g=>f.jsxDEV("span",{className:"tag",children:g},g,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:106,columnNumber:45},this))]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:103,columnNumber:19},this)]},a.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:97,columnNumber:17},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:95,columnNumber:13},this):f.jsxDEV("p",{className:"empty",children:ne?"No notes match your search.":"No notes yet."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:94,columnNumber:31},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:86,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:78,columnNumber:7},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/Memory.tsx",lineNumber:72,columnNumber:5},this)}function cC(){try{const O=JSON.parse(localStorage.getItem(hw)||"[]");return Array.isArray(O)?O:[]}catch{return[]}}function uC(O,z){const G=new Set(O.map(Z=>Z.mission_id).filter(Boolean)),I=z.filter(Z=>Z.terminal&&!G.has(Z.id)).map(Z=>({id:`mission-note-${Z.id}`,title:Z.title.slice(0,96),body:[`Status: ${Z.status}`,Z.completion?`Completion: ${Z.completion}`:"",Z.error?`Error: ${Z.error}`:""].filter(Boolean).join(`
|
|
311
|
-
`),tags:["mission",Z.status,Z.source].filter(Boolean),created_at:Z.completed_at??new Date().toISOString(),mission_id:Z.id,source:"mission"}));return I.length?[...I,...O]:O}const hC=15e3;function dC({open:O,onClose:z,session:G,onStarted:I,initialInstanceId:Z,startTimeoutMs:ne=hC}){var M;const[W,c]=ie.useState([]),[b,_]=ie.useState(""),[S,d]=ie.useState(""),[m,y]=ie.useState(""),[E,v]=ie.useState("observer"),[u,h]=ie.useState(!1),[o,a]=ie.useState("");ie.useEffect(()=>{if(!O)return;a(""),h(!1);let L=!1;return(async()=>{var H,B,J;try{const ae=await He("/api/inventory");if(L)return;const te=fC(ae.instances).filter(le=>le.state==="running");c(te);const de=te.find(le=>le.id===Z)??te.find(le=>{var T;return(T=le.session_backends)==null?void 0:T.some(V=>V.available)})??te[0];if(de){_(de.id),d(((H=de.launch_context)==null?void 0:H.loadout)??de.loadout??"");const le=((B=de.session_backends)==null?void 0:B.find(T=>T.available))??((J=de.session_backends)==null?void 0:J[0]);y(le?`${le.mode}:${le.backend}`:"")}else a("No stack connected — start an executor first.")}catch(ae){L||a(ae.message)}})(),()=>{L=!0}},[O,Z]);const g=W.find(L=>L.id===b),N=(g==null?void 0:g.session_backends)??[],C=N.find(L=>`${L.mode}:${L.backend}`===m)??N.find(L=>L.available)??N[0];if(ie.useEffect(()=>{var H,B,J;if(!g)return;d(((H=g.launch_context)==null?void 0:H.loadout)??g.loadout??"");const L=((B=g.session_backends)==null?void 0:B.find(ae=>ae.available))??((J=g.session_backends)==null?void 0:J[0]);y(L?`${L.mode}:${L.backend}`:"")},[b]),!O)return null;const D=G.state.attached,w=!u&&!!g&&!!(C!=null&&C.available),k=async()=>{if(!g||!C)return;h(!0),a("");const L=new AbortController,H=window.setTimeout(()=>L.abort(),ne);try{const B=new URLSearchParams({mode:C.mode,backend:C.backend}),J=await He(`/api/instances/${encodeURIComponent(g.id)}/sessions?${B}`,{method:"POST",signal:L.signal});if(!J.attach_url)throw new Error("Session started but no attach URL was returned.");G.attach(J.attach_url,!1,E,{instanceId:g.id,sessionId:J.id}),I(),z(),h(!1)}catch(B){const J=B instanceof DOMException&&B.name==="AbortError"?"Starting the session timed out. The instance may still be preparing PTY support; refresh sessions and try again.":B.message;a(J),h(!1)}finally{window.clearTimeout(H)}};return f.jsxDEV("div",{className:"modal-backdrop",role:"presentation",onClick:z,children:f.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"start-session-title",onClick:L=>L.stopPropagation(),onKeyDown:L=>{L.key==="Escape"&&z()},children:[f.jsxDEV("h2",{id:"start-session-title",children:"Start a session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:122,columnNumber:9},this),o&&f.jsxDEV("p",{className:"err",children:o},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:124,columnNumber:17},this),D&&f.jsxDEV("p",{className:"hint warn",children:"You have an attached view. Starting creates another managed session and switches Cockpit to it; existing sessions keep running."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:126,columnNumber:11},this),f.jsxDEV("div",{className:"form-grid",children:[f.jsxDEV("label",{htmlFor:"ss-instance",children:"Instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:130,columnNumber:11},this),f.jsxDEV("select",{id:"ss-instance",value:b,onChange:L=>_(L.target.value),children:W.map(L=>f.jsxDEV("option",{value:L.id,children:[lt(L.id)," · ",L.runtime," · ",L.state]},L.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:133,columnNumber:15},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:131,columnNumber:11},this),f.jsxDEV("label",{children:"Runtime"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:137,columnNumber:11},this),f.jsxDEV("span",{className:"ro",children:g?`${g.runtime_posture.label} (${g.runtime})`:"—"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:138,columnNumber:11},this),f.jsxDEV("label",{children:"Instance loadout"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:140,columnNumber:11},this),f.jsxDEV("span",{className:"ro",children:[S||"unknown",(M=g==null?void 0:g.launch_context)!=null&&M.image_ref?` · ${g.launch_context.image_ref}`:""]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:141,columnNumber:11},this),f.jsxDEV("label",{htmlFor:"ss-backend",children:"Backend"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:143,columnNumber:11},this),f.jsxDEV("select",{id:"ss-backend",value:m,onChange:L=>y(L.target.value),children:N.length?N.map(L=>f.jsxDEV("option",{value:`${L.mode}:${L.backend}`,disabled:!L.available,children:[L.mode," · ",L.backend,L.available?"":` — ${L.reason??"unsupported"}`]},`${L.mode}:${L.backend}`,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:147,columnNumber:17},this)):f.jsxDEV("option",{value:"",children:"— not advertised —"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:150,columnNumber:17},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:144,columnNumber:11},this),f.jsxDEV("label",{htmlFor:"ss-posture",children:"Posture"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:153,columnNumber:11},this),f.jsxDEV("select",{id:"ss-posture",value:E,onChange:L=>v(L.target.value),children:[f.jsxDEV("option",{value:"observer",children:"Observe (read-only)"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:159,columnNumber:13},this),f.jsxDEV("option",{value:"controller",disabled:(C==null?void 0:C.drive)===!1,children:"Drive (control)"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:160,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:154,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:129,columnNumber:9},this),C&&!C.available&&f.jsxDEV("p",{className:"hint",children:C.reason??"Selected backend is unavailable on this instance."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:165,columnNumber:11},this),f.jsxDEV("div",{className:"modal-actions",children:[f.jsxDEV("button",{onClick:z,disabled:u,children:"Cancel"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:169,columnNumber:11},this),f.jsxDEV("button",{className:"cta",onClick:k,disabled:!w,children:u?"Starting…":D?"Start another session":"Start session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:170,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:168,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:114,columnNumber:7},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/StartSessionModal.tsx",lineNumber:113,columnNumber:5},this)}function fC(O){const z=new Set;return O.filter(G=>z.has(G.id)?!1:(z.add(G.id),!0))}const mC=[{value:"agentic/codex:latest",label:"Codex"},{value:"agentic/claude:latest",label:"Claude"},{value:"agentic/opencode:latest",label:"OpenCode"},{value:"agentic/automation-control:latest",label:"Automation control"},{value:"agentic/agent:dev",label:"Agent dev base"}],iw=[{id:"host-tools",label:"host-tools",description:"Host tools",runtimes:["host"]},{id:"agentic-dev",label:"agentic-dev",description:"Full development environment",runtimes:["docker","container","qemu","vm"]},{id:"claude-only",label:"claude-only",description:"Claude provider loadout",runtimes:["docker","container","qemu","vm"]},{id:"codex-only",label:"codex-only",description:"Codex provider loadout",runtimes:["docker","container","qemu","vm"]},{id:"opencode-only",label:"opencode-only",description:"OpenCode provider loadout",runtimes:["docker","container","qemu","vm"]},{id:"full-suite",label:"full-suite",description:"Multi-provider tool suite",runtimes:["qemu","vm"]}],Xu=()=>`cockpit-${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}`.slice(0,32);function pC({open:O,onClose:z,onLaunched:G}){const[I,Z]=ie.useState("host"),[ne,W]=ie.useState(Xu),[c,b]=ie.useState("host-tools"),[_,S]=ie.useState([]),[d,m]=ie.useState([]),[y,E]=ie.useState(""),[v,u]=ie.useState(null),[h,o]=ie.useState("agentic/codex:latest"),[a,g]=ie.useState(""),[N,C]=ie.useState(""),[D,w]=ie.useState(""),[k,M]=ie.useState(""),[L,H]=ie.useState(!0),[B,J]=ie.useState(!1),[ae,te]=ie.useState(""),[de,le]=ie.useState("");if(ie.useEffect(()=>{if(!O)return;W(Xu());let A=!1;return Promise.all([He("/api/loadouts").catch(()=>({loadouts:[]})),He("/api/inventory").catch(()=>({instances:[]})),He("/api/executor/capabilities").catch(()=>null)]).then(([$,ue,me])=>{if(A)return;S($.loadouts??[]),m(ue.instances??[]),u(me);const be=(ue.instances??[]).find(dw);E(Ce=>Ce||(be==null?void 0:be.id)||"")}),()=>{A=!0}},[O]),!O)return null;const T=A=>{Z(A),A==="host"?b("host-tools"):A==="docker"?(b("agentic-dev"),o($=>$||"agentic/codex:latest")):b("profiles/basic.yaml")},V=async()=>{var A,$,ue,me,be,Ce,F,j;J(!0),te(""),le("");try{if(I==="host"){const Ue=ea(d).find(Xt=>Xt.id===y)??ea(d)[0];if(Ue){le(L?`Using host target ${((A=Ue.launch_context)==null?void 0:A.name)??lt(Ue.id)}; starting session...`:`Using host target ${(($=Ue.launch_context)==null?void 0:$.name)??lt(Ue.id)}`),await G(Ue.id,L),L&&z();return}if(!(v!=null&&v.host_runtime_enabled))throw new Error("Host runtime is not enabled on this executor. Enable the host supervisor or choose Docker container.");const nt={name:ne.replace(/[^a-z0-9-]/g,"-").replace(/^-+/,"a-").slice(0,63),runtime:"host",loadout:"host-tools",start:!0},Fe=await He("/api/instances",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(nt)}),ze=Fe.instance_id??Fe.instanceId??((ue=Fe.result)==null?void 0:ue.instance_id)??((me=Fe.result)==null?void 0:me.instanceId),De=Fe.id??((be=Fe.operation)==null?void 0:be.id);le(L?`Host launch accepted: ${ze??De??"operation pending"}; waiting for session...`:`Host launch accepted: ${ze??De??"operation pending"}`),await G(ze,L,De),L?z():W(Xu());return}const pe={name:ne.replace(/[^a-z0-9-]/g,"-").replace(/^-+/,"a-").slice(0,63),runtime:I,start:!0};c&&(pe.loadout=c),N&&(pe.profile=N),I==="docker"&&(pe.image=h==="__custom__"?a.trim():h,pe.agentshare=!0),I==="qemu"&&(pe.agentshare=!0,D.trim()&&(pe.ssh_key=D.trim())),I==="docker"&&k.trim()&&(pe.mounts=k.split(`
|
|
312
|
-
`).map(Ue=>Ue.trim()).filter(Boolean));const se=await He("/api/instances",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(pe)}),oe=se.instance_id??se.instanceId??((Ce=se.result)==null?void 0:Ce.instance_id)??((F=se.result)==null?void 0:F.instanceId),ye=se.id??((j=se.operation)==null?void 0:j.id);le(L?`Launch accepted: ${oe??ye??"operation pending"}; waiting for session...`:`Launch accepted: ${oe??ye??"operation pending"}`),await G(oe,L,ye),L?z():W(Xu())}catch(pe){te(pe.message)}finally{J(!1)}};return f.jsxDEV("div",{className:"modal-backdrop",role:"presentation",onClick:z,children:f.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"launch-instance-title",onClick:A=>A.stopPropagation(),children:[f.jsxDEV("h2",{id:"launch-instance-title",children:"New instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:172,columnNumber:9},this),f.jsxDEV("p",{className:"hint",children:"Create a runtime target. Existing instances and sessions keep running."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:173,columnNumber:9},this),ae&&f.jsxDEV("p",{className:"err",children:ae},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:174,columnNumber:17},this),de&&f.jsxDEV("p",{className:"hint ok-text",children:de},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:175,columnNumber:20},this),f.jsxDEV("div",{className:"form-grid",children:[f.jsxDEV("label",{htmlFor:"li-runtime",children:"Runtime"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:177,columnNumber:11},this),f.jsxDEV("select",{id:"li-runtime",value:I,onChange:A=>T(A.target.value),children:[f.jsxDEV("option",{value:"host",children:"Host"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:179,columnNumber:13},this),f.jsxDEV("option",{value:"docker",children:"Docker container"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:180,columnNumber:13},this),f.jsxDEV("option",{value:"qemu",children:"VM / QEMU"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:181,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:178,columnNumber:11},this),I==="host"?f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"li-host-target",children:"Host target"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:185,columnNumber:15},this),f.jsxDEV("select",{id:"li-host-target",value:y,onChange:A=>E(A.target.value),children:[ea(d).map(A=>{var $;return f.jsxDEV("option",{value:A.id,children:[(($=A.launch_context)==null?void 0:$.name)??lt(A.id)," - ",A.loadout]},A.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:187,columnNumber:52},this)}),!ea(d).length&&(v==null?void 0:v.host_runtime_enabled)&&f.jsxDEV("option",{value:"",children:"Local host runtime - create new"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:188,columnNumber:90},this),!ea(d).length&&!(v!=null&&v.host_runtime_enabled)&&f.jsxDEV("option",{value:"",children:"Host runtime not enabled"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:189,columnNumber:91},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:186,columnNumber:15},this),!ea(d).length&&(v==null?void 0:v.host_runtime_enabled)&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"li-name",children:"Name"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:193,columnNumber:19},this),f.jsxDEV("input",{id:"li-name",value:ne,onChange:A=>W(A.target.value)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:194,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:192,columnNumber:17},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:184,columnNumber:13},this):f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"li-name",children:"Name"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:200,columnNumber:15},this),f.jsxDEV("input",{id:"li-name",value:ne,onChange:A=>W(A.target.value)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:201,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:199,columnNumber:13},this),f.jsxDEV("label",{htmlFor:"li-loadout",children:"Instance loadout"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:204,columnNumber:11},this),I==="host"?f.jsxDEV("span",{className:"ro",children:"host-tools"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:206,columnNumber:13},this):f.jsxDEV("select",{id:"li-loadout",value:c,onChange:A=>b(A.target.value),children:bC(_,I).map(A=>f.jsxDEV("option",{value:A.id,children:[A.label,A.description?` - ${A.description}`:""]},A.id,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:209,columnNumber:61},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:208,columnNumber:13},this),I!=="host"&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"li-profile",children:"Profile"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:214,columnNumber:15},this),f.jsxDEV("input",{id:"li-profile",value:N,onChange:A=>C(A.target.value),placeholder:"optional"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:215,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:213,columnNumber:13},this),I==="qemu"&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"li-ssh-key",children:"SSH public key"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:220,columnNumber:15},this),f.jsxDEV("input",{id:"li-ssh-key",value:D,onChange:A=>w(A.target.value),placeholder:"auto-detect, or ~/.ssh/agentic_ed25519.pub"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:221,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:219,columnNumber:13},this),I==="docker"&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("label",{htmlFor:"li-image",children:"Container image"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:231,columnNumber:15},this),f.jsxDEV("div",{className:"field-stack",children:[f.jsxDEV("select",{id:"li-image",value:h,onChange:A=>o(A.target.value),children:[mC.map(A=>f.jsxDEV("option",{value:A.value,children:[A.label," - ",A.value]},A.value,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:234,columnNumber:57},this)),f.jsxDEV("option",{value:"__custom__",children:"Custom image..."},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:235,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:233,columnNumber:17},this),h==="__custom__"&&f.jsxDEV("input",{"aria-label":"Custom container image",value:a,onChange:A=>g(A.target.value),placeholder:"registry.example.com/team/agent:tag"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:238,columnNumber:19},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:232,columnNumber:15},this),f.jsxDEV("label",{htmlFor:"li-mounts",children:"Mounts"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:246,columnNumber:15},this),f.jsxDEV("textarea",{id:"li-mounts",value:k,onChange:A=>M(A.target.value),placeholder:"/host/path:/container/path"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:247,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:230,columnNumber:13},this),f.jsxDEV("label",{htmlFor:"li-open-session",children:"After launch"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:250,columnNumber:11},this),f.jsxDEV("label",{className:"check-row",children:[f.jsxDEV("input",{id:"li-open-session",type:"checkbox",checked:L,onChange:A=>H(A.target.checked)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:252,columnNumber:13},this),"Start a session automatically when the instance is ready"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:251,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:176,columnNumber:9},this),f.jsxDEV("div",{className:"modal-actions",children:[f.jsxDEV("button",{onClick:z,disabled:B,children:"Close"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:257,columnNumber:11},this),f.jsxDEV("button",{className:"cta",onClick:V,disabled:B||I==="host"&&!y&&!(v!=null&&v.host_runtime_enabled)||I==="host"&&!y&&!ne.trim()||I!=="host"&&!ne.trim()||I==="docker"&&h==="__custom__"&&!a.trim(),children:B?"Working...":I==="host"?L?"Start host session":"Use host":L?"Create + start session":"Create instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:258,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:256,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:171,columnNumber:7},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/components/LaunchInstanceModal.tsx",lineNumber:170,columnNumber:5},this)}function bC(O,z){if(z==="host")return iw.filter(ne=>ne.id==="host-tools");const G=z==="docker"?["docker","container"]:z==="qemu"?["qemu","vm"]:[z],I=[...O,...iw].reduce((ne,W)=>(ne.some(c=>c.id===W.id)||ne.push(W),ne),[]),Z=I.filter(ne=>{var W;return!((W=ne.runtimes)!=null&&W.length)||ne.runtimes.some(c=>G.includes(String(c).toLowerCase()))});return Z.length?Z:I}function ea(O){return O.filter(dw)}function dw(O){var z,G;return O.state==="running"&&((z=O.runtime_posture)==null?void 0:z.kind)==="host"&&((G=O.session_backends)==null?void 0:G.some(I=>I.available!==!1))}const Wm=[{id:"welcome",label:"Home"},{id:"inventory",label:"Inventory"},{id:"running",label:"Running"},{id:"missions",label:"Missions"},{id:"sessions",label:"Sessions"},{id:"approvals",label:"Approvals"},{id:"explore",label:"Explore"},{id:"library",label:"Library"},{id:"telemetry",label:"Telemetry"},{id:"memory",label:"Memory"},{id:"actions",label:"Actions"}],gC=O=>new Promise(z=>window.setTimeout(z,O));function vC(){const[O,z]=ie.useState(()=>{const w=window.location.hash.replace(/^#/,"");return Wm.some(k=>k.id===w)?w:"welcome"}),G=_N(),I=Xm(),Z=IN(I).filter(w=>w.id!==`pty:${I.activeKey}`),[ne,W]=ie.useState(""),[c,b]=ie.useState(null),[_,S]=ie.useState("checking"),d=ie.useRef(!1),m=ie.useRef(!1),[y,E]=ie.useState(!1),[v,u]=ie.useState(void 0),[h,o]=ie.useState(!1),[a,g]=ie.useState(0);ie.useEffect(()=>{let w=!1,k,M=1e3;const L=B=>{k=window.setTimeout(H,B)},H=async()=>{try{const[B,J]=await Promise.all([He("/api/health"),He("/api/inventory")]);if(w)return;const[ae,te]=await Promise.all([He("/api/running").catch(()=>({count:0})),He("/api/approvals?status=pending").catch(()=>({approvals:[]}))]);if(w)return;const de=J.instances.map(T=>{var V;return lr(((V=T.runtime_posture)==null?void 0:V.kind)??T.runtime)}),le=G.responseNeeded.needed?1:0;if(b({executor:B.executor_url,instances:J.instances.length,running:ae.count,responses:te.approvals.length+Z.length+le,host:de.includes("host"),container:de.includes("container"),vm:de.includes("vm")}),!m.current){const T=d.current;d.current=!1,S("live"),T&&g(V=>V+1)}M=1e3,w||L(15e3)}catch{w||(d.current=!0,S("reconnecting"),L(M),M=Math.min(M*2,15e3))}};return H(),()=>{w=!0,k!==void 0&&window.clearTimeout(k)}},[G.responseNeeded.needed,a,Z.length]),ie.useEffect(()=>{if(typeof EventSource>"u"||!ta)return;const w=new EventSource(`/api/events?token=${encodeURIComponent(ta)}`),k=()=>{m.current=!1,g(M=>M+1)};return w.onopen=k,w.addEventListener("cockpit.refresh",k),w.onerror=()=>{m.current=!0,d.current=!0,S("reconnecting"),g(M=>M+1)},()=>w.close()},[]),ie.useEffect(()=>{const w=()=>{const k=window.location.hash.replace(/^#/,"");Wm.some(M=>M.id===k)&&z(k)};return window.addEventListener("hashchange",w),()=>window.removeEventListener("hashchange",w)},[]);const N=w=>{u(w),E(!0)},C=async(w,k,M)=>{if(g(L=>L+1),!k){z("inventory"),g(L=>L+1);return}z("sessions"),(async()=>{try{const L=await _C(w,M),H=L.session_backends.find(ae=>ae.available!==!1&&ae.drive!==!1)??L.session_backends.find(ae=>ae.available!==!1)??L.session_backends[0];if(!H||H.available===!1)throw new Error((H==null?void 0:H.reason)??"No available session backend for the new instance.");const B=new URLSearchParams({mode:H.mode,backend:H.backend}),J=await He(`/api/instances/${encodeURIComponent(L.id)}/sessions?${B}`,{method:"POST"});G.attach(J.attach_url,!1,H.drive===!1?"observer":"controller",{instanceId:L.id,sessionId:J.id})}catch(L){console.warn("auto-session after launch did not complete:",L.message)}finally{g(L=>L+1)}})()},D=async()=>{var w;await((w=navigator.clipboard)==null?void 0:w.writeText("aiwg cockpit"))};return f.jsxDEV(f.Fragment,{children:[f.jsxDEV("header",{children:[f.jsxDEV("div",{className:"brand-lockup",children:[f.jsxDEV("span",{className:"mark","aria-hidden":"true",children:"◆"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:203,columnNumber:11},this),f.jsxDEV("h1",{children:"AIWG Cockpit"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:204,columnNumber:11},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:202,columnNumber:9},this),f.jsxDEV("div",{className:"top-status","aria-label":"Cockpit status","aria-live":"polite",children:[f.jsxDEV("span",{className:`health-pill ${_==="live"?"ok":"warn"}`,title:_==="reconnecting"&&c?"Connection interrupted; showing last-known status while Cockpit retries.":void 0,children:_==="live"?"Bridge live":_==="reconnecting"?"Reconnecting…":"Bridge checking"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:207,columnNumber:11},this),c&&f.jsxDEV(f.Fragment,{children:[f.jsxDEV("span",{className:"executor-pill",title:c.executor,children:c.executor},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:215,columnNumber:15},this),f.jsxDEV("span",{children:[c.instances," stacks"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:216,columnNumber:15},this),f.jsxDEV("span",{children:[c.running," running"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:217,columnNumber:15},this),f.jsxDEV("span",{children:[c.responses," responses needed"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:218,columnNumber:15},this),f.jsxDEV("span",{className:"matrix-mini",title:"Runtime target coverage",children:["host ",c.host?"✓":"-"," · docker ",c.container?"✓":"-"," · vm ",c.vm?"✓":"-"]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:219,columnNumber:15},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:214,columnNumber:13},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:206,columnNumber:9},this),f.jsxDEV("button",{className:"meta",onClick:()=>o(!0),children:"+ Launch instance"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:223,columnNumber:9},this),f.jsxDEV("button",{className:"meta",onClick:()=>N(),children:"▸ Start a session"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:224,columnNumber:9},this),f.jsxDEV("button",{className:"meta",onClick:D,children:"Copy CLI"},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:225,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:201,columnNumber:7},this),f.jsxDEV("div",{role:"tablist","aria-label":"Cockpit views",children:Wm.map(w=>f.jsxDEV("button",{role:"tab",id:`tab-${w.id}`,"aria-controls":`panel-${w.id}`,"aria-selected":O===w.id,tabIndex:O===w.id?0:-1,onClick:()=>z(w.id),children:w.label},w.id,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:229,columnNumber:11},this))},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:227,columnNumber:7},this),f.jsxDEV("main",{children:[f.jsxDEV(Ps,{id:"welcome",tab:O,children:f.jsxDEV(yN,{onStartSession:()=>N(),onLaunchInstance:()=>o(!0),goTo:w=>z(w)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:236,columnNumber:39},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:236,columnNumber:9},this),f.jsxDEV(Ps,{id:"inventory",tab:O,children:f.jsxDEV(DN,{onStartSession:N,onLaunchInstance:()=>o(!0),refreshTick:a},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:237,columnNumber:41},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:237,columnNumber:9},this),f.jsxDEV(Ps,{id:"running",tab:O,children:f.jsxDEV(TN,{refreshTick:a},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:238,columnNumber:39},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:238,columnNumber:9},this),f.jsxDEV(Ps,{id:"missions",tab:O,children:f.jsxDEV(AN,{refreshTick:a},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:239,columnNumber:40},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:239,columnNumber:9},this),f.jsxDEV("section",{id:"panel-sessions",role:"tabpanel","aria-labelledby":"tab-sessions",hidden:O!=="sessions",children:f.jsxDEV(QN,{session:G,composer:ne,setComposer:W,onRequestStart:N,refreshTick:a},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:242,columnNumber:11},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:241,columnNumber:9},this),f.jsxDEV(Ps,{id:"approvals",tab:O,children:f.jsxDEV(iC,{refreshTick:a,responses:[...Z,...G.responseNeeded.needed?[SC(G)]:[]],goSessions:()=>z("sessions")},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:244,columnNumber:41},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:244,columnNumber:9},this),f.jsxDEV(Ps,{id:"explore",tab:O,children:f.jsxDEV(sC,{},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:245,columnNumber:39},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:245,columnNumber:9},this),f.jsxDEV(Ps,{id:"library",tab:O,children:f.jsxDEV(nC,{session:G,setComposer:W,goSessions:()=>z("sessions")},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:247,columnNumber:11},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:246,columnNumber:9},this),f.jsxDEV(Ps,{id:"telemetry",tab:O,children:f.jsxDEV(oC,{refreshTick:a},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:249,columnNumber:41},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:249,columnNumber:9},this),f.jsxDEV(Ps,{id:"memory",tab:O,children:f.jsxDEV(lC,{refreshTick:a},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:250,columnNumber:38},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:250,columnNumber:9},this),f.jsxDEV(Ps,{id:"actions",tab:O,children:f.jsxDEV(rC,{refreshTick:a,session:G,setComposer:W,goSessions:()=>z("sessions")},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:252,columnNumber:11},this)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:251,columnNumber:9},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:235,columnNumber:7},this),f.jsxDEV(dC,{open:y,onClose:()=>E(!1),session:G,onStarted:()=>z("sessions"),initialInstanceId:v},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:255,columnNumber:7},this),f.jsxDEV(pC,{open:h,onClose:()=>o(!1),onLaunched:C},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:262,columnNumber:7},this)]},void 0,!0,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:200,columnNumber:5},this)}const sw=(()=>{const O=Number(window.AIWG_COCKPIT_SESSION_WAIT_S);return Number.isFinite(O)&&O>0?Math.floor(O):150})();async function _C(O,z){var ne,W;let G="",I="";for(let c=0;c<sw;c+=1){if(z){const y=await He(`/api/operations/${encodeURIComponent(z)}`),E=String(y.state??"").toLowerCase(),v=((ne=y.result)==null?void 0:ne.instance_id)??((W=y.result)==null?void 0:W.instanceId);if(v&&!O&&(O=v),E==="failed")throw new Error(yC(y));E&&(I=wC(y),G=I)}const b=await He("/api/inventory"),_=new Set(["stopped","failed","error","terminated","destroyed","exited","dead"]),S=O?b.instances.find(y=>y.id===O):null;if(S&&c>3&&_.has(String(S.state).toLowerCase()))throw new Error(`Instance ${S.id} did not come online — it settled to '${S.state}' instead of running`+(I?` (${I})`:"")+". Its agent likely failed to register; check the runtime and try again.");const d=b.instances.filter(y=>String(y.state).toLowerCase()==="running"),m=O?d.find(y=>y.id===O):null;if(m){const y=m.session_backends.find(E=>E.available!==!1)??m.session_backends[0];if(y&&y.available!==!1)return m;G=(y==null?void 0:y.reason)??`instance ${m.id} has no available backend yet`}else G=[I,O?`instance ${O} not visible in inventory yet`:"waiting for launch operation to report instance id"].filter(Boolean).join("; ");await gC(1e3)}const Z=O?`Instance ${O}`:"The instance";throw new Error(`${Z} launched and is still installing its loadout — its agent had not registered after ${sw}s (${G}). This is not a failure: heavy loadouts (e.g. full-suite) can take longer. It will appear under Inventory once its agent enrolls; open a session from there when it shows as running.`)}function yC(O){var z,G,I,Z,ne,W;return typeof O.error=="string"?O.error:((z=O.failure)==null?void 0:z.message)??((G=O.failure)==null?void 0:G.detail)??((I=O.failure)==null?void 0:I.code)??((Z=O.error)==null?void 0:Z.message)??((ne=O.error)==null?void 0:ne.detail)??((W=O.error)==null?void 0:W.code)??`operation ${O.id??""} failed`}function wC(O){var G,I,Z,ne,W;const z=[`operation ${O.id??""} is ${O.state??"unknown"}`];return(G=O.result)!=null&&G.runtime&&z.push(`runtime ${O.result.runtime}`),(I=O.result)!=null&&I.container_id&&z.push(`container ${O.result.container_id.slice(0,12)}`),(((Z=O.result)==null?void 0:Z.instance_id)??((ne=O.result)==null?void 0:ne.instanceId))&&z.push(`instance ${O.result.instance_id??O.result.instanceId}`),String(O.state??"").toLowerCase()==="succeeded"&&((W=O.result)!=null&&W.container_id)&&z.push("container was created, but no agent registered; see agentic-sandbox #501"),z.join("; ")}function SC(O){return{id:`pty:${O.state.url??"attached"}`,instance_id:"attached session",prompt:O.responseNeeded.prompt,source:O.responseNeeded.source,status:"response-needed",attach_url:O.state.url}}function Ps({id:O,tab:z,children:G}){return f.jsxDEV("section",{id:`panel-${O}`,role:"tabpanel","aria-labelledby":`tab-${O}`,hidden:z!==O,children:z===O?G:null},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/App.tsx",lineNumber:373,columnNumber:5},this)}oN.createRoot(document.getElementById("root")).render(f.jsxDEV(ie.StrictMode,{children:f.jsxDEV(vC,{},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/main.tsx",lineNumber:9,columnNumber:5},void 0)},void 0,!1,{fileName:"/tmp/aiwg-cockpit-web-release-Uo86Oz/web/src/main.tsx",lineNumber:8,columnNumber:3},void 0));
|