mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
10 lines
237 KiB
JavaScript
10 lines
237 KiB
JavaScript
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))s(m);new MutationObserver(m=>{for(const E of m)if(E.type==="childList")for(const R of E.addedNodes)R.tagName==="LINK"&&R.rel==="modulepreload"&&s(R)}).observe(document,{childList:!0,subtree:!0});function f(m){const E={};return m.integrity&&(E.integrity=m.integrity),m.referrerPolicy&&(E.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?E.credentials="include":m.crossOrigin==="anonymous"?E.credentials="omit":E.credentials="same-origin",E}function s(m){if(m.ep)return;m.ep=!0;const E=f(m);fetch(m.href,E)}})();var Af={exports:{}},Ra={};var kh;function km(){if(kh)return Ra;kh=1;var o=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function f(s,m,E){var R=null;if(E!==void 0&&(R=""+E),m.key!==void 0&&(R=""+m.key),"key"in m){E={};for(var B in m)B!=="key"&&(E[B]=m[B])}else E=m;return m=E.ref,{$$typeof:o,type:s,key:R,ref:m!==void 0?m:null,props:E}}return Ra.Fragment=i,Ra.jsx=f,Ra.jsxs=f,Ra}var Wh;function Wm(){return Wh||(Wh=1,Af.exports=km()),Af.exports}var Y=Wm(),zf={exports:{}},G={};var $h;function $m(){if($h)return G;$h=1;var o=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),K=Symbol.iterator;function Yt(y){return y===null||typeof y!="object"?null:(y=K&&y[K]||y["@@iterator"],typeof y=="function"?y:null)}var _t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ut=Object.assign,qe={};function It(y,N,U){this.props=y,this.context=N,this.refs=qe,this.updater=U||_t}It.prototype.isReactComponent={},It.prototype.setState=function(y,N){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,N,"setState")},It.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function el(){}el.prototype=It.prototype;function jt(y,N,U){this.props=y,this.context=N,this.refs=qe,this.updater=U||_t}var se=jt.prototype=new el;se.constructor=jt,Ut(se,It.prototype),se.isPureReactComponent=!0;var Oe=Array.isArray;function Gt(){}var I={H:null,A:null,T:null,S:null},Vt=Object.prototype.hasOwnProperty;function Ne(y,N,U){var q=U.ref;return{$$typeof:o,type:y,key:N,ref:q!==void 0?q:null,props:U}}function kl(y,N){return Ne(y.type,N,y.props)}function Me(y){return typeof y=="object"&&y!==null&&y.$$typeof===o}function Zt(y){var N={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(U){return N[U]})}var Ml=/\/+/g;function He(y,N){return typeof y=="object"&&y!==null&&y.key!=null?Zt(""+y.key):N.toString(36)}function _e(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(Gt,Gt):(y.status="pending",y.then(function(N){y.status==="pending"&&(y.status="fulfilled",y.value=N)},function(N){y.status==="pending"&&(y.status="rejected",y.reason=N)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function T(y,N,U,q,V){var J=typeof y;(J==="undefined"||J==="boolean")&&(y=null);var at=!1;if(y===null)at=!0;else switch(J){case"bigint":case"string":case"number":at=!0;break;case"object":switch(y.$$typeof){case o:case i:at=!0;break;case Q:return at=y._init,T(at(y._payload),N,U,q,V)}}if(at)return V=V(y),at=q===""?"."+He(y,0):q,Oe(V)?(U="",at!=null&&(U=at.replace(Ml,"$&/")+"/"),T(V,N,U,"",function(Hn){return Hn})):V!=null&&(Me(V)&&(V=kl(V,U+(V.key==null||y&&y.key===V.key?"":(""+V.key).replace(Ml,"$&/")+"/")+at)),N.push(V)),1;at=0;var Xt=q===""?".":q+":";if(Oe(y))for(var pt=0;pt<y.length;pt++)q=y[pt],J=Xt+He(q,pt),at+=T(q,N,U,J,V);else if(pt=Yt(y),typeof pt=="function")for(y=pt.call(y),pt=0;!(q=y.next()).done;)q=q.value,J=Xt+He(q,pt++),at+=T(q,N,U,J,V);else if(J==="object"){if(typeof y.then=="function")return T(_e(y),N,U,q,V);throw N=String(y),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return at}function D(y,N,U){if(y==null)return y;var q=[],V=0;return T(y,q,"","",function(J){return N.call(U,J,V++)}),q}function X(y){if(y._status===-1){var N=y._result;N=N(),N.then(function(U){(y._status===0||y._status===-1)&&(y._status=1,y._result=U)},function(U){(y._status===0||y._status===-1)&&(y._status=2,y._result=U)}),y._status===-1&&(y._status=0,y._result=N)}if(y._status===1)return y._result.default;throw y._result}var ct=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=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(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)},rt={map:D,forEach:function(y,N,U){D(y,function(){N.apply(this,arguments)},U)},count:function(y){var N=0;return D(y,function(){N++}),N},toArray:function(y){return D(y,function(N){return N})||[]},only:function(y){if(!Me(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return G.Activity=x,G.Children=rt,G.Component=It,G.Fragment=f,G.Profiler=m,G.PureComponent=jt,G.StrictMode=s,G.Suspense=M,G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,G.__COMPILER_RUNTIME={__proto__:null,c:function(y){return I.H.useMemoCache(y)}},G.cache=function(y){return function(){return y.apply(null,arguments)}},G.cacheSignal=function(){return null},G.cloneElement=function(y,N,U){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var q=Ut({},y.props),V=y.key;if(N!=null)for(J in N.key!==void 0&&(V=""+N.key),N)!Vt.call(N,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&N.ref===void 0||(q[J]=N[J]);var J=arguments.length-2;if(J===1)q.children=U;else if(1<J){for(var at=Array(J),Xt=0;Xt<J;Xt++)at[Xt]=arguments[Xt+2];q.children=at}return Ne(y.type,V,q)},G.createContext=function(y){return y={$$typeof:R,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:E,_context:y},y},G.createElement=function(y,N,U){var q,V={},J=null;if(N!=null)for(q in N.key!==void 0&&(J=""+N.key),N)Vt.call(N,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(V[q]=N[q]);var at=arguments.length-2;if(at===1)V.children=U;else if(1<at){for(var Xt=Array(at),pt=0;pt<at;pt++)Xt[pt]=arguments[pt+2];V.children=Xt}if(y&&y.defaultProps)for(q in at=y.defaultProps,at)V[q]===void 0&&(V[q]=at[q]);return Ne(y,J,V)},G.createRef=function(){return{current:null}},G.forwardRef=function(y){return{$$typeof:B,render:y}},G.isValidElement=Me,G.lazy=function(y){return{$$typeof:Q,_payload:{_status:-1,_result:y},_init:X}},G.memo=function(y,N){return{$$typeof:A,type:y,compare:N===void 0?null:N}},G.startTransition=function(y){var N=I.T,U={};I.T=U;try{var q=y(),V=I.S;V!==null&&V(U,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Gt,ct)}catch(J){ct(J)}finally{N!==null&&U.types!==null&&(N.types=U.types),I.T=N}},G.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},G.use=function(y){return I.H.use(y)},G.useActionState=function(y,N,U){return I.H.useActionState(y,N,U)},G.useCallback=function(y,N){return I.H.useCallback(y,N)},G.useContext=function(y){return I.H.useContext(y)},G.useDebugValue=function(){},G.useDeferredValue=function(y,N){return I.H.useDeferredValue(y,N)},G.useEffect=function(y,N){return I.H.useEffect(y,N)},G.useEffectEvent=function(y){return I.H.useEffectEvent(y)},G.useId=function(){return I.H.useId()},G.useImperativeHandle=function(y,N,U){return I.H.useImperativeHandle(y,N,U)},G.useInsertionEffect=function(y,N){return I.H.useInsertionEffect(y,N)},G.useLayoutEffect=function(y,N){return I.H.useLayoutEffect(y,N)},G.useMemo=function(y,N){return I.H.useMemo(y,N)},G.useOptimistic=function(y,N){return I.H.useOptimistic(y,N)},G.useReducer=function(y,N,U){return I.H.useReducer(y,N,U)},G.useRef=function(y){return I.H.useRef(y)},G.useState=function(y){return I.H.useState(y)},G.useSyncExternalStore=function(y,N,U){return I.H.useSyncExternalStore(y,N,U)},G.useTransition=function(){return I.H.useTransition()},G.version="19.2.0",G}var Fh;function Lf(){return Fh||(Fh=1,zf.exports=$m()),zf.exports}var Mt=Lf(),Of={exports:{}},Da={},Nf={exports:{}},Mf={};var Ih;function Fm(){return Ih||(Ih=1,(function(o){function i(T,D){var X=T.length;T.push(D);t:for(;0<X;){var ct=X-1>>>1,rt=T[ct];if(0<m(rt,D))T[ct]=D,T[X]=rt,X=ct;else break t}}function f(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var D=T[0],X=T.pop();if(X!==D){T[0]=X;t:for(var ct=0,rt=T.length,y=rt>>>1;ct<y;){var N=2*(ct+1)-1,U=T[N],q=N+1,V=T[q];if(0>m(U,X))q<rt&&0>m(V,U)?(T[ct]=V,T[q]=X,ct=q):(T[ct]=U,T[N]=X,ct=N);else if(q<rt&&0>m(V,X))T[ct]=V,T[q]=X,ct=q;else break t}}return D}function m(T,D){var X=T.sortIndex-D.sortIndex;return X!==0?X:T.id-D.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var E=performance;o.unstable_now=function(){return E.now()}}else{var R=Date,B=R.now();o.unstable_now=function(){return R.now()-B}}var M=[],A=[],Q=1,x=null,K=3,Yt=!1,_t=!1,Ut=!1,qe=!1,It=typeof setTimeout=="function"?setTimeout:null,el=typeof clearTimeout=="function"?clearTimeout:null,jt=typeof setImmediate<"u"?setImmediate:null;function se(T){for(var D=f(A);D!==null;){if(D.callback===null)s(A);else if(D.startTime<=T)s(A),D.sortIndex=D.expirationTime,i(M,D);else break;D=f(A)}}function Oe(T){if(Ut=!1,se(T),!_t)if(f(M)!==null)_t=!0,Gt||(Gt=!0,Zt());else{var D=f(A);D!==null&&_e(Oe,D.startTime-T)}}var Gt=!1,I=-1,Vt=5,Ne=-1;function kl(){return qe?!0:!(o.unstable_now()-Ne<Vt)}function Me(){if(qe=!1,Gt){var T=o.unstable_now();Ne=T;var D=!0;try{t:{_t=!1,Ut&&(Ut=!1,el(I),I=-1),Yt=!0;var X=K;try{e:{for(se(T),x=f(M);x!==null&&!(x.expirationTime>T&&kl());){var ct=x.callback;if(typeof ct=="function"){x.callback=null,K=x.priorityLevel;var rt=ct(x.expirationTime<=T);if(T=o.unstable_now(),typeof rt=="function"){x.callback=rt,se(T),D=!0;break e}x===f(M)&&s(M),se(T)}else s(M);x=f(M)}if(x!==null)D=!0;else{var y=f(A);y!==null&&_e(Oe,y.startTime-T),D=!1}}break t}finally{x=null,K=X,Yt=!1}D=void 0}}finally{D?Zt():Gt=!1}}}var Zt;if(typeof jt=="function")Zt=function(){jt(Me)};else if(typeof MessageChannel<"u"){var Ml=new MessageChannel,He=Ml.port2;Ml.port1.onmessage=Me,Zt=function(){He.postMessage(null)}}else Zt=function(){It(Me,0)};function _e(T,D){I=It(function(){T(o.unstable_now())},D)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(T){T.callback=null},o.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Vt=0<T?Math.floor(1e3/T):5},o.unstable_getCurrentPriorityLevel=function(){return K},o.unstable_next=function(T){switch(K){case 1:case 2:case 3:var D=3;break;default:D=K}var X=K;K=D;try{return T()}finally{K=X}},o.unstable_requestPaint=function(){qe=!0},o.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var X=K;K=T;try{return D()}finally{K=X}},o.unstable_scheduleCallback=function(T,D,X){var ct=o.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ct+X:ct):X=ct,T){case 1:var rt=-1;break;case 2:rt=250;break;case 5:rt=1073741823;break;case 4:rt=1e4;break;default:rt=5e3}return rt=X+rt,T={id:Q++,callback:D,priorityLevel:T,startTime:X,expirationTime:rt,sortIndex:-1},X>ct?(T.sortIndex=X,i(A,T),f(M)===null&&T===f(A)&&(Ut?(el(I),I=-1):Ut=!0,_e(Oe,X-ct))):(T.sortIndex=rt,i(M,T),_t||Yt||(_t=!0,Gt||(Gt=!0,Zt()))),T},o.unstable_shouldYield=kl,o.unstable_wrapCallback=function(T){var D=K;return function(){var X=K;K=D;try{return T.apply(this,arguments)}finally{K=X}}}})(Mf)),Mf}var Ph;function Im(){return Ph||(Ph=1,Nf.exports=Fm()),Nf.exports}var Rf={exports:{}},Lt={};var td;function Pm(){if(td)return Lt;td=1;var o=Lf();function i(M){var A="https://react.dev/errors/"+M;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var Q=2;Q<arguments.length;Q++)A+="&args[]="+encodeURIComponent(arguments[Q])}return"Minified React error #"+M+"; visit "+A+" 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(i(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function E(M,A,Q){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:x==null?null:""+x,children:M,containerInfo:A,implementation:Q}}var R=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function B(M,A){if(M==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Lt.createPortal=function(M,A){var Q=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(i(299));return E(M,A,null,Q)},Lt.flushSync=function(M){var A=R.T,Q=s.p;try{if(R.T=null,s.p=2,M)return M()}finally{R.T=A,s.p=Q,s.d.f()}},Lt.preconnect=function(M,A){typeof M=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,s.d.C(M,A))},Lt.prefetchDNS=function(M){typeof M=="string"&&s.d.D(M)},Lt.preinit=function(M,A){if(typeof M=="string"&&A&&typeof A.as=="string"){var Q=A.as,x=B(Q,A.crossOrigin),K=typeof A.integrity=="string"?A.integrity:void 0,Yt=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;Q==="style"?s.d.S(M,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:x,integrity:K,fetchPriority:Yt}):Q==="script"&&s.d.X(M,{crossOrigin:x,integrity:K,fetchPriority:Yt,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},Lt.preinitModule=function(M,A){if(typeof M=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var Q=B(A.as,A.crossOrigin);s.d.M(M,{crossOrigin:Q,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&s.d.M(M)},Lt.preload=function(M,A){if(typeof M=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var Q=A.as,x=B(Q,A.crossOrigin);s.d.L(M,Q,{crossOrigin:x,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},Lt.preloadModule=function(M,A){if(typeof M=="string")if(A){var Q=B(A.as,A.crossOrigin);s.d.m(M,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:Q,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else s.d.m(M)},Lt.requestFormReset=function(M){s.d.r(M)},Lt.unstable_batchedUpdates=function(M,A){return M(A)},Lt.useFormState=function(M,A,Q){return R.H.useFormState(M,A,Q)},Lt.useFormStatus=function(){return R.H.useHostTransitionStatus()},Lt.version="19.2.0",Lt}var ed;function t0(){if(ed)return Rf.exports;ed=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(i){console.error(i)}}return o(),Rf.exports=Pm(),Rf.exports}var ld;function e0(){if(ld)return Da;ld=1;var o=Im(),i=Lf(),f=t0();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 m(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function E(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 R(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 B(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 M(t){if(E(t)!==t)throw Error(s(188))}function A(t){var e=t.alternate;if(!e){if(e=E(t),e===null)throw Error(s(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return M(a),t;if(u===n)return M(a),e;u=u.sibling}throw Error(s(188))}if(l.return!==n.return)l=a,n=u;else{for(var c=!1,r=a.child;r;){if(r===l){c=!0,l=a,n=u;break}if(r===n){c=!0,n=a,l=u;break}r=r.sibling}if(!c){for(r=u.child;r;){if(r===l){c=!0,l=u,n=a;break}if(r===n){c=!0,n=u,l=a;break}r=r.sibling}if(!c)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function Q(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=Q(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,K=Symbol.for("react.element"),Yt=Symbol.for("react.transitional.element"),_t=Symbol.for("react.portal"),Ut=Symbol.for("react.fragment"),qe=Symbol.for("react.strict_mode"),It=Symbol.for("react.profiler"),el=Symbol.for("react.consumer"),jt=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),Oe=Symbol.for("react.suspense"),Gt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),kl=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.iterator;function Zt(t){return t===null||typeof t!="object"?null:(t=Me&&t[Me]||t["@@iterator"],typeof t=="function"?t:null)}var Ml=Symbol.for("react.client.reference");function He(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ml?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ut:return"Fragment";case It:return"Profiler";case qe:return"StrictMode";case Oe:return"Suspense";case Gt:return"SuspenseList";case Ne:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case _t:return"Portal";case jt:return t.displayName||"Context";case el:return(t._context.displayName||"Context")+".Consumer";case se:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case I:return e=t.displayName||null,e!==null?e:He(t.type)||"Memo";case Vt:e=t._payload,t=t._init;try{return He(t(e))}catch{}}return null}var _e=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ct=[],rt=-1;function y(t){return{current:t}}function N(t){0>rt||(t.current=ct[rt],ct[rt]=null,rt--)}function U(t,e){rt++,ct[rt]=t.current,t.current=e}var q=y(null),V=y(null),J=y(null),at=y(null);function Xt(t,e){switch(U(J,e),U(V,t),U(q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?gh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=gh(e),t=ph(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}N(q),U(q,t)}function pt(){N(q),N(V),N(J)}function Hn(t){t.memoizedState!==null&&U(at,t);var e=q.current,l=ph(e,t.type);e!==l&&(U(V,t),U(q,l))}function Ca(t){V.current===t&&(N(q),N(V)),at.current===t&&(N(at),za._currentValue=X)}var ui,Kf;function Rl(t){if(ui===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ui=e&&e[1]||"",Kf=-1<l.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+ui+t+Kf}var ii=!1;function ci(t,e){if(!t||ii)return"";ii=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(S){var b=S}Reflect.construct(t,[],O)}else{try{O.call()}catch(S){b=S}t.call(O.prototype)}}else{try{throw Error()}catch(S){b=S}(O=t())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(S){if(S&&b&&typeof S.stack=="string")return[S.stack,b.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),c=u[0],r=u[1];if(c&&r){var h=c.split(`
|
|
`),p=r.split(`
|
|
`);for(a=n=0;n<h.length&&!h[n].includes("DetermineComponentFrameRoot");)n++;for(;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;if(n===h.length||a===p.length)for(n=h.length-1,a=p.length-1;1<=n&&0<=a&&h[n]!==p[a];)a--;for(;1<=n&&0<=a;n--,a--)if(h[n]!==p[a]){if(n!==1||a!==1)do if(n--,a--,0>a||h[n]!==p[a]){var _=`
|
|
`+h[n].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=n&&0<=a);break}}}finally{ii=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Rl(l):""}function zd(t,e){switch(t.tag){case 26:case 27:case 5:return Rl(t.type);case 16:return Rl("Lazy");case 13:return t.child!==e&&e!==null?Rl("Suspense Fallback"):Rl("Suspense");case 19:return Rl("SuspenseList");case 0:case 15:return ci(t.type,!1);case 11:return ci(t.type.render,!1);case 1:return ci(t.type,!0);case 31:return Rl("Activity");default:return""}}function Jf(t){try{var e="",l=null;do e+=zd(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
|
|
Error generating stack: `+n.message+`
|
|
`+n.stack}}var fi=Object.prototype.hasOwnProperty,si=o.unstable_scheduleCallback,oi=o.unstable_cancelCallback,Od=o.unstable_shouldYield,Nd=o.unstable_requestPaint,Pt=o.unstable_now,Md=o.unstable_getCurrentPriorityLevel,kf=o.unstable_ImmediatePriority,Wf=o.unstable_UserBlockingPriority,Ba=o.unstable_NormalPriority,Rd=o.unstable_LowPriority,$f=o.unstable_IdlePriority,Dd=o.log,Ud=o.unstable_setDisableYieldValue,Yn=null,te=null;function ll(t){if(typeof Dd=="function"&&Ud(t),te&&typeof te.setStrictMode=="function")try{te.setStrictMode(Yn,t)}catch{}}var ee=Math.clz32?Math.clz32:Bd,xd=Math.log,Cd=Math.LN2;function Bd(t){return t>>>=0,t===0?32:31-(xd(t)/Cd|0)|0}var qa=256,Ha=262144,Ya=4194304;function Dl(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 ja(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,c=t.pingedLanes;t=t.warmLanes;var r=n&134217727;return r!==0?(n=r&~u,n!==0?a=Dl(n):(c&=r,c!==0?a=Dl(c):l||(l=r&~t,l!==0&&(a=Dl(l))))):(r=n&~u,r!==0?a=Dl(r):c!==0?a=Dl(c):l||(l=n&~t,l!==0&&(a=Dl(l)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:a}function jn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qd(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=Ya;return Ya<<=1,(Ya&62914560)===0&&(Ya=4194304),t}function ri(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ln(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Hd(t,e,l,n,a,u){var c=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 r=t.entanglements,h=t.expirationTimes,p=t.hiddenUpdates;for(l=c&~l;0<l;){var _=31-ee(l),O=1<<_;r[_]=0,h[_]=-1;var b=p[_];if(b!==null)for(p[_]=null,_=0;_<b.length;_++){var S=b[_];S!==null&&(S.lane&=-536870913)}l&=~O}n!==0&&If(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(c&~e))}function If(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-ee(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Pf(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-ee(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function ts(t,e){var l=e&-e;return l=(l&42)!==0?1:hi(l),(l&(t.suspendedLanes|e))!==0?0:l}function hi(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 di(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function es(){var t=D.p;return t!==0?t:(t=window.event,t===void 0?32:Qh(t.type))}function ls(t,e){var l=D.p;try{return D.p=t,e()}finally{D.p=l}}var nl=Math.random().toString(36).slice(2),xt="__reactFiber$"+nl,wt="__reactProps$"+nl,Wl="__reactContainer$"+nl,yi="__reactEvents$"+nl,Yd="__reactListeners$"+nl,jd="__reactHandles$"+nl,ns="__reactResources$"+nl,Xn="__reactMarker$"+nl;function mi(t){delete t[xt],delete t[wt],delete t[yi],delete t[Yd],delete t[jd]}function $l(t){var e=t[xt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Wl]||l[xt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=zh(t);t!==null;){if(l=t[xt])return l;t=zh(t)}return e}t=l,l=t.parentNode}return null}function Fl(t){if(t=t[xt]||t[Wl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Qn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function Il(t){var e=t[ns];return e||(e=t[ns]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Rt(t){t[Xn]=!0}var as=new Set,us={};function Ul(t,e){Pl(t,e),Pl(t+"Capture",e)}function Pl(t,e){for(us[t]=e,t=0;t<e.length;t++)as.add(e[t])}var Ld=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]*$"),is={},cs={};function Xd(t){return fi.call(cs,t)?!0:fi.call(is,t)?!1:Ld.test(t)?cs[t]=!0:(is[t]=!0,!1)}function La(t,e,l){if(Xd(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Xa(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 Ye(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function fs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Qd(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(c){l=""+c,u.call(this,c)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function vi(t){if(!t._valueTracker){var e=fs(t)?"checked":"value";t._valueTracker=Qd(t,e,""+t[e])}}function ss(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=fs(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function Qa(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 Gd=/[\n"\\]/g;function re(t){return t.replace(Gd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gi(t,e,l,n,a,u,c,r){t.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?t.type=c:t.removeAttribute("type"),e!=null?c==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+oe(e)):t.value!==""+oe(e)&&(t.value=""+oe(e)):c!=="submit"&&c!=="reset"||t.removeAttribute("value"),e!=null?pi(t,c,oe(e)):l!=null?pi(t,c,oe(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+oe(r):t.removeAttribute("name")}function os(t,e,l,n,a,u,c,r){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)){vi(t);return}l=l!=null?""+oe(l):"",e=e!=null?""+oe(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=r?t.checked:!!n,t.defaultChecked=!!n,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.name=c),vi(t)}function pi(t,e,l){e==="number"&&Qa(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function tn(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+oe(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function rs(t,e,l){if(e!=null&&(e=""+oe(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+oe(l):""}function hs(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(s(92));if(_e(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=oe(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),vi(t)}function en(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Vd=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 ds(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Vd.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function ys(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&ds(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&ds(t,u,e[u])}function bi(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"]]),wd=/^[\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 Ga(t){return wd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function je(){}var Si=null;function _i(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ln=null,nn=null;function ms(t){var e=Fl(t);if(e&&(t=e.stateNode)){var l=t[wt]||null;t:switch(t=e.stateNode,e.type){case"input":if(gi(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="'+re(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[wt]||null;if(!a)throw Error(s(90));gi(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&ss(n)}break t;case"textarea":rs(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&tn(t,!!l.multiple,e,!1)}}}var Ei=!1;function vs(t,e,l){if(Ei)return t(e,l);Ei=!0;try{var n=t(e);return n}finally{if(Ei=!1,(ln!==null||nn!==null)&&(Ru(),ln&&(e=ln,t=nn,nn=ln=null,ms(e),t)))for(e=0;e<t.length;e++)ms(t[e])}}function Gn(t,e){var l=t.stateNode;if(l===null)return null;var n=l[wt]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,e,typeof l));return l}var Le=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ti=!1;if(Le)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Ti=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Ti=!1}var al=null,Ai=null,Va=null;function gs(){if(Va)return Va;var t,e=Ai,l=e.length,n,a="value"in al?al.value:al.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var c=l-t;for(n=1;n<=c&&e[l-n]===a[u-n];n++);return Va=a.slice(t,1<n?1-n:void 0)}function Za(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 wa(){return!0}function ps(){return!1}function Kt(t){function e(l,n,a,u,c){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(l=t[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?wa:ps,this.isPropagationStopped=ps,this}return x(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=wa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=wa)},persist:function(){},isPersistent:wa}),e}var xl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ka=Kt(xl),Zn=x({},xl,{view:0,detail:0}),Kd=Kt(Zn),zi,Oi,wn,Ja=x({},Zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mi,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!==wn&&(wn&&t.type==="mousemove"?(zi=t.screenX-wn.screenX,Oi=t.screenY-wn.screenY):Oi=zi=0,wn=t),zi)},movementY:function(t){return"movementY"in t?t.movementY:Oi}}),bs=Kt(Ja),Jd=x({},Ja,{dataTransfer:0}),kd=Kt(Jd),Wd=x({},Zn,{relatedTarget:0}),Ni=Kt(Wd),$d=x({},xl,{animationName:0,elapsedTime:0,pseudoElement:0}),Fd=Kt($d),Id=x({},xl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Pd=Kt(Id),ty=x({},xl,{data:0}),Ss=Kt(ty),ey={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ly={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"},ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ay(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ny[t])?!!e[t]:!1}function Mi(){return ay}var uy=x({},Zn,{key:function(t){if(t.key){var e=ey[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Za(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ly[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mi,charCode:function(t){return t.type==="keypress"?Za(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Za(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),iy=Kt(uy),cy=x({},Ja,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_s=Kt(cy),fy=x({},Zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mi}),sy=Kt(fy),oy=x({},xl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ry=Kt(oy),hy=x({},Ja,{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}),dy=Kt(hy),yy=x({},xl,{newState:0,oldState:0}),my=Kt(yy),vy=[9,13,27,32],Ri=Le&&"CompositionEvent"in window,Kn=null;Le&&"documentMode"in document&&(Kn=document.documentMode);var gy=Le&&"TextEvent"in window&&!Kn,Es=Le&&(!Ri||Kn&&8<Kn&&11>=Kn),Ts=" ",As=!1;function zs(t,e){switch(t){case"keyup":return vy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Os(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var an=!1;function py(t,e){switch(t){case"compositionend":return Os(e);case"keypress":return e.which!==32?null:(As=!0,Ts);case"textInput":return t=e.data,t===Ts&&As?null:t;default:return null}}function by(t,e){if(an)return t==="compositionend"||!Ri&&zs(t,e)?(t=gs(),Va=Ai=al=null,an=!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 Es&&e.locale!=="ko"?null:e.data;default:return null}}var Sy={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 Ns(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Sy[t.type]:e==="textarea"}function Ms(t,e,l,n){ln?nn?nn.push(n):nn=[n]:ln=n,e=Hu(e,"onChange"),0<e.length&&(l=new Ka("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var Jn=null,kn=null;function _y(t){rh(t,0)}function ka(t){var e=Qn(t);if(ss(e))return t}function Rs(t,e){if(t==="change")return e}var Ds=!1;if(Le){var Di;if(Le){var Ui="oninput"in document;if(!Ui){var Us=document.createElement("div");Us.setAttribute("oninput","return;"),Ui=typeof Us.oninput=="function"}Di=Ui}else Di=!1;Ds=Di&&(!document.documentMode||9<document.documentMode)}function xs(){Jn&&(Jn.detachEvent("onpropertychange",Cs),kn=Jn=null)}function Cs(t){if(t.propertyName==="value"&&ka(kn)){var e=[];Ms(e,kn,t,_i(t)),vs(_y,e)}}function Ey(t,e,l){t==="focusin"?(xs(),Jn=e,kn=l,Jn.attachEvent("onpropertychange",Cs)):t==="focusout"&&xs()}function Ty(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ka(kn)}function Ay(t,e){if(t==="click")return ka(e)}function zy(t,e){if(t==="input"||t==="change")return ka(e)}function Oy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var le=typeof Object.is=="function"?Object.is:Oy;function Wn(t,e){if(le(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!fi.call(e,a)||!le(t[a],e[a]))return!1}return!0}function Bs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qs(t,e){var l=Bs(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Bs(l)}}function Hs(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Hs(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ys(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Qa(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=Qa(t.document)}return e}function xi(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 Ny=Le&&"documentMode"in document&&11>=document.documentMode,un=null,Ci=null,$n=null,Bi=!1;function js(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Bi||un==null||un!==Qa(n)||(n=un,"selectionStart"in n&&xi(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$n&&Wn($n,n)||($n=n,n=Hu(Ci,"onSelect"),0<n.length&&(e=new Ka("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=un)))}function Cl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var cn={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},qi={},Ls={};Le&&(Ls=document.createElement("div").style,"AnimationEvent"in window||(delete cn.animationend.animation,delete cn.animationiteration.animation,delete cn.animationstart.animation),"TransitionEvent"in window||delete cn.transitionend.transition);function Bl(t){if(qi[t])return qi[t];if(!cn[t])return t;var e=cn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ls)return qi[t]=e[l];return t}var Xs=Bl("animationend"),Qs=Bl("animationiteration"),Gs=Bl("animationstart"),My=Bl("transitionrun"),Ry=Bl("transitionstart"),Dy=Bl("transitioncancel"),Vs=Bl("transitionend"),Zs=new Map,Hi="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(" ");Hi.push("scrollEnd");function Ee(t,e){Zs.set(t,e),Ul(e,[t])}var Wa=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)},he=[],fn=0,Yi=0;function $a(){for(var t=fn,e=Yi=fn=0;e<t;){var l=he[e];he[e++]=null;var n=he[e];he[e++]=null;var a=he[e];he[e++]=null;var u=he[e];if(he[e++]=null,n!==null&&a!==null){var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}u!==0&&ws(l,a,u)}}function Fa(t,e,l,n){he[fn++]=t,he[fn++]=e,he[fn++]=l,he[fn++]=n,Yi|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function ji(t,e,l,n){return Fa(t,e,l,n),Ia(t)}function ql(t,e){return Fa(t,null,null,e),Ia(t)}function ws(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-ee(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function Ia(t){if(50<pa)throw pa=0,Jc=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var sn={};function Uy(t,e,l,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ne(t,e,l,n){return new Uy(t,e,l,n)}function Li(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Xe(t,e){var l=t.alternate;return l===null?(l=ne(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 Ks(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 Pa(t,e,l,n,a,u){var c=0;if(n=t,typeof t=="function")Li(t)&&(c=1);else if(typeof t=="string")c=Hm(t,l,q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ne:return t=ne(31,l,e,a),t.elementType=Ne,t.lanes=u,t;case Ut:return Hl(l.children,a,u,e);case qe:c=8,a|=24;break;case It:return t=ne(12,l,e,a|2),t.elementType=It,t.lanes=u,t;case Oe:return t=ne(13,l,e,a),t.elementType=Oe,t.lanes=u,t;case Gt:return t=ne(19,l,e,a),t.elementType=Gt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case jt:c=10;break t;case el:c=9;break t;case se:c=11;break t;case I:c=14;break t;case Vt:c=16,n=null;break t}c=29,l=Error(s(130,t===null?"null":typeof t,"")),n=null}return e=ne(c,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function Hl(t,e,l,n){return t=ne(7,t,n,e),t.lanes=l,t}function Xi(t,e,l){return t=ne(6,t,null,e),t.lanes=l,t}function Js(t){var e=ne(18,null,null,0);return e.stateNode=t,e}function Qi(t,e,l){return e=ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ks=new WeakMap;function de(t,e){if(typeof t=="object"&&t!==null){var l=ks.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Jf(e)},ks.set(t,e),e)}return{value:t,source:e,stack:Jf(e)}}var on=[],rn=0,tu=null,Fn=0,ye=[],me=0,ul=null,Re=1,De="";function Qe(t,e){on[rn++]=Fn,on[rn++]=tu,tu=t,Fn=e}function Ws(t,e,l){ye[me++]=Re,ye[me++]=De,ye[me++]=ul,ul=t;var n=Re;t=De;var a=32-ee(n)-1;n&=~(1<<a),l+=1;var u=32-ee(e)+a;if(30<u){var c=a-a%5;u=(n&(1<<c)-1).toString(32),n>>=c,a-=c,Re=1<<32-ee(e)+a|l<<a|n,De=u+t}else Re=1<<u|l<<a|n,De=t}function Gi(t){t.return!==null&&(Qe(t,1),Ws(t,1,0))}function Vi(t){for(;t===tu;)tu=on[--rn],on[rn]=null,Fn=on[--rn],on[rn]=null;for(;t===ul;)ul=ye[--me],ye[me]=null,De=ye[--me],ye[me]=null,Re=ye[--me],ye[me]=null}function $s(t,e){ye[me++]=Re,ye[me++]=De,ye[me++]=ul,Re=e.id,De=e.overflow,ul=t}var Ct=null,dt=null,P=!1,il=null,ve=!1,Zi=Error(s(519));function cl(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw In(de(e,t)),Zi}function Fs(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[xt]=t,e[wt]=n,l){case"dialog":W("cancel",e),W("close",e);break;case"iframe":case"object":case"embed":W("load",e);break;case"video":case"audio":for(l=0;l<Sa.length;l++)W(Sa[l],e);break;case"source":W("error",e);break;case"img":case"image":case"link":W("error",e),W("load",e);break;case"details":W("toggle",e);break;case"input":W("invalid",e),os(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":W("invalid",e);break;case"textarea":W("invalid",e),hs(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||mh(e.textContent,l)?(n.popover!=null&&(W("beforetoggle",e),W("toggle",e)),n.onScroll!=null&&W("scroll",e),n.onScrollEnd!=null&&W("scrollend",e),n.onClick!=null&&(e.onclick=je),e=!0):e=!1,e||cl(t,!0)}function Is(t){for(Ct=t.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:ve=!1;return;case 27:case 3:ve=!0;return;default:Ct=Ct.return}}function hn(t){if(t!==Ct)return!1;if(!P)return Is(t),P=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||sf(t.type,t.memoizedProps)),l=!l),l&&dt&&cl(t),Is(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));dt=Ah(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));dt=Ah(t)}else e===27?(e=dt,_l(t.type)?(t=yf,yf=null,dt=t):dt=e):dt=Ct?pe(t.stateNode.nextSibling):null;return!0}function Yl(){dt=Ct=null,P=!1}function wi(){var t=il;return t!==null&&($t===null?$t=t:$t.push.apply($t,t),il=null),t}function In(t){il===null?il=[t]:il.push(t)}var Ki=y(null),jl=null,Ge=null;function fl(t,e,l){U(Ki,e._currentValue),e._currentValue=l}function Ve(t){t._currentValue=Ki.current,N(Ki)}function Ji(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function ki(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var c=a.child;u=u.firstContext;t:for(;u!==null;){var r=u;u=a;for(var h=0;h<e.length;h++)if(r.context===e[h]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),Ji(u.return,l,t),n||(c=null);break t}u=r.next}}else if(a.tag===18){if(c=a.return,c===null)throw Error(s(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),Ji(c,l,t),c=null}else c=a.child;if(c!==null)c.return=a;else for(c=a;c!==null;){if(c===t){c=null;break}if(a=c.sibling,a!==null){a.return=c.return,c=a;break}c=c.return}a=c}}function dn(t,e,l,n){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var c=a.alternate;if(c===null)throw Error(s(387));if(c=c.memoizedProps,c!==null){var r=a.type;le(a.pendingProps.value,c.value)||(t!==null?t.push(r):t=[r])}}else if(a===at.current){if(c=a.alternate,c===null)throw Error(s(387));c.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(za):t=[za])}a=a.return}t!==null&&ki(e,t,l,n),e.flags|=262144}function eu(t){for(t=t.firstContext;t!==null;){if(!le(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ll(t){jl=t,Ge=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Bt(t){return Ps(jl,t)}function lu(t,e){return jl===null&&Ll(t),Ps(t,e)}function Ps(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ge===null){if(t===null)throw Error(s(308));Ge=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ge=Ge.next=e;return l}var xy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Cy=o.unstable_scheduleCallback,By=o.unstable_NormalPriority,Et={$$typeof:jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wi(){return{controller:new xy,data:new Map,refCount:0}}function Pn(t){t.refCount--,t.refCount===0&&Cy(By,function(){t.controller.abort()})}var ta=null,$i=0,yn=0,mn=null;function qy(t,e){if(ta===null){var l=ta=[];$i=0,yn=Pc(),mn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return $i++,e.then(to,to),e}function to(){if(--$i===0&&ta!==null){mn!==null&&(mn.status="fulfilled");var t=ta;ta=null,yn=0,mn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Hy(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var eo=T.S;T.S=function(t,e){Lr=Pt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&qy(t,e),eo!==null&&eo(t,e)};var Xl=y(null);function Fi(){var t=Xl.current;return t!==null?t:ht.pooledCache}function nu(t,e){e===null?U(Xl,Xl.current):U(Xl,e.pool)}function lo(){var t=Fi();return t===null?null:{parent:Et._currentValue,pool:t}}var vn=Error(s(460)),Ii=Error(s(474)),au=Error(s(542)),uu={then:function(){}};function no(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ao(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(je,je),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,io(t),t;default:if(typeof e.status=="string")e.then(je,je);else{if(t=ht,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,io(t),t}throw Gl=e,vn}}function Ql(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Gl=l,vn):l}}var Gl=null;function uo(){if(Gl===null)throw Error(s(459));var t=Gl;return Gl=null,t}function io(t){if(t===vn||t===au)throw Error(s(483))}var gn=null,ea=0;function iu(t){var e=ea;return ea+=1,gn===null&&(gn=[]),ao(gn,t,e)}function la(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function cu(t,e){throw e.$$typeof===K?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function co(t){function e(v,d){if(t){var g=v.deletions;g===null?(v.deletions=[d],v.flags|=16):g.push(d)}}function l(v,d){if(!t)return null;for(;d!==null;)e(v,d),d=d.sibling;return null}function n(v){for(var d=new Map;v!==null;)v.key!==null?d.set(v.key,v):d.set(v.index,v),v=v.sibling;return d}function a(v,d){return v=Xe(v,d),v.index=0,v.sibling=null,v}function u(v,d,g){return v.index=g,t?(g=v.alternate,g!==null?(g=g.index,g<d?(v.flags|=67108866,d):g):(v.flags|=67108866,d)):(v.flags|=1048576,d)}function c(v){return t&&v.alternate===null&&(v.flags|=67108866),v}function r(v,d,g,z){return d===null||d.tag!==6?(d=Xi(g,v.mode,z),d.return=v,d):(d=a(d,g),d.return=v,d)}function h(v,d,g,z){var j=g.type;return j===Ut?_(v,d,g.props.children,z,g.key):d!==null&&(d.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vt&&Ql(j)===d.type)?(d=a(d,g.props),la(d,g),d.return=v,d):(d=Pa(g.type,g.key,g.props,null,v.mode,z),la(d,g),d.return=v,d)}function p(v,d,g,z){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=Qi(g,v.mode,z),d.return=v,d):(d=a(d,g.children||[]),d.return=v,d)}function _(v,d,g,z,j){return d===null||d.tag!==7?(d=Hl(g,v.mode,z,j),d.return=v,d):(d=a(d,g),d.return=v,d)}function O(v,d,g){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Xi(""+d,v.mode,g),d.return=v,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Yt:return g=Pa(d.type,d.key,d.props,null,v.mode,g),la(g,d),g.return=v,g;case _t:return d=Qi(d,v.mode,g),d.return=v,d;case Vt:return d=Ql(d),O(v,d,g)}if(_e(d)||Zt(d))return d=Hl(d,v.mode,g,null),d.return=v,d;if(typeof d.then=="function")return O(v,iu(d),g);if(d.$$typeof===jt)return O(v,lu(v,d),g);cu(v,d)}return null}function b(v,d,g,z){var j=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return j!==null?null:r(v,d,""+g,z);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Yt:return g.key===j?h(v,d,g,z):null;case _t:return g.key===j?p(v,d,g,z):null;case Vt:return g=Ql(g),b(v,d,g,z)}if(_e(g)||Zt(g))return j!==null?null:_(v,d,g,z,null);if(typeof g.then=="function")return b(v,d,iu(g),z);if(g.$$typeof===jt)return b(v,d,lu(v,g),z);cu(v,g)}return null}function S(v,d,g,z,j){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return v=v.get(g)||null,r(d,v,""+z,j);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case Yt:return v=v.get(z.key===null?g:z.key)||null,h(d,v,z,j);case _t:return v=v.get(z.key===null?g:z.key)||null,p(d,v,z,j);case Vt:return z=Ql(z),S(v,d,g,z,j)}if(_e(z)||Zt(z))return v=v.get(g)||null,_(d,v,z,j,null);if(typeof z.then=="function")return S(v,d,g,iu(z),j);if(z.$$typeof===jt)return S(v,d,g,lu(d,z),j);cu(d,z)}return null}function C(v,d,g,z){for(var j=null,et=null,H=d,w=d=0,F=null;H!==null&&w<g.length;w++){H.index>w?(F=H,H=null):F=H.sibling;var lt=b(v,H,g[w],z);if(lt===null){H===null&&(H=F);break}t&&H&<.alternate===null&&e(v,H),d=u(lt,d,w),et===null?j=lt:et.sibling=lt,et=lt,H=F}if(w===g.length)return l(v,H),P&&Qe(v,w),j;if(H===null){for(;w<g.length;w++)H=O(v,g[w],z),H!==null&&(d=u(H,d,w),et===null?j=H:et.sibling=H,et=H);return P&&Qe(v,w),j}for(H=n(H);w<g.length;w++)F=S(H,v,w,g[w],z),F!==null&&(t&&F.alternate!==null&&H.delete(F.key===null?w:F.key),d=u(F,d,w),et===null?j=F:et.sibling=F,et=F);return t&&H.forEach(function(Ol){return e(v,Ol)}),P&&Qe(v,w),j}function L(v,d,g,z){if(g==null)throw Error(s(151));for(var j=null,et=null,H=d,w=d=0,F=null,lt=g.next();H!==null&&!lt.done;w++,lt=g.next()){H.index>w?(F=H,H=null):F=H.sibling;var Ol=b(v,H,lt.value,z);if(Ol===null){H===null&&(H=F);break}t&&H&&Ol.alternate===null&&e(v,H),d=u(Ol,d,w),et===null?j=Ol:et.sibling=Ol,et=Ol,H=F}if(lt.done)return l(v,H),P&&Qe(v,w),j;if(H===null){for(;!lt.done;w++,lt=g.next())lt=O(v,lt.value,z),lt!==null&&(d=u(lt,d,w),et===null?j=lt:et.sibling=lt,et=lt);return P&&Qe(v,w),j}for(H=n(H);!lt.done;w++,lt=g.next())lt=S(H,v,w,lt.value,z),lt!==null&&(t&<.alternate!==null&&H.delete(lt.key===null?w:lt.key),d=u(lt,d,w),et===null?j=lt:et.sibling=lt,et=lt);return t&&H.forEach(function(Jm){return e(v,Jm)}),P&&Qe(v,w),j}function ot(v,d,g,z){if(typeof g=="object"&&g!==null&&g.type===Ut&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Yt:t:{for(var j=g.key;d!==null;){if(d.key===j){if(j=g.type,j===Ut){if(d.tag===7){l(v,d.sibling),z=a(d,g.props.children),z.return=v,v=z;break t}}else if(d.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===Vt&&Ql(j)===d.type){l(v,d.sibling),z=a(d,g.props),la(z,g),z.return=v,v=z;break t}l(v,d);break}else e(v,d);d=d.sibling}g.type===Ut?(z=Hl(g.props.children,v.mode,z,g.key),z.return=v,v=z):(z=Pa(g.type,g.key,g.props,null,v.mode,z),la(z,g),z.return=v,v=z)}return c(v);case _t:t:{for(j=g.key;d!==null;){if(d.key===j)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){l(v,d.sibling),z=a(d,g.children||[]),z.return=v,v=z;break t}else{l(v,d);break}else e(v,d);d=d.sibling}z=Qi(g,v.mode,z),z.return=v,v=z}return c(v);case Vt:return g=Ql(g),ot(v,d,g,z)}if(_e(g))return C(v,d,g,z);if(Zt(g)){if(j=Zt(g),typeof j!="function")throw Error(s(150));return g=j.call(g),L(v,d,g,z)}if(typeof g.then=="function")return ot(v,d,iu(g),z);if(g.$$typeof===jt)return ot(v,d,lu(v,g),z);cu(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,d!==null&&d.tag===6?(l(v,d.sibling),z=a(d,g),z.return=v,v=z):(l(v,d),z=Xi(g,v.mode,z),z.return=v,v=z),c(v)):l(v,d)}return function(v,d,g,z){try{ea=0;var j=ot(v,d,g,z);return gn=null,j}catch(H){if(H===vn||H===au)throw H;var et=ne(29,H,null,v.mode);return et.lanes=z,et.return=v,et}finally{}}}var Vl=co(!0),fo=co(!1),sl=!1;function Pi(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(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 ol(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function rl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(nt&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=Ia(t),ws(t,null,l),e}return Fa(t,n,e,l),Ia(t)}function na(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Pf(t,l)}}function ec(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?a=u=e:u=u.next=e}else a=u=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var lc=!1;function aa(){if(lc){var t=mn;if(t!==null)throw t}}function ua(t,e,l,n){lc=!1;var a=t.updateQueue;sl=!1;var u=a.firstBaseUpdate,c=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var h=r,p=h.next;h.next=null,c===null?u=p:c.next=p,c=h;var _=t.alternate;_!==null&&(_=_.updateQueue,r=_.lastBaseUpdate,r!==c&&(r===null?_.firstBaseUpdate=p:r.next=p,_.lastBaseUpdate=h))}if(u!==null){var O=a.baseState;c=0,_=p=h=null,r=u;do{var b=r.lane&-536870913,S=b!==r.lane;if(S?($&b)===b:(n&b)===b){b!==0&&b===yn&&(lc=!0),_!==null&&(_=_.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var C=t,L=r;b=e;var ot=l;switch(L.tag){case 1:if(C=L.payload,typeof C=="function"){O=C.call(ot,O,b);break t}O=C;break t;case 3:C.flags=C.flags&-65537|128;case 0:if(C=L.payload,b=typeof C=="function"?C.call(ot,O,b):C,b==null)break t;O=x({},O,b);break t;case 2:sl=!0}}b=r.callback,b!==null&&(t.flags|=64,S&&(t.flags|=8192),S=a.callbacks,S===null?a.callbacks=[b]:S.push(b))}else S={lane:b,tag:r.tag,payload:r.payload,callback:r.callback,next:null},_===null?(p=_=S,h=O):_=_.next=S,c|=b;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;S=r,r=S.next,S.next=null,a.lastBaseUpdate=S,a.shared.pending=null}}while(!0);_===null&&(h=O),a.baseState=h,a.firstBaseUpdate=p,a.lastBaseUpdate=_,u===null&&(a.shared.lanes=0),vl|=c,t.lanes=c,t.memoizedState=O}}function so(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function oo(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)so(l[t],e)}var pn=y(null),fu=y(0);function ro(t,e){t=Ie,U(fu,t),U(pn,e),Ie=t|e.baseLanes}function nc(){U(fu,Ie),U(pn,pn.current)}function ac(){Ie=fu.current,N(pn),N(fu)}var ae=y(null),ge=null;function hl(t){var e=t.alternate;U(bt,bt.current&1),U(ae,t),ge===null&&(e===null||pn.current!==null||e.memoizedState!==null)&&(ge=t)}function uc(t){U(bt,bt.current),U(ae,t),ge===null&&(ge=t)}function ho(t){t.tag===22?(U(bt,bt.current),U(ae,t),ge===null&&(ge=t)):dl()}function dl(){U(bt,bt.current),U(ae,ae.current)}function ue(t){N(ae),ge===t&&(ge=null),N(bt)}var bt=y(0);function su(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||hf(l)||df(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 Ze=0,Z=null,ft=null,Tt=null,ou=!1,bn=!1,Zl=!1,ru=0,ia=0,Sn=null,Yy=0;function vt(){throw Error(s(321))}function ic(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!le(t[l],e[l]))return!1;return!0}function cc(t,e,l,n,a,u){return Ze=u,Z=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?$o:Ec,Zl=!1,u=l(n,a),Zl=!1,bn&&(u=mo(e,l,n,a)),yo(t),u}function yo(t){T.H=sa;var e=ft!==null&&ft.next!==null;if(Ze=0,Tt=ft=Z=null,ou=!1,ia=0,Sn=null,e)throw Error(s(300));t===null||At||(t=t.dependencies,t!==null&&eu(t)&&(At=!0))}function mo(t,e,l,n){Z=t;var a=0;do{if(bn&&(Sn=null),ia=0,bn=!1,25<=a)throw Error(s(301));if(a+=1,Tt=ft=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=Fo,u=e(l,n)}while(bn);return u}function jy(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?ca(e):e,t=t.useState()[0],(ft!==null?ft.memoizedState:null)!==t&&(Z.flags|=1024),e}function fc(){var t=ru!==0;return ru=0,t}function sc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function oc(t){if(ou){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ou=!1}Ze=0,Tt=ft=Z=null,bn=!1,ia=ru=0,Sn=null}function Qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Z.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function St(){if(ft===null){var t=Z.alternate;t=t!==null?t.memoizedState:null}else t=ft.next;var e=Tt===null?Z.memoizedState:Tt.next;if(e!==null)Tt=e,ft=t;else{if(t===null)throw Z.alternate===null?Error(s(467)):Error(s(310));ft=t,t={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},Tt===null?Z.memoizedState=Tt=t:Tt=Tt.next=t}return Tt}function hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ca(t){var e=ia;return ia+=1,Sn===null&&(Sn=[]),t=ao(Sn,t,e),e=Z,(Tt===null?e.memoizedState:Tt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?$o:Ec),t}function du(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ca(t);if(t.$$typeof===jt)return Bt(t)}throw Error(s(438,String(t)))}function rc(t){var e=null,l=Z.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=Z.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=hu(),Z.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=kl;return e.index++,l}function we(t,e){return typeof e=="function"?e(t):e}function yu(t){var e=St();return hc(e,ft,t)}function hc(t,e,l){var n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var c=a.next;a.next=u.next,u.next=c}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var r=c=null,h=null,p=e,_=!1;do{var O=p.lane&-536870913;if(O!==p.lane?($&O)===O:(Ze&O)===O){var b=p.revertLane;if(b===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),O===yn&&(_=!0);else if((Ze&b)===b){p=p.next,b===yn&&(_=!0);continue}else O={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},h===null?(r=h=O,c=u):h=h.next=O,Z.lanes|=b,vl|=b;O=p.action,Zl&&l(u,O),u=p.hasEagerState?p.eagerState:l(u,O)}else b={lane:O,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},h===null?(r=h=b,c=u):h=h.next=b,Z.lanes|=O,vl|=O;p=p.next}while(p!==null&&p!==e);if(h===null?c=u:h.next=r,!le(u,t.memoizedState)&&(At=!0,_&&(l=mn,l!==null)))throw l;t.memoizedState=u,t.baseState=c,t.baseQueue=h,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function dc(t){var e=St(),l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var c=a=a.next;do u=t(u,c.action),c=c.next;while(c!==a);le(u,e.memoizedState)||(At=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function vo(t,e,l){var n=Z,a=St(),u=P;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=e();var c=!le((ft||a).memoizedState,l);if(c&&(a.memoizedState=l,At=!0),a=a.queue,vc(bo.bind(null,n,a,t),[t]),a.getSnapshot!==e||c||Tt!==null&&Tt.memoizedState.tag&1){if(n.flags|=2048,_n(9,{destroy:void 0},po.bind(null,n,a,l,e),null),ht===null)throw Error(s(349));u||(Ze&127)!==0||go(n,e,l)}return l}function go(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=Z.updateQueue,e===null?(e=hu(),Z.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function po(t,e,l,n){e.value=l,e.getSnapshot=n,So(e)&&_o(t)}function bo(t,e,l){return l(function(){So(e)&&_o(t)})}function So(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!le(t,l)}catch{return!0}}function _o(t){var e=ql(t,2);e!==null&&Ft(e,t,2)}function yc(t){var e=Qt();if(typeof t=="function"){var l=t;if(t=l(),Zl){ll(!0);try{l()}finally{ll(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:we,lastRenderedState:t},e}function Eo(t,e,l,n){return t.baseState=l,hc(t,ft,typeof n=="function"?n:we)}function Ly(t,e,l,n,a){if(gu(t))throw Error(s(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};T.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,To(e,u)):(u.next=l.next,e.pending=l.next=u)}}function To(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=T.T,c={};T.T=c;try{var r=l(a,n),h=T.S;h!==null&&h(c,r),Ao(t,e,r)}catch(p){mc(t,e,p)}finally{u!==null&&c.types!==null&&(u.types=c.types),T.T=u}}else try{u=l(a,n),Ao(t,e,u)}catch(p){mc(t,e,p)}}function Ao(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){zo(t,e,n)},function(n){return mc(t,e,n)}):zo(t,e,l)}function zo(t,e,l){e.status="fulfilled",e.value=l,Oo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,To(t,l)))}function mc(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,Oo(e),e=e.next;while(e!==n)}t.action=null}function Oo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function No(t,e){return e}function Mo(t,e){if(P){var l=ht.formState;if(l!==null){t:{var n=Z;if(P){if(dt){e:{for(var a=dt,u=ve;a.nodeType!==8;){if(!u){a=null;break e}if(a=pe(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){dt=pe(a.nextSibling),n=a.data==="F!";break t}}cl(n)}n=!1}n&&(e=l[0])}}return l=Qt(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},l.queue=n,l=Jo.bind(null,Z,n),n.dispatch=l,n=yc(!1),u=_c.bind(null,Z,!1,n.queue),n=Qt(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Ly.bind(null,Z,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Ro(t){var e=St();return Do(e,ft,t)}function Do(t,e,l){if(e=hc(t,e,No)[0],t=yu(we)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=ca(e)}catch(c){throw c===vn?au:c}else n=e;e=St();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(Z.flags|=2048,_n(9,{destroy:void 0},Xy.bind(null,a,l),null)),[n,u,t]}function Xy(t,e){t.action=e}function Uo(t){var e=St(),l=ft;if(l!==null)return Do(e,l,t);St(),e=e.memoizedState,l=St();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function _n(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=Z.updateQueue,e===null&&(e=hu(),Z.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function xo(){return St().memoizedState}function mu(t,e,l,n){var a=Qt();Z.flags|=t,a.memoizedState=_n(1|e,{destroy:void 0},l,n===void 0?null:n)}function vu(t,e,l,n){var a=St();n=n===void 0?null:n;var u=a.memoizedState.inst;ft!==null&&n!==null&&ic(n,ft.memoizedState.deps)?a.memoizedState=_n(e,u,l,n):(Z.flags|=t,a.memoizedState=_n(1|e,u,l,n))}function Co(t,e){mu(8390656,8,t,e)}function vc(t,e){vu(2048,8,t,e)}function Qy(t){Z.flags|=4;var e=Z.updateQueue;if(e===null)e=hu(),Z.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Bo(t){var e=St().memoizedState;return Qy({ref:e,nextImpl:t}),function(){if((nt&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function qo(t,e){return vu(4,2,t,e)}function Ho(t,e){return vu(4,4,t,e)}function Yo(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 jo(t,e,l){l=l!=null?l.concat([t]):null,vu(4,4,Yo.bind(null,e,t),l)}function gc(){}function Lo(t,e){var l=St();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&ic(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Xo(t,e){var l=St();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&ic(e,n[1]))return n[0];if(n=t(),Zl){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[n,e],n}function pc(t,e,l){return l===void 0||(Ze&1073741824)!==0&&($&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Qr(),Z.lanes|=t,vl|=t,l)}function Qo(t,e,l,n){return le(l,e)?l:pn.current!==null?(t=pc(t,l,n),le(t,e)||(At=!0),t):(Ze&42)===0||(Ze&1073741824)!==0&&($&261930)===0?(At=!0,t.memoizedState=l):(t=Qr(),Z.lanes|=t,vl|=t,e)}function Go(t,e,l,n,a){var u=D.p;D.p=u!==0&&8>u?u:8;var c=T.T,r={};T.T=r,_c(t,!1,e,l);try{var h=a(),p=T.S;if(p!==null&&p(r,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var _=Hy(h,n);fa(t,e,_,fe(t))}else fa(t,e,n,fe(t))}catch(O){fa(t,e,{then:function(){},status:"rejected",reason:O},fe())}finally{D.p=u,c!==null&&r.types!==null&&(c.types=r.types),T.T=c}}function Gy(){}function bc(t,e,l,n){if(t.tag!==5)throw Error(s(476));var a=Vo(t).queue;Go(t,a,e,X,l===null?Gy:function(){return Zo(t),l(n)})}function Vo(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:we,lastRenderedState:X},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:we,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Zo(t){var e=Vo(t);e.next===null&&(e=t.alternate.memoizedState),fa(t,e.next.queue,{},fe())}function Sc(){return Bt(za)}function wo(){return St().memoizedState}function Ko(){return St().memoizedState}function Vy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=fe();t=ol(l);var n=rl(e,t,l);n!==null&&(Ft(n,e,l),na(n,e,l)),e={cache:Wi()},t.payload=e;return}e=e.return}}function Zy(t,e,l){var n=fe();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},gu(t)?ko(e,l):(l=ji(t,e,l,n),l!==null&&(Ft(l,t,n),Wo(l,e,n)))}function Jo(t,e,l){var n=fe();fa(t,e,l,n)}function fa(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(gu(t))ko(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var c=e.lastRenderedState,r=u(c,l);if(a.hasEagerState=!0,a.eagerState=r,le(r,c))return Fa(t,e,a,0),ht===null&&$a(),!1}catch{}finally{}if(l=ji(t,e,a,n),l!==null)return Ft(l,t,n),Wo(l,e,n),!0}return!1}function _c(t,e,l,n){if(n={lane:2,revertLane:Pc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gu(t)){if(e)throw Error(s(479))}else e=ji(t,l,n,2),e!==null&&Ft(e,t,2)}function gu(t){var e=t.alternate;return t===Z||e!==null&&e===Z}function ko(t,e){bn=ou=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Wo(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Pf(t,l)}}var sa={readContext:Bt,use:du,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};sa.useEffectEvent=vt;var $o={readContext:Bt,use:du,useCallback:function(t,e){return Qt().memoizedState=[t,e===void 0?null:e],t},useContext:Bt,useEffect:Co,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,mu(4194308,4,Yo.bind(null,e,t),l)},useLayoutEffect:function(t,e){return mu(4194308,4,t,e)},useInsertionEffect:function(t,e){mu(4,2,t,e)},useMemo:function(t,e){var l=Qt();e=e===void 0?null:e;var n=t();if(Zl){ll(!0);try{t()}finally{ll(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=Qt();if(l!==void 0){var a=l(e);if(Zl){ll(!0);try{l(e)}finally{ll(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Zy.bind(null,Z,t),[n.memoizedState,t]},useRef:function(t){var e=Qt();return t={current:t},e.memoizedState=t},useState:function(t){t=yc(t);var e=t.queue,l=Jo.bind(null,Z,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:gc,useDeferredValue:function(t,e){var l=Qt();return pc(l,t,e)},useTransition:function(){var t=yc(!1);return t=Go.bind(null,Z,t.queue,!0,!1),Qt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=Z,a=Qt();if(P){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),ht===null)throw Error(s(349));($&127)!==0||go(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,Co(bo.bind(null,n,u,t),[t]),n.flags|=2048,_n(9,{destroy:void 0},po.bind(null,n,u,l,e),null),l},useId:function(){var t=Qt(),e=ht.identifierPrefix;if(P){var l=De,n=Re;l=(n&~(1<<32-ee(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=ru++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Yy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Sc,useFormState:Mo,useActionState:Mo,useOptimistic:function(t){var e=Qt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=_c.bind(null,Z,!0,l),l.dispatch=e,[t,e]},useMemoCache:rc,useCacheRefresh:function(){return Qt().memoizedState=Vy.bind(null,Z)},useEffectEvent:function(t){var e=Qt(),l={impl:t};return e.memoizedState=l,function(){if((nt&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},Ec={readContext:Bt,use:du,useCallback:Lo,useContext:Bt,useEffect:vc,useImperativeHandle:jo,useInsertionEffect:qo,useLayoutEffect:Ho,useMemo:Xo,useReducer:yu,useRef:xo,useState:function(){return yu(we)},useDebugValue:gc,useDeferredValue:function(t,e){var l=St();return Qo(l,ft.memoizedState,t,e)},useTransition:function(){var t=yu(we)[0],e=St().memoizedState;return[typeof t=="boolean"?t:ca(t),e]},useSyncExternalStore:vo,useId:wo,useHostTransitionStatus:Sc,useFormState:Ro,useActionState:Ro,useOptimistic:function(t,e){var l=St();return Eo(l,ft,t,e)},useMemoCache:rc,useCacheRefresh:Ko};Ec.useEffectEvent=Bo;var Fo={readContext:Bt,use:du,useCallback:Lo,useContext:Bt,useEffect:vc,useImperativeHandle:jo,useInsertionEffect:qo,useLayoutEffect:Ho,useMemo:Xo,useReducer:dc,useRef:xo,useState:function(){return dc(we)},useDebugValue:gc,useDeferredValue:function(t,e){var l=St();return ft===null?pc(l,t,e):Qo(l,ft.memoizedState,t,e)},useTransition:function(){var t=dc(we)[0],e=St().memoizedState;return[typeof t=="boolean"?t:ca(t),e]},useSyncExternalStore:vo,useId:wo,useHostTransitionStatus:Sc,useFormState:Uo,useActionState:Uo,useOptimistic:function(t,e){var l=St();return ft!==null?Eo(l,ft,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:rc,useCacheRefresh:Ko};Fo.useEffectEvent=Bo;function Tc(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:x({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Ac={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=fe(),a=ol(n);a.payload=e,l!=null&&(a.callback=l),e=rl(t,a,n),e!==null&&(Ft(e,t,n),na(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=fe(),a=ol(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=rl(t,a,n),e!==null&&(Ft(e,t,n),na(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=fe(),n=ol(l);n.tag=2,e!=null&&(n.callback=e),e=rl(t,n,l),e!==null&&(Ft(e,t,l),na(e,t,l))}};function Io(t,e,l,n,a,u,c){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,c):e.prototype&&e.prototype.isPureReactComponent?!Wn(l,n)||!Wn(a,u):!0}function Po(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&Ac.enqueueReplaceState(e,e.state,null)}function wl(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=x({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function tr(t){Wa(t)}function er(t){console.error(t)}function lr(t){Wa(t)}function pu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function nr(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function zc(t,e,l){return l=ol(l),l.tag=3,l.payload={element:null},l.callback=function(){pu(t,e)},l}function ar(t){return t=ol(t),t.tag=3,t}function ur(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){nr(e,l,n)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(t.callback=function(){nr(e,l,n),typeof a!="function"&&(gl===null?gl=new Set([this]):gl.add(this));var r=n.stack;this.componentDidCatch(n.value,{componentStack:r!==null?r:""})})}function wy(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&dn(e,l,a,!0),l=ae.current,l!==null){switch(l.tag){case 31:case 13:return ge===null?Du():l.alternate===null&>===0&&(gt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===uu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),$c(t,n,a)),!1;case 22:return l.flags|=65536,n===uu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),$c(t,n,a)),!1}throw Error(s(435,l.tag))}return $c(t,n,a),Du(),!1}if(P)return e=ae.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Zi&&(t=Error(s(422),{cause:n}),In(de(t,l)))):(n!==Zi&&(e=Error(s(423),{cause:n}),In(de(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=de(n,l),a=zc(t.stateNode,n,a),ec(t,a),gt!==4&&(gt=2)),!1;var u=Error(s(520),{cause:n});if(u=de(u,l),ga===null?ga=[u]:ga.push(u),gt!==4&&(gt=2),e===null)return!0;n=de(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=zc(l.stateNode,n,t),ec(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"&&(gl===null||!gl.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=ar(a),ur(a,t,l,n),ec(l,a),!1}l=l.return}while(l!==null);return!1}var Oc=Error(s(461)),At=!1;function qt(t,e,l,n){e.child=t===null?fo(e,null,l,n):Vl(e,t.child,l,n)}function ir(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var c={};for(var r in n)r!=="ref"&&(c[r]=n[r])}else c=n;return Ll(e),n=cc(t,e,l,c,u,a),r=fc(),t!==null&&!At?(sc(t,e,a),Ke(t,e,a)):(P&&r&&Gi(e),e.flags|=1,qt(t,e,n,a),e.child)}function cr(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!Li(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,fr(t,e,u,n,a)):(t=Pa(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Bc(t,a)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Wn,l(c,n)&&t.ref===e.ref)return Ke(t,e,a)}return e.flags|=1,t=Xe(u,n),t.ref=e.ref,t.return=e,e.child=t}function fr(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(Wn(u,n)&&t.ref===e.ref)if(At=!1,e.pendingProps=n=u,Bc(t,a))(t.flags&131072)!==0&&(At=!0);else return e.lanes=t.lanes,Ke(t,e,a)}return Nc(t,e,l,n,a)}function sr(t,e,l,n){var a=n.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,e.child=null;return or(t,e,u,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&nu(e,u!==null?u.cachePool:null),u!==null?ro(e,u):nc(),ho(e);else return n=e.lanes=536870912,or(t,e,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(nu(e,u.cachePool),ro(e,u),dl(),e.memoizedState=null):(t!==null&&nu(e,null),nc(),dl());return qt(t,e,a,l),e.child}function oa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function or(t,e,l,n,a){var u=Fi();return u=u===null?null:{parent:Et._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&nu(e,null),nc(),ho(e),t!==null&&dn(t,e,n,!0),e.childLanes=a,null}function bu(t,e){return e=_u({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function rr(t,e,l){return Vl(e,t.child,null,l),t=bu(e,e.pendingProps),t.flags|=2,ue(e),e.memoizedState=null,t}function Ky(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(P){if(n.mode==="hidden")return t=bu(e,n),e.lanes=536870912,oa(null,t);if(uc(e),(t=dt)?(t=Th(t,ve),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ul!==null?{id:Re,overflow:De}:null,retryLane:536870912,hydrationErrors:null},l=Js(t),l.return=e,e.child=l,Ct=e,dt=null)):t=null,t===null)throw cl(e);return e.lanes=536870912,null}return bu(e,n)}var u=t.memoizedState;if(u!==null){var c=u.dehydrated;if(uc(e),a)if(e.flags&256)e.flags&=-257,e=rr(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(At||dn(t,e,l,!1),a=(l&t.childLanes)!==0,At||a){if(n=ht,n!==null&&(c=ts(n,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,ql(t,c),Ft(n,t,c),Oc;Du(),e=rr(t,e,l)}else t=u.treeContext,dt=pe(c.nextSibling),Ct=e,P=!0,il=null,ve=!1,t!==null&&$s(e,t),e=bu(e,n),e.flags|=4096;return e}return t=Xe(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Su(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 Nc(t,e,l,n,a){return Ll(e),l=cc(t,e,l,n,void 0,a),n=fc(),t!==null&&!At?(sc(t,e,a),Ke(t,e,a)):(P&&n&&Gi(e),e.flags|=1,qt(t,e,l,a),e.child)}function hr(t,e,l,n,a,u){return Ll(e),e.updateQueue=null,l=mo(e,n,l,a),yo(t),n=fc(),t!==null&&!At?(sc(t,e,u),Ke(t,e,u)):(P&&n&&Gi(e),e.flags|=1,qt(t,e,l,u),e.child)}function dr(t,e,l,n,a){if(Ll(e),e.stateNode===null){var u=sn,c=l.contextType;typeof c=="object"&&c!==null&&(u=Bt(c)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ac,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Pi(e),c=l.contextType,u.context=typeof c=="object"&&c!==null?Bt(c):sn,u.state=e.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Tc(e,l,c,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Ac.enqueueReplaceState(u,u.state,null),ua(e,n,u,a),aa(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var r=e.memoizedProps,h=wl(l,r);u.props=h;var p=u.context,_=l.contextType;c=sn,typeof _=="object"&&_!==null&&(c=Bt(_));var O=l.getDerivedStateFromProps;_=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,_||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||p!==c)&&Po(e,u,n,c),sl=!1;var b=e.memoizedState;u.state=b,ua(e,n,u,a),aa(),p=e.memoizedState,r||b!==p||sl?(typeof O=="function"&&(Tc(e,l,O,n),p=e.memoizedState),(h=sl||Io(e,l,h,n,b,p,c))?(_||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=n,e.memoizedState=p),u.props=n,u.state=p,u.context=c,n=h):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,tc(t,e),c=e.memoizedProps,_=wl(l,c),u.props=_,O=e.pendingProps,b=u.context,p=l.contextType,h=sn,typeof p=="object"&&p!==null&&(h=Bt(p)),r=l.getDerivedStateFromProps,(p=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==O||b!==h)&&Po(e,u,n,h),sl=!1,b=e.memoizedState,u.state=b,ua(e,n,u,a),aa();var S=e.memoizedState;c!==O||b!==S||sl||t!==null&&t.dependencies!==null&&eu(t.dependencies)?(typeof r=="function"&&(Tc(e,l,r,n),S=e.memoizedState),(_=sl||Io(e,l,_,n,b,S,h)||t!==null&&t.dependencies!==null&&eu(t.dependencies))?(p||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,S,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,S,h)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=S),u.props=n,u.state=S,u.context=h,n=_):(typeof u.componentDidUpdate!="function"||c===t.memoizedProps&&b===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===t.memoizedProps&&b===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Su(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=Vl(e,t.child,null,a),e.child=Vl(e,null,l,a)):qt(t,e,l,a),e.memoizedState=u.state,t=e.child):t=Ke(t,e,a),t}function yr(t,e,l,n){return Yl(),e.flags|=256,qt(t,e,l,n),e.child}var Mc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rc(t){return{baseLanes:t,cachePool:lo()}}function Dc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ce),t}function mr(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,c;if((c=u)||(c=t!==null&&t.memoizedState===null?!1:(bt.current&2)!==0),c&&(a=!0,e.flags&=-129),c=(e.flags&32)!==0,e.flags&=-33,t===null){if(P){if(a?hl(e):dl(),(t=dt)?(t=Th(t,ve),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ul!==null?{id:Re,overflow:De}:null,retryLane:536870912,hydrationErrors:null},l=Js(t),l.return=e,e.child=l,Ct=e,dt=null)):t=null,t===null)throw cl(e);return df(t)?e.lanes=32:e.lanes=536870912,null}var r=n.children;return n=n.fallback,a?(dl(),a=e.mode,r=_u({mode:"hidden",children:r},a),n=Hl(n,a,l,null),r.return=e,n.return=e,r.sibling=n,e.child=r,n=e.child,n.memoizedState=Rc(l),n.childLanes=Dc(t,c,l),e.memoizedState=Mc,oa(null,n)):(hl(e),Uc(e,r))}var h=t.memoizedState;if(h!==null&&(r=h.dehydrated,r!==null)){if(u)e.flags&256?(hl(e),e.flags&=-257,e=xc(t,e,l)):e.memoizedState!==null?(dl(),e.child=t.child,e.flags|=128,e=null):(dl(),r=n.fallback,a=e.mode,n=_u({mode:"visible",children:n.children},a),r=Hl(r,a,l,null),r.flags|=2,n.return=e,r.return=e,n.sibling=r,e.child=n,Vl(e,t.child,null,l),n=e.child,n.memoizedState=Rc(l),n.childLanes=Dc(t,c,l),e.memoizedState=Mc,e=oa(null,n));else if(hl(e),df(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var p=c.dgst;c=p,n=Error(s(419)),n.stack="",n.digest=c,In({value:n,source:null,stack:null}),e=xc(t,e,l)}else if(At||dn(t,e,l,!1),c=(l&t.childLanes)!==0,At||c){if(c=ht,c!==null&&(n=ts(c,l),n!==0&&n!==h.retryLane))throw h.retryLane=n,ql(t,n),Ft(c,t,n),Oc;hf(r)||Du(),e=xc(t,e,l)}else hf(r)?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,dt=pe(r.nextSibling),Ct=e,P=!0,il=null,ve=!1,t!==null&&$s(e,t),e=Uc(e,n.children),e.flags|=4096);return e}return a?(dl(),r=n.fallback,a=e.mode,h=t.child,p=h.sibling,n=Xe(h,{mode:"hidden",children:n.children}),n.subtreeFlags=h.subtreeFlags&65011712,p!==null?r=Xe(p,r):(r=Hl(r,a,l,null),r.flags|=2),r.return=e,n.return=e,n.sibling=r,e.child=n,oa(null,n),n=e.child,r=t.child.memoizedState,r===null?r=Rc(l):(a=r.cachePool,a!==null?(h=Et._currentValue,a=a.parent!==h?{parent:h,pool:h}:a):a=lo(),r={baseLanes:r.baseLanes|l,cachePool:a}),n.memoizedState=r,n.childLanes=Dc(t,c,l),e.memoizedState=Mc,oa(t.child,n)):(hl(e),l=t.child,t=l.sibling,l=Xe(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(c=e.deletions,c===null?(e.deletions=[t],e.flags|=16):c.push(t)),e.child=l,e.memoizedState=null,l)}function Uc(t,e){return e=_u({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function _u(t,e){return t=ne(22,t,null,e),t.lanes=0,t}function xc(t,e,l){return Vl(e,t.child,null,l),t=Uc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function vr(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ji(t.return,e,l)}function Cc(t,e,l,n,a,u){var c=t.memoizedState;c===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(c.isBackwards=e,c.rendering=null,c.renderingStartTime=0,c.last=n,c.tail=l,c.tailMode=a,c.treeForkCount=u)}function gr(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var c=bt.current,r=(c&2)!==0;if(r?(c=c&1|2,e.flags|=128):c&=1,U(bt,c),qt(t,e,n,l),n=P?Fn:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vr(t,l,e);else if(t.tag===19)vr(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(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&su(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Cc(e,!1,a,l,u,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&su(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Cc(e,!0,l,null,u,n);break;case"together":Cc(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Ke(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),vl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(dn(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=Xe(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Xe(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Bc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&eu(t)))}function Jy(t,e,l){switch(e.tag){case 3:Xt(e,e.stateNode.containerInfo),fl(e,Et,t.memoizedState.cache),Yl();break;case 27:case 5:Hn(e);break;case 4:Xt(e,e.stateNode.containerInfo);break;case 10:fl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,uc(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(hl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?mr(t,e,l):(hl(e),t=Ke(t,e,l),t!==null?t.sibling:null);hl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(dn(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return gr(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(bt,bt.current),n)break;return null;case 22:return e.lanes=0,sr(t,e,l,e.pendingProps);case 24:fl(e,Et,t.memoizedState.cache)}return Ke(t,e,l)}function pr(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)At=!0;else{if(!Bc(t,l)&&(e.flags&128)===0)return At=!1,Jy(t,e,l);At=(t.flags&131072)!==0}else At=!1,P&&(e.flags&1048576)!==0&&Ws(e,Fn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Ql(e.elementType),e.type=t,typeof t=="function")Li(t)?(n=wl(t,n),e.tag=1,e=dr(null,e,t,n,l)):(e.tag=0,e=Nc(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===se){e.tag=11,e=ir(null,e,t,n,l);break t}else if(a===I){e.tag=14,e=cr(null,e,t,n,l);break t}}throw e=He(t)||t,Error(s(306,e,""))}}return e;case 0:return Nc(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=wl(n,e.pendingProps),dr(t,e,n,a,l);case 3:t:{if(Xt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,tc(t,e),ua(e,n,null,l);var c=e.memoizedState;if(n=c.cache,fl(e,Et,n),n!==u.cache&&ki(e,[Et],l,!0),aa(),n=c.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:c.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=yr(t,e,n,l);break t}else if(n!==a){a=de(Error(s(424)),e),In(a),e=yr(t,e,n,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=pe(t.firstChild),Ct=e,P=!0,il=null,ve=!0,l=fo(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yl(),n===a){e=Ke(t,e,l);break t}qt(t,e,n,l)}e=e.child}return e;case 26:return Su(t,e),t===null?(l=Rh(e.type,null,e.pendingProps,null))?e.memoizedState=l:P||(l=e.type,t=e.pendingProps,n=Yu(J.current).createElement(l),n[xt]=e,n[wt]=t,Ht(n,l,t),Rt(n),e.stateNode=n):e.memoizedState=Rh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Hn(e),t===null&&P&&(n=e.stateNode=Oh(e.type,e.pendingProps,J.current),Ct=e,ve=!0,a=dt,_l(e.type)?(yf=a,dt=pe(n.firstChild)):dt=a),qt(t,e,e.pendingProps.children,l),Su(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&P&&((a=n=dt)&&(n=Tm(n,e.type,e.pendingProps,ve),n!==null?(e.stateNode=n,Ct=e,dt=pe(n.firstChild),ve=!1,a=!0):a=!1),a||cl(e)),Hn(e),a=e.type,u=e.pendingProps,c=t!==null?t.memoizedProps:null,n=u.children,sf(a,u)?n=null:c!==null&&sf(a,c)&&(e.flags|=32),e.memoizedState!==null&&(a=cc(t,e,jy,null,null,l),za._currentValue=a),Su(t,e),qt(t,e,n,l),e.child;case 6:return t===null&&P&&((t=l=dt)&&(l=Am(l,e.pendingProps,ve),l!==null?(e.stateNode=l,Ct=e,dt=null,t=!0):t=!1),t||cl(e)),null;case 13:return mr(t,e,l);case 4:return Xt(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Vl(e,null,n,l):qt(t,e,n,l),e.child;case 11:return ir(t,e,e.type,e.pendingProps,l);case 7:return qt(t,e,e.pendingProps,l),e.child;case 8:return qt(t,e,e.pendingProps.children,l),e.child;case 12:return qt(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,fl(e,e.type,n.value),qt(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,Ll(e),a=Bt(a),n=n(a),e.flags|=1,qt(t,e,n,l),e.child;case 14:return cr(t,e,e.type,e.pendingProps,l);case 15:return fr(t,e,e.type,e.pendingProps,l);case 19:return gr(t,e,l);case 31:return Ky(t,e,l);case 22:return sr(t,e,l,e.pendingProps);case 24:return Ll(e),n=Bt(Et),t===null?(a=Fi(),a===null&&(a=ht,u=Wi(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},Pi(e),fl(e,Et,a)):((t.lanes&l)!==0&&(tc(t,e),ua(e,null,null,l),aa()),a=t.memoizedState,u=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),fl(e,Et,n)):(n=u.cache,fl(e,Et,n),n!==a.cache&&ki(e,[Et],l,!0))),qt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function Je(t){t.flags|=4}function qc(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(wr())t.flags|=8192;else throw Gl=uu,Ii}else t.flags&=-16777217}function br(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Bh(e))if(wr())t.flags|=8192;else throw Gl=uu,Ii}function Eu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ff():536870912,t.lanes|=e,zn|=e)}function ra(t,e){if(!P)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 n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function ky(t,e,l){var n=e.pendingProps;switch(Vi(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(e),null;case 1:return yt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Ve(Et),pt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(hn(e)?Je(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,wi())),yt(e),null;case 26:var a=e.type,u=e.memoizedState;return t===null?(Je(e),u!==null?(yt(e),br(e,u)):(yt(e),qc(e,a,null,n,l))):u?u!==t.memoizedState?(Je(e),yt(e),br(e,u)):(yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Je(e),yt(e),qc(e,a,t,n,l)),null;case 27:if(Ca(e),l=J.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Je(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return yt(e),null}t=q.current,hn(e)?Fs(e):(t=Oh(a,n,l),e.stateNode=t,Je(e))}return yt(e),null;case 5:if(Ca(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Je(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return yt(e),null}if(u=q.current,hn(e))Fs(e);else{var c=Yu(J.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?c.createElement("select",{is:n.is}):c.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?c.createElement(a,{is:n.is}):c.createElement(a)}}u[xt]=e,u[wt]=n;t:for(c=e.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break t;for(;c.sibling===null;){if(c.return===null||c.return===e)break t;c=c.return}c.sibling.return=c.return,c=c.sibling}e.stateNode=u;t:switch(Ht(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Je(e)}}return yt(e),qc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Je(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(s(166));if(t=J.current,hn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Ct,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[xt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||mh(t.nodeValue,l)),t||cl(e,!0)}else t=Yu(t).createTextNode(n),t[xt]=e,e.stateNode=t}return yt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=hn(e),l!==null){if(t===null){if(!n)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[xt]=e}else Yl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;yt(e),t=!1}else l=wi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ue(e),e):(ue(e),null);if((e.flags&128)!==0)throw Error(s(558))}return yt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=hn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[xt]=e}else Yl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;yt(e),a=!1}else a=wi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ue(e),e):(ue(e),null)}return ue(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Eu(e,e.updateQueue),yt(e),null);case 4:return pt(),t===null&&nf(e.stateNode.containerInfo),yt(e),null;case 10:return Ve(e.type),yt(e),null;case 19:if(N(bt),n=e.memoizedState,n===null)return yt(e),null;if(a=(e.flags&128)!==0,u=n.rendering,u===null)if(a)ra(n,!1);else{if(gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=su(t),u!==null){for(e.flags|=128,ra(n,!1),t=u.updateQueue,e.updateQueue=t,Eu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Ks(l,t),l=l.sibling;return U(bt,bt.current&1|2),P&&Qe(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Pt()>Nu&&(e.flags|=128,a=!0,ra(n,!1),e.lanes=4194304)}else{if(!a)if(t=su(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Eu(e,t),ra(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!P)return yt(e),null}else 2*Pt()-n.renderingStartTime>Nu&&l!==536870912&&(e.flags|=128,a=!0,ra(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Pt(),t.sibling=null,l=bt.current,U(bt,a?l&1|2:l&1),P&&Qe(e,n.treeForkCount),t):(yt(e),null);case 22:case 23:return ue(e),ac(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(yt(e),e.subtreeFlags&6&&(e.flags|=8192)):yt(e),l=e.updateQueue,l!==null&&Eu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&N(Xl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ve(Et),yt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Wy(t,e){switch(Vi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ve(Et),pt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ca(e),null;case 31:if(e.memoizedState!==null){if(ue(e),e.alternate===null)throw Error(s(340));Yl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ue(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));Yl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return N(bt),null;case 4:return pt(),null;case 10:return Ve(e.type),null;case 22:case 23:return ue(e),ac(),t!==null&&N(Xl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ve(Et),null;case 25:return null;default:return null}}function Sr(t,e){switch(Vi(e),e.tag){case 3:Ve(Et),pt();break;case 26:case 27:case 5:Ca(e);break;case 4:pt();break;case 31:e.memoizedState!==null&&ue(e);break;case 13:ue(e);break;case 19:N(bt);break;case 10:Ve(e.type);break;case 22:case 23:ue(e),ac(),t!==null&&N(Xl);break;case 24:Ve(Et)}}function ha(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var u=l.create,c=l.inst;n=u(),c.destroy=n}l=l.next}while(l!==a)}}catch(r){it(e,e.return,r)}}function yl(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var c=n.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,a=e;var h=l,p=r;try{p()}catch(_){it(a,h,_)}}}n=n.next}while(n!==u)}}catch(_){it(e,e.return,_)}}function _r(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{oo(e,l)}catch(n){it(t,t.return,n)}}}function Er(t,e,l){l.props=wl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){it(t,e,n)}}function da(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){it(t,e,a)}}function Ue(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){it(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){it(t,e,a)}else l.current=null}function Tr(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){it(t,t.return,a)}}function Hc(t,e,l){try{var n=t.stateNode;gm(n,t.type,l,e),n[wt]=e}catch(a){it(t,t.return,a)}}function Ar(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_l(t.type)||t.tag===4}function Yc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ar(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&&_l(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 jc(t,e,l){var n=t.tag;if(n===5||n===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=je));else if(n!==4&&(n===27&&_l(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(jc(t,e,l),t=t.sibling;t!==null;)jc(t,e,l),t=t.sibling}function Tu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&_l(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Tu(t,e,l),t=t.sibling;t!==null;)Tu(t,e,l),t=t.sibling}function zr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Ht(e,n,l),e[xt]=t,e[wt]=l}catch(u){it(t,t.return,u)}}var ke=!1,zt=!1,Lc=!1,Or=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function $y(t,e){if(t=t.containerInfo,cf=Zu,t=Ys(t),xi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var c=0,r=-1,h=-1,p=0,_=0,O=t,b=null;e:for(;;){for(var S;O!==l||a!==0&&O.nodeType!==3||(r=c+a),O!==u||n!==0&&O.nodeType!==3||(h=c+n),O.nodeType===3&&(c+=O.nodeValue.length),(S=O.firstChild)!==null;)b=O,O=S;for(;;){if(O===t)break e;if(b===l&&++p===a&&(r=c),b===u&&++_===n&&(h=c),(S=O.nextSibling)!==null)break;O=b,b=O.parentNode}O=S}l=r===-1||h===-1?null:{start:r,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(ff={focusedElem:t,selectionRange:l},Zu=!1,Dt=e;Dt!==null;)if(e=Dt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Dt=t;else for(;Dt!==null;){switch(e=Dt,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++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var C=wl(l.type,a);t=n.getSnapshotBeforeUpdate(C,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(L){it(l,l.return,L)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)rf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rf(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,Dt=t;break}Dt=e.return}}function Nr(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:$e(t,l),n&4&&ha(5,l);break;case 1:if($e(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(c){it(l,l.return,c)}else{var a=wl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(c){it(l,l.return,c)}}n&64&&_r(l),n&512&&da(l,l.return);break;case 3:if($e(t,l),n&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{oo(t,e)}catch(c){it(l,l.return,c)}}break;case 27:e===null&&n&4&&zr(l);case 26:case 5:$e(t,l),e===null&&n&4&&Tr(l),n&512&&da(l,l.return);break;case 12:$e(t,l);break;case 31:$e(t,l),n&4&&Dr(t,l);break;case 13:$e(t,l),n&4&&Ur(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=um.bind(null,l),zm(t,l))));break;case 22:if(n=l.memoizedState!==null||ke,!n){e=e!==null&&e.memoizedState!==null||zt,a=ke;var u=zt;ke=n,(zt=e)&&!u?Fe(t,l,(l.subtreeFlags&8772)!==0):$e(t,l),ke=a,zt=u}break;case 30:break;default:$e(t,l)}}function Mr(t){var e=t.alternate;e!==null&&(t.alternate=null,Mr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&mi(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 mt=null,Jt=!1;function We(t,e,l){for(l=l.child;l!==null;)Rr(t,e,l),l=l.sibling}function Rr(t,e,l){if(te&&typeof te.onCommitFiberUnmount=="function")try{te.onCommitFiberUnmount(Yn,l)}catch{}switch(l.tag){case 26:zt||Ue(l,e),We(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:zt||Ue(l,e);var n=mt,a=Jt;_l(l.type)&&(mt=l.stateNode,Jt=!1),We(t,e,l),Ea(l.stateNode),mt=n,Jt=a;break;case 5:zt||Ue(l,e);case 6:if(n=mt,a=Jt,mt=null,We(t,e,l),mt=n,Jt=a,mt!==null)if(Jt)try{(mt.nodeType===9?mt.body:mt.nodeName==="HTML"?mt.ownerDocument.body:mt).removeChild(l.stateNode)}catch(u){it(l,e,u)}else try{mt.removeChild(l.stateNode)}catch(u){it(l,e,u)}break;case 18:mt!==null&&(Jt?(t=mt,_h(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Cn(t)):_h(mt,l.stateNode));break;case 4:n=mt,a=Jt,mt=l.stateNode.containerInfo,Jt=!0,We(t,e,l),mt=n,Jt=a;break;case 0:case 11:case 14:case 15:yl(2,l,e),zt||yl(4,l,e),We(t,e,l);break;case 1:zt||(Ue(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Er(l,e,n)),We(t,e,l);break;case 21:We(t,e,l);break;case 22:zt=(n=zt)||l.memoizedState!==null,We(t,e,l),zt=n;break;default:We(t,e,l)}}function Dr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Cn(t)}catch(l){it(e,e.return,l)}}}function Ur(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Cn(t)}catch(l){it(e,e.return,l)}}function Fy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Or),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Or),e;default:throw Error(s(435,t.tag))}}function Au(t,e){var l=Fy(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=im.bind(null,t,n);n.then(a,a)}})}function kt(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=t,c=e,r=c;t:for(;r!==null;){switch(r.tag){case 27:if(_l(r.type)){mt=r.stateNode,Jt=!1;break t}break;case 5:mt=r.stateNode,Jt=!1;break t;case 3:case 4:mt=r.stateNode.containerInfo,Jt=!0;break t}r=r.return}if(mt===null)throw Error(s(160));Rr(u,c,a),mt=null,Jt=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)xr(e,t),e=e.sibling}var Te=null;function xr(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:kt(e,t),Wt(t),n&4&&(yl(3,t,t.return),ha(3,t),yl(5,t,t.return));break;case 1:kt(e,t),Wt(t),n&512&&(zt||l===null||Ue(l,l.return)),n&64&&ke&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Te;if(kt(e,t),Wt(t),n&512&&(zt||l===null||Ue(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Xn]||u[xt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),Ht(u,n,l),u[xt]=t,Rt(u),n=u;break t;case"link":var c=xh("link","href",a).get(n+(l.href||""));if(c){for(var r=0;r<c.length;r++)if(u=c[r],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)){c.splice(r,1);break e}}u=a.createElement(n),Ht(u,n,l),a.head.appendChild(u);break;case"meta":if(c=xh("meta","content",a).get(n+(l.content||""))){for(r=0;r<c.length;r++)if(u=c[r],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)){c.splice(r,1);break e}}u=a.createElement(n),Ht(u,n,l),a.head.appendChild(u);break;default:throw Error(s(468,n))}u[xt]=t,Rt(u),n=u}t.stateNode=n}else Ch(a,t.type,t.stateNode);else t.stateNode=Uh(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Ch(a,t.type,t.stateNode):Uh(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Hc(t,t.memoizedProps,l.memoizedProps)}break;case 27:kt(e,t),Wt(t),n&512&&(zt||l===null||Ue(l,l.return)),l!==null&&n&4&&Hc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(kt(e,t),Wt(t),n&512&&(zt||l===null||Ue(l,l.return)),t.flags&32){a=t.stateNode;try{en(a,"")}catch(C){it(t,t.return,C)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Hc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(Lc=!0);break;case 6:if(kt(e,t),Wt(t),n&4){if(t.stateNode===null)throw Error(s(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(C){it(t,t.return,C)}}break;case 3:if(Xu=null,a=Te,Te=ju(e.containerInfo),kt(e,t),Te=a,Wt(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Cn(e.containerInfo)}catch(C){it(t,t.return,C)}Lc&&(Lc=!1,Cr(t));break;case 4:n=Te,Te=ju(t.stateNode.containerInfo),kt(e,t),Wt(t),Te=n;break;case 12:kt(e,t),Wt(t);break;case 31:kt(e,t),Wt(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Au(t,n)));break;case 13:kt(e,t),Wt(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ou=Pt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Au(t,n)));break;case 22:a=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,p=ke,_=zt;if(ke=p||a,zt=_||h,kt(e,t),zt=_,ke=p,Wt(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||h||ke||zt||Kl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(u=h.stateNode,a)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=h.stateNode;var O=h.memoizedProps.style,b=O!=null&&O.hasOwnProperty("display")?O.display:null;r.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(C){it(h,h.return,C)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(C){it(h,h.return,C)}}}else if(e.tag===18){if(l===null){h=e;try{var S=h.stateNode;a?Eh(S,!0):Eh(h.stateNode,!1)}catch(C){it(h,h.return,C)}}}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}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Au(t,l))));break;case 19:kt(e,t),Wt(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Au(t,n)));break;case 30:break;case 21:break;default:kt(e,t),Wt(t)}}function Wt(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Ar(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,u=Yc(t);Tu(t,u,a);break;case 5:var c=l.stateNode;l.flags&32&&(en(c,""),l.flags&=-33);var r=Yc(t);Tu(t,r,c);break;case 3:case 4:var h=l.stateNode.containerInfo,p=Yc(t);jc(t,p,h);break;default:throw Error(s(161))}}catch(_){it(t,t.return,_)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Cr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Cr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function $e(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Nr(t,e.alternate,e),e=e.sibling}function Kl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:yl(4,e,e.return),Kl(e);break;case 1:Ue(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Er(e,e.return,l),Kl(e);break;case 27:Ea(e.stateNode);case 26:case 5:Ue(e,e.return),Kl(e);break;case 22:e.memoizedState===null&&Kl(e);break;case 30:Kl(e);break;default:Kl(e)}t=t.sibling}}function Fe(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,c=u.flags;switch(u.tag){case 0:case 11:case 15:Fe(a,u,l),ha(4,u);break;case 1:if(Fe(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(p){it(n,n.return,p)}if(n=u,a=n.updateQueue,a!==null){var r=n.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)so(h[a],r)}catch(p){it(n,n.return,p)}}l&&c&64&&_r(u),da(u,u.return);break;case 27:zr(u);case 26:case 5:Fe(a,u,l),l&&n===null&&c&4&&Tr(u),da(u,u.return);break;case 12:Fe(a,u,l);break;case 31:Fe(a,u,l),l&&c&4&&Dr(a,u);break;case 13:Fe(a,u,l),l&&c&4&&Ur(a,u);break;case 22:u.memoizedState===null&&Fe(a,u,l),da(u,u.return);break;case 30:break;default:Fe(a,u,l)}e=e.sibling}}function Xc(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&&Pn(l))}function Qc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Pn(t))}function Ae(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Br(t,e,l,n),e=e.sibling}function Br(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ae(t,e,l,n),a&2048&&ha(9,e);break;case 1:Ae(t,e,l,n);break;case 3:Ae(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Pn(t)));break;case 12:if(a&2048){Ae(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,c=u.id,r=u.onPostCommit;typeof r=="function"&&r(c,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){it(e,e.return,h)}}else Ae(t,e,l,n);break;case 31:Ae(t,e,l,n);break;case 13:Ae(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,c=e.alternate,e.memoizedState!==null?u._visibility&2?Ae(t,e,l,n):ya(t,e):u._visibility&2?Ae(t,e,l,n):(u._visibility|=2,En(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&Xc(c,e);break;case 24:Ae(t,e,l,n),a&2048&&Qc(e.alternate,e);break;default:Ae(t,e,l,n)}}function En(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,c=e,r=l,h=n,p=c.flags;switch(c.tag){case 0:case 11:case 15:En(u,c,r,h,a),ha(8,c);break;case 23:break;case 22:var _=c.stateNode;c.memoizedState!==null?_._visibility&2?En(u,c,r,h,a):ya(u,c):(_._visibility|=2,En(u,c,r,h,a)),a&&p&2048&&Xc(c.alternate,c);break;case 24:En(u,c,r,h,a),a&&p&2048&&Qc(c.alternate,c);break;default:En(u,c,r,h,a)}e=e.sibling}}function ya(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:ya(l,n),a&2048&&Xc(n.alternate,n);break;case 24:ya(l,n),a&2048&&Qc(n.alternate,n);break;default:ya(l,n)}e=e.sibling}}var ma=8192;function Tn(t,e,l){if(t.subtreeFlags&ma)for(t=t.child;t!==null;)qr(t,e,l),t=t.sibling}function qr(t,e,l){switch(t.tag){case 26:Tn(t,e,l),t.flags&ma&&t.memoizedState!==null&&Ym(l,Te,t.memoizedState,t.memoizedProps);break;case 5:Tn(t,e,l);break;case 3:case 4:var n=Te;Te=ju(t.stateNode.containerInfo),Tn(t,e,l),Te=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=ma,ma=16777216,Tn(t,e,l),ma=n):Tn(t,e,l));break;default:Tn(t,e,l)}}function Hr(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 va(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Dt=n,jr(n,t)}Hr(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yr(t),t=t.sibling}function Yr(t){switch(t.tag){case 0:case 11:case 15:va(t),t.flags&2048&&yl(9,t,t.return);break;case 3:va(t);break;case 12:va(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,zu(t)):va(t);break;default:va(t)}}function zu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Dt=n,jr(n,t)}Hr(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:yl(8,e,e.return),zu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,zu(e));break;default:zu(e)}t=t.sibling}}function jr(t,e){for(;Dt!==null;){var l=Dt;switch(l.tag){case 0:case 11:case 15:yl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Pn(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Dt=n;else t:for(l=t;Dt!==null;){n=Dt;var a=n.sibling,u=n.return;if(Mr(n),n===l){Dt=null;break t}if(a!==null){a.return=u,Dt=a;break t}Dt=u}}}var Iy={getCacheForType:function(t){var e=Bt(Et),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Bt(Et).controller.signal}},Py=typeof WeakMap=="function"?WeakMap:Map,nt=0,ht=null,k=null,$=0,ut=0,ie=null,ml=!1,An=!1,Gc=!1,Ie=0,gt=0,vl=0,Jl=0,Vc=0,ce=0,zn=0,ga=null,$t=null,Zc=!1,Ou=0,Lr=0,Nu=1/0,Mu=null,gl=null,Nt=0,pl=null,On=null,Pe=0,wc=0,Kc=null,Xr=null,pa=0,Jc=null;function fe(){return(nt&2)!==0&&$!==0?$&-$:T.T!==null?Pc():es()}function Qr(){if(ce===0)if(($&536870912)===0||P){var t=Ha;Ha<<=1,(Ha&3932160)===0&&(Ha=262144),ce=t}else ce=536870912;return t=ae.current,t!==null&&(t.flags|=32),ce}function Ft(t,e,l){(t===ht&&(ut===2||ut===9)||t.cancelPendingCommit!==null)&&(Nn(t,0),bl(t,$,ce,!1)),Ln(t,l),((nt&2)===0||t!==ht)&&(t===ht&&((nt&2)===0&&(Jl|=l),gt===4&&bl(t,$,ce,!1)),xe(t))}function Gr(t,e,l){if((nt&6)!==0)throw Error(s(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||jn(t,e),a=n?lm(t,e):Wc(t,e,!0),u=n;do{if(a===0){An&&!n&&bl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!tm(l)){a=Wc(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var c=0;else c=t.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){e=c;t:{var r=t;a=ga;var h=r.current.memoizedState.isDehydrated;if(h&&(Nn(r,c).flags|=256),c=Wc(r,c,!1),c!==2){if(Gc&&!h){r.errorRecoveryDisabledLanes|=u,Jl|=u,a=4;break t}u=$t,$t=a,u!==null&&($t===null?$t=u:$t.push.apply($t,u))}a=c}if(u=!1,a!==2)continue}}if(a===1){Nn(t,0),bl(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:bl(n,e,ce,!ml);break t;case 2:$t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Ou+300-Pt(),10<a)){if(bl(n,e,ce,!ml),ja(n,0,!0)!==0)break t;Pe=e,n.timeoutHandle=bh(Vr.bind(null,n,l,$t,Mu,Zc,e,ce,Jl,zn,ml,u,"Throttled",-0,0),a);break t}Vr(n,l,$t,Mu,Zc,e,ce,Jl,zn,ml,u,null,-0,0)}}break}while(!0);xe(t)}function Vr(t,e,l,n,a,u,c,r,h,p,_,O,b,S){if(t.timeoutHandle=-1,O=e.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:je},qr(e,u,O);var C=(u&62914560)===u?Ou-Pt():(u&4194048)===u?Lr-Pt():0;if(C=jm(O,C),C!==null){Pe=u,t.cancelPendingCommit=C(Fr.bind(null,t,e,u,l,n,a,c,r,h,_,O,null,b,S)),bl(t,u,c,!p);return}}Fr(t,e,u,l,n,a,c,r,h)}function tm(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 n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!le(u(),a))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 bl(t,e,l,n){e&=~Vc,e&=~Jl,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-ee(a),c=1<<u;n[u]=-1,a&=~c}l!==0&&If(t,l,e)}function Ru(){return(nt&6)===0?(ba(0),!1):!0}function kc(){if(k!==null){if(ut===0)var t=k.return;else t=k,Ge=jl=null,oc(t),gn=null,ea=0,t=k;for(;t!==null;)Sr(t.alternate,t),t=t.return;k=null}}function Nn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Sm(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Pe=0,kc(),ht=t,k=l=Xe(t.current,null),$=e,ut=0,ie=null,ml=!1,An=jn(t,e),Gc=!1,zn=ce=Vc=Jl=vl=gt=0,$t=ga=null,Zc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-ee(n),u=1<<a;e|=t[a],n&=~u}return Ie=e,$a(),l}function Zr(t,e){Z=null,T.H=sa,e===vn||e===au?(e=uo(),ut=3):e===Ii?(e=uo(),ut=4):ut=e===Oc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ie=e,k===null&&(gt=1,pu(t,de(e,t.current)))}function wr(){var t=ae.current;return t===null?!0:($&4194048)===$?ge===null:($&62914560)===$||($&536870912)!==0?t===ge:!1}function Kr(){var t=T.H;return T.H=sa,t===null?sa:t}function Jr(){var t=T.A;return T.A=Iy,t}function Du(){gt=4,ml||($&4194048)!==$&&ae.current!==null||(An=!0),(vl&134217727)===0&&(Jl&134217727)===0||ht===null||bl(ht,$,ce,!1)}function Wc(t,e,l){var n=nt;nt|=2;var a=Kr(),u=Jr();(ht!==t||$!==e)&&(Mu=null,Nn(t,e)),e=!1;var c=gt;t:do try{if(ut!==0&&k!==null){var r=k,h=ie;switch(ut){case 8:kc(),c=6;break t;case 3:case 2:case 9:case 6:ae.current===null&&(e=!0);var p=ut;if(ut=0,ie=null,Mn(t,r,h,p),l&&An){c=0;break t}break;default:p=ut,ut=0,ie=null,Mn(t,r,h,p)}}em(),c=gt;break}catch(_){Zr(t,_)}while(!0);return e&&t.shellSuspendCounter++,Ge=jl=null,nt=n,T.H=a,T.A=u,k===null&&(ht=null,$=0,$a()),c}function em(){for(;k!==null;)kr(k)}function lm(t,e){var l=nt;nt|=2;var n=Kr(),a=Jr();ht!==t||$!==e?(Mu=null,Nu=Pt()+500,Nn(t,e)):An=jn(t,e);t:do try{if(ut!==0&&k!==null){e=k;var u=ie;e:switch(ut){case 1:ut=0,ie=null,Mn(t,e,u,1);break;case 2:case 9:if(no(u)){ut=0,ie=null,Wr(e);break}e=function(){ut!==2&&ut!==9||ht!==t||(ut=7),xe(t)},u.then(e,e);break t;case 3:ut=7;break t;case 4:ut=5;break t;case 7:no(u)?(ut=0,ie=null,Wr(e)):(ut=0,ie=null,Mn(t,e,u,7));break;case 5:var c=null;switch(k.tag){case 26:c=k.memoizedState;case 5:case 27:var r=k;if(c?Bh(c):r.stateNode.complete){ut=0,ie=null;var h=r.sibling;if(h!==null)k=h;else{var p=r.return;p!==null?(k=p,Uu(p)):k=null}break e}}ut=0,ie=null,Mn(t,e,u,5);break;case 6:ut=0,ie=null,Mn(t,e,u,6);break;case 8:kc(),gt=6;break t;default:throw Error(s(462))}}nm();break}catch(_){Zr(t,_)}while(!0);return Ge=jl=null,T.H=n,T.A=a,nt=l,k!==null?0:(ht=null,$=0,$a(),gt)}function nm(){for(;k!==null&&!Od();)kr(k)}function kr(t){var e=pr(t.alternate,t,Ie);t.memoizedProps=t.pendingProps,e===null?Uu(t):k=e}function Wr(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=hr(l,e,e.pendingProps,e.type,void 0,$);break;case 11:e=hr(l,e,e.pendingProps,e.type.render,e.ref,$);break;case 5:oc(e);default:Sr(l,e),e=k=Ks(e,Ie),e=pr(l,e,Ie)}t.memoizedProps=t.pendingProps,e===null?Uu(t):k=e}function Mn(t,e,l,n){Ge=jl=null,oc(e),gn=null,ea=0;var a=e.return;try{if(wy(t,a,e,l,$)){gt=1,pu(t,de(l,t.current)),k=null;return}}catch(u){if(a!==null)throw k=a,u;gt=1,pu(t,de(l,t.current)),k=null;return}e.flags&32768?(P||n===1?t=!0:An||($&536870912)!==0?t=!1:(ml=t=!0,(n===2||n===9||n===3||n===6)&&(n=ae.current,n!==null&&n.tag===13&&(n.flags|=16384))),$r(e,t)):Uu(e)}function Uu(t){var e=t;do{if((e.flags&32768)!==0){$r(e,ml);return}t=e.return;var l=ky(e.alternate,e,Ie);if(l!==null){k=l;return}if(e=e.sibling,e!==null){k=e;return}k=e=t}while(e!==null);gt===0&&(gt=5)}function $r(t,e){do{var l=Wy(t.alternate,t);if(l!==null){l.flags&=32767,k=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){k=t;return}k=t=l}while(t!==null);gt=6,k=null}function Fr(t,e,l,n,a,u,c,r,h){t.cancelPendingCommit=null;do xu();while(Nt!==0);if((nt&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=Yi,Hd(t,l,u,c,r,h),t===ht&&(k=ht=null,$=0),On=e,pl=t,Pe=l,wc=u,Kc=a,Xr=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,cm(Ba,function(){return lh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,a=D.p,D.p=2,c=nt,nt|=4;try{$y(t,e,l)}finally{nt=c,D.p=a,T.T=n}}Nt=1,Ir(),Pr(),th()}}function Ir(){if(Nt===1){Nt=0;var t=pl,e=On,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=D.p;D.p=2;var a=nt;nt|=4;try{xr(e,t);var u=ff,c=Ys(t.containerInfo),r=u.focusedElem,h=u.selectionRange;if(c!==r&&r&&r.ownerDocument&&Hs(r.ownerDocument.documentElement,r)){if(h!==null&&xi(r)){var p=h.start,_=h.end;if(_===void 0&&(_=p),"selectionStart"in r)r.selectionStart=p,r.selectionEnd=Math.min(_,r.value.length);else{var O=r.ownerDocument||document,b=O&&O.defaultView||window;if(b.getSelection){var S=b.getSelection(),C=r.textContent.length,L=Math.min(h.start,C),ot=h.end===void 0?L:Math.min(h.end,C);!S.extend&&L>ot&&(c=ot,ot=L,L=c);var v=qs(r,L),d=qs(r,ot);if(v&&d&&(S.rangeCount!==1||S.anchorNode!==v.node||S.anchorOffset!==v.offset||S.focusNode!==d.node||S.focusOffset!==d.offset)){var g=O.createRange();g.setStart(v.node,v.offset),S.removeAllRanges(),L>ot?(S.addRange(g),S.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),S.addRange(g))}}}}for(O=[],S=r;S=S.parentNode;)S.nodeType===1&&O.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<O.length;r++){var z=O[r];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}Zu=!!cf,ff=cf=null}finally{nt=a,D.p=n,T.T=l}}t.current=e,Nt=2}}function Pr(){if(Nt===2){Nt=0;var t=pl,e=On,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=D.p;D.p=2;var a=nt;nt|=4;try{Nr(t,e.alternate,e)}finally{nt=a,D.p=n,T.T=l}}Nt=3}}function th(){if(Nt===4||Nt===3){Nt=0,Nd();var t=pl,e=On,l=Pe,n=Xr;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Nt=5:(Nt=0,On=pl=null,eh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(gl=null),di(l),e=e.stateNode,te&&typeof te.onCommitFiberRoot=="function")try{te.onCommitFiberRoot(Yn,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=T.T,a=D.p,D.p=2,T.T=null;try{for(var u=t.onRecoverableError,c=0;c<n.length;c++){var r=n[c];u(r.value,{componentStack:r.stack})}}finally{T.T=e,D.p=a}}(Pe&3)!==0&&xu(),xe(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===Jc?pa++:(pa=0,Jc=t):pa=0,ba(0)}}function eh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Pn(e)))}function xu(){return Ir(),Pr(),th(),lh()}function lh(){if(Nt!==5)return!1;var t=pl,e=wc;wc=0;var l=di(Pe),n=T.T,a=D.p;try{D.p=32>l?32:l,T.T=null,l=Kc,Kc=null;var u=pl,c=Pe;if(Nt=0,On=pl=null,Pe=0,(nt&6)!==0)throw Error(s(331));var r=nt;if(nt|=4,Yr(u.current),Br(u,u.current,c,l),nt=r,ba(0,!1),te&&typeof te.onPostCommitFiberRoot=="function")try{te.onPostCommitFiberRoot(Yn,u)}catch{}return!0}finally{D.p=a,T.T=n,eh(t,e)}}function nh(t,e,l){e=de(l,e),e=zc(t.stateNode,e,2),t=rl(t,e,2),t!==null&&(Ln(t,2),xe(t))}function it(t,e,l){if(t.tag===3)nh(t,t,l);else for(;e!==null;){if(e.tag===3){nh(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(gl===null||!gl.has(n))){t=de(l,t),l=ar(2),n=rl(e,l,2),n!==null&&(ur(l,n,e,t),Ln(n,2),xe(n));break}}e=e.return}}function $c(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new Py;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(Gc=!0,a.add(l),t=am.bind(null,t,e,l),e.then(t,t))}function am(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,ht===t&&($&l)===l&&(gt===4||gt===3&&($&62914560)===$&&300>Pt()-Ou?(nt&2)===0&&Nn(t,0):Vc|=l,zn===$&&(zn=0)),xe(t)}function ah(t,e){e===0&&(e=Ff()),t=ql(t,e),t!==null&&(Ln(t,e),xe(t))}function um(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),ah(t,l)}function im(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(e),ah(t,l)}function cm(t,e){return si(t,e)}var Cu=null,Rn=null,Fc=!1,Bu=!1,Ic=!1,Sl=0;function xe(t){t!==Rn&&t.next===null&&(Rn===null?Cu=Rn=t:Rn=Rn.next=t),Bu=!0,Fc||(Fc=!0,sm())}function ba(t,e){if(!Ic&&Bu){Ic=!0;do for(var l=!1,n=Cu;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var c=n.suspendedLanes,r=n.pingedLanes;u=(1<<31-ee(42|t)+1)-1,u&=a&~(c&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,fh(n,u))}else u=$,u=ja(n,n===ht?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||jn(n,u)||(l=!0,fh(n,u));n=n.next}while(l);Ic=!1}}function fm(){uh()}function uh(){Bu=Fc=!1;var t=0;Sl!==0&&bm()&&(t=Sl);for(var e=Pt(),l=null,n=Cu;n!==null;){var a=n.next,u=ih(n,e);u===0?(n.next=null,l===null?Cu=a:l.next=a,a===null&&(Rn=l)):(l=n,(t!==0||(u&3)!==0)&&(Bu=!0)),n=a}Nt!==0&&Nt!==5||ba(t),Sl!==0&&(Sl=0)}function ih(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var c=31-ee(u),r=1<<c,h=a[c];h===-1?((r&l)===0||(r&n)!==0)&&(a[c]=qd(r,e)):h<=e&&(t.expiredLanes|=r),u&=~r}if(e=ht,l=$,l=ja(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(ut===2||ut===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&oi(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||jn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&oi(n),di(l)){case 2:case 8:l=Wf;break;case 32:l=Ba;break;case 268435456:l=$f;break;default:l=Ba}return n=ch.bind(null,t),l=si(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&oi(n),t.callbackPriority=2,t.callbackNode=null,2}function ch(t,e){if(Nt!==0&&Nt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(xu()&&t.callbackNode!==l)return null;var n=$;return n=ja(t,t===ht?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Gr(t,n,e),ih(t,Pt()),t.callbackNode!=null&&t.callbackNode===l?ch.bind(null,t):null)}function fh(t,e){if(xu())return null;Gr(t,e,!0)}function sm(){_m(function(){(nt&6)!==0?si(kf,fm):uh()})}function Pc(){if(Sl===0){var t=yn;t===0&&(t=qa,qa<<=1,(qa&261888)===0&&(qa=256)),Sl=t}return Sl}function sh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ga(""+t)}function oh(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 om(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=sh((a[wt]||null).action),c=n.submitter;c&&(e=(e=c[wt]||null)?sh(e.formAction):c.getAttribute("formAction"),e!==null&&(u=e,c=null));var r=new Ka("action","action",null,n,a);t.push({event:r,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Sl!==0){var h=c?oh(a,c):new FormData(a);bc(l,{pending:!0,data:h,method:a.method,action:u},null,h)}}else typeof u=="function"&&(r.preventDefault(),h=c?oh(a,c):new FormData(a),bc(l,{pending:!0,data:h,method:a.method,action:u},u,h))},currentTarget:a}]})}}for(var tf=0;tf<Hi.length;tf++){var ef=Hi[tf],rm=ef.toLowerCase(),hm=ef[0].toUpperCase()+ef.slice(1);Ee(rm,"on"+hm)}Ee(Xs,"onAnimationEnd"),Ee(Qs,"onAnimationIteration"),Ee(Gs,"onAnimationStart"),Ee("dblclick","onDoubleClick"),Ee("focusin","onFocus"),Ee("focusout","onBlur"),Ee(My,"onTransitionRun"),Ee(Ry,"onTransitionStart"),Ee(Dy,"onTransitionCancel"),Ee(Vs,"onTransitionEnd"),Pl("onMouseEnter",["mouseout","mouseover"]),Pl("onMouseLeave",["mouseout","mouseover"]),Pl("onPointerEnter",["pointerout","pointerover"]),Pl("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sa="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(" "),dm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Sa));function rh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var c=n.length-1;0<=c;c--){var r=n[c],h=r.instance,p=r.currentTarget;if(r=r.listener,h!==u&&a.isPropagationStopped())break t;u=r,a.currentTarget=p;try{u(a)}catch(_){Wa(_)}a.currentTarget=null,u=h}else for(c=0;c<n.length;c++){if(r=n[c],h=r.instance,p=r.currentTarget,r=r.listener,h!==u&&a.isPropagationStopped())break t;u=r,a.currentTarget=p;try{u(a)}catch(_){Wa(_)}a.currentTarget=null,u=h}}}}function W(t,e){var l=e[yi];l===void 0&&(l=e[yi]=new Set);var n=t+"__bubble";l.has(n)||(hh(e,t,2,!1),l.add(n))}function lf(t,e,l){var n=0;e&&(n|=4),hh(l,t,n,e)}var qu="_reactListening"+Math.random().toString(36).slice(2);function nf(t){if(!t[qu]){t[qu]=!0,as.forEach(function(l){l!=="selectionchange"&&(dm.has(l)||lf(l,!1,t),lf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qu]||(e[qu]=!0,lf("selectionchange",!1,e))}}function hh(t,e,l,n){switch(Qh(e)){case 2:var a=Qm;break;case 8:a=Gm;break;default:a=bf}l=a.bind(null,e,l,t),a=void 0,!Ti||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function af(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var c=n.tag;if(c===3||c===4){var r=n.stateNode.containerInfo;if(r===a)break;if(c===4)for(c=n.return;c!==null;){var h=c.tag;if((h===3||h===4)&&c.stateNode.containerInfo===a)return;c=c.return}for(;r!==null;){if(c=$l(r),c===null)return;if(h=c.tag,h===5||h===6||h===26||h===27){n=u=c;continue t}r=r.parentNode}}n=n.return}vs(function(){var p=u,_=_i(l),O=[];t:{var b=Zs.get(t);if(b!==void 0){var S=Ka,C=t;switch(t){case"keypress":if(Za(l)===0)break t;case"keydown":case"keyup":S=iy;break;case"focusin":C="focus",S=Ni;break;case"focusout":C="blur",S=Ni;break;case"beforeblur":case"afterblur":S=Ni;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":S=bs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=kd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=sy;break;case Xs:case Qs:case Gs:S=Fd;break;case Vs:S=ry;break;case"scroll":case"scrollend":S=Kd;break;case"wheel":S=dy;break;case"copy":case"cut":case"paste":S=Pd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=_s;break;case"toggle":case"beforetoggle":S=my}var L=(e&4)!==0,ot=!L&&(t==="scroll"||t==="scrollend"),v=L?b!==null?b+"Capture":null:b;L=[];for(var d=p,g;d!==null;){var z=d;if(g=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||g===null||v===null||(z=Gn(d,v),z!=null&&L.push(_a(d,z,g))),ot)break;d=d.return}0<L.length&&(b=new S(b,C,null,l,_),O.push({event:b,listeners:L}))}}if((e&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",S=t==="mouseout"||t==="pointerout",b&&l!==Si&&(C=l.relatedTarget||l.fromElement)&&($l(C)||C[Wl]))break t;if((S||b)&&(b=_.window===_?_:(b=_.ownerDocument)?b.defaultView||b.parentWindow:window,S?(C=l.relatedTarget||l.toElement,S=p,C=C?$l(C):null,C!==null&&(ot=E(C),L=C.tag,C!==ot||L!==5&&L!==27&&L!==6)&&(C=null)):(S=null,C=p),S!==C)){if(L=bs,z="onMouseLeave",v="onMouseEnter",d="mouse",(t==="pointerout"||t==="pointerover")&&(L=_s,z="onPointerLeave",v="onPointerEnter",d="pointer"),ot=S==null?b:Qn(S),g=C==null?b:Qn(C),b=new L(z,d+"leave",S,l,_),b.target=ot,b.relatedTarget=g,z=null,$l(_)===p&&(L=new L(v,d+"enter",C,l,_),L.target=g,L.relatedTarget=ot,z=L),ot=z,S&&C)e:{for(L=ym,v=S,d=C,g=0,z=v;z;z=L(z))g++;z=0;for(var j=d;j;j=L(j))z++;for(;0<g-z;)v=L(v),g--;for(;0<z-g;)d=L(d),z--;for(;g--;){if(v===d||d!==null&&v===d.alternate){L=v;break e}v=L(v),d=L(d)}L=null}else L=null;S!==null&&dh(O,b,S,L,!1),C!==null&&ot!==null&&dh(O,ot,C,L,!0)}}t:{if(b=p?Qn(p):window,S=b.nodeName&&b.nodeName.toLowerCase(),S==="select"||S==="input"&&b.type==="file")var et=Rs;else if(Ns(b))if(Ds)et=zy;else{et=Ty;var H=Ey}else S=b.nodeName,!S||S.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?p&&bi(p.elementType)&&(et=Rs):et=Ay;if(et&&(et=et(t,p))){Ms(O,et,l,_);break t}H&&H(t,b,p),t==="focusout"&&p&&b.type==="number"&&p.memoizedProps.value!=null&&pi(b,"number",b.value)}switch(H=p?Qn(p):window,t){case"focusin":(Ns(H)||H.contentEditable==="true")&&(un=H,Ci=p,$n=null);break;case"focusout":$n=Ci=un=null;break;case"mousedown":Bi=!0;break;case"contextmenu":case"mouseup":case"dragend":Bi=!1,js(O,l,_);break;case"selectionchange":if(Ny)break;case"keydown":case"keyup":js(O,l,_)}var w;if(Ri)t:{switch(t){case"compositionstart":var F="onCompositionStart";break t;case"compositionend":F="onCompositionEnd";break t;case"compositionupdate":F="onCompositionUpdate";break t}F=void 0}else an?zs(t,l)&&(F="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(F="onCompositionStart");F&&(Es&&l.locale!=="ko"&&(an||F!=="onCompositionStart"?F==="onCompositionEnd"&&an&&(w=gs()):(al=_,Ai="value"in al?al.value:al.textContent,an=!0)),H=Hu(p,F),0<H.length&&(F=new Ss(F,t,null,l,_),O.push({event:F,listeners:H}),w?F.data=w:(w=Os(l),w!==null&&(F.data=w)))),(w=gy?py(t,l):by(t,l))&&(F=Hu(p,"onBeforeInput"),0<F.length&&(H=new Ss("onBeforeInput","beforeinput",null,l,_),O.push({event:H,listeners:F}),H.data=w)),om(O,t,p,l,_)}rh(O,e)})}function _a(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Hu(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Gn(t,l),a!=null&&n.unshift(_a(t,a,u)),a=Gn(t,e),a!=null&&n.push(_a(t,a,u))),t.tag===3)return n;t=t.return}return[]}function ym(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function dh(t,e,l,n,a){for(var u=e._reactName,c=[];l!==null&&l!==n;){var r=l,h=r.alternate,p=r.stateNode;if(r=r.tag,h!==null&&h===n)break;r!==5&&r!==26&&r!==27||p===null||(h=p,a?(p=Gn(l,u),p!=null&&c.unshift(_a(l,p,h))):a||(p=Gn(l,u),p!=null&&c.push(_a(l,p,h)))),l=l.return}c.length!==0&&t.push({event:e,listeners:c})}var mm=/\r\n?/g,vm=/\u0000|\uFFFD/g;function yh(t){return(typeof t=="string"?t:""+t).replace(mm,`
|
|
`).replace(vm,"")}function mh(t,e){return e=yh(e),yh(t)===e}function st(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||en(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&en(t,""+n);break;case"className":Xa(t,"class",n);break;case"tabIndex":Xa(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Xa(t,l,n);break;case"style":ys(t,n,u);break;case"data":if(e!=="object"){Xa(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Ga(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="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"&&st(t,e,"name",a.name,a,null),st(t,e,"formEncType",a.formEncType,a,null),st(t,e,"formMethod",a.formMethod,a,null),st(t,e,"formTarget",a.formTarget,a,null)):(st(t,e,"encType",a.encType,a,null),st(t,e,"method",a.method,a,null),st(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=Ga(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=je);break;case"onScroll":n!=null&&W("scroll",t);break;case"onScrollEnd":n!=null&&W("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=Ga(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":W("beforetoggle",t),W("toggle",t),La(t,"popover",n);break;case"xlinkActuate":Ye(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Ye(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Ye(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Ye(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Ye(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Ye(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Ye(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Ye(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Ye(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":La(t,"is",n);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,La(t,l,n))}}function uf(t,e,l,n,a,u){switch(l){case"style":ys(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof n=="string"?en(t,n):(typeof n=="number"||typeof n=="bigint")&&en(t,""+n);break;case"onScroll":n!=null&&W("scroll",t);break;case"onScrollEnd":n!=null&&W("scrollend",t);break;case"onClick":n!=null&&(t.onclick=je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!us.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),u=t[wt]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):La(t,l,n)}}}function Ht(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":W("error",t),W("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:st(t,e,u,c,l,null)}}a&&st(t,e,"srcSet",l.srcSet,l,null),n&&st(t,e,"src",l.src,l,null);return;case"input":W("invalid",t);var r=u=c=a=null,h=null,p=null;for(n in l)if(l.hasOwnProperty(n)){var _=l[n];if(_!=null)switch(n){case"name":a=_;break;case"type":c=_;break;case"checked":h=_;break;case"defaultChecked":p=_;break;case"value":u=_;break;case"defaultValue":r=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:st(t,e,n,_,l,null)}}os(t,u,r,h,p,c,a,!1);return;case"select":W("invalid",t),n=c=u=null;for(a in l)if(l.hasOwnProperty(a)&&(r=l[a],r!=null))switch(a){case"value":u=r;break;case"defaultValue":c=r;break;case"multiple":n=r;default:st(t,e,a,r,l,null)}e=u,l=c,t.multiple=!!n,e!=null?tn(t,!!n,e,!1):l!=null&&tn(t,!!n,l,!0);return;case"textarea":W("invalid",t),u=a=n=null;for(c in l)if(l.hasOwnProperty(c)&&(r=l[c],r!=null))switch(c){case"value":n=r;break;case"defaultValue":a=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:st(t,e,c,r,l,null)}hs(t,n,a,u);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(n=l[h],n!=null))switch(h){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:st(t,e,h,n,l,null)}return;case"dialog":W("beforetoggle",t),W("toggle",t),W("cancel",t),W("close",t);break;case"iframe":case"object":W("load",t);break;case"video":case"audio":for(n=0;n<Sa.length;n++)W(Sa[n],t);break;case"image":W("error",t),W("load",t);break;case"details":W("toggle",t);break;case"embed":case"source":case"link":W("error",t),W("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(p in l)if(l.hasOwnProperty(p)&&(n=l[p],n!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:st(t,e,p,n,l,null)}return;default:if(bi(e)){for(_ in l)l.hasOwnProperty(_)&&(n=l[_],n!==void 0&&uf(t,e,_,n,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(n=l[r],n!=null&&st(t,e,r,n,l,null))}function gm(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,c=null,r=null,h=null,p=null,_=null;for(S in l){var O=l[S];if(l.hasOwnProperty(S)&&O!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":h=O;default:n.hasOwnProperty(S)||st(t,e,S,null,n,O)}}for(var b in n){var S=n[b];if(O=l[b],n.hasOwnProperty(b)&&(S!=null||O!=null))switch(b){case"type":u=S;break;case"name":a=S;break;case"checked":p=S;break;case"defaultChecked":_=S;break;case"value":c=S;break;case"defaultValue":r=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(137,e));break;default:S!==O&&st(t,e,b,S,n,O)}}gi(t,c,r,h,p,_,u,a);return;case"select":S=c=r=b=null;for(u in l)if(h=l[u],l.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":S=h;default:n.hasOwnProperty(u)||st(t,e,u,null,n,h)}for(a in n)if(u=n[a],h=l[a],n.hasOwnProperty(a)&&(u!=null||h!=null))switch(a){case"value":b=u;break;case"defaultValue":r=u;break;case"multiple":c=u;default:u!==h&&st(t,e,a,u,n,h)}e=r,l=c,n=S,b!=null?tn(t,!!l,b,!1):!!n!=!!l&&(e!=null?tn(t,!!l,e,!0):tn(t,!!l,l?[]:"",!1));return;case"textarea":S=b=null;for(r in l)if(a=l[r],l.hasOwnProperty(r)&&a!=null&&!n.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:st(t,e,r,null,n,a)}for(c in n)if(a=n[c],u=l[c],n.hasOwnProperty(c)&&(a!=null||u!=null))switch(c){case"value":b=a;break;case"defaultValue":S=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&st(t,e,c,a,n,u)}rs(t,b,S);return;case"option":for(var C in l)if(b=l[C],l.hasOwnProperty(C)&&b!=null&&!n.hasOwnProperty(C))switch(C){case"selected":t.selected=!1;break;default:st(t,e,C,null,n,b)}for(h in n)if(b=n[h],S=l[h],n.hasOwnProperty(h)&&b!==S&&(b!=null||S!=null))switch(h){case"selected":t.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:st(t,e,h,b,n,S)}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 L in l)b=l[L],l.hasOwnProperty(L)&&b!=null&&!n.hasOwnProperty(L)&&st(t,e,L,null,n,b);for(p in n)if(b=n[p],S=l[p],n.hasOwnProperty(p)&&b!==S&&(b!=null||S!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(137,e));break;default:st(t,e,p,b,n,S)}return;default:if(bi(e)){for(var ot in l)b=l[ot],l.hasOwnProperty(ot)&&b!==void 0&&!n.hasOwnProperty(ot)&&uf(t,e,ot,void 0,n,b);for(_ in n)b=n[_],S=l[_],!n.hasOwnProperty(_)||b===S||b===void 0&&S===void 0||uf(t,e,_,b,n,S);return}}for(var v in l)b=l[v],l.hasOwnProperty(v)&&b!=null&&!n.hasOwnProperty(v)&&st(t,e,v,null,n,b);for(O in n)b=n[O],S=l[O],!n.hasOwnProperty(O)||b===S||b==null&&S==null||st(t,e,O,b,n,S)}function vh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pm(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,c=a.initiatorType,r=a.duration;if(u&&r&&vh(c)){for(c=0,r=a.responseEnd,n+=1;n<l.length;n++){var h=l[n],p=h.startTime;if(p>r)break;var _=h.transferSize,O=h.initiatorType;_&&vh(O)&&(h=h.responseEnd,c+=_*(h<r?1:(r-p)/(h-p)))}if(--n,e+=8*(u+c)/(a.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 cf=null,ff=null;function Yu(t){return t.nodeType===9?t:t.ownerDocument}function gh(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 ph(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 sf(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 of=null;function bm(){var t=window.event;return t&&t.type==="popstate"?t===of?!1:(of=t,!0):(of=null,!1)}var bh=typeof setTimeout=="function"?setTimeout:void 0,Sm=typeof clearTimeout=="function"?clearTimeout:void 0,Sh=typeof Promise=="function"?Promise:void 0,_m=typeof queueMicrotask=="function"?queueMicrotask:typeof Sh<"u"?function(t){return Sh.resolve(null).then(t).catch(Em)}:bh;function Em(t){setTimeout(function(){throw t})}function _l(t){return t==="head"}function _h(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),Cn(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ea(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ea(l);for(var u=l.firstChild;u;){var c=u.nextSibling,r=u.nodeName;u[Xn]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&Ea(t.ownerDocument.body);l=a}while(l);Cn(e)}function Eh(t,e){var l=t;t=0;do{var n=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||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function rf(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":rf(l),mi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Tm(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Xn])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!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=pe(t.nextSibling),t===null)break}return null}function Am(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=pe(t.nextSibling),t===null))return null;return t}function Th(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=pe(t.nextSibling),t===null))return null;return t}function hf(t){return t.data==="$?"||t.data==="$~"}function df(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function zm(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function pe(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 yf=null;function Ah(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return pe(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function zh(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 Oh(t,e,l){switch(e=Yu(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 Ea(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);mi(t)}var be=new Map,Nh=new Set;function ju(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var tl=D.d;D.d={f:Om,r:Nm,D:Mm,C:Rm,L:Dm,m:Um,X:Cm,S:xm,M:Bm};function Om(){var t=tl.f(),e=Ru();return t||e}function Nm(t){var e=Fl(t);e!==null&&e.tag===5&&e.type==="form"?Zo(e):tl.r(t)}var Dn=typeof document>"u"?null:document;function Mh(t,e,l){var n=Dn;if(n&&typeof e=="string"&&e){var a=re(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Nh.has(a)||(Nh.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Ht(e,"link",t),Rt(e),n.head.appendChild(e)))}}function Mm(t){tl.D(t),Mh("dns-prefetch",t,null)}function Rm(t,e){tl.C(t,e),Mh("preconnect",t,e)}function Dm(t,e,l){tl.L(t,e,l);var n=Dn;if(n&&t&&e){var a='link[rel="preload"][as="'+re(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+re(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+re(l.imageSizes)+'"]')):a+='[href="'+re(t)+'"]';var u=a;switch(e){case"style":u=Un(t);break;case"script":u=xn(t)}be.has(u)||(t=x({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),be.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Ta(u))||e==="script"&&n.querySelector(Aa(u))||(e=n.createElement("link"),Ht(e,"link",t),Rt(e),n.head.appendChild(e)))}}function Um(t,e){tl.m(t,e);var l=Dn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+re(n)+'"][href="'+re(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=xn(t)}if(!be.has(u)&&(t=x({rel:"modulepreload",href:t},e),be.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Aa(u)))return}n=l.createElement("link"),Ht(n,"link",t),Rt(n),l.head.appendChild(n)}}}function xm(t,e,l){tl.S(t,e,l);var n=Dn;if(n&&t){var a=Il(n).hoistableStyles,u=Un(t);e=e||"default";var c=a.get(u);if(!c){var r={loading:0,preload:null};if(c=n.querySelector(Ta(u)))r.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},l),(l=be.get(u))&&mf(t,l);var h=c=n.createElement("link");Rt(h),Ht(h,"link",t),h._p=new Promise(function(p,_){h.onload=p,h.onerror=_}),h.addEventListener("load",function(){r.loading|=1}),h.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Lu(c,e,n)}c={type:"stylesheet",instance:c,count:1,state:r},a.set(u,c)}}}function Cm(t,e){tl.X(t,e);var l=Dn;if(l&&t){var n=Il(l).hoistableScripts,a=xn(t),u=n.get(a);u||(u=l.querySelector(Aa(a)),u||(t=x({src:t,async:!0},e),(e=be.get(a))&&vf(t,e),u=l.createElement("script"),Rt(u),Ht(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Bm(t,e){tl.M(t,e);var l=Dn;if(l&&t){var n=Il(l).hoistableScripts,a=xn(t),u=n.get(a);u||(u=l.querySelector(Aa(a)),u||(t=x({src:t,async:!0,type:"module"},e),(e=be.get(a))&&vf(t,e),u=l.createElement("script"),Rt(u),Ht(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Rh(t,e,l,n){var a=(a=J.current)?ju(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Un(l.href),l=Il(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Un(l.href);var u=Il(a).hoistableStyles,c=u.get(t);if(c||(a=a.ownerDocument||a,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,c),(u=a.querySelector(Ta(t)))&&!u._p&&(c.instance=u,c.state.loading=5),be.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},be.set(t,l),u||qm(a,t,l,c.state))),e&&n===null)throw Error(s(528,""));return c}if(e&&n!==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=xn(l),l=Il(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Un(t){return'href="'+re(t)+'"'}function Ta(t){return'link[rel="stylesheet"]['+t+"]"}function Dh(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function qm(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),Ht(e,"link",l),Rt(e),t.head.appendChild(e))}function xn(t){return'[src="'+re(t)+'"]'}function Aa(t){return"script[async]"+t}function Uh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+re(l.href)+'"]');if(n)return e.instance=n,Rt(n),n;var a=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Rt(n),Ht(n,"style",a),Lu(n,l.precedence,t),e.instance=n;case"stylesheet":a=Un(l.href);var u=t.querySelector(Ta(a));if(u)return e.state.loading|=4,e.instance=u,Rt(u),u;n=Dh(l),(a=be.get(a))&&mf(n,a),u=(t.ownerDocument||t).createElement("link"),Rt(u);var c=u;return c._p=new Promise(function(r,h){c.onload=r,c.onerror=h}),Ht(u,"link",n),e.state.loading|=4,Lu(u,l.precedence,t),e.instance=u;case"script":return u=xn(l.src),(a=t.querySelector(Aa(u)))?(e.instance=a,Rt(a),a):(n=l,(a=be.get(u))&&(n=x({},l),vf(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Rt(a),Ht(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Lu(n,l.precedence,t));return e.instance}function Lu(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,c=0;c<n.length;c++){var r=n[c];if(r.dataset.precedence===e)u=r;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function mf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function vf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xu=null;function xh(t,e,l){if(Xu===null){var n=new Map,a=Xu=new Map;a.set(l,n)}else a=Xu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[Xn]||u[xt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(e)||"";c=t+c;var r=n.get(c);r?r.push(u):n.set(c,[u])}}return n}function Ch(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Hm(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 Bh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Ym(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Un(n.href),u=e.querySelector(Ta(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Qu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Rt(u);return}u=e.ownerDocument||e,n=Dh(n),(a=be.get(a))&&mf(n,a),u=u.createElement("link"),Rt(u);var c=u;c._p=new Promise(function(r,h){c.onload=r,c.onerror=h}),Ht(u,"link",n),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=Qu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var gf=0;function jm(t,e){return t.stylesheets&&t.count===0&&Vu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&Vu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&gf===0&&(gf=62500*pm());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Vu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>gf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Gu=null;function Vu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Gu=new Map,e.forEach(Lm,t),Gu=null,Qu.call(t))}function Lm(t,e){if(!(e.state.loading&4)){var l=Gu.get(t);if(l)var n=l.get(null);else{l=new Map,Gu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var c=a[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),n=c)}n&&l.set(null,n)}a=e.instance,c=a.getAttribute("data-precedence"),u=l.get(c)||n,u===n&&l.set(null,a),l.set(c,a),this.count++,n=Qu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var za={$$typeof:jt,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function Xm(t,e,l,n,a,u,c,r,h){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=ri(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ri(0),this.hiddenUpdates=ri(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.incompleteTransitions=new Map}function qh(t,e,l,n,a,u,c,r,h,p,_,O){return t=new Xm(t,e,l,c,h,p,_,O,r),e=1,u===!0&&(e|=24),u=ne(3,null,null,e),t.current=u,u.stateNode=t,e=Wi(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},Pi(u),t}function Hh(t){return t?(t=sn,t):sn}function Yh(t,e,l,n,a,u){a=Hh(a),n.context===null?n.context=a:n.pendingContext=a,n=ol(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=rl(t,n,e),l!==null&&(Ft(l,t,e),na(l,t,e))}function jh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function pf(t,e){jh(t,e),(t=t.alternate)&&jh(t,e)}function Lh(t){if(t.tag===13||t.tag===31){var e=ql(t,67108864);e!==null&&Ft(e,t,67108864),pf(t,67108864)}}function Xh(t){if(t.tag===13||t.tag===31){var e=fe();e=hi(e);var l=ql(t,e);l!==null&&Ft(l,t,e),pf(t,e)}}var Zu=!0;function Qm(t,e,l,n){var a=T.T;T.T=null;var u=D.p;try{D.p=2,bf(t,e,l,n)}finally{D.p=u,T.T=a}}function Gm(t,e,l,n){var a=T.T;T.T=null;var u=D.p;try{D.p=8,bf(t,e,l,n)}finally{D.p=u,T.T=a}}function bf(t,e,l,n){if(Zu){var a=Sf(n);if(a===null)af(t,e,n,wu,l),Gh(t,n);else if(Zm(a,t,e,l,n))n.stopPropagation();else if(Gh(t,n),e&4&&-1<Vm.indexOf(t)){for(;a!==null;){var u=Fl(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Dl(u.pendingLanes);if(c!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var h=1<<31-ee(c);r.entanglements[1]|=h,c&=~h}xe(u),(nt&6)===0&&(Nu=Pt()+500,ba(0))}}break;case 31:case 13:r=ql(u,2),r!==null&&Ft(r,u,2),Ru(),pf(u,2)}if(u=Sf(n),u===null&&af(t,e,n,wu,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else af(t,e,n,null,l)}}function Sf(t){return t=_i(t),_f(t)}var wu=null;function _f(t){if(wu=null,t=$l(t),t!==null){var e=E(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=R(e),t!==null)return t;t=null}else if(l===31){if(t=B(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 wu=t,null}function Qh(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(Md()){case kf:return 2;case Wf:return 8;case Ba:case Rd:return 32;case $f:return 268435456;default:return 32}default:return 32}}var Ef=!1,El=null,Tl=null,Al=null,Oa=new Map,Na=new Map,zl=[],Vm="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 Gh(t,e){switch(t){case"focusin":case"focusout":El=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":Oa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Na.delete(e.pointerId)}}function Ma(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=Fl(e),e!==null&&Lh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Zm(t,e,l,n,a){switch(e){case"focusin":return El=Ma(El,t,e,l,n,a),!0;case"dragenter":return Tl=Ma(Tl,t,e,l,n,a),!0;case"mouseover":return Al=Ma(Al,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return Oa.set(u,Ma(Oa.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Na.set(u,Ma(Na.get(u)||null,t,e,l,n,a)),!0}return!1}function Vh(t){var e=$l(t.target);if(e!==null){var l=E(e);if(l!==null){if(e=l.tag,e===13){if(e=R(l),e!==null){t.blockedOn=e,ls(t.priority,function(){Xh(l)});return}}else if(e===31){if(e=B(l),e!==null){t.blockedOn=e,ls(t.priority,function(){Xh(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 Ku(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Sf(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Si=n,l.target.dispatchEvent(n),Si=null}else return e=Fl(l),e!==null&&Lh(e),t.blockedOn=l,!1;e.shift()}return!0}function Zh(t,e,l){Ku(t)&&l.delete(e)}function wm(){Ef=!1,El!==null&&Ku(El)&&(El=null),Tl!==null&&Ku(Tl)&&(Tl=null),Al!==null&&Ku(Al)&&(Al=null),Oa.forEach(Zh),Na.forEach(Zh)}function Ju(t,e){t.blockedOn===e&&(t.blockedOn=null,Ef||(Ef=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wm)))}var ku=null;function wh(t){ku!==t&&(ku=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){ku===t&&(ku=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(_f(n||l)===null)continue;break}var u=Fl(l);u!==null&&(t.splice(e,3),e-=3,bc(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Cn(t){function e(h){return Ju(h,t)}El!==null&&Ju(El,t),Tl!==null&&Ju(Tl,t),Al!==null&&Ju(Al,t),Oa.forEach(e),Na.forEach(e);for(var l=0;l<zl.length;l++){var n=zl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<zl.length&&(l=zl[0],l.blockedOn===null);)Vh(l),l.blockedOn===null&&zl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],c=a[wt]||null;if(typeof u=="function")c||wh(l);else if(c){var r=null;if(u&&u.hasAttribute("formAction")){if(a=u,c=u[wt]||null)r=c.formAction;else if(_f(a)!==null)continue}else r=c.action;typeof r=="function"?l[n+1]=r:(l.splice(n,3),n-=3),wh(l)}}}function Kh(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(c){return a=c})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!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 n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function Tf(t){this._internalRoot=t}Wu.prototype.render=Tf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,n=fe();Yh(l,n,t,e,null,null)},Wu.prototype.unmount=Tf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Yh(t.current,2,null,t,null,null),Ru(),e[Wl]=null}};function Wu(t){this._internalRoot=t}Wu.prototype.unstable_scheduleHydration=function(t){if(t){var e=es();t={blockedOn:null,target:t,priority:e};for(var l=0;l<zl.length&&e!==0&&e<zl[l].priority;l++);zl.splice(l,0,t),l===0&&Vh(t)}};var Jh=i.version;if(Jh!=="19.2.0")throw Error(s(527,Jh,"19.2.0"));D.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=A(e),t=t!==null?Q(t):null,t=t===null?null:t.stateNode,t};var Km={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$u.isDisabled&&$u.supportsFiber)try{Yn=$u.inject(Km),te=$u}catch{}}return Da.createRoot=function(t,e){if(!m(t))throw Error(s(299));var l=!1,n="",a=tr,u=er,c=lr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError)),e=qh(t,1,!1,null,null,l,n,null,a,u,c,Kh),t[Wl]=e.current,nf(t),new Tf(e)},Da.hydrateRoot=function(t,e,l){if(!m(t))throw Error(s(299));var n=!1,a="",u=tr,c=er,r=lr,h=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),e=qh(t,1,!0,e,l??null,n,a,h,u,c,r,Kh),e.context=Hh(null),l=e.current,n=fe(),n=hi(n),a=ol(n),a.callback=null,rl(l,a,n),l=n,e.current.lanes=l,Ln(e,l),xe(e),t[Wl]=e.current,nf(t),new Wu(e)},Da.version="19.2.0",Da}var nd;function l0(){if(nd)return Of.exports;nd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(i){console.error(i)}}return o(),Of.exports=e0(),Of.exports}var n0=l0();const Be=Object.create(null);Be.open="0";Be.close="1";Be.ping="2";Be.pong="3";Be.message="4";Be.upgrade="5";Be.noop="6";const Pu=Object.create(null);Object.keys(Be).forEach(o=>{Pu[Be[o]]=o});const Cf={type:"error",data:"parser error"},sd=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",od=typeof ArrayBuffer=="function",rd=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o&&o.buffer instanceof ArrayBuffer,Xf=({type:o,data:i},f,s)=>sd&&i instanceof Blob?f?s(i):ad(i,s):od&&(i instanceof ArrayBuffer||rd(i))?f?s(i):ad(new Blob([i]),s):s(Be[o]+(i||"")),ad=(o,i)=>{const f=new FileReader;return f.onload=function(){const s=f.result.split(",")[1];i("b"+(s||""))},f.readAsDataURL(o)};function ud(o){return o instanceof Uint8Array?o:o instanceof ArrayBuffer?new Uint8Array(o):new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}let Df;function a0(o,i){if(sd&&o.data instanceof Blob)return o.data.arrayBuffer().then(ud).then(i);if(od&&(o.data instanceof ArrayBuffer||rd(o.data)))return i(ud(o.data));Xf(o,!1,f=>{Df||(Df=new TextEncoder),i(Df.encode(f))})}const id="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<id.length;o++)xa[id.charCodeAt(o)]=o;const u0=o=>{let i=o.length*.75,f=o.length,s,m=0,E,R,B,M;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const A=new ArrayBuffer(i),Q=new Uint8Array(A);for(s=0;s<f;s+=4)E=xa[o.charCodeAt(s)],R=xa[o.charCodeAt(s+1)],B=xa[o.charCodeAt(s+2)],M=xa[o.charCodeAt(s+3)],Q[m++]=E<<2|R>>4,Q[m++]=(R&15)<<4|B>>2,Q[m++]=(B&3)<<6|M&63;return A},i0=typeof ArrayBuffer=="function",Qf=(o,i)=>{if(typeof o!="string")return{type:"message",data:hd(o,i)};const f=o.charAt(0);return f==="b"?{type:"message",data:c0(o.substring(1),i)}:Pu[f]?o.length>1?{type:Pu[f],data:o.substring(1)}:{type:Pu[f]}:Cf},c0=(o,i)=>{if(i0){const f=u0(o);return hd(f,i)}else return{base64:!0,data:o}},hd=(o,i)=>{switch(i){case"blob":return o instanceof Blob?o:new Blob([o]);case"arraybuffer":default:return o instanceof ArrayBuffer?o:o.buffer}},dd="",f0=(o,i)=>{const f=o.length,s=new Array(f);let m=0;o.forEach((E,R)=>{Xf(E,!1,B=>{s[R]=B,++m===f&&i(s.join(dd))})})},s0=(o,i)=>{const f=o.split(dd),s=[];for(let m=0;m<f.length;m++){const E=Qf(f[m],i);if(s.push(E),E.type==="error")break}return s};function o0(){return new TransformStream({transform(o,i){a0(o,f=>{const s=f.length;let m;if(s<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,s);else if(s<65536){m=new Uint8Array(3);const E=new DataView(m.buffer);E.setUint8(0,126),E.setUint16(1,s)}else{m=new Uint8Array(9);const E=new DataView(m.buffer);E.setUint8(0,127),E.setBigUint64(1,BigInt(s))}o.data&&typeof o.data!="string"&&(m[0]|=128),i.enqueue(m),i.enqueue(f)})}})}let Uf;function Fu(o){return o.reduce((i,f)=>i+f.length,0)}function Iu(o,i){if(o[0].length===i)return o.shift();const f=new Uint8Array(i);let s=0;for(let m=0;m<i;m++)f[m]=o[0][s++],s===o[0].length&&(o.shift(),s=0);return o.length&&s<o[0].length&&(o[0]=o[0].slice(s)),f}function r0(o,i){Uf||(Uf=new TextDecoder);const f=[];let s=0,m=-1,E=!1;return new TransformStream({transform(R,B){for(f.push(R);;){if(s===0){if(Fu(f)<1)break;const M=Iu(f,1);E=(M[0]&128)===128,m=M[0]&127,m<126?s=3:m===126?s=1:s=2}else if(s===1){if(Fu(f)<2)break;const M=Iu(f,2);m=new DataView(M.buffer,M.byteOffset,M.length).getUint16(0),s=3}else if(s===2){if(Fu(f)<8)break;const M=Iu(f,8),A=new DataView(M.buffer,M.byteOffset,M.length),Q=A.getUint32(0);if(Q>Math.pow(2,21)-1){B.enqueue(Cf);break}m=Q*Math.pow(2,32)+A.getUint32(4),s=3}else{if(Fu(f)<m)break;const M=Iu(f,m);B.enqueue(Qf(E?M:Uf.decode(M),i)),s=0}if(m===0||m>o){B.enqueue(Cf);break}}}})}const yd=4;function Ot(o){if(o)return h0(o)}function h0(o){for(var i in Ot.prototype)o[i]=Ot.prototype[i];return o}Ot.prototype.on=Ot.prototype.addEventListener=function(o,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(i),this};Ot.prototype.once=function(o,i){function f(){this.off(o,f),i.apply(this,arguments)}return f.fn=i,this.on(o,f),this};Ot.prototype.off=Ot.prototype.removeListener=Ot.prototype.removeAllListeners=Ot.prototype.removeEventListener=function(o,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var f=this._callbacks["$"+o];if(!f)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var s,m=0;m<f.length;m++)if(s=f[m],s===i||s.fn===i){f.splice(m,1);break}return f.length===0&&delete this._callbacks["$"+o],this};Ot.prototype.emit=function(o){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),f=this._callbacks["$"+o],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(f){f=f.slice(0);for(var s=0,m=f.length;s<m;++s)f[s].apply(this,i)}return this};Ot.prototype.emitReserved=Ot.prototype.emit;Ot.prototype.listeners=function(o){return this._callbacks=this._callbacks||{},this._callbacks["$"+o]||[]};Ot.prototype.hasListeners=function(o){return!!this.listeners(o).length};const ni=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,f)=>f(i,0),Se=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),d0="arraybuffer";function md(o,...i){return i.reduce((f,s)=>(o.hasOwnProperty(s)&&(f[s]=o[s]),f),{})}const y0=Se.setTimeout,m0=Se.clearTimeout;function ai(o,i){i.useNativeTimers?(o.setTimeoutFn=y0.bind(Se),o.clearTimeoutFn=m0.bind(Se)):(o.setTimeoutFn=Se.setTimeout.bind(Se),o.clearTimeoutFn=Se.clearTimeout.bind(Se))}const v0=1.33;function g0(o){return typeof o=="string"?p0(o):Math.ceil((o.byteLength||o.size)*v0)}function p0(o){let i=0,f=0;for(let s=0,m=o.length;s<m;s++)i=o.charCodeAt(s),i<128?f+=1:i<2048?f+=2:i<55296||i>=57344?f+=3:(s++,f+=4);return f}function vd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function b0(o){let i="";for(let f in o)o.hasOwnProperty(f)&&(i.length&&(i+="&"),i+=encodeURIComponent(f)+"="+encodeURIComponent(o[f]));return i}function S0(o){let i={},f=o.split("&");for(let s=0,m=f.length;s<m;s++){let E=f[s].split("=");i[decodeURIComponent(E[0])]=decodeURIComponent(E[1])}return i}class _0 extends Error{constructor(i,f,s){super(i),this.description=f,this.context=s,this.type="TransportError"}}class Gf extends Ot{constructor(i){super(),this.writable=!1,ai(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,f,s){return super.emitReserved("error",new _0(i,f,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const f=Qf(i,this.socket.binaryType);this.onPacket(f)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,f={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(f)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const f=b0(i);return f.length?"?"+f:""}}class E0 extends Gf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const f=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||f()})),this.writable||(s++,this.once("drain",function(){--s||f()}))}else f()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const f=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};s0(i,this.socket.binaryType).forEach(f),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,f0(i,f=>{this.doWrite(f,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",f=this.query||{};return this.opts.timestampRequests!==!1&&(f[this.opts.timestampParam]=vd()),!this.supportsBinary&&!f.sid&&(f.b64=1),this.createUri(i,f)}}let gd=!1;try{gd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const T0=gd;function A0(){}class z0 extends E0{constructor(i){if(super(i),typeof location<"u"){const f=location.protocol==="https:";let s=location.port;s||(s=f?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,f){const s=this.request({method:"POST",data:i});s.on("success",f),s.on("error",(m,E)=>{this.onError("xhr post error",m,E)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(f,s)=>{this.onError("xhr poll error",f,s)}),this.pollXhr=i}}class Ce extends Ot{constructor(i,f,s){super(),this.createRequest=i,ai(this,s),this._opts=s,this._method=s.method||"GET",this._uri=f,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const f=md(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");f.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(f);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let m in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(m)&&s.setRequestHeader(m,this._opts.extraHeaders[m])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var m;s.readyState===3&&((m=this._opts.cookieJar)===null||m===void 0||m.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(m){this.setTimeoutFn(()=>{this._onError(m)},0);return}typeof document<"u"&&(this._index=Ce.requestsCount++,Ce.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=A0,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ce.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ce.requestsCount=0;Ce.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",cd);else if(typeof addEventListener=="function"){const o="onpagehide"in Se?"pagehide":"unload";addEventListener(o,cd,!1)}}function cd(){for(let o in Ce.requests)Ce.requests.hasOwnProperty(o)&&Ce.requests[o].abort()}const O0=(function(){const o=pd({xdomain:!1});return o&&o.responseType!==null})();class N0 extends z0{constructor(i){super(i);const f=i&&i.forceBase64;this.supportsBinary=O0&&!f}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Ce(pd,this.uri(),i)}}function pd(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||T0))return new XMLHttpRequest}catch{}if(!i)try{return new Se[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const bd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class M0 extends Gf{get name(){return"websocket"}doOpen(){const i=this.uri(),f=this.opts.protocols,s=bd?{}:md(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,f,s)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let f=0;f<i.length;f++){const s=i[f],m=f===i.length-1;Xf(s,this.supportsBinary,E=>{try{this.doWrite(s,E)}catch{}m&&ni(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",f=this.query||{};return this.opts.timestampRequests&&(f[this.opts.timestampParam]=vd()),this.supportsBinary||(f.b64=1),this.createUri(i,f)}}const xf=Se.WebSocket||Se.MozWebSocket;class R0 extends M0{createSocket(i,f,s){return bd?new xf(i,f,s):f?new xf(i,f):new xf(i)}doWrite(i,f){this.ws.send(f)}}class D0 extends Gf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const f=r0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(f).getReader(),m=o0();m.readable.pipeTo(i.writable),this._writer=m.writable.getWriter();const E=()=>{s.read().then(({done:B,value:M})=>{B||(this.onPacket(M),E())}).catch(B=>{})};E();const R={type:"open"};this.query.sid&&(R.data=`{"sid":"${this.query.sid}"}`),this._writer.write(R).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let f=0;f<i.length;f++){const s=i[f],m=f===i.length-1;this._writer.write(s).then(()=>{m&&ni(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const U0={websocket:R0,webtransport:D0,polling:N0},x0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,C0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Bf(o){if(o.length>8e3)throw"URI too long";const i=o,f=o.indexOf("["),s=o.indexOf("]");f!=-1&&s!=-1&&(o=o.substring(0,f)+o.substring(f,s).replace(/:/g,";")+o.substring(s,o.length));let m=x0.exec(o||""),E={},R=14;for(;R--;)E[C0[R]]=m[R]||"";return f!=-1&&s!=-1&&(E.source=i,E.host=E.host.substring(1,E.host.length-1).replace(/;/g,":"),E.authority=E.authority.replace("[","").replace("]","").replace(/;/g,":"),E.ipv6uri=!0),E.pathNames=B0(E,E.path),E.queryKey=q0(E,E.query),E}function B0(o,i){const f=/\/{2,9}/g,s=i.replace(f,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function q0(o,i){const f={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,m,E){m&&(f[m]=E)}),f}const qf=typeof addEventListener=="function"&&typeof removeEventListener=="function",ti=[];qf&&addEventListener("offline",()=>{ti.forEach(o=>o())},!1);class Nl extends Ot{constructor(i,f){if(super(),this.binaryType=d0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(f=i,i=null),i){const s=Bf(i);f.hostname=s.host,f.secure=s.protocol==="https"||s.protocol==="wss",f.port=s.port,s.query&&(f.query=s.query)}else f.host&&(f.hostname=Bf(f.host).host);ai(this,f),this.secure=f.secure!=null?f.secure:typeof location<"u"&&location.protocol==="https:",f.hostname&&!f.port&&(f.port=this.secure?"443":"80"),this.hostname=f.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=f.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},f.transports.forEach(s=>{const m=s.prototype.name;this.transports.push(m),this._transportsByName[m]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},f),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=S0(this.opts.query)),qf&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ti.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const f=Object.assign({},this.opts.query);f.EIO=yd,f.transport=i,this.id&&(f.sid=this.id);const s=Object.assign({},this.opts,{query:f,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Nl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const f=this.createTransport(i);f.open(),this.setTransport(f)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",f=>this._onClose("transport close",f))}onOpen(){this.readyState="open",Nl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const f=new Error("server error");f.code=i.data,this._onError(f);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let f=1;for(let s=0;s<this.writeBuffer.length;s++){const m=this.writeBuffer[s].data;if(m&&(f+=g0(m)),s>0&&f>this._maxPayload)return this.writeBuffer.slice(0,s);f+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,ni(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,f,s){return this._sendPacket("message",i,f,s),this}send(i,f,s){return this._sendPacket("message",i,f,s),this}_sendPacket(i,f,s,m){if(typeof f=="function"&&(m=f,f=void 0),typeof s=="function"&&(m=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const E={type:i,data:f,options:s};this.emitReserved("packetCreate",E),this.writeBuffer.push(E),m&&this.once("flush",m),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},f=()=>{this.off("upgrade",f),this.off("upgradeError",f),i()},s=()=>{this.once("upgrade",f),this.once("upgradeError",f)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(Nl.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,f){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),qf&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=ti.indexOf(this._offlineEventListener);s!==-1&&ti.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,f),this.writeBuffer=[],this._prevBufferLen=0}}}Nl.protocol=yd;class H0 extends Nl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let f=this.createTransport(i),s=!1;Nl.priorWebsocketSuccess=!1;const m=()=>{s||(f.send([{type:"ping",data:"probe"}]),f.once("packet",x=>{if(!s)if(x.type==="pong"&&x.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",f),!f)return;Nl.priorWebsocketSuccess=f.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(Q(),this.setTransport(f),f.send([{type:"upgrade"}]),this.emitReserved("upgrade",f),f=null,this.upgrading=!1,this.flush())})}else{const K=new Error("probe error");K.transport=f.name,this.emitReserved("upgradeError",K)}}))};function E(){s||(s=!0,Q(),f.close(),f=null)}const R=x=>{const K=new Error("probe error: "+x);K.transport=f.name,E(),this.emitReserved("upgradeError",K)};function B(){R("transport closed")}function M(){R("socket closed")}function A(x){f&&x.name!==f.name&&E()}const Q=()=>{f.removeListener("open",m),f.removeListener("error",R),f.removeListener("close",B),this.off("close",M),this.off("upgrading",A)};f.once("open",m),f.once("error",R),f.once("close",B),this.once("close",M),this.once("upgrading",A),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||f.open()},200):f.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const f=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&f.push(i[s]);return f}}let Y0=class extends H0{constructor(i,f={}){const s=typeof i=="object"?i:f;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(m=>U0[m]).filter(m=>!!m)),super(i,s)}};function j0(o,i="",f){let s=o;f=f||typeof location<"u"&&location,o==null&&(o=f.protocol+"//"+f.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o.charAt(1)==="/"?o=f.protocol+o:o=f.host+o),/^(https?|wss?):\/\//.test(o)||(typeof f<"u"?o=f.protocol+"//"+o:o="https://"+o),s=Bf(o)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const E=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+E+":"+s.port+i,s.href=s.protocol+"://"+E+(f&&f.port===s.port?"":":"+s.port),s}const L0=typeof ArrayBuffer=="function",X0=o=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer,Sd=Object.prototype.toString,Q0=typeof Blob=="function"||typeof Blob<"u"&&Sd.call(Blob)==="[object BlobConstructor]",G0=typeof File=="function"||typeof File<"u"&&Sd.call(File)==="[object FileConstructor]";function Vf(o){return L0&&(o instanceof ArrayBuffer||X0(o))||Q0&&o instanceof Blob||G0&&o instanceof File}function ei(o,i){if(!o||typeof o!="object")return!1;if(Array.isArray(o)){for(let f=0,s=o.length;f<s;f++)if(ei(o[f]))return!0;return!1}if(Vf(o))return!0;if(o.toJSON&&typeof o.toJSON=="function"&&arguments.length===1)return ei(o.toJSON(),!0);for(const f in o)if(Object.prototype.hasOwnProperty.call(o,f)&&ei(o[f]))return!0;return!1}function V0(o){const i=[],f=o.data,s=o;return s.data=Hf(f,i),s.attachments=i.length,{packet:s,buffers:i}}function Hf(o,i){if(!o)return o;if(Vf(o)){const f={_placeholder:!0,num:i.length};return i.push(o),f}else if(Array.isArray(o)){const f=new Array(o.length);for(let s=0;s<o.length;s++)f[s]=Hf(o[s],i);return f}else if(typeof o=="object"&&!(o instanceof Date)){const f={};for(const s in o)Object.prototype.hasOwnProperty.call(o,s)&&(f[s]=Hf(o[s],i));return f}return o}function Z0(o,i){return o.data=Yf(o.data,i),delete o.attachments,o}function Yf(o,i){if(!o)return o;if(o&&o._placeholder===!0){if(typeof o.num=="number"&&o.num>=0&&o.num<i.length)return i[o.num];throw new Error("illegal attachments")}else if(Array.isArray(o))for(let f=0;f<o.length;f++)o[f]=Yf(o[f],i);else if(typeof o=="object")for(const f in o)Object.prototype.hasOwnProperty.call(o,f)&&(o[f]=Yf(o[f],i));return o}const w0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],K0=5;var tt;(function(o){o[o.CONNECT=0]="CONNECT",o[o.DISCONNECT=1]="DISCONNECT",o[o.EVENT=2]="EVENT",o[o.ACK=3]="ACK",o[o.CONNECT_ERROR=4]="CONNECT_ERROR",o[o.BINARY_EVENT=5]="BINARY_EVENT",o[o.BINARY_ACK=6]="BINARY_ACK"})(tt||(tt={}));class J0{constructor(i){this.replacer=i}encode(i){return(i.type===tt.EVENT||i.type===tt.ACK)&&ei(i)?this.encodeAsBinary({type:i.type===tt.EVENT?tt.BINARY_EVENT:tt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let f=""+i.type;return(i.type===tt.BINARY_EVENT||i.type===tt.BINARY_ACK)&&(f+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(f+=i.nsp+","),i.id!=null&&(f+=i.id),i.data!=null&&(f+=JSON.stringify(i.data,this.replacer)),f}encodeAsBinary(i){const f=V0(i),s=this.encodeAsString(f.packet),m=f.buffers;return m.unshift(s),m}}function fd(o){return Object.prototype.toString.call(o)==="[object Object]"}class Zf extends Ot{constructor(i){super(),this.reviver=i}add(i){let f;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");f=this.decodeString(i);const s=f.type===tt.BINARY_EVENT;s||f.type===tt.BINARY_ACK?(f.type=s?tt.EVENT:tt.ACK,this.reconstructor=new k0(f),f.attachments===0&&super.emitReserved("decoded",f)):super.emitReserved("decoded",f)}else if(Vf(i)||i.base64)if(this.reconstructor)f=this.reconstructor.takeBinaryData(i),f&&(this.reconstructor=null,super.emitReserved("decoded",f));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let f=0;const s={type:Number(i.charAt(0))};if(tt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===tt.BINARY_EVENT||s.type===tt.BINARY_ACK){const E=f+1;for(;i.charAt(++f)!=="-"&&f!=i.length;);const R=i.substring(E,f);if(R!=Number(R)||i.charAt(f)!=="-")throw new Error("Illegal attachments");s.attachments=Number(R)}if(i.charAt(f+1)==="/"){const E=f+1;for(;++f&&!(i.charAt(f)===","||f===i.length););s.nsp=i.substring(E,f)}else s.nsp="/";const m=i.charAt(f+1);if(m!==""&&Number(m)==m){const E=f+1;for(;++f;){const R=i.charAt(f);if(R==null||Number(R)!=R){--f;break}if(f===i.length)break}s.id=Number(i.substring(E,f+1))}if(i.charAt(++f)){const E=this.tryParse(i.substr(f));if(Zf.isPayloadValid(s.type,E))s.data=E;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,f){switch(i){case tt.CONNECT:return fd(f);case tt.DISCONNECT:return f===void 0;case tt.CONNECT_ERROR:return typeof f=="string"||fd(f);case tt.EVENT:case tt.BINARY_EVENT:return Array.isArray(f)&&(typeof f[0]=="number"||typeof f[0]=="string"&&w0.indexOf(f[0])===-1);case tt.ACK:case tt.BINARY_ACK:return Array.isArray(f)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class k0{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const f=Z0(this.reconPack,this.buffers);return this.finishedReconstruction(),f}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const W0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Zf,Encoder:J0,get PacketType(){return tt},protocol:K0},Symbol.toStringTag,{value:"Module"}));function ze(o,i,f){return o.on(i,f),function(){o.off(i,f)}}const $0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class _d extends Ot{constructor(i,f,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=f,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[ze(i,"open",this.onopen.bind(this)),ze(i,"packet",this.onpacket.bind(this)),ze(i,"error",this.onerror.bind(this)),ze(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...f){var s,m,E;if($0.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(f.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(f),this;const R={type:tt.EVENT,data:f};if(R.options={},R.options.compress=this.flags.compress!==!1,typeof f[f.length-1]=="function"){const Q=this.ids++,x=f.pop();this._registerAckCallback(Q,x),R.id=Q}const B=(m=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||m===void 0?void 0:m.writable,M=this.connected&&!(!((E=this.io.engine)===null||E===void 0)&&E._hasPingExpired());return this.flags.volatile&&!B||(M?(this.notifyOutgoingListeners(R),this.packet(R)):this.sendBuffer.push(R)),this.flags={},this}_registerAckCallback(i,f){var s;const m=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(m===void 0){this.acks[i]=f;return}const E=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let B=0;B<this.sendBuffer.length;B++)this.sendBuffer[B].id===i&&this.sendBuffer.splice(B,1);f.call(this,new Error("operation has timed out"))},m),R=(...B)=>{this.io.clearTimeoutFn(E),f.apply(this,B)};R.withError=!0,this.acks[i]=R}emitWithAck(i,...f){return new Promise((s,m)=>{const E=(R,B)=>R?m(R):s(B);E.withError=!0,f.push(E),this.emit(i,...f)})}_addToQueue(i){let f;typeof i[i.length-1]=="function"&&(f=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((m,...E)=>s!==this._queue[0]?void 0:(m!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),f&&f(m)):(this._queue.shift(),f&&f(null,...E)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const f=this._queue[0];f.pending&&!i||(f.pending=!0,f.tryCount++,this.flags=f.flags,this.emit.apply(this,f.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:tt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,f){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,f),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case tt.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case tt.EVENT:case tt.BINARY_EVENT:this.onevent(i);break;case tt.ACK:case tt.BINARY_ACK:this.onack(i);break;case tt.DISCONNECT:this.ondisconnect();break;case tt.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const f=i.data||[];i.id!=null&&f.push(this.ack(i.id)),this.connected?this.emitEvent(f):this.receiveBuffer.push(Object.freeze(f))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const f=this._anyListeners.slice();for(const s of f)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const f=this;let s=!1;return function(...m){s||(s=!0,f.packet({type:tt.ACK,id:i,data:m}))}}onack(i){const f=this.acks[i.id];typeof f=="function"&&(delete this.acks[i.id],f.withError&&i.data.unshift(null),f.apply(this,i.data))}onconnect(i,f){this.id=i,this.recovered=f&&this._pid===f,this._pid=f,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:tt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const f=this._anyListeners;for(let s=0;s<f.length;s++)if(i===f[s])return f.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const f=this._anyOutgoingListeners;for(let s=0;s<f.length;s++)if(i===f[s])return f.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const f=this._anyOutgoingListeners.slice();for(const s of f)s.apply(this,i.data)}}}function Bn(o){o=o||{},this.ms=o.min||100,this.max=o.max||1e4,this.factor=o.factor||2,this.jitter=o.jitter>0&&o.jitter<=1?o.jitter:0,this.attempts=0}Bn.prototype.duration=function(){var o=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),f=Math.floor(i*this.jitter*o);o=(Math.floor(i*10)&1)==0?o-f:o+f}return Math.min(o,this.max)|0};Bn.prototype.reset=function(){this.attempts=0};Bn.prototype.setMin=function(o){this.ms=o};Bn.prototype.setMax=function(o){this.max=o};Bn.prototype.setJitter=function(o){this.jitter=o};class jf extends Ot{constructor(i,f){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(f=i,i=void 0),f=f||{},f.path=f.path||"/socket.io",this.opts=f,ai(this,f),this.reconnection(f.reconnection!==!1),this.reconnectionAttempts(f.reconnectionAttempts||1/0),this.reconnectionDelay(f.reconnectionDelay||1e3),this.reconnectionDelayMax(f.reconnectionDelayMax||5e3),this.randomizationFactor((s=f.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Bn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(f.timeout==null?2e4:f.timeout),this._readyState="closed",this.uri=i;const m=f.parser||W0;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=f.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var f;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(f=this.backoff)===null||f===void 0||f.setMin(i),this)}randomizationFactor(i){var f;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(f=this.backoff)===null||f===void 0||f.setJitter(i),this)}reconnectionDelayMax(i){var f;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(f=this.backoff)===null||f===void 0||f.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new Y0(this.uri,this.opts);const f=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const m=ze(f,"open",function(){s.onopen(),i&&i()}),E=B=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",B),i?i(B):this.maybeReconnectOnOpen()},R=ze(f,"error",E);if(this._timeout!==!1){const B=this._timeout,M=this.setTimeoutFn(()=>{m(),E(new Error("timeout")),f.close()},B);this.opts.autoUnref&&M.unref(),this.subs.push(()=>{this.clearTimeoutFn(M)})}return this.subs.push(m),this.subs.push(R),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(ze(i,"ping",this.onping.bind(this)),ze(i,"data",this.ondata.bind(this)),ze(i,"error",this.onerror.bind(this)),ze(i,"close",this.onclose.bind(this)),ze(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(f){this.onclose("parse error",f)}}ondecoded(i){ni(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,f){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new _d(this,i,f),this.nsps[i]=s),s}_destroy(i){const f=Object.keys(this.nsps);for(const s of f)if(this.nsps[s].active)return;this._close()}_packet(i){const f=this.encoder.encode(i);for(let s=0;s<f.length;s++)this.engine.write(f[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,f){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,f),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const f=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(m=>{m?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",m)):i.onreconnect()}))},f);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ua={};function li(o,i){typeof o=="object"&&(i=o,o=void 0),i=i||{};const f=j0(o,i.path||"/socket.io"),s=f.source,m=f.id,E=f.path,R=Ua[m]&&E in Ua[m].nsps,B=i.forceNew||i["force new connection"]||i.multiplex===!1||R;let M;return B?M=new jf(s,i):(Ua[m]||(Ua[m]=new jf(s,i)),M=Ua[m]),f.query&&!i.query&&(i.query=f.queryKey),M.socket(f.path,i)}Object.assign(li,{Manager:jf,Socket:_d,io:li,connect:li});const Ed=window.location.origin;console.info("[socket] connecting to",Ed);const wf=li(Ed,{transports:["websocket","polling"],timeout:15e3});wf.on("connect_error",o=>console.error("connect_error",o.code,o.message,o.data));const Td=Mt.createContext(wf),F0=({children:o})=>Y.jsx(Td.Provider,{value:wf,children:o}),I0=()=>Mt.useContext(Td),Ad=Mt.createContext({connected:!1,session:null,logs:[],login:async()=>{},setRole:async()=>{},requestControl:async()=>{},releaseControl:async()=>{},subscribeAll:async()=>{}});function P0(o){return Mt.useCallback((i,f={})=>new Promise((s,m)=>{o.emit(i,f,(E={})=>{E.error?m(new Error(E.error)):s(E)})}),[o])}function tv({children:o}){const i=I0(),f=P0(i),[s,m]=Mt.useState(null),[E,R]=Mt.useState([]),[B,M]=Mt.useState(i.connected);Mt.useEffect(()=>{const x=()=>M(!0),K=()=>M(!1);return i.on("connect",x),i.on("disconnect",K),()=>{i.off("connect",x),i.off("disconnect",K)}},[i]),Mt.useEffect(()=>{function x(_t){m(_t)}function K(_t=[]){R(_t)}function Yt(_t){R(Ut=>[...Ut.slice(-199),_t])}return i.on("session:sync",x),i.on("log:init",K),i.on("log:entry",Yt),()=>{i.off("session:sync",x),i.off("log:init",K),i.off("log:entry",Yt)}},[i]);const A=Mt.useMemo(()=>({login:(x,K)=>f("auth:login",{username:x,password:K}),setRole:x=>f("session:setRole",{role:x}),requestControl:(x,K={})=>f("session:requestControl",{roverId:x,...K}),releaseControl:x=>f("session:releaseControl",{roverId:x}),subscribeAll:()=>f("session:subscribeAll")}),[f]),Q=Mt.useMemo(()=>({connected:B,session:s,logs:E,...A}),[A,B,E,s]);return Y.jsx(Ad.Provider,{value:Q,children:o})}function qn(){return Mt.useContext(Ad)}function ev({connected:o,role:i,mode:f}){const s=o?"bg-emerald-500/20 text-emerald-300":"bg-red-500/20 text-red-200";return Y.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[Y.jsx("span",{className:`rounded-full px-3 py-1 font-medium ${s}`,children:o?"Connected":"Disconnected"}),Y.jsxs("span",{className:"rounded-full bg-slate-800/80 px-3 py-1 text-slate-200",children:["Role: ",i||"unknown"]}),Y.jsxs("span",{className:"rounded-full bg-slate-800/80 px-3 py-1 text-slate-200",children:["Mode: ",f||"--"]})]})}function lv(){const{logs:o}=qn();return Y.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/70 p-4",children:[Y.jsxs("header",{className:"mb-3 flex items-center justify-between",children:[Y.jsx("h2",{className:"text-lg font-semibold text-white",children:"Server logs"}),Y.jsxs("span",{className:"text-xs uppercase tracking-[0.2em] text-slate-500",children:[o.length," entries"]})]}),Y.jsx("div",{className:"h-64 overflow-y-auto rounded-xl bg-slate-950/40 p-3 text-xs font-mono text-slate-300",children:o.length===0?Y.jsx("p",{children:"No logs yet."}):o.slice().reverse().map(i=>Y.jsxs("div",{className:"mb-2",children:[Y.jsx("span",{className:"text-slate-500",children:i.timestamp})," ",Y.jsxs("span",{className:"text-cyan-300",children:["[",i.level,"]"]})," ",i.label&&Y.jsxs("span",{className:"text-pink-300",children:["[",i.label,"]"]})," ",Y.jsx("span",{children:i.message})]},i.id))})]})}function nv(){const{session:o,requestControl:i}=qn(),f=o?.roster??[],[s,m]=Mt.useState({});async function E(R){m(B=>({...B,[R]:!0}));try{await i(R)}catch(B){alert(B.message)}finally{m(B=>({...B,[R]:!1}))}}return Y.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[Y.jsx("h2",{className:"text-lg font-semibold text-white",children:"Rovers"}),Y.jsxs("div",{className:"mt-4 space-y-3",children:[f.length===0&&Y.jsx("p",{className:"text-slate-400",children:"No rovers registered."}),f.map(R=>Y.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-xl bg-slate-950/40 px-4 py-3",children:[Y.jsxs("div",{children:[Y.jsx("p",{className:"text-white",children:R.name}),Y.jsxs("p",{className:"text-xs text-slate-400",children:["Locked: ",R.locked?"yes":"no"]})]}),Y.jsx("button",{type:"button",onClick:()=>E(R.id),disabled:s[R.id],className:"rounded-full bg-blue-600 px-4 py-1 text-sm font-semibold text-white disabled:opacity-50",children:s[R.id]?"Requesting…":"Request control"})]},R.id))]})]})}function av(){const{session:o,releaseControl:i}=qn(),f=o?.assignment,s=f?.roverId,[m,E]=Mt.useState(!1);async function R(){if(s){E(!0);try{await i(s)}catch(B){alert(B.message)}finally{E(!1)}}}return Y.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[Y.jsx("h2",{className:"text-lg font-semibold text-white",children:"Assignment"}),s?Y.jsxs("div",{className:"mt-4 space-y-3",children:[Y.jsxs("p",{className:"text-slate-300",children:["Currently driving rover ",s]}),Y.jsx("button",{type:"button",onClick:R,disabled:m,className:"rounded-full bg-red-600 px-4 py-1 text-sm font-semibold text-white disabled:opacity-50",children:m?"Releasing…":"Release control"})]}):Y.jsxs("div",{className:"mt-4 text-slate-400",children:[Y.jsxs("p",{children:["Status: ",f?.status??"not assigned"]}),f?.queuePosition&&Y.jsxs("p",{children:["Queue position: ",f.queuePosition]})]})]})}function uv(){const{session:o}=qn(),i=Mt.useMemo(()=>JSON.stringify(o??{},null,2),[o]);return Y.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[Y.jsx("h2",{className:"text-lg font-semibold text-white",children:"Session snapshot"}),Y.jsx("pre",{className:"mt-4 max-h-64 overflow-y-auto text-sm text-teal-200",children:i})]})}function iv(){const{login:o,setRole:i}=qn(),[f,s]=Mt.useState(""),[m,E]=Mt.useState(""),[R,B]=Mt.useState(!1);async function M(A){A.preventDefault(),B(!0);try{await o(f,m),s(""),E("")}catch(Q){alert(Q.message)}finally{B(!1)}}return Y.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[Y.jsx("h2",{className:"text-lg font-semibold text-white",children:"Authentication"}),Y.jsxs("form",{className:"mt-4 flex flex-col gap-3",onSubmit:M,children:[Y.jsx("input",{className:"rounded-lg border border-slate-800 bg-slate-950/60 px-3 py-2 text-white",placeholder:"Username",value:f,onChange:A=>s(A.target.value)}),Y.jsx("input",{className:"rounded-lg border border-slate-800 bg-slate-950/60 px-3 py-2 text-white",placeholder:"Password",type:"password",value:m,onChange:A=>E(A.target.value)}),Y.jsx("button",{type:"submit",disabled:R,className:"rounded-lg bg-emerald-600 py-2 font-semibold text-white disabled:opacity-50",children:R?"Logging in…":"Login as admin"})]}),Y.jsxs("div",{className:"mt-4 flex gap-3",children:[Y.jsx("button",{type:"button",onClick:()=>i("user"),className:"rounded-lg border border-slate-700 px-3 py-1 text-sm text-slate-200",children:"Driver mode"}),Y.jsx("button",{type:"button",onClick:()=>i("spectator"),className:"rounded-lg border border-slate-700 px-3 py-1 text-sm text-slate-200",children:"Spectator mode"})]})]})}function cv(){const{connected:o,session:i}=qn();return Y.jsx("div",{className:"min-h-screen bg-slate-950 text-slate-50",children:Y.jsxs("main",{className:"mx-auto flex max-w-6xl flex-col gap-6 px-6 py-10",children:[Y.jsxs("header",{className:"space-y-4",children:[Y.jsx("h1",{className:"text-4xl font-semibold text-white",children:"Multi Roomba Rover Console"}),Y.jsx(ev,{connected:o,role:i?.role,mode:i?.mode})]}),Y.jsxs("section",{className:"grid gap-6 lg:grid-cols-2",children:[Y.jsx(nv,{}),Y.jsx(av,{}),Y.jsx(iv,{}),Y.jsx(uv,{})]}),Y.jsx(lv,{})]})})}n0.createRoot(document.getElementById("root")).render(Y.jsx(Mt.StrictMode,{children:Y.jsx(F0,{children:Y.jsx(tv,{children:Y.jsx(cv,{})})})}));
|