@jxa13/pm2ui 1.17.1 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,224 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ja={exports:{}},eo={},Ea={exports:{}},F={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Dr=Symbol.for("react.element"),gf=Symbol.for("react.portal"),yf=Symbol.for("react.fragment"),vf=Symbol.for("react.strict_mode"),wf=Symbol.for("react.profiler"),Sf=Symbol.for("react.provider"),xf=Symbol.for("react.context"),kf=Symbol.for("react.forward_ref"),Cf=Symbol.for("react.suspense"),jf=Symbol.for("react.memo"),Ef=Symbol.for("react.lazy"),au=Symbol.iterator;function Nf(e){return e===null||typeof e!="object"?null:(e=au&&e[au]||e["@@iterator"],typeof e=="function"?e:null)}var Na={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pa=Object.assign,_a={};function Wn(e,t,n){this.props=e,this.context=t,this.refs=_a,this.updater=n||Na}Wn.prototype.isReactComponent={};Wn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Wn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function La(){}La.prototype=Wn.prototype;function Zi(e,t,n){this.props=e,this.context=t,this.refs=_a,this.updater=n||Na}var Ji=Zi.prototype=new La;Ji.constructor=Zi;Pa(Ji,Wn.prototype);Ji.isPureReactComponent=!0;var cu=Array.isArray,Ta=Object.prototype.hasOwnProperty,qi={current:null},Ma={key:!0,ref:!0,__self:!0,__source:!0};function za(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Ta.call(t,r)&&!Ma.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1<u){for(var a=Array(u),c=0;c<u;c++)a[c]=arguments[c+2];l.children=a}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:Dr,type:e,key:o,ref:i,props:l,_owner:qi.current}}function Pf(e,t){return{$$typeof:Dr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bi(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dr}function _f(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var du=/\/+/g;function jo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_f(""+e.key):t.toString(36)}function gl(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Dr:case gf:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+jo(i,0):r,cu(l)?(n="",e!=null&&(n=e.replace(du,"$&/")+"/"),gl(l,t,n,"",function(c){return c})):l!=null&&(bi(l)&&(l=Pf(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(du,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",cu(e))for(var u=0;u<e.length;u++){o=e[u];var a=r+jo(o,u);i+=gl(o,t,n,a,l)}else if(a=Nf(e),typeof a=="function")for(e=a.call(e),u=0;!(o=e.next()).done;)o=o.value,a=r+jo(o,u++),i+=gl(o,t,n,a,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function qr(e,t,n){if(e==null)return e;var r=[],l=0;return gl(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Lf(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ee={current:null},yl={transition:null},Tf={ReactCurrentDispatcher:Ee,ReactCurrentBatchConfig:yl,ReactCurrentOwner:qi};function Ia(){throw Error("act(...) is not supported in production builds of React.")}F.Children={map:qr,forEach:function(e,t,n){qr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return qr(e,function(){t++}),t},toArray:function(e){return qr(e,function(t){return t})||[]},only:function(e){if(!bi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};F.Component=Wn;F.Fragment=yf;F.Profiler=wf;F.PureComponent=Zi;F.StrictMode=vf;F.Suspense=Cf;F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tf;F.act=Ia;F.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Pa({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=qi.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(a in t)Ta.call(t,a)&&!Ma.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&u!==void 0?u[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){u=Array(a);for(var c=0;c<a;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:Dr,type:e.type,key:l,ref:o,props:r,_owner:i}};F.createContext=function(e){return e={$$typeof:xf,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sf,_context:e},e.Consumer=e};F.createElement=za;F.createFactory=function(e){var t=za.bind(null,e);return t.type=e,t};F.createRef=function(){return{current:null}};F.forwardRef=function(e){return{$$typeof:kf,render:e}};F.isValidElement=bi;F.lazy=function(e){return{$$typeof:Ef,_payload:{_status:-1,_result:e},_init:Lf}};F.memo=function(e,t){return{$$typeof:jf,type:e,compare:t===void 0?null:t}};F.startTransition=function(e){var t=yl.transition;yl.transition={};try{e()}finally{yl.transition=t}};F.unstable_act=Ia;F.useCallback=function(e,t){return Ee.current.useCallback(e,t)};F.useContext=function(e){return Ee.current.useContext(e)};F.useDebugValue=function(){};F.useDeferredValue=function(e){return Ee.current.useDeferredValue(e)};F.useEffect=function(e,t){return Ee.current.useEffect(e,t)};F.useId=function(){return Ee.current.useId()};F.useImperativeHandle=function(e,t,n){return Ee.current.useImperativeHandle(e,t,n)};F.useInsertionEffect=function(e,t){return Ee.current.useInsertionEffect(e,t)};F.useLayoutEffect=function(e,t){return Ee.current.useLayoutEffect(e,t)};F.useMemo=function(e,t){return Ee.current.useMemo(e,t)};F.useReducer=function(e,t,n){return Ee.current.useReducer(e,t,n)};F.useRef=function(e){return Ee.current.useRef(e)};F.useState=function(e){return Ee.current.useState(e)};F.useSyncExternalStore=function(e,t,n){return Ee.current.useSyncExternalStore(e,t,n)};F.useTransition=function(){return Ee.current.useTransition()};F.version="18.3.1";Ea.exports=F;var S=Ea.exports;const Mf=hf(S);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var zf=S,If=Symbol.for("react.element"),Rf=Symbol.for("react.fragment"),Df=Object.prototype.hasOwnProperty,Of=zf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$f={key:!0,ref:!0,__self:!0,__source:!0};function Ra(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Df.call(t,r)&&!$f.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:If,type:e,key:o,ref:i,props:l,_owner:Of.current}}eo.Fragment=Rf;eo.jsx=Ra;eo.jsxs=Ra;ja.exports=eo;var s=ja.exports,Da={exports:{}},$e={},Oa={exports:{}},$a={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(N,M){var R=N.length;N.push(M);e:for(;0<R;){var K=R-1>>>1,re=N[K];if(0<l(re,M))N[K]=M,N[R]=re,R=K;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var M=N[0],R=N.pop();if(R!==M){N[0]=R;e:for(var K=0,re=N.length,lt=re>>>1;K<lt;){var ot=2*(K+1)-1,Ue=N[ot],it=ot+1,Ye=N[it];if(0>l(Ue,R))it<re&&0>l(Ye,Ue)?(N[K]=Ye,N[it]=R,K=it):(N[K]=Ue,N[ot]=R,K=ot);else if(it<re&&0>l(Ye,R))N[K]=Ye,N[it]=R,K=it;else break e}}return M}function l(N,M){var R=N.sortIndex-M.sortIndex;return R!==0?R:N.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var a=[],c=[],y=1,g=null,h=3,v=!1,C=!1,x=!1,$=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(N){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=N)r(c),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(c)}}function w(N){if(x=!1,p(N),!C)if(n(a)!==null)C=!0,z(E);else{var M=n(c);M!==null&&W(w,M.startTime-N)}}function E(N,M){C=!1,x&&(x=!1,f(T),T=-1),v=!0;var R=h;try{for(p(M),g=n(a);g!==null&&(!(g.expirationTime>M)||N&&!me());){var K=g.callback;if(typeof K=="function"){g.callback=null,h=g.priorityLevel;var re=K(g.expirationTime<=M);M=e.unstable_now(),typeof re=="function"?g.callback=re:g===n(a)&&r(a),p(M)}else r(a);g=n(a)}if(g!==null)var lt=!0;else{var ot=n(c);ot!==null&&W(w,ot.startTime-M),lt=!1}return lt}finally{g=null,h=R,v=!1}}var L=!1,P=null,T=-1,H=5,D=-1;function me(){return!(e.unstable_now()-D<H)}function Pe(){if(P!==null){var N=e.unstable_now();D=N;var M=!0;try{M=P(!0,N)}finally{M?mt():(L=!1,P=null)}}else L=!1}var mt;if(typeof d=="function")mt=function(){d(Pe)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,Qn=rt.port2;rt.port1.onmessage=Pe,mt=function(){Qn.postMessage(null)}}else mt=function(){$(Pe,0)};function z(N){P=N,L||(L=!0,mt())}function W(N,M){T=$(function(){N(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){C||v||(C=!0,z(E))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(N){switch(h){case 1:case 2:case 3:var M=3;break;default:M=h}var R=h;h=M;try{return N()}finally{h=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,M){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var R=h;h=N;try{return M()}finally{h=R}},e.unstable_scheduleCallback=function(N,M,R){var K=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?K+R:K):R=K,N){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=R+re,N={id:y++,callback:M,priorityLevel:N,startTime:R,expirationTime:re,sortIndex:-1},R>K?(N.sortIndex=R,t(c,N),n(a)===null&&N===n(c)&&(x?(f(T),T=-1):x=!0,W(w,R-K))):(N.sortIndex=re,t(a,N),C||v||(C=!0,z(E))),N},e.unstable_shouldYield=me,e.unstable_wrapCallback=function(N){var M=h;return function(){var R=h;h=M;try{return N.apply(this,arguments)}finally{h=R}}}})($a);Oa.exports=$a;var Ff=Oa.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Uf=S,Oe=Ff;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Fa=new Set,vr={};function un(e,t){Rn(e,t),Rn(e+"Capture",t)}function Rn(e,t){for(vr[e]=t,e=0;e<t.length;e++)Fa.add(t[e])}var St=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ni=Object.prototype.hasOwnProperty,Af=/^[: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]*$/,fu={},pu={};function Vf(e){return ni.call(pu,e)?!0:ni.call(fu,e)?!1:Af.test(e)?pu[e]=!0:(fu[e]=!0,!1)}function Wf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bf(e,t,n,r){if(t===null||typeof t>"u"||Wf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ne(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ne(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var es=/[\-:]([a-z])/g;function ts(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(es,ts);pe[t]=new Ne(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(es,ts);pe[t]=new Ne(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(es,ts);pe[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function ns(e,t,n,r){var l=pe.hasOwnProperty(t)?pe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Bf(t,n,l,r)&&(n=null),r||l===null?Vf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var jt=Uf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,br=Symbol.for("react.element"),gn=Symbol.for("react.portal"),yn=Symbol.for("react.fragment"),rs=Symbol.for("react.strict_mode"),ri=Symbol.for("react.profiler"),Ua=Symbol.for("react.provider"),Aa=Symbol.for("react.context"),ls=Symbol.for("react.forward_ref"),li=Symbol.for("react.suspense"),oi=Symbol.for("react.suspense_list"),os=Symbol.for("react.memo"),Tt=Symbol.for("react.lazy"),Va=Symbol.for("react.offscreen"),mu=Symbol.iterator;function Gn(e){return e===null||typeof e!="object"?null:(e=mu&&e[mu]||e["@@iterator"],typeof e=="function"?e:null)}var b=Object.assign,Eo;function or(e){if(Eo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Eo=t&&t[1]||""}return`
34
+ `+Eo+e}var No=!1;function Po(e,t){if(!e||No)return"";No=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var a=`
37
+ `+l[i].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=i&&0<=u);break}}}finally{No=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?or(e):""}function Hf(e){switch(e.tag){case 5:return or(e.type);case 16:return or("Lazy");case 13:return or("Suspense");case 19:return or("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function ii(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yn:return"Fragment";case gn:return"Portal";case ri:return"Profiler";case rs:return"StrictMode";case li:return"Suspense";case oi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Aa:return(e.displayName||"Context")+".Consumer";case Ua:return(e._context.displayName||"Context")+".Provider";case ls:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case os:return t=e.displayName||null,t!==null?t:ii(e.type)||"Memo";case Tt:t=e._payload,e=e._init;try{return ii(e(t))}catch{}}return null}function Qf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";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 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ii(t);case 8:return t===rs?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kf(e){var t=Wa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function el(e){e._valueTracker||(e._valueTracker=Kf(e))}function Ba(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _l(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 si(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ha(e,t){t=t.checked,t!=null&&ns(e,"checked",t,!1)}function ui(e,t){Ha(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ai(e,t.type,n):t.hasOwnProperty("defaultValue")&&ai(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ai(e,t,n){(t!=="number"||_l(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ir=Array.isArray;function _n(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function ci(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(k(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(k(92));if(ir(n)){if(1<n.length)throw Error(k(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function Qa(e,t){var n=Ht(t.value),r=Ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function vu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ka(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function di(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ka(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var tl,Ya=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(tl=tl||document.createElement("div"),tl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ar={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Yf=["Webkit","ms","Moz","O"];Object.keys(ar).forEach(function(e){Yf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ar[t]=ar[e]})});function Ga(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ar.hasOwnProperty(e)&&ar[e]?(""+t).trim():t+"px"}function Xa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Ga(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Gf=b({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fi(e,t){if(t){if(Gf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function pi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function is(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hi=null,Ln=null,Tn=null;function wu(e){if(e=Fr(e)){if(typeof hi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=oo(t),hi(e.stateNode,e.type,t))}}function Za(e){Ln?Tn?Tn.push(e):Tn=[e]:Ln=e}function Ja(){if(Ln){var e=Ln,t=Tn;if(Tn=Ln=null,wu(e),t)for(e=0;e<t.length;e++)wu(t[e])}}function qa(e,t){return e(t)}function ba(){}var _o=!1;function ec(e,t,n){if(_o)return e(t,n);_o=!0;try{return qa(e,t,n)}finally{_o=!1,(Ln!==null||Tn!==null)&&(ba(),Ja())}}function Sr(e,t){var n=e.stateNode;if(n===null)return null;var r=oo(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(k(231,t,typeof n));return n}var gi=!1;if(St)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){gi=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch{gi=!1}function Xf(e,t,n,r,l,o,i,u,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(y){this.onError(y)}}var cr=!1,Ll=null,Tl=!1,yi=null,Zf={onError:function(e){cr=!0,Ll=e}};function Jf(e,t,n,r,l,o,i,u,a){cr=!1,Ll=null,Xf.apply(Zf,arguments)}function qf(e,t,n,r,l,o,i,u,a){if(Jf.apply(this,arguments),cr){if(cr){var c=Ll;cr=!1,Ll=null}else throw Error(k(198));Tl||(Tl=!0,yi=c)}}function an(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function tc(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 Su(e){if(an(e)!==e)throw Error(k(188))}function bf(e){var t=e.alternate;if(!t){if(t=an(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Su(l),e;if(o===r)return Su(l),t;o=o.sibling}throw Error(k(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(k(189))}}if(n.alternate!==r)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function nc(e){return e=bf(e),e!==null?rc(e):null}function rc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=rc(e);if(t!==null)return t;e=e.sibling}return null}var lc=Oe.unstable_scheduleCallback,xu=Oe.unstable_cancelCallback,ep=Oe.unstable_shouldYield,tp=Oe.unstable_requestPaint,ne=Oe.unstable_now,np=Oe.unstable_getCurrentPriorityLevel,ss=Oe.unstable_ImmediatePriority,oc=Oe.unstable_UserBlockingPriority,Ml=Oe.unstable_NormalPriority,rp=Oe.unstable_LowPriority,ic=Oe.unstable_IdlePriority,to=null,ft=null;function lp(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(to,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:sp,op=Math.log,ip=Math.LN2;function sp(e){return e>>>=0,e===0?32:31-(op(e)/ip|0)|0}var nl=64,rl=4194304;function sr(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var u=i&~l;u!==0?r=sr(u):(o&=i,o!==0&&(r=sr(o)))}else i=n&~l,i!==0?r=sr(i):o!==0&&(r=sr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-et(t),l=1<<n,r|=e[n],t&=~l;return r}function up(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ap(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-et(o),u=1<<i,a=l[i];a===-1?(!(u&n)||u&r)&&(l[i]=up(u,t)):a<=t&&(e.expiredLanes|=u),o&=~u}}function vi(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sc(){var e=nl;return nl<<=1,!(nl&4194240)&&(nl=64),e}function Lo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Or(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function cp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-et(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function us(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var B=0;function uc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ac,as,cc,dc,fc,wi=!1,ll=[],Ot=null,$t=null,Ft=null,xr=new Map,kr=new Map,zt=[],dp="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 submit".split(" ");function ku(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":$t=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":xr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kr.delete(t.pointerId)}}function Zn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Fr(t),t!==null&&as(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function fp(e,t,n,r,l){switch(t){case"focusin":return Ot=Zn(Ot,e,t,n,r,l),!0;case"dragenter":return $t=Zn($t,e,t,n,r,l),!0;case"mouseover":return Ft=Zn(Ft,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return xr.set(o,Zn(xr.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,kr.set(o,Zn(kr.get(o)||null,e,t,n,r,l)),!0}return!1}function pc(e){var t=Jt(e.target);if(t!==null){var n=an(t);if(n!==null){if(t=n.tag,t===13){if(t=tc(n),t!==null){e.blockedOn=t,fc(e.priority,function(){cc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Si(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mi=r,n.target.dispatchEvent(r),mi=null}else return t=Fr(n),t!==null&&as(t),e.blockedOn=n,!1;t.shift()}return!0}function Cu(e,t,n){vl(e)&&n.delete(t)}function pp(){wi=!1,Ot!==null&&vl(Ot)&&(Ot=null),$t!==null&&vl($t)&&($t=null),Ft!==null&&vl(Ft)&&(Ft=null),xr.forEach(Cu),kr.forEach(Cu)}function Jn(e,t){e.blockedOn===t&&(e.blockedOn=null,wi||(wi=!0,Oe.unstable_scheduleCallback(Oe.unstable_NormalPriority,pp)))}function Cr(e){function t(l){return Jn(l,e)}if(0<ll.length){Jn(ll[0],e);for(var n=1;n<ll.length;n++){var r=ll[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ot!==null&&Jn(Ot,e),$t!==null&&Jn($t,e),Ft!==null&&Jn(Ft,e),xr.forEach(t),kr.forEach(t),n=0;n<zt.length;n++)r=zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&(n=zt[0],n.blockedOn===null);)pc(n),n.blockedOn===null&&zt.shift()}var Mn=jt.ReactCurrentBatchConfig,Il=!0;function mp(e,t,n,r){var l=B,o=Mn.transition;Mn.transition=null;try{B=1,cs(e,t,n,r)}finally{B=l,Mn.transition=o}}function hp(e,t,n,r){var l=B,o=Mn.transition;Mn.transition=null;try{B=4,cs(e,t,n,r)}finally{B=l,Mn.transition=o}}function cs(e,t,n,r){if(Il){var l=Si(e,t,n,r);if(l===null)Uo(e,t,r,Rl,n),ku(e,r);else if(fp(l,e,t,n,r))r.stopPropagation();else if(ku(e,r),t&4&&-1<dp.indexOf(e)){for(;l!==null;){var o=Fr(l);if(o!==null&&ac(o),o=Si(e,t,n,r),o===null&&Uo(e,t,r,Rl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Uo(e,t,r,null,n)}}var Rl=null;function Si(e,t,n,r){if(Rl=null,e=is(r),e=Jt(e),e!==null)if(t=an(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tc(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Rl=e,null}function mc(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(np()){case ss:return 1;case oc:return 4;case Ml:case rp:return 16;case ic:return 536870912;default:return 16}default:return 16}}var Rt=null,ds=null,wl=null;function hc(){if(wl)return wl;var e,t=ds,n=t.length,r,l="value"in Rt?Rt.value:Rt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return wl=l.slice(e,1<r?1-r:void 0)}function Sl(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 ol(){return!0}function ju(){return!1}function Fe(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ol:ju,this.isPropagationStopped=ju,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ol)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ol)},persist:function(){},isPersistent:ol}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fs=Fe(Bn),$r=b({},Bn,{view:0,detail:0}),gp=Fe($r),To,Mo,qn,no=b({},$r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ps,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!==qn&&(qn&&e.type==="mousemove"?(To=e.screenX-qn.screenX,Mo=e.screenY-qn.screenY):Mo=To=0,qn=e),To)},movementY:function(e){return"movementY"in e?e.movementY:Mo}}),Eu=Fe(no),yp=b({},no,{dataTransfer:0}),vp=Fe(yp),wp=b({},$r,{relatedTarget:0}),zo=Fe(wp),Sp=b({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),xp=Fe(Sp),kp=b({},Bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cp=Fe(kp),jp=b({},Bn,{data:0}),Nu=Fe(jp),Ep={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Np={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"},Pp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _p(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pp[e])?!!t[e]:!1}function ps(){return _p}var Lp=b({},$r,{key:function(e){if(e.key){var t=Ep[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Sl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Np[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ps,charCode:function(e){return e.type==="keypress"?Sl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tp=Fe(Lp),Mp=b({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pu=Fe(Mp),zp=b({},$r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ps}),Ip=Fe(zp),Rp=b({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dp=Fe(Rp),Op=b({},no,{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}),$p=Fe(Op),Fp=[9,13,27,32],ms=St&&"CompositionEvent"in window,dr=null;St&&"documentMode"in document&&(dr=document.documentMode);var Up=St&&"TextEvent"in window&&!dr,gc=St&&(!ms||dr&&8<dr&&11>=dr),_u=" ",Lu=!1;function yc(e,t){switch(e){case"keyup":return Fp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function Ap(e,t){switch(e){case"compositionend":return vc(t);case"keypress":return t.which!==32?null:(Lu=!0,_u);case"textInput":return e=t.data,e===_u&&Lu?null:e;default:return null}}function Vp(e,t){if(vn)return e==="compositionend"||!ms&&yc(e,t)?(e=hc(),wl=ds=Rt=null,vn=!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 gc&&t.locale!=="ko"?null:t.data;default:return null}}var Wp={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Wp[e.type]:t==="textarea"}function wc(e,t,n,r){Za(r),t=Dl(t,"onChange"),0<t.length&&(n=new fs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var fr=null,jr=null;function Bp(e){Tc(e,0)}function ro(e){var t=xn(e);if(Ba(t))return e}function Hp(e,t){if(e==="change")return t}var Sc=!1;if(St){var Io;if(St){var Ro="oninput"in document;if(!Ro){var Mu=document.createElement("div");Mu.setAttribute("oninput","return;"),Ro=typeof Mu.oninput=="function"}Io=Ro}else Io=!1;Sc=Io&&(!document.documentMode||9<document.documentMode)}function zu(){fr&&(fr.detachEvent("onpropertychange",xc),jr=fr=null)}function xc(e){if(e.propertyName==="value"&&ro(jr)){var t=[];wc(t,jr,e,is(e)),ec(Bp,t)}}function Qp(e,t,n){e==="focusin"?(zu(),fr=t,jr=n,fr.attachEvent("onpropertychange",xc)):e==="focusout"&&zu()}function Kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ro(jr)}function Yp(e,t){if(e==="click")return ro(t)}function Gp(e,t){if(e==="input"||e==="change")return ro(t)}function Xp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Xp;function Er(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!ni.call(t,l)||!nt(e[l],t[l]))return!1}return!0}function Iu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ru(e,t){var n=Iu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Iu(n)}}function kc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cc(){for(var e=window,t=_l();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_l(e.document)}return t}function hs(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 Zp(e){var t=Cc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kc(n.ownerDocument.documentElement,n)){if(r!==null&&hs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ru(n,o);var i=Ru(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Jp=St&&"documentMode"in document&&11>=document.documentMode,wn=null,xi=null,pr=null,ki=!1;function Du(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||wn==null||wn!==_l(r)||(r=wn,"selectionStart"in r&&hs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pr&&Er(pr,r)||(pr=r,r=Dl(xi,"onSelect"),0<r.length&&(t=new fs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wn)))}function il(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sn={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionend:il("Transition","TransitionEnd")},Do={},jc={};St&&(jc=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);function lo(e){if(Do[e])return Do[e];if(!Sn[e])return e;var t=Sn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jc)return Do[e]=t[n];return e}var Ec=lo("animationend"),Nc=lo("animationiteration"),Pc=lo("animationstart"),_c=lo("transitionend"),Lc=new Map,Ou="abort auxClick 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(" ");function Kt(e,t){Lc.set(e,t),un(t,[e])}for(var Oo=0;Oo<Ou.length;Oo++){var $o=Ou[Oo],qp=$o.toLowerCase(),bp=$o[0].toUpperCase()+$o.slice(1);Kt(qp,"on"+bp)}Kt(Ec,"onAnimationEnd");Kt(Nc,"onAnimationIteration");Kt(Pc,"onAnimationStart");Kt("dblclick","onDoubleClick");Kt("focusin","onFocus");Kt("focusout","onBlur");Kt(_c,"onTransitionEnd");Rn("onMouseEnter",["mouseout","mouseover"]);Rn("onMouseLeave",["mouseout","mouseover"]);Rn("onPointerEnter",["pointerout","pointerover"]);Rn("onPointerLeave",["pointerout","pointerover"]);un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));un("onBeforeInput",["compositionend","keypress","textInput","paste"]);un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ur="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(" "),em=new Set("cancel close invalid load scroll toggle".split(" ").concat(ur));function $u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,qf(r,t,void 0,e),e.currentTarget=null}function Tc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var u=r[i],a=u.instance,c=u.currentTarget;if(u=u.listener,a!==o&&l.isPropagationStopped())break e;$u(l,u,c),o=a}else for(i=0;i<r.length;i++){if(u=r[i],a=u.instance,c=u.currentTarget,u=u.listener,a!==o&&l.isPropagationStopped())break e;$u(l,u,c),o=a}}}if(Tl)throw e=yi,Tl=!1,yi=null,e}function G(e,t){var n=t[Pi];n===void 0&&(n=t[Pi]=new Set);var r=e+"__bubble";n.has(r)||(Mc(t,e,2,!1),n.add(r))}function Fo(e,t,n){var r=0;t&&(r|=4),Mc(n,e,r,t)}var sl="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){if(!e[sl]){e[sl]=!0,Fa.forEach(function(n){n!=="selectionchange"&&(em.has(n)||Fo(n,!1,e),Fo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[sl]||(t[sl]=!0,Fo("selectionchange",!1,t))}}function Mc(e,t,n,r){switch(mc(t)){case 1:var l=mp;break;case 4:l=hp;break;default:l=cs}n=l.bind(null,t,n,e),l=void 0,!gi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Uo(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var a=i.tag;if((a===3||a===4)&&(a=i.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;i=i.return}for(;u!==null;){if(i=Jt(u),i===null)return;if(a=i.tag,a===5||a===6){r=o=i;continue e}u=u.parentNode}}r=r.return}ec(function(){var c=o,y=is(n),g=[];e:{var h=Lc.get(e);if(h!==void 0){var v=fs,C=e;switch(e){case"keypress":if(Sl(n)===0)break e;case"keydown":case"keyup":v=Tp;break;case"focusin":C="focus",v=zo;break;case"focusout":C="blur",v=zo;break;case"beforeblur":case"afterblur":v=zo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Eu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=vp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Ip;break;case Ec:case Nc:case Pc:v=xp;break;case _c:v=Dp;break;case"scroll":v=gp;break;case"wheel":v=$p;break;case"copy":case"cut":case"paste":v=Cp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Pu}var x=(t&4)!==0,$=!x&&e==="scroll",f=x?h!==null?h+"Capture":null:h;x=[];for(var d=c,p;d!==null;){p=d;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,f!==null&&(w=Sr(d,f),w!=null&&x.push(Pr(d,w,p)))),$)break;d=d.return}0<x.length&&(h=new v(h,C,null,n,y),g.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&n!==mi&&(C=n.relatedTarget||n.fromElement)&&(Jt(C)||C[xt]))break e;if((v||h)&&(h=y.window===y?y:(h=y.ownerDocument)?h.defaultView||h.parentWindow:window,v?(C=n.relatedTarget||n.toElement,v=c,C=C?Jt(C):null,C!==null&&($=an(C),C!==$||C.tag!==5&&C.tag!==6)&&(C=null)):(v=null,C=c),v!==C)){if(x=Eu,w="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(x=Pu,w="onPointerLeave",f="onPointerEnter",d="pointer"),$=v==null?h:xn(v),p=C==null?h:xn(C),h=new x(w,d+"leave",v,n,y),h.target=$,h.relatedTarget=p,w=null,Jt(y)===c&&(x=new x(f,d+"enter",C,n,y),x.target=p,x.relatedTarget=$,w=x),$=w,v&&C)t:{for(x=v,f=C,d=0,p=x;p;p=hn(p))d++;for(p=0,w=f;w;w=hn(w))p++;for(;0<d-p;)x=hn(x),d--;for(;0<p-d;)f=hn(f),p--;for(;d--;){if(x===f||f!==null&&x===f.alternate)break t;x=hn(x),f=hn(f)}x=null}else x=null;v!==null&&Fu(g,h,v,x,!1),C!==null&&$!==null&&Fu(g,$,C,x,!0)}}e:{if(h=c?xn(c):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var E=Hp;else if(Tu(h))if(Sc)E=Gp;else{E=Kp;var L=Qp}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Yp);if(E&&(E=E(e,c))){wc(g,E,n,y);break e}L&&L(e,h,c),e==="focusout"&&(L=h._wrapperState)&&L.controlled&&h.type==="number"&&ai(h,"number",h.value)}switch(L=c?xn(c):window,e){case"focusin":(Tu(L)||L.contentEditable==="true")&&(wn=L,xi=c,pr=null);break;case"focusout":pr=xi=wn=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Du(g,n,y);break;case"selectionchange":if(Jp)break;case"keydown":case"keyup":Du(g,n,y)}var P;if(ms)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else vn?yc(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(gc&&n.locale!=="ko"&&(vn||T!=="onCompositionStart"?T==="onCompositionEnd"&&vn&&(P=hc()):(Rt=y,ds="value"in Rt?Rt.value:Rt.textContent,vn=!0)),L=Dl(c,T),0<L.length&&(T=new Nu(T,e,null,n,y),g.push({event:T,listeners:L}),P?T.data=P:(P=vc(n),P!==null&&(T.data=P)))),(P=Up?Ap(e,n):Vp(e,n))&&(c=Dl(c,"onBeforeInput"),0<c.length&&(y=new Nu("onBeforeInput","beforeinput",null,n,y),g.push({event:y,listeners:c}),y.data=P))}Tc(g,t)})}function Pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Sr(e,n),o!=null&&r.unshift(Pr(e,o,l)),o=Sr(e,t),o!=null&&r.push(Pr(e,o,l))),e=e.return}return r}function hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fu(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var u=n,a=u.alternate,c=u.stateNode;if(a!==null&&a===r)break;u.tag===5&&c!==null&&(u=c,l?(a=Sr(n,o),a!=null&&i.unshift(Pr(n,a,u))):l||(a=Sr(n,o),a!=null&&i.push(Pr(n,a,u)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var tm=/\r\n?/g,nm=/\u0000|\uFFFD/g;function Uu(e){return(typeof e=="string"?e:""+e).replace(tm,`
38
+ `).replace(nm,"")}function ul(e,t,n){if(t=Uu(t),Uu(e)!==t&&n)throw Error(k(425))}function Ol(){}var Ci=null,ji=null;function Ei(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ni=typeof setTimeout=="function"?setTimeout:void 0,rm=typeof clearTimeout=="function"?clearTimeout:void 0,Au=typeof Promise=="function"?Promise:void 0,lm=typeof queueMicrotask=="function"?queueMicrotask:typeof Au<"u"?function(e){return Au.resolve(null).then(e).catch(om)}:Ni;function om(e){setTimeout(function(){throw e})}function Ao(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),Cr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);Cr(t)}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Vu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Hn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Hn,_r="__reactProps$"+Hn,xt="__reactContainer$"+Hn,Pi="__reactEvents$"+Hn,im="__reactListeners$"+Hn,sm="__reactHandles$"+Hn;function Jt(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vu(e);e!==null;){if(n=e[dt])return n;e=Vu(e)}return t}e=n,n=e.parentNode}return null}function Fr(e){return e=e[dt]||e[xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function xn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(k(33))}function oo(e){return e[_r]||null}var _i=[],kn=-1;function Yt(e){return{current:e}}function X(e){0>kn||(e.current=_i[kn],_i[kn]=null,kn--)}function Q(e,t){kn++,_i[kn]=e.current,e.current=t}var Qt={},Se=Yt(Qt),Te=Yt(!1),nn=Qt;function Dn(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Me(e){return e=e.childContextTypes,e!=null}function $l(){X(Te),X(Se)}function Wu(e,t,n){if(Se.current!==Qt)throw Error(k(168));Q(Se,t),Q(Te,n)}function zc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Qf(e)||"Unknown",l));return b({},n,r)}function Fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,nn=Se.current,Q(Se,e),Q(Te,Te.current),!0}function Bu(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=zc(e,t,nn),r.__reactInternalMemoizedMergedChildContext=e,X(Te),X(Se),Q(Se,e)):X(Te),Q(Te,n)}var gt=null,io=!1,Vo=!1;function Ic(e){gt===null?gt=[e]:gt.push(e)}function um(e){io=!0,Ic(e)}function Gt(){if(!Vo&&gt!==null){Vo=!0;var e=0,t=B;try{var n=gt;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}gt=null,io=!1}catch(l){throw gt!==null&&(gt=gt.slice(e+1)),lc(ss,Gt),l}finally{B=t,Vo=!1}}return null}var Cn=[],jn=0,Ul=null,Al=0,Ae=[],Ve=0,rn=null,yt=1,vt="";function Xt(e,t){Cn[jn++]=Al,Cn[jn++]=Ul,Ul=e,Al=t}function Rc(e,t,n){Ae[Ve++]=yt,Ae[Ve++]=vt,Ae[Ve++]=rn,rn=e;var r=yt;e=vt;var l=32-et(r)-1;r&=~(1<<l),n+=1;var o=32-et(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,yt=1<<32-et(t)+l|n<<l|r,vt=o+e}else yt=1<<o|n<<l|r,vt=e}function gs(e){e.return!==null&&(Xt(e,1),Rc(e,1,0))}function ys(e){for(;e===Ul;)Ul=Cn[--jn],Cn[jn]=null,Al=Cn[--jn],Cn[jn]=null;for(;e===rn;)rn=Ae[--Ve],Ae[Ve]=null,vt=Ae[--Ve],Ae[Ve]=null,yt=Ae[--Ve],Ae[Ve]=null}var De=null,Re=null,Z=!1,be=null;function Dc(e,t){var n=Be(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Hu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,De=e,Re=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,De=e,Re=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=rn!==null?{id:yt,overflow:vt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Be(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,De=e,Re=null,!0):!1;default:return!1}}function Li(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ti(e){if(Z){var t=Re;if(t){var n=t;if(!Hu(e,t)){if(Li(e))throw Error(k(418));t=Ut(n.nextSibling);var r=De;t&&Hu(e,t)?Dc(r,n):(e.flags=e.flags&-4097|2,Z=!1,De=e)}}else{if(Li(e))throw Error(k(418));e.flags=e.flags&-4097|2,Z=!1,De=e}}}function Qu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;De=e}function al(e){if(e!==De)return!1;if(!Z)return Qu(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ei(e.type,e.memoizedProps)),t&&(t=Re)){if(Li(e))throw Oc(),Error(k(418));for(;t;)Dc(e,t),t=Ut(t.nextSibling)}if(Qu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Re=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Re=null}}else Re=De?Ut(e.stateNode.nextSibling):null;return!0}function Oc(){for(var e=Re;e;)e=Ut(e.nextSibling)}function On(){Re=De=null,Z=!1}function vs(e){be===null?be=[e]:be.push(e)}var am=jt.ReactCurrentBatchConfig;function bn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(k(309));var r=n.stateNode}if(!r)throw Error(k(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var u=l.refs;i===null?delete u[o]:u[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(k(284));if(!n._owner)throw Error(k(290,e))}return e}function cl(e,t){throw e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ku(e){var t=e._init;return t(e._payload)}function $c(e){function t(f,d){if(e){var p=f.deletions;p===null?(f.deletions=[d],f.flags|=16):p.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function l(f,d){return f=Bt(f,d),f.index=0,f.sibling=null,f}function o(f,d,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<d?(f.flags|=2,d):p):(f.flags|=2,d)):(f.flags|=1048576,d)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,d,p,w){return d===null||d.tag!==6?(d=Go(p,f.mode,w),d.return=f,d):(d=l(d,p),d.return=f,d)}function a(f,d,p,w){var E=p.type;return E===yn?y(f,d,p.props.children,w,p.key):d!==null&&(d.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Tt&&Ku(E)===d.type)?(w=l(d,p.props),w.ref=bn(f,d,p),w.return=f,w):(w=Pl(p.type,p.key,p.props,null,f.mode,w),w.ref=bn(f,d,p),w.return=f,w)}function c(f,d,p,w){return d===null||d.tag!==4||d.stateNode.containerInfo!==p.containerInfo||d.stateNode.implementation!==p.implementation?(d=Xo(p,f.mode,w),d.return=f,d):(d=l(d,p.children||[]),d.return=f,d)}function y(f,d,p,w,E){return d===null||d.tag!==7?(d=tn(p,f.mode,w,E),d.return=f,d):(d=l(d,p),d.return=f,d)}function g(f,d,p){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Go(""+d,f.mode,p),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case br:return p=Pl(d.type,d.key,d.props,null,f.mode,p),p.ref=bn(f,null,d),p.return=f,p;case gn:return d=Xo(d,f.mode,p),d.return=f,d;case Tt:var w=d._init;return g(f,w(d._payload),p)}if(ir(d)||Gn(d))return d=tn(d,f.mode,p,null),d.return=f,d;cl(f,d)}return null}function h(f,d,p,w){var E=d!==null?d.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:u(f,d,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case br:return p.key===E?a(f,d,p,w):null;case gn:return p.key===E?c(f,d,p,w):null;case Tt:return E=p._init,h(f,d,E(p._payload),w)}if(ir(p)||Gn(p))return E!==null?null:y(f,d,p,w,null);cl(f,p)}return null}function v(f,d,p,w,E){if(typeof w=="string"&&w!==""||typeof w=="number")return f=f.get(p)||null,u(d,f,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case br:return f=f.get(w.key===null?p:w.key)||null,a(d,f,w,E);case gn:return f=f.get(w.key===null?p:w.key)||null,c(d,f,w,E);case Tt:var L=w._init;return v(f,d,p,L(w._payload),E)}if(ir(w)||Gn(w))return f=f.get(p)||null,y(d,f,w,E,null);cl(d,w)}return null}function C(f,d,p,w){for(var E=null,L=null,P=d,T=d=0,H=null;P!==null&&T<p.length;T++){P.index>T?(H=P,P=null):H=P.sibling;var D=h(f,P,p[T],w);if(D===null){P===null&&(P=H);break}e&&P&&D.alternate===null&&t(f,P),d=o(D,d,T),L===null?E=D:L.sibling=D,L=D,P=H}if(T===p.length)return n(f,P),Z&&Xt(f,T),E;if(P===null){for(;T<p.length;T++)P=g(f,p[T],w),P!==null&&(d=o(P,d,T),L===null?E=P:L.sibling=P,L=P);return Z&&Xt(f,T),E}for(P=r(f,P);T<p.length;T++)H=v(P,f,T,p[T],w),H!==null&&(e&&H.alternate!==null&&P.delete(H.key===null?T:H.key),d=o(H,d,T),L===null?E=H:L.sibling=H,L=H);return e&&P.forEach(function(me){return t(f,me)}),Z&&Xt(f,T),E}function x(f,d,p,w){var E=Gn(p);if(typeof E!="function")throw Error(k(150));if(p=E.call(p),p==null)throw Error(k(151));for(var L=E=null,P=d,T=d=0,H=null,D=p.next();P!==null&&!D.done;T++,D=p.next()){P.index>T?(H=P,P=null):H=P.sibling;var me=h(f,P,D.value,w);if(me===null){P===null&&(P=H);break}e&&P&&me.alternate===null&&t(f,P),d=o(me,d,T),L===null?E=me:L.sibling=me,L=me,P=H}if(D.done)return n(f,P),Z&&Xt(f,T),E;if(P===null){for(;!D.done;T++,D=p.next())D=g(f,D.value,w),D!==null&&(d=o(D,d,T),L===null?E=D:L.sibling=D,L=D);return Z&&Xt(f,T),E}for(P=r(f,P);!D.done;T++,D=p.next())D=v(P,f,T,D.value,w),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?T:D.key),d=o(D,d,T),L===null?E=D:L.sibling=D,L=D);return e&&P.forEach(function(Pe){return t(f,Pe)}),Z&&Xt(f,T),E}function $(f,d,p,w){if(typeof p=="object"&&p!==null&&p.type===yn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case br:e:{for(var E=p.key,L=d;L!==null;){if(L.key===E){if(E=p.type,E===yn){if(L.tag===7){n(f,L.sibling),d=l(L,p.props.children),d.return=f,f=d;break e}}else if(L.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Tt&&Ku(E)===L.type){n(f,L.sibling),d=l(L,p.props),d.ref=bn(f,L,p),d.return=f,f=d;break e}n(f,L);break}else t(f,L);L=L.sibling}p.type===yn?(d=tn(p.props.children,f.mode,w,p.key),d.return=f,f=d):(w=Pl(p.type,p.key,p.props,null,f.mode,w),w.ref=bn(f,d,p),w.return=f,f=w)}return i(f);case gn:e:{for(L=p.key;d!==null;){if(d.key===L)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(f,d.sibling),d=l(d,p.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=Xo(p,f.mode,w),d.return=f,f=d}return i(f);case Tt:return L=p._init,$(f,d,L(p._payload),w)}if(ir(p))return C(f,d,p,w);if(Gn(p))return x(f,d,p,w);cl(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,p),d.return=f,f=d):(n(f,d),d=Go(p,f.mode,w),d.return=f,f=d),i(f)):n(f,d)}return $}var $n=$c(!0),Fc=$c(!1),Vl=Yt(null),Wl=null,En=null,ws=null;function Ss(){ws=En=Wl=null}function xs(e){var t=Vl.current;X(Vl),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zn(e,t){Wl=e,ws=En=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(ws!==e)if(e={context:e,memoizedValue:t,next:null},En===null){if(Wl===null)throw Error(k(308));En=e,Wl.dependencies={lanes:0,firstContext:e}}else En=En.next=e;return t}var qt=null;function ks(e){qt===null?qt=[e]:qt.push(e)}function Uc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ks(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mt=!1;function Cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ac(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function At(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,A&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,ks(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function xl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,us(e,n)}}function Yu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bl(e,t,n,r){var l=e.updateQueue;Mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var a=u,c=a.next;a.next=null,i===null?o=c:i.next=c,i=a;var y=e.alternate;y!==null&&(y=y.updateQueue,u=y.lastBaseUpdate,u!==i&&(u===null?y.firstBaseUpdate=c:u.next=c,y.lastBaseUpdate=a))}if(o!==null){var g=l.baseState;i=0,y=c=a=null,u=o;do{var h=u.lane,v=u.eventTime;if((r&h)===h){y!==null&&(y=y.next={eventTime:v,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var C=e,x=u;switch(h=t,v=n,x.tag){case 1:if(C=x.payload,typeof C=="function"){g=C.call(v,g,h);break e}g=C;break e;case 3:C.flags=C.flags&-65537|128;case 0:if(C=x.payload,h=typeof C=="function"?C.call(v,g,h):C,h==null)break e;g=b({},g,h);break e;case 2:Mt=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[u]:h.push(u))}else v={eventTime:v,lane:h,tag:u.tag,payload:u.payload,callback:u.callback,next:null},y===null?(c=y=v,a=g):y=y.next=v,i|=h;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;h=u,u=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(y===null&&(a=g),l.baseState=a,l.firstBaseUpdate=c,l.lastBaseUpdate=y,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);on|=i,e.lanes=i,e.memoizedState=g}}function Gu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(k(191,l));l.call(r)}}}var Ur={},pt=Yt(Ur),Lr=Yt(Ur),Tr=Yt(Ur);function bt(e){if(e===Ur)throw Error(k(174));return e}function js(e,t){switch(Q(Tr,t),Q(Lr,e),Q(pt,Ur),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:di(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=di(t,e)}X(pt),Q(pt,t)}function Fn(){X(pt),X(Lr),X(Tr)}function Vc(e){bt(Tr.current);var t=bt(pt.current),n=di(t,e.type);t!==n&&(Q(Lr,e),Q(pt,n))}function Es(e){Lr.current===e&&(X(pt),X(Lr))}var J=Yt(0);function Hl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wo=[];function Ns(){for(var e=0;e<Wo.length;e++)Wo[e]._workInProgressVersionPrimary=null;Wo.length=0}var kl=jt.ReactCurrentDispatcher,Bo=jt.ReactCurrentBatchConfig,ln=0,q=null,se=null,ae=null,Ql=!1,mr=!1,Mr=0,cm=0;function ye(){throw Error(k(321))}function Ps(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function _s(e,t,n,r,l,o){if(ln=o,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,kl.current=e===null||e.memoizedState===null?mm:hm,e=n(r,l),mr){o=0;do{if(mr=!1,Mr=0,25<=o)throw Error(k(301));o+=1,ae=se=null,t.updateQueue=null,kl.current=gm,e=n(r,l)}while(mr)}if(kl.current=Kl,t=se!==null&&se.next!==null,ln=0,ae=se=q=null,Ql=!1,t)throw Error(k(300));return e}function Ls(){var e=Mr!==0;return Mr=0,e}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?q.memoizedState=ae=e:ae=ae.next=e,ae}function Ke(){if(se===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ae===null?q.memoizedState:ae.next;if(t!==null)ae=t,se=e;else{if(e===null)throw Error(k(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ae===null?q.memoizedState=ae=e:ae=ae.next=e}return ae}function zr(e,t){return typeof t=="function"?t(e):t}function Ho(e){var t=Ke(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=se,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,a=null,c=o;do{var y=c.lane;if((ln&y)===y)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var g={lane:y,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(u=a=g,i=r):a=a.next=g,q.lanes|=y,on|=y}c=c.next}while(c!==null&&c!==o);a===null?i=r:a.next=u,nt(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,q.lanes|=o,on|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Qo(e){var t=Ke(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);nt(o,t.memoizedState)||(Le=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Wc(){}function Bc(e,t){var n=q,r=Ke(),l=t(),o=!nt(r.memoizedState,l);if(o&&(r.memoizedState=l,Le=!0),r=r.queue,Ts(Kc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,Ir(9,Qc.bind(null,n,r,l,t),void 0,null),ce===null)throw Error(k(349));ln&30||Hc(n,t,l)}return l}function Hc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qc(e,t,n,r){t.value=n,t.getSnapshot=r,Yc(t)&&Gc(e)}function Kc(e,t,n){return n(function(){Yc(t)&&Gc(e)})}function Yc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function Gc(e){var t=kt(e,1);t!==null&&tt(t,e,1,-1)}function Xu(e){var t=ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zr,lastRenderedState:e},t.queue=e,e=e.dispatch=pm.bind(null,q,e),[t.memoizedState,e]}function Ir(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Xc(){return Ke().memoizedState}function Cl(e,t,n,r){var l=ct();q.flags|=e,l.memoizedState=Ir(1|t,n,void 0,r===void 0?null:r)}function so(e,t,n,r){var l=Ke();r=r===void 0?null:r;var o=void 0;if(se!==null){var i=se.memoizedState;if(o=i.destroy,r!==null&&Ps(r,i.deps)){l.memoizedState=Ir(t,n,o,r);return}}q.flags|=e,l.memoizedState=Ir(1|t,n,o,r)}function Zu(e,t){return Cl(8390656,8,e,t)}function Ts(e,t){return so(2048,8,e,t)}function Zc(e,t){return so(4,2,e,t)}function Jc(e,t){return so(4,4,e,t)}function qc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bc(e,t,n){return n=n!=null?n.concat([e]):null,so(4,4,qc.bind(null,t,e),n)}function Ms(){}function ed(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ps(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function td(e,t){var n=Ke();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ps(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nd(e,t,n){return ln&21?(nt(n,t)||(n=sc(),q.lanes|=n,on|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function dm(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=Bo.transition;Bo.transition={};try{e(!1),t()}finally{B=n,Bo.transition=r}}function rd(){return Ke().memoizedState}function fm(e,t,n){var r=Wt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ld(e))od(t,n);else if(n=Uc(e,t,n,r),n!==null){var l=je();tt(n,e,r,l),id(n,t,r)}}function pm(e,t,n){var r=Wt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ld(e))od(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,u=o(i,n);if(l.hasEagerState=!0,l.eagerState=u,nt(u,i)){var a=t.interleaved;a===null?(l.next=l,ks(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Uc(e,t,l,r),n!==null&&(l=je(),tt(n,e,r,l),id(n,t,r))}}function ld(e){var t=e.alternate;return e===q||t!==null&&t===q}function od(e,t){mr=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function id(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,us(e,n)}}var Kl={readContext:Qe,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},mm={readContext:Qe,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:Zu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Cl(4194308,4,qc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Cl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Cl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=fm.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Xu,useDebugValue:Ms,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Xu(!1),t=e[0];return e=dm.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,l=ct();if(Z){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),ce===null)throw Error(k(349));ln&30||Hc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Zu(Kc.bind(null,r,o,e),[e]),r.flags|=2048,Ir(9,Qc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ct(),t=ce.identifierPrefix;if(Z){var n=vt,r=yt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=cm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hm={readContext:Qe,useCallback:ed,useContext:Qe,useEffect:Ts,useImperativeHandle:bc,useInsertionEffect:Zc,useLayoutEffect:Jc,useMemo:td,useReducer:Ho,useRef:Xc,useState:function(){return Ho(zr)},useDebugValue:Ms,useDeferredValue:function(e){var t=Ke();return nd(t,se.memoizedState,e)},useTransition:function(){var e=Ho(zr)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:Wc,useSyncExternalStore:Bc,useId:rd,unstable_isNewReconciler:!1},gm={readContext:Qe,useCallback:ed,useContext:Qe,useEffect:Ts,useImperativeHandle:bc,useInsertionEffect:Zc,useLayoutEffect:Jc,useMemo:td,useReducer:Qo,useRef:Xc,useState:function(){return Qo(zr)},useDebugValue:Ms,useDeferredValue:function(e){var t=Ke();return se===null?t.memoizedState=e:nd(t,se.memoizedState,e)},useTransition:function(){var e=Qo(zr)[0],t=Ke().memoizedState;return[e,t]},useMutableSource:Wc,useSyncExternalStore:Bc,useId:rd,unstable_isNewReconciler:!1};function Je(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function zi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var uo={isMounted:function(e){return(e=e._reactInternals)?an(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=je(),l=Wt(e),o=wt(r,l);o.payload=t,n!=null&&(o.callback=n),t=At(e,o,l),t!==null&&(tt(t,e,l,r),xl(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=je(),l=Wt(e),o=wt(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=At(e,o,l),t!==null&&(tt(t,e,l,r),xl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=je(),r=Wt(e),l=wt(n,r);l.tag=2,t!=null&&(l.callback=t),t=At(e,l,r),t!==null&&(tt(t,e,r,n),xl(t,e,r))}};function Ju(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(l,o):!0}function sd(e,t,n){var r=!1,l=Qt,o=t.contextType;return typeof o=="object"&&o!==null?o=Qe(o):(l=Me(t)?nn:Se.current,r=t.contextTypes,o=(r=r!=null)?Dn(e,l):Qt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=uo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function qu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&uo.enqueueReplaceState(t,t.state,null)}function Ii(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Cs(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Qe(o):(o=Me(t)?nn:Se.current,l.context=Dn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(zi(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&uo.enqueueReplaceState(l,l.state,null),Bl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Un(e,t){try{var n="",r=t;do n+=Hf(r),r=r.return;while(r);var l=n}catch(o){l=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:l,digest:null}}function Ko(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ri(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ym=typeof WeakMap=="function"?WeakMap:Map;function ud(e,t,n){n=wt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Hi=r),Ri(e,t)},n}function ad(e,t,n){n=wt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Ri(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ri(e,t),typeof r!="function"&&(Vt===null?Vt=new Set([this]):Vt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function bu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ym;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Mm.bind(null,e,t,n),t.then(e,e))}function ea(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ta(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=wt(-1,1),t.tag=2,At(n,t,1))),n.lanes|=1),e)}var vm=jt.ReactCurrentOwner,Le=!1;function Ce(e,t,n,r){t.child=e===null?Fc(t,null,n,r):$n(t,e.child,n,r)}function na(e,t,n,r,l){n=n.render;var o=t.ref;return zn(t,l),r=_s(e,t,n,r,o,l),n=Ls(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ct(e,t,l)):(Z&&n&&gs(t),t.flags|=1,Ce(e,t,r,l),t.child)}function ra(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Us(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cd(e,t,o,r,l)):(e=Pl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Er,n(i,r)&&e.ref===t.ref)return Ct(e,t,l)}return t.flags|=1,e=Bt(o,r),e.ref=t.ref,e.return=t,t.child=e}function cd(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Er(o,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Ct(e,t,l)}return Di(e,t,n,r,l)}function dd(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Pn,Ie),Ie|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Pn,Ie),Ie|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Q(Pn,Ie),Ie|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Q(Pn,Ie),Ie|=r;return Ce(e,t,l,n),t.child}function fd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Di(e,t,n,r,l){var o=Me(n)?nn:Se.current;return o=Dn(t,o),zn(t,l),n=_s(e,t,n,r,o,l),r=Ls(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ct(e,t,l)):(Z&&r&&gs(t),t.flags|=1,Ce(e,t,n,l),t.child)}function la(e,t,n,r,l){if(Me(n)){var o=!0;Fl(t)}else o=!1;if(zn(t,l),t.stateNode===null)jl(e,t),sd(t,n,r),Ii(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,u=t.memoizedProps;i.props=u;var a=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Qe(c):(c=Me(n)?nn:Se.current,c=Dn(t,c));var y=n.getDerivedStateFromProps,g=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function";g||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||a!==c)&&qu(t,i,r,c),Mt=!1;var h=t.memoizedState;i.state=h,Bl(t,r,i,l),a=t.memoizedState,u!==r||h!==a||Te.current||Mt?(typeof y=="function"&&(zi(t,n,y,r),a=t.memoizedState),(u=Mt||Ju(t,n,u,r,h,a,c))?(g||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),i.props=r,i.state=a,i.context=c,r=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ac(e,t),u=t.memoizedProps,c=t.type===t.elementType?u:Je(t.type,u),i.props=c,g=t.pendingProps,h=i.context,a=n.contextType,typeof a=="object"&&a!==null?a=Qe(a):(a=Me(n)?nn:Se.current,a=Dn(t,a));var v=n.getDerivedStateFromProps;(y=typeof v=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==g||h!==a)&&qu(t,i,r,a),Mt=!1,h=t.memoizedState,i.state=h,Bl(t,r,i,l);var C=t.memoizedState;u!==g||h!==C||Te.current||Mt?(typeof v=="function"&&(zi(t,n,v,r),C=t.memoizedState),(c=Mt||Ju(t,n,c,r,h,C,a)||!1)?(y||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,C,a),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,C,a)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=C),i.props=r,i.state=C,i.context=a,r=c):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Oi(e,t,n,r,o,l)}function Oi(e,t,n,r,l,o){fd(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Bu(t,n,!1),Ct(e,t,o);r=t.stateNode,vm.current=t;var u=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=$n(t,e.child,null,o),t.child=$n(t,null,u,o)):Ce(e,t,u,o),t.memoizedState=r.state,l&&Bu(t,n,!0),t.child}function pd(e){var t=e.stateNode;t.pendingContext?Wu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wu(e,t.context,!1),js(e,t.containerInfo)}function oa(e,t,n,r,l){return On(),vs(l),t.flags|=256,Ce(e,t,n,r),t.child}var $i={dehydrated:null,treeContext:null,retryLane:0};function Fi(e){return{baseLanes:e,cachePool:null,transitions:null}}function md(e,t,n){var r=t.pendingProps,l=J.current,o=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Q(J,l&1),e===null)return Ti(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=fo(i,r,0,null),e=tn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Fi(n),t.memoizedState=$i,e):zs(t,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return wm(e,t,i,r,u,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,u=l.sibling;var a={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Bt(l,a),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=Bt(u,o):(o=tn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Fi(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=$i,r}return o=e.child,e=o.sibling,r=Bt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zs(e,t){return t=fo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function dl(e,t,n,r){return r!==null&&vs(r),$n(t,e.child,null,n),e=zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wm(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Ko(Error(k(422))),dl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=fo({mode:"visible",children:r.children},l,0,null),o=tn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&$n(t,e.child,null,i),t.child.memoizedState=Fi(i),t.memoizedState=$i,o);if(!(t.mode&1))return dl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(k(419)),r=Ko(o,r,void 0),dl(e,t,i,r)}if(u=(i&e.childLanes)!==0,Le||u){if(r=ce,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,kt(e,l),tt(r,e,l,-1))}return Fs(),r=Ko(Error(k(421))),dl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=zm.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Re=Ut(l.nextSibling),De=t,Z=!0,be=null,e!==null&&(Ae[Ve++]=yt,Ae[Ve++]=vt,Ae[Ve++]=rn,yt=e.id,vt=e.overflow,rn=t),t=zs(t,r.children),t.flags|=4096,t)}function ia(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mi(e.return,t,n)}function Yo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function hd(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(Ce(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ia(e,n,t);else if(e.tag===19)ia(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(J,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Hl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Yo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Hl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Yo(t,!0,n,null,o);break;case"together":Yo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),on|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sm(e,t,n){switch(t.tag){case 3:pd(t),On();break;case 5:Vc(t);break;case 1:Me(t.type)&&Fl(t);break;case 4:js(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Q(Vl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?md(e,t,n):(Q(J,J.current&1),e=Ct(e,t,n),e!==null?e.sibling:null);Q(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,dd(e,t,n)}return Ct(e,t,n)}var gd,Ui,yd,vd;gd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ui=function(){};yd=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,bt(pt.current);var o=null;switch(n){case"input":l=si(e,l),r=si(e,r),o=[];break;case"select":l=b({},l,{value:void 0}),r=b({},r,{value:void 0}),o=[];break;case"textarea":l=ci(e,l),r=ci(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ol)}fi(n,r);var i;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(vr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var a=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&a!==u&&(a!=null||u!=null))if(c==="style")if(u){for(i in u)!u.hasOwnProperty(i)||a&&a.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in a)a.hasOwnProperty(i)&&u[i]!==a[i]&&(n||(n={}),n[i]=a[i])}else n||(o||(o=[]),o.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,u=u?u.__html:void 0,a!=null&&u!==a&&(o=o||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(vr.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&G("scroll",e),o||u===a||(o=[])):(o=o||[]).push(c,a))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function er(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xm(e,t,n){var r=t.pendingProps;switch(ys(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Me(t.type)&&$l(),ve(t),null;case 3:return r=t.stateNode,Fn(),X(Te),X(Se),Ns(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(al(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,be!==null&&(Yi(be),be=null))),Ui(e,t),ve(t),null;case 5:Es(t);var l=bt(Tr.current);if(n=t.type,e!==null&&t.stateNode!=null)yd(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(k(166));return ve(t),null}if(e=bt(pt.current),al(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dt]=t,r[_r]=o,e=(t.mode&1)!==0,n){case"dialog":G("cancel",r),G("close",r);break;case"iframe":case"object":case"embed":G("load",r);break;case"video":case"audio":for(l=0;l<ur.length;l++)G(ur[l],r);break;case"source":G("error",r);break;case"img":case"image":case"link":G("error",r),G("load",r);break;case"details":G("toggle",r);break;case"input":hu(r,o),G("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},G("invalid",r);break;case"textarea":yu(r,o),G("invalid",r)}fi(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&ul(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&ul(r.textContent,u,e),l=["children",""+u]):vr.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&G("scroll",r)}switch(n){case"input":el(r),gu(r,o,!0);break;case"textarea":el(r),vu(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ol)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ka(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[dt]=t,e[_r]=r,gd(e,t,!1,!1),t.stateNode=e;e:{switch(i=pi(n,r),n){case"dialog":G("cancel",e),G("close",e),l=r;break;case"iframe":case"object":case"embed":G("load",e),l=r;break;case"video":case"audio":for(l=0;l<ur.length;l++)G(ur[l],e);l=r;break;case"source":G("error",e),l=r;break;case"img":case"image":case"link":G("error",e),G("load",e),l=r;break;case"details":G("toggle",e),l=r;break;case"input":hu(e,r),l=si(e,r),G("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=b({},r,{value:void 0}),G("invalid",e);break;case"textarea":yu(e,r),l=ci(e,r),G("invalid",e);break;default:l=r}fi(n,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var a=u[o];o==="style"?Xa(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ya(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&wr(e,a):typeof a=="number"&&wr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(vr.hasOwnProperty(o)?a!=null&&o==="onScroll"&&G("scroll",e):a!=null&&ns(e,o,a,i))}switch(n){case"input":el(e),gu(e,r,!1);break;case"textarea":el(e),vu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?_n(e,!!r.multiple,o,!1):r.defaultValue!=null&&_n(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ol)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ve(t),null;case 6:if(e&&t.stateNode!=null)vd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(k(166));if(n=bt(Tr.current),bt(pt.current),al(t)){if(r=t.stateNode,n=t.memoizedProps,r[dt]=t,(o=r.nodeValue!==n)&&(e=De,e!==null))switch(e.tag){case 3:ul(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ul(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r}return ve(t),null;case 13:if(X(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Re!==null&&t.mode&1&&!(t.flags&128))Oc(),On(),t.flags|=98560,o=!1;else if(o=al(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(k(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(k(317));o[dt]=t}else On(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),o=!1}else be!==null&&(Yi(be),be=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ue===0&&(ue=3):Fs())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return Fn(),Ui(e,t),e===null&&Nr(t.stateNode.containerInfo),ve(t),null;case 10:return xs(t.type._context),ve(t),null;case 17:return Me(t.type)&&$l(),ve(t),null;case 19:if(X(J),o=t.memoizedState,o===null)return ve(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)er(o,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Hl(e),i!==null){for(t.flags|=128,er(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(J,J.current&1|2),t.child}e=e.sibling}o.tail!==null&&ne()>An&&(t.flags|=128,r=!0,er(o,!1),t.lanes=4194304)}else{if(!r)if(e=Hl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),er(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Z)return ve(t),null}else 2*ne()-o.renderingStartTime>An&&n!==1073741824&&(t.flags|=128,r=!0,er(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ne(),t.sibling=null,n=J.current,Q(J,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return $s(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function km(e,t){switch(ys(t),t.tag){case 1:return Me(t.type)&&$l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fn(),X(Te),X(Se),Ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Es(t),null;case 13:if(X(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));On()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(J),null;case 4:return Fn(),null;case 10:return xs(t.type._context),null;case 22:case 23:return $s(),null;case 24:return null;default:return null}}var fl=!1,we=!1,Cm=typeof WeakSet=="function"?WeakSet:Set,_=null;function Nn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function Ai(e,t,n){try{n()}catch(r){te(e,t,r)}}var sa=!1;function jm(e,t){if(Ci=Il,e=Cc(),hs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,u=-1,a=-1,c=0,y=0,g=e,h=null;t:for(;;){for(var v;g!==n||l!==0&&g.nodeType!==3||(u=i+l),g!==o||r!==0&&g.nodeType!==3||(a=i+r),g.nodeType===3&&(i+=g.nodeValue.length),(v=g.firstChild)!==null;)h=g,g=v;for(;;){if(g===e)break t;if(h===n&&++c===l&&(u=i),h===o&&++y===r&&(a=i),(v=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=v}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ji={focusedElem:e,selectionRange:n},Il=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var C=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(C!==null){var x=C.memoizedProps,$=C.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Je(t.type,x),$);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(w){te(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return C=sa,sa=!1,C}function hr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ai(t,n,o)}l=l.next}while(l!==r)}}function ao(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function wd(e){var t=e.alternate;t!==null&&(e.alternate=null,wd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[_r],delete t[Pi],delete t[im],delete t[sm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Sd(e){return e.tag===5||e.tag===3||e.tag===4}function ua(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Sd(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.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 Wi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ol));else if(r!==4&&(e=e.child,e!==null))for(Wi(e,t,n),e=e.sibling;e!==null;)Wi(e,t,n),e=e.sibling}function Bi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Bi(e,t,n),e=e.sibling;e!==null;)Bi(e,t,n),e=e.sibling}var de=null,qe=!1;function Lt(e,t,n){for(n=n.child;n!==null;)xd(e,t,n),n=n.sibling}function xd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(to,n)}catch{}switch(n.tag){case 5:we||Nn(n,t);case 6:var r=de,l=qe;de=null,Lt(e,t,n),de=r,qe=l,de!==null&&(qe?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(qe?(e=de,n=n.stateNode,e.nodeType===8?Ao(e.parentNode,n):e.nodeType===1&&Ao(e,n),Cr(e)):Ao(de,n.stateNode));break;case 4:r=de,l=qe,de=n.stateNode.containerInfo,qe=!0,Lt(e,t,n),de=r,qe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ai(n,t,i),l=l.next}while(l!==r)}Lt(e,t,n);break;case 1:if(!we&&(Nn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){te(n,t,u)}Lt(e,t,n);break;case 21:Lt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Lt(e,t,n),we=r):Lt(e,t,n);break;default:Lt(e,t,n)}}function aa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cm),t.forEach(function(r){var l=Im.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Xe(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;u!==null;){switch(u.tag){case 5:de=u.stateNode,qe=!1;break e;case 3:de=u.stateNode.containerInfo,qe=!0;break e;case 4:de=u.stateNode.containerInfo,qe=!0;break e}u=u.return}if(de===null)throw Error(k(160));xd(o,i,l),de=null,qe=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(c){te(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)kd(t,e),t=t.sibling}function kd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xe(t,e),at(e),r&4){try{hr(3,e,e.return),ao(3,e)}catch(x){te(e,e.return,x)}try{hr(5,e,e.return)}catch(x){te(e,e.return,x)}}break;case 1:Xe(t,e),at(e),r&512&&n!==null&&Nn(n,n.return);break;case 5:if(Xe(t,e),at(e),r&512&&n!==null&&Nn(n,n.return),e.flags&32){var l=e.stateNode;try{wr(l,"")}catch(x){te(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,u=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&Ha(l,o),pi(u,i);var c=pi(u,o);for(i=0;i<a.length;i+=2){var y=a[i],g=a[i+1];y==="style"?Xa(l,g):y==="dangerouslySetInnerHTML"?Ya(l,g):y==="children"?wr(l,g):ns(l,y,g,c)}switch(u){case"input":ui(l,o);break;case"textarea":Qa(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?_n(l,!!o.multiple,v,!1):h!==!!o.multiple&&(o.defaultValue!=null?_n(l,!!o.multiple,o.defaultValue,!0):_n(l,!!o.multiple,o.multiple?[]:"",!1))}l[_r]=o}catch(x){te(e,e.return,x)}}break;case 6:if(Xe(t,e),at(e),r&4){if(e.stateNode===null)throw Error(k(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){te(e,e.return,x)}}break;case 3:if(Xe(t,e),at(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Cr(t.containerInfo)}catch(x){te(e,e.return,x)}break;case 4:Xe(t,e),at(e);break;case 13:Xe(t,e),at(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Ds=ne())),r&4&&aa(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(we=(c=we)||y,Xe(t,e),we=c):Xe(t,e),at(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!y&&e.mode&1)for(_=e,y=e.child;y!==null;){for(g=_=y;_!==null;){switch(h=_,v=h.child,h.tag){case 0:case 11:case 14:case 15:hr(4,h,h.return);break;case 1:Nn(h,h.return);var C=h.stateNode;if(typeof C.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,C.props=t.memoizedProps,C.state=t.memoizedState,C.componentWillUnmount()}catch(x){te(r,n,x)}}break;case 5:Nn(h,h.return);break;case 22:if(h.memoizedState!==null){da(g);continue}}v!==null?(v.return=h,_=v):da(g)}y=y.sibling}e:for(y=null,g=e;;){if(g.tag===5){if(y===null){y=g;try{l=g.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=g.stateNode,a=g.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null,u.style.display=Ga("display",i))}catch(x){te(e,e.return,x)}}}else if(g.tag===6){if(y===null)try{g.stateNode.nodeValue=c?"":g.memoizedProps}catch(x){te(e,e.return,x)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;y===g&&(y=null),g=g.return}y===g&&(y=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:Xe(t,e),at(e),r&4&&aa(e);break;case 21:break;default:Xe(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Sd(n)){var r=n;break e}n=n.return}throw Error(k(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(wr(l,""),r.flags&=-33);var o=ua(e);Bi(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=ua(e);Wi(e,u,i);break;default:throw Error(k(161))}}catch(a){te(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Em(e,t,n){_=e,Cd(e)}function Cd(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||fl;if(!i){var u=l.alternate,a=u!==null&&u.memoizedState!==null||we;u=fl;var c=we;if(fl=i,(we=a)&&!c)for(_=l;_!==null;)i=_,a=i.child,i.tag===22&&i.memoizedState!==null?fa(l):a!==null?(a.return=i,_=a):fa(l);for(;o!==null;)_=o,Cd(o),o=o.sibling;_=l,fl=u,we=c}ca(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,_=o):ca(e)}}function ca(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:we||ao(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!we)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Je(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Gu(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Gu(t,i,n)}break;case 5:var u=t.stateNode;if(n===null&&t.flags&4){n=u;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var y=c.memoizedState;if(y!==null){var g=y.dehydrated;g!==null&&Cr(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(k(163))}we||t.flags&512&&Vi(t)}catch(h){te(t,t.return,h)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function da(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function fa(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ao(4,t)}catch(a){te(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){te(t,l,a)}}var o=t.return;try{Vi(t)}catch(a){te(t,o,a)}break;case 5:var i=t.return;try{Vi(t)}catch(a){te(t,i,a)}}}catch(a){te(t,t.return,a)}if(t===e){_=null;break}var u=t.sibling;if(u!==null){u.return=t.return,_=u;break}_=t.return}}var Nm=Math.ceil,Yl=jt.ReactCurrentDispatcher,Is=jt.ReactCurrentOwner,He=jt.ReactCurrentBatchConfig,A=0,ce=null,oe=null,fe=0,Ie=0,Pn=Yt(0),ue=0,Rr=null,on=0,co=0,Rs=0,gr=null,_e=null,Ds=0,An=1/0,ht=null,Gl=!1,Hi=null,Vt=null,pl=!1,Dt=null,Xl=0,yr=0,Qi=null,El=-1,Nl=0;function je(){return A&6?ne():El!==-1?El:El=ne()}function Wt(e){return e.mode&1?A&2&&fe!==0?fe&-fe:am.transition!==null?(Nl===0&&(Nl=sc()),Nl):(e=B,e!==0||(e=window.event,e=e===void 0?16:mc(e.type)),e):1}function tt(e,t,n,r){if(50<yr)throw yr=0,Qi=null,Error(k(185));Or(e,n,r),(!(A&2)||e!==ce)&&(e===ce&&(!(A&2)&&(co|=n),ue===4&&It(e,fe)),ze(e,r),n===1&&A===0&&!(t.mode&1)&&(An=ne()+500,io&&Gt()))}function ze(e,t){var n=e.callbackNode;ap(e,t);var r=zl(e,e===ce?fe:0);if(r===0)n!==null&&xu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xu(n),t===1)e.tag===0?um(pa.bind(null,e)):Ic(pa.bind(null,e)),lm(function(){!(A&6)&&Gt()}),n=null;else{switch(uc(r)){case 1:n=ss;break;case 4:n=oc;break;case 16:n=Ml;break;case 536870912:n=ic;break;default:n=Ml}n=Md(n,jd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function jd(e,t){if(El=-1,Nl=0,A&6)throw Error(k(327));var n=e.callbackNode;if(In()&&e.callbackNode!==n)return null;var r=zl(e,e===ce?fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Zl(e,r);else{t=r;var l=A;A|=2;var o=Nd();(ce!==e||fe!==t)&&(ht=null,An=ne()+500,en(e,t));do try{Lm();break}catch(u){Ed(e,u)}while(!0);Ss(),Yl.current=o,A=l,oe!==null?t=0:(ce=null,fe=0,t=ue)}if(t!==0){if(t===2&&(l=vi(e),l!==0&&(r=l,t=Ki(e,l))),t===1)throw n=Rr,en(e,0),It(e,r),ze(e,ne()),n;if(t===6)It(e,r);else{if(l=e.current.alternate,!(r&30)&&!Pm(l)&&(t=Zl(e,r),t===2&&(o=vi(e),o!==0&&(r=o,t=Ki(e,o))),t===1))throw n=Rr,en(e,0),It(e,r),ze(e,ne()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(k(345));case 2:Zt(e,_e,ht);break;case 3:if(It(e,r),(r&130023424)===r&&(t=Ds+500-ne(),10<t)){if(zl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){je(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Ni(Zt.bind(null,e,_e,ht),t);break}Zt(e,_e,ht);break;case 4:if(It(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-et(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nm(r/1960))-r,10<r){e.timeoutHandle=Ni(Zt.bind(null,e,_e,ht),r);break}Zt(e,_e,ht);break;case 5:Zt(e,_e,ht);break;default:throw Error(k(329))}}}return ze(e,ne()),e.callbackNode===n?jd.bind(null,e):null}function Ki(e,t){var n=gr;return e.current.memoizedState.isDehydrated&&(en(e,t).flags|=256),e=Zl(e,t),e!==2&&(t=_e,_e=n,t!==null&&Yi(t)),e}function Yi(e){_e===null?_e=e:_e.push.apply(_e,e)}function Pm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!nt(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function It(e,t){for(t&=~Rs,t&=~co,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function pa(e){if(A&6)throw Error(k(327));In();var t=zl(e,0);if(!(t&1))return ze(e,ne()),null;var n=Zl(e,t);if(e.tag!==0&&n===2){var r=vi(e);r!==0&&(t=r,n=Ki(e,r))}if(n===1)throw n=Rr,en(e,0),It(e,t),ze(e,ne()),n;if(n===6)throw Error(k(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zt(e,_e,ht),ze(e,ne()),null}function Os(e,t){var n=A;A|=1;try{return e(t)}finally{A=n,A===0&&(An=ne()+500,io&&Gt())}}function sn(e){Dt!==null&&Dt.tag===0&&!(A&6)&&In();var t=A;A|=1;var n=He.transition,r=B;try{if(He.transition=null,B=1,e)return e()}finally{B=r,He.transition=n,A=t,!(A&6)&&Gt()}}function $s(){Ie=Pn.current,X(Pn)}function en(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,rm(n)),oe!==null)for(n=oe.return;n!==null;){var r=n;switch(ys(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$l();break;case 3:Fn(),X(Te),X(Se),Ns();break;case 5:Es(r);break;case 4:Fn();break;case 13:X(J);break;case 19:X(J);break;case 10:xs(r.type._context);break;case 22:case 23:$s()}n=n.return}if(ce=e,oe=e=Bt(e.current,null),fe=Ie=t,ue=0,Rr=null,Rs=co=on=0,_e=gr=null,qt!==null){for(t=0;t<qt.length;t++)if(n=qt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}qt=null}return e}function Ed(e,t){do{var n=oe;try{if(Ss(),kl.current=Kl,Ql){for(var r=q.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Ql=!1}if(ln=0,ae=se=q=null,mr=!1,Mr=0,Is.current=null,n===null||n.return===null){ue=1,Rr=t,oe=null;break}e:{var o=e,i=n.return,u=n,a=t;if(t=fe,u.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,y=u,g=y.tag;if(!(y.mode&1)&&(g===0||g===11||g===15)){var h=y.alternate;h?(y.updateQueue=h.updateQueue,y.memoizedState=h.memoizedState,y.lanes=h.lanes):(y.updateQueue=null,y.memoizedState=null)}var v=ea(i);if(v!==null){v.flags&=-257,ta(v,i,u,o,t),v.mode&1&&bu(o,c,t),t=v,a=c;var C=t.updateQueue;if(C===null){var x=new Set;x.add(a),t.updateQueue=x}else C.add(a);break e}else{if(!(t&1)){bu(o,c,t),Fs();break e}a=Error(k(426))}}else if(Z&&u.mode&1){var $=ea(i);if($!==null){!($.flags&65536)&&($.flags|=256),ta($,i,u,o,t),vs(Un(a,u));break e}}o=a=Un(a,u),ue!==4&&(ue=2),gr===null?gr=[o]:gr.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=ud(o,a,t);Yu(o,f);break e;case 1:u=a;var d=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Vt===null||!Vt.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=ad(o,u,t);Yu(o,w);break e}}o=o.return}while(o!==null)}_d(n)}catch(E){t=E,oe===n&&n!==null&&(oe=n=n.return);continue}break}while(!0)}function Nd(){var e=Yl.current;return Yl.current=Kl,e===null?Kl:e}function Fs(){(ue===0||ue===3||ue===2)&&(ue=4),ce===null||!(on&268435455)&&!(co&268435455)||It(ce,fe)}function Zl(e,t){var n=A;A|=2;var r=Nd();(ce!==e||fe!==t)&&(ht=null,en(e,t));do try{_m();break}catch(l){Ed(e,l)}while(!0);if(Ss(),A=n,Yl.current=r,oe!==null)throw Error(k(261));return ce=null,fe=0,ue}function _m(){for(;oe!==null;)Pd(oe)}function Lm(){for(;oe!==null&&!ep();)Pd(oe)}function Pd(e){var t=Td(e.alternate,e,Ie);e.memoizedProps=e.pendingProps,t===null?_d(e):oe=t,Is.current=null}function _d(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=km(n,t),n!==null){n.flags&=32767,oe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,oe=null;return}}else if(n=xm(n,t,Ie),n!==null){oe=n;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);ue===0&&(ue=5)}function Zt(e,t,n){var r=B,l=He.transition;try{He.transition=null,B=1,Tm(e,t,n,r)}finally{He.transition=l,B=r}return null}function Tm(e,t,n,r){do In();while(Dt!==null);if(A&6)throw Error(k(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(k(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(cp(e,o),e===ce&&(oe=ce=null,fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||pl||(pl=!0,Md(Ml,function(){return In(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=He.transition,He.transition=null;var i=B;B=1;var u=A;A|=4,Is.current=null,jm(e,n),kd(n,e),Zp(ji),Il=!!Ci,ji=Ci=null,e.current=n,Em(n),tp(),A=u,B=i,He.transition=o}else e.current=n;if(pl&&(pl=!1,Dt=e,Xl=l),o=e.pendingLanes,o===0&&(Vt=null),lp(n.stateNode),ze(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Gl)throw Gl=!1,e=Hi,Hi=null,e;return Xl&1&&e.tag!==0&&In(),o=e.pendingLanes,o&1?e===Qi?yr++:(yr=0,Qi=e):yr=0,Gt(),null}function In(){if(Dt!==null){var e=uc(Xl),t=He.transition,n=B;try{if(He.transition=null,B=16>e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,Xl=0,A&6)throw Error(k(331));var l=A;for(A|=4,_=e.current;_!==null;){var o=_,i=o.child;if(_.flags&16){var u=o.deletions;if(u!==null){for(var a=0;a<u.length;a++){var c=u[a];for(_=c;_!==null;){var y=_;switch(y.tag){case 0:case 11:case 15:hr(8,y,o)}var g=y.child;if(g!==null)g.return=y,_=g;else for(;_!==null;){y=_;var h=y.sibling,v=y.return;if(wd(y),y===c){_=null;break}if(h!==null){h.return=v,_=h;break}_=v}}}var C=o.alternate;if(C!==null){var x=C.child;if(x!==null){C.child=null;do{var $=x.sibling;x.sibling=null,x=$}while(x!==null)}}_=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,_=i;else e:for(;_!==null;){if(o=_,o.flags&2048)switch(o.tag){case 0:case 11:case 15:hr(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,_=f;break e}_=o.return}}var d=e.current;for(_=d;_!==null;){i=_;var p=i.child;if(i.subtreeFlags&2064&&p!==null)p.return=i,_=p;else e:for(i=d;_!==null;){if(u=_,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:ao(9,u)}}catch(E){te(u,u.return,E)}if(u===i){_=null;break e}var w=u.sibling;if(w!==null){w.return=u.return,_=w;break e}_=u.return}}if(A=l,Gt(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(to,e)}catch{}r=!0}return r}finally{B=n,He.transition=t}}return!1}function ma(e,t,n){t=Un(n,t),t=ud(e,t,1),e=At(e,t,1),t=je(),e!==null&&(Or(e,1,t),ze(e,t))}function te(e,t,n){if(e.tag===3)ma(e,e,n);else for(;t!==null;){if(t.tag===3){ma(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vt===null||!Vt.has(r))){e=Un(n,e),e=ad(t,e,1),t=At(t,e,1),e=je(),t!==null&&(Or(t,1,e),ze(t,e));break}}t=t.return}}function Mm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=je(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(fe&n)===n&&(ue===4||ue===3&&(fe&130023424)===fe&&500>ne()-Ds?en(e,0):Rs|=n),ze(e,t)}function Ld(e,t){t===0&&(e.mode&1?(t=rl,rl<<=1,!(rl&130023424)&&(rl=4194304)):t=1);var n=je();e=kt(e,t),e!==null&&(Or(e,t,n),ze(e,n))}function zm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ld(e,n)}function Im(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),Ld(e,n)}var Td;Td=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Sm(e,t,n);Le=!!(e.flags&131072)}else Le=!1,Z&&t.flags&1048576&&Rc(t,Al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var l=Dn(t,Se.current);zn(t,n),l=_s(null,t,r,e,l,n);var o=Ls();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Me(r)?(o=!0,Fl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Cs(t),l.updater=uo,t.stateNode=l,l._reactInternals=t,Ii(t,r,e,n),t=Oi(null,t,r,!0,o,n)):(t.tag=0,Z&&o&&gs(t),Ce(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Dm(r),e=Je(r,e),l){case 0:t=Di(null,t,r,e,n);break e;case 1:t=la(null,t,r,e,n);break e;case 11:t=na(null,t,r,e,n);break e;case 14:t=ra(null,t,r,Je(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Je(r,l),Di(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Je(r,l),la(e,t,r,l,n);case 3:e:{if(pd(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ac(e,t),Bl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Un(Error(k(423)),t),t=oa(e,t,r,n,l);break e}else if(r!==l){l=Un(Error(k(424)),t),t=oa(e,t,r,n,l);break e}else for(Re=Ut(t.stateNode.containerInfo.firstChild),De=t,Z=!0,be=null,n=Fc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(On(),r===l){t=Ct(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return Vc(t),e===null&&Ti(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Ei(r,l)?i=null:o!==null&&Ei(r,o)&&(t.flags|=32),fd(e,t),Ce(e,t,i,n),t.child;case 6:return e===null&&Ti(t),null;case 13:return md(e,t,n);case 4:return js(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$n(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Je(r,l),na(e,t,r,l,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Q(Vl,r._currentValue),r._currentValue=i,o!==null)if(nt(o.value,i)){if(o.children===l.children&&!Te.current){t=Ct(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=wt(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var y=c.pending;y===null?a.next=a:(a.next=y.next,y.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Mi(o.return,n,t),u.lanes|=n;break}a=a.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),Mi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Ce(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,zn(t,n),l=Qe(l),r=r(l),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,l=Je(r,t.pendingProps),l=Je(r.type,l),ra(e,t,r,l,n);case 15:return cd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Je(r,l),jl(e,t),t.tag=1,Me(r)?(e=!0,Fl(t)):e=!1,zn(t,n),sd(t,r,l),Ii(t,r,l,n),Oi(null,t,r,!0,e,n);case 19:return hd(e,t,n);case 22:return dd(e,t,n)}throw Error(k(156,t.tag))};function Md(e,t){return lc(e,t)}function Rm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Be(e,t,n,r){return new Rm(e,t,n,r)}function Us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dm(e){if(typeof e=="function")return Us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ls)return 11;if(e===os)return 14}return 2}function Bt(e,t){var n=e.alternate;return n===null?(n=Be(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Us(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case yn:return tn(n.children,l,o,t);case rs:i=8,l|=8;break;case ri:return e=Be(12,n,t,l|2),e.elementType=ri,e.lanes=o,e;case li:return e=Be(13,n,t,l),e.elementType=li,e.lanes=o,e;case oi:return e=Be(19,n,t,l),e.elementType=oi,e.lanes=o,e;case Va:return fo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ua:i=10;break e;case Aa:i=9;break e;case ls:i=11;break e;case os:i=14;break e;case Tt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Be(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function tn(e,t,n,r){return e=Be(7,e,r,t),e.lanes=n,e}function fo(e,t,n,r){return e=Be(22,e,r,t),e.elementType=Va,e.lanes=n,e.stateNode={isHidden:!1},e}function Go(e,t,n){return e=Be(6,e,null,t),e.lanes=n,e}function Xo(e,t,n){return t=Be(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Om(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Lo(0),this.expirationTimes=Lo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function As(e,t,n,r,l,o,i,u,a){return e=new Om(e,t,n,u,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Be(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cs(o),e}function $m(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zd(e){if(!e)return Qt;e=e._reactInternals;e:{if(an(e)!==e||e.tag!==1)throw Error(k(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Me(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(k(171))}if(e.tag===1){var n=e.type;if(Me(n))return zc(e,n,t)}return t}function Id(e,t,n,r,l,o,i,u,a){return e=As(n,r,!0,e,l,o,i,u,a),e.context=zd(null),n=e.current,r=je(),l=Wt(n),o=wt(r,l),o.callback=t??null,At(n,o,l),e.current.lanes=l,Or(e,l,r),ze(e,r),e}function po(e,t,n,r){var l=t.current,o=je(),i=Wt(l);return n=zd(n),t.context===null?t.context=n:t.pendingContext=n,t=wt(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=At(l,t,i),e!==null&&(tt(e,l,i,o),xl(e,l,i)),i}function Jl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ha(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vs(e,t){ha(e,t),(e=e.alternate)&&ha(e,t)}function Fm(){return null}var Rd=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ws(e){this._internalRoot=e}mo.prototype.render=Ws.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));po(e,t,null,null)};mo.prototype.unmount=Ws.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sn(function(){po(null,e,null,null)}),t[xt]=null}};function mo(e){this._internalRoot=e}mo.prototype.unstable_scheduleHydration=function(e){if(e){var t=dc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&t!==0&&t<zt[n].priority;n++);zt.splice(n,0,e),n===0&&pc(e)}};function Bs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ho(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ga(){}function Um(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=Jl(i);o.call(c)}}var i=Id(t,r,e,0,null,!1,!1,"",ga);return e._reactRootContainer=i,e[xt]=i.current,Nr(e.nodeType===8?e.parentNode:e),sn(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var c=Jl(a);u.call(c)}}var a=As(e,0,!1,null,null,!1,!1,"",ga);return e._reactRootContainer=a,e[xt]=a.current,Nr(e.nodeType===8?e.parentNode:e),sn(function(){po(t,a,n,r)}),a}function go(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var a=Jl(i);u.call(a)}}po(t,i,e,l)}else i=Um(n,t,e,l,r);return Jl(i)}ac=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=sr(t.pendingLanes);n!==0&&(us(t,n|1),ze(t,ne()),!(A&6)&&(An=ne()+500,Gt()))}break;case 13:sn(function(){var r=kt(e,1);if(r!==null){var l=je();tt(r,e,1,l)}}),Vs(e,1)}};as=function(e){if(e.tag===13){var t=kt(e,134217728);if(t!==null){var n=je();tt(t,e,134217728,n)}Vs(e,134217728)}};cc=function(e){if(e.tag===13){var t=Wt(e),n=kt(e,t);if(n!==null){var r=je();tt(n,e,t,r)}Vs(e,t)}};dc=function(){return B};fc=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};hi=function(e,t,n){switch(t){case"input":if(ui(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=oo(r);if(!l)throw Error(k(90));Ba(r),ui(r,l)}}}break;case"textarea":Qa(e,n);break;case"select":t=n.value,t!=null&&_n(e,!!n.multiple,t,!1)}};qa=Os;ba=sn;var Am={usingClientEntryPoint:!1,Events:[Fr,xn,oo,Za,Ja,Os]},tr={findFiberByHostInstance:Jt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Vm={bundleType:tr.bundleType,version:tr.version,rendererPackageName:tr.rendererPackageName,rendererConfig:tr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:jt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=nc(e),e===null?null:e.stateNode},findFiberByHostInstance:tr.findFiberByHostInstance||Fm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ml.isDisabled&&ml.supportsFiber)try{to=ml.inject(Vm),ft=ml}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Am;$e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Bs(t))throw Error(k(200));return $m(e,t,null,n)};$e.createRoot=function(e,t){if(!Bs(e))throw Error(k(299));var n=!1,r="",l=Rd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=As(e,1,!1,null,null,n,!1,r,l),e[xt]=t.current,Nr(e.nodeType===8?e.parentNode:e),new Ws(t)};$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=nc(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e){return sn(e)};$e.hydrate=function(e,t,n){if(!ho(t))throw Error(k(200));return go(null,e,t,!0,n)};$e.hydrateRoot=function(e,t,n){if(!Bs(e))throw Error(k(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=Rd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Id(t,null,e,1,n??null,l,!1,o,i),e[xt]=t.current,Nr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new mo(t)};$e.render=function(e,t,n){if(!ho(t))throw Error(k(200));return go(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!ho(e))throw Error(k(40));return e._reactRootContainer?(sn(function(){go(null,null,e,!1,function(){e._reactRootContainer=null,e[xt]=null})}),!0):!1};$e.unstable_batchedUpdates=Os;$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ho(n))throw Error(k(200));if(e==null||e._reactInternals===void 0)throw Error(k(38));return go(e,t,n,!1,r)};$e.version="18.3.1-next-f1338f8080-20240426";function Dd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dd)}catch(e){console.error(e)}}Dd(),Da.exports=$e;var Wm=Da.exports,Od,ya=Wm;Od=ya.createRoot,ya.hydrateRoot;/**
41
+ * @license lucide-react v0.468.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Bm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$d=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.468.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var Hm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51
+ * @license lucide-react v0.468.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const Qm=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:i,...u},a)=>S.createElement("svg",{ref:a,...Hm,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$d("lucide",l),...u},[...i.map(([c,y])=>S.createElement(c,y)),...Array.isArray(o)?o:[o]]));/**
56
+ * @license lucide-react v0.468.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const V=(e,t)=>{const n=S.forwardRef(({className:r,...l},o)=>S.createElement(Qm,{ref:o,iconNode:t,className:$d(`lucide-${Bm(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.468.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Fd=V("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
66
+ * @license lucide-react v0.468.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Ud=V("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
71
+ * @license lucide-react v0.468.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Ad=V("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
76
+ * @license lucide-react v0.468.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const Km=V("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
81
+ * @license lucide-react v0.468.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const Ym=V("Columns3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
86
+ * @license lucide-react v0.468.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Gm=V("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
91
+ * @license lucide-react v0.468.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Xm=V("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
96
+ * @license lucide-react v0.468.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const Vd=V("Eraser",[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]]);/**
101
+ * @license lucide-react v0.468.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Zm=V("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
106
+ * @license lucide-react v0.468.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Jm=V("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
111
+ * @license lucide-react v0.468.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const qm=V("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
116
+ * @license lucide-react v0.468.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Gi=V("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
121
+ * @license lucide-react v0.468.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const bm=V("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
126
+ * @license lucide-react v0.468.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Wd=V("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
131
+ * @license lucide-react v0.468.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const ql=V("Logs",[["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M3 18h1",key:"1eiwyy"}],["path",{d:"M3 6h1",key:"rgxa97"}],["path",{d:"M8 12h1",key:"1con00"}],["path",{d:"M8 18h1",key:"13wk12"}],["path",{d:"M8 6h1",key:"tn6mkg"}]]);/**
136
+ * @license lucide-react v0.468.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const eh=V("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
141
+ * @license lucide-react v0.468.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const th=V("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
146
+ * @license lucide-react v0.468.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Hs=V("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
151
+ * @license lucide-react v0.468.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const Qs=V("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
156
+ * @license lucide-react v0.468.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const bl=V("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
161
+ * @license lucide-react v0.468.0 - ISC
162
+ *
163
+ * This source code is licensed under the ISC license.
164
+ * See the LICENSE file in the root directory of this source tree.
165
+ */const Ks=V("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
166
+ * @license lucide-react v0.468.0 - ISC
167
+ *
168
+ * This source code is licensed under the ISC license.
169
+ * See the LICENSE file in the root directory of this source tree.
170
+ */const nh=V("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
171
+ * @license lucide-react v0.468.0 - ISC
172
+ *
173
+ * This source code is licensed under the ISC license.
174
+ * See the LICENSE file in the root directory of this source tree.
175
+ */const Bd=V("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
176
+ * @license lucide-react v0.468.0 - ISC
177
+ *
178
+ * This source code is licensed under the ISC license.
179
+ * See the LICENSE file in the root directory of this source tree.
180
+ */const Ys=V("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
181
+ * @license lucide-react v0.468.0 - ISC
182
+ *
183
+ * This source code is licensed under the ISC license.
184
+ * See the LICENSE file in the root directory of this source tree.
185
+ */const va=V("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
186
+ * @license lucide-react v0.468.0 - ISC
187
+ *
188
+ * This source code is licensed under the ISC license.
189
+ * See the LICENSE file in the root directory of this source tree.
190
+ */const rh=V("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
191
+ * @license lucide-react v0.468.0 - ISC
192
+ *
193
+ * This source code is licensed under the ISC license.
194
+ * See the LICENSE file in the root directory of this source tree.
195
+ */const Gs=V("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
196
+ * @license lucide-react v0.468.0 - ISC
197
+ *
198
+ * This source code is licensed under the ISC license.
199
+ * See the LICENSE file in the root directory of this source tree.
200
+ */const lh=V("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
201
+ * @license lucide-react v0.468.0 - ISC
202
+ *
203
+ * This source code is licensed under the ISC license.
204
+ * See the LICENSE file in the root directory of this source tree.
205
+ */const oh=V("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
206
+ * @license lucide-react v0.468.0 - ISC
207
+ *
208
+ * This source code is licensed under the ISC license.
209
+ * See the LICENSE file in the root directory of this source tree.
210
+ */const ih=V("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
211
+ * @license lucide-react v0.468.0 - ISC
212
+ *
213
+ * This source code is licensed under the ISC license.
214
+ * See the LICENSE file in the root directory of this source tree.
215
+ */const sh=V("WrapText",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]]);/**
216
+ * @license lucide-react v0.468.0 - ISC
217
+ *
218
+ * This source code is licensed under the ISC license.
219
+ * See the LICENSE file in the root directory of this source tree.
220
+ */const Hd=V("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),O={columnVisibility:"nodeWebUi.columnVisibility",sortState:"nodeWebUi.sortState",protectedProcesses:"nodeWebUi.protectedProcesses",metricsHistory:"nodeWebUi.pm2MetricsHistory",metricsHistoryWindow:"nodeWebUi.metricsHistoryWindow",processSearchTerm:"nodeWebUi.processSearchTerm",processStatusFilter:"nodeWebUi.processStatusFilter",dashboardUpdatesPaused:"nodeWebUi.dashboardUpdatesPaused",themeSettings:"nodeWebUi.themeSettings",logsLineCount:"nodeWebUi.logs.lineCount",logsAutoRefresh:"nodeWebUi.logs.autoRefresh",logsWrapLines:"nodeWebUi.logs.wrapLines",logsSearchTerm:"nodeWebUi.logs.searchTerm",logsTarget:"nodeWebUi.logs.target",navState:"nodeWebUi.react.nav",sidebarCollapsed:"nodeWebUi.react.sidebarCollapsed",inspectorCollapsed:"nodeWebUi.react.inspectorCollapsed",selectedPmId:"nodeWebUi.react.selectedPmId",inspectorTab:"nodeWebUi.react.inspectorTab",tableDensity:"nodeWebUi.react.tableDensity"},uh={status:!0,id:!0,name:!0,cpu:!0,ram:!0,restarts:!0,uptime:!0,started:!0,actions:!0},Zo={family:"default",mode:"system"},Xi=["node-webui"],Qd=["all","online","stopped","errored","launching","unknown"],Kd=[15,30,60],Yd=[50,100,250,500],ah=["dashboard","logs","settings"],ch=["overview","config","files","logs"],Gd={compact:"Compact",comfortable:"Comfortable"},Xd={status:"Status",id:"ID",name:"Name",cpu:"CPU",ram:"RAM",restarts:"Restarts",uptime:"Uptime",started:"Started",actions:"Actions"},Jo={dashboard:"View services, metrics, and process actions",logs:"Open the central process log viewer",settings:"Configure appearance and local preferences"},dh={system:"Use the system light or dark preference",light:"Switch the interface to light mode",dark:"Switch the interface to dark mode"},fh={overview:"Show runtime and resource details",config:"Show PM2 configuration fields",files:"Show script, working directory, and log paths",logs:"Show logs for the selected process"},Xs={default:"Default",graphite:"Graphite",midnight:"Midnight",forest:"Forest",lagoon:"Lagoon",ruby:"Ruby",amber:"Amber",nord:"Nord","high-contrast":"High Contrast"},wa={scriptPath:"",name:"",cwd:"",args:"",interpreter:"",nodeArgs:"",nodeEnv:"",instances:"",watch:!1,maxMemoryRestart:"",outLogPath:"",errorLogPath:""};function nr(e,t){try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch{return t}}function ke(e,t=""){try{return localStorage.getItem(e)??t}catch{return t}}function rr(e,t){localStorage.setItem(e,JSON.stringify(t))}function Ar(e){return`${Number(e||0).toFixed(1)}%`}function Vn(e){const t=Number(e||0);if(!t)return"0 B";const n=["B","KB","MB","GB","TB"],r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1),l=t/Math.pow(1024,r);return`${l.toFixed(l>=10||r===0?0:1)} ${n[r]}`}function Zd(e){if(!e)return"--";const t=new Date(e);return Number.isNaN(t.getTime())?"--":t.toLocaleString()}function Jd(e){if(!e)return"--";const t=Date.now()-Number(e);if(t<=0)return"Just now";const n=Math.floor(t/1e3),r=Math.floor(n/86400),l=Math.floor(n%86400/3600),o=Math.floor(n%3600/60);return r>0?`${r}d ${l}h`:l>0?`${l}h ${o}m`:`${o}m`}function Sa(e){return Array.isArray(e)?e.length?e.join(" "):"--":e||"--"}function xa(e){return e===!0?"Enabled":e===!1?"Disabled":"--"}function ph(e){return String(e||"").split(/[,\n\r]+/).map(t=>t.trim().toLowerCase()).filter(Boolean)}function mh(e){var n,r,l,o,i,u,a,c;const t=Array.isArray(e==null?void 0:e.processes)?e.processes:[];return{timestamp:Date.now(),cpu:Number(((r=(n=e==null?void 0:e.pm2Usage)==null?void 0:n.cpu)==null?void 0:r.currentLoad)||0),ram:Number(((o=(l=e==null?void 0:e.pm2Usage)==null?void 0:l.memory)==null?void 0:o.usedBytes)||0),restarts:t.reduce((y,g)=>y+Number(g.restartCount||0),0),online:Number(((i=e==null?void 0:e.summary)==null?void 0:i.online)||0),stopped:Number(((u=e==null?void 0:e.summary)==null?void 0:u.stopped)||0),errored:Number(((a=e==null?void 0:e.summary)==null?void 0:a.errored)||0),total:Number(((c=e==null?void 0:e.summary)==null?void 0:c.total)||0)}}function qo(e,t){const n=Date.now()-t*60*1e3;return e.filter(r=>Number(r.timestamp||0)>=n)}function ka(e){var t;return e!=="system"?e:(t=window.matchMedia)!=null&&t.call(window,"(prefers-color-scheme: light)").matches?"light":"dark"}function bo(e){return encodeURIComponent(String((e==null?void 0:e.pmId)??""))}function hh(){const[e,t]=S.useState(()=>{const m=ke(O.navState,"dashboard");return ah.includes(m)?m:"dashboard"}),[n,r]=S.useState(()=>ke(O.sidebarCollapsed,"false")==="true"),[l,o]=S.useState(()=>ke(O.inspectorCollapsed,"false")==="true"),[i,u]=S.useState(null),[a,c]=S.useState([]),[y,g]=S.useState(()=>ke(O.selectedPmId,"")),[h,v]=S.useState([]),[C,x]=S.useState({state:"checking",label:"Checking server"}),[$,f]=S.useState(null),[d,p]=S.useState("polling"),[w,E]=S.useState(""),[L,P]=S.useState(""),[T,H]=S.useState(null),[D,me]=S.useState(null),[Pe,mt]=S.useState(()=>ke(O.dashboardUpdatesPaused,"false")==="true"),[rt,Qn]=S.useState(()=>ke(O.processSearchTerm,"")),z=S.useRef(null),[W,N]=S.useState(()=>{const m=ke(O.processStatusFilter,"all");return Qd.includes(m)?m:"all"}),[M,R]=S.useState(()=>{const m=nr(O.sortState,{key:"name",direction:"asc"});return m!=null&&m.key?m:{key:"name",direction:"asc"}}),[K,re]=S.useState(()=>({...uh,...nr(O.columnVisibility,{})})),[lt,ot]=S.useState(()=>{const m=nr(O.protectedProcesses,Xi);return Array.isArray(m)&&m.length?m:Xi}),[Ue,it]=S.useState(()=>{const m=nr(O.themeSettings,Zo);return{family:Xs[m==null?void 0:m.family]?m.family:Zo.family,mode:["system","light","dark"].includes(m==null?void 0:m.mode)?m.mode:Zo.mode}}),[Ye,ef]=S.useState(()=>{const m=Number(ke(O.metricsHistoryWindow,"30"));return Kd.includes(m)?m:30}),[yo,tf]=S.useState(()=>{const m=nr(O.metricsHistory,[]);return qo(Array.isArray(m)?m:[],30)}),[vo,Vr]=S.useState(!1),[cn,Js]=S.useState(wa),[nf,wo]=S.useState({}),[Kn,Wr]=S.useState(()=>{const m=ke(O.inspectorTab,"overview");return ch.includes(m)?m:"overview"}),[So,rf]=S.useState(()=>{const m=ke(O.tableDensity,"compact");return Gd[m]?m:"compact"}),[Br,Hr]=S.useState(()=>ke(O.logsTarget,"")),[qs,dn]=S.useState([]),[Qr,bs]=S.useState(()=>ke(O.logsSearchTerm,"")),[st,eu]=S.useState(()=>{const m=Number(ke(O.logsLineCount,"100"));return Yd.includes(m)?String(m):"100"}),[fn,tu]=S.useState(()=>ke(O.logsAutoRefresh,"true")!=="false"),[Kr,nu]=S.useState(()=>ke(O.logsWrapLines,"true")!=="false"),[ru,Et]=S.useState("Ready"),pn=S.useRef(null),Yr=S.useRef(null),Yn=S.useRef(null),xo=S.useRef(""),le=S.useMemo(()=>a.find(m=>String(m.pmId??"")===y)||a[0]||null,[a,y]),Ge=S.useMemo(()=>a.find(m=>String(m.pmId??"")===Br)||le,[Br,a,le]);S.useEffect(()=>{le&&String(le.pmId??"")!==y&&g(String(le.pmId??""))},[le,y]),S.useEffect(()=>{document.body.dataset.themeFamily=Ue.family,document.body.dataset.themeMode=ka(Ue.mode),rr(O.themeSettings,Ue)},[Ue]),S.useEffect(()=>rr(O.columnVisibility,K),[K]),S.useEffect(()=>rr(O.sortState,M),[M]),S.useEffect(()=>localStorage.setItem(O.processSearchTerm,rt),[rt]),S.useEffect(()=>localStorage.setItem(O.processStatusFilter,W),[W]),S.useEffect(()=>localStorage.setItem(O.dashboardUpdatesPaused,String(Pe)),[Pe]),S.useEffect(()=>rr(O.protectedProcesses,lt),[lt]),S.useEffect(()=>localStorage.setItem(O.metricsHistoryWindow,String(Ye)),[Ye]),S.useEffect(()=>rr(O.metricsHistory,yo),[yo]),S.useEffect(()=>localStorage.setItem(O.navState,e),[e]),S.useEffect(()=>localStorage.setItem(O.sidebarCollapsed,String(n)),[n]),S.useEffect(()=>localStorage.setItem(O.inspectorCollapsed,String(l)),[l]),S.useEffect(()=>localStorage.setItem(O.selectedPmId,y),[y]),S.useEffect(()=>localStorage.setItem(O.inspectorTab,Kn),[Kn]),S.useEffect(()=>localStorage.setItem(O.tableDensity,So),[So]),S.useEffect(()=>localStorage.setItem(O.logsTarget,Br),[Br]),S.useEffect(()=>localStorage.setItem(O.logsSearchTerm,Qr),[Qr]),S.useEffect(()=>localStorage.setItem(O.logsLineCount,st),[st]),S.useEffect(()=>localStorage.setItem(O.logsAutoRefresh,String(fn)),[fn]),S.useEffect(()=>localStorage.setItem(O.logsWrapLines,String(Kr)),[Kr]);const U=S.useCallback((m,j="info")=>{H({message:m,tone:j,id:Date.now()}),window.setTimeout(()=>H(null),2600)},[]),ut=S.useCallback(m=>new Promise(j=>{Yn.current=j,me(m)}),[]),lf=S.useCallback(m=>{var j;(j=Yn.current)==null||j.call(Yn,!!m),Yn.current=null,me(null)},[]),Gr=S.useCallback(async()=>{if(xo.current)return xo.current;const m=await fetch("/api/session");if(!m.ok)throw new Error("Session request failed");const j=await m.json(),I=String((j==null?void 0:j.token)||"");if(!I)throw new Error("Session token missing");return xo.current=I,I},[]),he=S.useCallback(async(m,j={})=>{const I=String(j.method||"GET").toUpperCase();if(!["GET","HEAD","OPTIONS"].includes(I)){const Y=await Gr(),ee=new Headers(j.headers||{});return ee.set("X-PM2UI-Token",Y),fetch(m,{...j,headers:ee})}return fetch(m,j)},[Gr]);S.useEffect(()=>{Gr().catch(()=>{x({state:"error",label:"Session unavailable"})})},[Gr]);const Nt=String((Ge==null?void 0:Ge.pmId)??""),Pt=S.useCallback(async()=>{if(!Nt){dn([]),Et("No process selected");return}Et(`Loading ${st} lines`);try{const m=await fetch(`/api/processes/${encodeURIComponent(Nt)}/logs?lines=${encodeURIComponent(st)}`);if(!m.ok)throw new Error("logs failed");const j=await m.json();dn(Array.isArray(j.entries)?j.entries:[]),Et(`Showing ${st} lines / ${new Date().toLocaleTimeString()}`)}catch{dn([]),Et("Failed to load logs")}},[Nt,st]),lu=S.useCallback(async()=>{if(!(!Ge||!await ut({title:"Clear process logs?",tone:"danger",actionLabel:"Clear Logs",body:`Flush PM2 logs for ${Ge.name||`PM2 ID ${Ge.pmId}`}. This clears stdout and stderr history for this process.`,details:[["Process",Ge.name||"--"],["PM2 ID",Ge.pmId??"--"]]})))try{if(!(await he(`/api/processes/${encodeURIComponent(String(Ge.pmId??""))}/logs/clear`,{method:"POST"})).ok)throw new Error("clear logs failed");dn([]),await Pt(),U("Logs cleared","success")}catch{U("Failed to clear logs","error")}},[Ge,he,Pt,ut,U]),Xr=S.useCallback(m=>{const j=Array.isArray(m==null?void 0:m.processes)?m.processes:[];u(m),c(j),x({state:"connected",label:`Connected (${d==="stream"?"Live":"Polling"})`}),f(new Date),tf(I=>{const Y=mh(m),ee=qo(I,Ye),ge=ee[ee.length-1],xe=ge&&Y.timestamp-Number(ge.timestamp||0)<3e3?[...ee.slice(0,-1),Y]:[...ee,Y];return qo(xe,Ye)})},[Ye,d]),ie=S.useCallback(async(m=!1)=>{try{const j=await fetch("/api/dashboard");if(!j.ok)throw new Error(`Dashboard request failed with status ${j.status}`);Xr(await j.json())}catch{x({state:"error",label:"Server offline"}),m||U("Failed to load dashboard","error")}},[Xr,U]);S.useEffect(()=>{ie(!0)},[ie]),S.useEffect(()=>{var j;if((j=pn.current)==null||j.close(),pn.current=null,Pe){x({state:"paused",label:"Updates paused"});return}let m=0;if(window.EventSource){const I=new EventSource("/api/dashboard/stream");pn.current=I,I.addEventListener("open",()=>{p("stream"),x({state:"connected",label:"Connected (Live)"})}),I.addEventListener("message",Y=>{p("stream"),Xr(JSON.parse(Y.data))}),I.addEventListener("error",()=>{I.close(),pn.current=null,p("polling"),m=window.setInterval(()=>ie(!0),5e3)})}else p("polling"),m=window.setInterval(()=>ie(!0),5e3);return()=>{var I;(I=pn.current)==null||I.close(),pn.current=null,m&&window.clearInterval(m)}},[ie,Pe,Xr]),S.useEffect(()=>{if(!Nt){dn([]),Et("No process selected");return}Pt()},[Nt,Pt]),S.useEffect(()=>{var j;if((j=Yr.current)==null||j.close(),Yr.current=null,!fn||!Nt)return;if(!window.EventSource){const I=window.setInterval(Pt,4e3);return()=>window.clearInterval(I)}const m=new EventSource(`/api/processes/${encodeURIComponent(Nt)}/logs/stream`);return Yr.current=m,m.addEventListener("message",I=>{const Y=JSON.parse(I.data);dn(ee=>[...ee,Y].slice(-Number(st||100))),Et(`Streaming live / ${new Date().toLocaleTimeString()}`)}),m.addEventListener("heartbeat",()=>{Et(`Streaming live / ${new Date().toLocaleTimeString()}`)}),m.addEventListener("error",()=>{m.close(),Yr.current=null,Et("Stream unavailable")}),()=>m.close()},[Nt,Pt,fn,st]);const _t=S.useCallback(m=>lt.includes(String((m==null?void 0:m.name)||"").toLowerCase()),[lt]),of=S.useCallback((m,j)=>{const I=String((m==null?void 0:m.name)||"").trim(),Y=I.toLowerCase();if(!Y){U("Process name unavailable","error");return}ot(ee=>{const ge=Array.from(new Set(ee.map(xe=>String(xe||"").trim().toLowerCase()).filter(Boolean)));return j?ge.includes(Y)?ge:[...ge,Y]:ge.filter(xe=>xe!==Y)}),U(j?`${I} is protected`:`${I} is no longer protected`,"success")},[U]),sf=S.useMemo(()=>a.reduce((m,j)=>m+Number(j.restartCount||0),0),[a]),ko=S.useMemo(()=>{const m=rt.trim().toLowerCase();return a.filter(j=>{const I=!m||String(j.name||"").toLowerCase().includes(m),Y=W==="all"||String(j.status||"").toLowerCase()===W;return I&&Y})},[a,rt,W]),mn=S.useMemo(()=>{const m=M.direction==="desc"?-1:1;return[...ko].sort((j,I)=>{const Y=xe=>M.key==="ram"?Number(xe.memory||0):M.key==="cpu"?Number(xe.cpu||0):M.key==="restarts"?Number(xe.restartCount||0):M.key==="uptime"?Number(xe.uptime||0):M.key==="started"?Number(xe.startedAt||0):String(xe[M.key]||xe.name||"").toLowerCase(),ee=Y(j),ge=Y(I);return typeof ee=="number"&&typeof ge=="number"?(ee-ge)*m:String(ee).localeCompare(String(ge))*m})},[ko,M]),ou=S.useMemo(()=>a.filter(m=>h.includes(String(m.pmId??""))),[a,h]),Zr=S.useCallback((m,j={})=>{if(!m)return;const I=String(m.pmId??"");g(I),(j.logs||e==="logs"||Kn==="logs")&&Hr(I),j.tab?Wr(j.tab):!j.keepTab&&e!=="logs"&&Wr("overview")},[Kn,e]),iu=S.useCallback(async(m,j)=>{if(j){if(_t(j)&&(m==="stop"||m==="restart")){U("Protected process cannot be stopped or restarted here","error");return}if(!((m==="stop"||m==="restart")&&!await ut({title:`${m==="stop"?"Stop":"Restart"} process?`,tone:m==="stop"?"warning":"default",actionLabel:m==="stop"?"Stop Process":"Restart Process",body:`${m==="stop"?"Stop":"Restart"} ${j.name||`PM2 ID ${j.pmId}`}.`,details:[["Process",j.name||"--"],["PM2 ID",j.pmId??"--"],["Status",j.status||"--"]]}))){E(String(j.pmId??"")),P(m);try{if(!(await he(`/api/processes/${bo(j)}/${m}`,{method:"POST"})).ok)throw new Error(`${m} failed`);U(`Process ${m} completed`,"success"),await ie(!0)}catch{x({state:"error",label:"Action failed"}),U(`Failed to ${m} process`,"error")}finally{E(""),P("")}}}},[he,_t,ie,ut,U]),uf=S.useCallback(async(m,j=ou)=>{const I=m==="start"?j:j.filter(Y=>!_t(Y));if(!I.length){U(`No selected processes available to ${m}`,"error");return}if(!((m==="stop"||m==="restart")&&!await ut({title:`${m==="stop"?"Stop":"Restart"} selected processes?`,tone:m==="stop"?"warning":"default",actionLabel:m==="stop"?"Stop Selected":"Restart Selected",body:`${m==="stop"?"Stop":"Restart"} ${I.length} selected process${I.length===1?"":"es"}. Protected processes are excluded.`,details:[["Selected",String(I.length)],["Processes",I.map(ee=>ee.name||`PM2 ${ee.pmId}`).join(", ")]]}))){E("__bulk__"),P(m);try{for(const Y of I)if(!(await he(`/api/processes/${bo(Y)}/${m}`,{method:"POST"})).ok)throw new Error(`${m} failed`);U(`Bulk ${m} completed`,"success"),await ie(!0)}catch{U(`Failed to ${m} selected processes`,"error")}finally{E(""),P("")}}},[he,_t,ie,ut,ou,U]),su=S.useCallback(async m=>{if(!m||_t(m)){U("Protected process cannot be deleted here","error");return}if(await ut({title:"Delete PM2 process?",tone:"danger",actionLabel:"Delete Process",body:`Delete ${m.name||`PM2 ID ${m.pmId}`} from PM2. This does not delete files, but it removes the process from the PM2 list.`,details:[["Process",m.name||"--"],["PM2 ID",m.pmId??"--"],["Script",m.path||"--"]]})){E(String(m.pmId??"")),P("delete");try{if(!(await he(`/api/processes/${bo(m)}`,{method:"DELETE"})).ok)throw new Error("delete failed");await he("/api/pm2/save",{method:"POST"}),U("Process deleted","success"),await ie(!0)}catch{U("Failed to delete process","error")}finally{E(""),P("")}}},[he,_t,ie,ut,U]),uu=S.useCallback(async m=>{if(!(m!=null&&m.path)){U("Path unavailable","error");return}try{if(!(await he("/api/open-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:m.path})})).ok)throw new Error("open failed");U("Opened path in Finder","success")}catch{U("Failed to open path","error")}},[he,U]),af=S.useCallback(async()=>{try{if(!(await he("/api/pm2/save",{method:"POST"})).ok)throw new Error("save failed");U("PM2 state saved","success"),await ie(!0)}catch{U("Failed to save PM2 state","error")}},[he,ie,U]),cf=S.useCallback(async()=>{if(wo({scriptPath:!0,name:!0,cwd:!0}),!cn.scriptPath.trim()||!cn.name.trim()||!cn.cwd.trim()){U("Script path, process name, and working directory are required","error");return}E("__create__"),P("create");try{const m=await he("/api/processes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(cn)}),j=await m.json().catch(()=>({}));if(!m.ok)throw new Error(j.error||"create failed");await he("/api/pm2/save",{method:"POST"}),Vr(!1),Js(wa),wo({}),U("PM2 app created","success"),await ie(!0)}catch(m){U(m.message||"Failed to create PM2 app","error")}finally{E(""),P("")}},[he,cn,ie,U]),df=S.useCallback(async()=>{await ut({title:"Reset local preferences?",tone:"warning",actionLabel:"Reset Preferences",body:"Clear locally saved Node WebUI preferences, including themes, filters, table columns, history, selected process, sidebar state, inspector state, protected names, and log settings.",details:[["Scope","Browser localStorage for this app"],["Effect","The React UI reloads with defaults"]]})&&(localStorage.clear(),U("Local preferences reset","success"),window.setTimeout(()=>window.location.reload(),300))},[ut,U]),ff=m=>{R(j=>({key:m,direction:j.key===m&&j.direction==="asc"?"desc":"asc"}))},Co=S.useCallback(m=>{if(!m)return;const j=String(m.pmId??"");g(j),Hr(j),t("logs")},[]),Jr=S.useCallback(m=>{t(m),m==="logs"&&le&&Hr(String(le.pmId??"")),m==="dashboard"&&Wr("overview")},[le]);return S.useEffect(()=>{function m(j){var ee;const I=document.activeElement;if(!((ee=I==null?void 0:I.matches)!=null&&ee.call(I,'input, textarea, select, [contenteditable="true"]')||vo||D)){if(j.key==="/"){j.preventDefault(),Jr("dashboard"),window.setTimeout(()=>{var ge;return(ge=z.current)==null?void 0:ge.focus()},0);return}if(j.key.toLowerCase()==="r"){j.preventDefault(),ie(!1);return}if(j.key.toLowerCase()==="l"&&le){j.preventDefault(),Co(le);return}if(j.key==="Escape"){v([]);return}if((j.key==="ArrowDown"||j.key==="ArrowUp")&&mn.length>0){j.preventDefault();const ge=Math.max(0,mn.findIndex(mf=>String(mf.pmId??"")===String((le==null?void 0:le.pmId)??""))),xe=j.key==="ArrowDown"?1:-1,pf=Math.min(Math.max(ge+xe,0),mn.length-1);Zr(mn[pf],{keepTab:!0})}}}return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[D,vo,Jr,ie,Co,Zr,le,mn]),s.jsxs("div",{className:`app-shell ${l?"inspector-collapsed-shell":""}`,children:[s.jsx(gh,{collapsed:n,onToggle:()=>r(m=>!m),nav:e,onNav:Jr,status:C,dashboard:i,theme:Ue,onTheme:it}),s.jsxs("main",{className:"main-region",children:[s.jsx(yh,{lastUpdated:$,paused:Pe,busyLabel:L,onRefresh:()=>ie(!1),onPause:()=>mt(m=>!m),onSave:af,onCreate:()=>Vr(!0)}),e==="settings"?s.jsx(Nh,{theme:Ue,onTheme:it,protectedNames:lt,onProtectedNames:ot,onResetLocalStorage:df}):e==="logs"?s.jsx(jh,{processes:a,selectedProcess:Ge,onSelectProcess:m=>{Zr(m,{logs:!0,keepTab:!0})},onDashboard:()=>Jr("dashboard"),logsProps:{entries:qs,search:Qr,onSearch:bs,lineCount:st,onLineCount:eu,autoRefresh:fn,onAutoRefresh:tu,wrap:Kr,onWrap:nu,status:ru,onRefresh:Pt,onClear:lu}}):s.jsxs(s.Fragment,{children:[s.jsx(vh,{dashboard:i,restartTotal:sf}),s.jsx(wh,{history:yo,windowMinutes:Ye,onWindow:ef,themeKey:`${Ue.family}-${ka(Ue.mode)}`}),s.jsx(xh,{processes:mn,allCount:a.length,filteredCount:ko.length,search:rt,onSearch:Qn,searchInputRef:z,statusFilter:W,onStatusFilter:N,sortState:M,onSort:ff,density:So,onDensity:rf,columnVisibility:K,onColumnVisibility:re,selectedPmId:le?String(le.pmId??""):"",selectedRows:h,onSelectedRows:v,onSelectProcess:m=>{Zr(m)},isProtected:_t,busyTarget:w,onAction:iu,onDelete:su,onOpenFolder:uu,onLogs:Co,onBulkAction:uf,onCreate:()=>Vr(!0),onRefresh:()=>ie(!1)})]})]}),s.jsx(Eh,{collapsed:l,onCollapsed:o,process:le,dashboard:i,tab:Kn,onTab:m=>{Wr(m),m==="logs"&&le&&Hr(String(le.pmId??""))},isProtected:_t,busyTarget:w,onAction:iu,onDelete:su,onOpenFolder:uu,onProtectedProcess:of,logsProps:{entries:qs,search:Qr,onSearch:bs,lineCount:st,onLineCount:eu,autoRefresh:fn,onAutoRefresh:tu,wrap:Kr,onWrap:nu,status:ru,onRefresh:Pt,onClear:lu}}),vo&&s.jsx(_h,{draft:cn,touched:nf,busy:w==="__create__",onDraft:Js,onTouched:wo,onClose:()=>Vr(!1),onCreate:cf}),T&&s.jsx("div",{className:`toast toast-${T.tone}`,role:"status",children:T.message}),D&&s.jsx(Ph,{request:D,onClose:lf})]})}function gh({collapsed:e,onToggle:t,nav:n,onNav:r,status:l,dashboard:o,theme:i,onTheme:u}){var h,v,C,x,$,f,d,p;const a=o==null?void 0:o.pm2,c=(h=a==null?void 0:a.daemon)!=null&&h.connected?a.daemon.pid?`PID ${a.daemon.pid}`:"Connected":"--",y=(a==null?void 0:a.managedAppCount)??((v=o==null?void 0:o.summary)==null?void 0:v.total)??"--",g=l.state==="connected"?"good":l.state==="paused"?"warn":l.state==="error"?"bad":"idle";return s.jsxs("aside",{className:`sidebar ${e?"sidebar-collapsed":""}`,children:[s.jsxs("div",{className:"brand-row",children:[s.jsx("div",{className:"brand-mark",children:s.jsx(Ys,{size:18})}),!e&&s.jsxs("div",{children:[s.jsx("h1",{children:"Node WebUI"}),s.jsx("p",{children:"Local PM2 console"})]}),s.jsx("button",{className:"icon-button ghost",onClick:t,"aria-label":"Toggle sidebar",title:e?"Expand the left navigation sidebar":"Collapse the left navigation sidebar",children:e?s.jsx(Ad,{size:16}):s.jsx(Ud,{size:16})})]}),s.jsxs("div",{className:`connection-pill ${g}`,title:l.label,children:[s.jsx("span",{}),!e&&s.jsx("strong",{children:l.label})]}),s.jsxs("nav",{className:"nav-stack","aria-label":"Primary",children:[s.jsx(ei,{icon:s.jsx(Gi,{size:17}),label:"Dashboard",tooltip:Jo.dashboard,active:n==="dashboard",collapsed:e,onClick:()=>r("dashboard")}),s.jsx(ei,{icon:s.jsx(ql,{size:17}),label:"Logs",tooltip:Jo.logs,active:n==="logs",collapsed:e,onClick:()=>r("logs")}),s.jsx(ei,{icon:s.jsx(va,{size:17}),label:"Settings",tooltip:Jo.settings,active:n==="settings",collapsed:e,onClick:()=>r("settings")})]}),!e&&s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"sidebar-section",children:[s.jsx("div",{className:"section-title",children:"Host Health"}),s.jsx(Ca,{label:"CPU",value:((x=(C=o==null?void 0:o.system)==null?void 0:C.cpu)==null?void 0:x.currentLoad)||0}),s.jsx(Ca,{label:"RAM",value:((f=($=o==null?void 0:o.system)==null?void 0:$.memory)==null?void 0:f.usedPercent)||0})]}),s.jsxs("section",{className:"sidebar-section",children:[s.jsx("div",{className:"section-title",children:"PM2 Runtime"}),s.jsx(lr,{label:"Version",value:a!=null&&a.version?`v${a.version}`:"--"}),s.jsx(lr,{label:"Daemon",value:c}),s.jsx(lr,{label:"Apps",value:y}),s.jsx(lr,{label:"Saved",value:a!=null&&a.saved?"Saved":"Not saved",tone:a!=null&&a.saved?"good":"warn"}),s.jsx(lr,{label:"Startup",value:((d=a==null?void 0:a.startup)==null?void 0:d.configured)===!0?"Configured":((p=a==null?void 0:a.startup)==null?void 0:p.configured)===!1?"Not detected":"Unknown"})]}),s.jsxs("section",{className:"sidebar-section quick-settings",children:[s.jsx("div",{className:"section-title",children:"Quick Settings"}),s.jsxs("label",{children:[s.jsx("span",{children:"Theme"}),s.jsx("select",{value:i.family,onChange:w=>u({...i,family:w.target.value}),children:Object.entries(Xs).map(([w,E])=>s.jsx("option",{value:w,children:E},w))})]}),s.jsx("div",{className:"segmented",role:"group","aria-label":"Theme mode",children:[["system",s.jsx(va,{size:14}),"System"],["light",s.jsx(lh,{size:14}),"Light"],["dark",s.jsx(eh,{size:14}),"Dark"]].map(([w,E,L])=>s.jsx("button",{className:i.mode===w?"active":"",onClick:()=>u({...i,mode:w}),title:dh[w],"aria-label":L,children:E},w))})]})]})]})}function ei({icon:e,label:t,tooltip:n,active:r,collapsed:l,onClick:o}){const[i,u]=S.useState(!1);return s.jsxs("button",{className:`nav-button ${r?"active":""}`,onBlur:()=>u(!1),onClick:o,onFocus:()=>u(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),title:n||t,"aria-label":t,children:[e,!l&&s.jsx("span",{children:t}),l&&i&&s.jsx("span",{className:"sidebar-tooltip",role:"tooltip",children:n||t})]})}function Ca({label:e,value:t}){return s.jsxs("div",{className:"mini-meter",children:[s.jsxs("div",{children:[s.jsx("span",{children:e}),s.jsx("strong",{children:Ar(t)})]}),s.jsx("div",{className:"meter-track",children:s.jsx("span",{style:{width:`${Math.min(Number(t||0),100)}%`}})})]})}function lr({label:e,value:t,tone:n=""}){return s.jsxs("div",{className:`runtime-line ${n}`,children:[s.jsx("span",{children:e}),s.jsx("strong",{children:t})]})}function yh({lastUpdated:e,paused:t,busyLabel:n,onRefresh:r,onPause:l,onSave:o,onCreate:i}){return s.jsxs("header",{className:"top-toolbar",children:[s.jsxs("div",{children:[s.jsx("span",{className:"toolbar-caption",children:"Last updated"}),s.jsx("strong",{children:e?e.toLocaleTimeString():"--"})]}),s.jsxs("div",{className:"toolbar-actions",children:[n&&s.jsxs("span",{className:"busy-chip",children:[s.jsx(bl,{size:13})," Working: ",n]}),s.jsxs("button",{className:"button secondary",onClick:r,title:"Fetch the latest dashboard data now",children:[s.jsx(bl,{size:15})," Refresh"]}),s.jsxs("button",{className:"button secondary",onClick:l,title:t?"Resume live dashboard updates":"Pause live dashboard updates",children:[t?s.jsx(Hs,{size:15}):s.jsx(th,{size:15})," ",t?"Resume Live":"Pause Live"]}),s.jsxs("button",{className:"button secondary",onClick:o,title:"Save the current PM2 process list",children:[s.jsx(nh,{size:15})," Save PM2 State"]}),s.jsxs("button",{className:"button primary",onClick:i,title:"Open the form to create a PM2 app",children:[s.jsx(Qs,{size:15})," Create PM2 App"]})]})]})}function vh({dashboard:e,restartTotal:t}){var r,l,o,i,u,a,c,y;const n=[["Total Services",((r=e==null?void 0:e.summary)==null?void 0:r.total)??"--",s.jsx(Ys,{size:18})],["Online",((l=e==null?void 0:e.summary)==null?void 0:l.online)??"--",s.jsx(Km,{size:18}),"good"],["Stopped",((o=e==null?void 0:e.summary)==null?void 0:o.stopped)??"--",s.jsx(Gs,{size:18}),"warn"],["Errored",((i=e==null?void 0:e.summary)==null?void 0:i.errored)??"--",s.jsx(ih,{size:18}),"bad"],["Restart Count",t,s.jsx(Ks,{size:18})],["PM2 CPU",Ar(((a=(u=e==null?void 0:e.pm2Usage)==null?void 0:u.cpu)==null?void 0:a.currentLoad)||0),s.jsx(qm,{size:18})],["PM2 RAM",Vn(((y=(c=e==null?void 0:e.pm2Usage)==null?void 0:c.memory)==null?void 0:y.usedBytes)||0),s.jsx(Fd,{size:18})]];return s.jsx("section",{className:"summary-row","aria-label":"Summary metrics",children:n.map(([g,h,v,C])=>s.jsxs("div",{className:`metric-tile ${C||""}`,children:[s.jsxs("div",{children:[v,s.jsx("span",{children:g})]}),s.jsx("strong",{children:h})]},g))})}function wh({history:e,windowMinutes:t,onWindow:n,themeKey:r}){const l=e[e.length-1];return s.jsxs("section",{className:"panel metric-history",children:[s.jsxs("div",{className:"panel-header",children:[s.jsxs("div",{children:[s.jsx("h2",{children:"Metric History"}),s.jsxs("p",{children:[e.length," sample",e.length===1?"":"s"," / ",t," min"]})]}),s.jsxs("label",{className:"inline-field",children:[s.jsx("span",{children:"Window"}),s.jsx("select",{value:t,onChange:o=>n(Number(o.target.value)),children:Kd.map(o=>s.jsxs("option",{value:o,children:[o," min"]},o))})]})]}),s.jsxs("div",{className:"chart-grid",children:[s.jsx(hl,{label:"PM2 CPU",value:l?Ar(l.cpu):"--",samples:e,series:[{key:"cpu",cssVar:"--accent",max:100}],suffix:"%",themeKey:r}),s.jsx(hl,{label:"PM2 RAM",value:l?Vn(l.ram):"--",samples:e,series:[{key:"ram",cssVar:"--accent-2"}],formatter:Vn,themeKey:r}),s.jsx(hl,{label:"Restarts",value:l?l.restarts:"--",samples:e,series:[{key:"restarts",cssVar:"--warning"}],themeKey:r}),s.jsx(hl,{label:"Status",value:l?`${l.online}/${l.total} online`:"--",samples:e,series:[{key:"online",cssVar:"--success"},{key:"stopped",cssVar:"--warning"},{key:"errored",cssVar:"--danger"}],themeKey:r})]})]})}function hl({label:e,value:t,samples:n,series:r,formatter:l,suffix:o="",themeKey:i}){return s.jsxs("div",{className:"chart-panel",children:[s.jsxs("div",{className:"chart-header",children:[s.jsx("span",{children:e}),s.jsx("strong",{children:t})]}),s.jsx(Sh,{samples:n,series:r,formatter:l,suffix:o,themeKey:i})]})}function Sh({samples:e,series:t,formatter:n,suffix:r,themeKey:l}){const o=S.useRef(null);return S.useEffect(()=>{const i=o.current;if(!i)return;const u=i.getBoundingClientRect(),a=window.devicePixelRatio||1;i.width=Math.max(1,Math.floor(u.width*a)),i.height=Math.max(1,Math.floor(u.height*a));const c=i.getContext("2d");c.setTransform(a,0,0,a,0,0),c.clearRect(0,0,u.width,u.height),c.strokeStyle="rgba(148, 163, 184, 0.18)",c.lineWidth=1;for(let v=16;v<u.height;v+=28)c.beginPath(),c.moveTo(0,v),c.lineTo(u.width,v),c.stroke();if(e.length<2){c.fillStyle="rgba(148, 163, 184, 0.78)",c.font="12px Inter, system-ui, sans-serif",c.textAlign="center",c.fillText("Waiting for samples",u.width/2,u.height/2);return}const y=e[0].timestamp,g=e[e.length-1].timestamp,h=Math.max(...t.flatMap(v=>e.map(C=>Number(C[v.key]||0))),...t.map(v=>v.max||0),1);t.forEach(v=>{c.strokeStyle=v.cssVar?getComputedStyle(document.body).getPropertyValue(v.cssVar).trim():v.color,c.lineWidth=2,c.beginPath(),e.forEach((C,x)=>{const $=(C.timestamp-y)/Math.max(g-y,1)*(u.width-10)+5,f=u.height-10-Number(C[v.key]||0)/h*(u.height-18);x===0?c.moveTo($,f):c.lineTo($,f)}),c.stroke()}),c.fillStyle="rgba(148, 163, 184, 0.74)",c.font="10px Inter, system-ui, sans-serif",c.textAlign="right",c.fillText(n?n(h):`${Math.ceil(h)}${r}`,u.width-4,12)},[e,t,n,r,l]),s.jsx("canvas",{ref:o,className:"spark-chart"})}function xh(e){const{processes:t,allCount:n,filteredCount:r,search:l,onSearch:o,searchInputRef:i,statusFilter:u,onStatusFilter:a,sortState:c,onSort:y,density:g,onDensity:h,columnVisibility:v,onColumnVisibility:C,selectedPmId:x,selectedRows:$,onSelectedRows:f,onSelectProcess:d,isProtected:p,busyTarget:w,onAction:E,onDelete:L,onOpenFolder:P,onLogs:T,onBulkAction:H,onCreate:D,onRefresh:me}=e,Pe=t.length>0&&t.every(z=>$.includes(String(z.pmId??"")));function mt(z){f(W=>W.includes(z)?W.filter(N=>N!==z):[...W,z])}function rt(){if(Pe){f(z=>z.filter(W=>!t.some(N=>String(N.pmId??"")===W)));return}f(z=>Array.from(new Set([...z,...t.map(W=>String(W.pmId??""))])))}const Qn=n===0?"No processes":r===n?`${n} process${n===1?"":"es"}`:`Showing ${r} of ${n}`;return s.jsxs("section",{className:"panel process-panel",children:[s.jsxs("div",{className:"panel-header process-header",children:[s.jsxs("div",{children:[s.jsx("h2",{children:"Processes"}),s.jsx("p",{children:Qn})]}),s.jsxs("div",{className:"process-tools",children:[s.jsxs("label",{className:"search-field",children:[s.jsx(Bd,{size:15}),s.jsx("input",{ref:i,value:l,onChange:z=>o(z.target.value),placeholder:"Search process name",type:"search"})]}),s.jsxs("label",{className:"inline-field status-filter",children:[s.jsx(bm,{size:15}),s.jsx("select",{value:u,onChange:z=>a(z.target.value),"aria-label":"Filter by status",children:Qd.map(z=>s.jsx("option",{value:z,children:z==="all"?"All statuses":z},z))})]}),s.jsx("div",{className:"segmented density-toggle",role:"group","aria-label":"Table density",children:Object.entries(Gd).map(([z,W])=>s.jsx("button",{className:g===z?"active":"",onClick:()=>h(z),title:z==="compact"?"Use tighter table rows":"Use larger table rows","aria-label":`${W} density`,children:W},z))}),s.jsx(kh,{columnVisibility:v,onColumnVisibility:C})]})]}),$.length>0&&s.jsxs("div",{className:"bulk-bar",children:[s.jsxs("strong",{children:[$.length," selected"]}),s.jsxs("button",{className:"button secondary",onClick:()=>H("start"),title:"Start all selected processes",children:[s.jsx(Hs,{size:14})," Start"]}),s.jsxs("button",{className:"button secondary",onClick:()=>H("stop"),title:"Stop all selected processes",children:[s.jsx(Gs,{size:14})," Stop"]}),s.jsxs("button",{className:"button secondary",onClick:()=>H("restart"),title:"Restart all selected processes",children:[s.jsx(Ks,{size:14})," Restart"]}),s.jsx("button",{className:"button ghost",onClick:()=>f([]),title:"Clear the current row selection",children:"Clear"})]}),s.jsx("div",{className:"table-scroll",children:s.jsxs("table",{className:`process-table process-table-${g}`,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{className:"check-col",children:s.jsx("input",{type:"checkbox",checked:Pe,onChange:rt,"aria-label":"Select visible rows"})}),Object.entries(Xd).map(([z,W])=>v[z]&&s.jsx("th",{className:z==="actions"?"actions-col":"",children:["status","name","cpu","ram","restarts","uptime","started"].includes(z)?s.jsxs("button",{className:"sort-control",onClick:()=>y(z),title:`Sort processes by ${W.toLowerCase()}`,children:[W,c.key===z&&s.jsx("span",{children:c.direction==="asc"?" up":" down"})]}):W},z))]})}),s.jsxs("tbody",{children:[n===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:"10",children:s.jsx(Ch,{title:"No PM2 processes yet",body:"Add an app from a script path, or start one with PM2 and refresh the dashboard.",onCreate:D,onRefresh:me})})}),n>0&&t.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:"10",className:"empty-cell",children:"No processes match the current filters."})}),t.map(z=>{const W=String(z.pmId??""),N=p(z),M=w===W||w==="__bulk__";return s.jsxs("tr",{className:`${W===x?"selected":""} ${M?"busy":""}`,onClick:()=>d(z),children:[s.jsx("td",{className:"check-col",onClick:R=>R.stopPropagation(),children:s.jsx("input",{type:"checkbox",checked:$.includes(W),onChange:()=>mt(W),"aria-label":`Select ${z.name}`})}),v.status&&s.jsx("td",{children:s.jsx(Zs,{status:z.status})}),v.id&&s.jsx("td",{className:"mono",title:`PID: ${z.pid||"--"}`,children:z.pmId??"--"}),v.name&&s.jsxs("td",{className:"name-cell",children:[s.jsx("strong",{children:z.name||"--"}),N&&s.jsxs("span",{className:"protected-badge",title:"Protected process: stop, restart, and delete are disabled",children:[s.jsx(Wd,{size:12})," Protected"]})]}),v.cpu&&s.jsx("td",{children:Ar(z.cpu)}),v.ram&&s.jsx("td",{children:Vn(z.memory)}),v.restarts&&s.jsx("td",{children:z.restartCount??0}),v.uptime&&s.jsx("td",{children:Jd(z.uptime)}),v.started&&s.jsx("td",{children:Zd(z.startedAt)}),v.actions&&s.jsx("td",{className:"actions-col",onClick:R=>R.stopPropagation(),children:s.jsx(qd,{process:z,protectedProcess:N,busy:!!M,onAction:E,onDelete:L,onOpenFolder:P,onLogs:T})})]},W||z.name)})]})]})})]})}function kh({columnVisibility:e,onColumnVisibility:t}){const[n,r]=S.useState(!1);return s.jsxs("div",{className:"column-menu",children:[s.jsxs("button",{className:"button secondary",onClick:()=>r(l=>!l),title:"Choose which process table columns are visible",children:[s.jsx(Ym,{size:15})," Columns"]}),n&&s.jsx("div",{className:"column-popover",children:Object.entries(Xd).filter(([l])=>l!=="actions").map(([l,o])=>s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:e[l]!==!1,onChange:i=>t(u=>({...u,[l]:i.target.checked}))}),s.jsx("span",{children:o})]},l))})]})}function qd({process:e,protectedProcess:t,busy:n,onAction:r,onDelete:l,onOpenFolder:o,onLogs:i}){const u=String(e.status||"").toLowerCase();return s.jsxs("div",{className:"row-actions",children:[s.jsx(We,{icon:s.jsx(Hs,{size:15}),label:"Start process",tooltip:"Start this PM2 process",disabled:n||u==="online",onClick:()=>r("start",e)}),s.jsx(We,{icon:s.jsx(Gs,{size:15}),label:"Stop process",tooltip:t?"Protected process: stop is disabled":"Stop this PM2 process",disabled:n||t||u==="stopped",onClick:()=>r("stop",e)}),s.jsx(We,{icon:s.jsx(Ks,{size:15}),label:"Restart process",tooltip:t?"Protected process: restart is disabled":"Restart this PM2 process",disabled:n||t||u==="stopped",onClick:()=>r("restart",e)}),s.jsx(We,{icon:s.jsx(ql,{size:15}),label:"View logs",tooltip:"Open logs for this process",disabled:n,onClick:()=>i(e)}),s.jsx(We,{icon:s.jsx(Jm,{size:15}),label:"Open folder",tooltip:"Open this process folder in Finder",disabled:n||!e.path,onClick:()=>o(e)}),s.jsx(We,{icon:s.jsx(oh,{size:15}),label:"Delete process",tooltip:t?"Protected process: delete is disabled":"Remove this process from PM2",danger:!0,disabled:n||t,onClick:()=>l(e)})]})}function We({icon:e,label:t,tooltip:n,disabled:r,danger:l,onClick:o}){return s.jsx("button",{className:`icon-button ${l?"danger":""}`,disabled:r,onClick:o,"aria-label":t,title:n||t,children:e})}function Zs({status:e}){const t=String(e||"unknown").toLowerCase();return s.jsx("span",{className:`status-badge ${t}`,children:t})}function Ch({title:e,body:t,onCreate:n,onRefresh:r}){return s.jsxs("div",{className:"empty-state",children:[s.jsx(Ys,{size:24}),s.jsx("strong",{children:e}),s.jsx("p",{children:t}),s.jsxs("div",{children:[s.jsxs("button",{className:"button primary",onClick:n,title:"Open the form to create a PM2 app",children:[s.jsx(Qs,{size:15})," Create PM2 App"]}),s.jsxs("button",{className:"button secondary",onClick:r,title:"Fetch the latest dashboard data now",children:[s.jsx(bl,{size:15})," Refresh"]})]})]})}function jh({processes:e,selectedProcess:t,onSelectProcess:n,onDashboard:r,logsProps:l}){return s.jsxs("section",{className:"panel logs-workspace",children:[s.jsxs("div",{className:"panel-header logs-workspace-header",children:[s.jsxs("div",{children:[s.jsx("h2",{children:"Logs"}),s.jsx("p",{children:t?`Viewing ${t.name||`PM2 ID ${t.pmId}`}`:"Select a process to inspect stdout and stderr"})]}),s.jsxs("button",{className:"button secondary",onClick:r,title:"Return to the process dashboard",children:[s.jsx(Gi,{size:15})," Dashboard"]})]}),e.length===0?s.jsxs("div",{className:"empty-state",children:[s.jsx(ql,{size:24}),s.jsx("strong",{children:"No PM2 processes available"}),s.jsx("p",{children:"Logs are available after PM2 reports at least one managed process."}),s.jsx("div",{children:s.jsxs("button",{className:"button secondary",onClick:r,title:"Return to the process dashboard",children:[s.jsx(Gi,{size:15})," Dashboard"]})})]}):s.jsxs("div",{className:"logs-workspace-grid",children:[s.jsx("aside",{className:"logs-process-list","aria-label":"Processes with logs",children:e.map(o=>{const i=String(o.pmId??""),u=String((t==null?void 0:t.pmId)??"")===i;return s.jsxs("button",{className:u?"active":"",onClick:()=>n(o),title:`Load logs for ${o.name||`PM2 ID ${o.pmId}`}`,children:[s.jsxs("span",{children:[s.jsx("strong",{children:o.name||"--"}),s.jsxs("small",{children:["PM2 ID ",o.pmId??"--"," / ",Vn(o.memory)]})]}),s.jsx(Zs,{status:o.status})]},i||o.name)})}),s.jsx("div",{className:"logs-workspace-viewer",children:t?s.jsx(bd,{process:t,...l}):s.jsxs("div",{className:"inspector-empty",children:[s.jsx(ql,{size:28}),s.jsx("strong",{children:"No process selected"}),s.jsx("p",{children:"Select a process from the list to load its stdout and stderr entries."})]})})]})]})}function Eh({collapsed:e,onCollapsed:t,process:n,dashboard:r,tab:l,onTab:o,isProtected:i,busyTarget:u,onAction:a,onDelete:c,onOpenFolder:y,onProtectedProcess:g,logsProps:h}){var C;const v=n?i(n):!1;return e?s.jsx("aside",{className:"inspector inspector-collapsed","aria-label":"Collapsed process inspector",children:s.jsxs("button",{className:"inspector-rail-button",onClick:()=>t(!1),"aria-label":"Expand inspector",title:"Expand the process inspector",children:[s.jsx(Ud,{size:16}),s.jsx("span",{children:"Inspector"})]})}):s.jsx("aside",{className:"inspector",children:n?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"inspector-header",children:[s.jsxs("div",{children:[s.jsx("h2",{children:n.name||"Unnamed process"}),s.jsxs("div",{className:"badge-row",children:[s.jsx(Zs,{status:n.status}),v&&s.jsxs("span",{className:"protected-badge",title:"Protected process: stop, restart, and delete are disabled",children:[s.jsx(Wd,{size:12})," Protected"]})]})]}),s.jsx("button",{className:"icon-button ghost",onClick:()=>t(!0),"aria-label":"Collapse inspector",title:"Collapse the process inspector",children:s.jsx(Ad,{size:16})})]}),s.jsx("div",{className:"inspector-actions",children:s.jsx(qd,{process:n,protectedProcess:v,busy:u===String(n.pmId??""),onAction:a,onDelete:c,onOpenFolder:y,onLogs:()=>o("logs")})}),s.jsx("div",{className:"tabs",children:["overview","config","files","logs"].map(x=>s.jsx("button",{className:l===x?"active":"",onClick:()=>o(x),title:fh[x],children:x[0].toUpperCase()+x.slice(1)},x))}),l==="overview"&&s.jsx(ti,{items:[["Runtime",`${n.interpreter||n.execInterpreter||"process"} / ${n.execMode||"mode unknown"}`],["CPU",Ar(n.cpu)],["RAM",Vn(n.memory)],["Uptime",Jd(n.uptime)],["Started",Zd(n.startedAt)],["Restarts",n.restartCount??0],["PID",n.pid||"--"],["PM2 ID",n.pmId??"--"]]}),l==="config"&&s.jsxs(s.Fragment,{children:[s.jsxs("label",{className:"protection-toggle",title:"Protect this process from accidental stop, restart, and delete actions",children:[s.jsx("input",{type:"checkbox",checked:v,onChange:x=>g(n,x.target.checked)}),s.jsxs("span",{children:[s.jsx("strong",{children:"Protect process"}),s.jsx("small",{children:"Disable stop, restart, and delete controls for this process in the UI."})]})]}),s.jsx(ti,{items:[["Interpreter",n.interpreter||n.execInterpreter||"--"],["Exec mode",n.execMode||"--"],["Namespace",n.namespace||"--"],["Version",n.version||"--"],["Environment",n.nodeEnv||n.envName||"--"],["Instances",n.instances||"--"],["Watch",xa(n.watch)],["Autorestart",xa(n.autorestart)],["Args",Sa(n.args)],["Node args",Sa(n.nodeArgs)],["Max memory restart",n.maxMemoryRestart||"--"]]})]}),l==="files"&&s.jsx(ti,{items:[["Script path",n.path||"--"],["CWD",n.cwd||"--"],["Output log",n.outLogPath||"--"],["Error log",n.errorLogPath||"--"],["PID file",n.pidPath||"--"],["PM2 home",n.pm2Home||((C=r==null?void 0:r.pm2)==null?void 0:C.home)||"--"]]}),l==="logs"&&s.jsx(bd,{process:n,...h,compact:!0})]}):s.jsxs("div",{className:"inspector-empty",children:[s.jsx(Zm,{size:28}),s.jsx("strong",{children:"No process selected"}),s.jsx("p",{children:"Select a table row to inspect runtime, config, files, and logs."})]})})}function ti({items:e}){return s.jsx("div",{className:"key-grid",children:e.map(([t,n])=>s.jsxs("div",{className:"key-row",children:[s.jsx("span",{children:t}),s.jsx("strong",{title:String(n),children:n})]},t))})}function bd({process:e,entries:t,search:n,onSearch:r,lineCount:l,onLineCount:o,autoRefresh:i,onAutoRefresh:u,wrap:a,onWrap:c,status:y,onRefresh:g,onClear:h}){const v=S.useMemo(()=>{const f=n.trim().toLowerCase();return f?t.filter(d=>`${d.timestamp||""} ${d.message||""}`.toLowerCase().includes(f)):t},[t,n]),C=v.map(f=>`[${f.timestamp||"--"}] ${f.type||"stdout"} ${f.message||""}`).join(`
221
+ `);async function x(){await navigator.clipboard.writeText(C)}function $(){const f=new Blob([C],{type:"text/plain;charset=utf-8"}),d=URL.createObjectURL(f),p=document.createElement("a");p.href=d,p.download=`${String((e==null?void 0:e.name)||"process").replace(/[^a-z0-9-_]+/gi,"_")}-logs.txt`,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(d)}return s.jsxs("div",{className:"logs-viewer",children:[s.jsxs("div",{className:"logs-toolbar",children:[s.jsxs("label",{className:"search-field mini",children:[s.jsx(Bd,{size:14}),s.jsx("input",{value:n,onChange:f=>r(f.target.value),placeholder:"Search logs"})]}),s.jsx("select",{value:l,onChange:f=>o(f.target.value),"aria-label":"Log line count",children:Yd.map(f=>s.jsx("option",{value:f,children:f},f))}),s.jsx(We,{icon:s.jsx(bl,{size:14}),label:"Refresh logs",tooltip:"Load the latest log lines",onClick:g}),s.jsx(We,{icon:s.jsx(Gm,{size:14}),label:"Copy logs",tooltip:"Copy visible logs to the clipboard",onClick:x}),s.jsx(We,{icon:s.jsx(Xm,{size:14}),label:"Download logs",tooltip:"Download visible logs as a text file",onClick:$}),s.jsx(We,{icon:s.jsx(Vd,{size:14}),label:"Clear logs",tooltip:"Clear PM2 logs for this process",onClick:h}),s.jsx("button",{className:`icon-button ${i?"active":""}`,onClick:()=>u(f=>!f),title:i?"Stop live log refresh":"Start live log refresh","aria-label":"Auto-refresh logs",children:s.jsx(Fd,{size:14})}),s.jsx("button",{className:`icon-button ${a?"active":""}`,onClick:()=>c(f=>!f),title:a?"Disable log line wrapping":"Wrap long log lines","aria-label":"Toggle line wrapping",children:s.jsx(sh,{size:14})})]}),s.jsxs("div",{className:"logs-status",children:[y," / ",v.length," line",v.length===1?"":"s"]}),s.jsx("div",{className:`log-output ${a?"wrap":""}`,children:v.length===0?s.jsx("p",{children:"No logs available."}):v.map((f,d)=>s.jsxs("div",{className:`log-line ${f.type==="stderr"?"stderr":"stdout"}`,children:[s.jsx("span",{children:f.type==="stderr"?"stderr":"stdout"}),s.jsx("time",{children:f.timestamp||"--"}),s.jsx("p",{children:f.message||""})]},`${f.timestamp}-${d}`))})]})}function Nh({theme:e,onTheme:t,protectedNames:n,onProtectedNames:r,onResetLocalStorage:l}){const[o,i]=S.useState(n.join(`
222
+ `));S.useEffect(()=>i(n.join(`
223
+ `)),[n]);const u=()=>{const a=ph(o);r(a.length?a:Xi)};return s.jsxs("section",{className:"panel settings-view",children:[s.jsx("div",{className:"panel-header",children:s.jsxs("div",{children:[s.jsx("h2",{children:"Settings"}),s.jsx("p",{children:"Theme preferences and local process protection rules"})]})}),s.jsxs("div",{className:"settings-grid",children:[s.jsxs("div",{className:"settings-block",children:[s.jsx("h3",{children:"Appearance"}),s.jsxs("label",{className:"form-field",children:[s.jsx("span",{children:"Theme family"}),s.jsx("select",{value:e.family,onChange:a=>t({...e,family:a.target.value}),children:Object.entries(Xs).map(([a,c])=>s.jsx("option",{value:a,children:c},a))})]}),s.jsxs("label",{className:"form-field",children:[s.jsx("span",{children:"Theme mode"}),s.jsxs("select",{value:e.mode,onChange:a=>t({...e,mode:a.target.value}),children:[s.jsx("option",{value:"system",children:"System"}),s.jsx("option",{value:"light",children:"Light"}),s.jsx("option",{value:"dark",children:"Dark"})]})]})]}),s.jsxs("div",{className:"settings-block",children:[s.jsx("h3",{children:"Protected Processes"}),s.jsxs("label",{className:"form-field",children:[s.jsx("span",{children:"Process names"}),s.jsx("textarea",{rows:"6",value:o,onChange:a=>i(a.target.value),placeholder:`node-webui
224
+ api-worker`})]}),s.jsxs("button",{className:"button primary",onClick:u,title:"Save the local protected process list",children:[s.jsx(rh,{size:15})," Save Protected Names"]})]}),s.jsxs("div",{className:"settings-block settings-block-wide",children:[s.jsx("h3",{children:"Local Preferences"}),s.jsx("p",{className:"settings-description",children:"Reset locally saved UI preferences, including theme, filters, table columns, metric history, selected process, sidebar state, inspector state, protected names, and log settings."}),s.jsxs("button",{className:"button secondary",onClick:l,title:"Clear saved local UI preferences",children:[s.jsx(Vd,{size:15})," Reset Local Storage"]})]})]})]})}function Ph({request:e,onClose:t}){return s.jsx("div",{className:"modal-backdrop",role:"presentation",children:s.jsxs("div",{className:`modal confirm-modal confirm-modal-${e.tone||"default"}`,role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",children:[s.jsxs("div",{className:"modal-header",children:[s.jsxs("div",{children:[s.jsx("h2",{id:"confirm-title",children:e.title}),s.jsx("p",{children:e.body})]}),s.jsx(We,{icon:s.jsx(Hd,{size:16}),label:"Close confirmation",tooltip:"Dismiss this confirmation",onClick:()=>t(!1)})]}),Array.isArray(e.details)&&e.details.length>0&&s.jsx("div",{className:"confirm-details",children:e.details.map(([n,r])=>s.jsxs("div",{children:[s.jsx("span",{children:n}),s.jsx("strong",{title:String(r),children:r})]},n))}),s.jsxs("div",{className:"modal-footer",children:[s.jsx("button",{className:"button secondary",onClick:()=>t(!1),title:"Cancel this action",children:"Cancel"}),s.jsx("button",{className:`button ${e.tone==="danger"?"danger-button":"primary"}`,onClick:()=>t(!0),title:"Confirm and run this action",children:e.actionLabel||"Confirm"})]})]})})}function _h({draft:e,touched:t,busy:n,onDraft:r,onTouched:l,onClose:o,onCreate:i}){const u=(c,y)=>r(g=>({...g,[c]:y})),a=c=>t[c]&&!String(e[c]||"").trim();return s.jsx("div",{className:"modal-backdrop",role:"presentation",children:s.jsxs("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"create-process-title",children:[s.jsxs("div",{className:"modal-header",children:[s.jsxs("div",{children:[s.jsx("h2",{id:"create-process-title",children:"Create PM2 App"}),s.jsx("p",{children:"Register a script with PM2 from the local machine."})]}),s.jsx(We,{icon:s.jsx(Hd,{size:16}),label:"Close modal",tooltip:"Close this dialog",onClick:o})]}),s.jsx("div",{className:"modal-body",children:s.jsxs("div",{className:"form-grid",children:[s.jsx(Ze,{label:"Script path",value:e.scriptPath,invalid:a("scriptPath"),required:!0,onChange:c=>u("scriptPath",c),onBlur:()=>l(c=>({...c,scriptPath:!0}))}),s.jsx(Ze,{label:"Process name",value:e.name,invalid:a("name"),required:!0,onChange:c=>u("name",c),onBlur:()=>l(c=>({...c,name:!0}))}),s.jsx(Ze,{label:"Working directory",value:e.cwd,invalid:a("cwd"),required:!0,onChange:c=>u("cwd",c),onBlur:()=>l(c=>({...c,cwd:!0}))}),s.jsx(Ze,{label:"Arguments",value:e.args,onChange:c=>u("args",c)}),s.jsx(Ze,{label:"Interpreter",value:e.interpreter,onChange:c=>u("interpreter",c)}),s.jsx(Ze,{label:"Node args",value:e.nodeArgs,onChange:c=>u("nodeArgs",c)}),s.jsx(Ze,{label:"NODE_ENV",value:e.nodeEnv,onChange:c=>u("nodeEnv",c)}),s.jsx(Ze,{label:"Instances",value:e.instances,placeholder:"1 or max",onChange:c=>u("instances",c)}),s.jsxs("label",{className:"form-field check-field",children:[s.jsx("input",{type:"checkbox",checked:e.watch,onChange:c=>u("watch",c.target.checked)}),s.jsx("span",{children:"Watch mode"})]}),s.jsx(Ze,{label:"Max memory restart",value:e.maxMemoryRestart,placeholder:"300M",onChange:c=>u("maxMemoryRestart",c)}),s.jsx(Ze,{label:"Output log path",value:e.outLogPath,onChange:c=>u("outLogPath",c)}),s.jsx(Ze,{label:"Error log path",value:e.errorLogPath,onChange:c=>u("errorLogPath",c)})]})}),s.jsxs("div",{className:"modal-footer",children:[s.jsx("button",{className:"button secondary",onClick:o,title:"Close without creating an app",children:"Cancel"}),s.jsxs("button",{className:"button primary",disabled:n,onClick:i,title:"Create this PM2 app from the form",children:[s.jsx(Qs,{size:15})," ",n?"Creating...":"Create App"]})]})]})})}function Ze({label:e,value:t,onChange:n,onBlur:r,placeholder:l,required:o,invalid:i}){return s.jsxs("label",{className:`form-field ${i?"invalid":""}`,children:[s.jsxs("span",{children:[e,o&&s.jsx("em",{children:"*"})]}),s.jsx("input",{value:t,placeholder:l,onChange:u=>n(u.target.value),onBlur:r})]})}Od(document.getElementById("root")).render(s.jsx(Mf.StrictMode,{children:s.jsx(hh,{})}));