xiaozuoassistant 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{browser-ponyfill-DNlTAU2D.js → browser-ponyfill-C0qLfQMC.js} +1 -1
- package/dist/client/assets/index-BfEuvtsz.js +158 -0
- package/dist/client/assets/index-C72E_nIr.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/locales/en/translation.json +11 -2
- package/dist/client/locales/zh/translation.json +11 -2
- package/dist/server/config/paths.js +24 -0
- package/dist/server/core/agents/runtime.js +5 -2
- package/dist/server/core/brain.js +5 -2
- package/dist/server/core/memories/manager.js +6 -4
- package/dist/server/core/memories/short-term.js +216 -89
- package/dist/server/index.js +70 -16
- package/dist/server/skills/create-agent.js +1 -1
- package/dist/server/skills/delegate.js +1 -1
- package/dist/server/skills/file-system.js +17 -12
- package/dist/server/skills/list-agents.js +1 -1
- package/dist/server/skills/office-excel.js +2 -2
- package/dist/server/skills/office-ppt.js +1 -1
- package/dist/server/skills/office-word.js +2 -2
- package/dist/server/skills/search.js +1 -1
- package/dist/server/skills/system-time.js +1 -1
- package/package.json +1 -1
- package/public/locales/en/translation.json +11 -2
- package/public/locales/zh/translation.json +11 -2
- package/dist/client/assets/index-BPATxdcV.js +0 -153
- package/dist/client/assets/index-CgL5gMVL.css +0 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const p of c)if(p.type==="childList")for(const f of p.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function s(c){const p={};return c.integrity&&(p.integrity=c.integrity),c.referrerPolicy&&(p.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?p.credentials="include":c.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function o(c){if(c.ep)return;c.ep=!0;const p=s(c);fetch(c.href,p)}})();var xg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u2(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ya={exports:{}},Br={},xa={exports:{}},ae={};/**
|
|
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 $u;function p2(){if($u)return ae;$u=1;var a=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),v=Symbol.iterator;function D(F){return F===null||typeof F!="object"?null:(F=v&&F[v]||F["@@iterator"],typeof F=="function"?F:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,T={};function O(F,E,M){this.props=F,this.context=E,this.refs=T,this.updater=M||A}O.prototype.isReactComponent={},O.prototype.setState=function(F,E){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,E,"setState")},O.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function W(){}W.prototype=O.prototype;function K(F,E,M){this.props=F,this.context=E,this.refs=T,this.updater=M||A}var de=K.prototype=new W;de.constructor=K,N(de,O.prototype),de.isPureReactComponent=!0;var ee=Array.isArray,ce=Object.prototype.hasOwnProperty,ie={current:null},se={key:!0,ref:!0,__self:!0,__source:!0};function ve(F,E,M){var X,G={},ue=null,Se=null;if(E!=null)for(X in E.ref!==void 0&&(Se=E.ref),E.key!==void 0&&(ue=""+E.key),E)ce.call(E,X)&&!se.hasOwnProperty(X)&&(G[X]=E[X]);var he=arguments.length-2;if(he===1)G.children=M;else if(1<he){for(var _e=Array(he),rt=0;rt<he;rt++)_e[rt]=arguments[rt+2];G.children=_e}if(F&&F.defaultProps)for(X in he=F.defaultProps,he)G[X]===void 0&&(G[X]=he[X]);return{$$typeof:a,type:F,key:ue,ref:Se,props:G,_owner:ie.current}}function we(F,E){return{$$typeof:a,type:F.type,key:E,ref:F.ref,props:F.props,_owner:F._owner}}function ge(F){return typeof F=="object"&&F!==null&&F.$$typeof===a}function Qe(F){var E={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(M){return E[M]})}var oe=/\/+/g;function q(F,E){return typeof F=="object"&&F!==null&&F.key!=null?Qe(""+F.key):E.toString(36)}function te(F,E,M,X,G){var ue=typeof F;(ue==="undefined"||ue==="boolean")&&(F=null);var Se=!1;if(F===null)Se=!0;else switch(ue){case"string":case"number":Se=!0;break;case"object":switch(F.$$typeof){case a:case r:Se=!0}}if(Se)return Se=F,G=G(Se),F=X===""?"."+q(Se,0):X,ee(G)?(M="",F!=null&&(M=F.replace(oe,"$&/")+"/"),te(G,E,M,"",function(rt){return rt})):G!=null&&(ge(G)&&(G=we(G,M+(!G.key||Se&&Se.key===G.key?"":(""+G.key).replace(oe,"$&/")+"/")+F)),E.push(G)),1;if(Se=0,X=X===""?".":X+":",ee(F))for(var he=0;he<F.length;he++){ue=F[he];var _e=X+q(ue,he);Se+=te(ue,E,M,_e,G)}else if(_e=D(F),typeof _e=="function")for(F=_e.call(F),he=0;!(ue=F.next()).done;)ue=ue.value,_e=X+q(ue,he++),Se+=te(ue,E,M,_e,G);else if(ue==="object")throw E=String(F),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.");return Se}function fe(F,E,M){if(F==null)return F;var X=[],G=0;return te(F,X,"","",function(ue){return E.call(M,ue,G++)}),X}function ye(F){if(F._status===-1){var E=F._result;E=E(),E.then(function(M){(F._status===0||F._status===-1)&&(F._status=1,F._result=M)},function(M){(F._status===0||F._status===-1)&&(F._status=2,F._result=M)}),F._status===-1&&(F._status=0,F._result=E)}if(F._status===1)return F._result.default;throw F._result}var le={current:null},B={transition:null},H={ReactCurrentDispatcher:le,ReactCurrentBatchConfig:B,ReactCurrentOwner:ie};function U(){throw Error("act(...) is not supported in production builds of React.")}return ae.Children={map:fe,forEach:function(F,E,M){fe(F,function(){E.apply(this,arguments)},M)},count:function(F){var E=0;return fe(F,function(){E++}),E},toArray:function(F){return fe(F,function(E){return E})||[]},only:function(F){if(!ge(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},ae.Component=O,ae.Fragment=s,ae.Profiler=c,ae.PureComponent=K,ae.StrictMode=o,ae.Suspense=m,ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,ae.act=U,ae.cloneElement=function(F,E,M){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var X=N({},F.props),G=F.key,ue=F.ref,Se=F._owner;if(E!=null){if(E.ref!==void 0&&(ue=E.ref,Se=ie.current),E.key!==void 0&&(G=""+E.key),F.type&&F.type.defaultProps)var he=F.type.defaultProps;for(_e in E)ce.call(E,_e)&&!se.hasOwnProperty(_e)&&(X[_e]=E[_e]===void 0&&he!==void 0?he[_e]:E[_e])}var _e=arguments.length-2;if(_e===1)X.children=M;else if(1<_e){he=Array(_e);for(var rt=0;rt<_e;rt++)he[rt]=arguments[rt+2];X.children=he}return{$$typeof:a,type:F.type,key:G,ref:ue,props:X,_owner:Se}},ae.createContext=function(F){return F={$$typeof:f,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:p,_context:F},F.Consumer=F},ae.createElement=ve,ae.createFactory=function(F){var E=ve.bind(null,F);return E.type=F,E},ae.createRef=function(){return{current:null}},ae.forwardRef=function(F){return{$$typeof:h,render:F}},ae.isValidElement=ge,ae.lazy=function(F){return{$$typeof:C,_payload:{_status:-1,_result:F},_init:ye}},ae.memo=function(F,E){return{$$typeof:x,type:F,compare:E===void 0?null:E}},ae.startTransition=function(F){var E=B.transition;B.transition={};try{F()}finally{B.transition=E}},ae.unstable_act=U,ae.useCallback=function(F,E){return le.current.useCallback(F,E)},ae.useContext=function(F){return le.current.useContext(F)},ae.useDebugValue=function(){},ae.useDeferredValue=function(F){return le.current.useDeferredValue(F)},ae.useEffect=function(F,E){return le.current.useEffect(F,E)},ae.useId=function(){return le.current.useId()},ae.useImperativeHandle=function(F,E,M){return le.current.useImperativeHandle(F,E,M)},ae.useInsertionEffect=function(F,E){return le.current.useInsertionEffect(F,E)},ae.useLayoutEffect=function(F,E){return le.current.useLayoutEffect(F,E)},ae.useMemo=function(F,E){return le.current.useMemo(F,E)},ae.useReducer=function(F,E,M){return le.current.useReducer(F,E,M)},ae.useRef=function(F){return le.current.useRef(F)},ae.useState=function(F){return le.current.useState(F)},ae.useSyncExternalStore=function(F,E,M){return le.current.useSyncExternalStore(F,E,M)},ae.useTransition=function(){return le.current.useTransition()},ae.version="18.3.1",ae}var Xu;function xi(){return Xu||(Xu=1,xa.exports=p2()),xa.exports}/**
|
|
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 Zu;function d2(){if(Zu)return Br;Zu=1;var a=xi(),r=Symbol.for("react.element"),s=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function f(h,m,x){var C,v={},D=null,A=null;x!==void 0&&(D=""+x),m.key!==void 0&&(D=""+m.key),m.ref!==void 0&&(A=m.ref);for(C in m)o.call(m,C)&&!p.hasOwnProperty(C)&&(v[C]=m[C]);if(h&&h.defaultProps)for(C in m=h.defaultProps,m)v[C]===void 0&&(v[C]=m[C]);return{$$typeof:r,type:h,key:D,ref:A,props:v,_owner:c.current}}return Br.Fragment=s,Br.jsx=f,Br.jsxs=f,Br}var Vu;function f2(){return Vu||(Vu=1,ya.exports=d2()),ya.exports}var y=f2(),J=xi();const ri=u2(J);var si={},va={exports:{}},nt={},wa={exports:{}},Sa={};/**
|
|
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
|
+
*/var Hu;function h2(){return Hu||(Hu=1,(function(a){function r(B,H){var U=B.length;B.push(H);e:for(;0<U;){var F=U-1>>>1,E=B[F];if(0<c(E,H))B[F]=H,B[U]=E,U=F;else break e}}function s(B){return B.length===0?null:B[0]}function o(B){if(B.length===0)return null;var H=B[0],U=B.pop();if(U!==H){B[0]=U;e:for(var F=0,E=B.length,M=E>>>1;F<M;){var X=2*(F+1)-1,G=B[X],ue=X+1,Se=B[ue];if(0>c(G,U))ue<E&&0>c(Se,G)?(B[F]=Se,B[ue]=U,F=ue):(B[F]=G,B[X]=U,F=X);else if(ue<E&&0>c(Se,U))B[F]=Se,B[ue]=U,F=ue;else break e}}return H}function c(B,H){var U=B.sortIndex-H.sortIndex;return U!==0?U:B.id-H.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;a.unstable_now=function(){return p.now()}}else{var f=Date,h=f.now();a.unstable_now=function(){return f.now()-h}}var m=[],x=[],C=1,v=null,D=3,A=!1,N=!1,T=!1,O=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function de(B){for(var H=s(x);H!==null;){if(H.callback===null)o(x);else if(H.startTime<=B)o(x),H.sortIndex=H.expirationTime,r(m,H);else break;H=s(x)}}function ee(B){if(T=!1,de(B),!N)if(s(m)!==null)N=!0,ye(ce);else{var H=s(x);H!==null&&le(ee,H.startTime-B)}}function ce(B,H){N=!1,T&&(T=!1,W(ve),ve=-1),A=!0;var U=D;try{for(de(H),v=s(m);v!==null&&(!(v.expirationTime>H)||B&&!Qe());){var F=v.callback;if(typeof F=="function"){v.callback=null,D=v.priorityLevel;var E=F(v.expirationTime<=H);H=a.unstable_now(),typeof E=="function"?v.callback=E:v===s(m)&&o(m),de(H)}else o(m);v=s(m)}if(v!==null)var M=!0;else{var X=s(x);X!==null&&le(ee,X.startTime-H),M=!1}return M}finally{v=null,D=U,A=!1}}var ie=!1,se=null,ve=-1,we=5,ge=-1;function Qe(){return!(a.unstable_now()-ge<we)}function oe(){if(se!==null){var B=a.unstable_now();ge=B;var H=!0;try{H=se(!0,B)}finally{H?q():(ie=!1,se=null)}}else ie=!1}var q;if(typeof K=="function")q=function(){K(oe)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,fe=te.port2;te.port1.onmessage=oe,q=function(){fe.postMessage(null)}}else q=function(){O(oe,0)};function ye(B){se=B,ie||(ie=!0,q())}function le(B,H){ve=O(function(){B(a.unstable_now())},H)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(B){B.callback=null},a.unstable_continueExecution=function(){N||A||(N=!0,ye(ce))},a.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<B?Math.floor(1e3/B):5},a.unstable_getCurrentPriorityLevel=function(){return D},a.unstable_getFirstCallbackNode=function(){return s(m)},a.unstable_next=function(B){switch(D){case 1:case 2:case 3:var H=3;break;default:H=D}var U=D;D=H;try{return B()}finally{D=U}},a.unstable_pauseExecution=function(){},a.unstable_requestPaint=function(){},a.unstable_runWithPriority=function(B,H){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var U=D;D=B;try{return H()}finally{D=U}},a.unstable_scheduleCallback=function(B,H,U){var F=a.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?F+U:F):U=F,B){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=U+E,B={id:C++,callback:H,priorityLevel:B,startTime:U,expirationTime:E,sortIndex:-1},U>F?(B.sortIndex=U,r(x,B),s(m)===null&&B===s(x)&&(T?(W(ve),ve=-1):T=!0,le(ee,U-F))):(B.sortIndex=E,r(m,B),N||A||(N=!0,ye(ce))),B},a.unstable_shouldYield=Qe,a.unstable_wrapCallback=function(B){var H=D;return function(){var U=D;D=H;try{return B.apply(this,arguments)}finally{D=U}}}})(Sa)),Sa}var Wu;function m2(){return Wu||(Wu=1,wa.exports=h2()),wa.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 Ku;function g2(){if(Ku)return nt;Ku=1;var a=xi(),r=m2();function s(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 o=new Set,c={};function p(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(c[e]=t,e=0;e<t.length;e++)o.add(t[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,x=/^[: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]*$/,C={},v={};function D(e){return m.call(v,e)?!0:m.call(C,e)?!1:x.test(e)?v[e]=!0:(C[e]=!0,!1)}function A(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function N(e,t,n,i){if(t===null||typeof t>"u"||A(e,t,n,i))return!0;if(i)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 T(e,t,n,i,l,u,d){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=d}var O={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){O[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];O[t]=new T(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){O[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){O[e]=new T(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){O[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){O[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){O[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){O[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){O[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var W=/[\-:]([a-z])/g;function K(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(W,K);O[t]=new T(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(W,K);O[t]=new T(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(W,K);O[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){O[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),O.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){O[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function de(e,t,n,i){var l=O.hasOwnProperty(t)?O[t]:null;(l!==null?l.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(N(t,n,l,i)&&(n=null),i||l===null?D(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,i=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}var ee=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ce=Symbol.for("react.element"),ie=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),we=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),Qe=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),le=Symbol.for("react.offscreen"),B=Symbol.iterator;function H(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var U=Object.assign,F;function E(e){if(F===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return`
|
|
34
|
+
`+F+e}var M=!1;function X(e,t){if(!e||M)return"";M=!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(z){var i=z}Reflect.construct(e,[],t)}else{try{t.call()}catch(z){i=z}e.call(t.prototype)}else{try{throw Error()}catch(z){i=z}e()}}catch(z){if(z&&i&&typeof z.stack=="string"){for(var l=z.stack.split(`
|
|
35
|
+
`),u=i.stack.split(`
|
|
36
|
+
`),d=l.length-1,g=u.length-1;1<=d&&0<=g&&l[d]!==u[g];)g--;for(;1<=d&&0<=g;d--,g--)if(l[d]!==u[g]){if(d!==1||g!==1)do if(d--,g--,0>g||l[d]!==u[g]){var w=`
|
|
37
|
+
`+l[d].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=d&&0<=g);break}}}finally{M=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?E(e):""}function G(e){switch(e.tag){case 5:return E(e.type);case 16:return E("Lazy");case 13:return E("Suspense");case 19:return E("SuspenseList");case 0:case 2:case 15:return e=X(e.type,!1),e;case 11:return e=X(e.type.render,!1),e;case 1:return e=X(e.type,!0),e;default:return""}}function ue(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 se:return"Fragment";case ie:return"Portal";case we:return"Profiler";case ve:return"StrictMode";case q:return"Suspense";case te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qe:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fe:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function Se(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 ue(t);case 8:return t===ve?"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 he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _e(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rt(e){var t=_e(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(d){i=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(d){i=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wr(e){e._valueTracker||(e._valueTracker=rt(e))}function Ka(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=_e(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Kr(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 Ci(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qa(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qa(e,t){t=t.checked,t!=null&&de(e,"checked",t,!1)}function ki(e,t){Qa(e,t);var n=he(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ei(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ya(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="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 Ei(e,t,n){(t!=="number"||Kr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Gn=Array.isArray;function Cn(e,t,n,i){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&&i&&(e[n].defaultSelected=!0)}else{for(n=""+he(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function _i(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(s(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ja(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(s(92));if(Gn(n)){if(1<n.length)throw Error(s(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:he(n)}}function Ga(e,t){var n=he(t.value),i=he(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),i!=null&&(e.defaultValue=""+i)}function el(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tl(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 zi(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tl(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qr,nl=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,i,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(qr=qr||document.createElement("div"),qr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var tr={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},fd=["Webkit","ms","Moz","O"];Object.keys(tr).forEach(function(e){fd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),tr[t]=tr[e]})});function rl(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||tr.hasOwnProperty(e)&&tr[e]?(""+t).trim():t+"px"}function sl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,l=rl(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,l):e[n]=l}}var hd=U({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 Di(e,t){if(t){if(hd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Ni(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 Ai=null;function Li(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Oi=null,kn=null,En=null;function il(e){if(e=Cr(e)){if(typeof Oi!="function")throw Error(s(280));var t=e.stateNode;t&&(t=xs(t),Oi(e.stateNode,e.type,t))}}function ol(e){kn?En?En.push(e):En=[e]:kn=e}function al(){if(kn){var e=kn,t=En;if(En=kn=null,il(e),t)for(e=0;e<t.length;e++)il(t[e])}}function ll(e,t){return e(t)}function cl(){}var ji=!1;function ul(e,t,n){if(ji)return e(t,n);ji=!0;try{return ll(e,t,n)}finally{ji=!1,(kn!==null||En!==null)&&(cl(),al())}}function nr(e,t){var n=e.stateNode;if(n===null)return null;var i=xs(n);if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var Pi=!1;if(h)try{var rr={};Object.defineProperty(rr,"passive",{get:function(){Pi=!0}}),window.addEventListener("test",rr,rr),window.removeEventListener("test",rr,rr)}catch{Pi=!1}function md(e,t,n,i,l,u,d,g,w){var z=Array.prototype.slice.call(arguments,3);try{t.apply(n,z)}catch(j){this.onError(j)}}var sr=!1,Qr=null,Yr=!1,Ri=null,gd={onError:function(e){sr=!0,Qr=e}};function yd(e,t,n,i,l,u,d,g,w){sr=!1,Qr=null,md.apply(gd,arguments)}function xd(e,t,n,i,l,u,d,g,w){if(yd.apply(this,arguments),sr){if(sr){var z=Qr;sr=!1,Qr=null}else throw Error(s(198));Yr||(Yr=!0,Ri=z)}}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)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function pl(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 dl(e){if(an(e)!==e)throw Error(s(188))}function vd(e){var t=e.alternate;if(!t){if(t=an(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return dl(l),e;if(u===i)return dl(l),t;u=u.sibling}throw Error(s(188))}if(n.return!==i.return)n=l,i=u;else{for(var d=!1,g=l.child;g;){if(g===n){d=!0,n=l,i=u;break}if(g===i){d=!0,i=l,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,i=l;break}if(g===i){d=!0,i=u,n=l;break}g=g.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function fl(e){return e=vd(e),e!==null?hl(e):null}function hl(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hl(e);if(t!==null)return t;e=e.sibling}return null}var ml=r.unstable_scheduleCallback,gl=r.unstable_cancelCallback,wd=r.unstable_shouldYield,Sd=r.unstable_requestPaint,Le=r.unstable_now,Fd=r.unstable_getCurrentPriorityLevel,Mi=r.unstable_ImmediatePriority,yl=r.unstable_UserBlockingPriority,Jr=r.unstable_NormalPriority,Cd=r.unstable_LowPriority,xl=r.unstable_IdlePriority,Gr=null,Ct=null;function kd(e){if(Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(Gr,e,void 0,(e.current.flags&128)===128)}catch{}}var mt=Math.clz32?Math.clz32:zd,Ed=Math.log,_d=Math.LN2;function zd(e){return e>>>=0,e===0?32:31-(Ed(e)/_d|0)|0}var es=64,ts=4194304;function ir(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 ns(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,l=e.suspendedLanes,u=e.pingedLanes,d=n&268435455;if(d!==0){var g=d&~l;g!==0?i=ir(g):(u&=d,u!==0&&(i=ir(u)))}else d=n&~l,d!==0?i=ir(d):u!==0&&(i=ir(u));if(i===0)return 0;if(t!==0&&t!==i&&(t&l)===0&&(l=i&-i,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if((i&4)!==0&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)n=31-mt(t),l=1<<n,i|=e[n],t&=~l;return i}function Dd(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 Nd(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,u=e.pendingLanes;0<u;){var d=31-mt(u),g=1<<d,w=l[d];w===-1?((g&n)===0||(g&i)!==0)&&(l[d]=Dd(g,t)):w<=t&&(e.expiredLanes|=g),u&=~g}}function Ti(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vl(){var e=es;return es<<=1,(es&4194240)===0&&(es=64),e}function Bi(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-mt(t),e[t]=n}function Ad(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 i=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-mt(n),u=1<<l;t[l]=0,i[l]=-1,e[l]=-1,n&=~u}}function Ui(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-mt(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}var Fe=0;function wl(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sl,bi,Fl,Cl,kl,Ii=!1,rs=[],Ut=null,bt=null,It=null,ar=new Map,lr=new Map,$t=[],Ld="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 El(e,t){switch(e){case"focusin":case"focusout":Ut=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":ar.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lr.delete(t.pointerId)}}function cr(e,t,n,i,l,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[l]},t!==null&&(t=Cr(t),t!==null&&bi(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Od(e,t,n,i,l){switch(t){case"focusin":return Ut=cr(Ut,e,t,n,i,l),!0;case"dragenter":return bt=cr(bt,e,t,n,i,l),!0;case"mouseover":return It=cr(It,e,t,n,i,l),!0;case"pointerover":var u=l.pointerId;return ar.set(u,cr(ar.get(u)||null,e,t,n,i,l)),!0;case"gotpointercapture":return u=l.pointerId,lr.set(u,cr(lr.get(u)||null,e,t,n,i,l)),!0}return!1}function _l(e){var t=ln(e.target);if(t!==null){var n=an(t);if(n!==null){if(t=n.tag,t===13){if(t=pl(n),t!==null){e.blockedOn=t,kl(e.priority,function(){Fl(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 ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xi(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ai=i,n.target.dispatchEvent(i),Ai=null}else return t=Cr(n),t!==null&&bi(t),e.blockedOn=n,!1;t.shift()}return!0}function zl(e,t,n){ss(e)&&n.delete(t)}function jd(){Ii=!1,Ut!==null&&ss(Ut)&&(Ut=null),bt!==null&&ss(bt)&&(bt=null),It!==null&&ss(It)&&(It=null),ar.forEach(zl),lr.forEach(zl)}function ur(e,t){e.blockedOn===t&&(e.blockedOn=null,Ii||(Ii=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,jd)))}function pr(e){function t(l){return ur(l,e)}if(0<rs.length){ur(rs[0],e);for(var n=1;n<rs.length;n++){var i=rs[n];i.blockedOn===e&&(i.blockedOn=null)}}for(Ut!==null&&ur(Ut,e),bt!==null&&ur(bt,e),It!==null&&ur(It,e),ar.forEach(t),lr.forEach(t),n=0;n<$t.length;n++)i=$t[n],i.blockedOn===e&&(i.blockedOn=null);for(;0<$t.length&&(n=$t[0],n.blockedOn===null);)_l(n),n.blockedOn===null&&$t.shift()}var _n=ee.ReactCurrentBatchConfig,is=!0;function Pd(e,t,n,i){var l=Fe,u=_n.transition;_n.transition=null;try{Fe=1,$i(e,t,n,i)}finally{Fe=l,_n.transition=u}}function Rd(e,t,n,i){var l=Fe,u=_n.transition;_n.transition=null;try{Fe=4,$i(e,t,n,i)}finally{Fe=l,_n.transition=u}}function $i(e,t,n,i){if(is){var l=Xi(e,t,n,i);if(l===null)oo(e,t,i,os,n),El(e,i);else if(Od(l,e,t,n,i))i.stopPropagation();else if(El(e,i),t&4&&-1<Ld.indexOf(e)){for(;l!==null;){var u=Cr(l);if(u!==null&&Sl(u),u=Xi(e,t,n,i),u===null&&oo(e,t,i,os,n),u===l)break;l=u}l!==null&&i.stopPropagation()}else oo(e,t,i,null,n)}}var os=null;function Xi(e,t,n,i){if(os=null,e=Li(i),e=ln(e),e!==null)if(t=an(e),t===null)e=null;else if(n=t.tag,n===13){if(e=pl(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 os=e,null}function Dl(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(Fd()){case Mi:return 1;case yl:return 4;case Jr:case Cd:return 16;case xl:return 536870912;default:return 16}default:return 16}}var Xt=null,Zi=null,as=null;function Nl(){if(as)return as;var e,t=Zi,n=t.length,i,l="value"in Xt?Xt.value:Xt.textContent,u=l.length;for(e=0;e<n&&t[e]===l[e];e++);var d=n-e;for(i=1;i<=d&&t[n-i]===l[u-i];i++);return as=l.slice(e,1<i?1-i:void 0)}function ls(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 cs(){return!0}function Al(){return!1}function st(e){function t(n,i,l,u,d){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?cs:Al,this.isPropagationStopped=Al,this}return U(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=cs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vi=st(zn),dr=U({},zn,{view:0,detail:0}),Md=st(dr),Hi,Wi,fr,us=U({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qi,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!==fr&&(fr&&e.type==="mousemove"?(Hi=e.screenX-fr.screenX,Wi=e.screenY-fr.screenY):Wi=Hi=0,fr=e),Hi)},movementY:function(e){return"movementY"in e?e.movementY:Wi}}),Ll=st(us),Td=U({},us,{dataTransfer:0}),Bd=st(Td),Ud=U({},dr,{relatedTarget:0}),Ki=st(Ud),bd=U({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),Id=st(bd),$d=U({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xd=st($d),Zd=U({},zn,{data:0}),Ol=st(Zd),Vd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hd={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"},Wd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wd[e])?!!t[e]:!1}function qi(){return Kd}var qd=U({},dr,{key:function(e){if(e.key){var t=Vd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ls(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Hd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qi,charCode:function(e){return e.type==="keypress"?ls(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ls(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qd=st(qd),Yd=U({},us,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jl=st(Yd),Jd=U({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qi}),Gd=st(Jd),ef=U({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),tf=st(ef),nf=U({},us,{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}),rf=st(nf),sf=[9,13,27,32],Qi=h&&"CompositionEvent"in window,hr=null;h&&"documentMode"in document&&(hr=document.documentMode);var of=h&&"TextEvent"in window&&!hr,Pl=h&&(!Qi||hr&&8<hr&&11>=hr),Rl=" ",Ml=!1;function Tl(e,t){switch(e){case"keyup":return sf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bl(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function af(e,t){switch(e){case"compositionend":return Bl(t);case"keypress":return t.which!==32?null:(Ml=!0,Rl);case"textInput":return e=t.data,e===Rl&&Ml?null:e;default:return null}}function lf(e,t){if(Dn)return e==="compositionend"||!Qi&&Tl(e,t)?(e=Nl(),as=Zi=Xt=null,Dn=!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 Pl&&t.locale!=="ko"?null:t.data;default:return null}}var cf={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 Ul(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cf[e.type]:t==="textarea"}function bl(e,t,n,i){ol(i),t=ms(t,"onChange"),0<t.length&&(n=new Vi("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var mr=null,gr=null;function uf(e){sc(e,0)}function ps(e){var t=jn(e);if(Ka(t))return e}function pf(e,t){if(e==="change")return t}var Il=!1;if(h){var Yi;if(h){var Ji="oninput"in document;if(!Ji){var $l=document.createElement("div");$l.setAttribute("oninput","return;"),Ji=typeof $l.oninput=="function"}Yi=Ji}else Yi=!1;Il=Yi&&(!document.documentMode||9<document.documentMode)}function Xl(){mr&&(mr.detachEvent("onpropertychange",Zl),gr=mr=null)}function Zl(e){if(e.propertyName==="value"&&ps(gr)){var t=[];bl(t,gr,e,Li(e)),ul(uf,t)}}function df(e,t,n){e==="focusin"?(Xl(),mr=t,gr=n,mr.attachEvent("onpropertychange",Zl)):e==="focusout"&&Xl()}function ff(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ps(gr)}function hf(e,t){if(e==="click")return ps(t)}function mf(e,t){if(e==="input"||e==="change")return ps(t)}function gf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gt=typeof Object.is=="function"?Object.is:gf;function yr(e,t){if(gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!m.call(t,l)||!gt(e[l],t[l]))return!1}return!0}function Vl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hl(e,t){var n=Vl(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vl(n)}}function Wl(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wl(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kl(){for(var e=window,t=Kr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kr(e.document)}return t}function Gi(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 yf(e){var t=Kl(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wl(n.ownerDocument.documentElement,n)){if(i!==null&&Gi(n)){if(t=i.start,e=i.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,u=Math.min(i.start,l);i=i.end===void 0?u:Math.min(i.end,l),!e.extend&&u>i&&(l=i,i=u,u=l),l=Hl(n,u);var d=Hl(n,i);l&&d&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>i?(e.addRange(t),e.extend(d.node,d.offset)):(t.setEnd(d.node,d.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 xf=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,eo=null,xr=null,to=!1;function ql(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;to||Nn==null||Nn!==Kr(i)||(i=Nn,"selectionStart"in i&&Gi(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),xr&&yr(xr,i)||(xr=i,i=ms(eo,"onSelect"),0<i.length&&(t=new Vi("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Nn)))}function ds(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var An={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionend:ds("Transition","TransitionEnd")},no={},Ql={};h&&(Ql=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function fs(e){if(no[e])return no[e];if(!An[e])return e;var t=An[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ql)return no[e]=t[n];return e}var Yl=fs("animationend"),Jl=fs("animationiteration"),Gl=fs("animationstart"),ec=fs("transitionend"),tc=new Map,nc="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 Zt(e,t){tc.set(e,t),p(t,[e])}for(var ro=0;ro<nc.length;ro++){var so=nc[ro],vf=so.toLowerCase(),wf=so[0].toUpperCase()+so.slice(1);Zt(vf,"on"+wf)}Zt(Yl,"onAnimationEnd"),Zt(Jl,"onAnimationIteration"),Zt(Gl,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(ec,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vr="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(" "),Sf=new Set("cancel close invalid load scroll toggle".split(" ").concat(vr));function rc(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,xd(i,t,void 0,e),e.currentTarget=null}function sc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],l=i.event;i=i.listeners;e:{var u=void 0;if(t)for(var d=i.length-1;0<=d;d--){var g=i[d],w=g.instance,z=g.currentTarget;if(g=g.listener,w!==u&&l.isPropagationStopped())break e;rc(l,g,z),u=w}else for(d=0;d<i.length;d++){if(g=i[d],w=g.instance,z=g.currentTarget,g=g.listener,w!==u&&l.isPropagationStopped())break e;rc(l,g,z),u=w}}}if(Yr)throw e=Ri,Yr=!1,Ri=null,e}function ke(e,t){var n=t[fo];n===void 0&&(n=t[fo]=new Set);var i=e+"__bubble";n.has(i)||(ic(t,e,2,!1),n.add(i))}function io(e,t,n){var i=0;t&&(i|=4),ic(n,e,i,t)}var hs="_reactListening"+Math.random().toString(36).slice(2);function wr(e){if(!e[hs]){e[hs]=!0,o.forEach(function(n){n!=="selectionchange"&&(Sf.has(n)||io(n,!1,e),io(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hs]||(t[hs]=!0,io("selectionchange",!1,t))}}function ic(e,t,n,i){switch(Dl(t)){case 1:var l=Pd;break;case 4:l=Rd;break;default:l=$i}n=l.bind(null,t,n,e),l=void 0,!Pi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?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 oo(e,t,n,i,l){var u=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var g=i.stateNode.containerInfo;if(g===l||g.nodeType===8&&g.parentNode===l)break;if(d===4)for(d=i.return;d!==null;){var w=d.tag;if((w===3||w===4)&&(w=d.stateNode.containerInfo,w===l||w.nodeType===8&&w.parentNode===l))return;d=d.return}for(;g!==null;){if(d=ln(g),d===null)return;if(w=d.tag,w===5||w===6){i=u=d;continue e}g=g.parentNode}}i=i.return}ul(function(){var z=u,j=Li(n),P=[];e:{var L=tc.get(e);if(L!==void 0){var b=Vi,$=e;switch(e){case"keypress":if(ls(n)===0)break e;case"keydown":case"keyup":b=Qd;break;case"focusin":$="focus",b=Ki;break;case"focusout":$="blur",b=Ki;break;case"beforeblur":case"afterblur":b=Ki;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":b=Ll;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=Bd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=Gd;break;case Yl:case Jl:case Gl:b=Id;break;case ec:b=tf;break;case"scroll":b=Md;break;case"wheel":b=rf;break;case"copy":case"cut":case"paste":b=Xd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=jl}var Z=(t&4)!==0,Oe=!Z&&e==="scroll",k=Z?L!==null?L+"Capture":null:L;Z=[];for(var S=z,_;S!==null;){_=S;var R=_.stateNode;if(_.tag===5&&R!==null&&(_=R,k!==null&&(R=nr(S,k),R!=null&&Z.push(Sr(S,R,_)))),Oe)break;S=S.return}0<Z.length&&(L=new b(L,$,null,n,j),P.push({event:L,listeners:Z}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",L&&n!==Ai&&($=n.relatedTarget||n.fromElement)&&(ln($)||$[Lt]))break e;if((b||L)&&(L=j.window===j?j:(L=j.ownerDocument)?L.defaultView||L.parentWindow:window,b?($=n.relatedTarget||n.toElement,b=z,$=$?ln($):null,$!==null&&(Oe=an($),$!==Oe||$.tag!==5&&$.tag!==6)&&($=null)):(b=null,$=z),b!==$)){if(Z=Ll,R="onMouseLeave",k="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(Z=jl,R="onPointerLeave",k="onPointerEnter",S="pointer"),Oe=b==null?L:jn(b),_=$==null?L:jn($),L=new Z(R,S+"leave",b,n,j),L.target=Oe,L.relatedTarget=_,R=null,ln(j)===z&&(Z=new Z(k,S+"enter",$,n,j),Z.target=_,Z.relatedTarget=Oe,R=Z),Oe=R,b&&$)t:{for(Z=b,k=$,S=0,_=Z;_;_=Ln(_))S++;for(_=0,R=k;R;R=Ln(R))_++;for(;0<S-_;)Z=Ln(Z),S--;for(;0<_-S;)k=Ln(k),_--;for(;S--;){if(Z===k||k!==null&&Z===k.alternate)break t;Z=Ln(Z),k=Ln(k)}Z=null}else Z=null;b!==null&&oc(P,L,b,Z,!1),$!==null&&Oe!==null&&oc(P,Oe,$,Z,!0)}}e:{if(L=z?jn(z):window,b=L.nodeName&&L.nodeName.toLowerCase(),b==="select"||b==="input"&&L.type==="file")var V=pf;else if(Ul(L))if(Il)V=mf;else{V=ff;var Q=df}else(b=L.nodeName)&&b.toLowerCase()==="input"&&(L.type==="checkbox"||L.type==="radio")&&(V=hf);if(V&&(V=V(e,z))){bl(P,V,n,j);break e}Q&&Q(e,L,z),e==="focusout"&&(Q=L._wrapperState)&&Q.controlled&&L.type==="number"&&Ei(L,"number",L.value)}switch(Q=z?jn(z):window,e){case"focusin":(Ul(Q)||Q.contentEditable==="true")&&(Nn=Q,eo=z,xr=null);break;case"focusout":xr=eo=Nn=null;break;case"mousedown":to=!0;break;case"contextmenu":case"mouseup":case"dragend":to=!1,ql(P,n,j);break;case"selectionchange":if(xf)break;case"keydown":case"keyup":ql(P,n,j)}var Y;if(Qi)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else Dn?Tl(e,n)&&(ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ne="onCompositionStart");ne&&(Pl&&n.locale!=="ko"&&(Dn||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&Dn&&(Y=Nl()):(Xt=j,Zi="value"in Xt?Xt.value:Xt.textContent,Dn=!0)),Q=ms(z,ne),0<Q.length&&(ne=new Ol(ne,e,null,n,j),P.push({event:ne,listeners:Q}),Y?ne.data=Y:(Y=Bl(n),Y!==null&&(ne.data=Y)))),(Y=of?af(e,n):lf(e,n))&&(z=ms(z,"onBeforeInput"),0<z.length&&(j=new Ol("onBeforeInput","beforeinput",null,n,j),P.push({event:j,listeners:z}),j.data=Y))}sc(P,t)})}function Sr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ms(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,u=l.stateNode;l.tag===5&&u!==null&&(l=u,u=nr(e,n),u!=null&&i.unshift(Sr(e,u,l)),u=nr(e,t),u!=null&&i.push(Sr(e,u,l))),e=e.return}return i}function Ln(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function oc(e,t,n,i,l){for(var u=t._reactName,d=[];n!==null&&n!==i;){var g=n,w=g.alternate,z=g.stateNode;if(w!==null&&w===i)break;g.tag===5&&z!==null&&(g=z,l?(w=nr(n,u),w!=null&&d.unshift(Sr(n,w,g))):l||(w=nr(n,u),w!=null&&d.push(Sr(n,w,g)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Ff=/\r\n?/g,Cf=/\u0000|\uFFFD/g;function ac(e){return(typeof e=="string"?e:""+e).replace(Ff,`
|
|
38
|
+
`).replace(Cf,"")}function gs(e,t,n){if(t=ac(t),ac(e)!==t&&n)throw Error(s(425))}function ys(){}var ao=null,lo=null;function co(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 uo=typeof setTimeout=="function"?setTimeout:void 0,kf=typeof clearTimeout=="function"?clearTimeout:void 0,lc=typeof Promise=="function"?Promise:void 0,Ef=typeof queueMicrotask=="function"?queueMicrotask:typeof lc<"u"?function(e){return lc.resolve(null).then(e).catch(_f)}:uo;function _f(e){setTimeout(function(){throw e})}function po(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(i===0){e.removeChild(l),pr(t);return}i--}else n!=="$"&&n!=="$?"&&n!=="$!"||i++;n=l}while(n);pr(t)}function Vt(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 cc(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 On=Math.random().toString(36).slice(2),kt="__reactFiber$"+On,Fr="__reactProps$"+On,Lt="__reactContainer$"+On,fo="__reactEvents$"+On,zf="__reactListeners$"+On,Df="__reactHandles$"+On;function ln(e){var t=e[kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lt]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cc(e);e!==null;){if(n=e[kt])return n;e=cc(e)}return t}e=n,n=e.parentNode}return null}function Cr(e){return e=e[kt]||e[Lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(s(33))}function xs(e){return e[Fr]||null}var ho=[],Pn=-1;function Ht(e){return{current:e}}function Ee(e){0>Pn||(e.current=ho[Pn],ho[Pn]=null,Pn--)}function Ce(e,t){Pn++,ho[Pn]=e.current,e.current=t}var Wt={},Xe=Ht(Wt),Ye=Ht(!1),cn=Wt;function Rn(e,t){var n=e.type.contextTypes;if(!n)return Wt;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Je(e){return e=e.childContextTypes,e!=null}function vs(){Ee(Ye),Ee(Xe)}function uc(e,t,n){if(Xe.current!==Wt)throw Error(s(168));Ce(Xe,t),Ce(Ye,n)}function pc(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var l in i)if(!(l in t))throw Error(s(108,Se(e)||"Unknown",l));return U({},n,i)}function ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,cn=Xe.current,Ce(Xe,e),Ce(Ye,Ye.current),!0}function dc(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=pc(e,t,cn),i.__reactInternalMemoizedMergedChildContext=e,Ee(Ye),Ee(Xe),Ce(Xe,e)):Ee(Ye),Ce(Ye,n)}var Ot=null,Ss=!1,mo=!1;function fc(e){Ot===null?Ot=[e]:Ot.push(e)}function Nf(e){Ss=!0,fc(e)}function Kt(){if(!mo&&Ot!==null){mo=!0;var e=0,t=Fe;try{var n=Ot;for(Fe=1;e<n.length;e++){var i=n[e];do i=i(!0);while(i!==null)}Ot=null,Ss=!1}catch(l){throw Ot!==null&&(Ot=Ot.slice(e+1)),ml(Mi,Kt),l}finally{Fe=t,mo=!1}}return null}var Mn=[],Tn=0,Fs=null,Cs=0,lt=[],ct=0,un=null,jt=1,Pt="";function pn(e,t){Mn[Tn++]=Cs,Mn[Tn++]=Fs,Fs=e,Cs=t}function hc(e,t,n){lt[ct++]=jt,lt[ct++]=Pt,lt[ct++]=un,un=e;var i=jt;e=Pt;var l=32-mt(i)-1;i&=~(1<<l),n+=1;var u=32-mt(t)+l;if(30<u){var d=l-l%5;u=(i&(1<<d)-1).toString(32),i>>=d,l-=d,jt=1<<32-mt(t)+l|n<<l|i,Pt=u+e}else jt=1<<u|n<<l|i,Pt=e}function go(e){e.return!==null&&(pn(e,1),hc(e,1,0))}function yo(e){for(;e===Fs;)Fs=Mn[--Tn],Mn[Tn]=null,Cs=Mn[--Tn],Mn[Tn]=null;for(;e===un;)un=lt[--ct],lt[ct]=null,Pt=lt[--ct],lt[ct]=null,jt=lt[--ct],lt[ct]=null}var it=null,ot=null,ze=!1,yt=null;function mc(e,t){var n=ft(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 gc(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,it=e,ot=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,it=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=un!==null?{id:jt,overflow:Pt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,it=e,ot=null,!0):!1;default:return!1}}function xo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vo(e){if(ze){var t=ot;if(t){var n=t;if(!gc(e,t)){if(xo(e))throw Error(s(418));t=Vt(n.nextSibling);var i=it;t&&gc(e,t)?mc(i,n):(e.flags=e.flags&-4097|2,ze=!1,it=e)}}else{if(xo(e))throw Error(s(418));e.flags=e.flags&-4097|2,ze=!1,it=e}}}function yc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;it=e}function ks(e){if(e!==it)return!1;if(!ze)return yc(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!co(e.type,e.memoizedProps)),t&&(t=ot)){if(xo(e))throw xc(),Error(s(418));for(;t;)mc(e,t),t=Vt(t.nextSibling)}if(yc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=it?Vt(e.stateNode.nextSibling):null;return!0}function xc(){for(var e=ot;e;)e=Vt(e.nextSibling)}function Bn(){ot=it=null,ze=!1}function wo(e){yt===null?yt=[e]:yt.push(e)}var Af=ee.ReactCurrentBatchConfig;function kr(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(s(309));var i=n.stateNode}if(!i)throw Error(s(147,e));var l=i,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(d){var g=l.refs;d===null?delete g[u]:g[u]=d},t._stringRef=u,t)}if(typeof e!="string")throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Es(e,t){throw e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vc(e){var t=e._init;return t(e._payload)}function wc(e){function t(k,S){if(e){var _=k.deletions;_===null?(k.deletions=[S],k.flags|=16):_.push(S)}}function n(k,S){if(!e)return null;for(;S!==null;)t(k,S),S=S.sibling;return null}function i(k,S){for(k=new Map;S!==null;)S.key!==null?k.set(S.key,S):k.set(S.index,S),S=S.sibling;return k}function l(k,S){return k=nn(k,S),k.index=0,k.sibling=null,k}function u(k,S,_){return k.index=_,e?(_=k.alternate,_!==null?(_=_.index,_<S?(k.flags|=2,S):_):(k.flags|=2,S)):(k.flags|=1048576,S)}function d(k){return e&&k.alternate===null&&(k.flags|=2),k}function g(k,S,_,R){return S===null||S.tag!==6?(S=pa(_,k.mode,R),S.return=k,S):(S=l(S,_),S.return=k,S)}function w(k,S,_,R){var V=_.type;return V===se?j(k,S,_.props.children,R,_.key):S!==null&&(S.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ye&&vc(V)===S.type)?(R=l(S,_.props),R.ref=kr(k,S,_),R.return=k,R):(R=qs(_.type,_.key,_.props,null,k.mode,R),R.ref=kr(k,S,_),R.return=k,R)}function z(k,S,_,R){return S===null||S.tag!==4||S.stateNode.containerInfo!==_.containerInfo||S.stateNode.implementation!==_.implementation?(S=da(_,k.mode,R),S.return=k,S):(S=l(S,_.children||[]),S.return=k,S)}function j(k,S,_,R,V){return S===null||S.tag!==7?(S=vn(_,k.mode,R,V),S.return=k,S):(S=l(S,_),S.return=k,S)}function P(k,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return S=pa(""+S,k.mode,_),S.return=k,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ce:return _=qs(S.type,S.key,S.props,null,k.mode,_),_.ref=kr(k,null,S),_.return=k,_;case ie:return S=da(S,k.mode,_),S.return=k,S;case ye:var R=S._init;return P(k,R(S._payload),_)}if(Gn(S)||H(S))return S=vn(S,k.mode,_,null),S.return=k,S;Es(k,S)}return null}function L(k,S,_,R){var V=S!==null?S.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return V!==null?null:g(k,S,""+_,R);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ce:return _.key===V?w(k,S,_,R):null;case ie:return _.key===V?z(k,S,_,R):null;case ye:return V=_._init,L(k,S,V(_._payload),R)}if(Gn(_)||H(_))return V!==null?null:j(k,S,_,R,null);Es(k,_)}return null}function b(k,S,_,R,V){if(typeof R=="string"&&R!==""||typeof R=="number")return k=k.get(_)||null,g(S,k,""+R,V);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case ce:return k=k.get(R.key===null?_:R.key)||null,w(S,k,R,V);case ie:return k=k.get(R.key===null?_:R.key)||null,z(S,k,R,V);case ye:var Q=R._init;return b(k,S,_,Q(R._payload),V)}if(Gn(R)||H(R))return k=k.get(_)||null,j(S,k,R,V,null);Es(S,R)}return null}function $(k,S,_,R){for(var V=null,Q=null,Y=S,ne=S=0,Ue=null;Y!==null&&ne<_.length;ne++){Y.index>ne?(Ue=Y,Y=null):Ue=Y.sibling;var xe=L(k,Y,_[ne],R);if(xe===null){Y===null&&(Y=Ue);break}e&&Y&&xe.alternate===null&&t(k,Y),S=u(xe,S,ne),Q===null?V=xe:Q.sibling=xe,Q=xe,Y=Ue}if(ne===_.length)return n(k,Y),ze&&pn(k,ne),V;if(Y===null){for(;ne<_.length;ne++)Y=P(k,_[ne],R),Y!==null&&(S=u(Y,S,ne),Q===null?V=Y:Q.sibling=Y,Q=Y);return ze&&pn(k,ne),V}for(Y=i(k,Y);ne<_.length;ne++)Ue=b(Y,k,ne,_[ne],R),Ue!==null&&(e&&Ue.alternate!==null&&Y.delete(Ue.key===null?ne:Ue.key),S=u(Ue,S,ne),Q===null?V=Ue:Q.sibling=Ue,Q=Ue);return e&&Y.forEach(function(rn){return t(k,rn)}),ze&&pn(k,ne),V}function Z(k,S,_,R){var V=H(_);if(typeof V!="function")throw Error(s(150));if(_=V.call(_),_==null)throw Error(s(151));for(var Q=V=null,Y=S,ne=S=0,Ue=null,xe=_.next();Y!==null&&!xe.done;ne++,xe=_.next()){Y.index>ne?(Ue=Y,Y=null):Ue=Y.sibling;var rn=L(k,Y,xe.value,R);if(rn===null){Y===null&&(Y=Ue);break}e&&Y&&rn.alternate===null&&t(k,Y),S=u(rn,S,ne),Q===null?V=rn:Q.sibling=rn,Q=rn,Y=Ue}if(xe.done)return n(k,Y),ze&&pn(k,ne),V;if(Y===null){for(;!xe.done;ne++,xe=_.next())xe=P(k,xe.value,R),xe!==null&&(S=u(xe,S,ne),Q===null?V=xe:Q.sibling=xe,Q=xe);return ze&&pn(k,ne),V}for(Y=i(k,Y);!xe.done;ne++,xe=_.next())xe=b(Y,k,ne,xe.value,R),xe!==null&&(e&&xe.alternate!==null&&Y.delete(xe.key===null?ne:xe.key),S=u(xe,S,ne),Q===null?V=xe:Q.sibling=xe,Q=xe);return e&&Y.forEach(function(c2){return t(k,c2)}),ze&&pn(k,ne),V}function Oe(k,S,_,R){if(typeof _=="object"&&_!==null&&_.type===se&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case ce:e:{for(var V=_.key,Q=S;Q!==null;){if(Q.key===V){if(V=_.type,V===se){if(Q.tag===7){n(k,Q.sibling),S=l(Q,_.props.children),S.return=k,k=S;break e}}else if(Q.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ye&&vc(V)===Q.type){n(k,Q.sibling),S=l(Q,_.props),S.ref=kr(k,Q,_),S.return=k,k=S;break e}n(k,Q);break}else t(k,Q);Q=Q.sibling}_.type===se?(S=vn(_.props.children,k.mode,R,_.key),S.return=k,k=S):(R=qs(_.type,_.key,_.props,null,k.mode,R),R.ref=kr(k,S,_),R.return=k,k=R)}return d(k);case ie:e:{for(Q=_.key;S!==null;){if(S.key===Q)if(S.tag===4&&S.stateNode.containerInfo===_.containerInfo&&S.stateNode.implementation===_.implementation){n(k,S.sibling),S=l(S,_.children||[]),S.return=k,k=S;break e}else{n(k,S);break}else t(k,S);S=S.sibling}S=da(_,k.mode,R),S.return=k,k=S}return d(k);case ye:return Q=_._init,Oe(k,S,Q(_._payload),R)}if(Gn(_))return $(k,S,_,R);if(H(_))return Z(k,S,_,R);Es(k,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,S!==null&&S.tag===6?(n(k,S.sibling),S=l(S,_),S.return=k,k=S):(n(k,S),S=pa(_,k.mode,R),S.return=k,k=S),d(k)):n(k,S)}return Oe}var Un=wc(!0),Sc=wc(!1),_s=Ht(null),zs=null,bn=null,So=null;function Fo(){So=bn=zs=null}function Co(e){var t=_s.current;Ee(_s),e._currentValue=t}function ko(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function In(e,t){zs=e,So=bn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ge=!0),e.firstContext=null)}function ut(e){var t=e._currentValue;if(So!==e)if(e={context:e,memoizedValue:t,next:null},bn===null){if(zs===null)throw Error(s(308));bn=e,zs.dependencies={lanes:0,firstContext:e}}else bn=bn.next=e;return t}var dn=null;function Eo(e){dn===null?dn=[e]:dn.push(e)}function Fc(e,t,n,i){var l=t.interleaved;return l===null?(n.next=n,Eo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Rt(e,i)}function Rt(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 qt=!1;function _o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Cc(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 Mt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qt(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(me&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,Rt(e,n)}return l=i.interleaved,l===null?(t.next=t,Eo(i)):(t.next=l.next,l.next=t),i.interleaved=t,Rt(e,n)}function Ds(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ui(e,n)}}function kc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ns(e,t,n,i){var l=e.updateQueue;qt=!1;var u=l.firstBaseUpdate,d=l.lastBaseUpdate,g=l.shared.pending;if(g!==null){l.shared.pending=null;var w=g,z=w.next;w.next=null,d===null?u=z:d.next=z,d=w;var j=e.alternate;j!==null&&(j=j.updateQueue,g=j.lastBaseUpdate,g!==d&&(g===null?j.firstBaseUpdate=z:g.next=z,j.lastBaseUpdate=w))}if(u!==null){var P=l.baseState;d=0,j=z=w=null,g=u;do{var L=g.lane,b=g.eventTime;if((i&L)===L){j!==null&&(j=j.next={eventTime:b,lane:0,tag:g.tag,payload:g.payload,callback:g.callback,next:null});e:{var $=e,Z=g;switch(L=t,b=n,Z.tag){case 1:if($=Z.payload,typeof $=="function"){P=$.call(b,P,L);break e}P=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=Z.payload,L=typeof $=="function"?$.call(b,P,L):$,L==null)break e;P=U({},P,L);break e;case 2:qt=!0}}g.callback!==null&&g.lane!==0&&(e.flags|=64,L=l.effects,L===null?l.effects=[g]:L.push(g))}else b={eventTime:b,lane:L,tag:g.tag,payload:g.payload,callback:g.callback,next:null},j===null?(z=j=b,w=P):j=j.next=b,d|=L;if(g=g.next,g===null){if(g=l.shared.pending,g===null)break;L=g,g=L.next,L.next=null,l.lastBaseUpdate=L,l.shared.pending=null}}while(!0);if(j===null&&(w=P),l.baseState=w,l.firstBaseUpdate=z,l.lastBaseUpdate=j,t=l.shared.interleaved,t!==null){l=t;do d|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);mn|=d,e.lanes=d,e.memoizedState=P}}function Ec(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],l=i.callback;if(l!==null){if(i.callback=null,i=n,typeof l!="function")throw Error(s(191,l));l.call(i)}}}var Er={},Et=Ht(Er),_r=Ht(Er),zr=Ht(Er);function fn(e){if(e===Er)throw Error(s(174));return e}function zo(e,t){switch(Ce(zr,t),Ce(_r,e),Ce(Et,Er),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zi(t,e)}Ee(Et),Ce(Et,t)}function $n(){Ee(Et),Ee(_r),Ee(zr)}function _c(e){fn(zr.current);var t=fn(Et.current),n=zi(t,e.type);t!==n&&(Ce(_r,e),Ce(Et,n))}function Do(e){_r.current===e&&(Ee(Et),Ee(_r))}var De=Ht(0);function As(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)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var No=[];function Ao(){for(var e=0;e<No.length;e++)No[e]._workInProgressVersionPrimary=null;No.length=0}var Ls=ee.ReactCurrentDispatcher,Lo=ee.ReactCurrentBatchConfig,hn=0,Ne=null,Re=null,Te=null,Os=!1,Dr=!1,Nr=0,Lf=0;function Ze(){throw Error(s(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gt(e[n],t[n]))return!1;return!0}function jo(e,t,n,i,l,u){if(hn=u,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ls.current=e===null||e.memoizedState===null?Rf:Mf,e=n(i,l),Dr){u=0;do{if(Dr=!1,Nr=0,25<=u)throw Error(s(301));u+=1,Te=Re=null,t.updateQueue=null,Ls.current=Tf,e=n(i,l)}while(Dr)}if(Ls.current=Rs,t=Re!==null&&Re.next!==null,hn=0,Te=Re=Ne=null,Os=!1,t)throw Error(s(300));return e}function Po(){var e=Nr!==0;return Nr=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?Ne.memoizedState=Te=e:Te=Te.next=e,Te}function pt(){if(Re===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Te===null?Ne.memoizedState:Te.next;if(t!==null)Te=t,Re=e;else{if(e===null)throw Error(s(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Te===null?Ne.memoizedState=Te=e:Te=Te.next=e}return Te}function Ar(e,t){return typeof t=="function"?t(e):t}function Ro(e){var t=pt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=Re,l=i.baseQueue,u=n.pending;if(u!==null){if(l!==null){var d=l.next;l.next=u.next,u.next=d}i.baseQueue=l=u,n.pending=null}if(l!==null){u=l.next,i=i.baseState;var g=d=null,w=null,z=u;do{var j=z.lane;if((hn&j)===j)w!==null&&(w=w.next={lane:0,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),i=z.hasEagerState?z.eagerState:e(i,z.action);else{var P={lane:j,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null};w===null?(g=w=P,d=i):w=w.next=P,Ne.lanes|=j,mn|=j}z=z.next}while(z!==null&&z!==u);w===null?d=i:w.next=g,gt(i,t.memoizedState)||(Ge=!0),t.memoizedState=i,t.baseState=d,t.baseQueue=w,n.lastRenderedState=i}if(e=n.interleaved,e!==null){l=e;do u=l.lane,Ne.lanes|=u,mn|=u,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Mo(e){var t=pt(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,u=t.memoizedState;if(l!==null){n.pending=null;var d=l=l.next;do u=e(u,d.action),d=d.next;while(d!==l);gt(u,t.memoizedState)||(Ge=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,i]}function zc(){}function Dc(e,t){var n=Ne,i=pt(),l=t(),u=!gt(i.memoizedState,l);if(u&&(i.memoizedState=l,Ge=!0),i=i.queue,To(Lc.bind(null,n,i,e),[e]),i.getSnapshot!==t||u||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,Lr(9,Ac.bind(null,n,i,l,t),void 0,null),Be===null)throw Error(s(349));(hn&30)!==0||Nc(n,t,l)}return l}function Nc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ac(e,t,n,i){t.value=n,t.getSnapshot=i,Oc(t)&&jc(e)}function Lc(e,t,n){return n(function(){Oc(t)&&jc(e)})}function Oc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gt(e,n)}catch{return!0}}function jc(e){var t=Rt(e,1);t!==null&&St(t,e,1,-1)}function Pc(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:e},t.queue=e,e=e.dispatch=Pf.bind(null,Ne,e),[t.memoizedState,e]}function Lr(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function Rc(){return pt().memoizedState}function js(e,t,n,i){var l=_t();Ne.flags|=e,l.memoizedState=Lr(1|t,n,void 0,i===void 0?null:i)}function Ps(e,t,n,i){var l=pt();i=i===void 0?null:i;var u=void 0;if(Re!==null){var d=Re.memoizedState;if(u=d.destroy,i!==null&&Oo(i,d.deps)){l.memoizedState=Lr(t,n,u,i);return}}Ne.flags|=e,l.memoizedState=Lr(1|t,n,u,i)}function Mc(e,t){return js(8390656,8,e,t)}function To(e,t){return Ps(2048,8,e,t)}function Tc(e,t){return Ps(4,2,e,t)}function Bc(e,t){return Ps(4,4,e,t)}function Uc(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,Ps(4,4,Uc.bind(null,t,e),n)}function Bo(){}function Ic(e,t){var n=pt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&Oo(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function $c(e,t){var n=pt();t=t===void 0?null:t;var i=n.memoizedState;return i!==null&&t!==null&&Oo(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Xc(e,t,n){return(hn&21)===0?(e.baseState&&(e.baseState=!1,Ge=!0),e.memoizedState=n):(gt(n,t)||(n=vl(),Ne.lanes|=n,mn|=n,e.baseState=!0),t)}function Of(e,t){var n=Fe;Fe=n!==0&&4>n?n:4,e(!0);var i=Lo.transition;Lo.transition={};try{e(!1),t()}finally{Fe=n,Lo.transition=i}}function Zc(){return pt().memoizedState}function jf(e,t,n){var i=en(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Vc(e))Hc(t,n);else if(n=Fc(e,t,n,i),n!==null){var l=Ke();St(n,e,i,l),Wc(n,t,i)}}function Pf(e,t,n){var i=en(e),l={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Vc(e))Hc(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,n);if(l.hasEagerState=!0,l.eagerState=g,gt(g,d)){var w=t.interleaved;w===null?(l.next=l,Eo(t)):(l.next=w.next,w.next=l),t.interleaved=l;return}}catch{}finally{}n=Fc(e,t,l,i),n!==null&&(l=Ke(),St(n,e,i,l),Wc(n,t,i))}}function Vc(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function Hc(e,t){Dr=Os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wc(e,t,n){if((n&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Ui(e,n)}}var Rs={readContext:ut,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Rf={readContext:ut,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Mc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,js(4194308,4,Uc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return js(4194308,4,e,t)},useInsertionEffect:function(e,t){return js(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=_t();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=jf.bind(null,Ne,e),[i.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:Pc,useDebugValue:Bo,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=Pc(!1),t=e[0];return e=Of.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ne,l=_t();if(ze){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Be===null)throw Error(s(349));(hn&30)!==0||Nc(i,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,Mc(Lc.bind(null,i,u,e),[e]),i.flags|=2048,Lr(9,Ac.bind(null,i,u,n,t),void 0,null),n},useId:function(){var e=_t(),t=Be.identifierPrefix;if(ze){var n=Pt,i=jt;n=(i&~(1<<32-mt(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mf={readContext:ut,useCallback:Ic,useContext:ut,useEffect:To,useImperativeHandle:bc,useInsertionEffect:Tc,useLayoutEffect:Bc,useMemo:$c,useReducer:Ro,useRef:Rc,useState:function(){return Ro(Ar)},useDebugValue:Bo,useDeferredValue:function(e){var t=pt();return Xc(t,Re.memoizedState,e)},useTransition:function(){var e=Ro(Ar)[0],t=pt().memoizedState;return[e,t]},useMutableSource:zc,useSyncExternalStore:Dc,useId:Zc,unstable_isNewReconciler:!1},Tf={readContext:ut,useCallback:Ic,useContext:ut,useEffect:To,useImperativeHandle:bc,useInsertionEffect:Tc,useLayoutEffect:Bc,useMemo:$c,useReducer:Mo,useRef:Rc,useState:function(){return Mo(Ar)},useDebugValue:Bo,useDeferredValue:function(e){var t=pt();return Re===null?t.memoizedState=e:Xc(t,Re.memoizedState,e)},useTransition:function(){var e=Mo(Ar)[0],t=pt().memoizedState;return[e,t]},useMutableSource:zc,useSyncExternalStore:Dc,useId:Zc,unstable_isNewReconciler:!1};function xt(e,t){if(e&&e.defaultProps){t=U({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Uo(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:U({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ms={isMounted:function(e){return(e=e._reactInternals)?an(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Ke(),l=en(e),u=Mt(i,l);u.payload=t,n!=null&&(u.callback=n),t=Qt(e,u,l),t!==null&&(St(t,e,l,i),Ds(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Ke(),l=en(e),u=Mt(i,l);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Qt(e,u,l),t!==null&&(St(t,e,l,i),Ds(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ke(),i=en(e),l=Mt(n,i);l.tag=2,t!=null&&(l.callback=t),t=Qt(e,l,i),t!==null&&(St(t,e,i,n),Ds(t,e,i))}};function Kc(e,t,n,i,l,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,u,d):t.prototype&&t.prototype.isPureReactComponent?!yr(n,i)||!yr(l,u):!0}function qc(e,t,n){var i=!1,l=Wt,u=t.contextType;return typeof u=="object"&&u!==null?u=ut(u):(l=Je(t)?cn:Xe.current,i=t.contextTypes,u=(i=i!=null)?Rn(e,l):Wt),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ms,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=u),t}function Qc(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Ms.enqueueReplaceState(t,t.state,null)}function bo(e,t,n,i){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},_o(e);var u=t.contextType;typeof u=="object"&&u!==null?l.context=ut(u):(u=Je(t)?cn:Xe.current,l.context=Rn(e,u)),l.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Uo(e,t,u,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&&Ms.enqueueReplaceState(l,l.state,null),Ns(e,n,l,i),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Xn(e,t){try{var n="",i=t;do n+=G(i),i=i.return;while(i);var l=n}catch(u){l=`
|
|
39
|
+
Error generating stack: `+u.message+`
|
|
40
|
+
`+u.stack}return{value:e,source:t,stack:l,digest:null}}function Io(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $o(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bf=typeof WeakMap=="function"?WeakMap:Map;function Yc(e,t,n){n=Mt(-1,n),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Xs||(Xs=!0,ra=i),$o(e,t)},n}function Jc(e,t,n){n=Mt(-1,n),n.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var l=t.value;n.payload=function(){return i(l)},n.callback=function(){$o(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){$o(e,t),typeof i!="function"&&(Jt===null?Jt=new Set([this]):Jt.add(this));var d=t.stack;this.componentDidCatch(t.value,{componentStack:d!==null?d:""})}),n}function Gc(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Bf;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(l.add(n),e=Jf.bind(null,e,t,n),t.then(e,e))}function eu(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 tu(e,t,n,i,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Mt(-1,1),t.tag=2,Qt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Uf=ee.ReactCurrentOwner,Ge=!1;function We(e,t,n,i){t.child=e===null?Sc(t,null,n,i):Un(t,e.child,n,i)}function nu(e,t,n,i,l){n=n.render;var u=t.ref;return In(t,l),i=jo(e,t,n,i,u,l),n=Po(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Tt(e,t,l)):(ze&&n&&go(t),t.flags|=1,We(e,t,i,l),t.child)}function ru(e,t,n,i,l){if(e===null){var u=n.type;return typeof u=="function"&&!ua(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,su(e,t,u,i,l)):(e=qs(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,(e.lanes&l)===0){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:yr,n(d,i)&&e.ref===t.ref)return Tt(e,t,l)}return t.flags|=1,e=nn(u,i),e.ref=t.ref,e.return=t,t.child=e}function su(e,t,n,i,l){if(e!==null){var u=e.memoizedProps;if(yr(u,i)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=i=u,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,Tt(e,t,l)}return Xo(e,t,n,i,l)}function iu(e,t,n){var i=t.pendingProps,l=i.children,u=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ce(Vn,at),at|=n;else{if((n&1073741824)===0)return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ce(Vn,at),at|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=u!==null?u.baseLanes:n,Ce(Vn,at),at|=i}else u!==null?(i=u.baseLanes|n,t.memoizedState=null):i=n,Ce(Vn,at),at|=i;return We(e,t,l,n),t.child}function ou(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xo(e,t,n,i,l){var u=Je(n)?cn:Xe.current;return u=Rn(t,u),In(t,l),n=jo(e,t,n,i,u,l),i=Po(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Tt(e,t,l)):(ze&&i&&go(t),t.flags|=1,We(e,t,n,l),t.child)}function au(e,t,n,i,l){if(Je(n)){var u=!0;ws(t)}else u=!1;if(In(t,l),t.stateNode===null)Bs(e,t),qc(t,n,i),bo(t,n,i,l),i=!0;else if(e===null){var d=t.stateNode,g=t.memoizedProps;d.props=g;var w=d.context,z=n.contextType;typeof z=="object"&&z!==null?z=ut(z):(z=Je(n)?cn:Xe.current,z=Rn(t,z));var j=n.getDerivedStateFromProps,P=typeof j=="function"||typeof d.getSnapshotBeforeUpdate=="function";P||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==i||w!==z)&&Qc(t,d,i,z),qt=!1;var L=t.memoizedState;d.state=L,Ns(t,i,d,l),w=t.memoizedState,g!==i||L!==w||Ye.current||qt?(typeof j=="function"&&(Uo(t,n,j,i),w=t.memoizedState),(g=qt||Kc(t,n,g,i,L,w,z))?(P||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=w),d.props=i,d.state=w,d.context=z,i=g):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,Cc(e,t),g=t.memoizedProps,z=t.type===t.elementType?g:xt(t.type,g),d.props=z,P=t.pendingProps,L=d.context,w=n.contextType,typeof w=="object"&&w!==null?w=ut(w):(w=Je(n)?cn:Xe.current,w=Rn(t,w));var b=n.getDerivedStateFromProps;(j=typeof b=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==P||L!==w)&&Qc(t,d,i,w),qt=!1,L=t.memoizedState,d.state=L,Ns(t,i,d,l);var $=t.memoizedState;g!==P||L!==$||Ye.current||qt?(typeof b=="function"&&(Uo(t,n,b,i),$=t.memoizedState),(z=qt||Kc(t,n,z,i,L,$,w)||!1)?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,$,w),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,$,w)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=$),d.props=i,d.state=$,d.context=w,i=z):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),i=!1)}return Zo(e,t,n,i,u,l)}function Zo(e,t,n,i,l,u){ou(e,t);var d=(t.flags&128)!==0;if(!i&&!d)return l&&dc(t,n,!1),Tt(e,t,u);i=t.stateNode,Uf.current=t;var g=d&&typeof n.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&d?(t.child=Un(t,e.child,null,u),t.child=Un(t,null,g,u)):We(e,t,g,u),t.memoizedState=i.state,l&&dc(t,n,!0),t.child}function lu(e){var t=e.stateNode;t.pendingContext?uc(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uc(e,t.context,!1),zo(e,t.containerInfo)}function cu(e,t,n,i,l){return Bn(),wo(l),t.flags|=256,We(e,t,n,i),t.child}var Vo={dehydrated:null,treeContext:null,retryLane:0};function Ho(e){return{baseLanes:e,cachePool:null,transitions:null}}function uu(e,t,n){var i=t.pendingProps,l=De.current,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(l&2)!==0),g?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ce(De,l&1),e===null)return vo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(d=i.children,e=i.fallback,u?(i=t.mode,u=t.child,d={mode:"hidden",children:d},(i&1)===0&&u!==null?(u.childLanes=0,u.pendingProps=d):u=Qs(d,i,0,null),e=vn(e,i,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ho(n),t.memoizedState=Vo,e):Wo(t,d));if(l=e.memoizedState,l!==null&&(g=l.dehydrated,g!==null))return bf(e,t,d,i,g,l,n);if(u){u=i.fallback,d=t.mode,l=e.child,g=l.sibling;var w={mode:"hidden",children:i.children};return(d&1)===0&&t.child!==l?(i=t.child,i.childLanes=0,i.pendingProps=w,t.deletions=null):(i=nn(l,w),i.subtreeFlags=l.subtreeFlags&14680064),g!==null?u=nn(g,u):(u=vn(u,d,n,null),u.flags|=2),u.return=t,i.return=t,i.sibling=u,t.child=i,i=u,u=t.child,d=e.child.memoizedState,d=d===null?Ho(n):{baseLanes:d.baseLanes|n,cachePool:null,transitions:d.transitions},u.memoizedState=d,u.childLanes=e.childLanes&~n,t.memoizedState=Vo,i}return u=e.child,e=u.sibling,i=nn(u,{mode:"visible",children:i.children}),(t.mode&1)===0&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Wo(e,t){return t=Qs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ts(e,t,n,i){return i!==null&&wo(i),Un(t,e.child,null,n),e=Wo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bf(e,t,n,i,l,u,d){if(n)return t.flags&256?(t.flags&=-257,i=Io(Error(s(422))),Ts(e,t,d,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=i.fallback,l=t.mode,i=Qs({mode:"visible",children:i.children},l,0,null),u=vn(u,l,d,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,(t.mode&1)!==0&&Un(t,e.child,null,d),t.child.memoizedState=Ho(d),t.memoizedState=Vo,u);if((t.mode&1)===0)return Ts(e,t,d,null);if(l.data==="$!"){if(i=l.nextSibling&&l.nextSibling.dataset,i)var g=i.dgst;return i=g,u=Error(s(419)),i=Io(u,i,void 0),Ts(e,t,d,i)}if(g=(d&e.childLanes)!==0,Ge||g){if(i=Be,i!==null){switch(d&-d){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&(i.suspendedLanes|d))!==0?0:l,l!==0&&l!==u.retryLane&&(u.retryLane=l,Rt(e,l),St(i,e,l,-1))}return ca(),i=Io(Error(s(421))),Ts(e,t,d,i)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Gf.bind(null,e),l._reactRetry=t,null):(e=u.treeContext,ot=Vt(l.nextSibling),it=t,ze=!0,yt=null,e!==null&&(lt[ct++]=jt,lt[ct++]=Pt,lt[ct++]=un,jt=e.id,Pt=e.overflow,un=t),t=Wo(t,i.children),t.flags|=4096,t)}function pu(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ko(e.return,t,n)}function Ko(e,t,n,i,l){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=i,u.tail=n,u.tailMode=l)}function du(e,t,n){var i=t.pendingProps,l=i.revealOrder,u=i.tail;if(We(e,t,i.children,n),i=De.current,(i&2)!==0)i=i&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pu(e,n,t);else if(e.tag===19)pu(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}i&=1}if(Ce(De,i),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&As(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ko(t,!1,l,n,u);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&As(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ko(t,!0,n,null,u);break;case"together":Ko(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bs(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function If(e,t,n){switch(t.tag){case 3:lu(t),Bn();break;case 5:_c(t);break;case 1:Je(t.type)&&ws(t);break;case 4:zo(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,l=t.memoizedProps.value;Ce(_s,i._currentValue),i._currentValue=l;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(Ce(De,De.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?uu(e,t,n):(Ce(De,De.current&1),e=Tt(e,t,n),e!==null?e.sibling:null);Ce(De,De.current&1);break;case 19:if(i=(n&t.childLanes)!==0,(e.flags&128)!==0){if(i)return du(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(De,De.current),i)break;return null;case 22:case 23:return t.lanes=0,iu(e,t,n)}return Tt(e,t,n)}var fu,qo,hu,mu;fu=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}},qo=function(){},hu=function(e,t,n,i){var l=e.memoizedProps;if(l!==i){e=t.stateNode,fn(Et.current);var u=null;switch(n){case"input":l=Ci(e,l),i=Ci(e,i),u=[];break;case"select":l=U({},l,{value:void 0}),i=U({},i,{value:void 0}),u=[];break;case"textarea":l=_i(e,l),i=_i(e,i),u=[];break;default:typeof l.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=ys)}Di(n,i);var d;n=null;for(z in l)if(!i.hasOwnProperty(z)&&l.hasOwnProperty(z)&&l[z]!=null)if(z==="style"){var g=l[z];for(d in g)g.hasOwnProperty(d)&&(n||(n={}),n[d]="")}else z!=="dangerouslySetInnerHTML"&&z!=="children"&&z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&z!=="autoFocus"&&(c.hasOwnProperty(z)?u||(u=[]):(u=u||[]).push(z,null));for(z in i){var w=i[z];if(g=l!=null?l[z]:void 0,i.hasOwnProperty(z)&&w!==g&&(w!=null||g!=null))if(z==="style")if(g){for(d in g)!g.hasOwnProperty(d)||w&&w.hasOwnProperty(d)||(n||(n={}),n[d]="");for(d in w)w.hasOwnProperty(d)&&g[d]!==w[d]&&(n||(n={}),n[d]=w[d])}else n||(u||(u=[]),u.push(z,n)),n=w;else z==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,g=g?g.__html:void 0,w!=null&&g!==w&&(u=u||[]).push(z,w)):z==="children"?typeof w!="string"&&typeof w!="number"||(u=u||[]).push(z,""+w):z!=="suppressContentEditableWarning"&&z!=="suppressHydrationWarning"&&(c.hasOwnProperty(z)?(w!=null&&z==="onScroll"&&ke("scroll",e),u||g===w||(u=[])):(u=u||[]).push(z,w))}n&&(u=u||[]).push("style",n);var z=u;(t.updateQueue=z)&&(t.flags|=4)}},mu=function(e,t,n,i){n!==i&&(t.flags|=4)};function Or(e,t){if(!ze)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 i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&14680064,i|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function $f(e,t,n){var i=t.pendingProps;switch(yo(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 Je(t.type)&&vs(),Ve(t),null;case 3:return i=t.stateNode,$n(),Ee(Ye),Ee(Xe),Ao(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ks(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yt!==null&&(oa(yt),yt=null))),qo(e,t),Ve(t),null;case 5:Do(t);var l=fn(zr.current);if(n=t.type,e!==null&&t.stateNode!=null)hu(e,t,n,i,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Ve(t),null}if(e=fn(Et.current),ks(t)){i=t.stateNode,n=t.type;var u=t.memoizedProps;switch(i[kt]=t,i[Fr]=u,e=(t.mode&1)!==0,n){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(l=0;l<vr.length;l++)ke(vr[l],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":qa(i,u),ke("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!u.multiple},ke("invalid",i);break;case"textarea":Ja(i,u),ke("invalid",i)}Di(n,u),l=null;for(var d in u)if(u.hasOwnProperty(d)){var g=u[d];d==="children"?typeof g=="string"?i.textContent!==g&&(u.suppressHydrationWarning!==!0&&gs(i.textContent,g,e),l=["children",g]):typeof g=="number"&&i.textContent!==""+g&&(u.suppressHydrationWarning!==!0&&gs(i.textContent,g,e),l=["children",""+g]):c.hasOwnProperty(d)&&g!=null&&d==="onScroll"&&ke("scroll",i)}switch(n){case"input":Wr(i),Ya(i,u,!0);break;case"textarea":Wr(i),el(i);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(i.onclick=ys)}i=l,t.updateQueue=i,i!==null&&(t.flags|=4)}else{d=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tl(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=d.createElement(n,{is:i.is}):(e=d.createElement(n),n==="select"&&(d=e,i.multiple?d.multiple=!0:i.size&&(d.size=i.size))):e=d.createElementNS(e,n),e[kt]=t,e[Fr]=i,fu(e,t,!1,!1),t.stateNode=e;e:{switch(d=Ni(n,i),n){case"dialog":ke("cancel",e),ke("close",e),l=i;break;case"iframe":case"object":case"embed":ke("load",e),l=i;break;case"video":case"audio":for(l=0;l<vr.length;l++)ke(vr[l],e);l=i;break;case"source":ke("error",e),l=i;break;case"img":case"image":case"link":ke("error",e),ke("load",e),l=i;break;case"details":ke("toggle",e),l=i;break;case"input":qa(e,i),l=Ci(e,i),ke("invalid",e);break;case"option":l=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},l=U({},i,{value:void 0}),ke("invalid",e);break;case"textarea":Ja(e,i),l=_i(e,i),ke("invalid",e);break;default:l=i}Di(n,l),g=l;for(u in g)if(g.hasOwnProperty(u)){var w=g[u];u==="style"?sl(e,w):u==="dangerouslySetInnerHTML"?(w=w?w.__html:void 0,w!=null&&nl(e,w)):u==="children"?typeof w=="string"?(n!=="textarea"||w!=="")&&er(e,w):typeof w=="number"&&er(e,""+w):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c.hasOwnProperty(u)?w!=null&&u==="onScroll"&&ke("scroll",e):w!=null&&de(e,u,w,d))}switch(n){case"input":Wr(e),Ya(e,i,!1);break;case"textarea":Wr(e),el(e);break;case"option":i.value!=null&&e.setAttribute("value",""+he(i.value));break;case"select":e.multiple=!!i.multiple,u=i.value,u!=null?Cn(e,!!i.multiple,u,!1):i.defaultValue!=null&&Cn(e,!!i.multiple,i.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ys)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ve(t),null;case 6:if(e&&t.stateNode!=null)mu(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(n=fn(zr.current),fn(Et.current),ks(t)){if(i=t.stateNode,n=t.memoizedProps,i[kt]=t,(u=i.nodeValue!==n)&&(e=it,e!==null))switch(e.tag){case 3:gs(i.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gs(i.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[kt]=t,t.stateNode=i}return Ve(t),null;case 13:if(Ee(De),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&ot!==null&&(t.mode&1)!==0&&(t.flags&128)===0)xc(),Bn(),t.flags|=98560,u=!1;else if(u=ks(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[kt]=t}else Bn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),u=!1}else yt!==null&&(oa(yt),yt=null),u=!0;if(!u)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(De.current&1)!==0?Me===0&&(Me=3):ca())),t.updateQueue!==null&&(t.flags|=4),Ve(t),null);case 4:return $n(),qo(e,t),e===null&&wr(t.stateNode.containerInfo),Ve(t),null;case 10:return Co(t.type._context),Ve(t),null;case 17:return Je(t.type)&&vs(),Ve(t),null;case 19:if(Ee(De),u=t.memoizedState,u===null)return Ve(t),null;if(i=(t.flags&128)!==0,d=u.rendering,d===null)if(i)Or(u,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=As(e),d!==null){for(t.flags|=128,Or(u,!1),i=d.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)u=n,e=i,u.flags&=14680066,d=u.alternate,d===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=d.childLanes,u.lanes=d.lanes,u.child=d.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=d.memoizedProps,u.memoizedState=d.memoizedState,u.updateQueue=d.updateQueue,u.type=d.type,e=d.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ce(De,De.current&1|2),t.child}e=e.sibling}u.tail!==null&&Le()>Hn&&(t.flags|=128,i=!0,Or(u,!1),t.lanes=4194304)}else{if(!i)if(e=As(d),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Or(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!ze)return Ve(t),null}else 2*Le()-u.renderingStartTime>Hn&&n!==1073741824&&(t.flags|=128,i=!0,Or(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(n=u.last,n!==null?n.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Le(),t.sibling=null,n=De.current,Ce(De,i?n&1|2:n&1),t):(Ve(t),null);case 22:case 23:return la(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(at&1073741824)!==0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Xf(e,t){switch(yo(t),t.tag){case 1:return Je(t.type)&&vs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $n(),Ee(Ye),Ee(Xe),Ao(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Do(t),null;case 13:if(Ee(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Bn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(De),null;case 4:return $n(),null;case 10:return Co(t.type._context),null;case 22:case 23:return la(),null;case 24:return null;default:return null}}var Us=!1,He=!1,Zf=typeof WeakSet=="function"?WeakSet:Set,I=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Ae(e,t,i)}else n.current=null}function Qo(e,t,n){try{n()}catch(i){Ae(e,t,i)}}var gu=!1;function Vf(e,t){if(ao=is,e=Kl(),Gi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var l=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var d=0,g=-1,w=-1,z=0,j=0,P=e,L=null;t:for(;;){for(var b;P!==n||l!==0&&P.nodeType!==3||(g=d+l),P!==u||i!==0&&P.nodeType!==3||(w=d+i),P.nodeType===3&&(d+=P.nodeValue.length),(b=P.firstChild)!==null;)L=P,P=b;for(;;){if(P===e)break t;if(L===n&&++z===l&&(g=d),L===u&&++j===i&&(w=d),(b=P.nextSibling)!==null)break;P=L,L=P.parentNode}P=b}n=g===-1||w===-1?null:{start:g,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(lo={focusedElem:e,selectionRange:n},is=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var $=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if($!==null){var Z=$.memoizedProps,Oe=$.memoizedState,k=t.stateNode,S=k.getSnapshotBeforeUpdate(t.elementType===t.type?Z:xt(t.type,Z),Oe);k.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(R){Ae(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return $=gu,gu=!1,$}function jr(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Qo(t,n,u)}l=l.next}while(l!==i)}}function bs(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 i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Yo(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 yu(e){var t=e.alternate;t!==null&&(e.alternate=null,yu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[Fr],delete t[fo],delete t[zf],delete t[Df])),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 xu(e){return e.tag===5||e.tag===3||e.tag===4}function vu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xu(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 Jo(e,t,n){var i=e.tag;if(i===5||i===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=ys));else if(i!==4&&(e=e.child,e!==null))for(Jo(e,t,n),e=e.sibling;e!==null;)Jo(e,t,n),e=e.sibling}function Go(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Go(e,t,n),e=e.sibling;e!==null;)Go(e,t,n),e=e.sibling}var Ie=null,vt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(Gr,n)}catch{}switch(n.tag){case 5:He||Zn(n,t);case 6:var i=Ie,l=vt;Ie=null,Yt(e,t,n),Ie=i,vt=l,Ie!==null&&(vt?(e=Ie,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ie.removeChild(n.stateNode));break;case 18:Ie!==null&&(vt?(e=Ie,n=n.stateNode,e.nodeType===8?po(e.parentNode,n):e.nodeType===1&&po(e,n),pr(e)):po(Ie,n.stateNode));break;case 4:i=Ie,l=vt,Ie=n.stateNode.containerInfo,vt=!0,Yt(e,t,n),Ie=i,vt=l;break;case 0:case 11:case 14:case 15:if(!He&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){l=i=i.next;do{var u=l,d=u.destroy;u=u.tag,d!==void 0&&((u&2)!==0||(u&4)!==0)&&Qo(n,t,d),l=l.next}while(l!==i)}Yt(e,t,n);break;case 1:if(!He&&(Zn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(g){Ae(n,t,g)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(He=(i=He)||n.memoizedState!==null,Yt(e,t,n),He=i):Yt(e,t,n);break;default:Yt(e,t,n)}}function Su(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zf),t.forEach(function(i){var l=e2.bind(null,e,i);n.has(i)||(n.add(i),i.then(l,l))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];try{var u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 5:Ie=g.stateNode,vt=!1;break e;case 3:Ie=g.stateNode.containerInfo,vt=!0;break e;case 4:Ie=g.stateNode.containerInfo,vt=!0;break e}g=g.return}if(Ie===null)throw Error(s(160));wu(u,d,l),Ie=null,vt=!1;var w=l.alternate;w!==null&&(w.return=null),l.return=null}catch(z){Ae(l,t,z)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling}function Fu(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),zt(e),i&4){try{jr(3,e,e.return),bs(3,e)}catch(Z){Ae(e,e.return,Z)}try{jr(5,e,e.return)}catch(Z){Ae(e,e.return,Z)}}break;case 1:wt(t,e),zt(e),i&512&&n!==null&&Zn(n,n.return);break;case 5:if(wt(t,e),zt(e),i&512&&n!==null&&Zn(n,n.return),e.flags&32){var l=e.stateNode;try{er(l,"")}catch(Z){Ae(e,e.return,Z)}}if(i&4&&(l=e.stateNode,l!=null)){var u=e.memoizedProps,d=n!==null?n.memoizedProps:u,g=e.type,w=e.updateQueue;if(e.updateQueue=null,w!==null)try{g==="input"&&u.type==="radio"&&u.name!=null&&Qa(l,u),Ni(g,d);var z=Ni(g,u);for(d=0;d<w.length;d+=2){var j=w[d],P=w[d+1];j==="style"?sl(l,P):j==="dangerouslySetInnerHTML"?nl(l,P):j==="children"?er(l,P):de(l,j,P,z)}switch(g){case"input":ki(l,u);break;case"textarea":Ga(l,u);break;case"select":var L=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!u.multiple;var b=u.value;b!=null?Cn(l,!!u.multiple,b,!1):L!==!!u.multiple&&(u.defaultValue!=null?Cn(l,!!u.multiple,u.defaultValue,!0):Cn(l,!!u.multiple,u.multiple?[]:"",!1))}l[Fr]=u}catch(Z){Ae(e,e.return,Z)}}break;case 6:if(wt(t,e),zt(e),i&4){if(e.stateNode===null)throw Error(s(162));l=e.stateNode,u=e.memoizedProps;try{l.nodeValue=u}catch(Z){Ae(e,e.return,Z)}}break;case 3:if(wt(t,e),zt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{pr(t.containerInfo)}catch(Z){Ae(e,e.return,Z)}break;case 4:wt(t,e),zt(e);break;case 13:wt(t,e),zt(e),l=e.child,l.flags&8192&&(u=l.memoizedState!==null,l.stateNode.isHidden=u,!u||l.alternate!==null&&l.alternate.memoizedState!==null||(na=Le())),i&4&&Su(e);break;case 22:if(j=n!==null&&n.memoizedState!==null,e.mode&1?(He=(z=He)||j,wt(t,e),He=z):wt(t,e),zt(e),i&8192){if(z=e.memoizedState!==null,(e.stateNode.isHidden=z)&&!j&&(e.mode&1)!==0)for(I=e,j=e.child;j!==null;){for(P=I=j;I!==null;){switch(L=I,b=L.child,L.tag){case 0:case 11:case 14:case 15:jr(4,L,L.return);break;case 1:Zn(L,L.return);var $=L.stateNode;if(typeof $.componentWillUnmount=="function"){i=L,n=L.return;try{t=i,$.props=t.memoizedProps,$.state=t.memoizedState,$.componentWillUnmount()}catch(Z){Ae(i,n,Z)}}break;case 5:Zn(L,L.return);break;case 22:if(L.memoizedState!==null){Eu(P);continue}}b!==null?(b.return=L,I=b):Eu(P)}j=j.sibling}e:for(j=null,P=e;;){if(P.tag===5){if(j===null){j=P;try{l=P.stateNode,z?(u=l.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(g=P.stateNode,w=P.memoizedProps.style,d=w!=null&&w.hasOwnProperty("display")?w.display:null,g.style.display=rl("display",d))}catch(Z){Ae(e,e.return,Z)}}}else if(P.tag===6){if(j===null)try{P.stateNode.nodeValue=z?"":P.memoizedProps}catch(Z){Ae(e,e.return,Z)}}else if((P.tag!==22&&P.tag!==23||P.memoizedState===null||P===e)&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===e)break e;for(;P.sibling===null;){if(P.return===null||P.return===e)break e;j===P&&(j=null),P=P.return}j===P&&(j=null),P.sibling.return=P.return,P=P.sibling}}break;case 19:wt(t,e),zt(e),i&4&&Su(e);break;case 21:break;default:wt(t,e),zt(e)}}function zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(xu(n)){var i=n;break e}n=n.return}throw Error(s(160))}switch(i.tag){case 5:var l=i.stateNode;i.flags&32&&(er(l,""),i.flags&=-33);var u=vu(e);Go(e,u,l);break;case 3:case 4:var d=i.stateNode.containerInfo,g=vu(e);Jo(e,g,d);break;default:throw Error(s(161))}}catch(w){Ae(e,e.return,w)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hf(e,t,n){I=e,Cu(e)}function Cu(e,t,n){for(var i=(e.mode&1)!==0;I!==null;){var l=I,u=l.child;if(l.tag===22&&i){var d=l.memoizedState!==null||Us;if(!d){var g=l.alternate,w=g!==null&&g.memoizedState!==null||He;g=Us;var z=He;if(Us=d,(He=w)&&!z)for(I=l;I!==null;)d=I,w=d.child,d.tag===22&&d.memoizedState!==null?_u(l):w!==null?(w.return=d,I=w):_u(l);for(;u!==null;)I=u,Cu(u),u=u.sibling;I=l,Us=g,He=z}ku(e)}else(l.subtreeFlags&8772)!==0&&u!==null?(u.return=l,I=u):ku(e)}}function ku(e){for(;I!==null;){var t=I;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:He||bs(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!He)if(n===null)i.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:xt(t.type,n.memoizedProps);i.componentDidUpdate(l,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Ec(t,u,i);break;case 3:var d=t.updateQueue;if(d!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ec(t,d,n)}break;case 5:var g=t.stateNode;if(n===null&&t.flags&4){n=g;var w=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":w.autoFocus&&n.focus();break;case"img":w.src&&(n.src=w.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var z=t.alternate;if(z!==null){var j=z.memoizedState;if(j!==null){var P=j.dehydrated;P!==null&&pr(P)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(s(163))}He||t.flags&512&&Yo(t)}catch(L){Ae(t,t.return,L)}}if(t===e){I=null;break}if(n=t.sibling,n!==null){n.return=t.return,I=n;break}I=t.return}}function Eu(e){for(;I!==null;){var t=I;if(t===e){I=null;break}var n=t.sibling;if(n!==null){n.return=t.return,I=n;break}I=t.return}}function _u(e){for(;I!==null;){var t=I;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bs(4,t)}catch(w){Ae(t,n,w)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var l=t.return;try{i.componentDidMount()}catch(w){Ae(t,l,w)}}var u=t.return;try{Yo(t)}catch(w){Ae(t,u,w)}break;case 5:var d=t.return;try{Yo(t)}catch(w){Ae(t,d,w)}}}catch(w){Ae(t,t.return,w)}if(t===e){I=null;break}var g=t.sibling;if(g!==null){g.return=t.return,I=g;break}I=t.return}}var Wf=Math.ceil,Is=ee.ReactCurrentDispatcher,ea=ee.ReactCurrentOwner,dt=ee.ReactCurrentBatchConfig,me=0,Be=null,je=null,$e=0,at=0,Vn=Ht(0),Me=0,Pr=null,mn=0,$s=0,ta=0,Rr=null,et=null,na=0,Hn=1/0,Bt=null,Xs=!1,ra=null,Jt=null,Zs=!1,Gt=null,Vs=0,Mr=0,sa=null,Hs=-1,Ws=0;function Ke(){return(me&6)!==0?Le():Hs!==-1?Hs:Hs=Le()}function en(e){return(e.mode&1)===0?1:(me&2)!==0&&$e!==0?$e&-$e:Af.transition!==null?(Ws===0&&(Ws=vl()),Ws):(e=Fe,e!==0||(e=window.event,e=e===void 0?16:Dl(e.type)),e)}function St(e,t,n,i){if(50<Mr)throw Mr=0,sa=null,Error(s(185));or(e,n,i),((me&2)===0||e!==Be)&&(e===Be&&((me&2)===0&&($s|=n),Me===4&&tn(e,$e)),tt(e,i),n===1&&me===0&&(t.mode&1)===0&&(Hn=Le()+500,Ss&&Kt()))}function tt(e,t){var n=e.callbackNode;Nd(e,t);var i=ns(e,e===Be?$e:0);if(i===0)n!==null&&gl(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(n!=null&&gl(n),t===1)e.tag===0?Nf(Du.bind(null,e)):fc(Du.bind(null,e)),Ef(function(){(me&6)===0&&Kt()}),n=null;else{switch(wl(i)){case 1:n=Mi;break;case 4:n=yl;break;case 16:n=Jr;break;case 536870912:n=xl;break;default:n=Jr}n=Mu(n,zu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zu(e,t){if(Hs=-1,Ws=0,(me&6)!==0)throw Error(s(327));var n=e.callbackNode;if(Wn()&&e.callbackNode!==n)return null;var i=ns(e,e===Be?$e:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||t)t=Ks(e,i);else{t=i;var l=me;me|=2;var u=Au();(Be!==e||$e!==t)&&(Bt=null,Hn=Le()+500,yn(e,t));do try{Qf();break}catch(g){Nu(e,g)}while(!0);Fo(),Is.current=u,me=l,je!==null?t=0:(Be=null,$e=0,t=Me)}if(t!==0){if(t===2&&(l=Ti(e),l!==0&&(i=l,t=ia(e,l))),t===1)throw n=Pr,yn(e,0),tn(e,i),tt(e,Le()),n;if(t===6)tn(e,i);else{if(l=e.current.alternate,(i&30)===0&&!Kf(l)&&(t=Ks(e,i),t===2&&(u=Ti(e),u!==0&&(i=u,t=ia(e,u))),t===1))throw n=Pr,yn(e,0),tn(e,i),tt(e,Le()),n;switch(e.finishedWork=l,e.finishedLanes=i,t){case 0:case 1:throw Error(s(345));case 2:xn(e,et,Bt);break;case 3:if(tn(e,i),(i&130023424)===i&&(t=na+500-Le(),10<t)){if(ns(e,0)!==0)break;if(l=e.suspendedLanes,(l&i)!==i){Ke(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=uo(xn.bind(null,e,et,Bt),t);break}xn(e,et,Bt);break;case 4:if(tn(e,i),(i&4194240)===i)break;for(t=e.eventTimes,l=-1;0<i;){var d=31-mt(i);u=1<<d,d=t[d],d>l&&(l=d),i&=~u}if(i=l,i=Le()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wf(i/1960))-i,10<i){e.timeoutHandle=uo(xn.bind(null,e,et,Bt),i);break}xn(e,et,Bt);break;case 5:xn(e,et,Bt);break;default:throw Error(s(329))}}}return tt(e,Le()),e.callbackNode===n?zu.bind(null,e):null}function ia(e,t){var n=Rr;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Ks(e,t),e!==2&&(t=et,et=n,t!==null&&oa(t)),e}function oa(e){et===null?et=e:et.push.apply(et,e)}function Kf(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var i=0;i<n.length;i++){var l=n[i],u=l.getSnapshot;l=l.value;try{if(!gt(u(),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 tn(e,t){for(t&=~ta,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mt(t),i=1<<n;e[n]=-1,t&=~i}}function Du(e){if((me&6)!==0)throw Error(s(327));Wn();var t=ns(e,0);if((t&1)===0)return tt(e,Le()),null;var n=Ks(e,t);if(e.tag!==0&&n===2){var i=Ti(e);i!==0&&(t=i,n=ia(e,i))}if(n===1)throw n=Pr,yn(e,0),tn(e,t),tt(e,Le()),n;if(n===6)throw Error(s(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xn(e,et,Bt),tt(e,Le()),null}function aa(e,t){var n=me;me|=1;try{return e(t)}finally{me=n,me===0&&(Hn=Le()+500,Ss&&Kt())}}function gn(e){Gt!==null&&Gt.tag===0&&(me&6)===0&&Wn();var t=me;me|=1;var n=dt.transition,i=Fe;try{if(dt.transition=null,Fe=1,e)return e()}finally{Fe=i,dt.transition=n,me=t,(me&6)===0&&Kt()}}function la(){at=Vn.current,Ee(Vn)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,kf(n)),je!==null)for(n=je.return;n!==null;){var i=n;switch(yo(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&vs();break;case 3:$n(),Ee(Ye),Ee(Xe),Ao();break;case 5:Do(i);break;case 4:$n();break;case 13:Ee(De);break;case 19:Ee(De);break;case 10:Co(i.type._context);break;case 22:case 23:la()}n=n.return}if(Be=e,je=e=nn(e.current,null),$e=at=t,Me=0,Pr=null,ta=$s=mn=0,et=Rr=null,dn!==null){for(t=0;t<dn.length;t++)if(n=dn[t],i=n.interleaved,i!==null){n.interleaved=null;var l=i.next,u=n.pending;if(u!==null){var d=u.next;u.next=l,i.next=d}n.pending=i}dn=null}return e}function Nu(e,t){do{var n=je;try{if(Fo(),Ls.current=Rs,Os){for(var i=Ne.memoizedState;i!==null;){var l=i.queue;l!==null&&(l.pending=null),i=i.next}Os=!1}if(hn=0,Te=Re=Ne=null,Dr=!1,Nr=0,ea.current=null,n===null||n.return===null){Me=1,Pr=t,je=null;break}e:{var u=e,d=n.return,g=n,w=t;if(t=$e,g.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){var z=w,j=g,P=j.tag;if((j.mode&1)===0&&(P===0||P===11||P===15)){var L=j.alternate;L?(j.updateQueue=L.updateQueue,j.memoizedState=L.memoizedState,j.lanes=L.lanes):(j.updateQueue=null,j.memoizedState=null)}var b=eu(d);if(b!==null){b.flags&=-257,tu(b,d,g,u,t),b.mode&1&&Gc(u,z,t),t=b,w=z;var $=t.updateQueue;if($===null){var Z=new Set;Z.add(w),t.updateQueue=Z}else $.add(w);break e}else{if((t&1)===0){Gc(u,z,t),ca();break e}w=Error(s(426))}}else if(ze&&g.mode&1){var Oe=eu(d);if(Oe!==null){(Oe.flags&65536)===0&&(Oe.flags|=256),tu(Oe,d,g,u,t),wo(Xn(w,g));break e}}u=w=Xn(w,g),Me!==4&&(Me=2),Rr===null?Rr=[u]:Rr.push(u),u=d;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var k=Yc(u,w,t);kc(u,k);break e;case 1:g=w;var S=u.type,_=u.stateNode;if((u.flags&128)===0&&(typeof S.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Jt===null||!Jt.has(_)))){u.flags|=65536,t&=-t,u.lanes|=t;var R=Jc(u,g,t);kc(u,R);break e}}u=u.return}while(u!==null)}Ou(n)}catch(V){t=V,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function Au(){var e=Is.current;return Is.current=Rs,e===null?Rs:e}function ca(){(Me===0||Me===3||Me===2)&&(Me=4),Be===null||(mn&268435455)===0&&($s&268435455)===0||tn(Be,$e)}function Ks(e,t){var n=me;me|=2;var i=Au();(Be!==e||$e!==t)&&(Bt=null,yn(e,t));do try{qf();break}catch(l){Nu(e,l)}while(!0);if(Fo(),me=n,Is.current=i,je!==null)throw Error(s(261));return Be=null,$e=0,Me}function qf(){for(;je!==null;)Lu(je)}function Qf(){for(;je!==null&&!wd();)Lu(je)}function Lu(e){var t=Ru(e.alternate,e,at);e.memoizedProps=e.pendingProps,t===null?Ou(e):je=t,ea.current=null}function Ou(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=$f(n,t,at),n!==null){je=n;return}}else{if(n=Xf(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,je=null;return}}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Me===0&&(Me=5)}function xn(e,t,n){var i=Fe,l=dt.transition;try{dt.transition=null,Fe=1,Yf(e,t,n,i)}finally{dt.transition=l,Fe=i}return null}function Yf(e,t,n,i){do Wn();while(Gt!==null);if((me&6)!==0)throw Error(s(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(s(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(Ad(e,u),e===Be&&(je=Be=null,$e=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Zs||(Zs=!0,Mu(Jr,function(){return Wn(),null})),u=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||u){u=dt.transition,dt.transition=null;var d=Fe;Fe=1;var g=me;me|=4,ea.current=null,Vf(e,n),Fu(n,e),yf(lo),is=!!ao,lo=ao=null,e.current=n,Hf(n),Sd(),me=g,Fe=d,dt.transition=u}else e.current=n;if(Zs&&(Zs=!1,Gt=e,Vs=l),u=e.pendingLanes,u===0&&(Jt=null),kd(n.stateNode),tt(e,Le()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],i(l.value,{componentStack:l.stack,digest:l.digest});if(Xs)throw Xs=!1,e=ra,ra=null,e;return(Vs&1)!==0&&e.tag!==0&&Wn(),u=e.pendingLanes,(u&1)!==0?e===sa?Mr++:(Mr=0,sa=e):Mr=0,Kt(),null}function Wn(){if(Gt!==null){var e=wl(Vs),t=dt.transition,n=Fe;try{if(dt.transition=null,Fe=16>e?16:e,Gt===null)var i=!1;else{if(e=Gt,Gt=null,Vs=0,(me&6)!==0)throw Error(s(331));var l=me;for(me|=4,I=e.current;I!==null;){var u=I,d=u.child;if((I.flags&16)!==0){var g=u.deletions;if(g!==null){for(var w=0;w<g.length;w++){var z=g[w];for(I=z;I!==null;){var j=I;switch(j.tag){case 0:case 11:case 15:jr(8,j,u)}var P=j.child;if(P!==null)P.return=j,I=P;else for(;I!==null;){j=I;var L=j.sibling,b=j.return;if(yu(j),j===z){I=null;break}if(L!==null){L.return=b,I=L;break}I=b}}}var $=u.alternate;if($!==null){var Z=$.child;if(Z!==null){$.child=null;do{var Oe=Z.sibling;Z.sibling=null,Z=Oe}while(Z!==null)}}I=u}}if((u.subtreeFlags&2064)!==0&&d!==null)d.return=u,I=d;else e:for(;I!==null;){if(u=I,(u.flags&2048)!==0)switch(u.tag){case 0:case 11:case 15:jr(9,u,u.return)}var k=u.sibling;if(k!==null){k.return=u.return,I=k;break e}I=u.return}}var S=e.current;for(I=S;I!==null;){d=I;var _=d.child;if((d.subtreeFlags&2064)!==0&&_!==null)_.return=d,I=_;else e:for(d=S;I!==null;){if(g=I,(g.flags&2048)!==0)try{switch(g.tag){case 0:case 11:case 15:bs(9,g)}}catch(V){Ae(g,g.return,V)}if(g===d){I=null;break e}var R=g.sibling;if(R!==null){R.return=g.return,I=R;break e}I=g.return}}if(me=l,Kt(),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(Gr,e)}catch{}i=!0}return i}finally{Fe=n,dt.transition=t}}return!1}function ju(e,t,n){t=Xn(n,t),t=Yc(e,t,1),e=Qt(e,t,1),t=Ke(),e!==null&&(or(e,1,t),tt(e,t))}function Ae(e,t,n){if(e.tag===3)ju(e,e,n);else for(;t!==null;){if(t.tag===3){ju(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Jt===null||!Jt.has(i))){e=Xn(n,e),e=Jc(t,e,1),t=Qt(t,e,1),e=Ke(),t!==null&&(or(t,1,e),tt(t,e));break}}t=t.return}}function Jf(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&n,Be===e&&($e&n)===n&&(Me===4||Me===3&&($e&130023424)===$e&&500>Le()-na?yn(e,0):ta|=n),tt(e,t)}function Pu(e,t){t===0&&((e.mode&1)===0?t=1:(t=ts,ts<<=1,(ts&130023424)===0&&(ts=4194304)));var n=Ke();e=Rt(e,t),e!==null&&(or(e,t,n),tt(e,n))}function Gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pu(e,n)}function e2(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),Pu(e,n)}var Ru;Ru=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ge=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ge=!1,If(e,t,n);Ge=(e.flags&131072)!==0}else Ge=!1,ze&&(t.flags&1048576)!==0&&hc(t,Cs,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Bs(e,t),e=t.pendingProps;var l=Rn(t,Xe.current);In(t,n),l=jo(null,t,i,e,l,n);var u=Po();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,Je(i)?(u=!0,ws(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,_o(t),l.updater=Ms,t.stateNode=l,l._reactInternals=t,bo(t,i,e,n),t=Zo(null,t,i,!0,u,n)):(t.tag=0,ze&&u&&go(t),We(null,t,l,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,l=i._init,i=l(i._payload),t.type=i,l=t.tag=n2(i),e=xt(i,e),l){case 0:t=Xo(null,t,i,e,n);break e;case 1:t=au(null,t,i,e,n);break e;case 11:t=nu(null,t,i,e,n);break e;case 14:t=ru(null,t,i,xt(i.type,e),n);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:xt(i,l),Xo(e,t,i,l,n);case 1:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:xt(i,l),au(e,t,i,l,n);case 3:e:{if(lu(t),e===null)throw Error(s(387));i=t.pendingProps,u=t.memoizedState,l=u.element,Cc(e,t),Ns(t,i,null,n);var d=t.memoizedState;if(i=d.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=Xn(Error(s(423)),t),t=cu(e,t,i,n,l);break e}else if(i!==l){l=Xn(Error(s(424)),t),t=cu(e,t,i,n,l);break e}else for(ot=Vt(t.stateNode.containerInfo.firstChild),it=t,ze=!0,yt=null,n=Sc(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bn(),i===l){t=Tt(e,t,n);break e}We(e,t,i,n)}t=t.child}return t;case 5:return _c(t),e===null&&vo(t),i=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,d=l.children,co(i,l)?d=null:u!==null&&co(i,u)&&(t.flags|=32),ou(e,t),We(e,t,d,n),t.child;case 6:return e===null&&vo(t),null;case 13:return uu(e,t,n);case 4:return zo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Un(t,null,i,n):We(e,t,i,n),t.child;case 11:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:xt(i,l),nu(e,t,i,l,n);case 7:return We(e,t,t.pendingProps,n),t.child;case 8:return We(e,t,t.pendingProps.children,n),t.child;case 12:return We(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,l=t.pendingProps,u=t.memoizedProps,d=l.value,Ce(_s,i._currentValue),i._currentValue=d,u!==null)if(gt(u.value,d)){if(u.children===l.children&&!Ye.current){t=Tt(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var g=u.dependencies;if(g!==null){d=u.child;for(var w=g.firstContext;w!==null;){if(w.context===i){if(u.tag===1){w=Mt(-1,n&-n),w.tag=2;var z=u.updateQueue;if(z!==null){z=z.shared;var j=z.pending;j===null?w.next=w:(w.next=j.next,j.next=w),z.pending=w}}u.lanes|=n,w=u.alternate,w!==null&&(w.lanes|=n),ko(u.return,n,t),g.lanes|=n;break}w=w.next}}else if(u.tag===10)d=u.type===t.type?null:u.child;else if(u.tag===18){if(d=u.return,d===null)throw Error(s(341));d.lanes|=n,g=d.alternate,g!==null&&(g.lanes|=n),ko(d,n,t),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}We(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,i=t.pendingProps.children,In(t,n),l=ut(l),i=i(l),t.flags|=1,We(e,t,i,n),t.child;case 14:return i=t.type,l=xt(i,t.pendingProps),l=xt(i.type,l),ru(e,t,i,l,n);case 15:return su(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:xt(i,l),Bs(e,t),t.tag=1,Je(i)?(e=!0,ws(t)):e=!1,In(t,n),qc(t,i,l),bo(t,i,l,n),Zo(null,t,i,!0,e,n);case 19:return du(e,t,n);case 22:return iu(e,t,n)}throw Error(s(156,t.tag))};function Mu(e,t){return ml(e,t)}function t2(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,i){return new t2(e,t,n,i)}function ua(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n2(e){if(typeof e=="function")return ua(e)?1:0;if(e!=null){if(e=e.$$typeof,e===oe)return 11;if(e===fe)return 14}return 2}function nn(e,t){var n=e.alternate;return n===null?(n=ft(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 qs(e,t,n,i,l,u){var d=2;if(i=e,typeof e=="function")ua(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case se:return vn(n.children,l,u,t);case ve:d=8,l|=8;break;case we:return e=ft(12,n,t,l|2),e.elementType=we,e.lanes=u,e;case q:return e=ft(13,n,t,l),e.elementType=q,e.lanes=u,e;case te:return e=ft(19,n,t,l),e.elementType=te,e.lanes=u,e;case le:return Qs(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:d=10;break e;case Qe:d=9;break e;case oe:d=11;break e;case fe:d=14;break e;case ye:d=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=ft(d,n,t,l),t.elementType=e,t.type=i,t.lanes=u,t}function vn(e,t,n,i){return e=ft(7,e,i,t),e.lanes=n,e}function Qs(e,t,n,i){return e=ft(22,e,i,t),e.elementType=le,e.lanes=n,e.stateNode={isHidden:!1},e}function pa(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function da(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r2(e,t,n,i,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=Bi(0),this.expirationTimes=Bi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bi(0),this.identifierPrefix=i,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function fa(e,t,n,i,l,u,d,g,w){return e=new r2(e,t,n,g,w),t===1?(t=1,u===!0&&(t|=8)):t=0,u=ft(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_o(u),e}function s2(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ie,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}function Tu(e){if(!e)return Wt;e=e._reactInternals;e:{if(an(e)!==e||e.tag!==1)throw Error(s(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Je(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(s(171))}if(e.tag===1){var n=e.type;if(Je(n))return pc(e,n,t)}return t}function Bu(e,t,n,i,l,u,d,g,w){return e=fa(n,i,!0,e,l,u,d,g,w),e.context=Tu(null),n=e.current,i=Ke(),l=en(n),u=Mt(i,l),u.callback=t??null,Qt(n,u,l),e.current.lanes=l,or(e,l,i),tt(e,i),e}function Ys(e,t,n,i){var l=t.current,u=Ke(),d=en(l);return n=Tu(n),t.context===null?t.context=n:t.pendingContext=n,t=Mt(u,d),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=Qt(l,t,d),e!==null&&(St(e,l,d,u),Ds(e,l,d)),d}function Js(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 Uu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ha(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}function i2(){return null}var bu=typeof reportError=="function"?reportError:function(e){console.error(e)};function ma(e){this._internalRoot=e}Gs.prototype.render=ma.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));Ys(e,t,null,null)},Gs.prototype.unmount=ma.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){Ys(null,e,null,null)}),t[Lt]=null}};function Gs(e){this._internalRoot=e}Gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Cl();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$t.length&&t!==0&&t<$t[n].priority;n++);$t.splice(n,0,e),n===0&&_l(e)}};function ga(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ei(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Iu(){}function o2(e,t,n,i,l){if(l){if(typeof i=="function"){var u=i;i=function(){var z=Js(d);u.call(z)}}var d=Bu(t,i,e,0,null,!1,!1,"",Iu);return e._reactRootContainer=d,e[Lt]=d.current,wr(e.nodeType===8?e.parentNode:e),gn(),d}for(;l=e.lastChild;)e.removeChild(l);if(typeof i=="function"){var g=i;i=function(){var z=Js(w);g.call(z)}}var w=fa(e,0,!1,null,null,!1,!1,"",Iu);return e._reactRootContainer=w,e[Lt]=w.current,wr(e.nodeType===8?e.parentNode:e),gn(function(){Ys(t,w,n,i)}),w}function ti(e,t,n,i,l){var u=n._reactRootContainer;if(u){var d=u;if(typeof l=="function"){var g=l;l=function(){var w=Js(d);g.call(w)}}Ys(t,d,e,l)}else d=o2(n,t,e,l,i);return Js(d)}Sl=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ir(t.pendingLanes);n!==0&&(Ui(t,n|1),tt(t,Le()),(me&6)===0&&(Hn=Le()+500,Kt()))}break;case 13:gn(function(){var i=Rt(e,1);if(i!==null){var l=Ke();St(i,e,1,l)}}),ha(e,1)}},bi=function(e){if(e.tag===13){var t=Rt(e,134217728);if(t!==null){var n=Ke();St(t,e,134217728,n)}ha(e,134217728)}},Fl=function(e){if(e.tag===13){var t=en(e),n=Rt(e,t);if(n!==null){var i=Ke();St(n,e,t,i)}ha(e,t)}},Cl=function(){return Fe},kl=function(e,t){var n=Fe;try{return Fe=e,t()}finally{Fe=n}},Oi=function(e,t,n){switch(t){case"input":if(ki(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 i=n[t];if(i!==e&&i.form===e.form){var l=xs(i);if(!l)throw Error(s(90));Ka(i),ki(i,l)}}}break;case"textarea":Ga(e,n);break;case"select":t=n.value,t!=null&&Cn(e,!!n.multiple,t,!1)}},ll=aa,cl=gn;var a2={usingClientEntryPoint:!1,Events:[Cr,jn,xs,ol,al,aa]},Tr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},l2={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:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fl(e),e===null?null:e.stateNode},findFiberByHostInstance:Tr.findFiberByHostInstance||i2,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 ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ni.isDisabled&&ni.supportsFiber)try{Gr=ni.inject(l2),Ct=ni}catch{}}return nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=a2,nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ga(t))throw Error(s(200));return s2(e,t,null,n)},nt.createRoot=function(e,t){if(!ga(e))throw Error(s(299));var n=!1,i="",l=bu;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=fa(e,1,!1,null,null,n,!1,i,l),e[Lt]=t.current,wr(e.nodeType===8?e.parentNode:e),new ma(t)},nt.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(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=fl(t),e=e===null?null:e.stateNode,e},nt.flushSync=function(e){return gn(e)},nt.hydrate=function(e,t,n){if(!ei(t))throw Error(s(200));return ti(null,e,t,!0,n)},nt.hydrateRoot=function(e,t,n){if(!ga(e))throw Error(s(405));var i=n!=null&&n.hydratedSources||null,l=!1,u="",d=bu;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),t=Bu(t,null,e,1,n??null,l,!1,u,d),e[Lt]=t.current,wr(e),i)for(e=0;e<i.length;e++)n=i[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Gs(t)},nt.render=function(e,t,n){if(!ei(t))throw Error(s(200));return ti(null,e,t,!1,n)},nt.unmountComponentAtNode=function(e){if(!ei(e))throw Error(s(40));return e._reactRootContainer?(gn(function(){ti(null,null,e,!1,function(){e._reactRootContainer=null,e[Lt]=null})}),!0):!1},nt.unstable_batchedUpdates=aa,nt.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!ei(n))throw Error(s(200));if(e==null||e._reactInternals===void 0)throw Error(s(38));return ti(e,t,n,!1,i)},nt.version="18.3.1-next-f1338f8080-20240426",nt}var qu;function y2(){if(qu)return va.exports;qu=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),va.exports=g2(),va.exports}var Qu;function x2(){if(Qu)return si;Qu=1;var a=y2();return si.createRoot=a.createRoot,si.hydrateRoot=a.hydrateRoot,si}var v2=x2();const Yu=a=>{let r;const s=new Set,o=(x,C)=>{const v=typeof x=="function"?x(r):x;if(!Object.is(v,r)){const D=r;r=C??(typeof v!="object"||v===null)?v:Object.assign({},r,v),s.forEach(A=>A(r,D))}},c=()=>r,h={setState:o,getState:c,getInitialState:()=>m,subscribe:x=>(s.add(x),()=>s.delete(x))},m=r=a(o,c,h);return h},w2=(a=>a?Yu(a):Yu),S2=a=>a;function F2(a,r=S2){const s=ri.useSyncExternalStore(a.subscribe,ri.useCallback(()=>r(a.getState()),[a,r]),ri.useCallback(()=>r(a.getInitialState()),[a,r]));return ri.useDebugValue(s),s}const Ju=a=>{const r=w2(a),s=o=>F2(r,o);return Object.assign(s,r),s},C2=(a=>a?Ju(a):Ju),jp=C2(a=>({sessions:[],currentSession:null,messages:[],isLoading:!1,setSessions:r=>a({sessions:r}),upsertSession:r=>a(s=>{var f;const c=s.sessions.findIndex(h=>h.id===r.id)>=0?s.sessions.map(h=>h.id===r.id?r:h):[r,...s.sessions],p=((f=s.currentSession)==null?void 0:f.id)===r.id?r:s.currentSession;return{sessions:c,currentSession:p}}),removeSession:r=>a(s=>{var o;return{sessions:s.sessions.filter(c=>c.id!==r),currentSession:((o=s.currentSession)==null?void 0:o.id)===r?null:s.currentSession}}),setCurrentSession:r=>a({currentSession:r}),setMessages:r=>a({messages:r}),addMessage:r=>a(s=>({messages:[...s.messages,r]})),setLoading:r=>a({isLoading:r})}));/**
|
|
41
|
+
* @license lucide-react v0.511.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 k2=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E2=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,o)=>o?o.toUpperCase():s.toLowerCase()),Gu=a=>{const r=E2(a);return r.charAt(0).toUpperCase()+r.slice(1)},Pp=(...a)=>a.filter((r,s,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===s).join(" ").trim(),_2=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
|
|
46
|
+
* @license lucide-react v0.511.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 z2={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.511.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 D2=J.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:p,iconNode:f,...h},m)=>J.createElement("svg",{ref:m,...z2,width:r,height:r,stroke:a,strokeWidth:o?Number(s)*24/Number(r):s,className:Pp("lucide",c),...!p&&!_2(h)&&{"aria-hidden":"true"},...h},[...f.map(([x,C])=>J.createElement(x,C)),...Array.isArray(p)?p:[p]]));/**
|
|
56
|
+
* @license lucide-react v0.511.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 be=(a,r)=>{const s=J.forwardRef(({className:o,...c},p)=>J.createElement(D2,{ref:p,iconNode:r,className:Pp(`lucide-${k2(Gu(a))}`,`lucide-${a}`,o),...c}));return s.displayName=Gu(a),s};/**
|
|
61
|
+
* @license lucide-react v0.511.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 N2=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Rp=be("arrow-up",N2);/**
|
|
66
|
+
* @license lucide-react v0.511.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 A2=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],ep=be("bot",A2);/**
|
|
71
|
+
* @license lucide-react v0.511.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 L2=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],O2=be("brain",L2);/**
|
|
76
|
+
* @license lucide-react v0.511.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 j2=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],P2=be("calendar",j2);/**
|
|
81
|
+
* @license lucide-react v0.511.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 R2=[["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"}]],di=be("folder-open",R2);/**
|
|
86
|
+
* @license lucide-react v0.511.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 M2=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],$a=be("folder",M2);/**
|
|
91
|
+
* @license lucide-react v0.511.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 T2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],B2=be("globe",T2);/**
|
|
96
|
+
* @license lucide-react v0.511.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 U2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],b2=be("loader-circle",U2);/**
|
|
101
|
+
* @license lucide-react v0.511.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 I2=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],$2=be("message-square",I2);/**
|
|
106
|
+
* @license lucide-react v0.511.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 X2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Mp=be("pencil",X2);/**
|
|
111
|
+
* @license lucide-react v0.511.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 Z2=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],V2=be("play",Z2);/**
|
|
116
|
+
* @license lucide-react v0.511.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 H2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],W2=be("plus",H2);/**
|
|
121
|
+
* @license lucide-react v0.511.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 K2=[["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"}]],Tp=be("save",K2);/**
|
|
126
|
+
* @license lucide-react v0.511.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 q2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Q2=be("send",q2);/**
|
|
131
|
+
* @license lucide-react v0.511.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 Y2=[["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"}]],Bp=be("settings",Y2);/**
|
|
136
|
+
* @license lucide-react v0.511.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 J2=[["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"}]],G2=be("trash-2",J2);/**
|
|
141
|
+
* @license lucide-react v0.511.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 eh=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],th=be("user",eh);/**
|
|
146
|
+
* @license lucide-react v0.511.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 nh=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fi=be("x",nh),re=a=>typeof a=="string",Ur=()=>{let a,r;const s=new Promise((o,c)=>{a=o,r=c});return s.resolve=a,s.reject=r,s},tp=a=>a==null?"":""+a,rh=(a,r,s)=>{a.forEach(o=>{r[o]&&(s[o]=r[o])})},sh=/###/g,np=a=>a&&a.indexOf("###")>-1?a.replace(sh,"."):a,rp=a=>!a||re(a),$r=(a,r,s)=>{const o=re(r)?r.split("."):r;let c=0;for(;c<o.length-1;){if(rp(a))return{};const p=np(o[c]);!a[p]&&s&&(a[p]=new s),Object.prototype.hasOwnProperty.call(a,p)?a=a[p]:a={},++c}return rp(a)?{}:{obj:a,k:np(o[c])}},sp=(a,r,s)=>{const{obj:o,k:c}=$r(a,r,Object);if(o!==void 0||r.length===1){o[c]=s;return}let p=r[r.length-1],f=r.slice(0,r.length-1),h=$r(a,f,Object);for(;h.obj===void 0&&f.length;)p=`${f[f.length-1]}.${p}`,f=f.slice(0,f.length-1),h=$r(a,f,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${p}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${p}`]=s},ih=(a,r,s,o)=>{const{obj:c,k:p}=$r(a,r,Object);c[p]=c[p]||[],c[p].push(s)},hi=(a,r)=>{const{obj:s,k:o}=$r(a,r);if(s&&Object.prototype.hasOwnProperty.call(s,o))return s[o]},oh=(a,r,s)=>{const o=hi(a,s);return o!==void 0?o:hi(r,s)},Up=(a,r,s)=>{for(const o in r)o!=="__proto__"&&o!=="constructor"&&(o in a?re(a[o])||a[o]instanceof String||re(r[o])||r[o]instanceof String?s&&(a[o]=r[o]):Up(a[o],r[o],s):a[o]=r[o]);return a},wn=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ah={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const lh=a=>re(a)?a.replace(/[&<>"'\/]/g,r=>ah[r]):a;class ch{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){const s=this.regExpMap.get(r);if(s!==void 0)return s;const o=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,o),this.regExpQueue.push(r),o}}const uh=[" ",",","?","!",";"],ph=new ch(20),dh=(a,r,s)=>{r=r||"",s=s||"";const o=uh.filter(f=>r.indexOf(f)<0&&s.indexOf(f)<0);if(o.length===0)return!0;const c=ph.getRegExp(`(${o.map(f=>f==="?"?"\\?":f).join("|")})`);let p=!c.test(a);if(!p){const f=a.indexOf(s);f>0&&!c.test(a.substring(0,f))&&(p=!0)}return p},La=(a,r,s=".")=>{if(!a)return;if(a[r])return Object.prototype.hasOwnProperty.call(a,r)?a[r]:void 0;const o=r.split(s);let c=a;for(let p=0;p<o.length;){if(!c||typeof c!="object")return;let f,h="";for(let m=p;m<o.length;++m)if(m!==p&&(h+=s),h+=o[m],f=c[h],f!==void 0){if(["string","number","boolean"].indexOf(typeof f)>-1&&m<o.length-1)continue;p+=m-p+1;break}c=f}return c},Vr=a=>a==null?void 0:a.replace(/_/g,"-"),fh={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,r){var s,o;(o=(s=console==null?void 0:console[a])==null?void 0:s.apply)==null||o.call(s,console,r)}};class mi{constructor(r,s={}){this.init(r,s)}init(r,s={}){this.prefix=s.prefix||"i18next:",this.logger=r||fh,this.options=s,this.debug=s.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,s,o,c){return c&&!this.debug?null:(re(r[0])&&(r[0]=`${o}${this.prefix} ${r[0]}`),this.logger[s](r))}create(r){return new mi(this.logger,{prefix:`${this.prefix}:${r}:`,...this.options})}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new mi(this.logger,r)}}var Dt=new mi;class vi{constructor(){this.observers={}}on(r,s){return r.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const c=this.observers[o].get(s)||0;this.observers[o].set(s,c+1)}),this}off(r,s){if(this.observers[r]){if(!s){delete this.observers[r];return}this.observers[r].delete(s)}}emit(r,...s){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([c,p])=>{for(let f=0;f<p;f++)c(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,p])=>{for(let f=0;f<p;f++)c.apply(c,[r,...s])})}}class ip extends vi{constructor(r,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){const s=this.options.ns.indexOf(r);s>-1&&this.options.ns.splice(s,1)}getResource(r,s,o,c={}){var x,C;const p=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,f=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;r.indexOf(".")>-1?h=r.split("."):(h=[r,s],o&&(Array.isArray(o)?h.push(...o):re(o)&&p?h.push(...o.split(p)):h.push(o)));const m=hi(this.data,h);return!m&&!s&&!o&&r.indexOf(".")>-1&&(r=h[0],s=h[1],o=h.slice(2).join(".")),m||!f||!re(o)?m:La((C=(x=this.data)==null?void 0:x[r])==null?void 0:C[s],o,p)}addResource(r,s,o,c,p={silent:!1}){const f=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator;let h=[r,s];o&&(h=h.concat(f?o.split(f):o)),r.indexOf(".")>-1&&(h=r.split("."),c=s,s=h[1]),this.addNamespaces(s),sp(this.data,h,c),p.silent||this.emit("added",r,s,o,c)}addResources(r,s,o,c={silent:!1}){for(const p in o)(re(o[p])||Array.isArray(o[p]))&&this.addResource(r,s,p,o[p],{silent:!0});c.silent||this.emit("added",r,s,o)}addResourceBundle(r,s,o,c,p,f={silent:!1,skipCopy:!1}){let h=[r,s];r.indexOf(".")>-1&&(h=r.split("."),c=o,o=s,s=h[1]),this.addNamespaces(s);let m=hi(this.data,h)||{};f.skipCopy||(o=JSON.parse(JSON.stringify(o))),c?Up(m,o,p):m={...m,...o},sp(this.data,h,m),f.silent||this.emit("added",r,s,o)}removeResourceBundle(r,s){this.hasResourceBundle(r,s)&&delete this.data[r][s],this.removeNamespaces(s),this.emit("removed",r,s)}hasResourceBundle(r,s){return this.getResource(r,s)!==void 0}getResourceBundle(r,s){return s||(s=this.options.defaultNS),this.getResource(r,s)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){const s=this.getDataByLanguage(r);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var bp={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,r,s,o,c){return a.forEach(p=>{var f;r=((f=this.processors[p])==null?void 0:f.process(r,s,o,c))??r}),r}};const Ip=Symbol("i18next/PATH_KEY");function hh(){const a=[],r=Object.create(null);let s;return r.get=(o,c)=>{var p;return(p=s==null?void 0:s.revoke)==null||p.call(s),c===Ip?a:(a.push(c),s=Proxy.revocable(o,r),s.proxy)},Proxy.revocable(Object.create(null),r).proxy}function Xr(a,r){const{[Ip]:s}=a(hh()),o=(r==null?void 0:r.keySeparator)??".",c=(r==null?void 0:r.nsSeparator)??":";if(s.length>1&&c){const p=r==null?void 0:r.ns;if((p?Array.isArray(p)?p:[p]:[]).includes(s[0]))return`${s[0]}${c}${s.slice(1).join(o)}`}return s.join(o)}const op={},Fa=a=>!re(a)&&typeof a!="boolean"&&typeof a!="number";class gi extends vi{constructor(r,s={}){super(),rh(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dt.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r,s={interpolation:{}}){const o={...s};if(r==null)return!1;const c=this.resolve(r,o);if((c==null?void 0:c.res)===void 0)return!1;const p=Fa(c.res);return!(o.returnObjects===!1&&p)}extractFromKey(r,s){let o=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let p=s.ns||this.options.defaultNS||[];const f=o&&r.indexOf(o)>-1,h=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!dh(r,o,c);if(f&&!h){const m=r.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:r,namespaces:re(p)?[p]:p};const x=r.split(o);(o!==c||o===c&&this.options.ns.indexOf(x[0])>-1)&&(p=x.shift()),r=x.join(c)}return{key:r,namespaces:re(p)?[p]:p}}translate(r,s,o){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),r==null)return"";typeof r=="function"&&(r=Xr(r,{...this.options,...c})),Array.isArray(r)||(r=[String(r)]),r=r.map(q=>typeof q=="function"?Xr(q,{...this.options,...c}):String(q));const p=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(r[r.length-1],c),x=m[m.length-1];let C=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;C===void 0&&(C=":");const v=c.lng||this.language,D=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return D?p?{res:`${x}${C}${h}`,usedKey:h,exactUsedKey:h,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(c)}:`${x}${C}${h}`:p?{res:h,usedKey:h,exactUsedKey:h,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(c)}:h;const A=this.resolve(r,c);let N=A==null?void 0:A.res;const T=(A==null?void 0:A.usedKey)||h,O=(A==null?void 0:A.exactUsedKey)||h,W=["[object Number]","[object Function]","[object RegExp]"],K=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,de=!this.i18nFormat||this.i18nFormat.handleAsObject,ee=c.count!==void 0&&!re(c.count),ce=gi.hasDefaultValue(c),ie=ee?this.pluralResolver.getSuffix(v,c.count,c):"",se=c.ordinal&&ee?this.pluralResolver.getSuffix(v,c.count,{ordinal:!1}):"",ve=ee&&!c.ordinal&&c.count===0,we=ve&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${ie}`]||c[`defaultValue${se}`]||c.defaultValue;let ge=N;de&&!N&&ce&&(ge=we);const Qe=Fa(ge),oe=Object.prototype.toString.apply(ge);if(de&&ge&&Qe&&W.indexOf(oe)<0&&!(re(K)&&Array.isArray(ge))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const q=this.options.returnedObjectHandler?this.options.returnedObjectHandler(T,ge,{...c,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return p?(A.res=q,A.usedParams=this.getUsedParamsDetails(c),A):q}if(f){const q=Array.isArray(ge),te=q?[]:{},fe=q?O:T;for(const ye in ge)if(Object.prototype.hasOwnProperty.call(ge,ye)){const le=`${fe}${f}${ye}`;ce&&!N?te[ye]=this.translate(le,{...c,defaultValue:Fa(we)?we[ye]:void 0,joinArrays:!1,ns:m}):te[ye]=this.translate(le,{...c,joinArrays:!1,ns:m}),te[ye]===le&&(te[ye]=ge[ye])}N=te}}else if(de&&re(K)&&Array.isArray(N))N=N.join(K),N&&(N=this.extendTranslation(N,r,c,o));else{let q=!1,te=!1;!this.isValidLookup(N)&&ce&&(q=!0,N=we),this.isValidLookup(N)||(te=!0,N=h);const ye=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&te?void 0:N,le=ce&&we!==N&&this.options.updateMissing;if(te||q||le){if(this.logger.log(le?"updateKey":"missingKey",v,x,h,le?we:N),f){const F=this.resolve(h,{...c,keySeparator:!1});F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let B=[];const H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&H&&H[0])for(let F=0;F<H.length;F++)B.push(H[F]);else this.options.saveMissingTo==="all"?B=this.languageUtils.toResolveHierarchy(c.lng||this.language):B.push(c.lng||this.language);const U=(F,E,M)=>{var G;const X=ce&&M!==N?M:ye;this.options.missingKeyHandler?this.options.missingKeyHandler(F,x,E,X,le,c):(G=this.backendConnector)!=null&&G.saveMissing&&this.backendConnector.saveMissing(F,x,E,X,le,c),this.emit("missingKey",F,x,E,N)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ee?B.forEach(F=>{const E=this.pluralResolver.getSuffixes(F,c);ve&&c[`defaultValue${this.options.pluralSeparator}zero`]&&E.indexOf(`${this.options.pluralSeparator}zero`)<0&&E.push(`${this.options.pluralSeparator}zero`),E.forEach(M=>{U([F],h+M,c[`defaultValue${M}`]||we)})}):U(B,h,we))}N=this.extendTranslation(N,r,c,A,o),te&&N===h&&this.options.appendNamespaceToMissingKey&&(N=`${x}${C}${h}`),(te||q)&&this.options.parseMissingKeyHandler&&(N=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${C}${h}`:h,q?N:void 0,c))}return p?(A.res=N,A.usedParams=this.getUsedParamsDetails(c),A):N}extendTranslation(r,s,o,c,p){var m,x;if((m=this.i18nFormat)!=null&&m.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const C=re(r)&&(((x=o==null?void 0:o.interpolation)==null?void 0:x.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(C){const A=r.match(this.interpolator.nestingRegexp);v=A&&A.length}let D=o.replace&&!re(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(D={...this.options.interpolation.defaultVariables,...D}),r=this.interpolator.interpolate(r,D,o.lng||this.language||c.usedLng,o),C){const A=r.match(this.interpolator.nestingRegexp),N=A&&A.length;v<N&&(o.nest=!1)}!o.lng&&c&&c.res&&(o.lng=this.language||c.usedLng),o.nest!==!1&&(r=this.interpolator.nest(r,(...A)=>(p==null?void 0:p[0])===A[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${s[0]}`),null):this.translate(...A,s),o)),o.interpolation&&this.interpolator.reset()}const f=o.postProcess||this.options.postProcess,h=re(f)?[f]:f;return r!=null&&(h!=null&&h.length)&&o.applyPostProcessor!==!1&&(r=bp.handle(h,r,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),r}resolve(r,s={}){let o,c,p,f,h;return re(r)&&(r=[r]),Array.isArray(r)&&(r=r.map(m=>typeof m=="function"?Xr(m,{...this.options,...s}):m)),r.forEach(m=>{if(this.isValidLookup(o))return;const x=this.extractFromKey(m,s),C=x.key;c=C;let v=x.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const D=s.count!==void 0&&!re(s.count),A=D&&!s.ordinal&&s.count===0,N=s.context!==void 0&&(re(s.context)||typeof s.context=="number")&&s.context!=="",T=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);v.forEach(O=>{var W,K;this.isValidLookup(o)||(h=O,!op[`${T[0]}-${O}`]&&((W=this.utils)!=null&&W.hasLoadedNamespace)&&!((K=this.utils)!=null&&K.hasLoadedNamespace(h))&&(op[`${T[0]}-${O}`]=!0,this.logger.warn(`key "${c}" for languages "${T.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),T.forEach(de=>{var ie;if(this.isValidLookup(o))return;f=de;const ee=[C];if((ie=this.i18nFormat)!=null&&ie.addLookupKeys)this.i18nFormat.addLookupKeys(ee,C,de,O,s);else{let se;D&&(se=this.pluralResolver.getSuffix(de,s.count,s));const ve=`${this.options.pluralSeparator}zero`,we=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(D&&(s.ordinal&&se.indexOf(we)===0&&ee.push(C+se.replace(we,this.options.pluralSeparator)),ee.push(C+se),A&&ee.push(C+ve)),N){const ge=`${C}${this.options.contextSeparator||"_"}${s.context}`;ee.push(ge),D&&(s.ordinal&&se.indexOf(we)===0&&ee.push(ge+se.replace(we,this.options.pluralSeparator)),ee.push(ge+se),A&&ee.push(ge+ve))}}let ce;for(;ce=ee.pop();)this.isValidLookup(o)||(p=ce,o=this.getResource(de,O,ce,s))}))})}),{res:o,usedKey:c,exactUsedKey:p,usedLng:f,usedNS:h}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,s,o,c={}){var p;return(p=this.i18nFormat)!=null&&p.getResource?this.i18nFormat.getResource(r,s,o,c):this.resourceStore.getResource(r,s,o,c)}getUsedParamsDetails(r={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=r.replace&&!re(r.replace);let c=o?r.replace:r;if(o&&typeof r.count<"u"&&(c.count=r.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!o){c={...c};for(const p of s)delete c[p]}return c}static hasDefaultValue(r){const s="defaultValue";for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&s===o.substring(0,s.length)&&r[o]!==void 0)return!0;return!1}}class ap{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(r){if(r=Vr(r),!r||r.indexOf("-")<0)return null;const s=r.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(r){if(r=Vr(r),!r||r.indexOf("-")<0)return r;const s=r.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(r){if(re(r)&&r.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(r)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let s;return r.forEach(o=>{if(s)return;const c=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&r.forEach(o=>{if(s)return;const c=this.getScriptPartFromCode(o);if(this.isSupportedCode(c))return s=c;const p=this.getLanguagePartFromCode(o);if(this.isSupportedCode(p))return s=p;s=this.options.supportedLngs.find(f=>{if(f===p)return f;if(!(f.indexOf("-")<0&&p.indexOf("-")<0)&&(f.indexOf("-")>0&&p.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===p||f.indexOf(p)===0&&p.length>1))return f})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(r,s){if(!r)return[];if(typeof r=="function"&&(r=r(s)),re(r)&&(r=[r]),Array.isArray(r))return r;if(!s)return r.default||[];let o=r[s];return o||(o=r[this.getScriptPartFromCode(s)]),o||(o=r[this.formatLanguageCode(s)]),o||(o=r[this.getLanguagePartFromCode(s)]),o||(o=r.default),o||[]}toResolveHierarchy(r,s){const o=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],r),c=[],p=f=>{f&&(this.isSupportedCode(f)?c.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return re(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&p(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&p(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&p(this.getLanguagePartFromCode(r))):re(r)&&p(this.formatLanguageCode(r)),o.forEach(f=>{c.indexOf(f)<0&&p(this.formatLanguageCode(f))}),c}}const lp={zero:0,one:1,two:2,few:3,many:4,other:5},cp={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class mh{constructor(r,s={}){this.languageUtils=r,this.options=s,this.logger=Dt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,s={}){const o=Vr(r==="dev"?"en":r),c=s.ordinal?"ordinal":"cardinal",p=JSON.stringify({cleanedCode:o,type:c});if(p in this.pluralRulesCache)return this.pluralRulesCache[p];let f;try{f=new Intl.PluralRules(o,{type:c})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),cp;if(!r.match(/-|_/))return cp;const m=this.languageUtils.getLanguagePartFromCode(r);f=this.getRule(m,s)}return this.pluralRulesCache[p]=f,f}needsPlural(r,s={}){let o=this.getRule(r,s);return o||(o=this.getRule("dev",s)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(r,s,o={}){return this.getSuffixes(r,o).map(c=>`${s}${c}`)}getSuffixes(r,s={}){let o=this.getRule(r,s);return o||(o=this.getRule("dev",s)),o?o.resolvedOptions().pluralCategories.sort((c,p)=>lp[c]-lp[p]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(r,s,o={}){const c=this.getRule(r,o);return c?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",s,o))}}const up=(a,r,s,o=".",c=!0)=>{let p=oh(a,r,s);return!p&&c&&re(s)&&(p=La(a,s,o),p===void 0&&(p=La(r,s,o))),p},Ca=a=>a.replace(/\$/g,"$$$$");class pp{constructor(r={}){var s;this.logger=Dt.create("interpolator"),this.options=r,this.format=((s=r==null?void 0:r.interpolation)==null?void 0:s.format)||(o=>o),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});const{escape:s,escapeValue:o,useRawValueToEscape:c,prefix:p,prefixEscaped:f,suffix:h,suffixEscaped:m,formatSeparator:x,unescapeSuffix:C,unescapePrefix:v,nestingPrefix:D,nestingPrefixEscaped:A,nestingSuffix:N,nestingSuffixEscaped:T,nestingOptionsSeparator:O,maxReplaces:W,alwaysFormat:K}=r.interpolation;this.escape=s!==void 0?s:lh,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=p?wn(p):f||"{{",this.suffix=h?wn(h):m||"}}",this.formatSeparator=x||",",this.unescapePrefix=C?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":C||"",this.nestingPrefix=D?wn(D):A||wn("$t("),this.nestingSuffix=N?wn(N):T||wn(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=W||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const r=(s,o)=>(s==null?void 0:s.source)===o?(s.lastIndex=0,s):new RegExp(o,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,s,o,c){var A;let p,f,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=N=>{if(N.indexOf(this.formatSeparator)<0){const K=up(s,m,N,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(K,void 0,o,{...c,...s,interpolationkey:N}):K}const T=N.split(this.formatSeparator),O=T.shift().trim(),W=T.join(this.formatSeparator).trim();return this.format(up(s,m,O,this.options.keySeparator,this.options.ignoreJSONStructure),W,o,{...c,...s,interpolationkey:O})};this.resetRegExp();const C=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((A=c==null?void 0:c.interpolation)==null?void 0:A.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:N=>Ca(N)},{regex:this.regexp,safeValue:N=>this.escapeValue?Ca(this.escape(N)):Ca(N)}].forEach(N=>{for(h=0;p=N.regex.exec(r);){const T=p[1].trim();if(f=x(T),f===void 0)if(typeof C=="function"){const W=C(r,p,c);f=re(W)?W:""}else if(c&&Object.prototype.hasOwnProperty.call(c,T))f="";else if(v){f=p[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${r}`),f="";else!re(f)&&!this.useRawValueToEscape&&(f=tp(f));const O=N.safeValue(f);if(r=r.replace(p[0],O),v?(N.regex.lastIndex+=f.length,N.regex.lastIndex-=p[0].length):N.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),r}nest(r,s,o={}){let c,p,f;const h=(m,x)=>{const C=this.nestingOptionsSeparator;if(m.indexOf(C)<0)return m;const v=m.split(new RegExp(`${wn(C)}[ ]*{`));let D=`{${v[1]}`;m=v[0],D=this.interpolate(D,f);const A=D.match(/'/g),N=D.match(/"/g);(((A==null?void 0:A.length)??0)%2===0&&!N||((N==null?void 0:N.length)??0)%2!==0)&&(D=D.replace(/'/g,'"'));try{f=JSON.parse(D),x&&(f={...x,...f})}catch(T){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,T),`${m}${C}${D}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,m};for(;c=this.nestingRegexp.exec(r);){let m=[];f={...o},f=f.replace&&!re(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const x=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(x!==-1&&(m=c[1].slice(x).split(this.formatSeparator).map(C=>C.trim()).filter(Boolean),c[1]=c[1].slice(0,x)),p=s(h.call(this,c[1].trim(),f),f),p&&c[0]===r&&!re(p))return p;re(p)||(p=tp(p)),p||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${r}`),p=""),m.length&&(p=m.reduce((C,v)=>this.format(C,v,o.lng,{...o,interpolationkey:c[1].trim()}),p.trim())),r=r.replace(c[0],p),this.regexp.lastIndex=0}return r}}const gh=a=>{let r=a.toLowerCase().trim();const s={};if(a.indexOf("(")>-1){const o=a.split("(");r=o[0].toLowerCase().trim();const c=o[1].substring(0,o[1].length-1);r==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):r==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(f=>{if(f){const[h,...m]=f.split(":"),x=m.join(":").trim().replace(/^'+|'+$/g,""),C=h.trim();s[C]||(s[C]=x),x==="false"&&(s[C]=!1),x==="true"&&(s[C]=!0),isNaN(x)||(s[C]=parseInt(x,10))}})}return{formatName:r,formatOptions:s}},dp=a=>{const r={};return(s,o,c)=>{let p=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(p={...p,[c.interpolationkey]:void 0});const f=o+JSON.stringify(p);let h=r[f];return h||(h=a(Vr(o),c),r[f]=h),h(s)}},yh=a=>(r,s,o)=>a(Vr(s),o)(r);class xh{constructor(r={}){this.logger=Dt.create("formatter"),this.options=r,this.init(r)}init(r,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const o=s.cacheInBuiltFormats?dp:yh;this.formats={number:o((c,p)=>{const f=new Intl.NumberFormat(c,{...p});return h=>f.format(h)}),currency:o((c,p)=>{const f=new Intl.NumberFormat(c,{...p,style:"currency"});return h=>f.format(h)}),datetime:o((c,p)=>{const f=new Intl.DateTimeFormat(c,{...p});return h=>f.format(h)}),relativetime:o((c,p)=>{const f=new Intl.RelativeTimeFormat(c,{...p});return h=>f.format(h,p.range||"day")}),list:o((c,p)=>{const f=new Intl.ListFormat(c,{...p});return h=>f.format(h)})}}add(r,s){this.formats[r.toLowerCase().trim()]=s}addCached(r,s){this.formats[r.toLowerCase().trim()]=dp(s)}format(r,s,o,c={}){const p=s.split(this.formatSeparator);if(p.length>1&&p[0].indexOf("(")>1&&p[0].indexOf(")")<0&&p.find(h=>h.indexOf(")")>-1)){const h=p.findIndex(m=>m.indexOf(")")>-1);p[0]=[p[0],...p.splice(1,h)].join(this.formatSeparator)}return p.reduce((h,m)=>{var v;const{formatName:x,formatOptions:C}=gh(m);if(this.formats[x]){let D=h;try{const A=((v=c==null?void 0:c.formatParams)==null?void 0:v[c.interpolationkey])||{},N=A.locale||A.lng||c.locale||c.lng||o;D=this.formats[x](h,N,{...C,...c,...A})}catch(A){this.logger.warn(A)}return D}else this.logger.warn(`there was no format function for ${x}`);return h},r)}}const vh=(a,r)=>{a.pending[r]!==void 0&&(delete a.pending[r],a.pendingCount--)};class wh extends vi{constructor(r,s,o,c={}){var p,f;super(),this.backend=r,this.store=s,this.services=o,this.languageUtils=o.languageUtils,this.options=c,this.logger=Dt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(f=(p=this.backend)==null?void 0:p.init)==null||f.call(p,o,c.backend,c)}queueLoad(r,s,o,c){const p={},f={},h={},m={};return r.forEach(x=>{let C=!0;s.forEach(v=>{const D=`${x}|${v}`;!o.reload&&this.store.hasResourceBundle(x,v)?this.state[D]=2:this.state[D]<0||(this.state[D]===1?f[D]===void 0&&(f[D]=!0):(this.state[D]=1,C=!1,f[D]===void 0&&(f[D]=!0),p[D]===void 0&&(p[D]=!0),m[v]===void 0&&(m[v]=!0)))}),C||(h[x]=!0)}),(Object.keys(p).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(f),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(r,s,o){const c=r.split("|"),p=c[0],f=c[1];s&&this.emit("failedLoading",p,f,s),!s&&o&&this.store.addResourceBundle(p,f,o,void 0,void 0,{skipCopy:!0}),this.state[r]=s?-1:2,s&&o&&(this.state[r]=0);const h={};this.queue.forEach(m=>{ih(m.loaded,[p],f),vh(m,r),s&&m.errors.push(s),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(x=>{h[x]||(h[x]={});const C=m.loaded[x];C.length&&C.forEach(v=>{h[x][v]===void 0&&(h[x][v]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(r,s,o,c=0,p=this.retryTimeout,f){if(!r.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:s,fcName:o,tried:c,wait:p,callback:f});return}this.readingCalls++;const h=(x,C)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(x&&C&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,r,s,o,c+1,p*2,f)},p);return}f(x,C)},m=this.backend[o].bind(this.backend);if(m.length===2){try{const x=m(r,s);x&&typeof x.then=="function"?x.then(C=>h(null,C)).catch(h):h(null,x)}catch(x){h(x)}return}return m(r,s,h)}prepareLoading(r,s,o={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();re(r)&&(r=this.languageUtils.toResolveHierarchy(r)),re(s)&&(s=[s]);const p=this.queueLoad(r,s,o,c);if(!p.toLoad.length)return p.pending.length||c(),null;p.toLoad.forEach(f=>{this.loadOne(f)})}load(r,s,o){this.prepareLoading(r,s,{},o)}reload(r,s,o){this.prepareLoading(r,s,{reload:!0},o)}loadOne(r,s=""){const o=r.split("|"),c=o[0],p=o[1];this.read(c,p,"read",void 0,void 0,(f,h)=>{f&&this.logger.warn(`${s}loading namespace ${p} for language ${c} failed`,f),!f&&h&&this.logger.log(`${s}loaded namespace ${p} for language ${c}`,h),this.loaded(r,f,h)})}saveMissing(r,s,o,c,p,f={},h=()=>{}){var m,x,C,v,D;if((x=(m=this.services)==null?void 0:m.utils)!=null&&x.hasLoadedNamespace&&!((v=(C=this.services)==null?void 0:C.utils)!=null&&v.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${o}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if((D=this.backend)!=null&&D.create){const A={...f,isUpdate:p},N=this.backend.create.bind(this.backend);if(N.length<6)try{let T;N.length===5?T=N(r,s,o,c,A):T=N(r,s,o,c),T&&typeof T.then=="function"?T.then(O=>h(null,O)).catch(h):h(null,T)}catch(T){h(T)}else N(r,s,o,c,h,A)}!r||!r[0]||this.store.addResource(r[0],s,o,c)}}}const ka=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a=>{let r={};if(typeof a[1]=="object"&&(r=a[1]),re(a[1])&&(r.defaultValue=a[1]),re(a[2])&&(r.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const s=a[3]||a[2];Object.keys(s).forEach(o=>{r[o]=s[o]})}return r},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),fp=a=>{var r,s;return re(a.ns)&&(a.ns=[a.ns]),re(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),re(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((s=(r=a.supportedLngs)==null?void 0:r.indexOf)==null?void 0:s.call(r,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},ii=()=>{},Sh=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(s=>{typeof a[s]=="function"&&(a[s]=a[s].bind(a))})},$p="__i18next_supportNoticeShown",Fh=()=>typeof globalThis<"u"&&!!globalThis[$p],Ch=()=>{typeof globalThis<"u"&&(globalThis[$p]=!0)},kh=a=>{var r,s,o,c,p,f,h,m,x,C,v,D,A;return!!(((o=(s=(r=a==null?void 0:a.modules)==null?void 0:r.backend)==null?void 0:s.name)==null?void 0:o.indexOf("Locize"))>0||((h=(f=(p=(c=a==null?void 0:a.modules)==null?void 0:c.backend)==null?void 0:p.constructor)==null?void 0:f.name)==null?void 0:h.indexOf("Locize"))>0||(x=(m=a==null?void 0:a.options)==null?void 0:m.backend)!=null&&x.backends&&a.options.backend.backends.some(N=>{var T,O,W;return((T=N==null?void 0:N.name)==null?void 0:T.indexOf("Locize"))>0||((W=(O=N==null?void 0:N.constructor)==null?void 0:O.name)==null?void 0:W.indexOf("Locize"))>0})||(v=(C=a==null?void 0:a.options)==null?void 0:C.backend)!=null&&v.projectId||(A=(D=a==null?void 0:a.options)==null?void 0:D.backend)!=null&&A.backendOptions&&a.options.backend.backendOptions.some(N=>N==null?void 0:N.projectId))};class Zr extends vi{constructor(r={},s){if(super(),this.options=fp(r),this.services={},this.logger=Dt,this.modules={external:[]},Sh(this),s&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,s),this;setTimeout(()=>{this.init(r,s)},0)}}init(r={},s){this.isInitializing=!0,typeof r=="function"&&(s=r,r={}),r.defaultNS==null&&r.ns&&(re(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const o=ka();this.options={...o,...this.options,...fp(r)},this.options.interpolation={...o.interpolation,...this.options.interpolation},r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!kh(this)&&!Fh()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Ch());const c=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?Dt.init(c(this.modules.logger),this.options):Dt.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=xh;const C=new ap(this.options);this.store=new ip(this.options.resources,this.options);const v=this.services;v.logger=Dt,v.resourceStore=this.store,v.languageUtils=C,v.pluralResolver=new mh(C,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),x&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(v.formatter=c(x),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new pp(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new wh(c(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(A,...N)=>{this.emit(A,...N)}),this.modules.languageDetector&&(v.languageDetector=c(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=c(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new gi(this.services,this.options),this.translator.on("*",(A,...N)=>{this.emit(A,...N)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,s||(s=ii),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(x=>{this[x]=(...C)=>this.store[x](...C)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...C)=>(this.store[x](...C),this)});const h=Ur(),m=()=>{const x=(C,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(v),s(C,v)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(r,s=ii){var p,f;let o=s;const c=re(r)?r:this.language;if(typeof r=="function"&&(o=r),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const h=[],m=x=>{if(!x||x==="cimode")return;this.services.languageUtils.toResolveHierarchy(x).forEach(v=>{v!=="cimode"&&h.indexOf(v)<0&&h.push(v)})};c?m(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(C=>m(C)),(f=(p=this.options.preload)==null?void 0:p.forEach)==null||f.call(p,x=>m(x)),this.services.backendConnector.load(h,this.options.ns,x=>{!x&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(x)})}else o(null)}reloadResources(r,s,o){const c=Ur();return typeof r=="function"&&(o=r,r=void 0),typeof s=="function"&&(o=s,s=void 0),r||(r=this.languages),s||(s=this.options.ns),o||(o=ii),this.services.backendConnector.reload(r,s,p=>{c.resolve(),o(p)}),c}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&bp.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1)){for(let s=0;s<this.languages.length;s++){const o=this.languages[s];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(r)<0&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,s){this.isLanguageChangingTo=r;const o=Ur();this.emit("languageChanging",r);const c=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},p=(h,m)=>{m?this.isLanguageChangingTo===r&&(c(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,o.resolve((...x)=>this.t(...x)),s&&s(h,(...x)=>this.t(...x))},f=h=>{var C,v;!r&&!h&&this.services.languageDetector&&(h=[]);const m=re(h)?h:h&&h[0],x=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(re(h)?[h]:h);x&&(this.language||c(x),this.translator.language||this.translator.changeLanguage(x),(v=(C=this.services.languageDetector)==null?void 0:C.cacheUserLanguage)==null||v.call(C,x)),this.loadResources(x,D=>{p(D,x)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(r),o}getFixedT(r,s,o){const c=(p,f,...h)=>{let m;typeof f!="object"?m=this.options.overloadTranslationOptionHandler([p,f].concat(h)):m={...f},m.lng=m.lng||c.lng,m.lngs=m.lngs||c.lngs,m.ns=m.ns||c.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||o||c.keyPrefix);const x=this.options.keySeparator||".";let C;return m.keyPrefix&&Array.isArray(p)?C=p.map(v=>(typeof v=="function"&&(v=Xr(v,{...this.options,...f})),`${m.keyPrefix}${x}${v}`)):(typeof p=="function"&&(p=Xr(p,{...this.options,...f})),C=m.keyPrefix?`${m.keyPrefix}${x}${p}`:p),this.t(C,m)};return re(r)?c.lng=r:c.lngs=r,c.ns=s,c.keyPrefix=o,c}t(...r){var s;return(s=this.translator)==null?void 0:s.translate(...r)}exists(...r){var s;return(s=this.translator)==null?void 0:s.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const f=(h,m)=>{const x=this.services.backendConnector.state[`${h}|${m}`];return x===-1||x===0||x===2};if(s.precheck){const h=s.precheck(this,f);if(h!==void 0)return h}return!!(this.hasResourceBundle(o,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(o,r)&&(!c||f(p,r)))}loadNamespaces(r,s){const o=Ur();return this.options.ns?(re(r)&&(r=[r]),r.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{o.resolve(),s&&s(c)}),o):(s&&s(),Promise.resolve())}loadLanguages(r,s){const o=Ur();re(r)&&(r=[r]);const c=this.options.preload||[],p=r.filter(f=>c.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return p.length?(this.options.preload=c.concat(p),this.loadResources(f=>{o.resolve(),s&&s(f)}),o):(s&&s(),Promise.resolve())}dir(r){var c,p;if(r||(r=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!r)return"rtl";try{const f=new Intl.Locale(r);if(f&&f.getTextInfo){const h=f.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=((p=this.services)==null?void 0:p.languageUtils)||new ap(ka());return r.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(o.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},s){const o=new Zr(r,s);return o.createInstance=Zr.createInstance,o}cloneInstance(r={},s=ii){const o=r.forkResourceStore;o&&delete r.forkResourceStore;const c={...this.options,...r,isClone:!0},p=new Zr(c);if((r.debug!==void 0||r.prefix!==void 0)&&(p.logger=p.logger.clone(r)),["store","services","language"].forEach(h=>{p[h]=this[h]}),p.services={...this.services},p.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},o){const h=Object.keys(this.store.data).reduce((m,x)=>(m[x]={...this.store.data[x]},m[x]=Object.keys(m[x]).reduce((C,v)=>(C[v]={...m[x][v]},C),m[x]),m),{});p.store=new ip(h,c),p.services.resourceStore=p.store}if(r.interpolation){const m={...ka().interpolation,...this.options.interpolation,...r.interpolation},x={...c,interpolation:m};p.services.interpolator=new pp(x)}return p.translator=new gi(p.services,c),p.translator.on("*",(h,...m)=>{p.emit(h,...m)}),p.init(c,s),p.translator.options=c,p.translator.backendConnector.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const qe=Zr.createInstance();qe.createInstance;qe.dir;qe.init;qe.loadResources;qe.reloadResources;qe.use;qe.changeLanguage;qe.getFixedT;qe.t;qe.exists;qe.setDefaultNamespace;qe.hasLoadedNamespace;qe.loadNamespaces;qe.loadLanguages;const Eh=(a,r,s,o)=>{var p,f,h,m;const c=[s,{code:r,...o||{}}];if((f=(p=a==null?void 0:a.services)==null?void 0:p.logger)!=null&&f.forward)return a.services.logger.forward(c,"warn","react-i18next::",!0);Sn(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(m=(h=a==null?void 0:a.services)==null?void 0:h.logger)!=null&&m.warn?a.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},hp={},Xp=(a,r,s,o)=>{Sn(s)&&hp[s]||(Sn(s)&&(hp[s]=new Date),Eh(a,r,s,o))},Zp=(a,r)=>()=>{if(a.isInitialized)r();else{const s=()=>{setTimeout(()=>{a.off("initialized",s)},0),r()};a.on("initialized",s)}},Oa=(a,r,s)=>{a.loadNamespaces(r,Zp(a,s))},mp=(a,r,s,o)=>{if(Sn(s)&&(s=[s]),a.options.preload&&a.options.preload.indexOf(r)>-1)return Oa(a,s,o);s.forEach(c=>{a.options.ns.indexOf(c)<0&&a.options.ns.push(c)}),a.loadLanguages(r,Zp(a,o))},_h=(a,r,s={})=>!r.languages||!r.languages.length?(Xp(r,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:r.languages}),!0):r.hasLoadedNamespace(a,{lng:s.lng,precheck:(o,c)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,a))return!1}}),Sn=a=>typeof a=="string",zh=a=>typeof a=="object"&&a!==null,Dh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Nh={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ah=a=>Nh[a],Lh=a=>a.replace(Dh,Ah);let ja={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Lh,transDefaultProps:void 0};const Oh=(a={})=>{ja={...ja,...a}},jh=()=>ja;let Vp;const Ph=a=>{Vp=a},Rh=()=>Vp,Mh={type:"3rdParty",init(a){Oh(a.options.react),Ph(a)}},Th=J.createContext();class Bh{constructor(){this.usedNamespaces={}}addUsedNamespaces(r){r.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Ea={exports:{}},_a={};/**
|
|
151
|
+
* @license React
|
|
152
|
+
* use-sync-external-store-shim.production.js
|
|
153
|
+
*
|
|
154
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the MIT license found in the
|
|
157
|
+
* LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/var gp;function Uh(){if(gp)return _a;gp=1;var a=xi();function r(v,D){return v===D&&(v!==0||1/v===1/D)||v!==v&&D!==D}var s=typeof Object.is=="function"?Object.is:r,o=a.useState,c=a.useEffect,p=a.useLayoutEffect,f=a.useDebugValue;function h(v,D){var A=D(),N=o({inst:{value:A,getSnapshot:D}}),T=N[0].inst,O=N[1];return p(function(){T.value=A,T.getSnapshot=D,m(T)&&O({inst:T})},[v,A,D]),c(function(){return m(T)&&O({inst:T}),v(function(){m(T)&&O({inst:T})})},[v]),f(A),A}function m(v){var D=v.getSnapshot;v=v.value;try{var A=D();return!s(v,A)}catch{return!0}}function x(v,D){return D()}var C=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:h;return _a.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:C,_a}var yp;function bh(){return yp||(yp=1,Ea.exports=Uh()),Ea.exports}var Ih=bh();const $h=(a,r)=>{if(Sn(r))return r;if(zh(r)&&Sn(r.defaultValue))return r.defaultValue;if(typeof a=="function")return"";if(Array.isArray(a)){const s=a[a.length-1];return typeof s=="function"?"":s}return a},Xh={t:$h,ready:!1},Zh=()=>()=>{},wi=(a,r={})=>{var we,ge,Qe;const{i18n:s}=r,{i18n:o,defaultNS:c}=J.useContext(Th)||{},p=s||o||Rh();p&&!p.reportNamespaces&&(p.reportNamespaces=new Bh),p||Xp(p,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const f=J.useMemo(()=>{var oe;return{...jh(),...(oe=p==null?void 0:p.options)==null?void 0:oe.react,...r}},[p,r]),{useSuspense:h,keyPrefix:m}=f,x=c||((we=p==null?void 0:p.options)==null?void 0:we.defaultNS),C=Sn(x)?[x]:x||["translation"],v=J.useMemo(()=>C,C);(Qe=(ge=p==null?void 0:p.reportNamespaces)==null?void 0:ge.addUsedNamespaces)==null||Qe.call(ge,v);const D=J.useRef(0),A=J.useCallback(oe=>{if(!p)return Zh;const{bindI18n:q,bindI18nStore:te}=f,fe=()=>{D.current+=1,oe()};return q&&p.on(q,fe),te&&p.store.on(te,fe),()=>{q&&q.split(" ").forEach(ye=>p.off(ye,fe)),te&&te.split(" ").forEach(ye=>p.store.off(ye,fe))}},[p,f]),N=J.useRef(),T=J.useCallback(()=>{if(!p)return Xh;const oe=!!(p.isInitialized||p.initializedStoreOnce)&&v.every(B=>_h(B,p,f)),q=r.lng||p.language,te=D.current,fe=N.current;if(fe&&fe.ready===oe&&fe.lng===q&&fe.keyPrefix===m&&fe.revision===te)return fe;const le={t:p.getFixedT(q,f.nsMode==="fallback"?v:v[0],m),ready:oe,lng:q,keyPrefix:m,revision:te};return N.current=le,le},[p,v,m,f,r.lng]),[O,W]=J.useState(0),{t:K,ready:de}=Ih.useSyncExternalStore(A,T,T);J.useEffect(()=>{if(p&&!de&&!h){const oe=()=>W(q=>q+1);r.lng?mp(p,r.lng,v,oe):Oa(p,v,oe)}},[p,r.lng,v,de,h,O]);const ee=p||{},ce=J.useRef(null),ie=J.useRef(),se=oe=>{const q=Object.getOwnPropertyDescriptors(oe);q.__original&&delete q.__original;const te=Object.create(Object.getPrototypeOf(oe),q);if(!Object.prototype.hasOwnProperty.call(te,"__original"))try{Object.defineProperty(te,"__original",{value:oe,writable:!1,enumerable:!1,configurable:!1})}catch{}return te},ve=J.useMemo(()=>{const oe=ee,q=oe==null?void 0:oe.language;let te=oe;oe&&(ce.current&&ce.current.__original===oe?ie.current!==q?(te=se(oe),ce.current=te,ie.current=q):te=ce.current:(te=se(oe),ce.current=te,ie.current=q));const fe=[K,te,de];return fe.t=K,fe.i18n=te,fe.ready=de,fe},[K,ee,de,ee.resolvedLanguage,ee.language,ee.languages]);if(p&&h&&!de)throw new Promise(oe=>{const q=()=>oe();r.lng?mp(p,r.lng,v,q):Oa(p,v,q)});return ve},Vh=({isOpen:a,onClose:r})=>{const{t:s,i18n:o}=wi(),[c,p]=J.useState("general"),[f,h]=J.useState({provider:"openai",apiKey:"",baseURL:"",model:"",temperature:.7,systemPrompt:"",memoryMaintenanceCron:"0 0 * * *",workspace:""}),[m,x]=J.useState(!1),[C,v]=J.useState(null),[D,A]=J.useState(!1),[N,T]=J.useState([]),[O,W]=J.useState(""),[K,de]=J.useState(""),[ee,ce]=J.useState("daily"),[ie,se]=J.useState("00:00"),[ve,we]=J.useState("1");J.useEffect(()=>{a&&le()},[a]),J.useEffect(()=>{f.memoryMaintenanceCron&&ge(f.memoryMaintenanceCron)},[f.memoryMaintenanceCron]);const ge=E=>{const M=E.split(" ");if(M.length!==5){ce("custom");return}const[X,G,ue,Se,he]=M;if(ue==="*"&&Se==="*"&&he==="*"){ce("daily"),se(`${G.padStart(2,"0")}:${X.padStart(2,"0")}`);return}if(ue==="*"&&Se==="*"&&he!=="*"){ce("weekly"),se(`${G.padStart(2,"0")}:${X.padStart(2,"0")}`),we(he);return}ce("custom")},Qe=E=>{ce(E),E==="daily"?(h(M=>({...M,memoryMaintenanceCron:"0 0 * * *"})),se("00:00")):E==="weekly"&&(h(M=>({...M,memoryMaintenanceCron:"0 0 * * 0"})),se("00:00"),we("0"))},oe=E=>{if(se(E),ee==="daily"){const[M,X]=E.split(":");h(G=>({...G,memoryMaintenanceCron:`${parseInt(X)} ${parseInt(M)} * * *`}))}else if(ee==="weekly"){const[M,X]=E.split(":");h(G=>({...G,memoryMaintenanceCron:`${parseInt(X)} ${parseInt(M)} * * ${ve}`}))}},q=E=>{if(we(E),ee==="weekly"){const[M,X]=ie.split(":");h(G=>({...G,memoryMaintenanceCron:`${parseInt(X)} ${parseInt(M)} * * ${E}`}))}},te=async E=>{try{const X=await(await fetch("http://localhost:3001/api/fs/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:E})})).json();if(X.error)throw new Error(X.error);W(X.current),de(X.parent),T(X.items||[])}catch(M){console.error(M)}},fe=()=>{A(!0),te(f.workspace||void 0)},ye=E=>{h({...f,workspace:E}),A(!1)},le=async()=>{try{const M=await(await fetch("http://localhost:3001/api/config")).json();h({provider:M.provider||"openai",apiKey:M.apiKey||"",baseURL:M.baseURL||"",model:M.model||"",temperature:M.temperature||.7,systemPrompt:M.systemPrompt||"",memoryMaintenanceCron:M.memoryMaintenanceCron||"0 0 * * *",workspace:M.workspace||""})}catch(E){console.error("Failed to fetch config:",E)}},B=async()=>{x(!0),v(null);try{const M=await(await fetch("http://localhost:3001/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})).json();M.status==="success"?(v({type:"success",text:s("messages.savedSuccess")}),setTimeout(()=>{v(null)},3e3)):v({type:"error",text:M.message||s("messages.saveFailed")})}catch{v({type:"error",text:s("messages.networkError")})}finally{x(!1)}},H=async()=>{try{const M=await(await fetch("http://localhost:3001/api/scheduler/run",{method:"POST"})).json();M.status==="success"?v({type:"success",text:s("messages.maintenanceSuccess")}):v({type:"error",text:M.message})}catch{v({type:"error",text:s("messages.networkError")})}},U=()=>{const M=(o.resolvedLanguage||o.language).startsWith("en")?"zh":"en";o.changeLanguage(M)},F=()=>(o.resolvedLanguage||o.language).startsWith("en")?"English":"中文";return a?y.jsx("div",{"trae-inspector-start-line":"237","trae-inspector-start-column":"4","trae-inspector-end-line":"585","trae-inspector-end-column":"10","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:y.jsxs("div",{"trae-inspector-start-line":"238","trae-inspector-start-column":"6","trae-inspector-end-line":"584","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"bg-white rounded-2xl shadow-xl w-full max-w-2xl overflow-hidden animate-in fade-in zoom-in duration-200 flex flex-col max-h-[90vh]",children:[y.jsxs("div",{"trae-inspector-start-line":"239","trae-inspector-start-column":"8","trae-inspector-end-line":"247","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-6 border-b border-gray-100 flex justify-between items-center",children:[y.jsxs("div",{"trae-inspector-start-line":"240","trae-inspector-start-column":"10","trae-inspector-end-line":"243","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2 text-gray-800",children:[y.jsx(Bp,{size:20,className:"text-blue-600"}),y.jsx("h2",{"trae-inspector-start-line":"242","trae-inspector-start-column":"12","trae-inspector-end-line":"242","trae-inspector-end-column":"76","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-lg font-semibold",children:s("settings.title")})]}),y.jsx("button",{"trae-inspector-start-line":"244","trae-inspector-start-column":"10","trae-inspector-end-line":"246","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:r,className:"text-gray-400 hover:text-gray-600 transition-colors",children:y.jsx(fi,{size:20})})]}),y.jsxs("div",{"trae-inspector-start-line":"249","trae-inspector-start-column":"8","trae-inspector-end-line":"268","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex border-b border-gray-100",children:[y.jsx("button",{"trae-inspector-start-line":"250","trae-inspector-start-column":"12","trae-inspector-end-line":"255","trae-inspector-end-column":"21","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>p("general"),className:`px-6 py-3 text-sm font-medium transition-colors ${c==="general"?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700"}`,children:s("settings.tabs.general")}),y.jsx("button",{"trae-inspector-start-line":"256","trae-inspector-start-column":"12","trae-inspector-end-line":"261","trae-inspector-end-column":"21","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>p("prompt"),className:`px-6 py-3 text-sm font-medium transition-colors ${c==="prompt"?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700"}`,children:s("settings.tabs.systemPrompt")}),y.jsx("button",{"trae-inspector-start-line":"262","trae-inspector-start-column":"12","trae-inspector-end-line":"267","trae-inspector-end-column":"21","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>p("scheduler"),className:`px-6 py-3 text-sm font-medium transition-colors ${c==="scheduler"?"text-blue-600 border-b-2 border-blue-600":"text-gray-500 hover:text-gray-700"}`,children:s("settings.tabs.scheduler")})]}),y.jsxs("div",{"trae-inspector-start-line":"270","trae-inspector-start-column":"8","trae-inspector-end-line":"562","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-6 overflow-y-auto flex-1",children:[C&&y.jsx("div",{"trae-inspector-start-line":"272","trae-inspector-start-column":"12","trae-inspector-end-line":"274","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:`p-3 mb-4 rounded-lg text-sm ${C.type==="success"?"bg-green-50 text-green-700 border border-green-200":"bg-red-50 text-red-700 border border-red-200"}`,children:C.text}),c==="general"&&y.jsxs("div",{"trae-inspector-start-line":"278","trae-inspector-start-column":"14","trae-inspector-end-line":"376","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-4",children:[y.jsxs("div",{"trae-inspector-start-line":"279","trae-inspector-start-column":"16","trae-inspector-end-line":"290","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg border border-gray-200",children:[y.jsxs("div",{"trae-inspector-start-line":"280","trae-inspector-start-column":"20","trae-inspector-end-line":"283","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2 text-sm font-medium text-gray-700",children:[y.jsx(B2,{size:16}),s("settings.language")]}),y.jsx("button",{"trae-inspector-start-line":"284","trae-inspector-start-column":"20","trae-inspector-end-line":"289","trae-inspector-end-column":"29","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:U,className:"px-3 py-1.5 text-sm bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 transition-colors",children:F()})]}),y.jsxs("div",{"trae-inspector-start-line":"292","trae-inspector-start-column":"16","trae-inspector-end-line":"329","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"293","trae-inspector-start-column":"20","trae-inspector-end-line":"293","trae-inspector-end-column":"113","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:s("settings.general.provider")}),y.jsxs("select",{"trae-inspector-start-line":"294","trae-inspector-start-column":"20","trae-inspector-end-line":"328","trae-inspector-end-column":"29","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:f.provider||"openai",onChange:E=>{const M=E.target.value;let X=f.baseURL,G=f.model;M==="deepseek"?(X="https://api.deepseek.com",G="deepseek-chat"):M==="minimax"?(X="https://api.minimax.chat/v1",G="abab6.5s-chat"):M==="doubao"?(X="https://ark.cn-beijing.volces.com/api/v3",G=""):M==="qwen"?(X="https://dashscope-intl.aliyuncs.com/compatible-mode/v1",G="qwen-plus"):M==="openai"&&(X="https://api.openai.com/v1"),h({...f,provider:M,baseURL:X,model:G})},className:"w-full p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm",children:[y.jsx("option",{"trae-inspector-start-line":"322","trae-inspector-start-column":"24","trae-inspector-end-line":"322","trae-inspector-end-column":"75","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22OpenAI%20%2F%20Compatible%22%2C%22textStartLine%22%3A%22322%22%2C%22textStartColumn%22%3A%2247%22%2C%22textEndLine%22%3A%22322%22%2C%22textEndColumn%22%3A%2266%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"openai",children:"OpenAI / Compatible"}),y.jsx("option",{"trae-inspector-start-line":"323","trae-inspector-start-column":"24","trae-inspector-end-line":"323","trae-inspector-end-column":"65","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22Qwen%20(%E9%80%9A%E4%B9%89%E5%8D%83%E9%97%AE)%22%2C%22textStartLine%22%3A%22323%22%2C%22textStartColumn%22%3A%2245%22%2C%22textEndLine%22%3A%22323%22%2C%22textEndColumn%22%3A%2256%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"qwen",children:"Qwen (通义千问)"}),y.jsx("option",{"trae-inspector-start-line":"324","trae-inspector-start-column":"24","trae-inspector-end-line":"324","trae-inspector-end-column":"73","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22DeepSeek%20(%E6%B7%B1%E5%BA%A6%E6%B1%82%E7%B4%A2)%22%2C%22textStartLine%22%3A%22324%22%2C%22textStartColumn%22%3A%2249%22%2C%22textEndLine%22%3A%22324%22%2C%22textEndColumn%22%3A%2264%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"deepseek",children:"DeepSeek (深度求索)"}),y.jsx("option",{"trae-inspector-start-line":"325","trae-inspector-start-column":"24","trae-inspector-end-line":"325","trae-inspector-end-column":"69","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22MiniMax%20(%E6%B5%B7%E8%9E%BA)%22%2C%22textStartLine%22%3A%22325%22%2C%22textStartColumn%22%3A%2248%22%2C%22textEndLine%22%3A%22325%22%2C%22textEndColumn%22%3A%2260%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"minimax",children:"MiniMax (海螺)"}),y.jsx("option",{"trae-inspector-start-line":"326","trae-inspector-start-column":"24","trae-inspector-end-line":"326","trae-inspector-end-column":"72","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22Doubao%20(%E8%B1%86%E5%8C%85%2F%E7%81%AB%E5%B1%B1%E5%BC%95%E6%93%8E)%22%2C%22textStartLine%22%3A%22326%22%2C%22textStartColumn%22%3A%2247%22%2C%22textEndLine%22%3A%22326%22%2C%22textEndColumn%22%3A%2263%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"doubao",children:"Doubao (豆包/火山引擎)"}),y.jsx("option",{"trae-inspector-start-line":"327","trae-inspector-start-column":"24","trae-inspector-end-line":"327","trae-inspector-end-column":"68","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22Custom%20(%E8%87%AA%E5%AE%9A%E4%B9%89)%22%2C%22textStartLine%22%3A%22327%22%2C%22textStartColumn%22%3A%2247%22%2C%22textEndLine%22%3A%22327%22%2C%22textEndColumn%22%3A%2259%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"custom",children:"Custom (自定义)"})]})]}),y.jsxs("div",{"trae-inspector-start-line":"331","trae-inspector-start-column":"16","trae-inspector-end-line":"340","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"332","trae-inspector-start-column":"20","trae-inspector-end-line":"332","trae-inspector-end-column":"111","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:s("settings.general.apiKey")}),y.jsx("input",{"trae-inspector-start-line":"333","trae-inspector-start-column":"20","trae-inspector-end-line":"339","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"password",value:f.apiKey,onChange:E=>h({...f,apiKey:E.target.value}),placeholder:"sk-...",className:"w-full p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm"})]}),y.jsxs("div",{"trae-inspector-start-line":"342","trae-inspector-start-column":"16","trae-inspector-end-line":"351","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"343","trae-inspector-start-column":"20","trae-inspector-end-line":"343","trae-inspector-end-column":"112","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:s("settings.general.baseURL")}),y.jsx("input",{"trae-inspector-start-line":"344","trae-inspector-start-column":"20","trae-inspector-end-line":"350","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"text",value:f.baseURL,onChange:E=>h({...f,baseURL:E.target.value}),placeholder:"https://api.openai.com/v1",className:"w-full p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm"})]}),y.jsxs("div",{"trae-inspector-start-line":"353","trae-inspector-start-column":"16","trae-inspector-end-line":"362","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"354","trae-inspector-start-column":"20","trae-inspector-end-line":"354","trae-inspector-end-column":"114","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:s("settings.general.modelName")}),y.jsx("input",{"trae-inspector-start-line":"355","trae-inspector-start-column":"20","trae-inspector-end-line":"361","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"text",value:f.model,onChange:E=>h({...f,model:E.target.value}),placeholder:"gpt-3.5-turbo",className:"w-full p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm"})]}),y.jsxs("div",{"trae-inspector-start-line":"364","trae-inspector-start-column":"16","trae-inspector-end-line":"375","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsxs("label",{"trae-inspector-start-line":"365","trae-inspector-start-column":"20","trae-inspector-end-line":"365","trae-inspector-end-column":"139","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:[s("settings.general.temperature")," (",f.temperature,")"]}),y.jsx("input",{"trae-inspector-start-line":"366","trae-inspector-start-column":"20","trae-inspector-end-line":"374","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"range",min:"0",max:"1",step:"0.1",value:f.temperature,onChange:E=>h({...f,temperature:parseFloat(E.target.value)}),className:"w-full h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer accent-blue-600"})]})]}),c==="prompt"&&y.jsxs("div",{"trae-inspector-start-line":"380","trae-inspector-start-column":"14","trae-inspector-end-line":"462","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-4 h-full flex flex-col",children:[y.jsxs("div",{"trae-inspector-start-line":"381","trae-inspector-start-column":"18","trae-inspector-end-line":"384","trae-inspector-end-column":"24","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2 mb-2 text-gray-600 text-sm",children:[y.jsx(O2,{size:16}),y.jsx("span",{"trae-inspector-start-line":"383","trae-inspector-start-column":"22","trae-inspector-end-line":"383","trae-inspector-end-column":"69","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",children:s("settings.prompt.description")})]}),y.jsxs("div",{"trae-inspector-start-line":"386","trae-inspector-start-column":"18","trae-inspector-end-line":"406","trae-inspector-end-column":"24","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"387","trae-inspector-start-column":"22","trae-inspector-end-line":"387","trae-inspector-end-column":"102","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22Workspace%20Directory%22%2C%22textStartLine%22%3A%22387%22%2C%22textStartColumn%22%3A%2275%22%2C%22textEndLine%22%3A%22387%22%2C%22textEndColumn%22%3A%2294%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:"Workspace Directory"}),y.jsxs("div",{"trae-inspector-start-line":"388","trae-inspector-start-column":"22","trae-inspector-end-line":"402","trae-inspector-end-column":"28","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex gap-2",children:[y.jsx("input",{"trae-inspector-start-line":"389","trae-inspector-start-column":"24","trae-inspector-end-line":"395","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"text",value:f.workspace,readOnly:!0,placeholder:"/path/to/your/project",className:"flex-1 p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm font-mono cursor-not-allowed"}),y.jsx("button",{"trae-inspector-start-line":"396","trae-inspector-start-column":"24","trae-inspector-end-line":"401","trae-inspector-end-column":"33","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:fe,className:"px-3 py-2 bg-gray-100 border border-gray-200 rounded-lg hover:bg-gray-200 text-gray-700 transition-colors",children:y.jsx(di,{size:18})})]}),y.jsx("p",{"trae-inspector-start-line":"403","trae-inspector-start-column":"22","trae-inspector-end-line":"405","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22xiaozuoAssistant%20will%20use%20this%20path%20to%20understand%20your%20project%20context.%20Saving%20will%20append%2Fupdate%20this%20path%20in%20the%20System%20Prompt.%22%2C%22textStartLine%22%3A%22403%22%2C%22textStartColumn%22%3A%2259%22%2C%22textEndLine%22%3A%22405%22%2C%22textEndColumn%22%3A%2222%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-500",children:"xiaozuoAssistant will use this path to understand your project context. Saving will append/update this path in the System Prompt."})]}),D&&y.jsx("div",{"trae-inspector-start-line":"409","trae-inspector-start-column":"22","trae-inspector-end-line":"453","trae-inspector-end-column":"28","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"fixed inset-0 bg-black/20 z-[60] flex items-center justify-center p-4",children:y.jsxs("div",{"trae-inspector-start-line":"410","trae-inspector-start-column":"26","trae-inspector-end-line":"452","trae-inspector-end-column":"32","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"bg-white rounded-xl shadow-2xl w-full max-w-lg overflow-hidden flex flex-col max-h-[70vh]",children:[y.jsxs("div",{"trae-inspector-start-line":"411","trae-inspector-start-column":"30","trae-inspector-end-line":"417","trae-inspector-end-column":"36","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 border-b border-gray-100 flex justify-between items-center bg-gray-50",children:[y.jsxs("h3",{"trae-inspector-start-line":"412","trae-inspector-start-column":"34","trae-inspector-end-line":"415","trae-inspector-end-column":"39","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"font-medium text-gray-800 flex items-center gap-2",children:[y.jsx(di,{size:18,className:"text-blue-600"}),"Select Workspace"]}),y.jsx("button",{"trae-inspector-start-line":"416","trae-inspector-start-column":"34","trae-inspector-end-line":"416","trae-inspector-end-column":"156","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>A(!1),children:y.jsx(fi,{size:18,className:"text-gray-400 hover:text-gray-600"})})]}),y.jsx("div",{"trae-inspector-start-line":"418","trae-inspector-start-column":"30","trae-inspector-end-line":"420","trae-inspector-end-column":"36","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-2 bg-gray-50 border-b border-gray-100 text-xs font-mono text-gray-500 truncate px-4",children:O}),y.jsxs("div",{"trae-inspector-start-line":"421","trae-inspector-start-column":"30","trae-inspector-end-line":"445","trae-inspector-end-column":"36","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 overflow-y-auto p-2",children:[K&&y.jsxs("button",{"trae-inspector-start-line":"423","trae-inspector-start-column":"38","trae-inspector-end-line":"429","trae-inspector-end-column":"47","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>te(K),className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-gray-100 rounded-lg text-sm text-left mb-1 text-gray-600",children:[y.jsx(Rp,{size:16}),".."]}),N.length>0?N.map(E=>y.jsxs("button",{"trae-inspector-start-line":"433","trae-inspector-start-column":"38","trae-inspector-end-line":"440","trae-inspector-end-column":"47","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>te(E.path),className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-blue-50 hover:text-blue-700 rounded-lg text-sm text-left group",children:[y.jsx($a,{size:16,className:"text-yellow-500 group-hover:text-yellow-600 fill-current"}),y.jsx("span",{"trae-inspector-start-line":"439","trae-inspector-start-column":"42","trae-inspector-end-line":"439","trae-inspector-end-column":"87","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"truncate",children:E.name})]},E.path)):y.jsx("div",{"trae-inspector-start-line":"443","trae-inspector-start-column":"36","trae-inspector-end-line":"443","trae-inspector-end-column":"114","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22No%20folders%20found%22%2C%22textStartLine%22%3A%22443%22%2C%22textStartColumn%22%3A%2292%22%2C%22textEndLine%22%3A%22443%22%2C%22textEndColumn%22%3A%22108%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-center py-4 text-gray-400 text-sm",children:"No folders found"})]}),y.jsxs("div",{"trae-inspector-start-line":"446","trae-inspector-start-column":"30","trae-inspector-end-line":"451","trae-inspector-end-column":"36","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 border-t border-gray-100 flex justify-end gap-2 bg-gray-50",children:[y.jsx("button",{"trae-inspector-start-line":"447","trae-inspector-start-column":"34","trae-inspector-end-line":"447","trae-inspector-end-column":"177","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22Cancel%22%2C%22textStartLine%22%3A%22447%22%2C%22textStartColumn%22%3A%22162%22%2C%22textEndLine%22%3A%22447%22%2C%22textEndColumn%22%3A%22168%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>A(!1),className:"px-3 py-1.5 text-sm text-gray-600 hover:bg-gray-200 rounded-md",children:"Cancel"}),y.jsx("button",{"trae-inspector-start-line":"448","trae-inspector-start-column":"34","trae-inspector-end-line":"450","trae-inspector-end-column":"43","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22Select%20Current%20Folder%22%2C%22textStartLine%22%3A%22448%22%2C%22textStartColumn%22%3A%22184%22%2C%22textEndLine%22%3A%22450%22%2C%22textEndColumn%22%3A%2234%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>ye(O),className:"px-3 py-1.5 text-sm bg-blue-600 text-white hover:bg-blue-700 rounded-md shadow-sm",children:"Select Current Folder"})]})]})}),y.jsx("textarea",{"trae-inspector-start-line":"456","trae-inspector-start-column":"18","trae-inspector-end-line":"461","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:f.systemPrompt,onChange:E=>h({...f,systemPrompt:E.target.value}),placeholder:s("settings.prompt.placeholder"),className:"w-full flex-1 min-h-[300px] p-4 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm font-mono leading-relaxed resize-none"})]}),c==="scheduler"&&y.jsxs("div",{"trae-inspector-start-line":"466","trae-inspector-start-column":"14","trae-inspector-end-line":"560","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-6",children:[y.jsxs("div",{"trae-inspector-start-line":"467","trae-inspector-start-column":"18","trae-inspector-end-line":"545","trae-inspector-end-column":"24","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"bg-blue-50 p-4 rounded-lg border border-blue-100",children:[y.jsxs("h3",{"trae-inspector-start-line":"468","trae-inspector-start-column":"22","trae-inspector-end-line":"471","trae-inspector-end-column":"27","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"font-medium text-blue-800 mb-2 flex items-center gap-2",children:[y.jsx(P2,{size:16}),s("settings.scheduler.memoryMaintenance")]}),y.jsx("p",{"trae-inspector-start-line":"472","trae-inspector-start-column":"22","trae-inspector-end-line":"474","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm text-blue-600 mb-4",children:s("settings.scheduler.description")}),y.jsxs("div",{"trae-inspector-start-line":"476","trae-inspector-start-column":"22","trae-inspector-end-line":"544","trae-inspector-end-column":"28","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-4",children:[y.jsx("label",{"trae-inspector-start-line":"477","trae-inspector-start-column":"24","trae-inspector-end-line":"477","trae-inspector-end-column":"123","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:s("settings.scheduler.cronSchedule")}),y.jsxs("div",{"trae-inspector-start-line":"479","trae-inspector-start-column":"24","trae-inspector-end-line":"522","trae-inspector-end-column":"30","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex gap-4 items-center",children:[y.jsxs("select",{"trae-inspector-start-line":"480","trae-inspector-start-column":"28","trae-inspector-end-line":"488","trae-inspector-end-column":"37","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:ee,onChange:E=>Qe(E.target.value),className:"p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[y.jsx("option",{"trae-inspector-start-line":"485","trae-inspector-start-column":"32","trae-inspector-end-line":"485","trae-inspector-end-column":"94","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"daily",children:s("settings.scheduler.daily")}),y.jsx("option",{"trae-inspector-start-line":"486","trae-inspector-start-column":"32","trae-inspector-end-line":"486","trae-inspector-end-column":"96","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"weekly",children:s("settings.scheduler.weekly")}),y.jsx("option",{"trae-inspector-start-line":"487","trae-inspector-start-column":"32","trae-inspector-end-line":"487","trae-inspector-end-column":"96","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"custom",children:s("settings.scheduler.custom")})]}),ee==="daily"&&y.jsx("input",{"trae-inspector-start-line":"491","trae-inspector-start-column":"32","trae-inspector-end-line":"496","trae-inspector-end-column":"34","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"time",value:ie,onChange:E=>oe(E.target.value),className:"p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm"}),ee==="weekly"&&y.jsxs(y.Fragment,{children:[y.jsxs("select",{"trae-inspector-start-line":"501","trae-inspector-start-column":"36","trae-inspector-end-line":"513","trae-inspector-end-column":"45","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:ve,onChange:E=>q(E.target.value),className:"p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm",children:[y.jsx("option",{"trae-inspector-start-line":"506","trae-inspector-start-column":"40","trae-inspector-end-line":"506","trae-inspector-end-column":"89","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"0",children:s("weekdays.sunday")}),y.jsx("option",{"trae-inspector-start-line":"507","trae-inspector-start-column":"40","trae-inspector-end-line":"507","trae-inspector-end-column":"89","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"1",children:s("weekdays.monday")}),y.jsx("option",{"trae-inspector-start-line":"508","trae-inspector-start-column":"40","trae-inspector-end-line":"508","trae-inspector-end-column":"90","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"2",children:s("weekdays.tuesday")}),y.jsx("option",{"trae-inspector-start-line":"509","trae-inspector-start-column":"40","trae-inspector-end-line":"509","trae-inspector-end-column":"92","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"3",children:s("weekdays.wednesday")}),y.jsx("option",{"trae-inspector-start-line":"510","trae-inspector-start-column":"40","trae-inspector-end-line":"510","trae-inspector-end-column":"91","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"4",children:s("weekdays.thursday")}),y.jsx("option",{"trae-inspector-start-line":"511","trae-inspector-start-column":"40","trae-inspector-end-line":"511","trae-inspector-end-column":"89","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"5",children:s("weekdays.friday")}),y.jsx("option",{"trae-inspector-start-line":"512","trae-inspector-start-column":"40","trae-inspector-end-line":"512","trae-inspector-end-column":"91","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:"6",children:s("weekdays.saturday")})]}),y.jsx("input",{"trae-inspector-start-line":"514","trae-inspector-start-column":"36","trae-inspector-end-line":"519","trae-inspector-end-column":"38","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"time",value:ie,onChange:E=>oe(E.target.value),className:"p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 text-sm"})]})]}),ee==="custom"&&y.jsxs("div",{"trae-inspector-start-line":"525","trae-inspector-start-column":"28","trae-inspector-end-line":"536","trae-inspector-end-column":"34","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-1",children:[y.jsx("input",{"trae-inspector-start-line":"526","trae-inspector-start-column":"32","trae-inspector-end-line":"532","trae-inspector-end-column":"34","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"text",value:f.memoryMaintenanceCron,onChange:E=>h({...f,memoryMaintenanceCron:E.target.value}),placeholder:"0 0 * * *",className:"w-full p-2.5 bg-white border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm font-mono"}),y.jsx("p",{"trae-inspector-start-line":"533","trae-inspector-start-column":"32","trae-inspector-end-line":"535","trae-inspector-end-column":"36","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-500",children:s("settings.scheduler.cronHint")})]}),ee!=="custom"&&y.jsxs("p",{"trae-inspector-start-line":"540","trae-inspector-start-column":"28","trae-inspector-end-line":"542","trae-inspector-end-column":"32","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-500 font-mono",children:["Cron Expression: ",f.memoryMaintenanceCron]})]})]}),y.jsxs("div",{"trae-inspector-start-line":"547","trae-inspector-start-column":"18","trae-inspector-end-line":"559","trae-inspector-end-column":"24","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"bg-gray-50 p-4 rounded-lg border border-gray-200",children:[y.jsx("h3",{"trae-inspector-start-line":"548","trae-inspector-start-column":"22","trae-inspector-end-line":"548","trae-inspector-end-column":"113","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"font-medium text-gray-800 mb-2",children:s("settings.scheduler.manualTrigger")}),y.jsx("p",{"trae-inspector-start-line":"549","trae-inspector-start-column":"22","trae-inspector-end-line":"551","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm text-gray-500 mb-4",children:s("settings.scheduler.manualDescription")}),y.jsxs("button",{"trae-inspector-start-line":"552","trae-inspector-start-column":"22","trae-inspector-end-line":"558","trae-inspector-end-column":"31","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:H,className:"px-4 py-2 text-sm font-medium text-white bg-teal-600 hover:bg-teal-700 rounded-lg shadow-sm transition-all flex items-center gap-2",children:[y.jsx(V2,{size:16}),s("settings.scheduler.runNow")]})]})]})]}),y.jsxs("div",{"trae-inspector-start-line":"564","trae-inspector-start-column":"8","trae-inspector-end-line":"583","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-6 border-t border-gray-100 bg-gray-50 flex justify-end gap-3",children:[y.jsx("button",{"trae-inspector-start-line":"565","trae-inspector-start-column":"10","trae-inspector-end-line":"570","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:r,className:"px-4 py-2 text-sm font-medium text-gray-600 hover:bg-gray-200 rounded-lg transition-colors",children:s("settings.buttons.close")}),y.jsx("button",{"trae-inspector-start-line":"571","trae-inspector-start-column":"10","trae-inspector-end-line":"582","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SettingsModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:B,disabled:m,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg shadow-sm transition-all flex items-center gap-2 disabled:opacity-70 disabled:cursor-not-allowed",children:m?s("settings.buttons.saving"):y.jsxs(y.Fragment,{children:[y.jsx(Tp,{size:16}),s("settings.buttons.save")]})})]})]})}):null};function Hp(a){const{t:r}=wi(),[s,o]=J.useState(""),[c,p]=J.useState(""),[f,h]=J.useState(!1),[m,x]=J.useState(null),[C,v]=J.useState(!1),[D,A]=J.useState([]),[N,T]=J.useState(""),[O,W]=J.useState("");J.useEffect(()=>{a.isOpen&&(o(a.session.alias||""),p(a.session.workspace||""),x(null))},[a.isOpen,a.session]);const K=J.useMemo(()=>c.trim().length>0&&!f,[c,f]),de=async ie=>{try{const ve=await(await fetch("http://localhost:3001/api/fs/list",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:ie})})).json();if(ve.error)throw new Error(ve.error);T(ve.current||""),W(ve.parent||""),A(ve.items||[])}catch(se){x({type:"error",text:se.message||r("settings.messages.networkError")})}},ee=()=>{v(!0),de(c||void 0)},ce=async()=>{if(K){h(!0),x(null);try{const ie=await fetch(`http://localhost:3001/api/sessions/${a.session.id}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:s.trim()?s.trim():null,workspace:c.trim()})}),se=await ie.json();if(!ie.ok||se!=null&&se.error)throw new Error((se==null?void 0:se.error)||"Failed to save");a.onSaved({...a.session,...se})}catch(ie){x({type:"error",text:ie.message||r("settings.messages.networkError")})}finally{h(!1)}}};return a.isOpen?y.jsxs("div",{"trae-inspector-start-line":"88","trae-inspector-start-column":"4","trae-inspector-end-line":"222","trae-inspector-end-column":"10","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50 p-4",children:[y.jsxs("div",{"trae-inspector-start-line":"89","trae-inspector-start-column":"6","trae-inspector-end-line":"159","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"bg-white rounded-2xl shadow-xl w-full max-w-xl overflow-hidden animate-in fade-in zoom-in duration-200 flex flex-col",children:[y.jsxs("div",{"trae-inspector-start-line":"90","trae-inspector-start-column":"8","trae-inspector-end-line":"98","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-6 border-b border-gray-100 flex justify-between items-center",children:[y.jsxs("div",{"trae-inspector-start-line":"91","trae-inspector-start-column":"10","trae-inspector-end-line":"94","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-gray-800",children:[y.jsx("h2",{"trae-inspector-start-line":"92","trae-inspector-start-column":"12","trae-inspector-end-line":"92","trae-inspector-end-column":"79","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-lg font-semibold",children:r("sessionMeta.title")}),y.jsx("div",{"trae-inspector-start-line":"93","trae-inspector-start-column":"12","trae-inspector-end-line":"93","trae-inspector-end-column":"90","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-500 font-mono mt-1",children:a.session.id})]}),y.jsx("button",{"trae-inspector-start-line":"95","trae-inspector-start-column":"10","trae-inspector-end-line":"97","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:a.onClose,className:"text-gray-400 hover:text-gray-600 transition-colors","aria-label":r("settings.buttons.close"),children:y.jsx(fi,{size:20})})]}),y.jsxs("div",{"trae-inspector-start-line":"100","trae-inspector-start-column":"8","trae-inspector-end-line":"141","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-6",children:[m&&y.jsx("div",{"trae-inspector-start-line":"102","trae-inspector-start-column":"12","trae-inspector-end-line":"104","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:`p-3 mb-4 rounded-lg text-sm ${m.type==="success"?"bg-green-50 text-green-700 border border-green-200":"bg-red-50 text-red-700 border border-red-200"}`,children:m.text}),y.jsxs("div",{"trae-inspector-start-line":"107","trae-inspector-start-column":"10","trae-inspector-end-line":"140","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-4",children:[y.jsxs("div",{"trae-inspector-start-line":"108","trae-inspector-start-column":"12","trae-inspector-end-line":"118","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"109","trae-inspector-start-column":"14","trae-inspector-end-line":"109","trae-inspector-end-column":"104","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:r("sessionMeta.aliasLabel")}),y.jsx("input",{"trae-inspector-start-line":"110","trae-inspector-start-column":"14","trae-inspector-end-line":"116","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"text",value:s,onChange:ie=>o(ie.target.value),placeholder:r("sessionMeta.aliasPlaceholder"),className:"w-full p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm"}),y.jsx("p",{"trae-inspector-start-line":"117","trae-inspector-start-column":"14","trae-inspector-end-line":"117","trae-inspector-end-column":"83","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-500",children:r("sessionMeta.aliasHint")})]}),y.jsxs("div",{"trae-inspector-start-line":"120","trae-inspector-start-column":"12","trae-inspector-end-line":"139","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-2",children:[y.jsx("label",{"trae-inspector-start-line":"121","trae-inspector-start-column":"14","trae-inspector-end-line":"121","trae-inspector-end-column":"108","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-700",children:r("sessionMeta.workspaceLabel")}),y.jsxs("div",{"trae-inspector-start-line":"122","trae-inspector-start-column":"14","trae-inspector-end-line":"137","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex gap-2",children:[y.jsx("input",{"trae-inspector-start-line":"123","trae-inspector-start-column":"16","trae-inspector-end-line":"129","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",type:"text",value:c,onChange:ie=>p(ie.target.value),placeholder:"/path/to/project",className:"flex-1 p-2.5 bg-gray-50 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all text-sm font-mono"}),y.jsx("button",{"trae-inspector-start-line":"130","trae-inspector-start-column":"16","trae-inspector-end-line":"136","trae-inspector-end-column":"25","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:ee,className:"px-3 py-2 bg-gray-100 border border-gray-200 rounded-lg hover:bg-gray-200 text-gray-700 transition-colors","aria-label":r("sessionMeta.selectWorkspace"),children:y.jsx(di,{size:18})})]}),y.jsx("p",{"trae-inspector-start-line":"138","trae-inspector-start-column":"14","trae-inspector-end-line":"138","trae-inspector-end-column":"87","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-500",children:r("sessionMeta.workspaceHint")})]})]})]}),y.jsxs("div",{"trae-inspector-start-line":"143","trae-inspector-start-column":"8","trae-inspector-end-line":"158","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-6 border-t border-gray-100 bg-gray-50 flex justify-end gap-3",children:[y.jsx("button",{"trae-inspector-start-line":"144","trae-inspector-start-column":"10","trae-inspector-end-line":"149","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:a.onClose,className:"px-4 py-2 text-sm font-medium text-gray-600 hover:bg-gray-200 rounded-lg transition-colors",children:r("settings.buttons.cancel")}),y.jsxs("button",{"trae-inspector-start-line":"150","trae-inspector-start-column":"10","trae-inspector-end-line":"157","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:ce,disabled:!K,className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 rounded-lg shadow-sm transition-all flex items-center gap-2 disabled:opacity-70 disabled:cursor-not-allowed",children:[y.jsx(Tp,{size:16}),r(f?"settings.buttons.saving":"settings.buttons.save")]})]})]}),C&&y.jsx("div",{"trae-inspector-start-line":"162","trae-inspector-start-column":"8","trae-inspector-end-line":"220","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"fixed inset-0 bg-black/20 z-[60] flex items-center justify-center p-4",children:y.jsxs("div",{"trae-inspector-start-line":"163","trae-inspector-start-column":"10","trae-inspector-end-line":"219","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"bg-white rounded-xl shadow-2xl w-full max-w-lg overflow-hidden flex flex-col max-h-[70vh]",children:[y.jsxs("div",{"trae-inspector-start-line":"164","trae-inspector-start-column":"12","trae-inspector-end-line":"172","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 border-b border-gray-100 flex justify-between items-center bg-gray-50",children:[y.jsxs("h3",{"trae-inspector-start-line":"165","trae-inspector-start-column":"14","trae-inspector-end-line":"168","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"font-medium text-gray-800 flex items-center gap-2",children:[y.jsx(di,{size:18,className:"text-blue-600"}),r("sessionMeta.selectWorkspace")]}),y.jsx("button",{"trae-inspector-start-line":"169","trae-inspector-start-column":"14","trae-inspector-end-line":"171","trae-inspector-end-column":"23","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>v(!1),"aria-label":r("settings.buttons.close"),children:y.jsx(fi,{size:18,className:"text-gray-400 hover:text-gray-600"})})]}),y.jsx("div",{"trae-inspector-start-line":"173","trae-inspector-start-column":"12","trae-inspector-end-line":"175","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-2 bg-gray-50 border-b border-gray-100 text-xs font-mono text-gray-500 truncate px-4",children:N}),y.jsxs("div",{"trae-inspector-start-line":"176","trae-inspector-start-column":"12","trae-inspector-end-line":"200","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 overflow-y-auto p-2",children:[O&&y.jsxs("button",{"trae-inspector-start-line":"178","trae-inspector-start-column":"16","trae-inspector-end-line":"184","trae-inspector-end-column":"25","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>de(O),className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-gray-100 rounded-lg text-sm text-left mb-1 text-gray-600",children:[y.jsx(Rp,{size:16}),".."]}),D.length>0?D.map(ie=>y.jsxs("button",{"trae-inspector-start-line":"188","trae-inspector-start-column":"18","trae-inspector-end-line":"195","trae-inspector-end-column":"27","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>de(ie.path),className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-blue-50 hover:text-blue-700 rounded-lg text-sm text-left group",children:[y.jsx($a,{size:16,className:"text-yellow-500 group-hover:text-yellow-600 fill-current"}),y.jsx("span",{"trae-inspector-start-line":"194","trae-inspector-start-column":"20","trae-inspector-end-line":"194","trae-inspector-end-column":"65","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"truncate",children:ie.name})]},ie.path)):y.jsx("div",{"trae-inspector-start-line":"198","trae-inspector-start-column":"16","trae-inspector-end-line":"198","trae-inspector-end-column":"94","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22No%20folders%20found%22%2C%22textStartLine%22%3A%22198%22%2C%22textStartColumn%22%3A%2272%22%2C%22textEndLine%22%3A%22198%22%2C%22textEndColumn%22%3A%2288%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-center py-4 text-gray-400 text-sm",children:"No folders found"})]}),y.jsxs("div",{"trae-inspector-start-line":"201","trae-inspector-start-column":"12","trae-inspector-end-line":"218","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 border-t border-gray-100 flex justify-end gap-2 bg-gray-50",children:[y.jsx("button",{"trae-inspector-start-line":"202","trae-inspector-start-column":"14","trae-inspector-end-line":"207","trae-inspector-end-column":"23","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>v(!1),className:"px-3 py-1.5 text-sm text-gray-600 hover:bg-gray-200 rounded-md",children:r("settings.buttons.cancel")}),y.jsx("button",{"trae-inspector-start-line":"208","trae-inspector-start-column":"14","trae-inspector-end-line":"217","trae-inspector-end-column":"23","trae-inspector-file-path":"client/components/SessionMetaModal.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>{p(N),v(!1)},className:"px-3 py-1.5 text-sm bg-blue-600 text-white hover:bg-blue-700 rounded-md shadow-sm",disabled:!N,children:r("sessionMeta.selectCurrentFolder")})]})]})})]}):null}const Hh=()=>{const{t:a}=wi(),{sessions:r,currentSession:s,setSessions:o,upsertSession:c,removeSession:p,setCurrentSession:f,setMessages:h}=jp(),[m,x]=J.useState(!1),[C,v]=J.useState(null),D=async()=>{try{const W=await(await fetch("http://localhost:3001/api/sessions")).json();o(W)}catch(O){console.error("Failed to fetch sessions:",O)}};J.useEffect(()=>{D()},[]);const A=async()=>{try{const W=await(await fetch("http://localhost:3001/api/sessions",{method:"POST"})).json();c(W),f(W),h([])}catch(O){console.error("Failed to create session:",O)}},N=async(O,W)=>{if(O.stopPropagation(),!!window.confirm(a("sessionList.deleteConfirm")))try{await fetch(`http://localhost:3001/api/sessions/${W}`,{method:"DELETE"}),p(W),(s==null?void 0:s.id)===W&&(f(null),h([]))}catch(K){console.error("Failed to delete session:",K)}},T=async O=>{try{const K=await(await fetch(`http://localhost:3001/api/sessions/${O}`)).json();K!=null&&K.meta&&(f(K.meta),h(K.messages||[]))}catch(W){console.error("Failed to fetch session details:",W)}};return y.jsxs("div",{"trae-inspector-start-line":"74","trae-inspector-start-column":"4","trae-inspector-end-line":"160","trae-inspector-end-column":"10","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"w-[260px] bg-gray-900 text-gray-300 h-full flex flex-col border-r border-black/10 transition-all duration-300 ease-in-out",children:[y.jsxs("div",{"trae-inspector-start-line":"75","trae-inspector-start-column":"6","trae-inspector-end-line":"89","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 pt-6",children:[y.jsxs("div",{"trae-inspector-start-line":"76","trae-inspector-start-column":"8","trae-inspector-end-line":"78","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2 px-2 mb-6 text-white font-semibold text-xl tracking-tight",children:[y.jsx("span",{"trae-inspector-start-line":"77","trae-inspector-start-column":"11","trae-inspector-end-line":"77","trae-inspector-end-column":"47","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22%F0%9F%8D%87%22%2C%22textStartLine%22%3A%2277%22%2C%22textStartColumn%22%3A%2238%22%2C%22textEndLine%22%3A%2277%22%2C%22textEndColumn%22%3A%2240%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-2xl",children:"🍇"})," ",a("sessionList.title")]}),y.jsxs("button",{"trae-inspector-start-line":"80","trae-inspector-start-column":"8","trae-inspector-end-line":"88","trae-inspector-end-column":"17","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:A,className:"w-full flex items-center gap-3 px-3 py-3 rounded-lg border border-gray-700 hover:bg-gray-800 transition-colors duration-200 text-sm text-white mb-2 text-left group",children:[y.jsx("div",{"trae-inspector-start-line":"84","trae-inspector-start-column":"10","trae-inspector-end-line":"86","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-1 bg-white text-black rounded-full group-hover:rotate-90 transition-transform duration-300",children:y.jsx(W2,{size:14,strokeWidth:3})}),y.jsx("span",{"trae-inspector-start-line":"87","trae-inspector-start-column":"10","trae-inspector-end-line":"87","trae-inspector-end-column":"73","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"font-medium",children:a("sessionList.newChat")})]})]}),y.jsxs("div",{"trae-inspector-start-line":"91","trae-inspector-start-column":"6","trae-inspector-end-line":"133","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 overflow-y-auto px-2 pb-2 custom-scrollbar",children:[y.jsx("div",{"trae-inspector-start-line":"92","trae-inspector-start-column":"8","trae-inspector-end-line":"92","trae-inspector-end-column":"127","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs font-semibold text-gray-500 px-3 mb-2 uppercase tracking-wider",children:a("sessionList.recent")}),y.jsx("div",{"trae-inspector-start-line":"93","trae-inspector-start-column":"8","trae-inspector-end-line":"132","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"space-y-1",children:r.map(O=>{var W;return y.jsxs("button",{"trae-inspector-start-line":"95","trae-inspector-start-column":"12","trae-inspector-end-line":"130","trae-inspector-end-column":"21","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>T(O.id),className:`w-full group relative flex items-center gap-3 px-3 py-3 rounded-lg text-sm transition-all duration-200 text-left ${(s==null?void 0:s.id)===O.id?"bg-gray-800 text-white shadow-sm":"hover:bg-gray-800/50 hover:text-white"}`,children:[y.jsx($2,{size:16,className:(s==null?void 0:s.id)===O.id?"text-blue-400":"text-gray-500 group-hover:text-gray-400"}),y.jsxs("div",{"trae-inspector-start-line":"105","trae-inspector-start-column":"14","trae-inspector-end-line":"112","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 overflow-hidden",children:[y.jsx("div",{"trae-inspector-start-line":"106","trae-inspector-start-column":"16","trae-inspector-end-line":"108","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"truncate font-medium",children:(W=O.alias)!=null&&W.trim()?O.alias:`${O.id.slice(0,8)}...`}),y.jsx("div",{"trae-inspector-start-line":"109","trae-inspector-start-column":"16","trae-inspector-end-line":"111","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"truncate text-xs text-gray-500 mt-0.5 font-mono",children:O.workspace})]}),y.jsx("button",{"trae-inspector-start-line":"114","trae-inspector-start-column":"14","trae-inspector-end-line":"123","trae-inspector-end-column":"23","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:K=>{K.stopPropagation(),v(O)},className:"opacity-0 group-hover:opacity-100 p-1 hover:text-blue-300 transition-opacity","aria-label":a("sessionList.editSession"),children:y.jsx(Mp,{size:14})}),y.jsx("button",{"trae-inspector-start-line":"124","trae-inspector-start-column":"14","trae-inspector-end-line":"129","trae-inspector-end-column":"23","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:K=>N(K,O.id),className:"opacity-0 group-hover:opacity-100 p-1 hover:text-red-400 transition-opacity",children:y.jsx(G2,{size:14})})]},O.id)})})]}),y.jsx("div",{"trae-inspector-start-line":"135","trae-inspector-start-column":"6","trae-inspector-end-line":"145","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 border-t border-gray-800",children:y.jsxs("div",{"trae-inspector-start-line":"136","trae-inspector-start-column":"8","trae-inspector-end-line":"144","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>x(!0),className:"flex items-center gap-3 px-2 py-2 rounded-lg hover:bg-gray-800 transition-colors cursor-pointer group",children:[y.jsx("div",{"trae-inspector-start-line":"140","trae-inspector-start-column":"12","trae-inspector-end-line":"142","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"w-8 h-8 rounded-full bg-gray-800 border border-gray-700 flex items-center justify-center text-gray-400 group-hover:text-white group-hover:border-gray-600 transition-all",children:y.jsx(Bp,{size:16})}),y.jsx("div",{"trae-inspector-start-line":"143","trae-inspector-start-column":"12","trae-inspector-end-line":"143","trae-inspector-end-column":"137","trae-inspector-file-path":"client/components/SessionList.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm font-medium text-gray-400 group-hover:text-white transition-colors",children:a("sessionList.settings")})]})}),y.jsx(Vh,{isOpen:m,onClose:()=>x(!1)}),C&&y.jsx(Hp,{isOpen:!0,session:C,onClose:()=>v(null),onSaved:O=>{c(O),v(null)}})]})},At=Object.create(null);At.open="0";At.close="1";At.ping="2";At.pong="3";At.message="4";At.upgrade="5";At.noop="6";const li=Object.create(null);Object.keys(At).forEach(a=>{li[At[a]]=a});const Pa={type:"error",data:"parser error"},Wp=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Kp=typeof ArrayBuffer=="function",qp=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,Xa=({type:a,data:r},s,o)=>Wp&&r instanceof Blob?s?o(r):xp(r,o):Kp&&(r instanceof ArrayBuffer||qp(r))?s?o(r):xp(new Blob([r]),o):o(At[a]+(r||"")),xp=(a,r)=>{const s=new FileReader;return s.onload=function(){const o=s.result.split(",")[1];r("b"+(o||""))},s.readAsDataURL(a)};function vp(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let za;function Wh(a,r){if(Wp&&a.data instanceof Blob)return a.data.arrayBuffer().then(vp).then(r);if(Kp&&(a.data instanceof ArrayBuffer||qp(a.data)))return r(vp(a.data));Xa(a,!1,s=>{za||(za=new TextEncoder),r(za.encode(s))})}const wp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ir=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a<wp.length;a++)Ir[wp.charCodeAt(a)]=a;const Kh=a=>{let r=a.length*.75,s=a.length,o,c=0,p,f,h,m;a[a.length-1]==="="&&(r--,a[a.length-2]==="="&&r--);const x=new ArrayBuffer(r),C=new Uint8Array(x);for(o=0;o<s;o+=4)p=Ir[a.charCodeAt(o)],f=Ir[a.charCodeAt(o+1)],h=Ir[a.charCodeAt(o+2)],m=Ir[a.charCodeAt(o+3)],C[c++]=p<<2|f>>4,C[c++]=(f&15)<<4|h>>2,C[c++]=(h&3)<<6|m&63;return x},qh=typeof ArrayBuffer=="function",Za=(a,r)=>{if(typeof a!="string")return{type:"message",data:Qp(a,r)};const s=a.charAt(0);return s==="b"?{type:"message",data:Qh(a.substring(1),r)}:li[s]?a.length>1?{type:li[s],data:a.substring(1)}:{type:li[s]}:Pa},Qh=(a,r)=>{if(qh){const s=Kh(a);return Qp(s,r)}else return{base64:!0,data:a}},Qp=(a,r)=>{switch(r){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}},Yp="",Yh=(a,r)=>{const s=a.length,o=new Array(s);let c=0;a.forEach((p,f)=>{Xa(p,!1,h=>{o[f]=h,++c===s&&r(o.join(Yp))})})},Jh=(a,r)=>{const s=a.split(Yp),o=[];for(let c=0;c<s.length;c++){const p=Za(s[c],r);if(o.push(p),p.type==="error")break}return o};function Gh(){return new TransformStream({transform(a,r){Wh(a,s=>{const o=s.length;let c;if(o<126)c=new Uint8Array(1),new DataView(c.buffer).setUint8(0,o);else if(o<65536){c=new Uint8Array(3);const p=new DataView(c.buffer);p.setUint8(0,126),p.setUint16(1,o)}else{c=new Uint8Array(9);const p=new DataView(c.buffer);p.setUint8(0,127),p.setBigUint64(1,BigInt(o))}a.data&&typeof a.data!="string"&&(c[0]|=128),r.enqueue(c),r.enqueue(s)})}})}let Da;function oi(a){return a.reduce((r,s)=>r+s.length,0)}function ai(a,r){if(a[0].length===r)return a.shift();const s=new Uint8Array(r);let o=0;for(let c=0;c<r;c++)s[c]=a[0][o++],o===a[0].length&&(a.shift(),o=0);return a.length&&o<a[0].length&&(a[0]=a[0].slice(o)),s}function em(a,r){Da||(Da=new TextDecoder);const s=[];let o=0,c=-1,p=!1;return new TransformStream({transform(f,h){for(s.push(f);;){if(o===0){if(oi(s)<1)break;const m=ai(s,1);p=(m[0]&128)===128,c=m[0]&127,c<126?o=3:c===126?o=1:o=2}else if(o===1){if(oi(s)<2)break;const m=ai(s,2);c=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),o=3}else if(o===2){if(oi(s)<8)break;const m=ai(s,8),x=new DataView(m.buffer,m.byteOffset,m.length),C=x.getUint32(0);if(C>Math.pow(2,21)-1){h.enqueue(Pa);break}c=C*Math.pow(2,32)+x.getUint32(4),o=3}else{if(oi(s)<c)break;const m=ai(s,c);h.enqueue(Za(p?m:Da.decode(m),r)),o=0}if(c===0||c>a){h.enqueue(Pa);break}}}})}const Jp=4;function Pe(a){if(a)return tm(a)}function tm(a){for(var r in Pe.prototype)a[r]=Pe.prototype[r];return a}Pe.prototype.on=Pe.prototype.addEventListener=function(a,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(r),this};Pe.prototype.once=function(a,r){function s(){this.off(a,s),r.apply(this,arguments)}return s.fn=r,this.on(a,s),this};Pe.prototype.off=Pe.prototype.removeListener=Pe.prototype.removeAllListeners=Pe.prototype.removeEventListener=function(a,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+a];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var o,c=0;c<s.length;c++)if(o=s[c],o===r||o.fn===r){s.splice(c,1);break}return s.length===0&&delete this._callbacks["$"+a],this};Pe.prototype.emit=function(a){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),s=this._callbacks["$"+a],o=1;o<arguments.length;o++)r[o-1]=arguments[o];if(s){s=s.slice(0);for(var o=0,c=s.length;o<c;++o)s[o].apply(this,r)}return this};Pe.prototype.emitReserved=Pe.prototype.emit;Pe.prototype.listeners=function(a){return this._callbacks=this._callbacks||{},this._callbacks["$"+a]||[]};Pe.prototype.hasListeners=function(a){return!!this.listeners(a).length};const Si=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,s)=>s(r,0),ht=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),nm="arraybuffer";function Gp(a,...r){return r.reduce((s,o)=>(a.hasOwnProperty(o)&&(s[o]=a[o]),s),{})}const rm=ht.setTimeout,sm=ht.clearTimeout;function Fi(a,r){r.useNativeTimers?(a.setTimeoutFn=rm.bind(ht),a.clearTimeoutFn=sm.bind(ht)):(a.setTimeoutFn=ht.setTimeout.bind(ht),a.clearTimeoutFn=ht.clearTimeout.bind(ht))}const im=1.33;function om(a){return typeof a=="string"?am(a):Math.ceil((a.byteLength||a.size)*im)}function am(a){let r=0,s=0;for(let o=0,c=a.length;o<c;o++)r=a.charCodeAt(o),r<128?s+=1:r<2048?s+=2:r<55296||r>=57344?s+=3:(o++,s+=4);return s}function ed(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lm(a){let r="";for(let s in a)a.hasOwnProperty(s)&&(r.length&&(r+="&"),r+=encodeURIComponent(s)+"="+encodeURIComponent(a[s]));return r}function cm(a){let r={},s=a.split("&");for(let o=0,c=s.length;o<c;o++){let p=s[o].split("=");r[decodeURIComponent(p[0])]=decodeURIComponent(p[1])}return r}class um extends Error{constructor(r,s,o){super(r),this.description=s,this.context=o,this.type="TransportError"}}class Va extends Pe{constructor(r){super(),this.writable=!1,Fi(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,s,o){return super.emitReserved("error",new um(r,s,o)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const s=Za(r,this.socket.binaryType);this.onPacket(s)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,s={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(s)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const s=lm(r);return s.length?"?"+s:""}}class pm extends Va{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const s=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let o=0;this._polling&&(o++,this.once("pollComplete",function(){--o||s()})),this.writable||(o++,this.once("drain",function(){--o||s()}))}else s()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const s=o=>{if(this.readyState==="opening"&&o.type==="open"&&this.onOpen(),o.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(o)};Jh(r,this.socket.binaryType).forEach(s),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,Yh(r,s=>{this.doWrite(s,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",s=this.query||{};return this.opts.timestampRequests!==!1&&(s[this.opts.timestampParam]=ed()),!this.supportsBinary&&!s.sid&&(s.b64=1),this.createUri(r,s)}}let td=!1;try{td=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const dm=td;function fm(){}class hm extends pm{constructor(r){if(super(r),typeof location<"u"){const s=location.protocol==="https:";let o=location.port;o||(o=s?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||o!==r.port}}doWrite(r,s){const o=this.request({method:"POST",data:r});o.on("success",s),o.on("error",(c,p)=>{this.onError("xhr post error",c,p)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(s,o)=>{this.onError("xhr poll error",s,o)}),this.pollXhr=r}}class Nt extends Pe{constructor(r,s,o){super(),this.createRequest=r,Fi(this,o),this._opts=o,this._method=o.method||"GET",this._uri=s,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var r;const s=Gp(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");s.xdomain=!!this._opts.xd;const o=this._xhr=this.createRequest(s);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let c in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(c)&&o.setRequestHeader(c,this._opts.extraHeaders[c])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var c;o.readyState===3&&((c=this._opts.cookieJar)===null||c===void 0||c.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(c){this.setTimeoutFn(()=>{this._onError(c)},0);return}typeof document<"u"&&(this._index=Nt.requestsCount++,Nt.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=fm,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Nt.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Nt.requestsCount=0;Nt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Sp);else if(typeof addEventListener=="function"){const a="onpagehide"in ht?"pagehide":"unload";addEventListener(a,Sp,!1)}}function Sp(){for(let a in Nt.requests)Nt.requests.hasOwnProperty(a)&&Nt.requests[a].abort()}const mm=(function(){const a=nd({xdomain:!1});return a&&a.responseType!==null})();class gm extends hm{constructor(r){super(r);const s=r&&r.forceBase64;this.supportsBinary=mm&&!s}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Nt(nd,this.uri(),r)}}function nd(a){const r=a.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||dm))return new XMLHttpRequest}catch{}if(!r)try{return new ht[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const rd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ym extends Va{get name(){return"websocket"}doOpen(){const r=this.uri(),s=this.opts.protocols,o=rd?{}:Gp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(o.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,s,o)}catch(c){return this.emitReserved("error",c)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let s=0;s<r.length;s++){const o=r[s],c=s===r.length-1;Xa(o,this.supportsBinary,p=>{try{this.doWrite(o,p)}catch{}c&&Si(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",s=this.query||{};return this.opts.timestampRequests&&(s[this.opts.timestampParam]=ed()),this.supportsBinary||(s.b64=1),this.createUri(r,s)}}const Na=ht.WebSocket||ht.MozWebSocket;class xm extends ym{createSocket(r,s,o){return rd?new Na(r,s,o):s?new Na(r,s):new Na(r)}doWrite(r,s){this.ws.send(s)}}class vm extends Va{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const s=em(Number.MAX_SAFE_INTEGER,this.socket.binaryType),o=r.readable.pipeThrough(s).getReader(),c=Gh();c.readable.pipeTo(r.writable),this._writer=c.writable.getWriter();const p=()=>{o.read().then(({done:h,value:m})=>{h||(this.onPacket(m),p())}).catch(h=>{})};p();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this._writer.write(f).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let s=0;s<r.length;s++){const o=r[s],c=s===r.length-1;this._writer.write(o).then(()=>{c&&Si(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const wm={websocket:xm,webtransport:vm,polling:gm},Sm=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Fm=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ra(a){if(a.length>8e3)throw"URI too long";const r=a,s=a.indexOf("["),o=a.indexOf("]");s!=-1&&o!=-1&&(a=a.substring(0,s)+a.substring(s,o).replace(/:/g,";")+a.substring(o,a.length));let c=Sm.exec(a||""),p={},f=14;for(;f--;)p[Fm[f]]=c[f]||"";return s!=-1&&o!=-1&&(p.source=r,p.host=p.host.substring(1,p.host.length-1).replace(/;/g,":"),p.authority=p.authority.replace("[","").replace("]","").replace(/;/g,":"),p.ipv6uri=!0),p.pathNames=Cm(p,p.path),p.queryKey=km(p,p.query),p}function Cm(a,r){const s=/\/{2,9}/g,o=r.replace(s,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&o.splice(0,1),r.slice(-1)=="/"&&o.splice(o.length-1,1),o}function km(a,r){const s={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(o,c,p){c&&(s[c]=p)}),s}const Ma=typeof addEventListener=="function"&&typeof removeEventListener=="function",ci=[];Ma&&addEventListener("offline",()=>{ci.forEach(a=>a())},!1);class sn extends Pe{constructor(r,s){if(super(),this.binaryType=nm,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(s=r,r=null),r){const o=Ra(r);s.hostname=o.host,s.secure=o.protocol==="https"||o.protocol==="wss",s.port=o.port,o.query&&(s.query=o.query)}else s.host&&(s.hostname=Ra(s.host).host);Fi(this,s),this.secure=s.secure!=null?s.secure:typeof location<"u"&&location.protocol==="https:",s.hostname&&!s.port&&(s.port=this.secure?"443":"80"),this.hostname=s.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=s.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},s.transports.forEach(o=>{const c=o.prototype.name;this.transports.push(c),this._transportsByName[c]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},s),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=cm(this.opts.query)),Ma&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ci.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const s=Object.assign({},this.opts.query);s.EIO=Jp,s.transport=r,this.id&&(s.sid=this.id);const o=Object.assign({},this.opts,{query:s,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&sn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const s=this.createTransport(r);s.open(),this.setTransport(s)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",s=>this._onClose("transport close",s))}onOpen(){this.readyState="open",sn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const s=new Error("server error");s.code=r.data,this._onError(s);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let s=1;for(let o=0;o<this.writeBuffer.length;o++){const c=this.writeBuffer[o].data;if(c&&(s+=om(c)),o>0&&s>this._maxPayload)return this.writeBuffer.slice(0,o);s+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Si(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,s,o){return this._sendPacket("message",r,s,o),this}send(r,s,o){return this._sendPacket("message",r,s,o),this}_sendPacket(r,s,o,c){if(typeof s=="function"&&(c=s,s=void 0),typeof o=="function"&&(c=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;const p={type:r,data:s,options:o};this.emitReserved("packetCreate",p),this.writeBuffer.push(p),c&&this.once("flush",c),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},s=()=>{this.off("upgrade",s),this.off("upgradeError",s),r()},o=()=>{this.once("upgrade",s),this.once("upgradeError",s)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():r()}):this.upgrading?o():r()),this}_onError(r){if(sn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,s){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ma&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const o=ci.indexOf(this._offlineEventListener);o!==-1&&ci.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,s),this.writeBuffer=[],this._prevBufferLen=0}}}sn.protocol=Jp;class Em extends sn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let s=this.createTransport(r),o=!1;sn.priorWebsocketSuccess=!1;const c=()=>{o||(s.send([{type:"ping",data:"probe"}]),s.once("packet",v=>{if(!o)if(v.type==="pong"&&v.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",s),!s)return;sn.priorWebsocketSuccess=s.name==="websocket",this.transport.pause(()=>{o||this.readyState!=="closed"&&(C(),this.setTransport(s),s.send([{type:"upgrade"}]),this.emitReserved("upgrade",s),s=null,this.upgrading=!1,this.flush())})}else{const D=new Error("probe error");D.transport=s.name,this.emitReserved("upgradeError",D)}}))};function p(){o||(o=!0,C(),s.close(),s=null)}const f=v=>{const D=new Error("probe error: "+v);D.transport=s.name,p(),this.emitReserved("upgradeError",D)};function h(){f("transport closed")}function m(){f("socket closed")}function x(v){s&&v.name!==s.name&&p()}const C=()=>{s.removeListener("open",c),s.removeListener("error",f),s.removeListener("close",h),this.off("close",m),this.off("upgrading",x)};s.once("open",c),s.once("error",f),s.once("close",h),this.once("close",m),this.once("upgrading",x),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{o||s.open()},200):s.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const s=[];for(let o=0;o<r.length;o++)~this.transports.indexOf(r[o])&&s.push(r[o]);return s}}let _m=class extends Em{constructor(r,s={}){const o=typeof r=="object"?r:s;(!o.transports||o.transports&&typeof o.transports[0]=="string")&&(o.transports=(o.transports||["polling","websocket","webtransport"]).map(c=>wm[c]).filter(c=>!!c)),super(r,o)}};function zm(a,r="",s){let o=a;s=s||typeof location<"u"&&location,a==null&&(a=s.protocol+"//"+s.host),typeof a=="string"&&(a.charAt(0)==="/"&&(a.charAt(1)==="/"?a=s.protocol+a:a=s.host+a),/^(https?|wss?):\/\//.test(a)||(typeof s<"u"?a=s.protocol+"//"+a:a="https://"+a),o=Ra(a)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";const p=o.host.indexOf(":")!==-1?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+p+":"+o.port+r,o.href=o.protocol+"://"+p+(s&&s.port===o.port?"":":"+o.port),o}const Dm=typeof ArrayBuffer=="function",Nm=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,sd=Object.prototype.toString,Am=typeof Blob=="function"||typeof Blob<"u"&&sd.call(Blob)==="[object BlobConstructor]",Lm=typeof File=="function"||typeof File<"u"&&sd.call(File)==="[object FileConstructor]";function Ha(a){return Dm&&(a instanceof ArrayBuffer||Nm(a))||Am&&a instanceof Blob||Lm&&a instanceof File}function ui(a,r){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let s=0,o=a.length;s<o;s++)if(ui(a[s]))return!0;return!1}if(Ha(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return ui(a.toJSON(),!0);for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)&&ui(a[s]))return!0;return!1}function Om(a){const r=[],s=a.data,o=a;return o.data=Ta(s,r),o.attachments=r.length,{packet:o,buffers:r}}function Ta(a,r){if(!a)return a;if(Ha(a)){const s={_placeholder:!0,num:r.length};return r.push(a),s}else if(Array.isArray(a)){const s=new Array(a.length);for(let o=0;o<a.length;o++)s[o]=Ta(a[o],r);return s}else if(typeof a=="object"&&!(a instanceof Date)){const s={};for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&(s[o]=Ta(a[o],r));return s}return a}function jm(a,r){return a.data=Ba(a.data,r),delete a.attachments,a}function Ba(a,r){if(!a)return a;if(a&&a._placeholder===!0){if(typeof a.num=="number"&&a.num>=0&&a.num<r.length)return r[a.num];throw new Error("illegal attachments")}else if(Array.isArray(a))for(let s=0;s<a.length;s++)a[s]=Ba(a[s],r);else if(typeof a=="object")for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&(a[s]=Ba(a[s],r));return a}const Pm=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var pe;(function(a){a[a.CONNECT=0]="CONNECT",a[a.DISCONNECT=1]="DISCONNECT",a[a.EVENT=2]="EVENT",a[a.ACK=3]="ACK",a[a.CONNECT_ERROR=4]="CONNECT_ERROR",a[a.BINARY_EVENT=5]="BINARY_EVENT",a[a.BINARY_ACK=6]="BINARY_ACK"})(pe||(pe={}));class Rm{constructor(r){this.replacer=r}encode(r){return(r.type===pe.EVENT||r.type===pe.ACK)&&ui(r)?this.encodeAsBinary({type:r.type===pe.EVENT?pe.BINARY_EVENT:pe.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let s=""+r.type;return(r.type===pe.BINARY_EVENT||r.type===pe.BINARY_ACK)&&(s+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(s+=r.nsp+","),r.id!=null&&(s+=r.id),r.data!=null&&(s+=JSON.stringify(r.data,this.replacer)),s}encodeAsBinary(r){const s=Om(r),o=this.encodeAsString(s.packet),c=s.buffers;return c.unshift(o),c}}class Wa extends Pe{constructor(r){super(),this.reviver=r}add(r){let s;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");s=this.decodeString(r);const o=s.type===pe.BINARY_EVENT;o||s.type===pe.BINARY_ACK?(s.type=o?pe.EVENT:pe.ACK,this.reconstructor=new Mm(s),s.attachments===0&&super.emitReserved("decoded",s)):super.emitReserved("decoded",s)}else if(Ha(r)||r.base64)if(this.reconstructor)s=this.reconstructor.takeBinaryData(r),s&&(this.reconstructor=null,super.emitReserved("decoded",s));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let s=0;const o={type:Number(r.charAt(0))};if(pe[o.type]===void 0)throw new Error("unknown packet type "+o.type);if(o.type===pe.BINARY_EVENT||o.type===pe.BINARY_ACK){const p=s+1;for(;r.charAt(++s)!=="-"&&s!=r.length;);const f=r.substring(p,s);if(f!=Number(f)||r.charAt(s)!=="-")throw new Error("Illegal attachments");o.attachments=Number(f)}if(r.charAt(s+1)==="/"){const p=s+1;for(;++s&&!(r.charAt(s)===","||s===r.length););o.nsp=r.substring(p,s)}else o.nsp="/";const c=r.charAt(s+1);if(c!==""&&Number(c)==c){const p=s+1;for(;++s;){const f=r.charAt(s);if(f==null||Number(f)!=f){--s;break}if(s===r.length)break}o.id=Number(r.substring(p,s+1))}if(r.charAt(++s)){const p=this.tryParse(r.substr(s));if(Wa.isPayloadValid(o.type,p))o.data=p;else throw new Error("invalid payload")}return o}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,s){switch(r){case pe.CONNECT:return Fp(s);case pe.DISCONNECT:return s===void 0;case pe.CONNECT_ERROR:return typeof s=="string"||Fp(s);case pe.EVENT:case pe.BINARY_EVENT:return Array.isArray(s)&&(typeof s[0]=="number"||typeof s[0]=="string"&&Pm.indexOf(s[0])===-1);case pe.ACK:case pe.BINARY_ACK:return Array.isArray(s)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Mm{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const s=jm(this.reconPack,this.buffers);return this.finishedReconstruction(),s}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Fp(a){return Object.prototype.toString.call(a)==="[object Object]"}const Tm=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Wa,Encoder:Rm,get PacketType(){return pe}},Symbol.toStringTag,{value:"Module"}));function Ft(a,r,s){return a.on(r,s),function(){a.off(r,s)}}const Bm=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class id extends Pe{constructor(r,s,o){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=s,o&&o.auth&&(this.auth=o.auth),this._opts=Object.assign({},o),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[Ft(r,"open",this.onopen.bind(this)),Ft(r,"packet",this.onpacket.bind(this)),Ft(r,"error",this.onerror.bind(this)),Ft(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...s){var o,c,p;if(Bm.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(s.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(s),this;const f={type:pe.EVENT,data:s};if(f.options={},f.options.compress=this.flags.compress!==!1,typeof s[s.length-1]=="function"){const C=this.ids++,v=s.pop();this._registerAckCallback(C,v),f.id=C}const h=(c=(o=this.io.engine)===null||o===void 0?void 0:o.transport)===null||c===void 0?void 0:c.writable,m=this.connected&&!(!((p=this.io.engine)===null||p===void 0)&&p._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(f),this.packet(f)):this.sendBuffer.push(f)),this.flags={},this}_registerAckCallback(r,s){var o;const c=(o=this.flags.timeout)!==null&&o!==void 0?o:this._opts.ackTimeout;if(c===void 0){this.acks[r]=s;return}const p=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);s.call(this,new Error("operation has timed out"))},c),f=(...h)=>{this.io.clearTimeoutFn(p),s.apply(this,h)};f.withError=!0,this.acks[r]=f}emitWithAck(r,...s){return new Promise((o,c)=>{const p=(f,h)=>f?c(f):o(h);p.withError=!0,s.push(p),this.emit(r,...s)})}_addToQueue(r){let s;typeof r[r.length-1]=="function"&&(s=r.pop());const o={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((c,...p)=>(this._queue[0],c!==null?o.tryCount>this._opts.retries&&(this._queue.shift(),s&&s(c)):(this._queue.shift(),s&&s(null,...p)),o.pending=!1,this._drainQueue())),this._queue.push(o),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const s=this._queue[0];s.pending&&!r||(s.pending=!0,s.tryCount++,this.flags=s.flags,this.emit.apply(this,s.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:pe.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,s){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,s),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(o=>String(o.id)===r)){const o=this.acks[r];delete this.acks[r],o.withError&&o.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case pe.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case pe.EVENT:case pe.BINARY_EVENT:this.onevent(r);break;case pe.ACK:case pe.BINARY_ACK:this.onack(r);break;case pe.DISCONNECT:this.ondisconnect();break;case pe.CONNECT_ERROR:this.destroy();const o=new Error(r.data.message);o.data=r.data.data,this.emitReserved("connect_error",o);break}}onevent(r){const s=r.data||[];r.id!=null&&s.push(this.ack(r.id)),this.connected?this.emitEvent(s):this.receiveBuffer.push(Object.freeze(s))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const s=this._anyListeners.slice();for(const o of s)o.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const s=this;let o=!1;return function(...c){o||(o=!0,s.packet({type:pe.ACK,id:r,data:c}))}}onack(r){const s=this.acks[r.id];typeof s=="function"&&(delete this.acks[r.id],s.withError&&r.data.unshift(null),s.apply(this,r.data))}onconnect(r,s){this.id=r,this.recovered=s&&this._pid===s,this._pid=s,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:pe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const s=this._anyListeners;for(let o=0;o<s.length;o++)if(r===s[o])return s.splice(o,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const s=this._anyOutgoingListeners;for(let o=0;o<s.length;o++)if(r===s[o])return s.splice(o,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const s=this._anyOutgoingListeners.slice();for(const o of s)o.apply(this,r.data)}}}function Jn(a){a=a||{},this.ms=a.min||100,this.max=a.max||1e4,this.factor=a.factor||2,this.jitter=a.jitter>0&&a.jitter<=1?a.jitter:0,this.attempts=0}Jn.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),s=Math.floor(r*this.jitter*a);a=(Math.floor(r*10)&1)==0?a-s:a+s}return Math.min(a,this.max)|0};Jn.prototype.reset=function(){this.attempts=0};Jn.prototype.setMin=function(a){this.ms=a};Jn.prototype.setMax=function(a){this.max=a};Jn.prototype.setJitter=function(a){this.jitter=a};class Ua extends Pe{constructor(r,s){var o;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(s=r,r=void 0),s=s||{},s.path=s.path||"/socket.io",this.opts=s,Fi(this,s),this.reconnection(s.reconnection!==!1),this.reconnectionAttempts(s.reconnectionAttempts||1/0),this.reconnectionDelay(s.reconnectionDelay||1e3),this.reconnectionDelayMax(s.reconnectionDelayMax||5e3),this.randomizationFactor((o=s.randomizationFactor)!==null&&o!==void 0?o:.5),this.backoff=new Jn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(s.timeout==null?2e4:s.timeout),this._readyState="closed",this.uri=r;const c=s.parser||Tm;this.encoder=new c.Encoder,this.decoder=new c.Decoder,this._autoConnect=s.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var s;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(s=this.backoff)===null||s===void 0||s.setMin(r),this)}randomizationFactor(r){var s;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(s=this.backoff)===null||s===void 0||s.setJitter(r),this)}reconnectionDelayMax(r){var s;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(s=this.backoff)===null||s===void 0||s.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new _m(this.uri,this.opts);const s=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;const c=Ft(s,"open",function(){o.onopen(),r&&r()}),p=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},f=Ft(s,"error",p);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{c(),p(new Error("timeout")),s.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(c),this.subs.push(f),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(Ft(r,"ping",this.onping.bind(this)),Ft(r,"data",this.ondata.bind(this)),Ft(r,"error",this.onerror.bind(this)),Ft(r,"close",this.onclose.bind(this)),Ft(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(s){this.onclose("parse error",s)}}ondecoded(r){Si(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,s){let o=this.nsps[r];return o?this._autoConnect&&!o.active&&o.connect():(o=new id(this,r,s),this.nsps[r]=o),o}_destroy(r){const s=Object.keys(this.nsps);for(const o of s)if(this.nsps[o].active)return;this._close()}_packet(r){const s=this.encoder.encode(r);for(let o=0;o<s.length;o++)this.engine.write(s[o],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,s){var o;this.cleanup(),(o=this.engine)===null||o===void 0||o.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,s),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const s=this.backoff.duration();this._reconnecting=!0;const o=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(c=>{c?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",c)):r.onreconnect()}))},s);this.opts.autoUnref&&o.unref(),this.subs.push(()=>{this.clearTimeoutFn(o)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const br={};function pi(a,r){typeof a=="object"&&(r=a,a=void 0),r=r||{};const s=zm(a,r.path||"/socket.io"),o=s.source,c=s.id,p=s.path,f=br[c]&&p in br[c].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||f;let m;return h?m=new Ua(o,r):(br[c]||(br[c]=new Ua(o,r)),m=br[c]),s.query&&!r.query&&(r.query=s.queryKey),m.socket(s.path,r)}Object.assign(pi,{Manager:Ua,Socket:id,io:pi,connect:pi});const Kn=pi("http://localhost:3001",{autoConnect:!1}),Um=()=>{var T;const{t:a}=wi(),{currentSession:r,messages:s,addMessage:o,isLoading:c,setLoading:p,upsertSession:f}=jp(),[h,m]=J.useState(""),x=J.useRef(null),[C,v]=J.useState(!1),D=(r==null?void 0:r.id)||null,A=()=>{var O;(O=x.current)==null||O.scrollIntoView({behavior:"smooth"})};J.useEffect(()=>{A()},[s]),J.useEffect(()=>{if(!D)return;Kn.connect(),Kn.emit("join_session",D);const O=W=>{W.role==="assistant"?(o(W),p(!1)):typeof W=="string"&&W.startsWith("Error:")&&(o({role:"assistant",content:W}),p(!1))};return Kn.on("message",O),()=>{Kn.off("message",O),Kn.disconnect()}},[D]);const N=()=>{if(!h.trim()||!D||c)return;const O={role:"user",content:h,timestamp:Date.now()};o(O),p(!0),Kn.emit("message",{sessionId:D,content:h}),m("")};return D?y.jsxs("div",{"trae-inspector-start-line":"81","trae-inspector-start-column":"4","trae-inspector-end-line":"217","trae-inspector-end-column":"10","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 flex flex-col h-full bg-white relative",children:[y.jsxs("header",{"trae-inspector-start-line":"83","trae-inspector-start-column":"6","trae-inspector-end-line":"106","trae-inspector-end-column":"15","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"h-16 border-b border-gray-100 flex items-center justify-between px-4 sticky top-0 bg-white/80 backdrop-blur-md z-10",children:[y.jsxs("div",{"trae-inspector-start-line":"84","trae-inspector-start-column":"8","trae-inspector-end-line":"96","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex flex-col",children:[y.jsxs("div",{"trae-inspector-start-line":"85","trae-inspector-start-column":"10","trae-inspector-end-line":"91","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2",children:[y.jsx("span",{"trae-inspector-start-line":"86","trae-inspector-start-column":"12","trae-inspector-end-line":"86","trae-inspector-end-column":"82","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"font-semibold text-gray-700",children:a("chat.title")}),y.jsx("span",{"trae-inspector-start-line":"87","trae-inspector-start-column":"12","trae-inspector-end-line":"87","trae-inspector-end-column":"52","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22%2F%22%2C%22textStartLine%22%3A%2287%22%2C%22textStartColumn%22%3A%2244%22%2C%22textEndLine%22%3A%2287%22%2C%22textEndColumn%22%3A%2245%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-gray-300",children:"/"}),y.jsx("span",{"trae-inspector-start-line":"88","trae-inspector-start-column":"12","trae-inspector-end-line":"90","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm text-gray-700",children:(T=r==null?void 0:r.alias)!=null&&T.trim()?r.alias:`${D.slice(0,8)}...`})]}),y.jsxs("div",{"trae-inspector-start-line":"92","trae-inspector-start-column":"10","trae-inspector-end-line":"95","trae-inspector-end-column":"16","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2 text-xs text-gray-500 font-mono mt-0.5",children:[y.jsx($a,{size:14,className:"text-gray-400"}),y.jsx("span",{"trae-inspector-start-line":"94","trae-inspector-start-column":"12","trae-inspector-end-line":"94","trae-inspector-end-column":"86","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"truncate max-w-[46vw]",children:r==null?void 0:r.workspace})]})]}),y.jsx("div",{"trae-inspector-start-line":"97","trae-inspector-start-column":"8","trae-inspector-end-line":"105","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-center gap-2",children:y.jsx("button",{"trae-inspector-start-line":"98","trae-inspector-start-column":"10","trae-inspector-end-line":"104","trae-inspector-end-column":"19","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:()=>v(!0),className:"p-2 rounded-lg hover:bg-gray-100 text-gray-600 hover:text-gray-800 transition-colors","aria-label":a("sessionList.editSession"),children:y.jsx(Mp,{size:18})})})]}),y.jsx("div",{"trae-inspector-start-line":"109","trae-inspector-start-column":"6","trae-inspector-end-line":"172","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 overflow-y-auto custom-scrollbar",children:y.jsxs("div",{"trae-inspector-start-line":"110","trae-inspector-start-column":"8","trae-inspector-end-line":"171","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"max-w-3xl mx-auto py-8 px-4 space-y-6",children:[s.length===0&&y.jsxs("div",{"trae-inspector-start-line":"112","trae-inspector-start-column":"16","trae-inspector-end-line":"115","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-center py-20 opacity-50",children:[y.jsx("div",{"trae-inspector-start-line":"113","trae-inspector-start-column":"20","trae-inspector-end-line":"113","trae-inspector-end-column":"59","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22%F0%9F%8D%87%22%2C%22textStartLine%22%3A%22113%22%2C%22textStartColumn%22%3A%2251%22%2C%22textEndLine%22%3A%22113%22%2C%22textEndColumn%22%3A%2253%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-4xl mb-4",children:"🍇"}),y.jsx("p",{"trae-inspector-start-line":"114","trae-inspector-start-column":"20","trae-inspector-end-line":"114","trae-inspector-end-column":"44","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",children:a("chat.empty")})]}),s.map((O,W)=>{const K=O.role==="user";return y.jsxs("div",{"trae-inspector-start-line":"120","trae-inspector-start-column":"16","trae-inspector-end-line":"152","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:`flex w-full gap-4 ${K?"justify-end":"justify-start"}`,children:[!K&&y.jsx("div",{"trae-inspector-start-line":"125","trae-inspector-start-column":"20","trae-inspector-end-line":"127","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"w-8 h-8 rounded-full bg-teal-600 flex items-center justify-center flex-shrink-0 shadow-sm mt-1",children:y.jsx(ep,{size:16,className:"text-white"})}),y.jsxs("div",{"trae-inspector-start-line":"130","trae-inspector-start-column":"16","trae-inspector-end-line":"145","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:`flex flex-col max-w-[85%] ${K?"items-end":"items-start"}`,children:[y.jsx("div",{"trae-inspector-start-line":"131","trae-inspector-start-column":"20","trae-inspector-end-line":"135","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex items-baseline gap-2 mb-1",children:y.jsx("span",{"trae-inspector-start-line":"132","trae-inspector-start-column":"24","trae-inspector-end-line":"134","trae-inspector-end-column":"31","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs font-medium text-gray-400",children:a(K?"chat.you":"chat.assistant")})}),y.jsx("div",{"trae-inspector-start-line":"136","trae-inspector-start-column":"20","trae-inspector-end-line":"144","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:`px-4 py-3 rounded-2xl shadow-sm whitespace-pre-wrap text-[15px] leading-relaxed ${K?"bg-blue-600 text-white rounded-br-none":"bg-gray-50 text-gray-800 border border-gray-100 rounded-bl-none"}`,children:O.content})]}),K&&y.jsx("div",{"trae-inspector-start-line":"148","trae-inspector-start-column":"20","trae-inspector-end-line":"150","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center flex-shrink-0 mt-1",children:y.jsx(th,{size:16,className:"text-gray-500"})})]},W)}),c&&y.jsxs("div",{"trae-inspector-start-line":"157","trae-inspector-start-column":"12","trae-inspector-end-line":"168","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex w-full gap-4 justify-start",children:[y.jsx("div",{"trae-inspector-start-line":"158","trae-inspector-start-column":"16","trae-inspector-end-line":"160","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"w-8 h-8 rounded-full bg-teal-600 flex items-center justify-center flex-shrink-0 shadow-sm mt-1",children:y.jsx(ep,{size:16,className:"text-white"})}),y.jsxs("div",{"trae-inspector-start-line":"161","trae-inspector-start-column":"16","trae-inspector-end-line":"167","trae-inspector-end-column":"22","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex flex-col items-start",children:[y.jsx("div",{"trae-inspector-start-line":"162","trae-inspector-start-column":"20","trae-inspector-end-line":"162","trae-inspector-end-column":"103","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs font-medium text-gray-400 mb-1",children:a("chat.assistant")}),y.jsxs("div",{"trae-inspector-start-line":"163","trae-inspector-start-column":"20","trae-inspector-end-line":"166","trae-inspector-end-column":"26","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"px-4 py-3 bg-gray-50 rounded-2xl rounded-bl-none border border-gray-100 flex items-center gap-2 text-gray-500",children:[y.jsx(b2,{className:"animate-spin",size:16}),y.jsx("span",{"trae-inspector-start-line":"165","trae-inspector-start-column":"24","trae-inspector-end-line":"165","trae-inspector-end-column":"77","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-sm",children:a("chat.thinking")})]})]})]}),y.jsx("div",{"trae-inspector-start-line":"170","trae-inspector-start-column":"12","trae-inspector-end-line":"170","trae-inspector-end-column":"56","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",ref:x,className:"h-4"})]})}),y.jsx("div",{"trae-inspector-start-line":"175","trae-inspector-start-column":"6","trae-inspector-end-line":"204","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"p-4 bg-white",children:y.jsxs("div",{"trae-inspector-start-line":"176","trae-inspector-start-column":"8","trae-inspector-end-line":"203","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"max-w-3xl mx-auto relative",children:[y.jsxs("div",{"trae-inspector-start-line":"177","trae-inspector-start-column":"12","trae-inspector-end-line":"197","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"relative flex items-end gap-2 p-2 bg-gray-50 border border-gray-200 rounded-xl shadow-sm focus-within:ring-2 focus-within:ring-blue-100 focus-within:border-blue-400 transition-all",children:[y.jsx("textarea",{"trae-inspector-start-line":"178","trae-inspector-start-column":"16","trae-inspector-end-line":"185","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",value:h,onChange:O=>m(O.target.value),placeholder:a("chat.inputPlaceholder"),className:"flex-1 max-h-[200px] min-h-[50px] py-3 px-3 bg-transparent border-none focus:ring-0 resize-none text-gray-800 placeholder:text-gray-400",style:{height:"auto"},rows:1}),y.jsx("button",{"trae-inspector-start-line":"186","trae-inspector-start-column":"16","trae-inspector-end-line":"196","trae-inspector-end-column":"25","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",onClick:N,disabled:!h.trim()||c,className:`p-2 rounded-lg mb-1 transition-all duration-200 ${h.trim()&&!c?"bg-blue-600 text-white hover:bg-blue-700 shadow-sm":"bg-gray-200 text-gray-400 cursor-not-allowed"}`,children:y.jsx(Q2,{size:18})})]}),y.jsx("div",{"trae-inspector-start-line":"198","trae-inspector-start-column":"12","trae-inspector-end-line":"202","trae-inspector-end-column":"18","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-center mt-2",children:y.jsx("p",{"trae-inspector-start-line":"199","trae-inspector-start-column":"16","trae-inspector-end-line":"201","trae-inspector-end-column":"20","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-xs text-gray-400",children:a("chat.disclaimer")})})]})}),C&&r&&y.jsx(Hp,{isOpen:!0,session:r,onClose:()=>v(!1),onSaved:O=>{f(O),v(!1)}})]}):y.jsxs("div",{"trae-inspector-start-line":"68","trae-inspector-start-column":"6","trae-inspector-end-line":"76","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 flex flex-col items-center justify-center bg-white text-gray-800 p-4",children:[y.jsx("div",{"trae-inspector-start-line":"69","trae-inspector-start-column":"8","trae-inspector-end-line":"71","trae-inspector-end-column":"14","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"w-16 h-16 bg-gray-100 rounded-2xl flex items-center justify-center mb-6 shadow-sm",children:y.jsx("span",{"trae-inspector-start-line":"70","trae-inspector-start-column":"12","trae-inspector-end-line":"70","trae-inspector-end-column":"48","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22text%22%3A%22%F0%9F%8D%87%22%2C%22textStartLine%22%3A%2270%22%2C%22textStartColumn%22%3A%2239%22%2C%22textEndLine%22%3A%2270%22%2C%22textEndColumn%22%3A%2241%22%2C%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-4xl",children:"🍇"})}),y.jsx("h1",{"trae-inspector-start-line":"72","trae-inspector-start-column":"8","trae-inspector-end-line":"72","trae-inspector-end-column":"77","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-2xl font-semibold mb-2",children:a("welcome.title")}),y.jsx("p",{"trae-inspector-start-line":"73","trae-inspector-start-column":"8","trae-inspector-end-line":"75","trae-inspector-end-column":"12","trae-inspector-file-path":"client/components/ChatWindow.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"text-gray-500 max-w-md text-center",children:a("welcome.subtitle")})]})};function bm(){return y.jsxs("div",{"trae-inspector-start-line":"7","trae-inspector-start-column":"4","trae-inspector-end-line":"12","trae-inspector-end-column":"10","trae-inspector-file-path":"client/App.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex h-screen w-screen overflow-hidden bg-white text-gray-900 font-sans antialiased selection:bg-blue-100 selection:text-blue-900",children:[y.jsx(Hh,{}),y.jsx("main",{"trae-inspector-start-line":"9","trae-inspector-start-column":"6","trae-inspector-end-line":"11","trae-inspector-end-column":"13","trae-inspector-file-path":"client/App.tsx","trae-inspector-static-props":"%7B%22cwd%22%3A%22%2FUsers%2Fzxz%2FDocuments%2FXiaoZuoClaw%22%7D",className:"flex-1 flex flex-col h-full relative",children:y.jsx(Um,{})})]})}const{slice:Im,forEach:$m}=[];function Xm(a){return $m.call(Im.call(arguments,1),r=>{if(r)for(const s in r)a[s]===void 0&&(a[s]=r[s])}),a}function Zm(a){return typeof a!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(a))}const Cp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Vm=function(a,r){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},c=encodeURIComponent(r);let p=`${a}=${c}`;if(o.maxAge>0){const f=o.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");p+=`; Max-Age=${Math.floor(f)}`}if(o.domain){if(!Cp.test(o.domain))throw new TypeError("option domain is invalid");p+=`; Domain=${o.domain}`}if(o.path){if(!Cp.test(o.path))throw new TypeError("option path is invalid");p+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");p+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(p+="; HttpOnly"),o.secure&&(p+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;case"none":p+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(p+="; Partitioned"),p},kp={create(a,r,s,o){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(c.expires=new Date,c.expires.setTime(c.expires.getTime()+s*60*1e3)),o&&(c.domain=o),document.cookie=Vm(a,r,c)},read(a){const r=`${a}=`,s=document.cookie.split(";");for(let o=0;o<s.length;o++){let c=s[o];for(;c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(r)===0)return c.substring(r.length,c.length)}return null},remove(a,r){this.create(a,"",-1,r)}};var Hm={name:"cookie",lookup(a){let{lookupCookie:r}=a;if(r&&typeof document<"u")return kp.read(r)||void 0},cacheUserLanguage(a,r){let{lookupCookie:s,cookieMinutes:o,cookieDomain:c,cookieOptions:p}=r;s&&typeof document<"u"&&kp.create(s,a,o,c,p)}},Wm={name:"querystring",lookup(a){var o;let{lookupQuerystring:r}=a,s;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&((o=window.location.hash)==null?void 0:o.indexOf("?"))>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const f=c.substring(1).split("&");for(let h=0;h<f.length;h++){const m=f[h].indexOf("=");m>0&&f[h].substring(0,m)===r&&(s=f[h].substring(m+1))}}return s}},Km={name:"hash",lookup(a){var c;let{lookupHash:r,lookupFromHashIndex:s}=a,o;if(typeof window<"u"){const{hash:p}=window.location;if(p&&p.length>2){const f=p.substring(1);if(r){const h=f.split("&");for(let m=0;m<h.length;m++){const x=h[m].indexOf("=");x>0&&h[m].substring(0,x)===r&&(o=h[m].substring(x+1))}}if(o)return o;if(!o&&s>-1){const h=p.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?(c=h[typeof s=="number"?s:0])==null?void 0:c.replace("/",""):void 0}}}return o}};let qn=null;const Ep=()=>{if(qn!==null)return qn;try{if(qn=typeof window<"u"&&window.localStorage!==null,!qn)return!1;const a="i18next.translate.boo";window.localStorage.setItem(a,"foo"),window.localStorage.removeItem(a)}catch{qn=!1}return qn};var qm={name:"localStorage",lookup(a){let{lookupLocalStorage:r}=a;if(r&&Ep())return window.localStorage.getItem(r)||void 0},cacheUserLanguage(a,r){let{lookupLocalStorage:s}=r;s&&Ep()&&window.localStorage.setItem(s,a)}};let Qn=null;const _p=()=>{if(Qn!==null)return Qn;try{if(Qn=typeof window<"u"&&window.sessionStorage!==null,!Qn)return!1;const a="i18next.translate.boo";window.sessionStorage.setItem(a,"foo"),window.sessionStorage.removeItem(a)}catch{Qn=!1}return Qn};var Qm={name:"sessionStorage",lookup(a){let{lookupSessionStorage:r}=a;if(r&&_p())return window.sessionStorage.getItem(r)||void 0},cacheUserLanguage(a,r){let{lookupSessionStorage:s}=r;s&&_p()&&window.sessionStorage.setItem(s,a)}},Ym={name:"navigator",lookup(a){const r=[];if(typeof navigator<"u"){const{languages:s,userLanguage:o,language:c}=navigator;if(s)for(let p=0;p<s.length;p++)r.push(s[p]);o&&r.push(o),c&&r.push(c)}return r.length>0?r:void 0}},Jm={name:"htmlTag",lookup(a){let{htmlTag:r}=a,s;const o=r||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(s=o.getAttribute("lang")),s}},Gm={name:"path",lookup(a){var c;let{lookupFromPathIndex:r}=a;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?(c=s[typeof r=="number"?r:0])==null?void 0:c.replace("/",""):void 0}},eg={name:"subdomain",lookup(a){var c,p;let{lookupFromSubdomainIndex:r}=a;const s=typeof r=="number"?r+1:1,o=typeof window<"u"&&((p=(c=window.location)==null?void 0:c.hostname)==null?void 0:p.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[s]}};let od=!1;try{document.cookie,od=!0}catch{}const ad=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];od||ad.splice(1,1);const tg=()=>({order:ad,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:a=>a});class ld{constructor(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(r,s)}init(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r,this.options=Xm(s,this.options||{},tg()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=c=>c.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(Hm),this.addDetector(Wm),this.addDetector(qm),this.addDetector(Qm),this.addDetector(Ym),this.addDetector(Jm),this.addDetector(Gm),this.addDetector(eg),this.addDetector(Km)}addDetector(r){return this.detectors[r.name]=r,this}detect(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return r.forEach(o=>{if(this.detectors[o]){let c=this.detectors[o].lookup(this.options);c&&typeof c=="string"&&(c=[c]),c&&(s=s.concat(c))}}),s=s.filter(o=>o!=null&&!Zm(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||s.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(r,this.options)}))}}ld.type="languageDetector";function ba(a){"@babel/helpers - typeof";return ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ba(a)}function cd(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":ba(XMLHttpRequest))==="object"}function ng(a){return!!a&&typeof a.then=="function"}function rg(a){return ng(a)?a:Promise.resolve(a)}const sg="modulepreload",ig=function(a){return"/"+a},zp={},og=function(r,s,o){let c=Promise.resolve();if(s&&s.length>0){let f=function(x){return Promise.all(x.map(C=>Promise.resolve(C).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=f(s.map(x=>{if(x=ig(x),x in zp)return;zp[x]=!0;const C=x.endsWith(".css"),v=C?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${x}"]${v}`))return;const D=document.createElement("link");if(D.rel=C?"stylesheet":sg,C||(D.as="script"),D.crossOrigin="",D.href=x,m&&D.setAttribute("nonce",m),document.head.appendChild(D),C)return new Promise((A,N)=>{D.addEventListener("load",A),D.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${x}`)))})}))}function p(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return c.then(f=>{for(const h of f||[])h.status==="rejected"&&p(h.reason);return r().catch(p)})};function Dp(a,r){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);r&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function Np(a){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?Dp(Object(s),!0).forEach(function(o){ag(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Dp(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function ag(a,r,s){return(r=lg(r))in a?Object.defineProperty(a,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[r]=s,a}function lg(a){var r=cg(a,"string");return Fn(r)=="symbol"?r:r+""}function cg(a,r){if(Fn(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,r);if(Fn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}function Fn(a){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fn(a)}var on=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?on=global.fetch:typeof window<"u"&&window.fetch&&(on=window.fetch);var Hr;cd()&&(typeof global<"u"&&global.XMLHttpRequest?Hr=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Hr=window.XMLHttpRequest));var yi;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?yi=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(yi=window.ActiveXObject));typeof on!="function"&&(on=void 0);if(!on&&!Hr&&!yi)try{og(()=>import("./browser-ponyfill-C0qLfQMC.js").then(a=>a.b),[]).then(function(a){on=a.default}).catch(function(){})}catch{}var Ia=function(r,s){if(s&&Fn(s)==="object"){var o="";for(var c in s)o+="&"+encodeURIComponent(c)+"="+encodeURIComponent(s[c]);if(!o)return r;r=r+(r.indexOf("?")!==-1?"&":"?")+o.slice(1)}return r},Ap=function(r,s,o,c){var p=function(m){if(!m.ok)return o(m.statusText||"Error",{status:m.status});m.text().then(function(x){o(null,{status:m.status,data:x})}).catch(o)};if(c){var f=c(r,s);if(f instanceof Promise){f.then(p).catch(o);return}}typeof fetch=="function"?fetch(r,s).then(p).catch(o):on(r,s).then(p).catch(o)},Lp=!1,ug=function(r,s,o,c){r.queryStringParams&&(s=Ia(s,r.queryStringParams));var p=Np({},typeof r.customHeaders=="function"?r.customHeaders():r.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(p["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),o&&(p["Content-Type"]="application/json");var f=typeof r.requestOptions=="function"?r.requestOptions(o):r.requestOptions,h=Np({method:o?"POST":"GET",body:o?r.stringify(o):void 0,headers:p},Lp?{}:f),m=typeof r.alternateFetch=="function"&&r.alternateFetch.length>=1?r.alternateFetch:void 0;try{Ap(s,h,c,m)}catch(x){if(!f||Object.keys(f).length===0||!x.message||x.message.indexOf("not implemented")<0)return c(x);try{Object.keys(f).forEach(function(C){delete h[C]}),Ap(s,h,c,m),Lp=!0}catch(C){c(C)}}},pg=function(r,s,o,c){o&&Fn(o)==="object"&&(o=Ia("",o).slice(1)),r.queryStringParams&&(s=Ia(s,r.queryStringParams));try{var p=Hr?new Hr:new yi("MSXML2.XMLHTTP.3.0");p.open(o?"POST":"GET",s,1),r.crossDomain||p.setRequestHeader("X-Requested-With","XMLHttpRequest"),p.withCredentials=!!r.withCredentials,o&&p.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),p.overrideMimeType&&p.overrideMimeType("application/json");var f=r.customHeaders;if(f=typeof f=="function"?f():f,f)for(var h in f)p.setRequestHeader(h,f[h]);p.onreadystatechange=function(){p.readyState>3&&c(p.status>=400?p.statusText:null,{status:p.status,data:p.responseText})},p.send(o)}catch(m){console&&console.log(m)}},dg=function(r,s,o,c){if(typeof o=="function"&&(c=o,o=void 0),c=c||function(){},on&&s.indexOf("file:")!==0)return ug(r,s,o,c);if(cd()||typeof ActiveXObject=="function")return pg(r,s,o,c);c(new Error("No fetch and no xhr implementation found!"))};function Yn(a){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yn(a)}function Op(a,r){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);r&&(o=o.filter(function(c){return Object.getOwnPropertyDescriptor(a,c).enumerable})),s.push.apply(s,o)}return s}function Aa(a){for(var r=1;r<arguments.length;r++){var s=arguments[r]!=null?arguments[r]:{};r%2?Op(Object(s),!0).forEach(function(o){ud(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):Op(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function fg(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function hg(a,r){for(var s=0;s<r.length;s++){var o=r[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,pd(o.key),o)}}function mg(a,r,s){return r&&hg(a.prototype,r),Object.defineProperty(a,"prototype",{writable:!1}),a}function ud(a,r,s){return(r=pd(r))in a?Object.defineProperty(a,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[r]=s,a}function pd(a){var r=gg(a,"string");return Yn(r)=="symbol"?r:r+""}function gg(a,r){if(Yn(a)!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,r);if(Yn(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}var yg=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(s){return JSON.parse(s)},stringify:JSON.stringify,parsePayload:function(s,o,c){return ud({},o,c||"")},parseLoadPayload:function(s,o){},request:dg,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},dd=(function(){function a(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};fg(this,a),this.services=r,this.options=s,this.allOptions=o,this.type="backend",this.init(r,s,o)}return mg(a,[{key:"init",value:function(s){var o=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=s,this.options=Aa(Aa(Aa({},yg()),this.options||{}),c),this.allOptions=p,this.services&&this.options.reloadInterval){var f=setInterval(function(){return o.reload()},this.options.reloadInterval);Yn(f)==="object"&&typeof f.unref=="function"&&f.unref()}}},{key:"readMulti",value:function(s,o,c){this._readAny(s,s,o,o,c)}},{key:"read",value:function(s,o,c){this._readAny([s],s,[o],o,c)}},{key:"_readAny",value:function(s,o,c,p,f){var h=this,m=this.options.loadPath;typeof this.options.loadPath=="function"&&(m=this.options.loadPath(s,c)),m=rg(m),m.then(function(x){if(!x)return f(null,{});var C=h.services.interpolator.interpolate(x,{lng:s.join("+"),ns:c.join("+")});h.loadUrl(C,f,o,p)})}},{key:"loadUrl",value:function(s,o,c,p){var f=this,h=typeof c=="string"?[c]:c,m=typeof p=="string"?[p]:p,x=this.options.parseLoadPayload(h,m);this.options.request(this.options,s,x,function(C,v){if(v&&(v.status>=500&&v.status<600||!v.status))return o("failed loading "+s+"; status code: "+v.status,!0);if(v&&v.status>=400&&v.status<500)return o("failed loading "+s+"; status code: "+v.status,!1);if(!v&&C&&C.message){var D=C.message.toLowerCase(),A=["failed","fetch","network","load"].find(function(O){return D.indexOf(O)>-1});if(A)return o("failed loading "+s+": "+C.message,!0)}if(C)return o(C,!1);var N,T;try{typeof v.data=="string"?N=f.options.parse(v.data,c,p):N=v.data}catch{T="failed parsing "+s+" to json"}if(T)return o(T,!1);o(null,N)})}},{key:"create",value:function(s,o,c,p,f){var h=this;if(this.options.addPath){typeof s=="string"&&(s=[s]);var m=this.options.parsePayload(o,c,p),x=0,C=[],v=[];s.forEach(function(D){var A=h.options.addPath;typeof h.options.addPath=="function"&&(A=h.options.addPath(D,o));var N=h.services.interpolator.interpolate(A,{lng:D,ns:o});h.options.request(h.options,N,m,function(T,O){x+=1,C.push(T),v.push(O),x===s.length&&typeof f=="function"&&f(C,v)})})}}},{key:"reload",value:function(){var s=this,o=this.services,c=o.backendConnector,p=o.languageUtils,f=o.logger,h=c.language;if(!(h&&h.toLowerCase()==="cimode")){var m=[],x=function(v){var D=p.toResolveHierarchy(v);D.forEach(function(A){m.indexOf(A)<0&&m.push(A)})};x(h),this.allOptions.preload&&this.allOptions.preload.forEach(function(C){return x(C)}),m.forEach(function(C){s.allOptions.ns.forEach(function(v){c.read(C,v,"read",null,null,function(D,A){D&&f.warn("loading namespace ".concat(v," for language ").concat(C," failed"),D),!D&&A&&f.log("loaded namespace ".concat(v," for language ").concat(C),A),c.loaded("".concat(C,"|").concat(v),D,A)})})})}}}])})();dd.type="backend";qe.use(dd).use(ld).use(Mh).init({fallbackLng:"en",debug:!0,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}});v2.createRoot(document.getElementById("root")).render(y.jsx(J.StrictMode,{children:y.jsx(J.Suspense,{fallback:"Loading...",children:y.jsx(bm,{})})}));export{xg as c,u2 as g};
|