var J0=Object.defineProperty;var $0=(r,c,f)=>c in r?J0(r,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[c]=f;var Nt=(r,c,f)=>$0(r,typeof c!="symbol"?c+"":c,f);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))s(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const A of v.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&s(A)}).observe(document,{childList:!0,subtree:!0});function f(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function s(h){if(h.ep)return;h.ep=!0;const v=f(h);fetch(h.href,v)}})();var Gs={exports:{}},$n={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var id;function W0(){if(id)return $n;id=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(s,h,v){var A=null;if(v!==void 0&&(A=""+v),h.key!==void 0&&(A=""+h.key),"key"in h){v={};for(var j in h)j!=="key"&&(v[j]=h[j])}else v=h;return h=v.ref,{$$typeof:r,type:s,key:A,ref:h!==void 0?h:null,props:v}}return $n.Fragment=c,$n.jsx=f,$n.jsxs=f,$n}var cd;function F0(){return cd||(cd=1,Gs.exports=W0()),Gs.exports}var m=F0(),Xs={exports:{}},P={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sd;function I0(){if(sd)return P;sd=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),A=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),H=Symbol.iterator;function J(y){return y===null||typeof y!="object"?null:(y=H&&y[H]||y["@@iterator"],typeof y=="function"?y:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,nt={};function Yt(y,M,B){this.props=y,this.context=M,this.refs=nt,this.updater=B||U}Yt.prototype.isReactComponent={},Yt.prototype.setState=function(y,M){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,M,"setState")},Yt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function Qt(){}Qt.prototype=Yt.prototype;function Ct(y,M,B){this.props=y,this.context=M,this.refs=nt,this.updater=B||U}var ft=Ct.prototype=new Qt;ft.constructor=Ct,F(ft,Yt.prototype),ft.isPureReactComponent=!0;var Vt=Array.isArray;function jt(){}var $={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function Ae(y,M,B){var Q=B.ref;return{$$typeof:r,type:y,key:M,ref:Q!==void 0?Q:null,props:B}}function vl(y,M){return Ae(y.type,M,y.props)}function Ne(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function Wt(y){var M={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(B){return M[B]})}var Ie=/\/+/g;function je(y,M){return typeof y=="object"&&y!==null&&y.key!=null?Wt(""+y.key):M.toString(36)}function ve(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(jt,jt):(y.status="pending",y.then(function(M){y.status==="pending"&&(y.status="fulfilled",y.value=M)},function(M){y.status==="pending"&&(y.status="rejected",y.reason=M)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function D(y,M,B,Q,W){var I=typeof y;(I==="undefined"||I==="boolean")&&(y=null);var dt=!1;if(y===null)dt=!0;else switch(I){case"bigint":case"string":case"number":dt=!0;break;case"object":switch(y.$$typeof){case r:case c:dt=!0;break;case E:return dt=y._init,D(dt(y._payload),M,B,Q,W)}}if(dt)return W=W(y),dt=Q===""?"."+je(y,0):Q,Vt(W)?(B="",dt!=null&&(B=dt.replace(Ie,"$&/")+"/"),D(W,M,B,"",function(Pe){return Pe})):W!=null&&(Ne(W)&&(W=vl(W,B+(W.key==null||y&&y.key===W.key?"":(""+W.key).replace(Ie,"$&/")+"/")+dt)),M.push(W)),1;dt=0;var Kt=Q===""?".":Q+":";if(Vt(y))for(var kt=0;kt<y.length;kt++)Q=y[kt],I=Kt+je(Q,kt),dt+=D(Q,M,B,I,W);else if(kt=J(y),typeof kt=="function")for(y=kt.call(y),kt=0;!(Q=y.next()).done;)Q=Q.value,I=Kt+je(Q,kt++),dt+=D(Q,M,B,I,W);else if(I==="object"){if(typeof y.then=="function")return D(ve(y),M,B,Q,W);throw M=String(y),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return dt}function q(y,M,B){if(y==null)return y;var Q=[],W=0;return D(y,Q,"","",function(I){return M.call(B,I,W++)}),Q}function K(y){if(y._status===-1){var M=y._result;M=M(),M.then(function(B){(y._status===0||y._status===-1)&&(y._status=1,y._result=B)},function(B){(y._status===0||y._status===-1)&&(y._status=2,y._result=B)}),y._status===-1&&(y._status=0,y._result=M)}if(y._status===1)return y._result.default;throw y._result}var ot=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},St={map:q,forEach:function(y,M,B){q(y,function(){M.apply(this,arguments)},B)},count:function(y){var M=0;return q(y,function(){M++}),M},toArray:function(y){return q(y,function(M){return M})||[]},only:function(y){if(!Ne(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return P.Activity=C,P.Children=St,P.Component=Yt,P.Fragment=f,P.Profiler=h,P.PureComponent=Ct,P.StrictMode=s,P.Suspense=g,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,P.__COMPILER_RUNTIME={__proto__:null,c:function(y){return $.H.useMemoCache(y)}},P.cache=function(y){return function(){return y.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(y,M,B){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var Q=F({},y.props),W=y.key;if(M!=null)for(I in M.key!==void 0&&(W=""+M.key),M)!le.call(M,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&M.ref===void 0||(Q[I]=M[I]);var I=arguments.length-2;if(I===1)Q.children=B;else if(1<I){for(var dt=Array(I),Kt=0;Kt<I;Kt++)dt[Kt]=arguments[Kt+2];Q.children=dt}return Ae(y.type,W,Q)},P.createContext=function(y){return y={$$typeof:A,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:v,_context:y},y},P.createElement=function(y,M,B){var Q,W={},I=null;if(M!=null)for(Q in M.key!==void 0&&(I=""+M.key),M)le.call(M,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(W[Q]=M[Q]);var dt=arguments.length-2;if(dt===1)W.children=B;else if(1<dt){for(var Kt=Array(dt),kt=0;kt<dt;kt++)Kt[kt]=arguments[kt+2];W.children=Kt}if(y&&y.defaultProps)for(Q in dt=y.defaultProps,dt)W[Q]===void 0&&(W[Q]=dt[Q]);return Ae(y,I,W)},P.createRef=function(){return{current:null}},P.forwardRef=function(y){return{$$typeof:j,render:y}},P.isValidElement=Ne,P.lazy=function(y){return{$$typeof:E,_payload:{_status:-1,_result:y},_init:K}},P.memo=function(y,M){return{$$typeof:b,type:y,compare:M===void 0?null:M}},P.startTransition=function(y){var M=$.T,B={};$.T=B;try{var Q=y(),W=$.S;W!==null&&W(B,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(jt,ot)}catch(I){ot(I)}finally{M!==null&&B.types!==null&&(M.types=B.types),$.T=M}},P.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},P.use=function(y){return $.H.use(y)},P.useActionState=function(y,M,B){return $.H.useActionState(y,M,B)},P.useCallback=function(y,M){return $.H.useCallback(y,M)},P.useContext=function(y){return $.H.useContext(y)},P.useDebugValue=function(){},P.useDeferredValue=function(y,M){return $.H.useDeferredValue(y,M)},P.useEffect=function(y,M){return $.H.useEffect(y,M)},P.useEffectEvent=function(y){return $.H.useEffectEvent(y)},P.useId=function(){return $.H.useId()},P.useImperativeHandle=function(y,M,B){return $.H.useImperativeHandle(y,M,B)},P.useInsertionEffect=function(y,M){return $.H.useInsertionEffect(y,M)},P.useLayoutEffect=function(y,M){return $.H.useLayoutEffect(y,M)},P.useMemo=function(y,M){return $.H.useMemo(y,M)},P.useOptimistic=function(y,M){return $.H.useOptimistic(y,M)},P.useReducer=function(y,M,B){return $.H.useReducer(y,M,B)},P.useRef=function(y){return $.H.useRef(y)},P.useState=function(y){return $.H.useState(y)},P.useSyncExternalStore=function(y,M,B){return $.H.useSyncExternalStore(y,M,B)},P.useTransition=function(){return $.H.useTransition()},P.version="19.2.6",P}var fd;function Ws(){return fd||(fd=1,Xs.exports=I0()),Xs.exports}var w=Ws(),ws={exports:{}},Wn={},Zs={exports:{}},Ls={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rd;function P0(){return rd||(rd=1,(function(r){function c(D,q){var K=D.length;D.push(q);t:for(;0<K;){var ot=K-1>>>1,St=D[ot];if(0<h(St,q))D[ot]=q,D[K]=St,K=ot;else break t}}function f(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var q=D[0],K=D.pop();if(K!==q){D[0]=K;t:for(var ot=0,St=D.length,y=St>>>1;ot<y;){var M=2*(ot+1)-1,B=D[M],Q=M+1,W=D[Q];if(0>h(B,K))Q<St&&0>h(W,B)?(D[ot]=W,D[Q]=K,ot=Q):(D[ot]=B,D[M]=K,ot=M);else if(Q<St&&0>h(W,K))D[ot]=W,D[Q]=K,ot=Q;else break t}}return q}function h(D,q){var K=D.sortIndex-q.sortIndex;return K!==0?K:D.id-q.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;r.unstable_now=function(){return v.now()}}else{var A=Date,j=A.now();r.unstable_now=function(){return A.now()-j}}var g=[],b=[],E=1,C=null,H=3,J=!1,U=!1,F=!1,nt=!1,Yt=typeof setTimeout=="function"?setTimeout:null,Qt=typeof clearTimeout=="function"?clearTimeout:null,Ct=typeof setImmediate<"u"?setImmediate:null;function ft(D){for(var q=f(b);q!==null;){if(q.callback===null)s(b);else if(q.startTime<=D)s(b),q.sortIndex=q.expirationTime,c(g,q);else break;q=f(b)}}function Vt(D){if(F=!1,ft(D),!U)if(f(g)!==null)U=!0,jt||(jt=!0,Wt());else{var q=f(b);q!==null&&ve(Vt,q.startTime-D)}}var jt=!1,$=-1,le=5,Ae=-1;function vl(){return nt?!0:!(r.unstable_now()-Ae<le)}function Ne(){if(nt=!1,jt){var D=r.unstable_now();Ae=D;var q=!0;try{t:{U=!1,F&&(F=!1,Qt($),$=-1),J=!0;var K=H;try{e:{for(ft(D),C=f(g);C!==null&&!(C.expirationTime>D&&vl());){var ot=C.callback;if(typeof ot=="function"){C.callback=null,H=C.priorityLevel;var St=ot(C.expirationTime<=D);if(D=r.unstable_now(),typeof St=="function"){C.callback=St,ft(D),q=!0;break e}C===f(g)&&s(g),ft(D)}else s(g);C=f(g)}if(C!==null)q=!0;else{var y=f(b);y!==null&&ve(Vt,y.startTime-D),q=!1}}break t}finally{C=null,H=K,J=!1}q=void 0}}finally{q?Wt():jt=!1}}}var Wt;if(typeof Ct=="function")Wt=function(){Ct(Ne)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,je=Ie.port2;Ie.port1.onmessage=Ne,Wt=function(){je.postMessage(null)}}else Wt=function(){Yt(Ne,0)};function ve(D,q){$=Yt(function(){D(r.unstable_now())},q)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(D){D.callback=null},r.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<D?Math.floor(1e3/D):5},r.unstable_getCurrentPriorityLevel=function(){return H},r.unstable_next=function(D){switch(H){case 1:case 2:case 3:var q=3;break;default:q=H}var K=H;H=q;try{return D()}finally{H=K}},r.unstable_requestPaint=function(){nt=!0},r.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var K=H;H=D;try{return q()}finally{H=K}},r.unstable_scheduleCallback=function(D,q,K){var ot=r.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ot+K:ot):K=ot,D){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=K+St,D={id:E++,callback:q,priorityLevel:D,startTime:K,expirationTime:St,sortIndex:-1},K>ot?(D.sortIndex=K,c(b,D),f(g)===null&&D===f(b)&&(F?(Qt($),$=-1):F=!0,ve(Vt,K-ot))):(D.sortIndex=St,c(g,D),U||J||(U=!0,jt||(jt=!0,Wt()))),D},r.unstable_shouldYield=vl,r.unstable_wrapCallback=function(D){var q=H;return function(){var K=H;H=q;try{return D.apply(this,arguments)}finally{H=K}}}})(Ls)),Ls}var od;function tg(){return od||(od=1,Zs.exports=P0()),Zs.exports}var Vs={exports:{}},ne={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hd;function eg(){if(hd)return ne;hd=1;var r=Ws();function c(g){var b="https://react.dev/errors/"+g;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)b+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var s={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(g,b,E){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:C==null?null:""+C,children:g,containerInfo:b,implementation:E}}var A=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(g,b){if(g==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ne.createPortal=function(g,b){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(c(299));return v(g,b,null,E)},ne.flushSync=function(g){var b=A.T,E=s.p;try{if(A.T=null,s.p=2,g)return g()}finally{A.T=b,s.p=E,s.d.f()}},ne.preconnect=function(g,b){typeof g=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,s.d.C(g,b))},ne.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},ne.preinit=function(g,b){if(typeof g=="string"&&b&&typeof b.as=="string"){var E=b.as,C=j(E,b.crossOrigin),H=typeof b.integrity=="string"?b.integrity:void 0,J=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;E==="style"?s.d.S(g,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:C,integrity:H,fetchPriority:J}):E==="script"&&s.d.X(g,{crossOrigin:C,integrity:H,fetchPriority:J,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},ne.preinitModule=function(g,b){if(typeof g=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var E=j(b.as,b.crossOrigin);s.d.M(g,{crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&s.d.M(g)},ne.preload=function(g,b){if(typeof g=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var E=b.as,C=j(E,b.crossOrigin);s.d.L(g,E,{crossOrigin:C,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},ne.preloadModule=function(g,b){if(typeof g=="string")if(b){var E=j(b.as,b.crossOrigin);s.d.m(g,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:E,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else s.d.m(g)},ne.requestFormReset=function(g){s.d.r(g)},ne.unstable_batchedUpdates=function(g,b){return g(b)},ne.useFormState=function(g,b,E){return A.H.useFormState(g,b,E)},ne.useFormStatus=function(){return A.H.useHostTransitionStatus()},ne.version="19.2.6",ne}var dd;function lg(){if(dd)return Vs.exports;dd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),Vs.exports=eg(),Vs.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var md;function ag(){if(md)return Wn;md=1;var r=tg(),c=Ws(),f=lg();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function v(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function A(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function j(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(v(t)!==t)throw Error(s(188))}function b(t){var e=t.alternate;if(!e){if(e=v(t),e===null)throw Error(s(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return g(n),t;if(u===a)return g(n),e;u=u.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,o=n.child;o;){if(o===l){i=!0,l=n,a=u;break}if(o===a){i=!0,a=n,l=u;break}o=o.sibling}if(!i){for(o=u.child;o;){if(o===l){i=!0,l=u,a=n;break}if(o===a){i=!0,a=u,l=n;break}o=o.sibling}if(!i)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function E(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=E(t),e!==null)return e;t=t.sibling}return null}var C=Object.assign,H=Symbol.for("react.element"),J=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),nt=Symbol.for("react.strict_mode"),Yt=Symbol.for("react.profiler"),Qt=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),ft=Symbol.for("react.forward_ref"),Vt=Symbol.for("react.suspense"),jt=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),vl=Symbol.for("react.memo_cache_sentinel"),Ne=Symbol.iterator;function Wt(t){return t===null||typeof t!="object"?null:(t=Ne&&t[Ne]||t["@@iterator"],typeof t=="function"?t:null)}var Ie=Symbol.for("react.client.reference");function je(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ie?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case F:return"Fragment";case Yt:return"Profiler";case nt:return"StrictMode";case Vt:return"Suspense";case jt:return"SuspenseList";case Ae:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case U:return"Portal";case Ct:return t.displayName||"Context";case Qt:return(t._context.displayName||"Context")+".Consumer";case ft:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case $:return e=t.displayName||null,e!==null?e:je(t.type)||"Memo";case le:e=t._payload,t=t._init;try{return je(t(e))}catch{}}return null}var ve=Array.isArray,D=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ot=[],St=-1;function y(t){return{current:t}}function M(t){0>St||(t.current=ot[St],ot[St]=null,St--)}function B(t,e){St++,ot[St]=t.current,t.current=e}var Q=y(null),W=y(null),I=y(null),dt=y(null);function Kt(t,e){switch(B(I,e),B(W,t),B(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Oh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Oh(e),t=Dh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}M(Q),B(Q,t)}function kt(){M(Q),M(W),M(I)}function Pe(t){t.memoizedState!==null&&B(dt,t);var e=Q.current,l=Dh(e,t.type);e!==l&&(B(W,t),B(Q,l))}function Qe(t){W.current===t&&(M(Q),M(W)),dt.current===t&&(M(dt),Ln._currentValue=K)}var ie,re;function Ve(t){if(ie===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ie=e&&e[1]||"",re=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ie+t+re}var ma=!1;function ga(t,e){if(!t||ma)return"";ma=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(N){var _=N}Reflect.construct(t,[],k)}else{try{k.call()}catch(N){_=N}t.call(k.prototype)}}else{try{throw Error()}catch(N){_=N}(k=t())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(N){if(N&&_&&typeof N.stack=="string")return[N.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],o=u[1];if(i&&o){var d=i.split(`
`),z=o.split(`
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===z.length)for(a=d.length-1,n=z.length-1;1<=a&&0<=n&&d[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==z[n]){var O=`
`+d[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=n);break}}}finally{ma=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ve(l):""}function Ai(t,e){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==e&&e!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return ga(t.type,!1);case 11:return ga(t.type.render,!1);case 1:return ga(t.type,!0);case 31:return Ve("Activity");default:return""}}function Oe(t){try{var e="",l=null;do e+=Ai(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Z=Object.prototype.hasOwnProperty,gt=r.unstable_scheduleCallback,pa=r.unstable_cancelCallback,Ni=r.unstable_shouldYield,tu=r.unstable_requestPaint,ce=r.unstable_now,ji=r.unstable_getCurrentPriorityLevel,eu=r.unstable_ImmediatePriority,lu=r.unstable_UserBlockingPriority,Vl=r.unstable_NormalPriority,T=r.unstable_LowPriority,lt=r.unstable_IdlePriority,Y=r.log,tt=r.unstable_setDisableYieldValue,vt=null,mt=null;function ae(t){if(typeof Y=="function"&&tt(t),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(vt,t)}catch{}}var se=Math.clz32?Math.clz32:kd,bl=Math.log,Cd=Math.LN2;function kd(t){return t>>>=0,t===0?32:31-(bl(t)/Cd|0)|0}var au=256,nu=262144,uu=4194304;function Kl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function iu(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=Kl(a):(i&=o,i!==0?n=Kl(i):l||(l=o&~t,l!==0&&(n=Kl(l))))):(o=a&~u,o!==0?n=Kl(o):i!==0?n=Kl(i):l||(l=a&~t,l!==0&&(n=Kl(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function an(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ud(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ff(){var t=uu;return uu<<=1,(uu&62914560)===0&&(uu=4194304),t}function Oi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function nn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Hd(t,e,l,a,n,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,d=t.expirationTimes,z=t.hiddenUpdates;for(l=i&~l;0<l;){var O=31-se(l),k=1<<O;o[O]=0,d[O]=-1;var _=z[O];if(_!==null)for(z[O]=null,O=0;O<_.length;O++){var N=_[O];N!==null&&(N.lane&=-536870913)}l&=~k}a!==0&&rf(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function rf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function of(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-se(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function hf(t,e){var l=e&-e;return l=(l&42)!==0?1:Di(l),(l&(t.suspendedLanes|e))!==0?0:l}function Di(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Mi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function df(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:Ph(t.type))}function mf(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var Sl=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Sl,oe="__reactProps$"+Sl,ya="__reactContainer$"+Sl,Ri="__reactEvents$"+Sl,qd="__reactListeners$"+Sl,Bd="__reactHandles$"+Sl,gf="__reactResources$"+Sl,un="__reactMarker$"+Sl;function Ci(t){delete t[Ft],delete t[oe],delete t[Ri],delete t[qd],delete t[Bd]}function va(t){var e=t[Ft];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ya]||l[Ft]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=qh(t);t!==null;){if(l=t[Ft])return l;t=qh(t)}return e}t=l,l=t.parentNode}return null}function ba(t){if(t=t[Ft]||t[ya]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function cn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function Sa(t){var e=t[gf];return e||(e=t[gf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Jt(t){t[un]=!0}var pf=new Set,yf={};function Jl(t,e){xa(t,e),xa(t+"Capture",e)}function xa(t,e){for(yf[t]=e,t=0;t<e.length;t++)pf.add(e[t])}var Yd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),vf={},bf={};function Qd(t){return Z.call(bf,t)?!0:Z.call(vf,t)?!1:Yd.test(t)?bf[t]=!0:(vf[t]=!0,!1)}function cu(t,e,l){if(Qd(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function su(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function tl(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function De(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Sf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Gd(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ki(t){if(!t._valueTracker){var e=Sf(t)?"checked":"value";t._valueTracker=Gd(t,e,""+t[e])}}function xf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Sf(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function fu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Xd=/[\n"\\]/g;function Me(t){return t.replace(Xd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ui(t,e,l,a,n,u,i,o){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+De(e)):t.value!==""+De(e)&&(t.value=""+De(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?Hi(t,i,De(e)):l!=null?Hi(t,i,De(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+De(o):t.removeAttribute("name")}function zf(t,e,l,a,n,u,i,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){ki(t);return}l=l!=null?""+De(l):"",e=e!=null?""+De(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),ki(t)}function Hi(t,e,l){e==="number"&&fu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function za(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+De(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Tf(t,e,l){if(e!=null&&(e=""+De(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+De(l):""}function _f(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(s(92));if(ve(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=De(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),ki(t)}function Ta(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var wd=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ef(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||wd.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Af(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Ef(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&Ef(t,u,e[u])}function qi(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Zd=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ld=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ru(t){return Ld.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function el(){}var Bi=null;function Yi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _a=null,Ea=null;function Nf(t){var e=ba(t);if(e&&(t=e.stateNode)){var l=t[oe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ui(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Me(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[oe]||null;if(!n)throw Error(s(90));Ui(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&xf(a)}break t;case"textarea":Tf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&za(t,!!l.multiple,e,!1)}}}var Qi=!1;function jf(t,e,l){if(Qi)return t(e,l);Qi=!0;try{var a=t(e);return a}finally{if(Qi=!1,(_a!==null||Ea!==null)&&(Fu(),_a&&(e=_a,t=Ea,Ea=_a=null,Nf(e),t)))for(e=0;e<t.length;e++)Nf(t[e])}}function sn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[oe]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,e,typeof l));return l}var ll=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gi=!1;if(ll)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){Gi=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{Gi=!1}var xl=null,Xi=null,ou=null;function Of(){if(ou)return ou;var t,e=Xi,l=e.length,a,n="value"in xl?xl.value:xl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var i=l-t;for(a=1;a<=i&&e[l-a]===n[u-a];a++);return ou=n.slice(t,1<a?1-a:void 0)}function hu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function du(){return!0}function Df(){return!1}function he(t){function e(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?du:Df,this.isPropagationStopped=Df,this}return C(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=du)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=du)},persist:function(){},isPersistent:du}),e}var $l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mu=he($l),rn=C({},$l,{view:0,detail:0}),Vd=he(rn),wi,Zi,on,gu=C({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==on&&(on&&t.type==="mousemove"?(wi=t.screenX-on.screenX,Zi=t.screenY-on.screenY):Zi=wi=0,on=t),wi)},movementY:function(t){return"movementY"in t?t.movementY:Zi}}),Mf=he(gu),Kd=C({},gu,{dataTransfer:0}),Jd=he(Kd),$d=C({},rn,{relatedTarget:0}),Li=he($d),Wd=C({},$l,{animationName:0,elapsedTime:0,pseudoElement:0}),Fd=he(Wd),Id=C({},$l,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Pd=he(Id),tm=C({},$l,{data:0}),Rf=he(tm),em={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lm={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"},am={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nm(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=am[t])?!!e[t]:!1}function Vi(){return nm}var um=C({},rn,{key:function(t){if(t.key){var e=em[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=hu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?lm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vi,charCode:function(t){return t.type==="keypress"?hu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?hu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),im=he(um),cm=C({},gu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=he(cm),sm=C({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vi}),fm=he(sm),rm=C({},$l,{propertyName:0,elapsedTime:0,pseudoElement:0}),om=he(rm),hm=C({},gu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),dm=he(hm),mm=C({},$l,{newState:0,oldState:0}),gm=he(mm),pm=[9,13,27,32],Ki=ll&&"CompositionEvent"in window,hn=null;ll&&"documentMode"in document&&(hn=document.documentMode);var ym=ll&&"TextEvent"in window&&!hn,kf=ll&&(!Ki||hn&&8<hn&&11>=hn),Uf=" ",Hf=!1;function qf(t,e){switch(t){case"keyup":return pm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Aa=!1;function vm(t,e){switch(t){case"compositionend":return Bf(e);case"keypress":return e.which!==32?null:(Hf=!0,Uf);case"textInput":return t=e.data,t===Uf&&Hf?null:t;default:return null}}function bm(t,e){if(Aa)return t==="compositionend"||!Ki&&qf(t,e)?(t=Of(),ou=Xi=xl=null,Aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return kf&&e.locale!=="ko"?null:e.data;default:return null}}var Sm={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 Yf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Sm[t.type]:e==="textarea"}function Qf(t,e,l,a){_a?Ea?Ea.push(a):Ea=[a]:_a=a,e=ni(e,"onChange"),0<e.length&&(l=new mu("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var dn=null,mn=null;function xm(t){Th(t,0)}function pu(t){var e=cn(t);if(xf(e))return t}function Gf(t,e){if(t==="change")return e}var Xf=!1;if(ll){var Ji;if(ll){var $i="oninput"in document;if(!$i){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),$i=typeof wf.oninput=="function"}Ji=$i}else Ji=!1;Xf=Ji&&(!document.documentMode||9<document.documentMode)}function Zf(){dn&&(dn.detachEvent("onpropertychange",Lf),mn=dn=null)}function Lf(t){if(t.propertyName==="value"&&pu(mn)){var e=[];Qf(e,mn,t,Yi(t)),jf(xm,e)}}function zm(t,e,l){t==="focusin"?(Zf(),dn=e,mn=l,dn.attachEvent("onpropertychange",Lf)):t==="focusout"&&Zf()}function Tm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return pu(mn)}function _m(t,e){if(t==="click")return pu(e)}function Em(t,e){if(t==="input"||t==="change")return pu(e)}function Am(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:Am;function gn(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Z.call(e,n)||!be(t[n],e[n]))return!1}return!0}function Vf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Kf(t,e){var l=Vf(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Vf(l)}}function Jf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $f(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=fu(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=fu(t.document)}return e}function Wi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Nm=ll&&"documentMode"in document&&11>=document.documentMode,Na=null,Fi=null,pn=null,Ii=!1;function Wf(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ii||Na==null||Na!==fu(a)||(a=Na,"selectionStart"in a&&Wi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),pn&&gn(pn,a)||(pn=a,a=ni(Fi,"onSelect"),0<a.length&&(e=new mu("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Na)))}function Wl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var ja={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionrun:Wl("Transition","TransitionRun"),transitionstart:Wl("Transition","TransitionStart"),transitioncancel:Wl("Transition","TransitionCancel"),transitionend:Wl("Transition","TransitionEnd")},Pi={},Ff={};ll&&(Ff=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function Fl(t){if(Pi[t])return Pi[t];if(!ja[t])return t;var e=ja[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ff)return Pi[t]=e[l];return t}var If=Fl("animationend"),Pf=Fl("animationiteration"),tr=Fl("animationstart"),jm=Fl("transitionrun"),Om=Fl("transitionstart"),Dm=Fl("transitioncancel"),er=Fl("transitionend"),lr=new Map,tc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");tc.push("scrollEnd");function Ge(t,e){lr.set(t,e),Jl(e,[t])}var yu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Re=[],Oa=0,ec=0;function vu(){for(var t=Oa,e=ec=Oa=0;e<t;){var l=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var n=Re[e];Re[e++]=null;var u=Re[e];if(Re[e++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&ar(l,n,u)}}function bu(t,e,l,a){Re[Oa++]=t,Re[Oa++]=e,Re[Oa++]=l,Re[Oa++]=a,ec|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function lc(t,e,l,a){return bu(t,e,l,a),Su(t)}function Il(t,e){return bu(t,null,null,e),Su(t)}function ar(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-se(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function Su(t){if(50<Bn)throw Bn=0,os=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Da={};function Mm(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Se(t,e,l,a){return new Mm(t,e,l,a)}function ac(t){return t=t.prototype,!(!t||!t.isReactComponent)}function al(t,e){var l=t.alternate;return l===null?(l=Se(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function nr(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function xu(t,e,l,a,n,u){var i=0;if(a=t,typeof t=="function")ac(t)&&(i=1);else if(typeof t=="string")i=H0(t,l,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ae:return t=Se(31,l,e,n),t.elementType=Ae,t.lanes=u,t;case F:return Pl(l.children,n,u,e);case nt:i=8,n|=24;break;case Yt:return t=Se(12,l,e,n|2),t.elementType=Yt,t.lanes=u,t;case Vt:return t=Se(13,l,e,n),t.elementType=Vt,t.lanes=u,t;case jt:return t=Se(19,l,e,n),t.elementType=jt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ct:i=10;break t;case Qt:i=9;break t;case ft:i=11;break t;case $:i=14;break t;case le:i=16,a=null;break t}i=29,l=Error(s(130,t===null?"null":typeof t,"")),a=null}return e=Se(i,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Pl(t,e,l,a){return t=Se(7,t,a,e),t.lanes=l,t}function nc(t,e,l){return t=Se(6,t,null,e),t.lanes=l,t}function ur(t){var e=Se(18,null,null,0);return e.stateNode=t,e}function uc(t,e,l){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ir=new WeakMap;function Ce(t,e){if(typeof t=="object"&&t!==null){var l=ir.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Oe(e)},ir.set(t,e),e)}return{value:t,source:e,stack:Oe(e)}}var Ma=[],Ra=0,zu=null,yn=0,ke=[],Ue=0,zl=null,Ke=1,Je="";function nl(t,e){Ma[Ra++]=yn,Ma[Ra++]=zu,zu=t,yn=e}function cr(t,e,l){ke[Ue++]=Ke,ke[Ue++]=Je,ke[Ue++]=zl,zl=t;var a=Ke;t=Je;var n=32-se(a)-1;a&=~(1<<n),l+=1;var u=32-se(e)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Ke=1<<32-se(e)+n|l<<n|a,Je=u+t}else Ke=1<<u|l<<n|a,Je=t}function ic(t){t.return!==null&&(nl(t,1),cr(t,1,0))}function cc(t){for(;t===zu;)zu=Ma[--Ra],Ma[Ra]=null,yn=Ma[--Ra],Ma[Ra]=null;for(;t===zl;)zl=ke[--Ue],ke[Ue]=null,Je=ke[--Ue],ke[Ue]=null,Ke=ke[--Ue],ke[Ue]=null}function sr(t,e){ke[Ue++]=Ke,ke[Ue++]=Je,ke[Ue++]=zl,Ke=e.id,Je=e.overflow,zl=t}var It=null,Dt=null,rt=!1,Tl=null,He=!1,sc=Error(s(519));function _l(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vn(Ce(e,t)),sc}function fr(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Ft]=t,e[oe]=a,l){case"dialog":it("cancel",e),it("close",e);break;case"iframe":case"object":case"embed":it("load",e);break;case"video":case"audio":for(l=0;l<Qn.length;l++)it(Qn[l],e);break;case"source":it("error",e);break;case"img":case"image":case"link":it("error",e),it("load",e);break;case"details":it("toggle",e);break;case"input":it("invalid",e),zf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":it("invalid",e);break;case"textarea":it("invalid",e),_f(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Nh(e.textContent,l)?(a.popover!=null&&(it("beforetoggle",e),it("toggle",e)),a.onScroll!=null&&it("scroll",e),a.onScrollEnd!=null&&it("scrollend",e),a.onClick!=null&&(e.onclick=el),e=!0):e=!1,e||_l(t,!0)}function rr(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:He=!1;return;case 27:case 3:He=!0;return;default:It=It.return}}function Ca(t){if(t!==It)return!1;if(!rt)return rr(t),rt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||As(t.type,t.memoizedProps)),l=!l),l&&Dt&&_l(t),rr(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Dt=Hh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Dt=Hh(t)}else e===27?(e=Dt,Bl(t.type)?(t=Ms,Ms=null,Dt=t):Dt=e):Dt=It?Be(t.stateNode.nextSibling):null;return!0}function ta(){Dt=It=null,rt=!1}function fc(){var t=Tl;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),Tl=null),t}function vn(t){Tl===null?Tl=[t]:Tl.push(t)}var rc=y(null),ea=null,ul=null;function El(t,e,l){B(rc,e._currentValue),e._currentValue=l}function il(t){t._currentValue=rc.current,M(rc)}function oc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function hc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=n;for(var d=0;d<e.length;d++)if(o.context===e[d]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),oc(u.return,l,t),a||(i=null);break t}u=o.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(s(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),oc(i,l,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ka(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(s(387));if(i=i.memoizedProps,i!==null){var o=n.type;be(n.pendingProps.value,i.value)||(t!==null?t.push(o):t=[o])}}else if(n===dt.current){if(i=n.alternate,i===null)throw Error(s(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Ln):t=[Ln])}n=n.return}t!==null&&hc(e,t,l,a),e.flags|=262144}function Tu(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function la(t){ea=t,ul=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pt(t){return or(ea,t)}function _u(t,e){return ea===null&&la(t),or(t,e)}function or(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ul===null){if(t===null)throw Error(s(308));ul=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ul=ul.next=e;return l}var Rm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Cm=r.unstable_scheduleCallback,km=r.unstable_NormalPriority,Gt={$$typeof:Ct,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dc(){return{controller:new Rm,data:new Map,refCount:0}}function bn(t){t.refCount--,t.refCount===0&&Cm(km,function(){t.controller.abort()})}var Sn=null,mc=0,Ua=0,Ha=null;function Um(t,e){if(Sn===null){var l=Sn=[];mc=0,Ua=ys(),Ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return mc++,e.then(hr,hr),e}function hr(){if(--mc===0&&Sn!==null){Ha!==null&&(Ha.status="fulfilled");var t=Sn;Sn=null,Ua=0,Ha=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Hm(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var dr=D.S;D.S=function(t,e){Fo=ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Um(t,e),dr!==null&&dr(t,e)};var aa=y(null);function gc(){var t=aa.current;return t!==null?t:Ot.pooledCache}function Eu(t,e){e===null?B(aa,aa.current):B(aa,e.pool)}function mr(){var t=gc();return t===null?null:{parent:Gt._currentValue,pool:t}}var qa=Error(s(460)),pc=Error(s(474)),Au=Error(s(542)),Nu={then:function(){}};function gr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function pr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(el,el),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,vr(t),t;default:if(typeof e.status=="string")e.then(el,el);else{if(t=Ot,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,vr(t),t}throw ua=e,qa}}function na(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,qa):l}}var ua=null;function yr(){if(ua===null)throw Error(s(459));var t=ua;return ua=null,t}function vr(t){if(t===qa||t===Au)throw Error(s(483))}var Ba=null,xn=0;function ju(t){var e=xn;return xn+=1,Ba===null&&(Ba=[]),pr(Ba,t,e)}function zn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ou(t,e){throw e.$$typeof===H?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function br(t){function e(S,p){if(t){var x=S.deletions;x===null?(S.deletions=[p],S.flags|=16):x.push(p)}}function l(S,p){if(!t)return null;for(;p!==null;)e(S,p),p=p.sibling;return null}function a(S){for(var p=new Map;S!==null;)S.key!==null?p.set(S.key,S):p.set(S.index,S),S=S.sibling;return p}function n(S,p){return S=al(S,p),S.index=0,S.sibling=null,S}function u(S,p,x){return S.index=x,t?(x=S.alternate,x!==null?(x=x.index,x<p?(S.flags|=67108866,p):x):(S.flags|=67108866,p)):(S.flags|=1048576,p)}function i(S){return t&&S.alternate===null&&(S.flags|=67108866),S}function o(S,p,x,R){return p===null||p.tag!==6?(p=nc(x,S.mode,R),p.return=S,p):(p=n(p,x),p.return=S,p)}function d(S,p,x,R){var L=x.type;return L===F?O(S,p,x.props.children,R,x.key):p!==null&&(p.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===le&&na(L)===p.type)?(p=n(p,x.props),zn(p,x),p.return=S,p):(p=xu(x.type,x.key,x.props,null,S.mode,R),zn(p,x),p.return=S,p)}function z(S,p,x,R){return p===null||p.tag!==4||p.stateNode.containerInfo!==x.containerInfo||p.stateNode.implementation!==x.implementation?(p=uc(x,S.mode,R),p.return=S,p):(p=n(p,x.children||[]),p.return=S,p)}function O(S,p,x,R,L){return p===null||p.tag!==7?(p=Pl(x,S.mode,R,L),p.return=S,p):(p=n(p,x),p.return=S,p)}function k(S,p,x){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=nc(""+p,S.mode,x),p.return=S,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case J:return x=xu(p.type,p.key,p.props,null,S.mode,x),zn(x,p),x.return=S,x;case U:return p=uc(p,S.mode,x),p.return=S,p;case le:return p=na(p),k(S,p,x)}if(ve(p)||Wt(p))return p=Pl(p,S.mode,x,null),p.return=S,p;if(typeof p.then=="function")return k(S,ju(p),x);if(p.$$typeof===Ct)return k(S,_u(S,p),x);Ou(S,p)}return null}function _(S,p,x,R){var L=p!==null?p.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return L!==null?null:o(S,p,""+x,R);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case J:return x.key===L?d(S,p,x,R):null;case U:return x.key===L?z(S,p,x,R):null;case le:return x=na(x),_(S,p,x,R)}if(ve(x)||Wt(x))return L!==null?null:O(S,p,x,R,null);if(typeof x.then=="function")return _(S,p,ju(x),R);if(x.$$typeof===Ct)return _(S,p,_u(S,x),R);Ou(S,x)}return null}function N(S,p,x,R,L){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return S=S.get(x)||null,o(p,S,""+R,L);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case J:return S=S.get(R.key===null?x:R.key)||null,d(p,S,R,L);case U:return S=S.get(R.key===null?x:R.key)||null,z(p,S,R,L);case le:return R=na(R),N(S,p,x,R,L)}if(ve(R)||Wt(R))return S=S.get(x)||null,O(p,S,R,L,null);if(typeof R.then=="function")return N(S,p,x,ju(R),L);if(R.$$typeof===Ct)return N(S,p,x,_u(p,R),L);Ou(p,R)}return null}function G(S,p,x,R){for(var L=null,pt=null,X=p,at=p=0,st=null;X!==null&&at<x.length;at++){X.index>at?(st=X,X=null):st=X.sibling;var yt=_(S,X,x[at],R);if(yt===null){X===null&&(X=st);break}t&&X&&yt.alternate===null&&e(S,X),p=u(yt,p,at),pt===null?L=yt:pt.sibling=yt,pt=yt,X=st}if(at===x.length)return l(S,X),rt&&nl(S,at),L;if(X===null){for(;at<x.length;at++)X=k(S,x[at],R),X!==null&&(p=u(X,p,at),pt===null?L=X:pt.sibling=X,pt=X);return rt&&nl(S,at),L}for(X=a(X);at<x.length;at++)st=N(X,S,at,x[at],R),st!==null&&(t&&st.alternate!==null&&X.delete(st.key===null?at:st.key),p=u(st,p,at),pt===null?L=st:pt.sibling=st,pt=st);return t&&X.forEach(function(wl){return e(S,wl)}),rt&&nl(S,at),L}function V(S,p,x,R){if(x==null)throw Error(s(151));for(var L=null,pt=null,X=p,at=p=0,st=null,yt=x.next();X!==null&&!yt.done;at++,yt=x.next()){X.index>at?(st=X,X=null):st=X.sibling;var wl=_(S,X,yt.value,R);if(wl===null){X===null&&(X=st);break}t&&X&&wl.alternate===null&&e(S,X),p=u(wl,p,at),pt===null?L=wl:pt.sibling=wl,pt=wl,X=st}if(yt.done)return l(S,X),rt&&nl(S,at),L;if(X===null){for(;!yt.done;at++,yt=x.next())yt=k(S,yt.value,R),yt!==null&&(p=u(yt,p,at),pt===null?L=yt:pt.sibling=yt,pt=yt);return rt&&nl(S,at),L}for(X=a(X);!yt.done;at++,yt=x.next())yt=N(X,S,at,yt.value,R),yt!==null&&(t&&yt.alternate!==null&&X.delete(yt.key===null?at:yt.key),p=u(yt,p,at),pt===null?L=yt:pt.sibling=yt,pt=yt);return t&&X.forEach(function(K0){return e(S,K0)}),rt&&nl(S,at),L}function At(S,p,x,R){if(typeof x=="object"&&x!==null&&x.type===F&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case J:t:{for(var L=x.key;p!==null;){if(p.key===L){if(L=x.type,L===F){if(p.tag===7){l(S,p.sibling),R=n(p,x.props.children),R.return=S,S=R;break t}}else if(p.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===le&&na(L)===p.type){l(S,p.sibling),R=n(p,x.props),zn(R,x),R.return=S,S=R;break t}l(S,p);break}else e(S,p);p=p.sibling}x.type===F?(R=Pl(x.props.children,S.mode,R,x.key),R.return=S,S=R):(R=xu(x.type,x.key,x.props,null,S.mode,R),zn(R,x),R.return=S,S=R)}return i(S);case U:t:{for(L=x.key;p!==null;){if(p.key===L)if(p.tag===4&&p.stateNode.containerInfo===x.containerInfo&&p.stateNode.implementation===x.implementation){l(S,p.sibling),R=n(p,x.children||[]),R.return=S,S=R;break t}else{l(S,p);break}else e(S,p);p=p.sibling}R=uc(x,S.mode,R),R.return=S,S=R}return i(S);case le:return x=na(x),At(S,p,x,R)}if(ve(x))return G(S,p,x,R);if(Wt(x)){if(L=Wt(x),typeof L!="function")throw Error(s(150));return x=L.call(x),V(S,p,x,R)}if(typeof x.then=="function")return At(S,p,ju(x),R);if(x.$$typeof===Ct)return At(S,p,_u(S,x),R);Ou(S,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,p!==null&&p.tag===6?(l(S,p.sibling),R=n(p,x),R.return=S,S=R):(l(S,p),R=nc(x,S.mode,R),R.return=S,S=R),i(S)):l(S,p)}return function(S,p,x,R){try{xn=0;var L=At(S,p,x,R);return Ba=null,L}catch(X){if(X===qa||X===Au)throw X;var pt=Se(29,X,null,S.mode);return pt.lanes=R,pt.return=S,pt}finally{}}}var ia=br(!0),Sr=br(!1),Al=!1;function yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Nl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function jl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(bt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Su(t),ar(t,null,l),e}return bu(t,a,e,l),Su(t)}function Tn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,of(t,l)}}function bc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Sc=!1;function _n(){if(Sc){var t=Ha;if(t!==null)throw t}}function En(t,e,l,a){Sc=!1;var n=t.updateQueue;Al=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var d=o,z=d.next;d.next=null,i===null?u=z:i.next=z,i=d;var O=t.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==i&&(o===null?O.firstBaseUpdate=z:o.next=z,O.lastBaseUpdate=d))}if(u!==null){var k=n.baseState;i=0,O=z=d=null,o=u;do{var _=o.lane&-536870913,N=_!==o.lane;if(N?(ct&_)===_:(a&_)===_){_!==0&&_===Ua&&(Sc=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var G=t,V=o;_=e;var At=l;switch(V.tag){case 1:if(G=V.payload,typeof G=="function"){k=G.call(At,k,_);break t}k=G;break t;case 3:G.flags=G.flags&-65537|128;case 0:if(G=V.payload,_=typeof G=="function"?G.call(At,k,_):G,_==null)break t;k=C({},k,_);break t;case 2:Al=!0}}_=o.callback,_!==null&&(t.flags|=64,N&&(t.flags|=8192),N=n.callbacks,N===null?n.callbacks=[_]:N.push(_))}else N={lane:_,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(z=O=N,d=k):O=O.next=N,i|=_;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;N=o,o=N.next,N.next=null,n.lastBaseUpdate=N,n.shared.pending=null}}while(!0);O===null&&(d=k),n.baseState=d,n.firstBaseUpdate=z,n.lastBaseUpdate=O,u===null&&(n.shared.lanes=0),Cl|=i,t.lanes=i,t.memoizedState=k}}function xr(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function zr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)xr(l[t],e)}var Ya=y(null),Du=y(0);function Tr(t,e){t=gl,B(Du,t),B(Ya,e),gl=t|e.baseLanes}function xc(){B(Du,gl),B(Ya,Ya.current)}function zc(){gl=Du.current,M(Ya),M(Du)}var xe=y(null),qe=null;function Ol(t){var e=t.alternate;B(qt,qt.current&1),B(xe,t),qe===null&&(e===null||Ya.current!==null||e.memoizedState!==null)&&(qe=t)}function Tc(t){B(qt,qt.current),B(xe,t),qe===null&&(qe=t)}function _r(t){t.tag===22?(B(qt,qt.current),B(xe,t),qe===null&&(qe=t)):Dl()}function Dl(){B(qt,qt.current),B(xe,xe.current)}function ze(t){M(xe),qe===t&&(qe=null),M(qt)}var qt=y(0);function Mu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Os(l)||Ds(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var cl=0,et=null,_t=null,Xt=null,Ru=!1,Qa=!1,ca=!1,Cu=0,An=0,Ga=null,qm=0;function Ut(){throw Error(s(321))}function _c(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!be(t[l],e[l]))return!1;return!0}function Ec(t,e,l,a,n,u){return cl=u,et=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?co:Qc,ca=!1,u=l(a,n),ca=!1,Qa&&(u=Ar(e,l,a,n)),Er(t),u}function Er(t){D.H=On;var e=_t!==null&&_t.next!==null;if(cl=0,Xt=_t=et=null,Ru=!1,An=0,Ga=null,e)throw Error(s(300));t===null||wt||(t=t.dependencies,t!==null&&Tu(t)&&(wt=!0))}function Ar(t,e,l,a){et=t;var n=0;do{if(Qa&&(Ga=null),An=0,Qa=!1,25<=n)throw Error(s(301));if(n+=1,Xt=_t=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=so,u=e(l,a)}while(Qa);return u}function Bm(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?Nn(e):e,t=t.useState()[0],(_t!==null?_t.memoizedState:null)!==t&&(et.flags|=1024),e}function Ac(){var t=Cu!==0;return Cu=0,t}function Nc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function jc(t){if(Ru){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ru=!1}cl=0,Xt=_t=et=null,Qa=!1,An=Cu=0,Ga=null}function fe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?et.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Bt(){if(_t===null){var t=et.alternate;t=t!==null?t.memoizedState:null}else t=_t.next;var e=Xt===null?et.memoizedState:Xt.next;if(e!==null)Xt=e,_t=t;else{if(t===null)throw et.alternate===null?Error(s(467)):Error(s(310));_t=t,t={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},Xt===null?et.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function ku(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nn(t){var e=An;return An+=1,Ga===null&&(Ga=[]),t=pr(Ga,t,e),e=et,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?co:Qc),t}function Uu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Nn(t);if(t.$$typeof===Ct)return Pt(t)}throw Error(s(438,String(t)))}function Oc(t){var e=null,l=et.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=et.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=ku(),et.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=vl;return e.index++,l}function sl(t,e){return typeof e=="function"?e(t):e}function Hu(t){var e=Bt();return Dc(e,_t,t)}function Dc(t,e,l){var a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var o=i=null,d=null,z=e,O=!1;do{var k=z.lane&-536870913;if(k!==z.lane?(ct&k)===k:(cl&k)===k){var _=z.revertLane;if(_===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),k===Ua&&(O=!0);else if((cl&_)===_){z=z.next,_===Ua&&(O=!0);continue}else k={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},d===null?(o=d=k,i=u):d=d.next=k,et.lanes|=_,Cl|=_;k=z.action,ca&&l(u,k),u=z.hasEagerState?z.eagerState:l(u,k)}else _={lane:k,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},d===null?(o=d=_,i=u):d=d.next=_,et.lanes|=k,Cl|=k;z=z.next}while(z!==null&&z!==e);if(d===null?i=u:d.next=o,!be(u,t.memoizedState)&&(wt=!0,O&&(l=Ha,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Mc(t){var e=Bt(),l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);be(u,e.memoizedState)||(wt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function Nr(t,e,l){var a=et,n=Bt(),u=rt;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=e();var i=!be((_t||n).memoizedState,l);if(i&&(n.memoizedState=l,wt=!0),n=n.queue,kc(Dr.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,Xa(9,{destroy:void 0},Or.bind(null,a,n,l,e),null),Ot===null)throw Error(s(349));u||(cl&127)!==0||jr(a,e,l)}return l}function jr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=et.updateQueue,e===null?(e=ku(),et.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Or(t,e,l,a){e.value=l,e.getSnapshot=a,Mr(e)&&Rr(t)}function Dr(t,e,l){return l(function(){Mr(e)&&Rr(t)})}function Mr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!be(t,l)}catch{return!0}}function Rr(t){var e=Il(t,2);e!==null&&ye(e,t,2)}function Rc(t){var e=fe();if(typeof t=="function"){var l=t;if(t=l(),ca){ae(!0);try{l()}finally{ae(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:t},e}function Cr(t,e,l,a){return t.baseState=l,Dc(t,_t,typeof a=="function"?a:sl)}function Ym(t,e,l,a,n){if(Yu(t))throw Error(s(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,kr(e,u)):(u.next=l.next,e.pending=l.next=u)}}function kr(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=D.T,i={};D.T=i;try{var o=l(n,a),d=D.S;d!==null&&d(i,o),Ur(t,e,o)}catch(z){Cc(t,e,z)}finally{u!==null&&i.types!==null&&(u.types=i.types),D.T=u}}else try{u=l(n,a),Ur(t,e,u)}catch(z){Cc(t,e,z)}}function Ur(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Hr(t,e,a)},function(a){return Cc(t,e,a)}):Hr(t,e,l)}function Hr(t,e,l){e.status="fulfilled",e.value=l,qr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,kr(t,l)))}function Cc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,qr(e),e=e.next;while(e!==a)}t.action=null}function qr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Br(t,e){return e}function Yr(t,e){if(rt){var l=Ot.formState;if(l!==null){t:{var a=et;if(rt){if(Dt){e:{for(var n=Dt,u=He;n.nodeType!==8;){if(!u){n=null;break e}if(n=Be(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Dt=Be(n.nextSibling),a=n.data==="F!";break t}}_l(a)}a=!1}a&&(e=l[0])}}return l=fe(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Br,lastRenderedState:e},l.queue=a,l=no.bind(null,et,a),a.dispatch=l,a=Rc(!1),u=Yc.bind(null,et,!1,a.queue),a=fe(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Ym.bind(null,et,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function Qr(t){var e=Bt();return Gr(e,_t,t)}function Gr(t,e,l){if(e=Dc(t,e,Br)[0],t=Hu(sl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Nn(e)}catch(i){throw i===qa?Au:i}else a=e;e=Bt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(et.flags|=2048,Xa(9,{destroy:void 0},Qm.bind(null,n,l),null)),[a,u,t]}function Qm(t,e){t.action=e}function Xr(t){var e=Bt(),l=_t;if(l!==null)return Gr(e,l,t);Bt(),e=e.memoizedState,l=Bt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Xa(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=et.updateQueue,e===null&&(e=ku(),et.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function wr(){return Bt().memoizedState}function qu(t,e,l,a){var n=fe();et.flags|=t,n.memoizedState=Xa(1|e,{destroy:void 0},l,a===void 0?null:a)}function Bu(t,e,l,a){var n=Bt();a=a===void 0?null:a;var u=n.memoizedState.inst;_t!==null&&a!==null&&_c(a,_t.memoizedState.deps)?n.memoizedState=Xa(e,u,l,a):(et.flags|=t,n.memoizedState=Xa(1|e,u,l,a))}function Zr(t,e){qu(8390656,8,t,e)}function kc(t,e){Bu(2048,8,t,e)}function Gm(t){et.flags|=4;var e=et.updateQueue;if(e===null)e=ku(),et.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Lr(t){var e=Bt().memoizedState;return Gm({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function Vr(t,e){return Bu(4,2,t,e)}function Kr(t,e){return Bu(4,4,t,e)}function Jr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function $r(t,e,l){l=l!=null?l.concat([t]):null,Bu(4,4,Jr.bind(null,e,t),l)}function Uc(){}function Wr(t,e){var l=Bt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&_c(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Fr(t,e){var l=Bt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&_c(e,a[1]))return a[0];if(a=t(),ca){ae(!0);try{t()}finally{ae(!1)}}return l.memoizedState=[a,e],a}function Hc(t,e,l){return l===void 0||(cl&1073741824)!==0&&(ct&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Po(),et.lanes|=t,Cl|=t,l)}function Ir(t,e,l,a){return be(l,e)?l:Ya.current!==null?(t=Hc(t,l,a),be(t,e)||(wt=!0),t):(cl&42)===0||(cl&1073741824)!==0&&(ct&261930)===0?(wt=!0,t.memoizedState=l):(t=Po(),et.lanes|=t,Cl|=t,e)}function Pr(t,e,l,a,n){var u=q.p;q.p=u!==0&&8>u?u:8;var i=D.T,o={};D.T=o,Yc(t,!1,e,l);try{var d=n(),z=D.S;if(z!==null&&z(o,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var O=Hm(d,a);jn(t,e,O,Ee(t))}else jn(t,e,a,Ee(t))}catch(k){jn(t,e,{then:function(){},status:"rejected",reason:k},Ee())}finally{q.p=u,i!==null&&o.types!==null&&(i.types=o.types),D.T=i}}function Xm(){}function qc(t,e,l,a){if(t.tag!==5)throw Error(s(476));var n=to(t).queue;Pr(t,n,e,K,l===null?Xm:function(){return eo(t),l(a)})}function to(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:K},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function eo(t){var e=to(t);e.next===null&&(e=t.alternate.memoizedState),jn(t,e.next.queue,{},Ee())}function Bc(){return Pt(Ln)}function lo(){return Bt().memoizedState}function ao(){return Bt().memoizedState}function wm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ee();t=Nl(l);var a=jl(e,t,l);a!==null&&(ye(a,e,l),Tn(a,e,l)),e={cache:dc()},t.payload=e;return}e=e.return}}function Zm(t,e,l){var a=Ee();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Yu(t)?uo(e,l):(l=lc(t,e,l,a),l!==null&&(ye(l,t,a),io(l,e,a)))}function no(t,e,l){var a=Ee();jn(t,e,l,a)}function jn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Yu(t))uo(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,o=u(i,l);if(n.hasEagerState=!0,n.eagerState=o,be(o,i))return bu(t,e,n,0),Ot===null&&vu(),!1}catch{}finally{}if(l=lc(t,e,n,a),l!==null)return ye(l,t,a),io(l,e,a),!0}return!1}function Yc(t,e,l,a){if(a={lane:2,revertLane:ys(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Yu(t)){if(e)throw Error(s(479))}else e=lc(t,l,a,2),e!==null&&ye(e,t,2)}function Yu(t){var e=t.alternate;return t===et||e!==null&&e===et}function uo(t,e){Qa=Ru=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function io(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,of(t,l)}}var On={readContext:Pt,use:Uu,useCallback:Ut,useContext:Ut,useEffect:Ut,useImperativeHandle:Ut,useLayoutEffect:Ut,useInsertionEffect:Ut,useMemo:Ut,useReducer:Ut,useRef:Ut,useState:Ut,useDebugValue:Ut,useDeferredValue:Ut,useTransition:Ut,useSyncExternalStore:Ut,useId:Ut,useHostTransitionStatus:Ut,useFormState:Ut,useActionState:Ut,useOptimistic:Ut,useMemoCache:Ut,useCacheRefresh:Ut};On.useEffectEvent=Ut;var co={readContext:Pt,use:Uu,useCallback:function(t,e){return fe().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:Zr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,qu(4194308,4,Jr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return qu(4194308,4,t,e)},useInsertionEffect:function(t,e){qu(4,2,t,e)},useMemo:function(t,e){var l=fe();e=e===void 0?null:e;var a=t();if(ca){ae(!0);try{t()}finally{ae(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=fe();if(l!==void 0){var n=l(e);if(ca){ae(!0);try{l(e)}finally{ae(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Zm.bind(null,et,t),[a.memoizedState,t]},useRef:function(t){var e=fe();return t={current:t},e.memoizedState=t},useState:function(t){t=Rc(t);var e=t.queue,l=no.bind(null,et,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Uc,useDeferredValue:function(t,e){var l=fe();return Hc(l,t,e)},useTransition:function(){var t=Rc(!1);return t=Pr.bind(null,et,t.queue,!0,!1),fe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=et,n=fe();if(rt){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),Ot===null)throw Error(s(349));(ct&127)!==0||jr(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Zr(Dr.bind(null,a,u,t),[t]),a.flags|=2048,Xa(9,{destroy:void 0},Or.bind(null,a,u,l,e),null),l},useId:function(){var t=fe(),e=Ot.identifierPrefix;if(rt){var l=Je,a=Ke;l=(a&~(1<<32-se(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Cu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=qm++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Bc,useFormState:Yr,useActionState:Yr,useOptimistic:function(t){var e=fe();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Yc.bind(null,et,!0,l),l.dispatch=e,[t,e]},useMemoCache:Oc,useCacheRefresh:function(){return fe().memoizedState=wm.bind(null,et)},useEffectEvent:function(t){var e=fe(),l={impl:t};return e.memoizedState=l,function(){if((bt&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},Qc={readContext:Pt,use:Uu,useCallback:Wr,useContext:Pt,useEffect:kc,useImperativeHandle:$r,useInsertionEffect:Vr,useLayoutEffect:Kr,useMemo:Fr,useReducer:Hu,useRef:wr,useState:function(){return Hu(sl)},useDebugValue:Uc,useDeferredValue:function(t,e){var l=Bt();return Ir(l,_t.memoizedState,t,e)},useTransition:function(){var t=Hu(sl)[0],e=Bt().memoizedState;return[typeof t=="boolean"?t:Nn(t),e]},useSyncExternalStore:Nr,useId:lo,useHostTransitionStatus:Bc,useFormState:Qr,useActionState:Qr,useOptimistic:function(t,e){var l=Bt();return Cr(l,_t,t,e)},useMemoCache:Oc,useCacheRefresh:ao};Qc.useEffectEvent=Lr;var so={readContext:Pt,use:Uu,useCallback:Wr,useContext:Pt,useEffect:kc,useImperativeHandle:$r,useInsertionEffect:Vr,useLayoutEffect:Kr,useMemo:Fr,useReducer:Mc,useRef:wr,useState:function(){return Mc(sl)},useDebugValue:Uc,useDeferredValue:function(t,e){var l=Bt();return _t===null?Hc(l,t,e):Ir(l,_t.memoizedState,t,e)},useTransition:function(){var t=Mc(sl)[0],e=Bt().memoizedState;return[typeof t=="boolean"?t:Nn(t),e]},useSyncExternalStore:Nr,useId:lo,useHostTransitionStatus:Bc,useFormState:Xr,useActionState:Xr,useOptimistic:function(t,e){var l=Bt();return _t!==null?Cr(l,_t,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Oc,useCacheRefresh:ao};so.useEffectEvent=Lr;function Gc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:C({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Xc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Ee(),n=Nl(a);n.payload=e,l!=null&&(n.callback=l),e=jl(t,n,a),e!==null&&(ye(e,t,a),Tn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Ee(),n=Nl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=jl(t,n,a),e!==null&&(ye(e,t,a),Tn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ee(),a=Nl(l);a.tag=2,e!=null&&(a.callback=e),e=jl(t,a,l),e!==null&&(ye(e,t,l),Tn(e,t,l))}};function fo(t,e,l,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):e.prototype&&e.prototype.isPureReactComponent?!gn(l,a)||!gn(n,u):!0}function ro(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Xc.enqueueReplaceState(e,e.state,null)}function sa(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=C({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function oo(t){yu(t)}function ho(t){console.error(t)}function mo(t){yu(t)}function Qu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function go(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function wc(t,e,l){return l=Nl(l),l.tag=3,l.payload={element:null},l.callback=function(){Qu(t,e)},l}function po(t){return t=Nl(t),t.tag=3,t}function yo(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){go(e,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){go(e,l,a),typeof n!="function"&&(kl===null?kl=new Set([this]):kl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Lm(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&ka(e,l,n,!0),l=xe.current,l!==null){switch(l.tag){case 31:case 13:return qe===null?Iu():l.alternate===null&&Ht===0&&(Ht=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Nu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),ms(t,a,n)),!1;case 22:return l.flags|=65536,a===Nu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),ms(t,a,n)),!1}throw Error(s(435,l.tag))}return ms(t,a,n),Iu(),!1}if(rt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==sc&&(t=Error(s(422),{cause:a}),vn(Ce(t,l)))):(a!==sc&&(e=Error(s(423),{cause:a}),vn(Ce(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Ce(a,l),n=wc(t.stateNode,a,n),bc(t,n),Ht!==4&&(Ht=2)),!1;var u=Error(s(520),{cause:a});if(u=Ce(u,l),qn===null?qn=[u]:qn.push(u),Ht!==4&&(Ht=2),e===null)return!0;a=Ce(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=wc(l.stateNode,a,t),bc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(kl===null||!kl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=po(n),yo(n,t,l,a),bc(l,n),!1}l=l.return}while(l!==null);return!1}var Zc=Error(s(461)),wt=!1;function te(t,e,l,a){e.child=t===null?Sr(e,null,l,a):ia(e,t.child,l,a)}function vo(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}else i=a;return la(e),a=Ec(t,e,l,i,u,n),o=Ac(),t!==null&&!wt?(Nc(t,e,n),fl(t,e,n)):(rt&&o&&ic(e),e.flags|=1,te(t,e,a,n),e.child)}function bo(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!ac(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,So(t,e,u,a,n)):(t=xu(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Ic(t,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:gn,l(i,a)&&t.ref===e.ref)return fl(t,e,n)}return e.flags|=1,t=al(u,a),t.ref=e.ref,t.return=e,e.child=t}function So(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(gn(u,a)&&t.ref===e.ref)if(wt=!1,e.pendingProps=a=u,Ic(t,n))(t.flags&131072)!==0&&(wt=!0);else return e.lanes=t.lanes,fl(t,e,n)}return Lc(t,e,l,a,n)}function xo(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return zo(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Eu(e,u!==null?u.cachePool:null),u!==null?Tr(e,u):xc(),_r(e);else return a=e.lanes=536870912,zo(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Eu(e,u.cachePool),Tr(e,u),Dl(),e.memoizedState=null):(t!==null&&Eu(e,null),xc(),Dl());return te(t,e,n,l),e.child}function Dn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function zo(t,e,l,a,n){var u=gc();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&Eu(e,null),xc(),_r(e),t!==null&&ka(t,e,a,!0),e.childLanes=n,null}function Gu(t,e){return e=wu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function To(t,e,l){return ia(e,t.child,null,l),t=Gu(e,e.pendingProps),t.flags|=2,ze(e),e.memoizedState=null,t}function Vm(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(rt){if(a.mode==="hidden")return t=Gu(e,a),e.lanes=536870912,Dn(null,t);if(Tc(e),(t=Dt)?(t=Uh(t,He),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zl!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},l=ur(t),l.return=e,e.child=l,It=e,Dt=null)):t=null,t===null)throw _l(e);return e.lanes=536870912,null}return Gu(e,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Tc(e),n)if(e.flags&256)e.flags&=-257,e=To(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(wt||ka(t,e,l,!1),n=(l&t.childLanes)!==0,wt||n){if(a=Ot,a!==null&&(i=hf(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Il(t,i),ye(a,t,i),Zc;Iu(),e=To(t,e,l)}else t=u.treeContext,Dt=Be(i.nextSibling),It=e,rt=!0,Tl=null,He=!1,t!==null&&sr(e,t),e=Gu(e,a),e.flags|=4096;return e}return t=al(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Xu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Lc(t,e,l,a,n){return la(e),l=Ec(t,e,l,a,void 0,n),a=Ac(),t!==null&&!wt?(Nc(t,e,n),fl(t,e,n)):(rt&&a&&ic(e),e.flags|=1,te(t,e,l,n),e.child)}function _o(t,e,l,a,n,u){return la(e),e.updateQueue=null,l=Ar(e,a,l,n),Er(t),a=Ac(),t!==null&&!wt?(Nc(t,e,u),fl(t,e,u)):(rt&&a&&ic(e),e.flags|=1,te(t,e,l,u),e.child)}function Eo(t,e,l,a,n){if(la(e),e.stateNode===null){var u=Da,i=l.contextType;typeof i=="object"&&i!==null&&(u=Pt(i)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Xc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},yc(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?Pt(i):Da,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Gc(e,l,i,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Xc.enqueueReplaceState(u,u.state,null),En(e,a,u,n),_n(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,d=sa(l,o);u.props=d;var z=u.context,O=l.contextType;i=Da,typeof O=="object"&&O!==null&&(i=Pt(O));var k=l.getDerivedStateFromProps;O=typeof k=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||z!==i)&&ro(e,u,a,i),Al=!1;var _=e.memoizedState;u.state=_,En(e,a,u,n),_n(),z=e.memoizedState,o||_!==z||Al?(typeof k=="function"&&(Gc(e,l,k,a),z=e.memoizedState),(d=Al||fo(e,l,d,a,_,z,i))?(O||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=z),u.props=a,u.state=z,u.context=i,a=d):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,vc(t,e),i=e.memoizedProps,O=sa(l,i),u.props=O,k=e.pendingProps,_=u.context,z=l.contextType,d=Da,typeof z=="object"&&z!==null&&(d=Pt(z)),o=l.getDerivedStateFromProps,(z=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==k||_!==d)&&ro(e,u,a,d),Al=!1,_=e.memoizedState,u.state=_,En(e,a,u,n),_n();var N=e.memoizedState;i!==k||_!==N||Al||t!==null&&t.dependencies!==null&&Tu(t.dependencies)?(typeof o=="function"&&(Gc(e,l,o,a),N=e.memoizedState),(O=Al||fo(e,l,O,a,_,N,d)||t!==null&&t.dependencies!==null&&Tu(t.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,N,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,N,d)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=N),u.props=a,u.state=N,u.context=d,a=O):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Xu(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=ia(e,t.child,null,n),e.child=ia(e,null,l,n)):te(t,e,l,n),e.memoizedState=u.state,t=e.child):t=fl(t,e,n),t}function Ao(t,e,l,a){return ta(),e.flags|=256,te(t,e,l,a),e.child}var Vc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(t){return{baseLanes:t,cachePool:mr()}}function Jc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=_e),t}function No(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(rt){if(n?Ol(e):Dl(),(t=Dt)?(t=Uh(t,He),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:zl!==null?{id:Ke,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},l=ur(t),l.return=e,e.child=l,It=e,Dt=null)):t=null,t===null)throw _l(e);return Ds(t)?e.lanes=32:e.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Dl(),n=e.mode,o=wu({mode:"hidden",children:o},n),a=Pl(a,n,l,null),o.return=e,a.return=e,o.sibling=a,e.child=o,a=e.child,a.memoizedState=Kc(l),a.childLanes=Jc(t,i,l),e.memoizedState=Vc,Dn(null,a)):(Ol(e),$c(e,o))}var d=t.memoizedState;if(d!==null&&(o=d.dehydrated,o!==null)){if(u)e.flags&256?(Ol(e),e.flags&=-257,e=Wc(t,e,l)):e.memoizedState!==null?(Dl(),e.child=t.child,e.flags|=128,e=null):(Dl(),o=a.fallback,n=e.mode,a=wu({mode:"visible",children:a.children},n),o=Pl(o,n,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,ia(e,t.child,null,l),a=e.child,a.memoizedState=Kc(l),a.childLanes=Jc(t,i,l),e.memoizedState=Vc,e=Dn(null,a));else if(Ol(e),Ds(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var z=i.dgst;i=z,a=Error(s(419)),a.stack="",a.digest=i,vn({value:a,source:null,stack:null}),e=Wc(t,e,l)}else if(wt||ka(t,e,l,!1),i=(l&t.childLanes)!==0,wt||i){if(i=Ot,i!==null&&(a=hf(i,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,Il(t,a),ye(i,t,a),Zc;Os(o)||Iu(),e=Wc(t,e,l)}else Os(o)?(e.flags|=192,e.child=t.child,e=null):(t=d.treeContext,Dt=Be(o.nextSibling),It=e,rt=!0,Tl=null,He=!1,t!==null&&sr(e,t),e=$c(e,a.children),e.flags|=4096);return e}return n?(Dl(),o=a.fallback,n=e.mode,d=t.child,z=d.sibling,a=al(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,z!==null?o=al(z,o):(o=Pl(o,n,l,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,Dn(null,a),a=e.child,o=t.child.memoizedState,o===null?o=Kc(l):(n=o.cachePool,n!==null?(d=Gt._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=mr(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=Jc(t,i,l),e.memoizedState=Vc,Dn(t.child,a)):(Ol(e),l=t.child,t=l.sibling,l=al(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function $c(t,e){return e=wu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function wu(t,e){return t=Se(22,t,null,e),t.lanes=0,t}function Wc(t,e,l){return ia(e,t.child,null,l),t=$c(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function jo(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),oc(t.return,e,l)}function Fc(t,e,l,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Oo(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=qt.current,o=(i&2)!==0;if(o?(i=i&1|2,e.flags|=128):i&=1,B(qt,i),te(t,e,a,l),a=rt?yn:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&jo(t,l,e);else if(t.tag===19)jo(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Mu(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Fc(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Mu(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Fc(e,!0,l,null,u,a);break;case"together":Fc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function fl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Cl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ka(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,l=al(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=al(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Ic(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Tu(t)))}function Km(t,e,l){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),El(e,Gt,t.memoizedState.cache),ta();break;case 27:case 5:Pe(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:El(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Tc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Ol(e),e.flags|=128,null):(l&e.child.childLanes)!==0?No(t,e,l):(Ol(e),t=fl(t,e,l),t!==null?t.sibling:null);Ol(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(ka(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Oo(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),B(qt,qt.current),a)break;return null;case 22:return e.lanes=0,xo(t,e,l,e.pendingProps);case 24:El(e,Gt,t.memoizedState.cache)}return fl(t,e,l)}function Do(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)wt=!0;else{if(!Ic(t,l)&&(e.flags&128)===0)return wt=!1,Km(t,e,l);wt=(t.flags&131072)!==0}else wt=!1,rt&&(e.flags&1048576)!==0&&cr(e,yn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=na(e.elementType),e.type=t,typeof t=="function")ac(t)?(a=sa(t,a),e.tag=1,e=Eo(null,e,t,a,l)):(e.tag=0,e=Lc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===ft){e.tag=11,e=vo(null,e,t,a,l);break t}else if(n===$){e.tag=14,e=bo(null,e,t,a,l);break t}}throw e=je(t)||t,Error(s(306,e,""))}}return e;case 0:return Lc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=sa(a,e.pendingProps),Eo(t,e,a,n,l);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,vc(t,e),En(e,a,null,l);var i=e.memoizedState;if(a=i.cache,El(e,Gt,a),a!==u.cache&&hc(e,[Gt],l,!0),_n(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Ao(t,e,a,l);break t}else if(a!==n){n=Ce(Error(s(424)),e),vn(n),e=Ao(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Dt=Be(t.firstChild),It=e,rt=!0,Tl=null,He=!0,l=Sr(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ta(),a===n){e=fl(t,e,l);break t}te(t,e,a,l)}e=e.child}return e;case 26:return Xu(t,e),t===null?(l=Gh(e.type,null,e.pendingProps,null))?e.memoizedState=l:rt||(l=e.type,t=e.pendingProps,a=ui(I.current).createElement(l),a[Ft]=e,a[oe]=t,ee(a,l,t),Jt(a),e.stateNode=a):e.memoizedState=Gh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pe(e),t===null&&rt&&(a=e.stateNode=Bh(e.type,e.pendingProps,I.current),It=e,He=!0,n=Dt,Bl(e.type)?(Ms=n,Dt=Be(a.firstChild)):Dt=n),te(t,e,e.pendingProps.children,l),Xu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&rt&&((n=a=Dt)&&(a=T0(a,e.type,e.pendingProps,He),a!==null?(e.stateNode=a,It=e,Dt=Be(a.firstChild),He=!1,n=!0):n=!1),n||_l(e)),Pe(e),n=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,As(n,u)?a=null:i!==null&&As(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=Ec(t,e,Bm,null,null,l),Ln._currentValue=n),Xu(t,e),te(t,e,a,l),e.child;case 6:return t===null&&rt&&((t=l=Dt)&&(l=_0(l,e.pendingProps,He),l!==null?(e.stateNode=l,It=e,Dt=null,t=!0):t=!1),t||_l(e)),null;case 13:return No(t,e,l);case 4:return Kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ia(e,null,a,l):te(t,e,a,l),e.child;case 11:return vo(t,e,e.type,e.pendingProps,l);case 7:return te(t,e,e.pendingProps,l),e.child;case 8:return te(t,e,e.pendingProps.children,l),e.child;case 12:return te(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,El(e,e.type,a.value),te(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,la(e),n=Pt(n),a=a(n),e.flags|=1,te(t,e,a,l),e.child;case 14:return bo(t,e,e.type,e.pendingProps,l);case 15:return So(t,e,e.type,e.pendingProps,l);case 19:return Oo(t,e,l);case 31:return Vm(t,e,l);case 22:return xo(t,e,l,e.pendingProps);case 24:return la(e),a=Pt(Gt),t===null?(n=gc(),n===null&&(n=Ot,u=dc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},yc(e),El(e,Gt,n)):((t.lanes&l)!==0&&(vc(t,e),En(e,null,null,l),_n()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),El(e,Gt,a)):(a=u.cache,El(e,Gt,a),a!==n.cache&&hc(e,[Gt],l,!0))),te(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function rl(t){t.flags|=4}function Pc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(ah())t.flags|=8192;else throw ua=Nu,pc}else t.flags&=-16777217}function Mo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Vh(e))if(ah())t.flags|=8192;else throw ua=Nu,pc}function Zu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?ff():536870912,t.lanes|=e,Va|=e)}function Mn(t,e){if(!rt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Mt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Jm(t,e,l){var a=e.pendingProps;switch(cc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(e),null;case 1:return Mt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),il(Gt),kt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Ca(e)?rl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,fc())),Mt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(rl(e),u!==null?(Mt(e),Mo(e,u)):(Mt(e),Pc(e,n,null,a,l))):u?u!==t.memoizedState?(rl(e),Mt(e),Mo(e,u)):(Mt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&rl(e),Mt(e),Pc(e,n,t,a,l)),null;case 27:if(Qe(e),l=I.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rl(e);else{if(!a){if(e.stateNode===null)throw Error(s(166));return Mt(e),null}t=Q.current,Ca(e)?fr(e):(t=Bh(n,a,l),e.stateNode=t,rl(e))}return Mt(e),null;case 5:if(Qe(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rl(e);else{if(!a){if(e.stateNode===null)throw Error(s(166));return Mt(e),null}if(u=Q.current,Ca(e))fr(e);else{var i=ui(I.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Ft]=e,u[oe]=a;t:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(ee(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&rl(e)}}return Mt(e),Pc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&rl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(s(166));if(t=I.current,Ca(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=It,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Ft]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Nh(t.nodeValue,l)),t||_l(e,!0)}else t=ui(t).createTextNode(a),t[Ft]=e,e.stateNode=t}return Mt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ca(e),l!==null){if(t===null){if(!a)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[Ft]=e}else ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),t=!1}else l=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ze(e),e):(ze(e),null);if((e.flags&128)!==0)throw Error(s(558))}return Mt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=Ca(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(s(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[Ft]=e}else ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),n=!1}else n=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ze(e),e):(ze(e),null)}return ze(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Zu(e,e.updateQueue),Mt(e),null);case 4:return kt(),t===null&&xs(e.stateNode.containerInfo),Mt(e),null;case 10:return il(e.type),Mt(e),null;case 19:if(M(qt),a=e.memoizedState,a===null)return Mt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)Mn(a,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Mu(t),u!==null){for(e.flags|=128,Mn(a,!1),t=u.updateQueue,e.updateQueue=t,Zu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)nr(l,t),l=l.sibling;return B(qt,qt.current&1|2),rt&&nl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ce()>$u&&(e.flags|=128,n=!0,Mn(a,!1),e.lanes=4194304)}else{if(!n)if(t=Mu(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Zu(e,t),Mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!rt)return Mt(e),null}else 2*ce()-a.renderingStartTime>$u&&l!==536870912&&(e.flags|=128,n=!0,Mn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ce(),t.sibling=null,l=qt.current,B(qt,n?l&1|2:l&1),rt&&nl(e,a.treeForkCount),t):(Mt(e),null);case 22:case 23:return ze(e),zc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Mt(e),e.subtreeFlags&6&&(e.flags|=8192)):Mt(e),l=e.updateQueue,l!==null&&Zu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&M(aa),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),il(Gt),Mt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function $m(t,e){switch(cc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return il(Gt),kt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Qe(e),null;case 31:if(e.memoizedState!==null){if(ze(e),e.alternate===null)throw Error(s(340));ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ze(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(qt),null;case 4:return kt(),null;case 10:return il(e.type),null;case 22:case 23:return ze(e),zc(),t!==null&&M(aa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return il(Gt),null;case 25:return null;default:return null}}function Ro(t,e){switch(cc(e),e.tag){case 3:il(Gt),kt();break;case 26:case 27:case 5:Qe(e);break;case 4:kt();break;case 31:e.memoizedState!==null&&ze(e);break;case 13:ze(e);break;case 19:M(qt);break;case 10:il(e.type);break;case 22:case 23:ze(e),zc(),t!==null&&M(aa);break;case 24:il(Gt)}}function Rn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(o){zt(e,e.return,o)}}function Ml(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,o=i.destroy;if(o!==void 0){i.destroy=void 0,n=e;var d=l,z=o;try{z()}catch(O){zt(n,d,O)}}}a=a.next}while(a!==u)}}catch(O){zt(e,e.return,O)}}function Co(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{zr(e,l)}catch(a){zt(t,t.return,a)}}}function ko(t,e,l){l.props=sa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){zt(t,e,a)}}function Cn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){zt(t,e,n)}}function $e(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){zt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){zt(t,e,n)}else l.current=null}function Uo(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){zt(t,t.return,n)}}function ts(t,e,l){try{var a=t.stateNode;y0(a,t.type,l,e),a[oe]=e}catch(n){zt(t,t.return,n)}}function Ho(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Bl(t.type)||t.tag===4}function es(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ho(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Bl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ls(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=el));else if(a!==4&&(a===27&&Bl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ls(t,e,l),t=t.sibling;t!==null;)ls(t,e,l),t=t.sibling}function Lu(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Bl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Lu(t,e,l),t=t.sibling;t!==null;)Lu(t,e,l),t=t.sibling}function qo(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ee(e,a,l),e[Ft]=t,e[oe]=l}catch(u){zt(t,t.return,u)}}var ol=!1,Zt=!1,as=!1,Bo=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Wm(t,e){if(t=t.containerInfo,_s=hi,t=$f(t),Wi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var i=0,o=-1,d=-1,z=0,O=0,k=t,_=null;e:for(;;){for(var N;k!==l||n!==0&&k.nodeType!==3||(o=i+n),k!==u||a!==0&&k.nodeType!==3||(d=i+a),k.nodeType===3&&(i+=k.nodeValue.length),(N=k.firstChild)!==null;)_=k,k=N;for(;;){if(k===t)break e;if(_===l&&++z===n&&(o=i),_===u&&++O===a&&(d=i),(N=k.nextSibling)!==null)break;k=_,_=k.parentNode}k=N}l=o===-1||d===-1?null:{start:o,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(Es={focusedElem:t,selectionRange:l},hi=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var G=sa(l.type,n);t=a.getSnapshotBeforeUpdate(G,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(V){zt(l,l.return,V)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)js(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":js(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function Yo(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:dl(t,l),a&4&&Rn(5,l);break;case 1:if(dl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){zt(l,l.return,i)}else{var n=sa(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){zt(l,l.return,i)}}a&64&&Co(l),a&512&&Cn(l,l.return);break;case 3:if(dl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{zr(t,e)}catch(i){zt(l,l.return,i)}}break;case 27:e===null&&a&4&&qo(l);case 26:case 5:dl(t,l),e===null&&a&4&&Uo(l),a&512&&Cn(l,l.return);break;case 12:dl(t,l);break;case 31:dl(t,l),a&4&&Xo(t,l);break;case 13:dl(t,l),a&4&&wo(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=u0.bind(null,l),E0(t,l))));break;case 22:if(a=l.memoizedState!==null||ol,!a){e=e!==null&&e.memoizedState!==null||Zt,n=ol;var u=Zt;ol=a,(Zt=e)&&!u?ml(t,l,(l.subtreeFlags&8772)!==0):dl(t,l),ol=n,Zt=u}break;case 30:break;default:dl(t,l)}}function Qo(t){var e=t.alternate;e!==null&&(t.alternate=null,Qo(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ci(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Rt=null,de=!1;function hl(t,e,l){for(l=l.child;l!==null;)Go(t,e,l),l=l.sibling}function Go(t,e,l){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(vt,l)}catch{}switch(l.tag){case 26:Zt||$e(l,e),hl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Zt||$e(l,e);var a=Rt,n=de;Bl(l.type)&&(Rt=l.stateNode,de=!1),hl(t,e,l),Xn(l.stateNode),Rt=a,de=n;break;case 5:Zt||$e(l,e);case 6:if(a=Rt,n=de,Rt=null,hl(t,e,l),Rt=a,de=n,Rt!==null)if(de)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(l.stateNode)}catch(u){zt(l,e,u)}else try{Rt.removeChild(l.stateNode)}catch(u){zt(l,e,u)}break;case 18:Rt!==null&&(de?(t=Rt,Ch(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),tn(t)):Ch(Rt,l.stateNode));break;case 4:a=Rt,n=de,Rt=l.stateNode.containerInfo,de=!0,hl(t,e,l),Rt=a,de=n;break;case 0:case 11:case 14:case 15:Ml(2,l,e),Zt||Ml(4,l,e),hl(t,e,l);break;case 1:Zt||($e(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ko(l,e,a)),hl(t,e,l);break;case 21:hl(t,e,l);break;case 22:Zt=(a=Zt)||l.memoizedState!==null,hl(t,e,l),Zt=a;break;default:hl(t,e,l)}}function Xo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{tn(t)}catch(l){zt(e,e.return,l)}}}function wo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{tn(t)}catch(l){zt(e,e.return,l)}}function Fm(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Bo),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Bo),e;default:throw Error(s(435,t.tag))}}function Vu(t,e){var l=Fm(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=i0.bind(null,t,a);a.then(n,n)}})}function me(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,i=e,o=i;t:for(;o!==null;){switch(o.tag){case 27:if(Bl(o.type)){Rt=o.stateNode,de=!1;break t}break;case 5:Rt=o.stateNode,de=!1;break t;case 3:case 4:Rt=o.stateNode.containerInfo,de=!0;break t}o=o.return}if(Rt===null)throw Error(s(160));Go(u,i,n),Rt=null,de=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Zo(e,t),e=e.sibling}var Xe=null;function Zo(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:me(e,t),ge(t),a&4&&(Ml(3,t,t.return),Rn(3,t),Ml(5,t,t.return));break;case 1:me(e,t),ge(t),a&512&&(Zt||l===null||$e(l,l.return)),a&64&&ol&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Xe;if(me(e,t),ge(t),a&512&&(Zt||l===null||$e(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[un]||u[Ft]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ee(u,a,l),u[Ft]=t,Jt(u),a=u;break t;case"link":var i=Zh("link","href",n).get(a+(l.href||""));if(i){for(var o=0;o<i.length;o++)if(u=i[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(o,1);break e}}u=n.createElement(a),ee(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Zh("meta","content",n).get(a+(l.content||""))){for(o=0;o<i.length;o++)if(u=i[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(o,1);break e}}u=n.createElement(a),ee(u,a,l),n.head.appendChild(u);break;default:throw Error(s(468,a))}u[Ft]=t,Jt(u),a=u}t.stateNode=a}else Lh(n,t.type,t.stateNode);else t.stateNode=wh(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Lh(n,t.type,t.stateNode):wh(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&ts(t,t.memoizedProps,l.memoizedProps)}break;case 27:me(e,t),ge(t),a&512&&(Zt||l===null||$e(l,l.return)),l!==null&&a&4&&ts(t,t.memoizedProps,l.memoizedProps);break;case 5:if(me(e,t),ge(t),a&512&&(Zt||l===null||$e(l,l.return)),t.flags&32){n=t.stateNode;try{Ta(n,"")}catch(G){zt(t,t.return,G)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,ts(t,n,l!==null?l.memoizedProps:n)),a&1024&&(as=!0);break;case 6:if(me(e,t),ge(t),a&4){if(t.stateNode===null)throw Error(s(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(G){zt(t,t.return,G)}}break;case 3:if(si=null,n=Xe,Xe=ii(e.containerInfo),me(e,t),Xe=n,ge(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{tn(e.containerInfo)}catch(G){zt(t,t.return,G)}as&&(as=!1,Lo(t));break;case 4:a=Xe,Xe=ii(t.stateNode.containerInfo),me(e,t),ge(t),Xe=a;break;case 12:me(e,t),ge(t);break;case 31:me(e,t),ge(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Vu(t,a)));break;case 13:me(e,t),ge(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ju=ce()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Vu(t,a)));break;case 22:n=t.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,z=ol,O=Zt;if(ol=z||n,Zt=O||d,me(e,t),Zt=O,ol=z,ge(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||d||ol||Zt||fa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){d=l=e;try{if(u=d.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{o=d.stateNode;var k=d.memoizedProps.style,_=k!=null&&k.hasOwnProperty("display")?k.display:null;o.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(G){zt(d,d.return,G)}}}else if(e.tag===6){if(l===null){d=e;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(G){zt(d,d.return,G)}}}else if(e.tag===18){if(l===null){d=e;try{var N=d.stateNode;n?kh(N,!0):kh(d.stateNode,!1)}catch(G){zt(d,d.return,G)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Vu(t,l))));break;case 19:me(e,t),ge(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Vu(t,a)));break;case 30:break;case 21:break;default:me(e,t),ge(t)}}function ge(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Ho(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,u=es(t);Lu(t,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(Ta(i,""),l.flags&=-33);var o=es(t);Lu(t,o,i);break;case 3:case 4:var d=l.stateNode.containerInfo,z=es(t);ls(t,z,d);break;default:throw Error(s(161))}}catch(O){zt(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Lo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Lo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function dl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Yo(t,e.alternate,e),e=e.sibling}function fa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ml(4,e,e.return),fa(e);break;case 1:$e(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&ko(e,e.return,l),fa(e);break;case 27:Xn(e.stateNode);case 26:case 5:$e(e,e.return),fa(e);break;case 22:e.memoizedState===null&&fa(e);break;case 30:fa(e);break;default:fa(e)}t=t.sibling}}function ml(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,i=u.flags;switch(u.tag){case 0:case 11:case 15:ml(n,u,l),Rn(4,u);break;case 1:if(ml(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){zt(a,a.return,z)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)xr(d[n],o)}catch(z){zt(a,a.return,z)}}l&&i&64&&Co(u),Cn(u,u.return);break;case 27:qo(u);case 26:case 5:ml(n,u,l),l&&a===null&&i&4&&Uo(u),Cn(u,u.return);break;case 12:ml(n,u,l);break;case 31:ml(n,u,l),l&&i&4&&Xo(n,u);break;case 13:ml(n,u,l),l&&i&4&&wo(n,u);break;case 22:u.memoizedState===null&&ml(n,u,l),Cn(u,u.return);break;case 30:break;default:ml(n,u,l)}e=e.sibling}}function ns(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&bn(l))}function us(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bn(t))}function we(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vo(t,e,l,a),e=e.sibling}function Vo(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:we(t,e,l,a),n&2048&&Rn(9,e);break;case 1:we(t,e,l,a);break;case 3:we(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&bn(t)));break;case 12:if(n&2048){we(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,i=u.id,o=u.onPostCommit;typeof o=="function"&&o(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(d){zt(e,e.return,d)}}else we(t,e,l,a);break;case 31:we(t,e,l,a);break;case 13:we(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?we(t,e,l,a):kn(t,e):u._visibility&2?we(t,e,l,a):(u._visibility|=2,wa(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&ns(i,e);break;case 24:we(t,e,l,a),n&2048&&us(e.alternate,e);break;default:we(t,e,l,a)}}function wa(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,o=l,d=a,z=i.flags;switch(i.tag){case 0:case 11:case 15:wa(u,i,o,d,n),Rn(8,i);break;case 23:break;case 22:var O=i.stateNode;i.memoizedState!==null?O._visibility&2?wa(u,i,o,d,n):kn(u,i):(O._visibility|=2,wa(u,i,o,d,n)),n&&z&2048&&ns(i.alternate,i);break;case 24:wa(u,i,o,d,n),n&&z&2048&&us(i.alternate,i);break;default:wa(u,i,o,d,n)}e=e.sibling}}function kn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:kn(l,a),n&2048&&ns(a.alternate,a);break;case 24:kn(l,a),n&2048&&us(a.alternate,a);break;default:kn(l,a)}e=e.sibling}}var Un=8192;function Za(t,e,l){if(t.subtreeFlags&Un)for(t=t.child;t!==null;)Ko(t,e,l),t=t.sibling}function Ko(t,e,l){switch(t.tag){case 26:Za(t,e,l),t.flags&Un&&t.memoizedState!==null&&q0(l,Xe,t.memoizedState,t.memoizedProps);break;case 5:Za(t,e,l);break;case 3:case 4:var a=Xe;Xe=ii(t.stateNode.containerInfo),Za(t,e,l),Xe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Un,Un=16777216,Za(t,e,l),Un=a):Za(t,e,l));break;default:Za(t,e,l)}}function Jo(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Hn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];$t=a,Wo(a,t)}Jo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$o(t),t=t.sibling}function $o(t){switch(t.tag){case 0:case 11:case 15:Hn(t),t.flags&2048&&Ml(9,t,t.return);break;case 3:Hn(t);break;case 12:Hn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ku(t)):Hn(t);break;default:Hn(t)}}function Ku(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];$t=a,Wo(a,t)}Jo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ml(8,e,e.return),Ku(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ku(e));break;default:Ku(e)}t=t.sibling}}function Wo(t,e){for(;$t!==null;){var l=$t;switch(l.tag){case 0:case 11:case 15:Ml(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:bn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,$t=a;else t:for(l=t;$t!==null;){a=$t;var n=a.sibling,u=a.return;if(Qo(a),a===l){$t=null;break t}if(n!==null){n.return=u,$t=n;break t}$t=u}}}var Im={getCacheForType:function(t){var e=Pt(Gt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Pt(Gt).controller.signal}},Pm=typeof WeakMap=="function"?WeakMap:Map,bt=0,Ot=null,ut=null,ct=0,xt=0,Te=null,Rl=!1,La=!1,is=!1,gl=0,Ht=0,Cl=0,ra=0,cs=0,_e=0,Va=0,qn=null,pe=null,ss=!1,Ju=0,Fo=0,$u=1/0,Wu=null,kl=null,Lt=0,Ul=null,Ka=null,pl=0,fs=0,rs=null,Io=null,Bn=0,os=null;function Ee(){return(bt&2)!==0&&ct!==0?ct&-ct:D.T!==null?ys():df()}function Po(){if(_e===0)if((ct&536870912)===0||rt){var t=nu;nu<<=1,(nu&3932160)===0&&(nu=262144),_e=t}else _e=536870912;return t=xe.current,t!==null&&(t.flags|=32),_e}function ye(t,e,l){(t===Ot&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(Ja(t,0),Hl(t,ct,_e,!1)),nn(t,l),((bt&2)===0||t!==Ot)&&(t===Ot&&((bt&2)===0&&(ra|=l),Ht===4&&Hl(t,ct,_e,!1)),We(t))}function th(t,e,l){if((bt&6)!==0)throw Error(s(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||an(t,e),n=a?l0(t,e):ds(t,e,!0),u=a;do{if(n===0){La&&!a&&Hl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!t0(l)){n=ds(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var o=t;n=qn;var d=o.current.memoizedState.isDehydrated;if(d&&(Ja(o,i).flags|=256),i=ds(o,i,!1),i!==2){if(is&&!d){o.errorRecoveryDisabledLanes|=u,ra|=u,n=4;break t}u=pe,pe=n,u!==null&&(pe===null?pe=u:pe.push.apply(pe,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ja(t,0),Hl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Hl(a,e,_e,!Rl);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(n=Ju+300-ce(),10<n)){if(Hl(a,e,_e,!Rl),iu(a,0,!0)!==0)break t;pl=e,a.timeoutHandle=Mh(eh.bind(null,a,l,pe,Wu,ss,e,_e,ra,Va,Rl,u,"Throttled",-0,0),n);break t}eh(a,l,pe,Wu,ss,e,_e,ra,Va,Rl,u,null,-0,0)}}break}while(!0);We(t)}function eh(t,e,l,a,n,u,i,o,d,z,O,k,_,N){if(t.timeoutHandle=-1,k=e.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:el},Ko(e,u,k);var G=(u&62914560)===u?Ju-ce():(u&4194048)===u?Fo-ce():0;if(G=B0(k,G),G!==null){pl=u,t.cancelPendingCommit=G(fh.bind(null,t,e,u,l,a,n,i,o,d,O,k,null,_,N)),Hl(t,u,i,!z);return}}fh(t,e,u,l,a,n,i,o,d)}function t0(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!be(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Hl(t,e,l,a){e&=~cs,e&=~ra,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-se(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&rf(t,l,e)}function Fu(){return(bt&6)===0?(Yn(0),!1):!0}function hs(){if(ut!==null){if(xt===0)var t=ut.return;else t=ut,ul=ea=null,jc(t),Ba=null,xn=0,t=ut;for(;t!==null;)Ro(t.alternate,t),t=t.return;ut=null}}function Ja(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,S0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),pl=0,hs(),Ot=t,ut=l=al(t.current,null),ct=e,xt=0,Te=null,Rl=!1,La=an(t,e),is=!1,Va=_e=cs=ra=Cl=Ht=0,pe=qn=null,ss=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-se(a),u=1<<n;e|=t[n],a&=~u}return gl=e,vu(),l}function lh(t,e){et=null,D.H=On,e===qa||e===Au?(e=yr(),xt=3):e===pc?(e=yr(),xt=4):xt=e===Zc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,ut===null&&(Ht=1,Qu(t,Ce(e,t.current)))}function ah(){var t=xe.current;return t===null?!0:(ct&4194048)===ct?qe===null:(ct&62914560)===ct||(ct&536870912)!==0?t===qe:!1}function nh(){var t=D.H;return D.H=On,t===null?On:t}function uh(){var t=D.A;return D.A=Im,t}function Iu(){Ht=4,Rl||(ct&4194048)!==ct&&xe.current!==null||(La=!0),(Cl&134217727)===0&&(ra&134217727)===0||Ot===null||Hl(Ot,ct,_e,!1)}function ds(t,e,l){var a=bt;bt|=2;var n=nh(),u=uh();(Ot!==t||ct!==e)&&(Wu=null,Ja(t,e)),e=!1;var i=Ht;t:do try{if(xt!==0&&ut!==null){var o=ut,d=Te;switch(xt){case 8:hs(),i=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var z=xt;if(xt=0,Te=null,$a(t,o,d,z),l&&La){i=0;break t}break;default:z=xt,xt=0,Te=null,$a(t,o,d,z)}}e0(),i=Ht;break}catch(O){lh(t,O)}while(!0);return e&&t.shellSuspendCounter++,ul=ea=null,bt=a,D.H=n,D.A=u,ut===null&&(Ot=null,ct=0,vu()),i}function e0(){for(;ut!==null;)ih(ut)}function l0(t,e){var l=bt;bt|=2;var a=nh(),n=uh();Ot!==t||ct!==e?(Wu=null,$u=ce()+500,Ja(t,e)):La=an(t,e);t:do try{if(xt!==0&&ut!==null){e=ut;var u=Te;e:switch(xt){case 1:xt=0,Te=null,$a(t,e,u,1);break;case 2:case 9:if(gr(u)){xt=0,Te=null,ch(e);break}e=function(){xt!==2&&xt!==9||Ot!==t||(xt=7),We(t)},u.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:gr(u)?(xt=0,Te=null,ch(e)):(xt=0,Te=null,$a(t,e,u,7));break;case 5:var i=null;switch(ut.tag){case 26:i=ut.memoizedState;case 5:case 27:var o=ut;if(i?Vh(i):o.stateNode.complete){xt=0,Te=null;var d=o.sibling;if(d!==null)ut=d;else{var z=o.return;z!==null?(ut=z,Pu(z)):ut=null}break e}}xt=0,Te=null,$a(t,e,u,5);break;case 6:xt=0,Te=null,$a(t,e,u,6);break;case 8:hs(),Ht=6;break t;default:throw Error(s(462))}}a0();break}catch(O){lh(t,O)}while(!0);return ul=ea=null,D.H=a,D.A=n,bt=l,ut!==null?0:(Ot=null,ct=0,vu(),Ht)}function a0(){for(;ut!==null&&!Ni();)ih(ut)}function ih(t){var e=Do(t.alternate,t,gl);t.memoizedProps=t.pendingProps,e===null?Pu(t):ut=e}function ch(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=_o(l,e,e.pendingProps,e.type,void 0,ct);break;case 11:e=_o(l,e,e.pendingProps,e.type.render,e.ref,ct);break;case 5:jc(e);default:Ro(l,e),e=ut=nr(e,gl),e=Do(l,e,gl)}t.memoizedProps=t.pendingProps,e===null?Pu(t):ut=e}function $a(t,e,l,a){ul=ea=null,jc(e),Ba=null,xn=0;var n=e.return;try{if(Lm(t,n,e,l,ct)){Ht=1,Qu(t,Ce(l,t.current)),ut=null;return}}catch(u){if(n!==null)throw ut=n,u;Ht=1,Qu(t,Ce(l,t.current)),ut=null;return}e.flags&32768?(rt||a===1?t=!0:La||(ct&536870912)!==0?t=!1:(Rl=t=!0,(a===2||a===9||a===3||a===6)&&(a=xe.current,a!==null&&a.tag===13&&(a.flags|=16384))),sh(e,t)):Pu(e)}function Pu(t){var e=t;do{if((e.flags&32768)!==0){sh(e,Rl);return}t=e.return;var l=Jm(e.alternate,e,gl);if(l!==null){ut=l;return}if(e=e.sibling,e!==null){ut=e;return}ut=e=t}while(e!==null);Ht===0&&(Ht=5)}function sh(t,e){do{var l=$m(t.alternate,t);if(l!==null){l.flags&=32767,ut=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ut=t;return}ut=t=l}while(t!==null);Ht=6,ut=null}function fh(t,e,l,a,n,u,i,o,d){t.cancelPendingCommit=null;do ti();while(Lt!==0);if((bt&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=ec,Hd(t,l,u,i,o,d),t===Ot&&(ut=Ot=null,ct=0),Ka=e,Ul=t,pl=l,fs=u,rs=n,Io=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,c0(Vl,function(){return mh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=q.p,q.p=2,i=bt,bt|=4;try{Wm(t,e,l)}finally{bt=i,q.p=n,D.T=a}}Lt=1,rh(),oh(),hh()}}function rh(){if(Lt===1){Lt=0;var t=Ul,e=Ka,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=q.p;q.p=2;var n=bt;bt|=4;try{Zo(e,t);var u=Es,i=$f(t.containerInfo),o=u.focusedElem,d=u.selectionRange;if(i!==o&&o&&o.ownerDocument&&Jf(o.ownerDocument.documentElement,o)){if(d!==null&&Wi(o)){var z=d.start,O=d.end;if(O===void 0&&(O=z),"selectionStart"in o)o.selectionStart=z,o.selectionEnd=Math.min(O,o.value.length);else{var k=o.ownerDocument||document,_=k&&k.defaultView||window;if(_.getSelection){var N=_.getSelection(),G=o.textContent.length,V=Math.min(d.start,G),At=d.end===void 0?V:Math.min(d.end,G);!N.extend&&V>At&&(i=At,At=V,V=i);var S=Kf(o,V),p=Kf(o,At);if(S&&p&&(N.rangeCount!==1||N.anchorNode!==S.node||N.anchorOffset!==S.offset||N.focusNode!==p.node||N.focusOffset!==p.offset)){var x=k.createRange();x.setStart(S.node,S.offset),N.removeAllRanges(),V>At?(N.addRange(x),N.extend(p.node,p.offset)):(x.setEnd(p.node,p.offset),N.addRange(x))}}}}for(k=[],N=o;N=N.parentNode;)N.nodeType===1&&k.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<k.length;o++){var R=k[o];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}hi=!!_s,Es=_s=null}finally{bt=n,q.p=a,D.T=l}}t.current=e,Lt=2}}function oh(){if(Lt===2){Lt=0;var t=Ul,e=Ka,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=q.p;q.p=2;var n=bt;bt|=4;try{Yo(t,e.alternate,e)}finally{bt=n,q.p=a,D.T=l}}Lt=3}}function hh(){if(Lt===4||Lt===3){Lt=0,tu();var t=Ul,e=Ka,l=pl,a=Io;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Lt=5:(Lt=0,Ka=Ul=null,dh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(kl=null),Mi(l),e=e.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(vt,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=D.T,n=q.p,q.p=2,D.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var o=a[i];u(o.value,{componentStack:o.stack})}}finally{D.T=e,q.p=n}}(pl&3)!==0&&ti(),We(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===os?Bn++:(Bn=0,os=t):Bn=0,Yn(0)}}function dh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,bn(e)))}function ti(){return rh(),oh(),hh(),mh()}function mh(){if(Lt!==5)return!1;var t=Ul,e=fs;fs=0;var l=Mi(pl),a=D.T,n=q.p;try{q.p=32>l?32:l,D.T=null,l=rs,rs=null;var u=Ul,i=pl;if(Lt=0,Ka=Ul=null,pl=0,(bt&6)!==0)throw Error(s(331));var o=bt;if(bt|=4,$o(u.current),Vo(u,u.current,i,l),bt=o,Yn(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(vt,u)}catch{}return!0}finally{q.p=n,D.T=a,dh(t,e)}}function gh(t,e,l){e=Ce(l,e),e=wc(t.stateNode,e,2),t=jl(t,e,2),t!==null&&(nn(t,2),We(t))}function zt(t,e,l){if(t.tag===3)gh(t,t,l);else for(;e!==null;){if(e.tag===3){gh(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(kl===null||!kl.has(a))){t=Ce(l,t),l=po(2),a=jl(e,l,2),a!==null&&(yo(l,a,e,t),nn(a,2),We(a));break}}e=e.return}}function ms(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Pm;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(is=!0,n.add(l),t=n0.bind(null,t,e,l),e.then(t,t))}function n0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Ot===t&&(ct&l)===l&&(Ht===4||Ht===3&&(ct&62914560)===ct&&300>ce()-Ju?(bt&2)===0&&Ja(t,0):cs|=l,Va===ct&&(Va=0)),We(t)}function ph(t,e){e===0&&(e=ff()),t=Il(t,e),t!==null&&(nn(t,e),We(t))}function u0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),ph(t,l)}function i0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(e),ph(t,l)}function c0(t,e){return gt(t,e)}var ei=null,Wa=null,gs=!1,li=!1,ps=!1,ql=0;function We(t){t!==Wa&&t.next===null&&(Wa===null?ei=Wa=t:Wa=Wa.next=t),li=!0,gs||(gs=!0,f0())}function Yn(t,e){if(!ps&&li){ps=!0;do for(var l=!1,a=ei;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-se(42|t)+1)-1,u&=n&~(i&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Sh(a,u))}else u=ct,u=iu(a,a===Ot?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||an(a,u)||(l=!0,Sh(a,u));a=a.next}while(l);ps=!1}}function s0(){yh()}function yh(){li=gs=!1;var t=0;ql!==0&&b0()&&(t=ql);for(var e=ce(),l=null,a=ei;a!==null;){var n=a.next,u=vh(a,e);u===0?(a.next=null,l===null?ei=n:l.next=n,n===null&&(Wa=l)):(l=a,(t!==0||(u&3)!==0)&&(li=!0)),a=n}Lt!==0&&Lt!==5||Yn(t),ql!==0&&(ql=0)}function vh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-se(u),o=1<<i,d=n[i];d===-1?((o&l)===0||(o&a)!==0)&&(n[i]=Ud(o,e)):d<=e&&(t.expiredLanes|=o),u&=~o}if(e=Ot,l=ct,l=iu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&pa(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||an(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&pa(a),Mi(l)){case 2:case 8:l=lu;break;case 32:l=Vl;break;case 268435456:l=lt;break;default:l=Vl}return a=bh.bind(null,t),l=gt(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&pa(a),t.callbackPriority=2,t.callbackNode=null,2}function bh(t,e){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ti()&&t.callbackNode!==l)return null;var a=ct;return a=iu(t,t===Ot?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(th(t,a,e),vh(t,ce()),t.callbackNode!=null&&t.callbackNode===l?bh.bind(null,t):null)}function Sh(t,e){if(ti())return null;th(t,e,!0)}function f0(){x0(function(){(bt&6)!==0?gt(eu,s0):yh()})}function ys(){if(ql===0){var t=Ua;t===0&&(t=au,au<<=1,(au&261888)===0&&(au=256)),ql=t}return ql}function xh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ru(""+t)}function zh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function r0(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=xh((n[oe]||null).action),i=a.submitter;i&&(e=(e=i[oe]||null)?xh(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var o=new mu("action","action",null,a,n);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ql!==0){var d=i?zh(n,i):new FormData(n);qc(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(o.preventDefault(),d=i?zh(n,i):new FormData(n),qc(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var vs=0;vs<tc.length;vs++){var bs=tc[vs],o0=bs.toLowerCase(),h0=bs[0].toUpperCase()+bs.slice(1);Ge(o0,"on"+h0)}Ge(If,"onAnimationEnd"),Ge(Pf,"onAnimationIteration"),Ge(tr,"onAnimationStart"),Ge("dblclick","onDoubleClick"),Ge("focusin","onFocus"),Ge("focusout","onBlur"),Ge(jm,"onTransitionRun"),Ge(Om,"onTransitionStart"),Ge(Dm,"onTransitionCancel"),Ge(er,"onTransitionEnd"),xa("onMouseEnter",["mouseout","mouseover"]),xa("onMouseLeave",["mouseout","mouseover"]),xa("onPointerEnter",["pointerout","pointerover"]),xa("onPointerLeave",["pointerout","pointerover"]),Jl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qn="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(" "),d0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qn));function Th(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var i=a.length-1;0<=i;i--){var o=a[i],d=o.instance,z=o.currentTarget;if(o=o.listener,d!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=z;try{u(n)}catch(O){yu(O)}n.currentTarget=null,u=d}else for(i=0;i<a.length;i++){if(o=a[i],d=o.instance,z=o.currentTarget,o=o.listener,d!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=z;try{u(n)}catch(O){yu(O)}n.currentTarget=null,u=d}}}}function it(t,e){var l=e[Ri];l===void 0&&(l=e[Ri]=new Set);var a=t+"__bubble";l.has(a)||(_h(e,t,2,!1),l.add(a))}function Ss(t,e,l){var a=0;e&&(a|=4),_h(l,t,a,e)}var ai="_reactListening"+Math.random().toString(36).slice(2);function xs(t){if(!t[ai]){t[ai]=!0,pf.forEach(function(l){l!=="selectionchange"&&(d0.has(l)||Ss(l,!1,t),Ss(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ai]||(e[ai]=!0,Ss("selectionchange",!1,e))}}function _h(t,e,l,a){switch(Ph(e)){case 2:var n=G0;break;case 8:n=X0;break;default:n=Hs}l=n.bind(null,e,l,t),n=void 0,!Gi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function zs(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var o=a.stateNode.containerInfo;if(o===n)break;if(i===4)for(i=a.return;i!==null;){var d=i.tag;if((d===3||d===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;o!==null;){if(i=va(o),i===null)return;if(d=i.tag,d===5||d===6||d===26||d===27){a=u=i;continue t}o=o.parentNode}}a=a.return}jf(function(){var z=u,O=Yi(l),k=[];t:{var _=lr.get(t);if(_!==void 0){var N=mu,G=t;switch(t){case"keypress":if(hu(l)===0)break t;case"keydown":case"keyup":N=im;break;case"focusin":G="focus",N=Li;break;case"focusout":G="blur",N=Li;break;case"beforeblur":case"afterblur":N=Li;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Jd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=fm;break;case If:case Pf:case tr:N=Fd;break;case er:N=om;break;case"scroll":case"scrollend":N=Vd;break;case"wheel":N=dm;break;case"copy":case"cut":case"paste":N=Pd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Cf;break;case"toggle":case"beforetoggle":N=gm}var V=(e&4)!==0,At=!V&&(t==="scroll"||t==="scrollend"),S=V?_!==null?_+"Capture":null:_;V=[];for(var p=z,x;p!==null;){var R=p;if(x=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||x===null||S===null||(R=sn(p,S),R!=null&&V.push(Gn(p,R,x))),At)break;p=p.return}0<V.length&&(_=new N(_,G,null,l,O),k.push({event:_,listeners:V}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",_&&l!==Bi&&(G=l.relatedTarget||l.fromElement)&&(va(G)||G[ya]))break t;if((N||_)&&(_=O.window===O?O:(_=O.ownerDocument)?_.defaultView||_.parentWindow:window,N?(G=l.relatedTarget||l.toElement,N=z,G=G?va(G):null,G!==null&&(At=v(G),V=G.tag,G!==At||V!==5&&V!==27&&V!==6)&&(G=null)):(N=null,G=z),N!==G)){if(V=Mf,R="onMouseLeave",S="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(V=Cf,R="onPointerLeave",S="onPointerEnter",p="pointer"),At=N==null?_:cn(N),x=G==null?_:cn(G),_=new V(R,p+"leave",N,l,O),_.target=At,_.relatedTarget=x,R=null,va(O)===z&&(V=new V(S,p+"enter",G,l,O),V.target=x,V.relatedTarget=At,R=V),At=R,N&&G)e:{for(V=m0,S=N,p=G,x=0,R=S;R;R=V(R))x++;R=0;for(var L=p;L;L=V(L))R++;for(;0<x-R;)S=V(S),x--;for(;0<R-x;)p=V(p),R--;for(;x--;){if(S===p||p!==null&&S===p.alternate){V=S;break e}S=V(S),p=V(p)}V=null}else V=null;N!==null&&Eh(k,_,N,V,!1),G!==null&&At!==null&&Eh(k,At,G,V,!0)}}t:{if(_=z?cn(z):window,N=_.nodeName&&_.nodeName.toLowerCase(),N==="select"||N==="input"&&_.type==="file")var pt=Gf;else if(Yf(_))if(Xf)pt=Em;else{pt=Tm;var X=zm}else N=_.nodeName,!N||N.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?z&&qi(z.elementType)&&(pt=Gf):pt=_m;if(pt&&(pt=pt(t,z))){Qf(k,pt,l,O);break t}X&&X(t,_,z),t==="focusout"&&z&&_.type==="number"&&z.memoizedProps.value!=null&&Hi(_,"number",_.value)}switch(X=z?cn(z):window,t){case"focusin":(Yf(X)||X.contentEditable==="true")&&(Na=X,Fi=z,pn=null);break;case"focusout":pn=Fi=Na=null;break;case"mousedown":Ii=!0;break;case"contextmenu":case"mouseup":case"dragend":Ii=!1,Wf(k,l,O);break;case"selectionchange":if(Nm)break;case"keydown":case"keyup":Wf(k,l,O)}var at;if(Ki)t:{switch(t){case"compositionstart":var st="onCompositionStart";break t;case"compositionend":st="onCompositionEnd";break t;case"compositionupdate":st="onCompositionUpdate";break t}st=void 0}else Aa?qf(t,l)&&(st="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(st="onCompositionStart");st&&(kf&&l.locale!=="ko"&&(Aa||st!=="onCompositionStart"?st==="onCompositionEnd"&&Aa&&(at=Of()):(xl=O,Xi="value"in xl?xl.value:xl.textContent,Aa=!0)),X=ni(z,st),0<X.length&&(st=new Rf(st,t,null,l,O),k.push({event:st,listeners:X}),at?st.data=at:(at=Bf(l),at!==null&&(st.data=at)))),(at=ym?vm(t,l):bm(t,l))&&(st=ni(z,"onBeforeInput"),0<st.length&&(X=new Rf("onBeforeInput","beforeinput",null,l,O),k.push({event:X,listeners:st}),X.data=at)),r0(k,t,z,l,O)}Th(k,e)})}function Gn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ni(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=sn(t,l),n!=null&&a.unshift(Gn(t,n,u)),n=sn(t,e),n!=null&&a.push(Gn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function m0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Eh(t,e,l,a,n){for(var u=e._reactName,i=[];l!==null&&l!==a;){var o=l,d=o.alternate,z=o.stateNode;if(o=o.tag,d!==null&&d===a)break;o!==5&&o!==26&&o!==27||z===null||(d=z,n?(z=sn(l,u),z!=null&&i.unshift(Gn(l,z,d))):n||(z=sn(l,u),z!=null&&i.push(Gn(l,z,d)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var g0=/\r\n?/g,p0=/\u0000|\uFFFD/g;function Ah(t){return(typeof t=="string"?t:""+t).replace(g0,`
`).replace(p0,"")}function Nh(t,e){return e=Ah(e),Ah(t)===e}function Et(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ta(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ta(t,""+a);break;case"className":su(t,"class",a);break;case"tabIndex":su(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":su(t,l,a);break;case"style":Af(t,a,u);break;case"data":if(e!=="object"){su(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ru(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Et(t,e,"name",n.name,n,null),Et(t,e,"formEncType",n.formEncType,n,null),Et(t,e,"formMethod",n.formMethod,n,null),Et(t,e,"formTarget",n.formTarget,n,null)):(Et(t,e,"encType",n.encType,n,null),Et(t,e,"method",n.method,n,null),Et(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ru(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=el);break;case"onScroll":a!=null&&it("scroll",t);break;case"onScrollEnd":a!=null&&it("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=ru(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":it("beforetoggle",t),it("toggle",t),cu(t,"popover",a);break;case"xlinkActuate":tl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":cu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Zd.get(l)||l,cu(t,l,a))}}function Ts(t,e,l,a,n,u){switch(l){case"style":Af(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ta(t,a):(typeof a=="number"||typeof a=="bigint")&&Ta(t,""+a);break;case"onScroll":a!=null&&it("scroll",t);break;case"onScrollEnd":a!=null&&it("scrollend",t);break;case"onClick":a!=null&&(t.onclick=el);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yf.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[oe]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):cu(t,l,a)}}}function ee(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":it("error",t),it("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Et(t,e,u,i,l,null)}}n&&Et(t,e,"srcSet",l.srcSet,l,null),a&&Et(t,e,"src",l.src,l,null);return;case"input":it("invalid",t);var o=u=i=n=null,d=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":i=O;break;case"checked":d=O;break;case"defaultChecked":z=O;break;case"value":u=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,e));break;default:Et(t,e,a,O,l,null)}}zf(t,u,o,d,z,i,n,!1);return;case"select":it("invalid",t),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":i=o;break;case"multiple":a=o;default:Et(t,e,n,o,l,null)}e=u,l=i,t.multiple=!!a,e!=null?za(t,!!a,e,!1):l!=null&&za(t,!!a,l,!0);return;case"textarea":it("invalid",t),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(o=l[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Et(t,e,i,o,l,null)}_f(t,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Et(t,e,d,a,l,null)}return;case"dialog":it("beforetoggle",t),it("toggle",t),it("cancel",t),it("close",t);break;case"iframe":case"object":it("load",t);break;case"video":case"audio":for(a=0;a<Qn.length;a++)it(Qn[a],t);break;case"image":it("error",t),it("load",t);break;case"details":it("toggle",t);break;case"embed":case"source":case"link":it("error",t),it("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Et(t,e,z,a,l,null)}return;default:if(qi(e)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&Ts(t,e,O,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Et(t,e,o,a,l,null))}function y0(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,o=null,d=null,z=null,O=null;for(N in l){var k=l[N];if(l.hasOwnProperty(N)&&k!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":d=k;default:a.hasOwnProperty(N)||Et(t,e,N,null,a,k)}}for(var _ in a){var N=a[_];if(k=l[_],a.hasOwnProperty(_)&&(N!=null||k!=null))switch(_){case"type":u=N;break;case"name":n=N;break;case"checked":z=N;break;case"defaultChecked":O=N;break;case"value":i=N;break;case"defaultValue":o=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,e));break;default:N!==k&&Et(t,e,_,N,a,k)}}Ui(t,i,o,d,z,O,u,n);return;case"select":N=i=o=_=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":N=d;default:a.hasOwnProperty(u)||Et(t,e,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":_=u;break;case"defaultValue":o=u;break;case"multiple":i=u;default:u!==d&&Et(t,e,n,u,a,d)}e=o,l=i,a=N,_!=null?za(t,!!l,_,!1):!!a!=!!l&&(e!=null?za(t,!!l,e,!0):za(t,!!l,l?[]:"",!1));return;case"textarea":N=_=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Et(t,e,o,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":_=n;break;case"defaultValue":N=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==u&&Et(t,e,i,n,a,u)}Tf(t,_,N);return;case"option":for(var G in l)if(_=l[G],l.hasOwnProperty(G)&&_!=null&&!a.hasOwnProperty(G))switch(G){case"selected":t.selected=!1;break;default:Et(t,e,G,null,a,_)}for(d in a)if(_=a[d],N=l[d],a.hasOwnProperty(d)&&_!==N&&(_!=null||N!=null))switch(d){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Et(t,e,d,_,a,N)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var V in l)_=l[V],l.hasOwnProperty(V)&&_!=null&&!a.hasOwnProperty(V)&&Et(t,e,V,null,a,_);for(z in a)if(_=a[z],N=l[z],a.hasOwnProperty(z)&&_!==N&&(_!=null||N!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:Et(t,e,z,_,a,N)}return;default:if(qi(e)){for(var At in l)_=l[At],l.hasOwnProperty(At)&&_!==void 0&&!a.hasOwnProperty(At)&&Ts(t,e,At,void 0,a,_);for(O in a)_=a[O],N=l[O],!a.hasOwnProperty(O)||_===N||_===void 0&&N===void 0||Ts(t,e,O,_,a,N);return}}for(var S in l)_=l[S],l.hasOwnProperty(S)&&_!=null&&!a.hasOwnProperty(S)&&Et(t,e,S,null,a,_);for(k in a)_=a[k],N=l[k],!a.hasOwnProperty(k)||_===N||_==null&&N==null||Et(t,e,k,_,a,N)}function jh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function v0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,o=n.duration;if(u&&o&&jh(i)){for(i=0,o=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],z=d.startTime;if(z>o)break;var O=d.transferSize,k=d.initiatorType;O&&jh(k)&&(d=d.responseEnd,i+=O*(d<o?1:(o-z)/(d-z)))}if(--a,e+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var _s=null,Es=null;function ui(t){return t.nodeType===9?t:t.ownerDocument}function Oh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function As(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ns=null;function b0(){var t=window.event;return t&&t.type==="popstate"?t===Ns?!1:(Ns=t,!0):(Ns=null,!1)}var Mh=typeof setTimeout=="function"?setTimeout:void 0,S0=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=typeof Promise=="function"?Promise:void 0,x0=typeof queueMicrotask=="function"?queueMicrotask:typeof Rh<"u"?function(t){return Rh.resolve(null).then(t).catch(z0)}:Mh;function z0(t){setTimeout(function(){throw t})}function Bl(t){return t==="head"}function Ch(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),tn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Xn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Xn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,o=u.nodeName;u[un]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Xn(t.ownerDocument.body);l=n}while(l);tn(e)}function kh(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function js(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":js(l),Ci(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function T0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[un])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Be(t.nextSibling),t===null)break}return null}function _0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Be(t.nextSibling),t===null))return null;return t}function Uh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Be(t.nextSibling),t===null))return null;return t}function Os(t){return t.data==="$?"||t.data==="$~"}function Ds(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function E0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Be(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Ms=null;function Hh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Be(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function qh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Bh(t,e,l){switch(e=ui(l),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Xn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ci(t)}var Ye=new Map,Yh=new Set;function ii(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yl=q.d;q.d={f:A0,r:N0,D:j0,C:O0,L:D0,m:M0,X:C0,S:R0,M:k0};function A0(){var t=yl.f(),e=Fu();return t||e}function N0(t){var e=ba(t);e!==null&&e.tag===5&&e.type==="form"?eo(e):yl.r(t)}var Fa=typeof document>"u"?null:document;function Qh(t,e,l){var a=Fa;if(a&&typeof e=="string"&&e){var n=Me(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Yh.has(n)||(Yh.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ee(e,"link",t),Jt(e),a.head.appendChild(e)))}}function j0(t){yl.D(t),Qh("dns-prefetch",t,null)}function O0(t,e){yl.C(t,e),Qh("preconnect",t,e)}function D0(t,e,l){yl.L(t,e,l);var a=Fa;if(a&&t&&e){var n='link[rel="preload"][as="'+Me(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Me(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Me(l.imageSizes)+'"]')):n+='[href="'+Me(t)+'"]';var u=n;switch(e){case"style":u=Ia(t);break;case"script":u=Pa(t)}Ye.has(u)||(t=C({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ye.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(wn(u))||e==="script"&&a.querySelector(Zn(u))||(e=a.createElement("link"),ee(e,"link",t),Jt(e),a.head.appendChild(e)))}}function M0(t,e){yl.m(t,e);var l=Fa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Me(a)+'"][href="'+Me(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Pa(t)}if(!Ye.has(u)&&(t=C({rel:"modulepreload",href:t},e),Ye.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Zn(u)))return}a=l.createElement("link"),ee(a,"link",t),Jt(a),l.head.appendChild(a)}}}function R0(t,e,l){yl.S(t,e,l);var a=Fa;if(a&&t){var n=Sa(a).hoistableStyles,u=Ia(t);e=e||"default";var i=n.get(u);if(!i){var o={loading:0,preload:null};if(i=a.querySelector(wn(u)))o.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ye.get(u))&&Rs(t,l);var d=i=a.createElement("link");Jt(d),ee(d,"link",t),d._p=new Promise(function(z,O){d.onload=z,d.onerror=O}),d.addEventListener("load",function(){o.loading|=1}),d.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ci(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:o},n.set(u,i)}}}function C0(t,e){yl.X(t,e);var l=Fa;if(l&&t){var a=Sa(l).hoistableScripts,n=Pa(t),u=a.get(n);u||(u=l.querySelector(Zn(n)),u||(t=C({src:t,async:!0},e),(e=Ye.get(n))&&Cs(t,e),u=l.createElement("script"),Jt(u),ee(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function k0(t,e){yl.M(t,e);var l=Fa;if(l&&t){var a=Sa(l).hoistableScripts,n=Pa(t),u=a.get(n);u||(u=l.querySelector(Zn(n)),u||(t=C({src:t,async:!0,type:"module"},e),(e=Ye.get(n))&&Cs(t,e),u=l.createElement("script"),Jt(u),ee(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Gh(t,e,l,a){var n=(n=I.current)?ii(n):null;if(!n)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ia(l.href),l=Sa(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Ia(l.href);var u=Sa(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(wn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),Ye.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ye.set(t,l),u||U0(n,t,l,i.state))),e&&a===null)throw Error(s(528,""));return i}if(e&&a!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Pa(l),l=Sa(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Ia(t){return'href="'+Me(t)+'"'}function wn(t){return'link[rel="stylesheet"]['+t+"]"}function Xh(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function U0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",l),Jt(e),t.head.appendChild(e))}function Pa(t){return'[src="'+Me(t)+'"]'}function Zn(t){return"script[async]"+t}function wh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Me(l.href)+'"]');if(a)return e.instance=a,Jt(a),a;var n=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Jt(a),ee(a,"style",n),ci(a,l.precedence,t),e.instance=a;case"stylesheet":n=Ia(l.href);var u=t.querySelector(wn(n));if(u)return e.state.loading|=4,e.instance=u,Jt(u),u;a=Xh(l),(n=Ye.get(n))&&Rs(a,n),u=(t.ownerDocument||t).createElement("link"),Jt(u);var i=u;return i._p=new Promise(function(o,d){i.onload=o,i.onerror=d}),ee(u,"link",a),e.state.loading|=4,ci(u,l.precedence,t),e.instance=u;case"script":return u=Pa(l.src),(n=t.querySelector(Zn(u)))?(e.instance=n,Jt(n),n):(a=l,(n=Ye.get(u))&&(a=C({},l),Cs(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Jt(n),ee(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ci(a,l.precedence,t));return e.instance}function ci(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var o=a[i];if(o.dataset.precedence===e)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Rs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Cs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var si=null;function Zh(t,e,l){if(si===null){var a=new Map,n=si=new Map;n.set(l,a)}else n=si,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[un]||u[Ft]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var o=a.get(i);o?o.push(u):a.set(i,[u])}}return a}function Lh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function H0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Vh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function q0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ia(a.href),u=e.querySelector(wn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=fi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Jt(u);return}u=e.ownerDocument||e,a=Xh(a),(n=Ye.get(n))&&Rs(a,n),u=u.createElement("link"),Jt(u);var i=u;i._p=new Promise(function(o,d){i.onload=o,i.onerror=d}),ee(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=fi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var ks=0;function B0(t,e){return t.stylesheets&&t.count===0&&oi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&oi(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&ks===0&&(ks=62500*v0());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&oi(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>ks?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function fi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)oi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ri=null;function oi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ri=new Map,e.forEach(Y0,t),ri=null,fi.call(t))}function Y0(t,e){if(!(e.state.loading&4)){var l=ri.get(t);if(l)var a=l.get(null);else{l=new Map,ri.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=e.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=fi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Ln={$$typeof:Ct,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Q0(t,e,l,a,n,u,i,o,d){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oi(0),this.hiddenUpdates=Oi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Kh(t,e,l,a,n,u,i,o,d,z,O,k){return t=new Q0(t,e,l,i,d,z,O,k,o),e=1,u===!0&&(e|=24),u=Se(3,null,null,e),t.current=u,u.stateNode=t,e=dc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},yc(u),t}function Jh(t){return t?(t=Da,t):Da}function $h(t,e,l,a,n,u){n=Jh(n),a.context===null?a.context=n:a.pendingContext=n,a=Nl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=jl(t,a,e),l!==null&&(ye(l,t,e),Tn(l,t,e))}function Wh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Us(t,e){Wh(t,e),(t=t.alternate)&&Wh(t,e)}function Fh(t){if(t.tag===13||t.tag===31){var e=Il(t,67108864);e!==null&&ye(e,t,67108864),Us(t,67108864)}}function Ih(t){if(t.tag===13||t.tag===31){var e=Ee();e=Di(e);var l=Il(t,e);l!==null&&ye(l,t,e),Us(t,e)}}var hi=!0;function G0(t,e,l,a){var n=D.T;D.T=null;var u=q.p;try{q.p=2,Hs(t,e,l,a)}finally{q.p=u,D.T=n}}function X0(t,e,l,a){var n=D.T;D.T=null;var u=q.p;try{q.p=8,Hs(t,e,l,a)}finally{q.p=u,D.T=n}}function Hs(t,e,l,a){if(hi){var n=qs(a);if(n===null)zs(t,e,a,di,l),td(t,a);else if(Z0(n,t,e,l,a))a.stopPropagation();else if(td(t,a),e&4&&-1<w0.indexOf(t)){for(;n!==null;){var u=ba(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Kl(u.pendingLanes);if(i!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var d=1<<31-se(i);o.entanglements[1]|=d,i&=~d}We(u),(bt&6)===0&&($u=ce()+500,Yn(0))}}break;case 31:case 13:o=Il(u,2),o!==null&&ye(o,u,2),Fu(),Us(u,2)}if(u=qs(a),u===null&&zs(t,e,a,di,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else zs(t,e,a,null,l)}}function qs(t){return t=Yi(t),Bs(t)}var di=null;function Bs(t){if(di=null,t=va(t),t!==null){var e=v(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=A(e),t!==null)return t;t=null}else if(l===31){if(t=j(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return di=t,null}function Ph(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ji()){case eu:return 2;case lu:return 8;case Vl:case T:return 32;case lt:return 268435456;default:return 32}default:return 32}}var Ys=!1,Yl=null,Ql=null,Gl=null,Vn=new Map,Kn=new Map,Xl=[],w0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function td(t,e){switch(t){case"focusin":case"focusout":Yl=null;break;case"dragenter":case"dragleave":Ql=null;break;case"mouseover":case"mouseout":Gl=null;break;case"pointerover":case"pointerout":Vn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kn.delete(e.pointerId)}}function Jn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=ba(e),e!==null&&Fh(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Z0(t,e,l,a,n){switch(e){case"focusin":return Yl=Jn(Yl,t,e,l,a,n),!0;case"dragenter":return Ql=Jn(Ql,t,e,l,a,n),!0;case"mouseover":return Gl=Jn(Gl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Vn.set(u,Jn(Vn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Kn.set(u,Jn(Kn.get(u)||null,t,e,l,a,n)),!0}return!1}function ed(t){var e=va(t.target);if(e!==null){var l=v(e);if(l!==null){if(e=l.tag,e===13){if(e=A(l),e!==null){t.blockedOn=e,mf(t.priority,function(){Ih(l)});return}}else if(e===31){if(e=j(l),e!==null){t.blockedOn=e,mf(t.priority,function(){Ih(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function mi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=qs(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Bi=a,l.target.dispatchEvent(a),Bi=null}else return e=ba(l),e!==null&&Fh(e),t.blockedOn=l,!1;e.shift()}return!0}function ld(t,e,l){mi(t)&&l.delete(e)}function L0(){Ys=!1,Yl!==null&&mi(Yl)&&(Yl=null),Ql!==null&&mi(Ql)&&(Ql=null),Gl!==null&&mi(Gl)&&(Gl=null),Vn.forEach(ld),Kn.forEach(ld)}function gi(t,e){t.blockedOn===e&&(t.blockedOn=null,Ys||(Ys=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,L0)))}var pi=null;function ad(t){pi!==t&&(pi=t,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){pi===t&&(pi=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Bs(a||l)===null)continue;break}var u=ba(l);u!==null&&(t.splice(e,3),e-=3,qc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function tn(t){function e(d){return gi(d,t)}Yl!==null&&gi(Yl,t),Ql!==null&&gi(Ql,t),Gl!==null&&gi(Gl,t),Vn.forEach(e),Kn.forEach(e);for(var l=0;l<Xl.length;l++){var a=Xl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Xl.length&&(l=Xl[0],l.blockedOn===null);)ed(l),l.blockedOn===null&&Xl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[oe]||null;if(typeof u=="function")i||ad(l);else if(i){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[oe]||null)o=i.formAction;else if(Bs(n)!==null)continue}else o=i.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),ad(l)}}}function nd(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Qs(t){this._internalRoot=t}yi.prototype.render=Qs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,a=Ee();$h(l,a,t,e,null,null)},yi.prototype.unmount=Qs.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;$h(t.current,2,null,t,null,null),Fu(),e[ya]=null}};function yi(t){this._internalRoot=t}yi.prototype.unstable_scheduleHydration=function(t){if(t){var e=df();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Xl.length&&e!==0&&e<Xl[l].priority;l++);Xl.splice(l,0,t),l===0&&ed(t)}};var ud=c.version;if(ud!=="19.2.6")throw Error(s(527,ud,"19.2.6"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=b(e),t=t!==null?E(t):null,t=t===null?null:t.stateNode,t};var V0={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vi.isDisabled&&vi.supportsFiber)try{vt=vi.inject(V0),mt=vi}catch{}}return Wn.createRoot=function(t,e){if(!h(t))throw Error(s(299));var l=!1,a="",n=oo,u=ho,i=mo;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Kh(t,1,!1,null,null,l,a,null,n,u,i,nd),t[ya]=e.current,xs(t),new Qs(e)},Wn.hydrateRoot=function(t,e,l){if(!h(t))throw Error(s(299));var a=!1,n="",u=oo,i=ho,o=mo,d=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(d=l.formState)),e=Kh(t,1,!0,e,l??null,a,n,d,u,i,o,nd),e.context=Jh(null),l=e.current,a=Ee(),a=Di(a),n=Nl(a),n.callback=null,jl(l,n,a),l=a,e.current.lanes=l,nn(e,l),We(e),t[ya]=e.current,xs(t),new yi(e)},Wn.version="19.2.6",Wn}var gd;function ng(){if(gd)return ws.exports;gd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),ws.exports=ag(),ws.exports}var ug=ng();function ig({onSend:r,disabled:c,userId:f}){const[s,h]=w.useState(""),[v,A]=w.useState([]),j=w.useRef(null),g=E=>{E.preventDefault();const C=s.trim();if(!C&&v.length===0)return;const H=v.length?v.map(J=>({filename:J.filename,size:J.size,mime_type:J.mime_type,download_url:"/files/"+J.workspace_path})):void 0;r(C,H),h(""),A([])},b=async E=>{var J;const C=(J=E.target.files)==null?void 0:J[0];if(!C||!f)return;const H=new FormData;H.append("file",C);try{const F=await(await fetch("/upload?user_id="+f,{method:"POST",body:H})).json();F.attachment_id&&A(nt=>[...nt,{filename:C.name,workspace_path:F.workspace_path,mime_type:C.type,size:C.size}])}catch(U){console.error("upload",U)}E.target.value=""};return m.jsxs("div",{className:"input-area",children:[v.length>0&&m.jsx("div",{className:"attach-bar",children:v.map((E,C)=>m.jsxs("span",{className:"attach-tag",children:["📎 ",E.filename,m.jsx("span",{className:"remove",onClick:()=>A(H=>H.filter((J,U)=>U!==C)),children:"×"})]},C))}),m.jsxs("form",{className:"chat-input",onSubmit:g,children:[m.jsx("button",{type:"button",className:"file-btn",onClick:()=>{var E;return(E=j.current)==null?void 0:E.click()},title:"Прикрепить файл",children:"📎"}),m.jsx("input",{ref:j,type:"file",hidden:!0,onChange:b}),m.jsx("input",{type:"text",value:s,onChange:E=>h(E.target.value),placeholder:"Напишите сообщение...",disabled:c,autoFocus:!0}),m.jsx("button",{type:"submit",className:"btn-send",disabled:c||!s.trim()&&v.length===0,children:"Отправить"})]})]})}function Fs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var da=Fs();function Td(r){da=r}var oa={exec:()=>null};function en(r){let c=[];return f=>{let s=Math.max(0,Math.min(3,f-1)),h=c[s];return h||(h=r(s),c[s]=h),h}}function ht(r,c=""){let f=typeof r=="string"?r:r.source,s={replace:(h,v)=>{let A=typeof v=="string"?v:v.source;return A=A.replace(ue.caret,"$1"),f=f.replace(h,A),s},getRegex:()=>new RegExp(f,c)};return s}var cg=((r="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+r)}catch{return!1}})(),ue={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:en(r=>new RegExp(`^ {0,${r}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:en(r=>new RegExp(`^ {0,${r}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:en(r=>new RegExp(`^ {0,${r}}(?:\`\`\`|~~~)`)),headingBeginRegex:en(r=>new RegExp(`^ {0,${r}}#`)),htmlBeginRegex:en(r=>new RegExp(`^ {0,${r}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:en(r=>new RegExp(`^ {0,${r}}>`))},sg=/^(?:[ \t]*(?:\n|$))+/,fg=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,rg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,og=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Is=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,_d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ed=ht(_d).replace(/bull/g,Is).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hg=ht(_d).replace(/bull/g,Is).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ps=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,dg=/^[^\n]+/,tf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,mg=ht(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",tf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gg=ht(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Is).getRegex(),_i="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ef=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,pg=ht("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",ef).replace("tag",_i).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ad=ht(Ps).replace("hr",Pn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),yg=ht(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ad).getRegex(),lf={blockquote:yg,code:fg,def:mg,fences:rg,heading:og,hr:Pn,html:pg,lheading:Ed,list:gg,newline:sg,paragraph:Ad,table:oa,text:dg},pd=ht("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),vg={...lf,lheading:hg,table:pd,paragraph:ht(Ps).replace("hr",Pn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pd).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex()},bg={...lf,html:ht(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ef).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:oa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ht(Ps).replace("hr",Pn).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ed).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Sg=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Nd=/^( {2,}|\\)\n(?!\s*$)/,zg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ln=/[\p{P}\p{S}]/u,Ei=/[\s\p{P}\p{S}]/u,af=/[^\s\p{P}\p{S}]/u,Tg=ht(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ei).getRegex(),jd=/(?!~)[\p{P}\p{S}]/u,_g=/(?!~)[\s\p{P}\p{S}]/u,Eg=/(?:[^\s\p{P}\p{S}]|~)/u,Ag=ht(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",cg?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Od=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ng=ht(Od,"u").replace(/punct/g,ln).getRegex(),jg=ht(Od,"u").replace(/punct/g,jd).getRegex(),Dd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Og=ht(Dd,"gu").replace(/notPunctSpace/g,af).replace(/punctSpace/g,Ei).replace(/punct/g,ln).getRegex(),Dg=ht(Dd,"gu").replace(/notPunctSpace/g,Eg).replace(/punctSpace/g,_g).replace(/punct/g,jd).getRegex(),Mg=ht("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,af).replace(/punctSpace/g,Ei).replace(/punct/g,ln).getRegex(),Rg=ht(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,ln).getRegex(),Cg="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",kg=ht(Cg,"gu").replace(/notPunctSpace/g,af).replace(/punctSpace/g,Ei).replace(/punct/g,ln).getRegex(),Ug=ht(/\\(punct)/,"gu").replace(/punct/g,ln).getRegex(),Hg=ht(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),qg=ht(ef).replace("(?:-->|$)","-->").getRegex(),Bg=ht("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",qg).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Yg=ht(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",xi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Md=ht(/^!?\[(label)\]\[(ref)\]/).replace("label",xi).replace("ref",tf).getRegex(),Rd=ht(/^!?\[(ref)\](?:\[\])?/).replace("ref",tf).getRegex(),Qg=ht("reflink|nolink(?!\\()","g").replace("reflink",Md).replace("nolink",Rd).getRegex(),yd=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,nf={_backpedal:oa,anyPunctuation:Ug,autolink:Hg,blockSkip:Ag,br:Nd,code:xg,del:oa,delLDelim:oa,delRDelim:oa,emStrongLDelim:Ng,emStrongRDelimAst:Og,emStrongRDelimUnd:Mg,escape:Sg,link:Yg,nolink:Rd,punctuation:Tg,reflink:Md,reflinkSearch:Qg,tag:Bg,text:zg,url:oa},Gg={...nf,link:ht(/^!?\[(label)\]\((.*?)\)/).replace("label",xi).getRegex(),reflink:ht(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xi).getRegex()},Ks={...nf,emStrongRDelimAst:Dg,emStrongLDelim:jg,delLDelim:Rg,delRDelim:kg,url:ht(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",yd).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ht(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",yd).getRegex()},Xg={...Ks,br:ht(Nd).replace("{2,}","*").getRegex(),text:ht(Ks.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},bi={normal:lf,gfm:vg,pedantic:bg},Fn={normal:nf,gfm:Ks,breaks:Xg,pedantic:Gg},wg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vd=r=>wg[r];function Fe(r,c){if(c){if(ue.escapeTest.test(r))return r.replace(ue.escapeReplace,vd)}else if(ue.escapeTestNoEncode.test(r))return r.replace(ue.escapeReplaceNoEncode,vd);return r}function bd(r){try{r=encodeURI(r).replace(ue.percentDecode,"%")}catch{return null}return r}function Sd(r,c){var v;let f=r.replace(ue.findPipe,(A,j,g)=>{let b=!1,E=j;for(;--E>=0&&g[E]==="\\";)b=!b;return b?"|":" |"}),s=f.split(ue.splitPipe),h=0;if(s[0].trim()||s.shift(),s.length>0&&!((v=s.at(-1))!=null&&v.trim())&&s.pop(),c)if(s.length>c)s.splice(c);else for(;s.length<c;)s.push("");for(;h<s.length;h++)s[h]=s[h].trim().replace(ue.slashPipe,"|");return s}function Zl(r,c,f){let s=r.length;if(s===0)return"";let h=0;for(;h<s&&r.charAt(s-h-1)===c;)h++;return r.slice(0,s-h)}function xd(r){let c=r.split(`
`),f=c.length-1;for(;f>=0&&ue.blankLine.test(c[f]);)f--;return c.length-f<=2?r:c.slice(0,f+1).join(`
`)}function Zg(r,c){if(r.indexOf(c[1])===-1)return-1;let f=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===c[0])f++;else if(r[s]===c[1]&&(f--,f<0))return s;return f>0?-2:-1}function Lg(r,c=0){let f=c,s="";for(let h of r)if(h==="	"){let v=4-f%4;s+=" ".repeat(v),f+=v}else s+=h,f++;return s}function zd(r,c,f,s,h){let v=c.href,A=c.title||null,j=r[1].replace(h.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:r[0].charAt(0)==="!"?"image":"link",raw:f,href:v,title:A,text:j,tokens:s.inlineTokens(j)};return s.state.inLink=!1,g}function Vg(r,c,f){let s=r.match(f.other.indentCodeCompensation);if(s===null)return c;let h=s[1];return c.split(`
`).map(v=>{let A=v.match(f.other.beginningSpace);if(A===null)return v;let[j]=A;return j.length>=h.length?v.slice(h.length):v}).join(`
`)}var zi=class{constructor(r){Nt(this,"options");Nt(this,"rules");Nt(this,"lexer");this.options=r||da}space(r){let c=this.rules.block.newline.exec(r);if(c&&c[0].length>0)return{type:"space",raw:c[0]}}code(r){let c=this.rules.block.code.exec(r);if(c){let f=this.options.pedantic?c[0]:xd(c[0]),s=f.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:f,codeBlockStyle:"indented",text:s}}}fences(r){let c=this.rules.block.fences.exec(r);if(c){let f=c[0],s=Vg(f,c[3]||"",this.rules);return{type:"code",raw:f,lang:c[2]?c[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):c[2],text:s}}}heading(r){let c=this.rules.block.heading.exec(r);if(c){let f=c[2].trim();if(this.rules.other.endingHash.test(f)){let s=Zl(f,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(f=s.trim())}return{type:"heading",raw:Zl(c[0],`
`),depth:c[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(r){let c=this.rules.block.hr.exec(r);if(c)return{type:"hr",raw:Zl(c[0],`
`)}}blockquote(r){let c=this.rules.block.blockquote.exec(r);if(c){let f=Zl(c[0],`
`).split(`
`),s="",h="",v=[];for(;f.length>0;){let A=!1,j=[],g;for(g=0;g<f.length;g++)if(this.rules.other.blockquoteStart.test(f[g]))j.push(f[g]),A=!0;else if(!A)j.push(f[g]);else break;f=f.slice(g);let b=j.join(`
`),E=b.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
${b}`:b,h=h?`${h}
${E}`:E;let C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(E,v,!0),this.lexer.state.top=C,f.length===0)break;let H=v.at(-1);if((H==null?void 0:H.type)==="code")break;if((H==null?void 0:H.type)==="blockquote"){let J=H,U=J.raw+`
`+f.join(`
`),F=this.blockquote(U);v[v.length-1]=F,s=s.substring(0,s.length-J.raw.length)+F.raw,h=h.substring(0,h.length-J.text.length)+F.text;break}else if((H==null?void 0:H.type)==="list"){let J=H,U=J.raw+`
`+f.join(`
`),F=this.list(U);v[v.length-1]=F,s=s.substring(0,s.length-H.raw.length)+F.raw,h=h.substring(0,h.length-J.raw.length)+F.raw,f=U.substring(v.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:s,tokens:v,text:h}}}list(r){let c=this.rules.block.list.exec(r);if(c){let f=c[1].trim(),s=f.length>1,h={type:"list",raw:"",ordered:s,start:s?+f.slice(0,-1):"",loose:!1,items:[]};f=s?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=s?f:"[*+-]");let v=this.rules.other.listItemRegex(f),A=!1;for(;r;){let g=!1,b="",E="";if(!(c=v.exec(r))||this.rules.block.hr.test(r))break;b=c[0],r=r.substring(b.length);let C=Lg(c[2].split(`
`,1)[0],c[1].length),H=r.split(`
`,1)[0],J=!C.trim(),U=0;if(this.options.pedantic?(U=2,E=C.trimStart()):J?U=c[1].length+1:(U=C.search(this.rules.other.nonSpaceChar),U=U>4?1:U,E=C.slice(U),U+=c[1].length),J&&this.rules.other.blankLine.test(H)&&(b+=H+`
`,r=r.substring(H.length+1),g=!0),!g){let F=this.rules.other.nextBulletRegex(U),nt=this.rules.other.hrRegex(U),Yt=this.rules.other.fencesBeginRegex(U),Qt=this.rules.other.headingBeginRegex(U),Ct=this.rules.other.htmlBeginRegex(U),ft=this.rules.other.blockquoteBeginRegex(U);for(;r;){let Vt=r.split(`
`,1)[0],jt;if(H=Vt,this.options.pedantic?(H=H.replace(this.rules.other.listReplaceNesting,"  "),jt=H):jt=H.replace(this.rules.other.tabCharGlobal,"    "),Yt.test(H)||Qt.test(H)||Ct.test(H)||ft.test(H)||F.test(H)||nt.test(H))break;if(jt.search(this.rules.other.nonSpaceChar)>=U||!H.trim())E+=`
`+jt.slice(U);else{if(J||C.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||Yt.test(C)||Qt.test(C)||nt.test(C))break;E+=`
`+H}J=!H.trim(),b+=Vt+`
`,r=r.substring(Vt.length+1),C=jt.slice(U)}}h.loose||(A?h.loose=!0:this.rules.other.doubleBlankLine.test(b)&&(A=!0)),h.items.push({type:"list_item",raw:b,task:!!this.options.gfm&&this.rules.other.listIsTask.test(E),loose:!1,text:E,tokens:[]}),h.raw+=b}let j=h.items.at(-1);if(j)j.raw=j.raw.trimEnd(),j.text=j.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let g of h.items){this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]);let b=g.tokens[0];if(g.task&&((b==null?void 0:b.type)==="text"||(b==null?void 0:b.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),b.raw=b.raw.replace(this.rules.other.listReplaceTask,""),b.text=b.text.replace(this.rules.other.listReplaceTask,"");for(let C=this.lexer.inlineQueue.length-1;C>=0;C--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[C].src)){this.lexer.inlineQueue[C].src=this.lexer.inlineQueue[C].src.replace(this.rules.other.listReplaceTask,"");break}let E=this.rules.other.listTaskCheckbox.exec(g.raw);if(E){let C={type:"checkbox",raw:E[0]+" ",checked:E[0]!=="[ ]"};g.checked=C.checked,h.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=C.raw+g.tokens[0].raw,g.tokens[0].text=C.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(C)):g.tokens.unshift({type:"paragraph",raw:C.raw,text:C.raw,tokens:[C]}):g.tokens.unshift(C)}}else g.task&&(g.task=!1);if(!h.loose){let E=g.tokens.filter(H=>H.type==="space"),C=E.length>0&&E.some(H=>this.rules.other.anyLine.test(H.raw));h.loose=C}}if(h.loose)for(let g of h.items){g.loose=!0;for(let b of g.tokens)b.type==="text"&&(b.type="paragraph")}return h}}html(r){let c=this.rules.block.html.exec(r);if(c){let f=xd(c[0]);return{type:"html",block:!0,raw:f,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:f}}}def(r){let c=this.rules.block.def.exec(r);if(c){let f=c[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=c[2]?c[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):c[3];return{type:"def",tag:f,raw:Zl(c[0],`
`),href:s,title:h}}}table(r){var A;let c=this.rules.block.table.exec(r);if(!c||!this.rules.other.tableDelimiter.test(c[2]))return;let f=Sd(c[1]),s=c[2].replace(this.rules.other.tableAlignChars,"").split("|"),h=(A=c[3])!=null&&A.trim()?c[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],v={type:"table",raw:Zl(c[0],`
`),header:[],align:[],rows:[]};if(f.length===s.length){for(let j of s)this.rules.other.tableAlignRight.test(j)?v.align.push("right"):this.rules.other.tableAlignCenter.test(j)?v.align.push("center"):this.rules.other.tableAlignLeft.test(j)?v.align.push("left"):v.align.push(null);for(let j=0;j<f.length;j++)v.header.push({text:f[j],tokens:this.lexer.inline(f[j]),header:!0,align:v.align[j]});for(let j of h)v.rows.push(Sd(j,v.header.length).map((g,b)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:v.align[b]})));return v}}lheading(r){let c=this.rules.block.lheading.exec(r);if(c){let f=c[1].trim();return{type:"heading",raw:Zl(c[0],`
`),depth:c[2].charAt(0)==="="?1:2,text:f,tokens:this.lexer.inline(f)}}}paragraph(r){let c=this.rules.block.paragraph.exec(r);if(c){let f=c[1].charAt(c[1].length-1)===`
`?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:f,tokens:this.lexer.inline(f)}}}text(r){let c=this.rules.block.text.exec(r);if(c)return{type:"text",raw:c[0],text:c[0],tokens:this.lexer.inline(c[0])}}escape(r){let c=this.rules.inline.escape.exec(r);if(c)return{type:"escape",raw:c[0],text:c[1]}}tag(r){let c=this.rules.inline.tag.exec(r);if(c)return!this.lexer.state.inLink&&this.rules.other.startATag.test(c[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(r){let c=this.rules.inline.link.exec(r);if(c){let f=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(f)){if(!this.rules.other.endAngleBracket.test(f))return;let v=Zl(f.slice(0,-1),"\\");if((f.length-v.length)%2===0)return}else{let v=Zg(c[2],"()");if(v===-2)return;if(v>-1){let A=(c[0].indexOf("!")===0?5:4)+c[1].length+v;c[2]=c[2].substring(0,v),c[0]=c[0].substring(0,A).trim(),c[3]=""}}let s=c[2],h="";if(this.options.pedantic){let v=this.rules.other.pedanticHrefTitle.exec(s);v&&(s=v[1],h=v[3])}else h=c[3]?c[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(f)?s=s.slice(1):s=s.slice(1,-1)),zd(c,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},c[0],this.lexer,this.rules)}}reflink(r,c){let f;if((f=this.rules.inline.reflink.exec(r))||(f=this.rules.inline.nolink.exec(r))){let s=(f[2]||f[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=c[s.toLowerCase()];if(!h){let v=f[0].charAt(0);return{type:"text",raw:v,text:v}}return zd(f,h,f[0],this.lexer,this.rules)}}emStrong(r,c,f=""){let s=this.rules.inline.emStrongLDelim.exec(r);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&f.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!f||this.rules.inline.punctuation.exec(f))){let h=[...s[0]].length-1,v,A,j=h,g=0,b=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(b.lastIndex=0,c=c.slice(-1*r.length+h);(s=b.exec(c))!==null;){if(v=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!v)continue;if(A=[...v].length,s[3]||s[4]){j+=A;continue}else if((s[5]||s[6])&&h%3&&!((h+A)%3)){g+=A;continue}if(j-=A,j>0)continue;A=Math.min(A,A+j+g);let E=[...s[0]][0].length,C=r.slice(0,h+s.index+E+A);if(Math.min(h,A)%2){let J=C.slice(1,-1);return{type:"em",raw:C,text:J,tokens:this.lexer.inlineTokens(J)}}let H=C.slice(2,-2);return{type:"strong",raw:C,text:H,tokens:this.lexer.inlineTokens(H)}}}}codespan(r){let c=this.rules.inline.code.exec(r);if(c){let f=c[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(f),h=this.rules.other.startingSpaceChar.test(f)&&this.rules.other.endingSpaceChar.test(f);return s&&h&&(f=f.substring(1,f.length-1)),{type:"codespan",raw:c[0],text:f}}}br(r){let c=this.rules.inline.br.exec(r);if(c)return{type:"br",raw:c[0]}}del(r,c,f=""){let s=this.rules.inline.delLDelim.exec(r);if(s&&(!s[1]||!f||this.rules.inline.punctuation.exec(f))){let h=[...s[0]].length-1,v,A,j=h,g=this.rules.inline.delRDelim;for(g.lastIndex=0,c=c.slice(-1*r.length+h);(s=g.exec(c))!==null;){if(v=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!v||(A=[...v].length,A!==h))continue;if(s[3]||s[4]){j+=A;continue}if(j-=A,j>0)continue;A=Math.min(A,A+j);let b=[...s[0]][0].length,E=r.slice(0,h+s.index+b+A),C=E.slice(h,-h);return{type:"del",raw:E,text:C,tokens:this.lexer.inlineTokens(C)}}}}autolink(r){let c=this.rules.inline.autolink.exec(r);if(c){let f,s;return c[2]==="@"?(f=c[1],s="mailto:"+f):(f=c[1],s=f),{type:"link",raw:c[0],text:f,href:s,tokens:[{type:"text",raw:f,text:f}]}}}url(r){var f;let c;if(c=this.rules.inline.url.exec(r)){let s,h;if(c[2]==="@")s=c[0],h="mailto:"+s;else{let v;do v=c[0],c[0]=((f=this.rules.inline._backpedal.exec(c[0]))==null?void 0:f[0])??"";while(v!==c[0]);s=c[0],c[1]==="www."?h="http://"+c[0]:h=c[0]}return{type:"link",raw:c[0],text:s,href:h,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(r){let c=this.rules.inline.text.exec(r);if(c){let f=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:f}}}},Ze=class Js{constructor(c){Nt(this,"tokens");Nt(this,"options");Nt(this,"state");Nt(this,"inlineQueue");Nt(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=c||da,this.options.tokenizer=this.options.tokenizer||new zi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let f={other:ue,block:bi.normal,inline:Fn.normal};this.options.pedantic?(f.block=bi.pedantic,f.inline=Fn.pedantic):this.options.gfm&&(f.block=bi.gfm,this.options.breaks?f.inline=Fn.breaks:f.inline=Fn.gfm),this.tokenizer.rules=f}static get rules(){return{block:bi,inline:Fn}}static lex(c,f){return new Js(f).lex(c)}static lexInline(c,f){return new Js(f).inlineTokens(c)}lex(c){c=c.replace(ue.carriageReturn,`
`),this.blockTokens(c,this.tokens);for(let f=0;f<this.inlineQueue.length;f++){let s=this.inlineQueue[f];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,f=[],s=!1){var v,A,j;this.tokenizer.lexer=this,this.options.pedantic&&(c=c.replace(ue.tabCharGlobal,"    ").replace(ue.spaceLine,""));let h=1/0;for(;c;){if(c.length<h)h=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}let g;if((A=(v=this.options.extensions)==null?void 0:v.block)!=null&&A.some(E=>(g=E.call({lexer:this},c,f))?(c=c.substring(g.raw.length),f.push(g),!0):!1))continue;if(g=this.tokenizer.space(c)){c=c.substring(g.raw.length);let E=f.at(-1);g.raw.length===1&&E!==void 0?E.raw+=`
`:f.push(g);continue}if(g=this.tokenizer.code(c)){c=c.substring(g.raw.length);let E=f.at(-1);(E==null?void 0:E.type)==="paragraph"||(E==null?void 0:E.type)==="text"?(E.raw+=(E.raw.endsWith(`
`)?"":`
`)+g.raw,E.text+=`
`+g.text,this.inlineQueue.at(-1).src=E.text):f.push(g);continue}if(g=this.tokenizer.fences(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.heading(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.hr(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.blockquote(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.list(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.html(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.def(c)){c=c.substring(g.raw.length);let E=f.at(-1);(E==null?void 0:E.type)==="paragraph"||(E==null?void 0:E.type)==="text"?(E.raw+=(E.raw.endsWith(`
`)?"":`
`)+g.raw,E.text+=`
`+g.raw,this.inlineQueue.at(-1).src=E.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},f.push(g));continue}if(g=this.tokenizer.table(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.lheading(c)){c=c.substring(g.raw.length),f.push(g);continue}let b=c;if((j=this.options.extensions)!=null&&j.startBlock){let E=1/0,C=c.slice(1),H;this.options.extensions.startBlock.forEach(J=>{H=J.call({lexer:this},C),typeof H=="number"&&H>=0&&(E=Math.min(E,H))}),E<1/0&&E>=0&&(b=c.substring(0,E+1))}if(this.state.top&&(g=this.tokenizer.paragraph(b))){let E=f.at(-1);s&&(E==null?void 0:E.type)==="paragraph"?(E.raw+=(E.raw.endsWith(`
`)?"":`
`)+g.raw,E.text+=`
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=E.text):f.push(g),s=b.length!==c.length,c=c.substring(g.raw.length);continue}if(g=this.tokenizer.text(c)){c=c.substring(g.raw.length);let E=f.at(-1);(E==null?void 0:E.type)==="text"?(E.raw+=(E.raw.endsWith(`
`)?"":`
`)+g.raw,E.text+=`
`+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=E.text):f.push(g);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,f}inline(c,f=[]){return this.inlineQueue.push({src:c,tokens:f}),f}inlineTokens(c,f=[]){var b,E,C,H,J;this.tokenizer.lexer=this;let s=c,h=null;if(this.tokens.links){let U=Object.keys(this.tokens.links);if(U.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)U.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(h=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,h.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let v;for(;(h=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)v=h[2]?h[2].length:0,s=s.slice(0,h.index+v)+"["+"a".repeat(h[0].length-v-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((E=(b=this.options.hooks)==null?void 0:b.emStrongMask)==null?void 0:E.call({lexer:this},s))??s;let A=!1,j="",g=1/0;for(;c;){if(c.length<g)g=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}A||(j=""),A=!1;let U;if((H=(C=this.options.extensions)==null?void 0:C.inline)!=null&&H.some(nt=>(U=nt.call({lexer:this},c,f))?(c=c.substring(U.raw.length),f.push(U),!0):!1))continue;if(U=this.tokenizer.escape(c)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.tag(c)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.link(c)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(U.raw.length);let nt=f.at(-1);U.type==="text"&&(nt==null?void 0:nt.type)==="text"?(nt.raw+=U.raw,nt.text+=U.text):f.push(U);continue}if(U=this.tokenizer.emStrong(c,s,j)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.codespan(c)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.br(c)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.del(c,s,j)){c=c.substring(U.raw.length),f.push(U);continue}if(U=this.tokenizer.autolink(c)){c=c.substring(U.raw.length),f.push(U);continue}if(!this.state.inLink&&(U=this.tokenizer.url(c))){c=c.substring(U.raw.length),f.push(U);continue}let F=c;if((J=this.options.extensions)!=null&&J.startInline){let nt=1/0,Yt=c.slice(1),Qt;this.options.extensions.startInline.forEach(Ct=>{Qt=Ct.call({lexer:this},Yt),typeof Qt=="number"&&Qt>=0&&(nt=Math.min(nt,Qt))}),nt<1/0&&nt>=0&&(F=c.substring(0,nt+1))}if(U=this.tokenizer.inlineText(F)){c=c.substring(U.raw.length),U.raw.slice(-1)!=="_"&&(j=U.raw.slice(-1)),A=!0;let nt=f.at(-1);(nt==null?void 0:nt.type)==="text"?(nt.raw+=U.raw,nt.text+=U.text):f.push(U);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return f}infiniteLoopError(c){let f="Infinite loop on byte: "+c;if(this.options.silent)console.error(f);else throw new Error(f)}},Ti=class{constructor(r){Nt(this,"options");Nt(this,"parser");this.options=r||da}space(r){return""}code({text:r,lang:c,escaped:f}){var v;let s=(v=(c||"").match(ue.notSpaceStart))==null?void 0:v[0],h=r.replace(ue.endingNewline,"")+`
`;return s?'<pre><code class="language-'+Fe(s)+'">'+(f?h:Fe(h,!0))+`</code></pre>
`:"<pre><code>"+(f?h:Fe(h,!0))+`</code></pre>
`}blockquote({tokens:r}){return`<blockquote>
${this.parser.parse(r)}</blockquote>
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:c}){return`<h${c}>${this.parser.parseInline(r)}</h${c}>
`}hr(r){return`<hr>
`}list(r){let c=r.ordered,f=r.start,s="";for(let A=0;A<r.items.length;A++){let j=r.items[A];s+=this.listitem(j)}let h=c?"ol":"ul",v=c&&f!==1?' start="'+f+'"':"";return"<"+h+v+`>
`+s+"</"+h+`>
`}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
`}table(r){let c="",f="";for(let h=0;h<r.header.length;h++)f+=this.tablecell(r.header[h]);c+=this.tablerow({text:f});let s="";for(let h=0;h<r.rows.length;h++){let v=r.rows[h];f="";for(let A=0;A<v.length;A++)f+=this.tablecell(v[A]);s+=this.tablerow({text:f})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
<thead>
`+c+`</thead>
`+s+`</table>
`}tablerow({text:r}){return`<tr>
${r}</tr>
`}tablecell(r){let c=this.parser.parseInline(r.tokens),f=r.header?"th":"td";return(r.align?`<${f} align="${r.align}">`:`<${f}>`)+c+`</${f}>
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Fe(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:c,tokens:f}){let s=this.parser.parseInline(f),h=bd(r);if(h===null)return s;r=h;let v='<a href="'+r+'"';return c&&(v+=' title="'+Fe(c)+'"'),v+=">"+s+"</a>",v}image({href:r,title:c,text:f,tokens:s}){s&&(f=this.parser.parseInline(s,this.parser.textRenderer));let h=bd(r);if(h===null)return Fe(f);r=h;let v=`<img src="${r}" alt="${Fe(f)}"`;return c&&(v+=` title="${Fe(c)}"`),v+=">",v}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:Fe(r.text)}},uf=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},Le=class $s{constructor(c){Nt(this,"options");Nt(this,"renderer");Nt(this,"textRenderer");this.options=c||da,this.options.renderer=this.options.renderer||new Ti,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new uf}static parse(c,f){return new $s(f).parse(c)}static parseInline(c,f){return new $s(f).parseInline(c)}parse(c){var s,h;this.renderer.parser=this;let f="";for(let v=0;v<c.length;v++){let A=c[v];if((h=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&h[A.type]){let g=A,b=this.options.extensions.renderers[g.type].call({parser:this},g);if(b!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(g.type)){f+=b||"";continue}}let j=A;switch(j.type){case"space":{f+=this.renderer.space(j);break}case"hr":{f+=this.renderer.hr(j);break}case"heading":{f+=this.renderer.heading(j);break}case"code":{f+=this.renderer.code(j);break}case"table":{f+=this.renderer.table(j);break}case"blockquote":{f+=this.renderer.blockquote(j);break}case"list":{f+=this.renderer.list(j);break}case"checkbox":{f+=this.renderer.checkbox(j);break}case"html":{f+=this.renderer.html(j);break}case"def":{f+=this.renderer.def(j);break}case"paragraph":{f+=this.renderer.paragraph(j);break}case"text":{f+=this.renderer.text(j);break}default:{let g='Token with "'+j.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return f}parseInline(c,f=this.renderer){var h,v;this.renderer.parser=this;let s="";for(let A=0;A<c.length;A++){let j=c[A];if((v=(h=this.options.extensions)==null?void 0:h.renderers)!=null&&v[j.type]){let b=this.options.extensions.renderers[j.type].call({parser:this},j);if(b!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(j.type)){s+=b||"";continue}}let g=j;switch(g.type){case"escape":{s+=f.text(g);break}case"html":{s+=f.html(g);break}case"link":{s+=f.link(g);break}case"image":{s+=f.image(g);break}case"checkbox":{s+=f.checkbox(g);break}case"strong":{s+=f.strong(g);break}case"em":{s+=f.em(g);break}case"codespan":{s+=f.codespan(g);break}case"br":{s+=f.br(g);break}case"del":{s+=f.del(g);break}case"text":{s+=f.text(g);break}default:{let b='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(b),"";throw new Error(b)}}}return s}},Si,In=(Si=class{constructor(r){Nt(this,"options");Nt(this,"block");this.options=r||da}preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(r=this.block){return r?Ze.lex:Ze.lexInline}provideParser(r=this.block){return r?Le.parse:Le.parseInline}},Nt(Si,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Nt(Si,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Si),Kg=class{constructor(...r){Nt(this,"defaults",Fs());Nt(this,"options",this.setOptions);Nt(this,"parse",this.parseMarkdown(!0));Nt(this,"parseInline",this.parseMarkdown(!1));Nt(this,"Parser",Le);Nt(this,"Renderer",Ti);Nt(this,"TextRenderer",uf);Nt(this,"Lexer",Ze);Nt(this,"Tokenizer",zi);Nt(this,"Hooks",In);this.use(...r)}walkTokens(r,c){var s,h;let f=[];for(let v of r)switch(f=f.concat(c.call(this,v)),v.type){case"table":{let A=v;for(let j of A.header)f=f.concat(this.walkTokens(j.tokens,c));for(let j of A.rows)for(let g of j)f=f.concat(this.walkTokens(g.tokens,c));break}case"list":{let A=v;f=f.concat(this.walkTokens(A.items,c));break}default:{let A=v;(h=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&h[A.type]?this.defaults.extensions.childTokens[A.type].forEach(j=>{let g=A[j].flat(1/0);f=f.concat(this.walkTokens(g,c))}):A.tokens&&(f=f.concat(this.walkTokens(A.tokens,c)))}}return f}use(...r){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(f=>{let s={...f};if(s.async=this.defaults.async||s.async||!1,f.extensions&&(f.extensions.forEach(h=>{if(!h.name)throw new Error("extension name required");if("renderer"in h){let v=c.renderers[h.name];v?c.renderers[h.name]=function(...A){let j=h.renderer.apply(this,A);return j===!1&&(j=v.apply(this,A)),j}:c.renderers[h.name]=h.renderer}if("tokenizer"in h){if(!h.level||h.level!=="block"&&h.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let v=c[h.level];v?v.unshift(h.tokenizer):c[h.level]=[h.tokenizer],h.start&&(h.level==="block"?c.startBlock?c.startBlock.push(h.start):c.startBlock=[h.start]:h.level==="inline"&&(c.startInline?c.startInline.push(h.start):c.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(c.childTokens[h.name]=h.childTokens)}),s.extensions=c),f.renderer){let h=this.defaults.renderer||new Ti(this.defaults);for(let v in f.renderer){if(!(v in h))throw new Error(`renderer '${v}' does not exist`);if(["options","parser"].includes(v))continue;let A=v,j=f.renderer[A],g=h[A];h[A]=(...b)=>{let E=j.apply(h,b);return E===!1&&(E=g.apply(h,b)),E||""}}s.renderer=h}if(f.tokenizer){let h=this.defaults.tokenizer||new zi(this.defaults);for(let v in f.tokenizer){if(!(v in h))throw new Error(`tokenizer '${v}' does not exist`);if(["options","rules","lexer"].includes(v))continue;let A=v,j=f.tokenizer[A],g=h[A];h[A]=(...b)=>{let E=j.apply(h,b);return E===!1&&(E=g.apply(h,b)),E}}s.tokenizer=h}if(f.hooks){let h=this.defaults.hooks||new In;for(let v in f.hooks){if(!(v in h))throw new Error(`hook '${v}' does not exist`);if(["options","block"].includes(v))continue;let A=v,j=f.hooks[A],g=h[A];In.passThroughHooks.has(v)?h[A]=b=>{if(this.defaults.async&&In.passThroughHooksRespectAsync.has(v))return(async()=>{let C=await j.call(h,b);return g.call(h,C)})();let E=j.call(h,b);return g.call(h,E)}:h[A]=(...b)=>{if(this.defaults.async)return(async()=>{let C=await j.apply(h,b);return C===!1&&(C=await g.apply(h,b)),C})();let E=j.apply(h,b);return E===!1&&(E=g.apply(h,b)),E}}s.hooks=h}if(f.walkTokens){let h=this.defaults.walkTokens,v=f.walkTokens;s.walkTokens=function(A){let j=[];return j.push(v.call(this,A)),h&&(j=j.concat(h.call(this,A))),j}}this.defaults={...this.defaults,...s}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,c){return Ze.lex(r,c??this.defaults)}parser(r,c){return Le.parse(r,c??this.defaults)}parseMarkdown(r){return(c,f)=>{let s={...f},h={...this.defaults,...s},v=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&s.async===!1)return v(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof c>"u"||c===null)return v(new Error("marked(): input parameter is undefined or null"));if(typeof c!="string")return v(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected"));if(h.hooks&&(h.hooks.options=h,h.hooks.block=r),h.async)return(async()=>{let A=h.hooks?await h.hooks.preprocess(c):c,j=await(h.hooks?await h.hooks.provideLexer(r):r?Ze.lex:Ze.lexInline)(A,h),g=h.hooks?await h.hooks.processAllTokens(j):j;h.walkTokens&&await Promise.all(this.walkTokens(g,h.walkTokens));let b=await(h.hooks?await h.hooks.provideParser(r):r?Le.parse:Le.parseInline)(g,h);return h.hooks?await h.hooks.postprocess(b):b})().catch(v);try{h.hooks&&(c=h.hooks.preprocess(c));let A=(h.hooks?h.hooks.provideLexer(r):r?Ze.lex:Ze.lexInline)(c,h);h.hooks&&(A=h.hooks.processAllTokens(A)),h.walkTokens&&this.walkTokens(A,h.walkTokens);let j=(h.hooks?h.hooks.provideParser(r):r?Le.parse:Le.parseInline)(A,h);return h.hooks&&(j=h.hooks.postprocess(j)),j}catch(A){return v(A)}}}onError(r,c){return f=>{if(f.message+=`
Please report this to https://github.com/markedjs/marked.`,r){let s="<p>An error occurred:</p><pre>"+Fe(f.message+"",!0)+"</pre>";return c?Promise.resolve(s):s}if(c)return Promise.reject(f);throw f}}},ha=new Kg;function Tt(r,c){return ha.parse(r,c)}Tt.options=Tt.setOptions=function(r){return ha.setOptions(r),Tt.defaults=ha.defaults,Td(Tt.defaults),Tt};Tt.getDefaults=Fs;Tt.defaults=da;Tt.use=function(...r){return ha.use(...r),Tt.defaults=ha.defaults,Td(Tt.defaults),Tt};Tt.walkTokens=function(r,c){return ha.walkTokens(r,c)};Tt.parseInline=ha.parseInline;Tt.Parser=Le;Tt.parser=Le.parse;Tt.Renderer=Ti;Tt.TextRenderer=uf;Tt.Lexer=Ze;Tt.lexer=Ze.lex;Tt.Tokenizer=zi;Tt.Hooks=In;Tt.parse=Tt;Tt.options;Tt.setOptions;Tt.use;Tt.walkTokens;Tt.parseInline;Le.parse;Ze.lex;function Jg(r){const c=new Date(r),f=new Date;return c.toDateString()===f.toDateString()?c.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):c.toLocaleDateString([],{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"})}function $g(r){return r?r<1024?`${r} B`:r<1048576?`${(r/1024).toFixed(1)} KB`:`${(r/1048576).toFixed(1)} MB`:""}function Wg({file:r}){var f,s;const c=((s=(f=r.mime_type)==null?void 0:f.split("/").pop())==null?void 0:s.toUpperCase())||r.type;return m.jsxs("div",{className:"file-card",children:[m.jsx("span",{className:"file-icon",children:"📎"}),m.jsxs("div",{className:"file-info",children:[m.jsx("div",{className:"file-name",children:r.filename||"file"}),m.jsx("div",{className:"file-meta",children:[r.size?$g(r.size):"",c,r.type].filter(Boolean).join(" · ")})]}),r.download_url&&m.jsx("a",{className:"file-dl",href:r.download_url,download:r.filename,target:"_blank",rel:"noreferrer",children:"⬇ Скачать"})]})}function Fg({text:r,parse_mode:c}){const f=w.useMemo(()=>c==="markdown"?Tt.parse(r,{breaks:!0,gfm:!0}):null,[r,c]);return f?m.jsx("div",{className:"msg-text",dangerouslySetInnerHTML:{__html:f}}):m.jsx("div",{className:"msg-text",children:r})}function Ig({buttons:r,onClick:c}){return m.jsx("div",{className:"btns",children:r.map((f,s)=>m.jsx("button",{className:`btn btn-${f.style}`,onClick:()=>c(f),children:f.label},s))})}function Pg({messages:r,isTyping:c,onButtonClick:f}){const s=w.useRef(null);return w.useEffect(()=>{var h;(h=s.current)==null||h.scrollIntoView({behavior:"smooth"})},[r,c]),r.length===0&&!c?m.jsx("div",{className:"message-list empty",children:m.jsxs("div",{className:"empty-state",children:[m.jsx("p",{style:{fontSize:32,marginBottom:8},children:"💬"}),m.jsx("p",{children:"Чат пуст."}),m.jsx("p",{children:"Напишите что-нибудь, чтобы начать."})]})}):m.jsxs("div",{className:"message-list",children:[r.map(h=>m.jsxs("div",{className:`message message-${h.from}`,children:[m.jsxs("div",{className:"msg-hdr",children:[m.jsx("div",{className:`avatar avatar-${h.from}`,children:h.from==="user"?"U":"λ"}),m.jsx("span",{className:"msg-name",children:h.from==="user"?"Вы":"Lambda"})]}),m.jsx(Fg,{text:h.text,parse_mode:h.parse_mode}),h.attachments&&h.attachments.length>0&&m.jsx("div",{className:"attach-list",children:h.attachments.map((v,A)=>m.jsx(Wg,{file:v},A))}),h.buttons&&h.buttons.length>0&&m.jsx(Ig,{buttons:h.buttons,onClick:f}),m.jsx("div",{className:"msg-time",children:Jg(h.timestamp)})]},h.id)),c&&m.jsx("div",{className:"message message-agent",children:m.jsx("div",{className:"typing-indicator",children:"λ печатает"})}),m.jsx("div",{ref:s})]})}function tp({chatId:r,messages:c,isTyping:f,userId:s,onSend:h,onButtonClick:v,disabled:A}){const j=w.useCallback(g=>{v(r,g)},[r,v]);return m.jsxs("div",{className:"chat",children:[m.jsx(Pg,{messages:c,isTyping:f,onButtonClick:j}),m.jsx(ig,{onSend:h,disabled:A||!s,userId:s})]},r)}const cf="web_surface_session",sf="web_surface_user_id";function ep(){const r=localStorage.getItem(cf),c=localStorage.getItem(sf);return r&&c?{sessionToken:r,userId:c}:null}function lp(r,c){localStorage.setItem(cf,r),localStorage.setItem(sf,c)}function ap(){localStorage.removeItem(cf),localStorage.removeItem(sf)}function np(r){const[c,f]=w.useState("disconnected"),[s,h]=w.useState(null),v=w.useRef(null),A=w.useRef(ep());w.useRef(()=>{});const j=w.useCallback(()=>{var J;if(((J=v.current)==null?void 0:J.readyState)===WebSocket.OPEN)return;f("connecting");const C=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/ws`,H=new WebSocket(C);v.current=H,H.onopen=()=>{f("connected");const U=A.current,F={type:"auth"};U&&(F.session_token=U.sessionToken),H.send(JSON.stringify(F))},H.onmessage=U=>{try{const F=JSON.parse(U.data);F.type==="connected"&&(A.current={sessionToken:F.session_token,userId:F.user_id},lp(F.session_token,F.user_id),h(F.user_id)),r(F)}catch{}},H.onclose=()=>{f("disconnected"),v.current=null},H.onerror=()=>{H.close()}},[r]),g=w.useCallback(E=>{var C;((C=v.current)==null?void 0:C.readyState)===WebSocket.OPEN&&v.current.send(JSON.stringify(E))},[]),b=w.useCallback(()=>{ap(),A.current=null,h(null),j()},[j]);return w.useEffect(()=>(j(),()=>{var E;(E=v.current)==null||E.close()}),[j]),{status:c,userId:s,send:g,reconnect:b}}function Ll(){return{messages:[],isTyping:!1}}function up(){const[r,c]=w.useState({C1:Ll()}),[f,s]=w.useState("C1"),[h,v]=w.useState(["C1"]),[A,j]=w.useState({C1:"Чат 1"}),[g,b]=w.useState(new Set),[E,C]=w.useState(!1),[H,J]=w.useState(!1),[U,F]=w.useState(!1),[nt,Yt]=w.useState(!0),[Qt,Ct]=w.useState(null),[ft,Vt]=w.useState(null),[jt,$]=w.useState("main"),[le,Ae]=w.useState({"web-search":!0,"fetch-url":!0,email:!1,browser:!1,"image-gen":!1,files:!0}),[vl,Ne]=w.useState({"email-send":!0,"file-delete":!0,"social-post":!0}),[Wt,Ie]=w.useState(""),[je,ve]=w.useState(""),[D,q]=w.useState(null),[K,ot]=w.useState(!1),[St,y]=w.useState(!1),[M,B]=w.useState(""),[Q,W]=w.useState(null),[I,dt]=w.useState(""),[Kt,kt]=w.useState([]),Pe=w.useRef(null),Qe=w.useRef(null),ie=w.useCallback(T=>{q(T),Pe.current&&clearTimeout(Pe.current),Pe.current=setTimeout(()=>q(null),2500)},[]),re=w.useRef(0),Ve=w.useRef(!1),ma=w.useRef(f);w.useEffect(()=>{ma.current=f},[f]),w.useEffect(()=>{Ve.current=U},[U]),w.useEffect(()=>{const T=localStorage.getItem("web_side_width");if(T){const lt=parseInt(T,10);lt>=120&&lt<=400&&Ct(lt)}},[]),w.useEffect(()=>{!Qt||!Qe.current||(Qe.current.style.width=Qt+"px")},[Qt]);const ga=w.useCallback(T=>{const lt=Qe.current;if(!lt)return;const Y="touches"in T?T.touches[0].clientX:T.clientX,tt=lt.getBoundingClientRect().width,vt=ae=>{const se="touches"in ae?ae.touches[0].clientX:ae.clientX;let bl=tt+(se-Y);bl<120&&(bl=120),bl>400&&(bl=400),lt.style.width=bl+"px",Ct(bl)},mt=()=>{if(Qe.current){const ae=parseInt(Qe.current.style.width,10);ae>=120&&ae<=400&&localStorage.setItem("web_side_width",String(ae))}document.removeEventListener("mousemove",vt),document.removeEventListener("mouseup",mt),document.removeEventListener("touchmove",vt),document.removeEventListener("touchend",mt),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",vt),document.addEventListener("mouseup",mt),document.addEventListener("touchmove",vt),document.addEventListener("touchend",mt),T.preventDefault()},[]),Ai=w.useCallback(T=>{var lt;if(Ve.current&&(T.type==="message"||T.type==="ui")&&(T.chat_id||"C1")===ma.current){Vt({text:T.text,buttons:T.buttons});return}if(T.type==="history"){T.chat_names&&j(tt=>({...tt,...T.chat_names})),T.archived&&b(new Set(T.archived)),v(tt=>{const vt=new Set(tt);return Object.keys(T.chats).forEach(mt=>vt.add(mt)),Array.from(vt)});const Y={};Object.entries(T.chats).forEach(([tt,vt])=>{Y[tt]={messages:[],isTyping:!1},vt.forEach(mt=>{Y[tt].messages.push({id:`hist-${re.current++}`,chat_id:mt.chat_id||tt,text:mt.text,from:mt.from,timestamp:mt.timestamp*1e3,attachments:mt.attachments,buttons:mt.buttons})})}),c(tt=>({...tt,...Y}));return}if(T.type==="message"){const Y=T.chat_id||"C1";re.current+=1;const tt={id:`msg-${re.current}`,chat_id:Y,text:T.text,from:"agent",parse_mode:T.parse_mode,timestamp:Date.now(),attachments:(lt=T.attachments)==null?void 0:lt.filter(vt=>vt.download_url)};c(vt=>{const mt=vt[Y]||Ll();return{...vt,[Y]:{...mt,messages:[...mt.messages,tt],isTyping:!1}}})}else if(T.type==="chat_name")j(Y=>({...Y,[T.chat_id]:T.name})),v(Y=>Y.includes(T.chat_id)?Y:[...Y,T.chat_id]);else if(T.type==="chat_archived")b(Y=>new Set(Y).add(T.chat_id));else if(T.type==="chat_unarchived")b(Y=>{const tt=new Set(Y);return tt.delete(T.chat_id),tt});else if(T.type==="chat_new")v(Y=>Y.includes(T.chat_id)?Y:[...Y,T.chat_id]),s(T.chat_id);else if(T.type==="ui"){const Y=T.chat_id||"C1";re.current+=1,c(tt=>{const vt=tt[Y]||Ll();return{...tt,[Y]:{...vt,messages:[...vt.messages,{id:`msg-${re.current}`,chat_id:Y,text:T.text,from:"agent",buttons:T.buttons,timestamp:Date.now()}]}}})}else if(T.type==="typing"){const Y=T.chat_id||"C1";c(tt=>{const vt=tt[Y]||Ll();return{...tt,[Y]:{...vt,isTyping:T.is_typing}}})}else if(T.type==="notification"){const Y=T.chat_id||"C1";re.current+=1,c(tt=>{const vt=tt[Y]||Ll();return{...tt,[Y]:{...vt,messages:[...vt.messages,{id:`msg-${re.current}`,chat_id:Y,text:`[${T.level.toUpperCase()}] ${T.text}`,from:"agent",timestamp:Date.now()}]}}})}else T.type==="sessions"&&(kt(T.sessions.map(Y=>Y.name)),ot(!0))},[]),{status:Oe,userId:Z,send:gt,reconnect:pa}=np(Ai),Ni=w.useCallback((T,lt)=>{if(Z){if(T.startsWith("/")){const Y=T.slice(1).split(/\s+/),tt=Y[0].toLowerCase();if(tt==="settings"){F(!0),$("main"),Vt(null),gt({type:"command",user_id:Z,chat_id:f,command:"settings",args:Y.slice(1)});return}if(tt==="save"){if(!Y[1]){ie("⚠ Укажите имя: /save <имя>");return}ie("💾 Сохраняю контекст...")}else if(tt==="load"){if(!Y[1]){ie("📂 Используйте кнопку 📂 в хедере для выбора сессии");return}ie("📂 Загружаю контекст...")}else if(tt==="context")ie("📋 Информация о контексте...");else if(tt==="reset"){if(!window.confirm("Сбросить контекст? Агент забудет предыдущий разговор."))return;ie("🔄 Сброс контекста...")}re.current+=1,c(vt=>{const mt=vt[f]||Ll();return{...vt,[f]:{...mt,messages:[...mt.messages,{id:`msg-${re.current}`,chat_id:f,text:T,from:"user",timestamp:Date.now(),attachments:lt}]}}}),gt({type:"command",user_id:Z,chat_id:f,command:tt,args:Y.slice(1)});return}re.current+=1,c(Y=>{const tt=Y[f]||Ll();return{...Y,[f]:{...tt,messages:[...tt.messages,{id:`msg-${re.current}`,chat_id:f,text:T,from:"user",timestamp:Date.now(),attachments:lt}]}}}),gt({type:"message",user_id:Z,chat_id:f,text:T})}},[Z,f,gt]),tu=w.useCallback((T,lt)=>{Z&&gt({type:"callback",user_id:Z,chat_id:T,action:lt.action,payload:lt.payload})},[Z,gt]),ce=w.useCallback(T=>{if(!Z)return;if(g.has(T))gt({type:"command",user_id:Z,chat_id:T,command:"unarchive",args:[]}),b(Y=>{const tt=new Set(Y);return tt.delete(T),tt});else if(gt({type:"command",user_id:Z,chat_id:T,command:"archive",args:[]}),b(Y=>new Set(Y).add(T)),f===T){const Y=h.filter(tt=>tt!==T&&!g.has(tt));Y.length>0&&s(Y[0])}},[Z,gt,f,h,g]),ji=w.useCallback(T=>{if(Z&&window.confirm(`Удалить чат «${A[T]||T}»?`)&&(gt({type:"command",user_id:Z,chat_id:T,command:"delete",args:[]}),v(lt=>lt.filter(Y=>Y!==T)),j(lt=>{const Y={...lt};return delete Y[T],Y}),c(lt=>{const Y={...lt};return delete Y[T],Y}),b(lt=>{const Y=new Set(lt);return Y.delete(T),Y}),f===T)){const lt=h.filter(Y=>Y!==T);s(lt.length>0?lt[0]:"C1")}},[Z,gt,f,h,A]),eu=w.useCallback(()=>{Z&&gt({type:"command",user_id:Z,chat_id:f,command:"new",args:[]})},[Z,gt,f]),lu=E?[...h.filter(T=>!g.has(T)),...h.filter(T=>g.has(T))]:h.filter(T=>!g.has(T)),Vl=r[f]||Ll();return m.jsxs("div",{className:"app",children:[m.jsxs("header",{className:"app-header",children:[m.jsxs("div",{className:"header-left",children:[m.jsx("button",{className:"btn-icon",onClick:()=>Yt(T=>!T),title:nt?"Скрыть панель":"Показать панель",children:nt?"◀":"▶"}),m.jsx("button",{className:"btn-icon btn-help",onClick:()=>J(T=>!T),title:"Помощь",children:"?"}),m.jsx("h1",{children:"λ Lambda Chat"})]}),m.jsxs("div",{className:"header-right",children:[m.jsx("button",{className:"btn-icon btn-save",onClick:()=>{Z&&(B(""),y(!0))},title:"Сохранить контекст",children:"💾"}),m.jsx("button",{className:"btn-icon btn-load",onClick:()=>{Z&&(ot(!0),gt({type:"command",user_id:Z,chat_id:f,command:"load",args:[]}))},title:"Загрузить контекст",children:"📂"}),m.jsx("button",{className:"btn-icon btn-settings",onClick:()=>{const T=!U;F(T),T&&Z&&($("main"),Vt(null),gt({type:"command",user_id:Z,chat_id:f,command:"settings",args:[]}))},title:"Настройки",children:"⚙"}),m.jsxs("div",{className:"connection-status",children:[m.jsx("span",{className:`dot dot-${Oe}`}),Oe==="connected"?"Подключено":Oe==="connecting"?"Подключение...":"Отключено"]})]})]}),D&&m.jsx("div",{className:"toast",children:D}),St&&m.jsx("div",{className:"modal-overlay",onClick:()=>y(!1),children:m.jsxs("div",{className:"modal save-modal",onClick:T=>T.stopPropagation(),children:[m.jsx("button",{className:"modal-close",onClick:()=>y(!1),children:"×"}),m.jsx("h2",{children:"💾 Сохранить контекст"}),m.jsxs("div",{className:"save-input-row",children:[m.jsx("input",{className:"save-input",type:"text",placeholder:"Введите имя сессии...",value:M,onChange:T=>B(T.target.value),onKeyDown:T=>{if(T.key==="Enter"&&M.trim()){if(!Z)return;gt({type:"command",user_id:Z,chat_id:f,command:"save",args:[M.trim()]}),y(!1),ie(`💾 Сохраняю «${M.trim()}»...`)}},autoFocus:!0}),m.jsx("button",{className:"btn btn-primary save-confirm",disabled:!M.trim(),onClick:()=>{!Z||!M.trim()||(gt({type:"command",user_id:Z,chat_id:f,command:"save",args:[M.trim()]}),y(!1),ie(`💾 Сохраняю «${M.trim()}»...`))},children:"Сохранить"})]})]})}),K&&m.jsx("div",{className:"modal-overlay",onClick:()=>ot(!1),children:m.jsxs("div",{className:"modal load-modal",onClick:T=>T.stopPropagation(),children:[m.jsx("button",{className:"modal-close",onClick:()=>ot(!1),children:"×"}),m.jsx("h2",{children:"📂 Загрузить контекст"}),Kt.length===0?m.jsx("p",{className:"settings-muted",style:{textAlign:"center",padding:"16px 0"},children:"Нет сохранённых сессий"}):m.jsx("div",{className:"load-list",children:Kt.map(T=>m.jsx("button",{className:"load-item btn btn-secondary",onClick:()=>{Z&&(gt({type:"command",user_id:Z,chat_id:f,command:"load",args:[T]}),ot(!1),ie(`📂 Загружаю «${T}»...`))},children:T},T))})]})}),Q&&m.jsx("div",{className:"modal-overlay",onClick:()=>W(null),children:m.jsxs("div",{className:"modal rename-modal",onClick:T=>T.stopPropagation(),children:[m.jsx("button",{className:"modal-close",onClick:()=>W(null),children:"×"}),m.jsx("h2",{children:"✏️ Переименовать чат"}),m.jsxs("div",{className:"save-input-row",children:[m.jsx("input",{className:"save-input",type:"text",placeholder:"Новое название...",value:I,onChange:T=>dt(T.target.value),onKeyDown:T=>{if(T.key==="Enter"&&I.trim()){if(!Z)return;gt({type:"command",user_id:Z,chat_id:Q,command:"rename",args:[I.trim()]}),W(null),ie(`✏️ Переименован в «${I.trim()}»`)}},autoFocus:!0}),m.jsx("button",{className:"btn btn-primary save-confirm",disabled:!I.trim(),onClick:()=>{!Z||!I.trim()||(gt({type:"command",user_id:Z,chat_id:Q,command:"rename",args:[I.trim()]}),W(null),ie(`✏️ Переименован в «${I.trim()}»`))},children:"Переименовать"})]})]})}),H&&m.jsx("div",{className:"modal-overlay",onClick:()=>J(!1),children:m.jsxs("div",{className:"modal",onClick:T=>T.stopPropagation(),children:[m.jsx("button",{className:"modal-close",onClick:()=>J(!1),children:"×"}),m.jsx("h2",{children:"Команды"}),m.jsx("table",{children:m.jsxs("tbody",{children:[m.jsxs("tr",{children:[m.jsx("td",{children:"/start"}),m.jsx("td",{children:"Начать диалог заново"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/new"}),m.jsx("td",{children:"Создать новый чат"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/chats"}),m.jsx("td",{children:"Список чатов"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/rename <имя>"}),m.jsx("td",{children:"Переименовать чат"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/archive"}),m.jsx("td",{children:"Архивировать чат"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/unarchive"}),m.jsx("td",{children:"Восстановить чат из архива"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/settings"}),m.jsx("td",{children:"Настройки"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/save [имя]"}),m.jsx("td",{children:"Сохранить контекст"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/load [имя]"}),m.jsx("td",{children:"Загрузить сохранённый контекст"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/context"}),m.jsx("td",{children:"Информация о контексте"})]}),m.jsxs("tr",{children:[m.jsx("td",{children:"/reset"}),m.jsx("td",{children:"Сбросить контекст"})]})]})})]})}),U&&m.jsx("div",{className:"modal-overlay",onClick:()=>F(!1),children:m.jsxs("div",{className:"modal settings-modal",onClick:T=>T.stopPropagation(),children:[m.jsx("button",{className:"modal-close",onClick:()=>F(!1),children:"×"}),jt==="main"&&m.jsxs(m.Fragment,{children:[m.jsx("h2",{children:"⚙ Настройки"}),m.jsxs("div",{className:"settings-section",children:[m.jsx("label",{children:"Статус:"}),m.jsx("span",{className:`settings-value ${Oe}`,children:Oe==="connected"?"Подключено":Oe==="connecting"?"Подключение...":"Отключено"}),Oe==="disconnected"&&m.jsx("button",{className:"btn btn-secondary settings-reconnect",onClick:pa,children:"Переподключиться"})]}),m.jsxs("div",{className:"settings-section",children:[m.jsx("label",{children:"Пользователь:"}),m.jsx("span",{className:"settings-value",children:Z||"—"})]}),m.jsxs("div",{className:"settings-section",children:[m.jsx("label",{children:"Активный чат:"}),m.jsx("span",{className:"settings-value",children:A[f]||f})]}),m.jsxs("div",{className:"settings-section",children:[m.jsx("label",{children:"Всего чатов:"}),m.jsx("span",{className:"settings-value",children:h.length})]}),ft&&m.jsxs("div",{className:"settings-agent",children:[m.jsx("div",{className:"settings-agent-text",children:ft.text}),ft.buttons&&ft.buttons.length>0&&m.jsx("div",{className:"btns settings-agent-btns",children:ft.buttons.map((T,lt)=>m.jsx("button",{className:`btn ${T.style==="danger"?"btn-danger":T.action==="callback"?"btn-primary":"btn-secondary"}`,onClick:()=>tu(f,T),children:T.label},lt))})]}),m.jsxs("div",{className:"settings-categories",children:[m.jsx("div",{className:"settings-cat-title",children:"Категории"}),m.jsxs("div",{className:"btns settings-cat-btns",children:[m.jsx("button",{className:"btn btn-secondary",onClick:()=>{$("skills"),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"settings_skills",payload:{}})},children:"🛠 Навыки"}),m.jsx("button",{className:"btn btn-secondary",onClick:()=>{$("safety"),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"settings_safety",payload:{}})},children:"🔒 Безопасность"}),m.jsx("button",{className:"btn btn-secondary",onClick:()=>{$("soul"),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"settings_soul",payload:{}})},children:"👤 Личность"}),m.jsx("button",{className:"btn btn-secondary",onClick:()=>{$("connectors"),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"settings_connectors",payload:{}})},children:"🔌 Интеграции"}),m.jsx("button",{className:"btn btn-secondary",onClick:()=>{$("plan"),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"settings_plan",payload:{}})},children:"📊 Тариф"})]})]})]}),jt==="skills"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"settings-sub-header",children:[m.jsx("button",{className:"btn-icon",onClick:()=>$("main"),title:"Назад",children:"◀"}),m.jsx("h2",{children:"🛠 Навыки"})]}),ft&&ft.text&&m.jsx("div",{className:"settings-agent-text",children:ft.text}),m.jsx("div",{className:"settings-toggles",children:Object.entries(le).map(([T,lt])=>m.jsxs("label",{className:"toggle-row",children:[m.jsx("span",{className:"toggle-label",children:T}),m.jsx("span",{className:`toggle-switch ${lt?"on":"off"}`,onClick:()=>{Ae(Y=>({...Y,[T]:!Y[T]})),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"toggle_skill",payload:{skill:T,enabled:!lt}})},children:m.jsx("span",{className:"toggle-knob"})})]},T))})]}),jt==="safety"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"settings-sub-header",children:[m.jsx("button",{className:"btn-icon",onClick:()=>$("main"),title:"Назад",children:"◀"}),m.jsx("h2",{children:"🔒 Безопасность"})]}),ft&&ft.text&&m.jsx("div",{className:"settings-agent-text",children:ft.text}),m.jsx("div",{className:"settings-toggles",children:Object.entries(vl).map(([T,lt])=>m.jsxs("label",{className:"toggle-row",children:[m.jsx("span",{className:"toggle-label",children:T}),m.jsx("span",{className:`toggle-switch ${lt?"on":"off"}`,onClick:()=>{Ne(Y=>({...Y,[T]:!Y[T]})),Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"set_safety",payload:{trigger:T,enabled:!lt}})},children:m.jsx("span",{className:"toggle-knob"})})]},T))})]}),jt==="soul"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"settings-sub-header",children:[m.jsx("button",{className:"btn-icon",onClick:()=>$("main"),title:"Назад",children:"◀"}),m.jsx("h2",{children:"👤 Личность"})]}),ft&&ft.text&&m.jsx("div",{className:"settings-agent-text",children:ft.text}),m.jsxs("div",{className:"settings-soul-form",children:[m.jsxs("label",{className:"soul-field",children:[m.jsx("span",{children:"Имя"}),m.jsx("input",{type:"text",value:Wt,onChange:T=>Ie(T.target.value),placeholder:"Имя агента"})]}),m.jsxs("label",{className:"soul-field",children:[m.jsx("span",{children:"Инструкции"}),m.jsx("textarea",{value:je,onChange:T=>ve(T.target.value),placeholder:"Опишите характер...",rows:3})]}),m.jsx("button",{className:"btn btn-primary",onClick:()=>{Z&&gt({type:"callback",user_id:Z,chat_id:f,action:"set_soul",payload:{name:Wt,instructions:je}})},children:"Сохранить"})]})]}),jt==="connectors"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"settings-sub-header",children:[m.jsx("button",{className:"btn-icon",onClick:()=>$("main"),title:"Назад",children:"◀"}),m.jsx("h2",{children:"🔌 Интеграции"})]}),ft&&ft.text&&m.jsx("div",{className:"settings-agent-text",children:ft.text}),m.jsxs("div",{className:"settings-placeholder",children:[m.jsx("p",{children:"Подключение внешних сервисов через OAuth."}),m.jsx("p",{className:"settings-muted",children:"Скоро будет доступно"})]})]}),jt==="plan"&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"settings-sub-header",children:[m.jsx("button",{className:"btn-icon",onClick:()=>$("main"),title:"Назад",children:"◀"}),m.jsx("h2",{children:"📊 Тариф"})]}),ft&&ft.text&&m.jsx("div",{className:"settings-agent-text",children:ft.text}),m.jsxs("div",{className:"settings-plan",children:[m.jsxs("div",{className:"settings-section",children:[m.jsx("label",{children:"План:"}),m.jsx("span",{className:"settings-value",children:"Бесплатный"})]}),m.jsxs("div",{className:"settings-section",children:[m.jsx("label",{children:"Токенов использовано:"}),m.jsx("span",{className:"settings-value",children:"0 / 1000"})]})]})]})]})}),m.jsxs("div",{className:"app-body",children:[m.jsxs("aside",{className:`sidebar ${nt?"":"collapsed"}`,ref:Qe,children:[m.jsx("div",{className:"side-resizer",onMouseDown:ga,onTouchStart:ga}),m.jsxs("div",{className:"sidebar-header",children:[m.jsx("div",{className:"sidebar-header-left",children:m.jsx("span",{children:"Чаты"})}),m.jsx("button",{className:"btn-icon btn-add",onClick:eu,title:"Новый чат",children:"+"})]}),m.jsx("div",{className:"sidebar-tabs",children:lu.map(T=>m.jsxs("div",{className:`chat-tab-row ${T===f?"active":""} ${g.has(T)?"archived":""}`,onClick:()=>s(T),children:[m.jsx("span",{className:"chat-tab-label",children:A[T]||T}),m.jsxs("span",{className:"chat-tab-actions",onClick:lt=>lt.stopPropagation(),children:[m.jsx("button",{className:"tab-action archive-action",onClick:()=>ce(T),title:g.has(T)?"Разархивировать":"Архивировать",children:g.has(T)?"📂":"📁"}),m.jsx("button",{className:"tab-action rename-action",onClick:()=>{W(T),dt(A[T]||T)},title:"Переименовать",children:"✏️"}),m.jsx("button",{className:"tab-action delete-action",onClick:()=>ji(T),title:"Удалить чат",children:"🗑"})]})]},T))}),m.jsxs("div",{className:"sidebar-footer",children:[m.jsx("button",{className:"archive-toggle",onClick:g.size>0?()=>C(T=>!T):void 0,disabled:g.size===0,children:E?"Скрыть архив":g.size>0?`Показать архив (${g.size})`:"Архив"}),m.jsx("button",{className:"btn-reconnect",onClick:pa,style:{display:Oe==="disconnected"?"block":"none"},children:"Переподключиться"})]})]}),m.jsx("main",{className:"main",children:m.jsx(tp,{chatId:f,messages:Vl.messages,isTyping:Vl.isTyping,userId:Z,onSend:Ni,onButtonClick:tu,disabled:Oe!=="connected"})})]})]})}ug.createRoot(document.getElementById("root")).render(m.jsx(w.StrictMode,{children:m.jsx(up,{})}));
