Files
MultiRoombaRover/server/public/assets/index-BrexHw5K.js
T
2025-11-15 13:15:30 -05:00

12 lines
282 KiB
JavaScript

(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function c(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=c(o);fetch(o.href,d)}})();var Vc={exports:{}},qa={};var Ad;function Ip(){if(Ad)return qa;Ad=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var S in o)S!=="key"&&(d[S]=o[S])}else d=o;return o=d.ref,{$$typeof:s,type:r,key:m,ref:o!==void 0?o:null,props:d}}return qa.Fragment=i,qa.jsx=c,qa.jsxs=c,qa}var Rd;function t0(){return Rd||(Rd=1,Vc.exports=Ip()),Vc.exports}var A=t0(),Zc={exports:{}},F={};var Od;function e0(){if(Od)return F;Od=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),w=Symbol.iterator;function H(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,Y={};function X(b,B,L){this.props=b,this.context=B,this.refs=Y,this.updater=L||j}X.prototype.isReactComponent={},X.prototype.setState=function(b,B){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,B,"setState")},X.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function Q(){}Q.prototype=X.prototype;function k(b,B,L){this.props=b,this.context=B,this.refs=Y,this.updater=L||j}var dt=k.prototype=new Q;dt.constructor=k,Z(dt,X.prototype),dt.isPureReactComponent=!0;var Tt=Array.isArray;function qt(){}var tt={H:null,A:null,T:null,S:null},Lt=Object.prototype.hasOwnProperty;function Ot(b,B,L){var V=L.ref;return{$$typeof:s,type:b,key:B,ref:V!==void 0?V:null,props:L}}function ie(b,B){return Ot(b.type,B,b.props)}function ue(b){return typeof b=="object"&&b!==null&&b.$$typeof===s}function Ft(b){var B={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(L){return B[L]})}var jl=/\/+/g;function Ge(b,B){return typeof b=="object"&&b!==null&&b.key!=null?Ft(""+b.key):B.toString(36)}function Ne(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(qt,qt):(b.status="pending",b.then(function(B){b.status==="pending"&&(b.status="fulfilled",b.value=B)},function(B){b.status==="pending"&&(b.status="rejected",b.reason=B)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function D(b,B,L,V,P){var lt=typeof b;(lt==="undefined"||lt==="boolean")&&(b=null);var ht=!1;if(b===null)ht=!0;else switch(lt){case"bigint":case"string":case"number":ht=!0;break;case"object":switch(b.$$typeof){case s:case i:ht=!0;break;case z:return ht=b._init,D(ht(b._payload),B,L,V,P)}}if(ht)return P=P(b),ht=V===""?"."+Ge(b,0):V,Tt(P)?(L="",ht!=null&&(L=ht.replace(jl,"$&/")+"/"),D(P,B,L,"",function(Zn){return Zn})):P!=null&&(ue(P)&&(P=ie(P,L+(P.key==null||b&&b.key===P.key?"":(""+P.key).replace(jl,"$&/")+"/")+ht)),B.push(P)),1;ht=0;var $t=V===""?".":V+":";if(Tt(b))for(var Ct=0;Ct<b.length;Ct++)V=b[Ct],lt=$t+Ge(V,Ct),ht+=D(V,B,L,lt,P);else if(Ct=H(b),typeof Ct=="function")for(b=Ct.call(b),Ct=0;!(V=b.next()).done;)V=V.value,lt=$t+Ge(V,Ct++),ht+=D(V,B,L,lt,P);else if(lt==="object"){if(typeof b.then=="function")return D(Ne(b),B,L,V,P);throw B=String(b),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ht}function q(b,B,L){if(b==null)return b;var V=[],P=0;return D(b,V,"","",function(lt){return B.call(L,lt,P++)}),V}function W(b){if(b._status===-1){var B=b._result;B=B(),B.then(function(L){(b._status===0||b._status===-1)&&(b._status=1,b._result=L)},function(L){(b._status===0||b._status===-1)&&(b._status=2,b._result=L)}),b._status===-1&&(b._status=0,b._result=B)}if(b._status===1)return b._result.default;throw b._result}var pt=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},St={map:q,forEach:function(b,B,L){q(b,function(){B.apply(this,arguments)},L)},count:function(b){var B=0;return q(b,function(){B++}),B},toArray:function(b){return q(b,function(B){return B})||[]},only:function(b){if(!ue(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return F.Activity=R,F.Children=St,F.Component=X,F.Fragment=c,F.Profiler=o,F.PureComponent=k,F.StrictMode=r,F.Suspense=p,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=tt,F.__COMPILER_RUNTIME={__proto__:null,c:function(b){return tt.H.useMemoCache(b)}},F.cache=function(b){return function(){return b.apply(null,arguments)}},F.cacheSignal=function(){return null},F.cloneElement=function(b,B,L){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var V=Z({},b.props),P=b.key;if(B!=null)for(lt in B.key!==void 0&&(P=""+B.key),B)!Lt.call(B,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&B.ref===void 0||(V[lt]=B[lt]);var lt=arguments.length-2;if(lt===1)V.children=L;else if(1<lt){for(var ht=Array(lt),$t=0;$t<lt;$t++)ht[$t]=arguments[$t+2];V.children=ht}return Ot(b.type,P,V)},F.createContext=function(b){return b={$$typeof:m,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:d,_context:b},b},F.createElement=function(b,B,L){var V,P={},lt=null;if(B!=null)for(V in B.key!==void 0&&(lt=""+B.key),B)Lt.call(B,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(P[V]=B[V]);var ht=arguments.length-2;if(ht===1)P.children=L;else if(1<ht){for(var $t=Array(ht),Ct=0;Ct<ht;Ct++)$t[Ct]=arguments[Ct+2];P.children=$t}if(b&&b.defaultProps)for(V in ht=b.defaultProps,ht)P[V]===void 0&&(P[V]=ht[V]);return Ot(b,lt,P)},F.createRef=function(){return{current:null}},F.forwardRef=function(b){return{$$typeof:S,render:b}},F.isValidElement=ue,F.lazy=function(b){return{$$typeof:z,_payload:{_status:-1,_result:b},_init:W}},F.memo=function(b,B){return{$$typeof:v,type:b,compare:B===void 0?null:B}},F.startTransition=function(b){var B=tt.T,L={};tt.T=L;try{var V=b(),P=tt.S;P!==null&&P(L,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(qt,pt)}catch(lt){pt(lt)}finally{B!==null&&L.types!==null&&(B.types=L.types),tt.T=B}},F.unstable_useCacheRefresh=function(){return tt.H.useCacheRefresh()},F.use=function(b){return tt.H.use(b)},F.useActionState=function(b,B,L){return tt.H.useActionState(b,B,L)},F.useCallback=function(b,B){return tt.H.useCallback(b,B)},F.useContext=function(b){return tt.H.useContext(b)},F.useDebugValue=function(){},F.useDeferredValue=function(b,B){return tt.H.useDeferredValue(b,B)},F.useEffect=function(b,B){return tt.H.useEffect(b,B)},F.useEffectEvent=function(b){return tt.H.useEffectEvent(b)},F.useId=function(){return tt.H.useId()},F.useImperativeHandle=function(b,B,L){return tt.H.useImperativeHandle(b,B,L)},F.useInsertionEffect=function(b,B){return tt.H.useInsertionEffect(b,B)},F.useLayoutEffect=function(b,B){return tt.H.useLayoutEffect(b,B)},F.useMemo=function(b,B){return tt.H.useMemo(b,B)},F.useOptimistic=function(b,B){return tt.H.useOptimistic(b,B)},F.useReducer=function(b,B,L){return tt.H.useReducer(b,B,L)},F.useRef=function(b){return tt.H.useRef(b)},F.useState=function(b){return tt.H.useState(b)},F.useSyncExternalStore=function(b,B,L){return tt.H.useSyncExternalStore(b,B,L)},F.useTransition=function(){return tt.H.useTransition()},F.version="19.2.0",F}var Nd;function fr(){return Nd||(Nd=1,Zc.exports=e0()),Zc.exports}var x=fr(),Kc={exports:{}},La={},Jc={exports:{}},kc={};var zd;function l0(){return zd||(zd=1,(function(s){function i(D,q){var W=D.length;D.push(q);t:for(;0<W;){var pt=W-1>>>1,St=D[pt];if(0<o(St,q))D[pt]=q,D[W]=St,W=pt;else break t}}function c(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var q=D[0],W=D.pop();if(W!==q){D[0]=W;t:for(var pt=0,St=D.length,b=St>>>1;pt<b;){var B=2*(pt+1)-1,L=D[B],V=B+1,P=D[V];if(0>o(L,W))V<St&&0>o(P,L)?(D[pt]=P,D[V]=W,pt=V):(D[pt]=L,D[B]=W,pt=B);else if(V<St&&0>o(P,W))D[pt]=P,D[V]=W,pt=V;else break t}}return q}function o(D,q){var W=D.sortIndex-q.sortIndex;return W!==0?W:D.id-q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var m=Date,S=m.now();s.unstable_now=function(){return m.now()-S}}var p=[],v=[],z=1,R=null,w=3,H=!1,j=!1,Z=!1,Y=!1,X=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function dt(D){for(var q=c(v);q!==null;){if(q.callback===null)r(v);else if(q.startTime<=D)r(v),q.sortIndex=q.expirationTime,i(p,q);else break;q=c(v)}}function Tt(D){if(Z=!1,dt(D),!j)if(c(p)!==null)j=!0,qt||(qt=!0,Ft());else{var q=c(v);q!==null&&Ne(Tt,q.startTime-D)}}var qt=!1,tt=-1,Lt=5,Ot=-1;function ie(){return Y?!0:!(s.unstable_now()-Ot<Lt)}function ue(){if(Y=!1,qt){var D=s.unstable_now();Ot=D;var q=!0;try{t:{j=!1,Z&&(Z=!1,Q(tt),tt=-1),H=!0;var W=w;try{e:{for(dt(D),R=c(p);R!==null&&!(R.expirationTime>D&&ie());){var pt=R.callback;if(typeof pt=="function"){R.callback=null,w=R.priorityLevel;var St=pt(R.expirationTime<=D);if(D=s.unstable_now(),typeof St=="function"){R.callback=St,dt(D),q=!0;break e}R===c(p)&&r(p),dt(D)}else r(p);R=c(p)}if(R!==null)q=!0;else{var b=c(v);b!==null&&Ne(Tt,b.startTime-D),q=!1}}break t}finally{R=null,w=W,H=!1}q=void 0}}finally{q?Ft():qt=!1}}}var Ft;if(typeof k=="function")Ft=function(){k(ue)};else if(typeof MessageChannel<"u"){var jl=new MessageChannel,Ge=jl.port2;jl.port1.onmessage=ue,Ft=function(){Ge.postMessage(null)}}else Ft=function(){X(ue,0)};function Ne(D,q){tt=X(function(){D(s.unstable_now())},q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(D){D.callback=null},s.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Lt=0<D?Math.floor(1e3/D):5},s.unstable_getCurrentPriorityLevel=function(){return w},s.unstable_next=function(D){switch(w){case 1:case 2:case 3:var q=3;break;default:q=w}var W=w;w=q;try{return D()}finally{w=W}},s.unstable_requestPaint=function(){Y=!0},s.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var W=w;w=D;try{return q()}finally{w=W}},s.unstable_scheduleCallback=function(D,q,W){var pt=s.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?pt+W:pt):W=pt,D){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=W+St,D={id:z++,callback:q,priorityLevel:D,startTime:W,expirationTime:St,sortIndex:-1},W>pt?(D.sortIndex=W,i(v,D),c(p)===null&&D===c(v)&&(Z?(Q(tt),tt=-1):Z=!0,Ne(Tt,W-pt))):(D.sortIndex=St,i(p,D),j||H||(j=!0,qt||(qt=!0,Ft()))),D},s.unstable_shouldYield=ie,s.unstable_wrapCallback=function(D){var q=w;return function(){var W=w;w=q;try{return D.apply(this,arguments)}finally{w=W}}}})(kc)),kc}var Cd;function n0(){return Cd||(Cd=1,Jc.exports=l0()),Jc.exports}var $c={exports:{}},kt={};var Dd;function a0(){if(Dd)return kt;Dd=1;var s=fr();function i(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)v+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(p,v,z){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:R==null?null:""+R,children:p,containerInfo:v,implementation:z}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,kt.createPortal=function(p,v){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return d(p,v,null,z)},kt.flushSync=function(p){var v=m.T,z=r.p;try{if(m.T=null,r.p=2,p)return p()}finally{m.T=v,r.p=z,r.d.f()}},kt.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(p,v))},kt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},kt.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var z=v.as,R=S(z,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,H=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;z==="style"?r.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:R,integrity:w,fetchPriority:H}):z==="script"&&r.d.X(p,{crossOrigin:R,integrity:w,fetchPriority:H,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},kt.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var z=S(v.as,v.crossOrigin);r.d.M(p,{crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(p)},kt.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var z=v.as,R=S(z,v.crossOrigin);r.d.L(p,z,{crossOrigin:R,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},kt.preloadModule=function(p,v){if(typeof p=="string")if(v){var z=S(v.as,v.crossOrigin);r.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(p)},kt.requestFormReset=function(p){r.d.r(p)},kt.unstable_batchedUpdates=function(p,v){return p(v)},kt.useFormState=function(p,v,z){return m.H.useFormState(p,v,z)},kt.useFormStatus=function(){return m.H.useHostTransitionStatus()},kt.version="19.2.0",kt}var Md;function i0(){if(Md)return $c.exports;Md=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),$c.exports=a0(),$c.exports}var Ud;function u0(){if(Ud)return La;Ud=1;var s=n0(),i=fr(),c=i0();function r(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 o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(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 m(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 S(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 p(t){if(d(t)!==t)throw Error(r(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(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 p(a),t;if(u===n)return p(a),e;u=u.sibling}throw Error(r(188))}if(l.return!==n.return)l=a,n=u;else{for(var f=!1,h=a.child;h;){if(h===l){f=!0,l=a,n=u;break}if(h===n){f=!0,n=a,l=u;break}h=h.sibling}if(!f){for(h=u.child;h;){if(h===l){f=!0,l=u,n=a;break}if(h===n){f=!0,n=u,l=a;break}h=h.sibling}if(!f)throw Error(r(189))}}if(l.alternate!==n)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function z(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=z(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,w=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),k=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),Tt=Symbol.for("react.suspense"),qt=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),Ot=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function Ft(t){return t===null||typeof t!="object"?null:(t=ue&&t[ue]||t["@@iterator"],typeof t=="function"?t:null)}var jl=Symbol.for("react.client.reference");function Ge(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jl?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Z:return"Fragment";case X:return"Profiler";case Y:return"StrictMode";case Tt:return"Suspense";case qt:return"SuspenseList";case Ot:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case k:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case dt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case tt:return e=t.displayName||null,e!==null?e:Ge(t.type)||"Memo";case Lt:e=t._payload,t=t._init;try{return Ge(t(e))}catch{}}return null}var Ne=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},pt=[],St=-1;function b(t){return{current:t}}function B(t){0>St||(t.current=pt[St],pt[St]=null,St--)}function L(t,e){St++,pt[St]=t.current,t.current=e}var V=b(null),P=b(null),lt=b(null),ht=b(null);function $t(t,e){switch(L(lt,e),L(P,t),L(V,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?kh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=kh(e),t=$h(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(V),L(V,t)}function Ct(){B(V),B(P),B(lt)}function Zn(t){t.memoizedState!==null&&L(ht,t);var e=V.current,l=$h(e,t.type);e!==l&&(L(P,t),L(V,l))}function Ja(t){P.current===t&&(B(V),B(P)),ht.current===t&&(B(ht),Ba._currentValue=W)}var Ru,xr;function Hl(t){if(Ru===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Ru=e&&e[1]||"",xr=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ru+t+xr}var Ou=!1;function Nu(t,e){if(!t||Ou)return"";Ou=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(N){var O=N}Reflect.construct(t,[],U)}else{try{U.call()}catch(N){O=N}t.call(U.prototype)}}else{try{throw Error()}catch(N){O=N}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(N){if(N&&O&&typeof N.stack=="string")return[N.stack,O.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(),f=u[0],h=u[1];if(f&&h){var y=f.split(`
`),T=h.split(`
`);for(a=n=0;n<y.length&&!y[n].includes("DetermineComponentFrameRoot");)n++;for(;a<T.length&&!T[a].includes("DetermineComponentFrameRoot");)a++;if(n===y.length||a===T.length)for(n=y.length-1,a=T.length-1;1<=n&&0<=a&&y[n]!==T[a];)a--;for(;1<=n&&0<=a;n--,a--)if(y[n]!==T[a]){if(n!==1||a!==1)do if(n--,a--,0>a||y[n]!==T[a]){var C=`
`+y[n].replace(" at new "," at ");return t.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",t.displayName)),C}while(1<=n&&0<=a);break}}}finally{Ou=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Hl(l):""}function Cm(t,e){switch(t.tag){case 26:case 27:case 5:return Hl(t.type);case 16:return Hl("Lazy");case 13:return t.child!==e&&e!==null?Hl("Suspense Fallback"):Hl("Suspense");case 19:return Hl("SuspenseList");case 0:case 15:return Nu(t.type,!1);case 11:return Nu(t.type.render,!1);case 1:return Nu(t.type,!0);case 31:return Hl("Activity");default:return""}}function _r(t){try{var e="",l=null;do e+=Cm(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var zu=Object.prototype.hasOwnProperty,Cu=s.unstable_scheduleCallback,Du=s.unstable_cancelCallback,Dm=s.unstable_shouldYield,Mm=s.unstable_requestPaint,se=s.unstable_now,Um=s.unstable_getCurrentPriorityLevel,Tr=s.unstable_ImmediatePriority,Ar=s.unstable_UserBlockingPriority,ka=s.unstable_NormalPriority,Bm=s.unstable_LowPriority,Rr=s.unstable_IdlePriority,wm=s.log,jm=s.unstable_setDisableYieldValue,Kn=null,ce=null;function fl(t){if(typeof wm=="function"&&jm(t),ce&&typeof ce.setStrictMode=="function")try{ce.setStrictMode(Kn,t)}catch{}}var re=Math.clz32?Math.clz32:Lm,Hm=Math.log,qm=Math.LN2;function Lm(t){return t>>>=0,t===0?32:31-(Hm(t)/qm|0)|0}var $a=256,Wa=262144,Fa=4194304;function ql(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 Pa(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?a=ql(n):(f&=h,f!==0?a=ql(f):l||(l=h&~t,l!==0&&(a=ql(l))))):(h=n&~u,h!==0?a=ql(h):f!==0?a=ql(f):l||(l=n&~t,l!==0&&(a=ql(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 Ym(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 Or(){var t=Fa;return Fa<<=1,(Fa&62914560)===0&&(Fa=4194304),t}function Mu(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function kn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xm(t,e,l,n,a,u){var f=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 h=t.entanglements,y=t.expirationTimes,T=t.hiddenUpdates;for(l=f&~l;0<l;){var C=31-re(l),U=1<<C;h[C]=0,y[C]=-1;var O=T[C];if(O!==null)for(T[C]=null,C=0;C<O.length;C++){var N=O[C];N!==null&&(N.lane&=-536870913)}l&=~U}n!==0&&Nr(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Nr(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-re(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function zr(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-re(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function Cr(t,e){var l=e&-e;return l=(l&42)!==0?1:Uu(l),(l&(t.suspendedLanes|e))!==0?0:l}function Uu(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 Bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Dr(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:gd(t.type))}function Mr(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var ol=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ol,Pt="__reactProps$"+ol,nn="__reactContainer$"+ol,wu="__reactEvents$"+ol,Gm="__reactListeners$"+ol,Qm="__reactHandles$"+ol,Ur="__reactResources$"+ol,$n="__reactMarker$"+ol;function ju(t){delete t[Qt],delete t[Pt],delete t[wu],delete t[Gm],delete t[Qm]}function an(t){var e=t[Qt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[nn]||l[Qt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=ld(t);t!==null;){if(l=t[Qt])return l;t=ld(t)}return e}t=l,l=t.parentNode}return null}function un(t){if(t=t[Qt]||t[nn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Wn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function sn(t){var e=t[Ur];return e||(e=t[Ur]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Xt(t){t[$n]=!0}var Br=new Set,wr={};function Ll(t,e){cn(t,e),cn(t+"Capture",e)}function cn(t,e){for(wr[t]=e,t=0;t<e.length;t++)Br.add(e[t])}var Vm=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]*$"),jr={},Hr={};function Zm(t){return zu.call(Hr,t)?!0:zu.call(jr,t)?!1:Vm.test(t)?Hr[t]=!0:(jr[t]=!0,!1)}function Ia(t,e,l){if(Zm(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 ti(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 Qe(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 ve(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function qr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Km(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(f){l=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){if(!t._valueTracker){var e=qr(t)?"checked":"value";t._valueTracker=Km(t,e,""+t[e])}}function Lr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=qr(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function ei(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 Jm=/[\n"\\]/g;function ge(t){return t.replace(Jm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function qu(t,e,l,n,a,u,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ve(e)):t.value!==""+ve(e)&&(t.value=""+ve(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Lu(t,f,ve(e)):l!=null?Lu(t,f,ve(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+ve(h):t.removeAttribute("name")}function Yr(t,e,l,n,a,u,f,h){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)){Hu(t);return}l=l!=null?""+ve(l):"",e=e!=null?""+ve(e):l,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Hu(t)}function Lu(t,e,l){e==="number"&&ei(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function rn(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=""+ve(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 Xr(t,e,l){if(e!=null&&(e=""+ve(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+ve(l):""}function Gr(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(r(92));if(Ne(n)){if(1<n.length)throw Error(r(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=ve(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),Hu(t)}function fn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var km=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 Qr(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||km.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Vr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(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&&Qr(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&Qr(t,u,e[u])}function Yu(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 $m=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"]]),Wm=/^[\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 li(t){return Wm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ve(){}var Xu=null;function Gu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var on=null,hn=null;function Zr(t){var e=un(t);if(e&&(t=e.stateNode)){var l=t[Pt]||null;t:switch(t=e.stateNode,e.type){case"input":if(qu(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="'+ge(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[Pt]||null;if(!a)throw Error(r(90));qu(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&&Lr(n)}break t;case"textarea":Xr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&rn(t,!!l.multiple,e,!1)}}}var Qu=!1;function Kr(t,e,l){if(Qu)return t(e,l);Qu=!0;try{var n=t(e);return n}finally{if(Qu=!1,(on!==null||hn!==null)&&(Qi(),on&&(e=on,t=hn,hn=on=null,Zr(e),t)))for(e=0;e<t.length;e++)Zr(t[e])}}function Fn(t,e){var l=t.stateNode;if(l===null)return null;var n=l[Pt]||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(r(231,e,typeof l));return l}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vu=!1;if(Ze)try{var Pn={};Object.defineProperty(Pn,"passive",{get:function(){Vu=!0}}),window.addEventListener("test",Pn,Pn),window.removeEventListener("test",Pn,Pn)}catch{Vu=!1}var hl=null,Zu=null,ni=null;function Jr(){if(ni)return ni;var t,e=Zu,l=e.length,n,a="value"in hl?hl.value:hl.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var f=l-t;for(n=1;n<=f&&e[l-n]===a[u-n];n++);return ni=a.slice(t,1<n?1-n:void 0)}function ai(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 ii(){return!0}function kr(){return!1}function It(t){function e(l,n,a,u,f){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(l=t[h],this[h]=l?l(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ii:kr,this.isPropagationStopped=kr,this}return R(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=ii)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),e}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=It(Yl),In=R({},Yl,{view:0,detail:0}),Fm=It(In),Ku,Ju,ta,si=R({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$u,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!==ta&&(ta&&t.type==="mousemove"?(Ku=t.screenX-ta.screenX,Ju=t.screenY-ta.screenY):Ju=Ku=0,ta=t),Ku)},movementY:function(t){return"movementY"in t?t.movementY:Ju}}),$r=It(si),Pm=R({},si,{dataTransfer:0}),Im=It(Pm),ty=R({},In,{relatedTarget:0}),ku=It(ty),ey=R({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=It(ey),ny=R({},Yl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ay=It(ny),iy=R({},Yl,{data:0}),Wr=It(iy),uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sy={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"},cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ry(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=cy[t])?!!e[t]:!1}function $u(){return ry}var fy=R({},In,{key:function(t){if(t.key){var e=uy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ai(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?sy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$u,charCode:function(t){return t.type==="keypress"?ai(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ai(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),oy=It(fy),hy=R({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=It(hy),dy=R({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$u}),my=It(dy),yy=R({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),py=It(yy),vy=R({},si,{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}),gy=It(vy),by=R({},Yl,{newState:0,oldState:0}),Sy=It(by),Ey=[9,13,27,32],Wu=Ze&&"CompositionEvent"in window,ea=null;Ze&&"documentMode"in document&&(ea=document.documentMode);var xy=Ze&&"TextEvent"in window&&!ea,Pr=Ze&&(!Wu||ea&&8<ea&&11>=ea),Ir=" ",tf=!1;function ef(t,e){switch(t){case"keyup":return Ey.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var dn=!1;function _y(t,e){switch(t){case"compositionend":return lf(e);case"keypress":return e.which!==32?null:(tf=!0,Ir);case"textInput":return t=e.data,t===Ir&&tf?null:t;default:return null}}function Ty(t,e){if(dn)return t==="compositionend"||!Wu&&ef(t,e)?(t=Jr(),ni=Zu=hl=null,dn=!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 Pr&&e.locale!=="ko"?null:e.data;default:return null}}var Ay={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 nf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ay[t.type]:e==="textarea"}function af(t,e,l,n){on?hn?hn.push(n):hn=[n]:on=n,e=Wi(e,"onChange"),0<e.length&&(l=new ui("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var la=null,na=null;function Ry(t){Gh(t,0)}function ci(t){var e=Wn(t);if(Lr(e))return t}function uf(t,e){if(t==="change")return e}var sf=!1;if(Ze){var Fu;if(Ze){var Pu="oninput"in document;if(!Pu){var cf=document.createElement("div");cf.setAttribute("oninput","return;"),Pu=typeof cf.oninput=="function"}Fu=Pu}else Fu=!1;sf=Fu&&(!document.documentMode||9<document.documentMode)}function rf(){la&&(la.detachEvent("onpropertychange",ff),na=la=null)}function ff(t){if(t.propertyName==="value"&&ci(na)){var e=[];af(e,na,t,Gu(t)),Kr(Ry,e)}}function Oy(t,e,l){t==="focusin"?(rf(),la=e,na=l,la.attachEvent("onpropertychange",ff)):t==="focusout"&&rf()}function Ny(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ci(na)}function zy(t,e){if(t==="click")return ci(e)}function Cy(t,e){if(t==="input"||t==="change")return ci(e)}function Dy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fe=typeof Object.is=="function"?Object.is:Dy;function aa(t,e){if(fe(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(!zu.call(e,a)||!fe(t[a],e[a]))return!1}return!0}function of(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hf(t,e){var l=of(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=of(l)}}function df(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?df(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function mf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ei(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=ei(t.document)}return e}function Iu(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 My=Ze&&"documentMode"in document&&11>=document.documentMode,mn=null,ts=null,ia=null,es=!1;function yf(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;es||mn==null||mn!==ei(n)||(n=mn,"selectionStart"in n&&Iu(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}),ia&&aa(ia,n)||(ia=n,n=Wi(ts,"onSelect"),0<n.length&&(e=new ui("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=mn)))}function Xl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var yn={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},ls={},pf={};Ze&&(pf=document.createElement("div").style,"AnimationEvent"in window||(delete yn.animationend.animation,delete yn.animationiteration.animation,delete yn.animationstart.animation),"TransitionEvent"in window||delete yn.transitionend.transition);function Gl(t){if(ls[t])return ls[t];if(!yn[t])return t;var e=yn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in pf)return ls[t]=e[l];return t}var vf=Gl("animationend"),gf=Gl("animationiteration"),bf=Gl("animationstart"),Uy=Gl("transitionrun"),By=Gl("transitionstart"),wy=Gl("transitioncancel"),Sf=Gl("transitionend"),Ef=new Map,ns="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(" ");ns.push("scrollEnd");function ze(t,e){Ef.set(t,e),Ll(e,[t])}var ri=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)},be=[],pn=0,as=0;function fi(){for(var t=pn,e=as=pn=0;e<t;){var l=be[e];be[e++]=null;var n=be[e];be[e++]=null;var a=be[e];be[e++]=null;var u=be[e];if(be[e++]=null,n!==null&&a!==null){var f=n.pending;f===null?a.next=a:(a.next=f.next,f.next=a),n.pending=a}u!==0&&xf(l,a,u)}}function oi(t,e,l,n){be[pn++]=t,be[pn++]=e,be[pn++]=l,be[pn++]=n,as|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function is(t,e,l,n){return oi(t,e,l,n),hi(t)}function Ql(t,e){return oi(t,null,null,e),hi(t)}function xf(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-re(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function hi(t){if(50<Oa)throw Oa=0,mc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var vn={};function jy(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 oe(t,e,l,n){return new jy(t,e,l,n)}function us(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ke(t,e){var l=t.alternate;return l===null?(l=oe(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 _f(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 di(t,e,l,n,a,u){var f=0;if(n=t,typeof t=="function")us(t)&&(f=1);else if(typeof t=="string")f=Xp(t,l,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ot:return t=oe(31,l,e,a),t.elementType=Ot,t.lanes=u,t;case Z:return Vl(l.children,a,u,e);case Y:f=8,a|=24;break;case X:return t=oe(12,l,e,a|2),t.elementType=X,t.lanes=u,t;case Tt:return t=oe(13,l,e,a),t.elementType=Tt,t.lanes=u,t;case qt:return t=oe(19,l,e,a),t.elementType=qt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case k:f=10;break t;case Q:f=9;break t;case dt:f=11;break t;case tt:f=14;break t;case Lt:f=16,n=null;break t}f=29,l=Error(r(130,t===null?"null":typeof t,"")),n=null}return e=oe(f,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function Vl(t,e,l,n){return t=oe(7,t,n,e),t.lanes=l,t}function ss(t,e,l){return t=oe(6,t,null,e),t.lanes=l,t}function Tf(t){var e=oe(18,null,null,0);return e.stateNode=t,e}function cs(t,e,l){return e=oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Af=new WeakMap;function Se(t,e){if(typeof t=="object"&&t!==null){var l=Af.get(t);return l!==void 0?l:(e={value:t,source:e,stack:_r(e)},Af.set(t,e),e)}return{value:t,source:e,stack:_r(e)}}var gn=[],bn=0,mi=null,ua=0,Ee=[],xe=0,dl=null,we=1,je="";function Je(t,e){gn[bn++]=ua,gn[bn++]=mi,mi=t,ua=e}function Rf(t,e,l){Ee[xe++]=we,Ee[xe++]=je,Ee[xe++]=dl,dl=t;var n=we;t=je;var a=32-re(n)-1;n&=~(1<<a),l+=1;var u=32-re(e)+a;if(30<u){var f=a-a%5;u=(n&(1<<f)-1).toString(32),n>>=f,a-=f,we=1<<32-re(e)+a|l<<a|n,je=u+t}else we=1<<u|l<<a|n,je=t}function rs(t){t.return!==null&&(Je(t,1),Rf(t,1,0))}function fs(t){for(;t===mi;)mi=gn[--bn],gn[bn]=null,ua=gn[--bn],gn[bn]=null;for(;t===dl;)dl=Ee[--xe],Ee[xe]=null,je=Ee[--xe],Ee[xe]=null,we=Ee[--xe],Ee[xe]=null}function Of(t,e){Ee[xe++]=we,Ee[xe++]=je,Ee[xe++]=dl,we=e.id,je=e.overflow,dl=t}var Vt=null,xt=null,st=!1,ml=null,_e=!1,os=Error(r(519));function yl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sa(Se(e,t)),os}function Nf(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Qt]=t,e[Pt]=n,l){case"dialog":at("cancel",e),at("close",e);break;case"iframe":case"object":case"embed":at("load",e);break;case"video":case"audio":for(l=0;l<za.length;l++)at(za[l],e);break;case"source":at("error",e);break;case"img":case"image":case"link":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"input":at("invalid",e),Yr(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":at("invalid",e);break;case"textarea":at("invalid",e),Gr(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||Kh(e.textContent,l)?(n.popover!=null&&(at("beforetoggle",e),at("toggle",e)),n.onScroll!=null&&at("scroll",e),n.onScrollEnd!=null&&at("scrollend",e),n.onClick!=null&&(e.onclick=Ve),e=!0):e=!1,e||yl(t,!0)}function zf(t){for(Vt=t.return;Vt;)switch(Vt.tag){case 5:case 31:case 13:_e=!1;return;case 27:case 3:_e=!0;return;default:Vt=Vt.return}}function Sn(t){if(t!==Vt)return!1;if(!st)return zf(t),st=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||zc(t.type,t.memoizedProps)),l=!l),l&&xt&&yl(t),zf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));xt=ed(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));xt=ed(t)}else e===27?(e=xt,zl(t.type)?(t=Bc,Bc=null,xt=t):xt=e):xt=Vt?Ae(t.stateNode.nextSibling):null;return!0}function Zl(){xt=Vt=null,st=!1}function hs(){var t=ml;return t!==null&&(ne===null?ne=t:ne.push.apply(ne,t),ml=null),t}function sa(t){ml===null?ml=[t]:ml.push(t)}var ds=b(null),Kl=null,ke=null;function pl(t,e,l){L(ds,e._currentValue),e._currentValue=l}function $e(t){t._currentValue=ds.current,B(ds)}function ms(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 ys(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var f=a.child;u=u.firstContext;t:for(;u!==null;){var h=u;u=a;for(var y=0;y<e.length;y++)if(h.context===e[y]){u.lanes|=l,h=u.alternate,h!==null&&(h.lanes|=l),ms(u.return,l,t),n||(f=null);break t}u=h.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(r(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),ms(f,l,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function En(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 f=a.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var h=a.type;fe(a.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(a===ht.current){if(f=a.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ba):t=[Ba])}a=a.return}t!==null&&ys(e,t,l,n),e.flags|=262144}function yi(t){for(t=t.firstContext;t!==null;){if(!fe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Jl(t){Kl=t,ke=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Zt(t){return Cf(Kl,t)}function pi(t,e){return Kl===null&&Jl(t),Cf(t,e)}function Cf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ke===null){if(t===null)throw Error(r(308));ke=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ke=ke.next=e;return l}var Hy=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()})}},qy=s.unstable_scheduleCallback,Ly=s.unstable_NormalPriority,Ut={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ps(){return{controller:new Hy,data:new Map,refCount:0}}function ca(t){t.refCount--,t.refCount===0&&qy(Ly,function(){t.controller.abort()})}var ra=null,vs=0,xn=0,_n=null;function Yy(t,e){if(ra===null){var l=ra=[];vs=0,xn=Sc(),_n={status:"pending",value:void 0,then:function(n){l.push(n)}}}return vs++,e.then(Df,Df),e}function Df(){if(--vs===0&&ra!==null){_n!==null&&(_n.status="fulfilled");var t=ra;ra=null,xn=0,_n=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Xy(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 Mf=D.S;D.S=function(t,e){ph=se(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Yy(t,e),Mf!==null&&Mf(t,e)};var kl=b(null);function gs(){var t=kl.current;return t!==null?t:Et.pooledCache}function vi(t,e){e===null?L(kl,kl.current):L(kl,e.pool)}function Uf(){var t=gs();return t===null?null:{parent:Ut._currentValue,pool:t}}var Tn=Error(r(460)),bs=Error(r(474)),gi=Error(r(542)),bi={then:function(){}};function Bf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function wf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Ve,Ve),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Hf(t),t;default:if(typeof e.status=="string")e.then(Ve,Ve);else{if(t=Et,t!==null&&100<t.shellSuspendCounter)throw Error(r(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,Hf(t),t}throw Wl=e,Tn}}function $l(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,Tn):l}}var Wl=null;function jf(){if(Wl===null)throw Error(r(459));var t=Wl;return Wl=null,t}function Hf(t){if(t===Tn||t===gi)throw Error(r(483))}var An=null,fa=0;function Si(t){var e=fa;return fa+=1,An===null&&(An=[]),wf(An,t,e)}function oa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ei(t,e){throw e.$$typeof===w?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function qf(t){function e(E,g){if(t){var _=E.deletions;_===null?(E.deletions=[g],E.flags|=16):_.push(g)}}function l(E,g){if(!t)return null;for(;g!==null;)e(E,g),g=g.sibling;return null}function n(E){for(var g=new Map;E!==null;)E.key!==null?g.set(E.key,E):g.set(E.index,E),E=E.sibling;return g}function a(E,g){return E=Ke(E,g),E.index=0,E.sibling=null,E}function u(E,g,_){return E.index=_,t?(_=E.alternate,_!==null?(_=_.index,_<g?(E.flags|=67108866,g):_):(E.flags|=67108866,g)):(E.flags|=1048576,g)}function f(E){return t&&E.alternate===null&&(E.flags|=67108866),E}function h(E,g,_,M){return g===null||g.tag!==6?(g=ss(_,E.mode,M),g.return=E,g):(g=a(g,_),g.return=E,g)}function y(E,g,_,M){var J=_.type;return J===Z?C(E,g,_.props.children,M,_.key):g!==null&&(g.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Lt&&$l(J)===g.type)?(g=a(g,_.props),oa(g,_),g.return=E,g):(g=di(_.type,_.key,_.props,null,E.mode,M),oa(g,_),g.return=E,g)}function T(E,g,_,M){return g===null||g.tag!==4||g.stateNode.containerInfo!==_.containerInfo||g.stateNode.implementation!==_.implementation?(g=cs(_,E.mode,M),g.return=E,g):(g=a(g,_.children||[]),g.return=E,g)}function C(E,g,_,M,J){return g===null||g.tag!==7?(g=Vl(_,E.mode,M,J),g.return=E,g):(g=a(g,_),g.return=E,g)}function U(E,g,_){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=ss(""+g,E.mode,_),g.return=E,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case H:return _=di(g.type,g.key,g.props,null,E.mode,_),oa(_,g),_.return=E,_;case j:return g=cs(g,E.mode,_),g.return=E,g;case Lt:return g=$l(g),U(E,g,_)}if(Ne(g)||Ft(g))return g=Vl(g,E.mode,_,null),g.return=E,g;if(typeof g.then=="function")return U(E,Si(g),_);if(g.$$typeof===k)return U(E,pi(E,g),_);Ei(E,g)}return null}function O(E,g,_,M){var J=g!==null?g.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return J!==null?null:h(E,g,""+_,M);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case H:return _.key===J?y(E,g,_,M):null;case j:return _.key===J?T(E,g,_,M):null;case Lt:return _=$l(_),O(E,g,_,M)}if(Ne(_)||Ft(_))return J!==null?null:C(E,g,_,M,null);if(typeof _.then=="function")return O(E,g,Si(_),M);if(_.$$typeof===k)return O(E,g,pi(E,_),M);Ei(E,_)}return null}function N(E,g,_,M,J){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return E=E.get(_)||null,h(g,E,""+M,J);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case H:return E=E.get(M.key===null?_:M.key)||null,y(g,E,M,J);case j:return E=E.get(M.key===null?_:M.key)||null,T(g,E,M,J);case Lt:return M=$l(M),N(E,g,_,M,J)}if(Ne(M)||Ft(M))return E=E.get(_)||null,C(g,E,M,J,null);if(typeof M.then=="function")return N(E,g,_,Si(M),J);if(M.$$typeof===k)return N(E,g,_,pi(g,M),J);Ei(g,M)}return null}function G(E,g,_,M){for(var J=null,rt=null,K=g,et=g=0,ut=null;K!==null&&et<_.length;et++){K.index>et?(ut=K,K=null):ut=K.sibling;var ft=O(E,K,_[et],M);if(ft===null){K===null&&(K=ut);break}t&&K&&ft.alternate===null&&e(E,K),g=u(ft,g,et),rt===null?J=ft:rt.sibling=ft,rt=ft,K=ut}if(et===_.length)return l(E,K),st&&Je(E,et),J;if(K===null){for(;et<_.length;et++)K=U(E,_[et],M),K!==null&&(g=u(K,g,et),rt===null?J=K:rt.sibling=K,rt=K);return st&&Je(E,et),J}for(K=n(K);et<_.length;et++)ut=N(K,E,et,_[et],M),ut!==null&&(t&&ut.alternate!==null&&K.delete(ut.key===null?et:ut.key),g=u(ut,g,et),rt===null?J=ut:rt.sibling=ut,rt=ut);return t&&K.forEach(function(Bl){return e(E,Bl)}),st&&Je(E,et),J}function $(E,g,_,M){if(_==null)throw Error(r(151));for(var J=null,rt=null,K=g,et=g=0,ut=null,ft=_.next();K!==null&&!ft.done;et++,ft=_.next()){K.index>et?(ut=K,K=null):ut=K.sibling;var Bl=O(E,K,ft.value,M);if(Bl===null){K===null&&(K=ut);break}t&&K&&Bl.alternate===null&&e(E,K),g=u(Bl,g,et),rt===null?J=Bl:rt.sibling=Bl,rt=Bl,K=ut}if(ft.done)return l(E,K),st&&Je(E,et),J;if(K===null){for(;!ft.done;et++,ft=_.next())ft=U(E,ft.value,M),ft!==null&&(g=u(ft,g,et),rt===null?J=ft:rt.sibling=ft,rt=ft);return st&&Je(E,et),J}for(K=n(K);!ft.done;et++,ft=_.next())ft=N(K,E,et,ft.value,M),ft!==null&&(t&&ft.alternate!==null&&K.delete(ft.key===null?et:ft.key),g=u(ft,g,et),rt===null?J=ft:rt.sibling=ft,rt=ft);return t&&K.forEach(function(Pp){return e(E,Pp)}),st&&Je(E,et),J}function bt(E,g,_,M){if(typeof _=="object"&&_!==null&&_.type===Z&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case H:t:{for(var J=_.key;g!==null;){if(g.key===J){if(J=_.type,J===Z){if(g.tag===7){l(E,g.sibling),M=a(g,_.props.children),M.return=E,E=M;break t}}else if(g.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Lt&&$l(J)===g.type){l(E,g.sibling),M=a(g,_.props),oa(M,_),M.return=E,E=M;break t}l(E,g);break}else e(E,g);g=g.sibling}_.type===Z?(M=Vl(_.props.children,E.mode,M,_.key),M.return=E,E=M):(M=di(_.type,_.key,_.props,null,E.mode,M),oa(M,_),M.return=E,E=M)}return f(E);case j:t:{for(J=_.key;g!==null;){if(g.key===J)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){l(E,g.sibling),M=a(g,_.children||[]),M.return=E,E=M;break t}else{l(E,g);break}else e(E,g);g=g.sibling}M=cs(_,E.mode,M),M.return=E,E=M}return f(E);case Lt:return _=$l(_),bt(E,g,_,M)}if(Ne(_))return G(E,g,_,M);if(Ft(_)){if(J=Ft(_),typeof J!="function")throw Error(r(150));return _=J.call(_),$(E,g,_,M)}if(typeof _.then=="function")return bt(E,g,Si(_),M);if(_.$$typeof===k)return bt(E,g,pi(E,_),M);Ei(E,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,g!==null&&g.tag===6?(l(E,g.sibling),M=a(g,_),M.return=E,E=M):(l(E,g),M=ss(_,E.mode,M),M.return=E,E=M),f(E)):l(E,g)}return function(E,g,_,M){try{fa=0;var J=bt(E,g,_,M);return An=null,J}catch(K){if(K===Tn||K===gi)throw K;var rt=oe(29,K,null,E.mode);return rt.lanes=M,rt.return=E,rt}finally{}}}var Fl=qf(!0),Lf=qf(!1),vl=!1;function Ss(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Es(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 gl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(ot&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=hi(t),xf(t,null,l),e}return oi(t,n,e,l),hi(t)}function ha(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,zr(t,l)}}function xs(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 f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=f:u=u.next=f,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 _s=!1;function da(){if(_s){var t=_n;if(t!==null)throw t}}function ma(t,e,l,n){_s=!1;var a=t.updateQueue;vl=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var y=h,T=y.next;y.next=null,f===null?u=T:f.next=T,f=y;var C=t.alternate;C!==null&&(C=C.updateQueue,h=C.lastBaseUpdate,h!==f&&(h===null?C.firstBaseUpdate=T:h.next=T,C.lastBaseUpdate=y))}if(u!==null){var U=a.baseState;f=0,C=T=y=null,h=u;do{var O=h.lane&-536870913,N=O!==h.lane;if(N?(it&O)===O:(n&O)===O){O!==0&&O===xn&&(_s=!0),C!==null&&(C=C.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var G=t,$=h;O=e;var bt=l;switch($.tag){case 1:if(G=$.payload,typeof G=="function"){U=G.call(bt,U,O);break t}U=G;break t;case 3:G.flags=G.flags&-65537|128;case 0:if(G=$.payload,O=typeof G=="function"?G.call(bt,U,O):G,O==null)break t;U=R({},U,O);break t;case 2:vl=!0}}O=h.callback,O!==null&&(t.flags|=64,N&&(t.flags|=8192),N=a.callbacks,N===null?a.callbacks=[O]:N.push(O))}else N={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},C===null?(T=C=N,y=U):C=C.next=N,f|=O;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;N=h,h=N.next,N.next=null,a.lastBaseUpdate=N,a.shared.pending=null}}while(!0);C===null&&(y=U),a.baseState=y,a.firstBaseUpdate=T,a.lastBaseUpdate=C,u===null&&(a.shared.lanes=0),Tl|=f,t.lanes=f,t.memoizedState=U}}function Yf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Xf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Yf(l[t],e)}var Rn=b(null),xi=b(0);function Gf(t,e){t=al,L(xi,t),L(Rn,e),al=t|e.baseLanes}function Ts(){L(xi,al),L(Rn,Rn.current)}function As(){al=xi.current,B(Rn),B(xi)}var he=b(null),Te=null;function Sl(t){var e=t.alternate;L(Dt,Dt.current&1),L(he,t),Te===null&&(e===null||Rn.current!==null||e.memoizedState!==null)&&(Te=t)}function Rs(t){L(Dt,Dt.current),L(he,t),Te===null&&(Te=t)}function Qf(t){t.tag===22?(L(Dt,Dt.current),L(he,t),Te===null&&(Te=t)):El()}function El(){L(Dt,Dt.current),L(he,he.current)}function de(t){B(he),Te===t&&(Te=null),B(Dt)}var Dt=b(0);function _i(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Mc(l)||Uc(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 We=0,I=null,vt=null,Bt=null,Ti=!1,On=!1,Pl=!1,Ai=0,ya=0,Nn=null,Gy=0;function Nt(){throw Error(r(321))}function Os(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!fe(t[l],e[l]))return!1;return!0}function Ns(t,e,l,n,a,u){return We=u,I=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Oo:Qs,Pl=!1,u=l(n,a),Pl=!1,On&&(u=Zf(e,l,n,a)),Vf(t),u}function Vf(t){D.H=ga;var e=vt!==null&&vt.next!==null;if(We=0,Bt=vt=I=null,Ti=!1,ya=0,Nn=null,e)throw Error(r(300));t===null||wt||(t=t.dependencies,t!==null&&yi(t)&&(wt=!0))}function Zf(t,e,l,n){I=t;var a=0;do{if(On&&(Nn=null),ya=0,On=!1,25<=a)throw Error(r(301));if(a+=1,Bt=vt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=No,u=e(l,n)}while(On);return u}function Qy(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?pa(e):e,t=t.useState()[0],(vt!==null?vt.memoizedState:null)!==t&&(I.flags|=1024),e}function zs(){var t=Ai!==0;return Ai=0,t}function Cs(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Ds(t){if(Ti){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ti=!1}We=0,Bt=vt=I=null,On=!1,ya=Ai=0,Nn=null}function Wt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?I.memoizedState=Bt=t:Bt=Bt.next=t,Bt}function Mt(){if(vt===null){var t=I.alternate;t=t!==null?t.memoizedState:null}else t=vt.next;var e=Bt===null?I.memoizedState:Bt.next;if(e!==null)Bt=e,vt=t;else{if(t===null)throw I.alternate===null?Error(r(467)):Error(r(310));vt=t,t={memoizedState:vt.memoizedState,baseState:vt.baseState,baseQueue:vt.baseQueue,queue:vt.queue,next:null},Bt===null?I.memoizedState=Bt=t:Bt=Bt.next=t}return Bt}function Ri(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pa(t){var e=ya;return ya+=1,Nn===null&&(Nn=[]),t=wf(Nn,t,e),e=I,(Bt===null?e.memoizedState:Bt.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Oo:Qs),t}function Oi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return pa(t);if(t.$$typeof===k)return Zt(t)}throw Error(r(438,String(t)))}function Ms(t){var e=null,l=I.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=I.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=Ri(),I.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]=ie;return e.index++,l}function Fe(t,e){return typeof e=="function"?e(t):e}function Ni(t){var e=Mt();return Us(e,vt,t)}function Us(t,e,l){var n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var h=f=null,y=null,T=e,C=!1;do{var U=T.lane&-536870913;if(U!==T.lane?(it&U)===U:(We&U)===U){var O=T.revertLane;if(O===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),U===xn&&(C=!0);else if((We&O)===O){T=T.next,O===xn&&(C=!0);continue}else U={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(h=y=U,f=u):y=y.next=U,I.lanes|=O,Tl|=O;U=T.action,Pl&&l(u,U),u=T.hasEagerState?T.eagerState:l(u,U)}else O={lane:U,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(h=y=O,f=u):y=y.next=O,I.lanes|=U,Tl|=U;T=T.next}while(T!==null&&T!==e);if(y===null?f=u:y.next=h,!fe(u,t.memoizedState)&&(wt=!0,C&&(l=_n,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=y,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Bs(t){var e=Mt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var f=a=a.next;do u=t(u,f.action),f=f.next;while(f!==a);fe(u,e.memoizedState)||(wt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function Kf(t,e,l){var n=I,a=Mt(),u=st;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var f=!fe((vt||a).memoizedState,l);if(f&&(a.memoizedState=l,wt=!0),a=a.queue,Hs($f.bind(null,n,a,t),[t]),a.getSnapshot!==e||f||Bt!==null&&Bt.memoizedState.tag&1){if(n.flags|=2048,zn(9,{destroy:void 0},kf.bind(null,n,a,l,e),null),Et===null)throw Error(r(349));u||(We&127)!==0||Jf(n,e,l)}return l}function Jf(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=I.updateQueue,e===null?(e=Ri(),I.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function kf(t,e,l,n){e.value=l,e.getSnapshot=n,Wf(e)&&Ff(t)}function $f(t,e,l){return l(function(){Wf(e)&&Ff(t)})}function Wf(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!fe(t,l)}catch{return!0}}function Ff(t){var e=Ql(t,2);e!==null&&ae(e,t,2)}function ws(t){var e=Wt();if(typeof t=="function"){var l=t;if(t=l(),Pl){fl(!0);try{l()}finally{fl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:t},e}function Pf(t,e,l,n){return t.baseState=l,Us(t,vt,typeof n=="function"?n:Fe)}function Vy(t,e,l,n,a){if(Di(t))throw Error(r(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(f){u.listeners.push(f)}};D.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,If(e,u)):(u.next=l.next,e.pending=l.next=u)}}function If(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=D.T,f={};D.T=f;try{var h=l(a,n),y=D.S;y!==null&&y(f,h),to(t,e,h)}catch(T){js(t,e,T)}finally{u!==null&&f.types!==null&&(u.types=f.types),D.T=u}}else try{u=l(a,n),to(t,e,u)}catch(T){js(t,e,T)}}function to(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){eo(t,e,n)},function(n){return js(t,e,n)}):eo(t,e,l)}function eo(t,e,l){e.status="fulfilled",e.value=l,lo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,If(t,l)))}function js(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,lo(e),e=e.next;while(e!==n)}t.action=null}function lo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function no(t,e){return e}function ao(t,e){if(st){var l=Et.formState;if(l!==null){t:{var n=I;if(st){if(xt){e:{for(var a=xt,u=_e;a.nodeType!==8;){if(!u){a=null;break e}if(a=Ae(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){xt=Ae(a.nextSibling),n=a.data==="F!";break t}}yl(n)}n=!1}n&&(e=l[0])}}return l=Wt(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:e},l.queue=n,l=To.bind(null,I,n),n.dispatch=l,n=ws(!1),u=Gs.bind(null,I,!1,n.queue),n=Wt(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Vy.bind(null,I,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function io(t){var e=Mt();return uo(e,vt,t)}function uo(t,e,l){if(e=Us(t,e,no)[0],t=Ni(Fe)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=pa(e)}catch(f){throw f===Tn?gi:f}else n=e;e=Mt();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(I.flags|=2048,zn(9,{destroy:void 0},Zy.bind(null,a,l),null)),[n,u,t]}function Zy(t,e){t.action=e}function so(t){var e=Mt(),l=vt;if(l!==null)return uo(e,l,t);Mt(),e=e.memoizedState,l=Mt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function zn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=I.updateQueue,e===null&&(e=Ri(),I.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 co(){return Mt().memoizedState}function zi(t,e,l,n){var a=Wt();I.flags|=t,a.memoizedState=zn(1|e,{destroy:void 0},l,n===void 0?null:n)}function Ci(t,e,l,n){var a=Mt();n=n===void 0?null:n;var u=a.memoizedState.inst;vt!==null&&n!==null&&Os(n,vt.memoizedState.deps)?a.memoizedState=zn(e,u,l,n):(I.flags|=t,a.memoizedState=zn(1|e,u,l,n))}function ro(t,e){zi(8390656,8,t,e)}function Hs(t,e){Ci(2048,8,t,e)}function Ky(t){I.flags|=4;var e=I.updateQueue;if(e===null)e=Ri(),I.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function fo(t){var e=Mt().memoizedState;return Ky({ref:e,nextImpl:t}),function(){if((ot&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function oo(t,e){return Ci(4,2,t,e)}function ho(t,e){return Ci(4,4,t,e)}function mo(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 yo(t,e,l){l=l!=null?l.concat([t]):null,Ci(4,4,mo.bind(null,e,t),l)}function qs(){}function po(t,e){var l=Mt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Os(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function vo(t,e){var l=Mt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Os(e,n[1]))return n[0];if(n=t(),Pl){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n}function Ls(t,e,l){return l===void 0||(We&1073741824)!==0&&(it&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=gh(),I.lanes|=t,Tl|=t,l)}function go(t,e,l,n){return fe(l,e)?l:Rn.current!==null?(t=Ls(t,l,n),fe(t,e)||(wt=!0),t):(We&42)===0||(We&1073741824)!==0&&(it&261930)===0?(wt=!0,t.memoizedState=l):(t=gh(),I.lanes|=t,Tl|=t,e)}function bo(t,e,l,n,a){var u=q.p;q.p=u!==0&&8>u?u:8;var f=D.T,h={};D.T=h,Gs(t,!1,e,l);try{var y=a(),T=D.S;if(T!==null&&T(h,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=Xy(y,n);va(t,e,C,pe(t))}else va(t,e,n,pe(t))}catch(U){va(t,e,{then:function(){},status:"rejected",reason:U},pe())}finally{q.p=u,f!==null&&h.types!==null&&(f.types=h.types),D.T=f}}function Jy(){}function Ys(t,e,l,n){if(t.tag!==5)throw Error(r(476));var a=So(t).queue;bo(t,a,e,W,l===null?Jy:function(){return Eo(t),l(n)})}function So(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:W},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fe,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Eo(t){var e=So(t);e.next===null&&(e=t.alternate.memoizedState),va(t,e.next.queue,{},pe())}function Xs(){return Zt(Ba)}function xo(){return Mt().memoizedState}function _o(){return Mt().memoizedState}function ky(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=pe();t=gl(l);var n=bl(e,t,l);n!==null&&(ae(n,e,l),ha(n,e,l)),e={cache:ps()},t.payload=e;return}e=e.return}}function $y(t,e,l){var n=pe();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Di(t)?Ao(e,l):(l=is(t,e,l,n),l!==null&&(ae(l,t,n),Ro(l,e,n)))}function To(t,e,l){var n=pe();va(t,e,l,n)}function va(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Di(t))Ao(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,h=u(f,l);if(a.hasEagerState=!0,a.eagerState=h,fe(h,f))return oi(t,e,a,0),Et===null&&fi(),!1}catch{}finally{}if(l=is(t,e,a,n),l!==null)return ae(l,t,n),Ro(l,e,n),!0}return!1}function Gs(t,e,l,n){if(n={lane:2,revertLane:Sc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Di(t)){if(e)throw Error(r(479))}else e=is(t,l,n,2),e!==null&&ae(e,t,2)}function Di(t){var e=t.alternate;return t===I||e!==null&&e===I}function Ao(t,e){On=Ti=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Ro(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,zr(t,l)}}var ga={readContext:Zt,use:Oi,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};ga.useEffectEvent=Nt;var Oo={readContext:Zt,use:Oi,useCallback:function(t,e){return Wt().memoizedState=[t,e===void 0?null:e],t},useContext:Zt,useEffect:ro,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,zi(4194308,4,mo.bind(null,e,t),l)},useLayoutEffect:function(t,e){return zi(4194308,4,t,e)},useInsertionEffect:function(t,e){zi(4,2,t,e)},useMemo:function(t,e){var l=Wt();e=e===void 0?null:e;var n=t();if(Pl){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=Wt();if(l!==void 0){var a=l(e);if(Pl){fl(!0);try{l(e)}finally{fl(!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=$y.bind(null,I,t),[n.memoizedState,t]},useRef:function(t){var e=Wt();return t={current:t},e.memoizedState=t},useState:function(t){t=ws(t);var e=t.queue,l=To.bind(null,I,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:qs,useDeferredValue:function(t,e){var l=Wt();return Ls(l,t,e)},useTransition:function(){var t=ws(!1);return t=bo.bind(null,I,t.queue,!0,!1),Wt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=I,a=Wt();if(st){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Et===null)throw Error(r(349));(it&127)!==0||Jf(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,ro($f.bind(null,n,u,t),[t]),n.flags|=2048,zn(9,{destroy:void 0},kf.bind(null,n,u,l,e),null),l},useId:function(){var t=Wt(),e=Et.identifierPrefix;if(st){var l=je,n=we;l=(n&~(1<<32-re(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Ai++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Gy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Xs,useFormState:ao,useActionState:ao,useOptimistic:function(t){var e=Wt();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Gs.bind(null,I,!0,l),l.dispatch=e,[t,e]},useMemoCache:Ms,useCacheRefresh:function(){return Wt().memoizedState=ky.bind(null,I)},useEffectEvent:function(t){var e=Wt(),l={impl:t};return e.memoizedState=l,function(){if((ot&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Qs={readContext:Zt,use:Oi,useCallback:po,useContext:Zt,useEffect:Hs,useImperativeHandle:yo,useInsertionEffect:oo,useLayoutEffect:ho,useMemo:vo,useReducer:Ni,useRef:co,useState:function(){return Ni(Fe)},useDebugValue:qs,useDeferredValue:function(t,e){var l=Mt();return go(l,vt.memoizedState,t,e)},useTransition:function(){var t=Ni(Fe)[0],e=Mt().memoizedState;return[typeof t=="boolean"?t:pa(t),e]},useSyncExternalStore:Kf,useId:xo,useHostTransitionStatus:Xs,useFormState:io,useActionState:io,useOptimistic:function(t,e){var l=Mt();return Pf(l,vt,t,e)},useMemoCache:Ms,useCacheRefresh:_o};Qs.useEffectEvent=fo;var No={readContext:Zt,use:Oi,useCallback:po,useContext:Zt,useEffect:Hs,useImperativeHandle:yo,useInsertionEffect:oo,useLayoutEffect:ho,useMemo:vo,useReducer:Bs,useRef:co,useState:function(){return Bs(Fe)},useDebugValue:qs,useDeferredValue:function(t,e){var l=Mt();return vt===null?Ls(l,t,e):go(l,vt.memoizedState,t,e)},useTransition:function(){var t=Bs(Fe)[0],e=Mt().memoizedState;return[typeof t=="boolean"?t:pa(t),e]},useSyncExternalStore:Kf,useId:xo,useHostTransitionStatus:Xs,useFormState:so,useActionState:so,useOptimistic:function(t,e){var l=Mt();return vt!==null?Pf(l,vt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Ms,useCacheRefresh:_o};No.useEffectEvent=fo;function Vs(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:R({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Zs={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=pe(),a=gl(n);a.payload=e,l!=null&&(a.callback=l),e=bl(t,a,n),e!==null&&(ae(e,t,n),ha(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=pe(),a=gl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=bl(t,a,n),e!==null&&(ae(e,t,n),ha(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=pe(),n=gl(l);n.tag=2,e!=null&&(n.callback=e),e=bl(t,n,l),e!==null&&(ae(e,t,l),ha(e,t,l))}};function zo(t,e,l,n,a,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,f):e.prototype&&e.prototype.isPureReactComponent?!aa(l,n)||!aa(a,u):!0}function Co(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&&Zs.enqueueReplaceState(e,e.state,null)}function Il(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=R({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function Do(t){ri(t)}function Mo(t){console.error(t)}function Uo(t){ri(t)}function Mi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Bo(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 Ks(t,e,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){Mi(t,e)},l}function wo(t){return t=gl(t),t.tag=3,t}function jo(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(){Bo(e,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Bo(e,l,n),typeof a!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}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&&En(e,l,a,!0),l=he.current,l!==null){switch(l.tag){case 31:case 13:return Te===null?Vi():l.alternate===null&&zt===0&&(zt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===bi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),vc(t,n,a)),!1;case 22:return l.flags|=65536,n===bi?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)),vc(t,n,a)),!1}throw Error(r(435,l.tag))}return vc(t,n,a),Vi(),!1}if(st)return e=he.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==os&&(t=Error(r(422),{cause:n}),sa(Se(t,l)))):(n!==os&&(e=Error(r(423),{cause:n}),sa(Se(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Se(n,l),a=Ks(t.stateNode,n,a),xs(t,a),zt!==4&&(zt=2)),!1;var u=Error(r(520),{cause:n});if(u=Se(u,l),Ra===null?Ra=[u]:Ra.push(u),zt!==4&&(zt=2),e===null)return!0;n=Se(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=Ks(l.stateNode,n,t),xs(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"&&(Al===null||!Al.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=wo(a),jo(a,t,l,n),xs(l,a),!1}l=l.return}while(l!==null);return!1}var Js=Error(r(461)),wt=!1;function Kt(t,e,l,n){e.child=t===null?Lf(e,null,l,n):Fl(e,t.child,l,n)}function Ho(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var f={};for(var h in n)h!=="ref"&&(f[h]=n[h])}else f=n;return Jl(e),n=Ns(t,e,l,f,u,a),h=zs(),t!==null&&!wt?(Cs(t,e,a),Pe(t,e,a)):(st&&h&&rs(e),e.flags|=1,Kt(t,e,n,a),e.child)}function qo(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!us(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Lo(t,e,u,n,a)):(t=di(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!ec(t,a)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:aa,l(f,n)&&t.ref===e.ref)return Pe(t,e,a)}return e.flags|=1,t=Ke(u,n),t.ref=e.ref,t.return=e,e.child=t}function Lo(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(aa(u,n)&&t.ref===e.ref)if(wt=!1,e.pendingProps=n=u,ec(t,a))(t.flags&131072)!==0&&(wt=!0);else return e.lanes=t.lanes,Pe(t,e,a)}return ks(t,e,l,n,a)}function Yo(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 Xo(t,e,u,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&vi(e,u!==null?u.cachePool:null),u!==null?Gf(e,u):Ts(),Qf(e);else return n=e.lanes=536870912,Xo(t,e,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(vi(e,u.cachePool),Gf(e,u),El(),e.memoizedState=null):(t!==null&&vi(e,null),Ts(),El());return Kt(t,e,a,l),e.child}function ba(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Xo(t,e,l,n,a){var u=gs();return u=u===null?null:{parent:Ut._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&vi(e,null),Ts(),Qf(e),t!==null&&En(t,e,n,!0),e.childLanes=a,null}function Ui(t,e){return e=wi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Go(t,e,l){return Fl(e,t.child,null,l),t=Ui(e,e.pendingProps),t.flags|=2,de(e),e.memoizedState=null,t}function Fy(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(st){if(n.mode==="hidden")return t=Ui(e,n),e.lanes=536870912,ba(null,t);if(Rs(e),(t=xt)?(t=td(t,_e),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:dl!==null?{id:we,overflow:je}:null,retryLane:536870912,hydrationErrors:null},l=Tf(t),l.return=e,e.child=l,Vt=e,xt=null)):t=null,t===null)throw yl(e);return e.lanes=536870912,null}return Ui(e,n)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(Rs(e),a)if(e.flags&256)e.flags&=-257,e=Go(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(wt||En(t,e,l,!1),a=(l&t.childLanes)!==0,wt||a){if(n=Et,n!==null&&(f=Cr(n,l),f!==0&&f!==u.retryLane))throw u.retryLane=f,Ql(t,f),ae(n,t,f),Js;Vi(),e=Go(t,e,l)}else t=u.treeContext,xt=Ae(f.nextSibling),Vt=e,st=!0,ml=null,_e=!1,t!==null&&Of(e,t),e=Ui(e,n),e.flags|=4096;return e}return t=Ke(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Bi(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(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function ks(t,e,l,n,a){return Jl(e),l=Ns(t,e,l,n,void 0,a),n=zs(),t!==null&&!wt?(Cs(t,e,a),Pe(t,e,a)):(st&&n&&rs(e),e.flags|=1,Kt(t,e,l,a),e.child)}function Qo(t,e,l,n,a,u){return Jl(e),e.updateQueue=null,l=Zf(e,n,l,a),Vf(t),n=zs(),t!==null&&!wt?(Cs(t,e,u),Pe(t,e,u)):(st&&n&&rs(e),e.flags|=1,Kt(t,e,l,u),e.child)}function Vo(t,e,l,n,a){if(Jl(e),e.stateNode===null){var u=vn,f=l.contextType;typeof f=="object"&&f!==null&&(u=Zt(f)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Zs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Ss(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?Zt(f):vn,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(Vs(e,l,f,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Zs.enqueueReplaceState(u,u.state,null),ma(e,n,u,a),da(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var h=e.memoizedProps,y=Il(l,h);u.props=y;var T=u.context,C=l.contextType;f=vn,typeof C=="object"&&C!==null&&(f=Zt(C));var U=l.getDerivedStateFromProps;C=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||T!==f)&&Co(e,u,n,f),vl=!1;var O=e.memoizedState;u.state=O,ma(e,n,u,a),da(),T=e.memoizedState,h||O!==T||vl?(typeof U=="function"&&(Vs(e,l,U,n),T=e.memoizedState),(y=vl||zo(e,l,y,n,O,T,f))?(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=T),u.props=n,u.state=T,u.context=f,n=y):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,Es(t,e),f=e.memoizedProps,C=Il(l,f),u.props=C,U=e.pendingProps,O=u.context,T=l.contextType,y=vn,typeof T=="object"&&T!==null&&(y=Zt(T)),h=l.getDerivedStateFromProps,(T=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==U||O!==y)&&Co(e,u,n,y),vl=!1,O=e.memoizedState,u.state=O,ma(e,n,u,a),da();var N=e.memoizedState;f!==U||O!==N||vl||t!==null&&t.dependencies!==null&&yi(t.dependencies)?(typeof h=="function"&&(Vs(e,l,h,n),N=e.memoizedState),(C=vl||zo(e,l,C,n,O,N,y)||t!==null&&t.dependencies!==null&&yi(t.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,N,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,N,y)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=N),u.props=n,u.state=N,u.context=y,n=C):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Bi(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=Fl(e,t.child,null,a),e.child=Fl(e,null,l,a)):Kt(t,e,l,a),e.memoizedState=u.state,t=e.child):t=Pe(t,e,a),t}function Zo(t,e,l,n){return Zl(),e.flags|=256,Kt(t,e,l,n),e.child}var $s={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ws(t){return{baseLanes:t,cachePool:Uf()}}function Fs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=ye),t}function Ko(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(Dt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(st){if(a?Sl(e):El(),(t=xt)?(t=td(t,_e),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:dl!==null?{id:we,overflow:je}:null,retryLane:536870912,hydrationErrors:null},l=Tf(t),l.return=e,e.child=l,Vt=e,xt=null)):t=null,t===null)throw yl(e);return Uc(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,a?(El(),a=e.mode,h=wi({mode:"hidden",children:h},a),n=Vl(n,a,l,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=Ws(l),n.childLanes=Fs(t,f,l),e.memoizedState=$s,ba(null,n)):(Sl(e),Ps(e,h))}var y=t.memoizedState;if(y!==null&&(h=y.dehydrated,h!==null)){if(u)e.flags&256?(Sl(e),e.flags&=-257,e=Is(t,e,l)):e.memoizedState!==null?(El(),e.child=t.child,e.flags|=128,e=null):(El(),h=n.fallback,a=e.mode,n=wi({mode:"visible",children:n.children},a),h=Vl(h,a,l,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,Fl(e,t.child,null,l),n=e.child,n.memoizedState=Ws(l),n.childLanes=Fs(t,f,l),e.memoizedState=$s,e=ba(null,n));else if(Sl(e),Uc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var T=f.dgst;f=T,n=Error(r(419)),n.stack="",n.digest=f,sa({value:n,source:null,stack:null}),e=Is(t,e,l)}else if(wt||En(t,e,l,!1),f=(l&t.childLanes)!==0,wt||f){if(f=Et,f!==null&&(n=Cr(f,l),n!==0&&n!==y.retryLane))throw y.retryLane=n,Ql(t,n),ae(f,t,n),Js;Mc(h)||Vi(),e=Is(t,e,l)}else Mc(h)?(e.flags|=192,e.child=t.child,e=null):(t=y.treeContext,xt=Ae(h.nextSibling),Vt=e,st=!0,ml=null,_e=!1,t!==null&&Of(e,t),e=Ps(e,n.children),e.flags|=4096);return e}return a?(El(),h=n.fallback,a=e.mode,y=t.child,T=y.sibling,n=Ke(y,{mode:"hidden",children:n.children}),n.subtreeFlags=y.subtreeFlags&65011712,T!==null?h=Ke(T,h):(h=Vl(h,a,l,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,ba(null,n),n=e.child,h=t.child.memoizedState,h===null?h=Ws(l):(a=h.cachePool,a!==null?(y=Ut._currentValue,a=a.parent!==y?{parent:y,pool:y}:a):a=Uf(),h={baseLanes:h.baseLanes|l,cachePool:a}),n.memoizedState=h,n.childLanes=Fs(t,f,l),e.memoizedState=$s,ba(t.child,n)):(Sl(e),l=t.child,t=l.sibling,l=Ke(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function Ps(t,e){return e=wi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function wi(t,e){return t=oe(22,t,null,e),t.lanes=0,t}function Is(t,e,l){return Fl(e,t.child,null,l),t=Ps(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Jo(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ms(t.return,e,l)}function tc(t,e,l,n,a,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=n,f.tail=l,f.tailMode=a,f.treeForkCount=u)}function ko(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var f=Dt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,L(Dt,f),Kt(t,e,n,l),n=st?ua:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Jo(t,l,e);else if(t.tag===19)Jo(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&_i(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),tc(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&&_i(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}tc(e,!0,l,null,u,n);break;case"together":tc(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Pe(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Tl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(En(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=Ke(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ke(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function ec(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&yi(t)))}function Py(t,e,l){switch(e.tag){case 3:$t(e,e.stateNode.containerInfo),pl(e,Ut,t.memoizedState.cache),Zl();break;case 27:case 5:Zn(e);break;case 4:$t(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Rs(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Sl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Ko(t,e,l):(Sl(e),t=Pe(t,e,l),t!==null?t.sibling:null);Sl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(En(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return ko(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),L(Dt,Dt.current),n)break;return null;case 22:return e.lanes=0,Yo(t,e,l,e.pendingProps);case 24:pl(e,Ut,t.memoizedState.cache)}return Pe(t,e,l)}function $o(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)wt=!0;else{if(!ec(t,l)&&(e.flags&128)===0)return wt=!1,Py(t,e,l);wt=(t.flags&131072)!==0}else wt=!1,st&&(e.flags&1048576)!==0&&Rf(e,ua,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=$l(e.elementType),e.type=t,typeof t=="function")us(t)?(n=Il(t,n),e.tag=1,e=Vo(null,e,t,n,l)):(e.tag=0,e=ks(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===dt){e.tag=11,e=Ho(null,e,t,n,l);break t}else if(a===tt){e.tag=14,e=qo(null,e,t,n,l);break t}}throw e=Ge(t)||t,Error(r(306,e,""))}}return e;case 0:return ks(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=Il(n,e.pendingProps),Vo(t,e,n,a,l);case 3:t:{if($t(e,e.stateNode.containerInfo),t===null)throw Error(r(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,Es(t,e),ma(e,n,null,l);var f=e.memoizedState;if(n=f.cache,pl(e,Ut,n),n!==u.cache&&ys(e,[Ut],l,!0),da(),n=f.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Zo(t,e,n,l);break t}else if(n!==a){a=Se(Error(r(424)),e),sa(a),e=Zo(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(xt=Ae(t.firstChild),Vt=e,st=!0,ml=null,_e=!0,l=Lf(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),n===a){e=Pe(t,e,l);break t}Kt(t,e,n,l)}e=e.child}return e;case 26:return Bi(t,e),t===null?(l=ud(e.type,null,e.pendingProps,null))?e.memoizedState=l:st||(l=e.type,t=e.pendingProps,n=Fi(lt.current).createElement(l),n[Qt]=e,n[Pt]=t,Jt(n,l,t),Xt(n),e.stateNode=n):e.memoizedState=ud(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Zn(e),t===null&&st&&(n=e.stateNode=nd(e.type,e.pendingProps,lt.current),Vt=e,_e=!0,a=xt,zl(e.type)?(Bc=a,xt=Ae(n.firstChild)):xt=a),Kt(t,e,e.pendingProps.children,l),Bi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&st&&((a=n=xt)&&(n=Np(n,e.type,e.pendingProps,_e),n!==null?(e.stateNode=n,Vt=e,xt=Ae(n.firstChild),_e=!1,a=!0):a=!1),a||yl(e)),Zn(e),a=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,n=u.children,zc(a,u)?n=null:f!==null&&zc(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=Ns(t,e,Qy,null,null,l),Ba._currentValue=a),Bi(t,e),Kt(t,e,n,l),e.child;case 6:return t===null&&st&&((t=l=xt)&&(l=zp(l,e.pendingProps,_e),l!==null?(e.stateNode=l,Vt=e,xt=null,t=!0):t=!1),t||yl(e)),null;case 13:return Ko(t,e,l);case 4:return $t(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Fl(e,null,n,l):Kt(t,e,n,l),e.child;case 11:return Ho(t,e,e.type,e.pendingProps,l);case 7:return Kt(t,e,e.pendingProps,l),e.child;case 8:return Kt(t,e,e.pendingProps.children,l),e.child;case 12:return Kt(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,pl(e,e.type,n.value),Kt(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,Jl(e),a=Zt(a),n=n(a),e.flags|=1,Kt(t,e,n,l),e.child;case 14:return qo(t,e,e.type,e.pendingProps,l);case 15:return Lo(t,e,e.type,e.pendingProps,l);case 19:return ko(t,e,l);case 31:return Fy(t,e,l);case 22:return Yo(t,e,l,e.pendingProps);case 24:return Jl(e),n=Zt(Ut),t===null?(a=gs(),a===null&&(a=Et,u=ps(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},Ss(e),pl(e,Ut,a)):((t.lanes&l)!==0&&(Es(t,e),ma(e,null,null,l),da()),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),pl(e,Ut,n)):(n=u.cache,pl(e,Ut,n),n!==a.cache&&ys(e,[Ut],l,!0))),Kt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Ie(t){t.flags|=4}function lc(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(xh())t.flags|=8192;else throw Wl=bi,bs}else t.flags&=-16777217}function Wo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!od(e))if(xh())t.flags|=8192;else throw Wl=bi,bs}function ji(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Or():536870912,t.lanes|=e,Un|=e)}function Sa(t,e){if(!st)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 _t(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 Iy(t,e,l){var n=e.pendingProps;switch(fs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),$e(Ut),Ct(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Sn(e)?Ie(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,hs())),_t(e),null;case 26:var a=e.type,u=e.memoizedState;return t===null?(Ie(e),u!==null?(_t(e),Wo(e,u)):(_t(e),lc(e,a,null,n,l))):u?u!==t.memoizedState?(Ie(e),_t(e),Wo(e,u)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Ie(e),_t(e),lc(e,a,t,n,l)),null;case 27:if(Ja(e),l=lt.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return _t(e),null}t=V.current,Sn(e)?Nf(e):(t=nd(a,n,l),e.stateNode=t,Ie(e))}return _t(e),null;case 5:if(Ja(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return _t(e),null}if(u=V.current,Sn(e))Nf(e);else{var f=Fi(lt.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?f.createElement("select",{is:n.is}):f.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?f.createElement(a,{is:n.is}):f.createElement(a)}}u[Qt]=e,u[Pt]=n;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(Jt(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&&Ie(e)}}return _t(e),lc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Ie(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(r(166));if(t=lt.current,Sn(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=Vt,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||Kh(t.nodeValue,l)),t||yl(e,!0)}else t=Fi(t).createTextNode(n),t[Qt]=e,e.stateNode=t}return _t(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=Sn(e),l!==null){if(t===null){if(!n)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Qt]=e}else Zl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else l=hs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(de(e),e):(de(e),null);if((e.flags&128)!==0)throw Error(r(558))}return _t(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Sn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(r(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[Qt]=e}else Zl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;_t(e),a=!1}else a=hs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(de(e),e):(de(e),null)}return de(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),ji(e,e.updateQueue),_t(e),null);case 4:return Ct(),t===null&&Tc(e.stateNode.containerInfo),_t(e),null;case 10:return $e(e.type),_t(e),null;case 19:if(B(Dt),n=e.memoizedState,n===null)return _t(e),null;if(a=(e.flags&128)!==0,u=n.rendering,u===null)if(a)Sa(n,!1);else{if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=_i(t),u!==null){for(e.flags|=128,Sa(n,!1),t=u.updateQueue,e.updateQueue=t,ji(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)_f(l,t),l=l.sibling;return L(Dt,Dt.current&1|2),st&&Je(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&se()>Xi&&(e.flags|=128,a=!0,Sa(n,!1),e.lanes=4194304)}else{if(!a)if(t=_i(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,ji(e,t),Sa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!st)return _t(e),null}else 2*se()-n.renderingStartTime>Xi&&l!==536870912&&(e.flags|=128,a=!0,Sa(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=se(),t.sibling=null,l=Dt.current,L(Dt,a?l&1|2:l&1),st&&Je(e,n.treeForkCount),t):(_t(e),null);case 22:case 23:return de(e),As(),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&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),l=e.updateQueue,l!==null&&ji(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&&B(kl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),$e(Ut),_t(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function tp(t,e){switch(fs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return $e(Ut),Ct(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ja(e),null;case 31:if(e.memoizedState!==null){if(de(e),e.alternate===null)throw Error(r(340));Zl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(de(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Zl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(Dt),null;case 4:return Ct(),null;case 10:return $e(e.type),null;case 22:case 23:return de(e),As(),t!==null&&B(kl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return $e(Ut),null;case 25:return null;default:return null}}function Fo(t,e){switch(fs(e),e.tag){case 3:$e(Ut),Ct();break;case 26:case 27:case 5:Ja(e);break;case 4:Ct();break;case 31:e.memoizedState!==null&&de(e);break;case 13:de(e);break;case 19:B(Dt);break;case 10:$e(e.type);break;case 22:case 23:de(e),As(),t!==null&&B(kl);break;case 24:$e(Ut)}}function Ea(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,f=l.inst;n=u(),f.destroy=n}l=l.next}while(l!==a)}}catch(h){yt(e,e.return,h)}}function xl(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 f=n.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,a=e;var y=l,T=h;try{T()}catch(C){yt(a,y,C)}}}n=n.next}while(n!==u)}}catch(C){yt(e,e.return,C)}}function Po(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Xf(e,l)}catch(n){yt(t,t.return,n)}}}function Io(t,e,l){l.props=Il(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){yt(t,e,n)}}function xa(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){yt(t,e,a)}}function He(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){yt(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){yt(t,e,a)}else l.current=null}function th(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){yt(t,t.return,a)}}function nc(t,e,l){try{var n=t.stateNode;xp(n,t.type,l,e),n[Pt]=e}catch(a){yt(t,t.return,a)}}function eh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&zl(t.type)||t.tag===4}function ac(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||eh(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&&zl(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 ic(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=Ve));else if(n!==4&&(n===27&&zl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ic(t,e,l),t=t.sibling;t!==null;)ic(t,e,l),t=t.sibling}function Hi(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&&zl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Hi(t,e,l),t=t.sibling;t!==null;)Hi(t,e,l),t=t.sibling}function lh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Jt(e,n,l),e[Qt]=t,e[Pt]=l}catch(u){yt(t,t.return,u)}}var tl=!1,jt=!1,uc=!1,nh=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function ep(t,e){if(t=t.containerInfo,Oc=au,t=mf(t),Iu(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 f=0,h=-1,y=-1,T=0,C=0,U=t,O=null;e:for(;;){for(var N;U!==l||a!==0&&U.nodeType!==3||(h=f+a),U!==u||n!==0&&U.nodeType!==3||(y=f+n),U.nodeType===3&&(f+=U.nodeValue.length),(N=U.firstChild)!==null;)O=U,U=N;for(;;){if(U===t)break e;if(O===l&&++T===a&&(h=f),O===u&&++C===n&&(y=f),(N=U.nextSibling)!==null)break;U=O,O=U.parentNode}U=N}l=h===-1||y===-1?null:{start:h,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(Nc={focusedElem:t,selectionRange:l},au=!1,Gt=e;Gt!==null;)if(e=Gt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Gt=t;else for(;Gt!==null;){switch(e=Gt,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 G=Il(l.type,a);t=n.getSnapshotBeforeUpdate(G,u),n.__reactInternalSnapshotBeforeUpdate=t}catch($){yt(l,l.return,$)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Dc(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Dc(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(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Gt=t;break}Gt=e.return}}function ah(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:ll(t,l),n&4&&Ea(5,l);break;case 1:if(ll(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){yt(l,l.return,f)}else{var a=Il(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){yt(l,l.return,f)}}n&64&&Po(l),n&512&&xa(l,l.return);break;case 3:if(ll(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{Xf(t,e)}catch(f){yt(l,l.return,f)}}break;case 27:e===null&&n&4&&lh(l);case 26:case 5:ll(t,l),e===null&&n&4&&th(l),n&512&&xa(l,l.return);break;case 12:ll(t,l);break;case 31:ll(t,l),n&4&&sh(t,l);break;case 13:ll(t,l),n&4&&ch(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=fp.bind(null,l),Cp(t,l))));break;case 22:if(n=l.memoizedState!==null||tl,!n){e=e!==null&&e.memoizedState!==null||jt,a=tl;var u=jt;tl=n,(jt=e)&&!u?nl(t,l,(l.subtreeFlags&8772)!==0):ll(t,l),tl=a,jt=u}break;case 30:break;default:ll(t,l)}}function ih(t){var e=t.alternate;e!==null&&(t.alternate=null,ih(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ju(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 At=null,te=!1;function el(t,e,l){for(l=l.child;l!==null;)uh(t,e,l),l=l.sibling}function uh(t,e,l){if(ce&&typeof ce.onCommitFiberUnmount=="function")try{ce.onCommitFiberUnmount(Kn,l)}catch{}switch(l.tag){case 26:jt||He(l,e),el(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:jt||He(l,e);var n=At,a=te;zl(l.type)&&(At=l.stateNode,te=!1),el(t,e,l),Da(l.stateNode),At=n,te=a;break;case 5:jt||He(l,e);case 6:if(n=At,a=te,At=null,el(t,e,l),At=n,te=a,At!==null)if(te)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(l.stateNode)}catch(u){yt(l,e,u)}else try{At.removeChild(l.stateNode)}catch(u){yt(l,e,u)}break;case 18:At!==null&&(te?(t=At,Ph(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Xn(t)):Ph(At,l.stateNode));break;case 4:n=At,a=te,At=l.stateNode.containerInfo,te=!0,el(t,e,l),At=n,te=a;break;case 0:case 11:case 14:case 15:xl(2,l,e),jt||xl(4,l,e),el(t,e,l);break;case 1:jt||(He(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Io(l,e,n)),el(t,e,l);break;case 21:el(t,e,l);break;case 22:jt=(n=jt)||l.memoizedState!==null,el(t,e,l),jt=n;break;default:el(t,e,l)}}function sh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Xn(t)}catch(l){yt(e,e.return,l)}}}function ch(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Xn(t)}catch(l){yt(e,e.return,l)}}function lp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new nh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new nh),e;default:throw Error(r(435,t.tag))}}function qi(t,e){var l=lp(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=op.bind(null,t,n);n.then(a,a)}})}function ee(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(zl(h.type)){At=h.stateNode,te=!1;break t}break;case 5:At=h.stateNode,te=!1;break t;case 3:case 4:At=h.stateNode.containerInfo,te=!0;break t}h=h.return}if(At===null)throw Error(r(160));uh(u,f,a),At=null,te=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)rh(e,t),e=e.sibling}var Ce=null;function rh(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ee(e,t),le(t),n&4&&(xl(3,t,t.return),Ea(3,t),xl(5,t,t.return));break;case 1:ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),n&64&&tl&&(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=Ce;if(ee(e,t),le(t),n&512&&(jt||l===null||He(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[$n]||u[Qt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),Jt(u,n,l),u[Qt]=t,Xt(u),n=u;break t;case"link":var f=rd("link","href",a).get(n+(l.href||""));if(f){for(var h=0;h<f.length;h++)if(u=f[h],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)){f.splice(h,1);break e}}u=a.createElement(n),Jt(u,n,l),a.head.appendChild(u);break;case"meta":if(f=rd("meta","content",a).get(n+(l.content||""))){for(h=0;h<f.length;h++)if(u=f[h],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)){f.splice(h,1);break e}}u=a.createElement(n),Jt(u,n,l),a.head.appendChild(u);break;default:throw Error(r(468,n))}u[Qt]=t,Xt(u),n=u}t.stateNode=n}else fd(a,t.type,t.stateNode);else t.stateNode=cd(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?fd(a,t.type,t.stateNode):cd(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&nc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),l!==null&&n&4&&nc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ee(e,t),le(t),n&512&&(jt||l===null||He(l,l.return)),t.flags&32){a=t.stateNode;try{fn(a,"")}catch(G){yt(t,t.return,G)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,nc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(uc=!0);break;case 6:if(ee(e,t),le(t),n&4){if(t.stateNode===null)throw Error(r(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(G){yt(t,t.return,G)}}break;case 3:if(tu=null,a=Ce,Ce=Pi(e.containerInfo),ee(e,t),Ce=a,le(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Xn(e.containerInfo)}catch(G){yt(t,t.return,G)}uc&&(uc=!1,fh(t));break;case 4:n=Ce,Ce=Pi(t.stateNode.containerInfo),ee(e,t),le(t),Ce=n;break;case 12:ee(e,t),le(t);break;case 31:ee(e,t),le(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qi(t,n)));break;case 13:ee(e,t),le(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Yi=se()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qi(t,n)));break;case 22:a=t.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,T=tl,C=jt;if(tl=T||a,jt=C||y,ee(e,t),jt=C,tl=T,le(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||y||tl||jt||tn(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){y=l=e;try{if(u=y.stateNode,a)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=y.stateNode;var U=y.memoizedProps.style,O=U!=null&&U.hasOwnProperty("display")?U.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(G){yt(y,y.return,G)}}}else if(e.tag===6){if(l===null){y=e;try{y.stateNode.nodeValue=a?"":y.memoizedProps}catch(G){yt(y,y.return,G)}}}else if(e.tag===18){if(l===null){y=e;try{var N=y.stateNode;a?Ih(N,!0):Ih(y.stateNode,!1)}catch(G){yt(y,y.return,G)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,qi(t,l))));break;case 19:ee(e,t),le(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,qi(t,n)));break;case 30:break;case 21:break;default:ee(e,t),le(t)}}function le(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(eh(n)){l=n;break}n=n.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var a=l.stateNode,u=ac(t);Hi(t,u,a);break;case 5:var f=l.stateNode;l.flags&32&&(fn(f,""),l.flags&=-33);var h=ac(t);Hi(t,h,f);break;case 3:case 4:var y=l.stateNode.containerInfo,T=ac(t);ic(t,T,y);break;default:throw Error(r(161))}}catch(C){yt(t,t.return,C)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function fh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;fh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ll(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ah(t,e.alternate,e),e=e.sibling}function tn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:xl(4,e,e.return),tn(e);break;case 1:He(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Io(e,e.return,l),tn(e);break;case 27:Da(e.stateNode);case 26:case 5:He(e,e.return),tn(e);break;case 22:e.memoizedState===null&&tn(e);break;case 30:tn(e);break;default:tn(e)}t=t.sibling}}function nl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:nl(a,u,l),Ea(4,u);break;case 1:if(nl(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(T){yt(n,n.return,T)}if(n=u,a=n.updateQueue,a!==null){var h=n.stateNode;try{var y=a.shared.hiddenCallbacks;if(y!==null)for(a.shared.hiddenCallbacks=null,a=0;a<y.length;a++)Yf(y[a],h)}catch(T){yt(n,n.return,T)}}l&&f&64&&Po(u),xa(u,u.return);break;case 27:lh(u);case 26:case 5:nl(a,u,l),l&&n===null&&f&4&&th(u),xa(u,u.return);break;case 12:nl(a,u,l);break;case 31:nl(a,u,l),l&&f&4&&sh(a,u);break;case 13:nl(a,u,l),l&&f&4&&ch(a,u);break;case 22:u.memoizedState===null&&nl(a,u,l),xa(u,u.return);break;case 30:break;default:nl(a,u,l)}e=e.sibling}}function sc(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&&ca(l))}function cc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ca(t))}function De(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oh(t,e,l,n),e=e.sibling}function oh(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:De(t,e,l,n),a&2048&&Ea(9,e);break;case 1:De(t,e,l,n);break;case 3:De(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&&ca(t)));break;case 12:if(a&2048){De(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,h=u.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(y){yt(e,e.return,y)}}else De(t,e,l,n);break;case 31:De(t,e,l,n);break;case 13:De(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?De(t,e,l,n):_a(t,e):u._visibility&2?De(t,e,l,n):(u._visibility|=2,Cn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&sc(f,e);break;case 24:De(t,e,l,n),a&2048&&cc(e.alternate,e);break;default:De(t,e,l,n)}}function Cn(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,h=l,y=n,T=f.flags;switch(f.tag){case 0:case 11:case 15:Cn(u,f,h,y,a),Ea(8,f);break;case 23:break;case 22:var C=f.stateNode;f.memoizedState!==null?C._visibility&2?Cn(u,f,h,y,a):_a(u,f):(C._visibility|=2,Cn(u,f,h,y,a)),a&&T&2048&&sc(f.alternate,f);break;case 24:Cn(u,f,h,y,a),a&&T&2048&&cc(f.alternate,f);break;default:Cn(u,f,h,y,a)}e=e.sibling}}function _a(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:_a(l,n),a&2048&&sc(n.alternate,n);break;case 24:_a(l,n),a&2048&&cc(n.alternate,n);break;default:_a(l,n)}e=e.sibling}}var Ta=8192;function Dn(t,e,l){if(t.subtreeFlags&Ta)for(t=t.child;t!==null;)hh(t,e,l),t=t.sibling}function hh(t,e,l){switch(t.tag){case 26:Dn(t,e,l),t.flags&Ta&&t.memoizedState!==null&&Gp(l,Ce,t.memoizedState,t.memoizedProps);break;case 5:Dn(t,e,l);break;case 3:case 4:var n=Ce;Ce=Pi(t.stateNode.containerInfo),Dn(t,e,l),Ce=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Ta,Ta=16777216,Dn(t,e,l),Ta=n):Dn(t,e,l));break;default:Dn(t,e,l)}}function dh(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 Aa(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];Gt=n,yh(n,t)}dh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mh(t),t=t.sibling}function mh(t){switch(t.tag){case 0:case 11:case 15:Aa(t),t.flags&2048&&xl(9,t,t.return);break;case 3:Aa(t);break;case 12:Aa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Li(t)):Aa(t);break;default:Aa(t)}}function Li(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];Gt=n,yh(n,t)}dh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:xl(8,e,e.return),Li(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Li(e));break;default:Li(e)}t=t.sibling}}function yh(t,e){for(;Gt!==null;){var l=Gt;switch(l.tag){case 0:case 11:case 15:xl(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:ca(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Gt=n;else t:for(l=t;Gt!==null;){n=Gt;var a=n.sibling,u=n.return;if(ih(n),n===l){Gt=null;break t}if(a!==null){a.return=u,Gt=a;break t}Gt=u}}}var np={getCacheForType:function(t){var e=Zt(Ut),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Zt(Ut).controller.signal}},ap=typeof WeakMap=="function"?WeakMap:Map,ot=0,Et=null,nt=null,it=0,mt=0,me=null,_l=!1,Mn=!1,rc=!1,al=0,zt=0,Tl=0,en=0,fc=0,ye=0,Un=0,Ra=null,ne=null,oc=!1,Yi=0,ph=0,Xi=1/0,Gi=null,Al=null,Yt=0,Rl=null,Bn=null,il=0,hc=0,dc=null,vh=null,Oa=0,mc=null;function pe(){return(ot&2)!==0&&it!==0?it&-it:D.T!==null?Sc():Dr()}function gh(){if(ye===0)if((it&536870912)===0||st){var t=Wa;Wa<<=1,(Wa&3932160)===0&&(Wa=262144),ye=t}else ye=536870912;return t=he.current,t!==null&&(t.flags|=32),ye}function ae(t,e,l){(t===Et&&(mt===2||mt===9)||t.cancelPendingCommit!==null)&&(wn(t,0),Ol(t,it,ye,!1)),kn(t,l),((ot&2)===0||t!==Et)&&(t===Et&&((ot&2)===0&&(en|=l),zt===4&&Ol(t,it,ye,!1)),qe(t))}function bh(t,e,l){if((ot&6)!==0)throw Error(r(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Jn(t,e),a=n?sp(t,e):pc(t,e,!0),u=n;do{if(a===0){Mn&&!n&&Ol(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!ip(l)){a=pc(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;a=Ra;var y=h.current.memoizedState.isDehydrated;if(y&&(wn(h,f).flags|=256),f=pc(h,f,!1),f!==2){if(rc&&!y){h.errorRecoveryDisabledLanes|=u,en|=u,a=4;break t}u=ne,ne=a,u!==null&&(ne===null?ne=u:ne.push.apply(ne,u))}a=f}if(u=!1,a!==2)continue}}if(a===1){wn(t,0),Ol(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ol(n,e,ye,!_l);break t;case 2:ne=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(a=Yi+300-se(),10<a)){if(Ol(n,e,ye,!_l),Pa(n,0,!0)!==0)break t;il=e,n.timeoutHandle=Wh(Sh.bind(null,n,l,ne,Gi,oc,e,ye,en,Un,_l,u,"Throttled",-0,0),a);break t}Sh(n,l,ne,Gi,oc,e,ye,en,Un,_l,u,null,-0,0)}}break}while(!0);qe(t)}function Sh(t,e,l,n,a,u,f,h,y,T,C,U,O,N){if(t.timeoutHandle=-1,U=e.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ve},hh(e,u,U);var G=(u&62914560)===u?Yi-se():(u&4194048)===u?ph-se():0;if(G=Qp(U,G),G!==null){il=u,t.cancelPendingCommit=G(Nh.bind(null,t,e,u,l,n,a,f,h,y,C,U,null,O,N)),Ol(t,u,f,!T);return}}Nh(t,e,u,l,n,a,f,h,y)}function ip(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(!fe(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 Ol(t,e,l,n){e&=~fc,e&=~en,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-re(a),f=1<<u;n[u]=-1,a&=~f}l!==0&&Nr(t,l,e)}function Qi(){return(ot&6)===0?(Na(0),!1):!0}function yc(){if(nt!==null){if(mt===0)var t=nt.return;else t=nt,ke=Kl=null,Ds(t),An=null,fa=0,t=nt;for(;t!==null;)Fo(t.alternate,t),t=t.return;nt=null}}function wn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Ap(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),il=0,yc(),Et=t,nt=l=Ke(t.current,null),it=e,mt=0,me=null,_l=!1,Mn=Jn(t,e),rc=!1,Un=ye=fc=en=Tl=zt=0,ne=Ra=null,oc=!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-re(n),u=1<<a;e|=t[a],n&=~u}return al=e,fi(),l}function Eh(t,e){I=null,D.H=ga,e===Tn||e===gi?(e=jf(),mt=3):e===bs?(e=jf(),mt=4):mt=e===Js?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,me=e,nt===null&&(zt=1,Mi(t,Se(e,t.current)))}function xh(){var t=he.current;return t===null?!0:(it&4194048)===it?Te===null:(it&62914560)===it||(it&536870912)!==0?t===Te:!1}function _h(){var t=D.H;return D.H=ga,t===null?ga:t}function Th(){var t=D.A;return D.A=np,t}function Vi(){zt=4,_l||(it&4194048)!==it&&he.current!==null||(Mn=!0),(Tl&134217727)===0&&(en&134217727)===0||Et===null||Ol(Et,it,ye,!1)}function pc(t,e,l){var n=ot;ot|=2;var a=_h(),u=Th();(Et!==t||it!==e)&&(Gi=null,wn(t,e)),e=!1;var f=zt;t:do try{if(mt!==0&&nt!==null){var h=nt,y=me;switch(mt){case 8:yc(),f=6;break t;case 3:case 2:case 9:case 6:he.current===null&&(e=!0);var T=mt;if(mt=0,me=null,jn(t,h,y,T),l&&Mn){f=0;break t}break;default:T=mt,mt=0,me=null,jn(t,h,y,T)}}up(),f=zt;break}catch(C){Eh(t,C)}while(!0);return e&&t.shellSuspendCounter++,ke=Kl=null,ot=n,D.H=a,D.A=u,nt===null&&(Et=null,it=0,fi()),f}function up(){for(;nt!==null;)Ah(nt)}function sp(t,e){var l=ot;ot|=2;var n=_h(),a=Th();Et!==t||it!==e?(Gi=null,Xi=se()+500,wn(t,e)):Mn=Jn(t,e);t:do try{if(mt!==0&&nt!==null){e=nt;var u=me;e:switch(mt){case 1:mt=0,me=null,jn(t,e,u,1);break;case 2:case 9:if(Bf(u)){mt=0,me=null,Rh(e);break}e=function(){mt!==2&&mt!==9||Et!==t||(mt=7),qe(t)},u.then(e,e);break t;case 3:mt=7;break t;case 4:mt=5;break t;case 7:Bf(u)?(mt=0,me=null,Rh(e)):(mt=0,me=null,jn(t,e,u,7));break;case 5:var f=null;switch(nt.tag){case 26:f=nt.memoizedState;case 5:case 27:var h=nt;if(f?od(f):h.stateNode.complete){mt=0,me=null;var y=h.sibling;if(y!==null)nt=y;else{var T=h.return;T!==null?(nt=T,Zi(T)):nt=null}break e}}mt=0,me=null,jn(t,e,u,5);break;case 6:mt=0,me=null,jn(t,e,u,6);break;case 8:yc(),zt=6;break t;default:throw Error(r(462))}}cp();break}catch(C){Eh(t,C)}while(!0);return ke=Kl=null,D.H=n,D.A=a,ot=l,nt!==null?0:(Et=null,it=0,fi(),zt)}function cp(){for(;nt!==null&&!Dm();)Ah(nt)}function Ah(t){var e=$o(t.alternate,t,al);t.memoizedProps=t.pendingProps,e===null?Zi(t):nt=e}function Rh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Qo(l,e,e.pendingProps,e.type,void 0,it);break;case 11:e=Qo(l,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Ds(e);default:Fo(l,e),e=nt=_f(e,al),e=$o(l,e,al)}t.memoizedProps=t.pendingProps,e===null?Zi(t):nt=e}function jn(t,e,l,n){ke=Kl=null,Ds(e),An=null,fa=0;var a=e.return;try{if(Wy(t,a,e,l,it)){zt=1,Mi(t,Se(l,t.current)),nt=null;return}}catch(u){if(a!==null)throw nt=a,u;zt=1,Mi(t,Se(l,t.current)),nt=null;return}e.flags&32768?(st||n===1?t=!0:Mn||(it&536870912)!==0?t=!1:(_l=t=!0,(n===2||n===9||n===3||n===6)&&(n=he.current,n!==null&&n.tag===13&&(n.flags|=16384))),Oh(e,t)):Zi(e)}function Zi(t){var e=t;do{if((e.flags&32768)!==0){Oh(e,_l);return}t=e.return;var l=Iy(e.alternate,e,al);if(l!==null){nt=l;return}if(e=e.sibling,e!==null){nt=e;return}nt=e=t}while(e!==null);zt===0&&(zt=5)}function Oh(t,e){do{var l=tp(t.alternate,t);if(l!==null){l.flags&=32767,nt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){nt=t;return}nt=t=l}while(t!==null);zt=6,nt=null}function Nh(t,e,l,n,a,u,f,h,y){t.cancelPendingCommit=null;do Ki();while(Yt!==0);if((ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=as,Xm(t,l,u,f,h,y),t===Et&&(nt=Et=null,it=0),Bn=e,Rl=t,il=l,hc=u,dc=a,vh=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,hp(ka,function(){return Uh(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,a=q.p,q.p=2,f=ot,ot|=4;try{ep(t,e,l)}finally{ot=f,q.p=a,D.T=n}}Yt=1,zh(),Ch(),Dh()}}function zh(){if(Yt===1){Yt=0;var t=Rl,e=Bn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var n=q.p;q.p=2;var a=ot;ot|=4;try{rh(e,t);var u=Nc,f=mf(t.containerInfo),h=u.focusedElem,y=u.selectionRange;if(f!==h&&h&&h.ownerDocument&&df(h.ownerDocument.documentElement,h)){if(y!==null&&Iu(h)){var T=y.start,C=y.end;if(C===void 0&&(C=T),"selectionStart"in h)h.selectionStart=T,h.selectionEnd=Math.min(C,h.value.length);else{var U=h.ownerDocument||document,O=U&&U.defaultView||window;if(O.getSelection){var N=O.getSelection(),G=h.textContent.length,$=Math.min(y.start,G),bt=y.end===void 0?$:Math.min(y.end,G);!N.extend&&$>bt&&(f=bt,bt=$,$=f);var E=hf(h,$),g=hf(h,bt);if(E&&g&&(N.rangeCount!==1||N.anchorNode!==E.node||N.anchorOffset!==E.offset||N.focusNode!==g.node||N.focusOffset!==g.offset)){var _=U.createRange();_.setStart(E.node,E.offset),N.removeAllRanges(),$>bt?(N.addRange(_),N.extend(g.node,g.offset)):(_.setEnd(g.node,g.offset),N.addRange(_))}}}}for(U=[],N=h;N=N.parentNode;)N.nodeType===1&&U.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<U.length;h++){var M=U[h];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}au=!!Oc,Nc=Oc=null}finally{ot=a,q.p=n,D.T=l}}t.current=e,Yt=2}}function Ch(){if(Yt===2){Yt=0;var t=Rl,e=Bn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var n=q.p;q.p=2;var a=ot;ot|=4;try{ah(t,e.alternate,e)}finally{ot=a,q.p=n,D.T=l}}Yt=3}}function Dh(){if(Yt===4||Yt===3){Yt=0,Mm();var t=Rl,e=Bn,l=il,n=vh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Yt=5:(Yt=0,Bn=Rl=null,Mh(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Al=null),Bu(l),e=e.stateNode,ce&&typeof ce.onCommitFiberRoot=="function")try{ce.onCommitFiberRoot(Kn,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=D.T,a=q.p,q.p=2,D.T=null;try{for(var u=t.onRecoverableError,f=0;f<n.length;f++){var h=n[f];u(h.value,{componentStack:h.stack})}}finally{D.T=e,q.p=a}}(il&3)!==0&&Ki(),qe(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===mc?Oa++:(Oa=0,mc=t):Oa=0,Na(0)}}function Mh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ca(e)))}function Ki(){return zh(),Ch(),Dh(),Uh()}function Uh(){if(Yt!==5)return!1;var t=Rl,e=hc;hc=0;var l=Bu(il),n=D.T,a=q.p;try{q.p=32>l?32:l,D.T=null,l=dc,dc=null;var u=Rl,f=il;if(Yt=0,Bn=Rl=null,il=0,(ot&6)!==0)throw Error(r(331));var h=ot;if(ot|=4,mh(u.current),oh(u,u.current,f,l),ot=h,Na(0,!1),ce&&typeof ce.onPostCommitFiberRoot=="function")try{ce.onPostCommitFiberRoot(Kn,u)}catch{}return!0}finally{q.p=a,D.T=n,Mh(t,e)}}function Bh(t,e,l){e=Se(l,e),e=Ks(t.stateNode,e,2),t=bl(t,e,2),t!==null&&(kn(t,2),qe(t))}function yt(t,e,l){if(t.tag===3)Bh(t,t,l);else for(;e!==null;){if(e.tag===3){Bh(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Al===null||!Al.has(n))){t=Se(l,t),l=wo(2),n=bl(e,l,2),n!==null&&(jo(l,n,e,t),kn(n,2),qe(n));break}}e=e.return}}function vc(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new ap;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)||(rc=!0,a.add(l),t=rp.bind(null,t,e,l),e.then(t,t))}function rp(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Et===t&&(it&l)===l&&(zt===4||zt===3&&(it&62914560)===it&&300>se()-Yi?(ot&2)===0&&wn(t,0):fc|=l,Un===it&&(Un=0)),qe(t)}function wh(t,e){e===0&&(e=Or()),t=Ql(t,e),t!==null&&(kn(t,e),qe(t))}function fp(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),wh(t,l)}function op(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(r(314))}n!==null&&n.delete(e),wh(t,l)}function hp(t,e){return Cu(t,e)}var Ji=null,Hn=null,gc=!1,ki=!1,bc=!1,Nl=0;function qe(t){t!==Hn&&t.next===null&&(Hn===null?Ji=Hn=t:Hn=Hn.next=t),ki=!0,gc||(gc=!0,mp())}function Na(t,e){if(!bc&&ki){bc=!0;do for(var l=!1,n=Ji;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var f=n.suspendedLanes,h=n.pingedLanes;u=(1<<31-re(42|t)+1)-1,u&=a&~(f&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Lh(n,u))}else u=it,u=Pa(n,n===Et?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Jn(n,u)||(l=!0,Lh(n,u));n=n.next}while(l);bc=!1}}function dp(){jh()}function jh(){ki=gc=!1;var t=0;Nl!==0&&Tp()&&(t=Nl);for(var e=se(),l=null,n=Ji;n!==null;){var a=n.next,u=Hh(n,e);u===0?(n.next=null,l===null?Ji=a:l.next=a,a===null&&(Hn=l)):(l=n,(t!==0||(u&3)!==0)&&(ki=!0)),n=a}Yt!==0&&Yt!==5||Na(t),Nl!==0&&(Nl=0)}function Hh(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-re(u),h=1<<f,y=a[f];y===-1?((h&l)===0||(h&n)!==0)&&(a[f]=Ym(h,e)):y<=e&&(t.expiredLanes|=h),u&=~h}if(e=Et,l=it,l=Pa(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(mt===2||mt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Du(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&&Du(n),Bu(l)){case 2:case 8:l=Ar;break;case 32:l=ka;break;case 268435456:l=Rr;break;default:l=ka}return n=qh.bind(null,t),l=Cu(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Du(n),t.callbackPriority=2,t.callbackNode=null,2}function qh(t,e){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Ki()&&t.callbackNode!==l)return null;var n=it;return n=Pa(t,t===Et?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(bh(t,n,e),Hh(t,se()),t.callbackNode!=null&&t.callbackNode===l?qh.bind(null,t):null)}function Lh(t,e){if(Ki())return null;bh(t,e,!0)}function mp(){Rp(function(){(ot&6)!==0?Cu(Tr,dp):jh()})}function Sc(){if(Nl===0){var t=xn;t===0&&(t=$a,$a<<=1,($a&261888)===0&&($a=256)),Nl=t}return Nl}function Yh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:li(""+t)}function Xh(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 yp(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=Yh((a[Pt]||null).action),f=n.submitter;f&&(e=(e=f[Pt]||null)?Yh(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var h=new ui("action","action",null,n,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Nl!==0){var y=f?Xh(a,f):new FormData(a);Ys(l,{pending:!0,data:y,method:a.method,action:u},null,y)}}else typeof u=="function"&&(h.preventDefault(),y=f?Xh(a,f):new FormData(a),Ys(l,{pending:!0,data:y,method:a.method,action:u},u,y))},currentTarget:a}]})}}for(var Ec=0;Ec<ns.length;Ec++){var xc=ns[Ec],pp=xc.toLowerCase(),vp=xc[0].toUpperCase()+xc.slice(1);ze(pp,"on"+vp)}ze(vf,"onAnimationEnd"),ze(gf,"onAnimationIteration"),ze(bf,"onAnimationStart"),ze("dblclick","onDoubleClick"),ze("focusin","onFocus"),ze("focusout","onBlur"),ze(Uy,"onTransitionRun"),ze(By,"onTransitionStart"),ze(wy,"onTransitionCancel"),ze(Sf,"onTransitionEnd"),cn("onMouseEnter",["mouseout","mouseover"]),cn("onMouseLeave",["mouseout","mouseover"]),cn("onPointerEnter",["pointerout","pointerover"]),cn("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var za="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(" "),gp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(za));function Gh(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 f=n.length-1;0<=f;f--){var h=n[f],y=h.instance,T=h.currentTarget;if(h=h.listener,y!==u&&a.isPropagationStopped())break t;u=h,a.currentTarget=T;try{u(a)}catch(C){ri(C)}a.currentTarget=null,u=y}else for(f=0;f<n.length;f++){if(h=n[f],y=h.instance,T=h.currentTarget,h=h.listener,y!==u&&a.isPropagationStopped())break t;u=h,a.currentTarget=T;try{u(a)}catch(C){ri(C)}a.currentTarget=null,u=y}}}}function at(t,e){var l=e[wu];l===void 0&&(l=e[wu]=new Set);var n=t+"__bubble";l.has(n)||(Qh(e,t,2,!1),l.add(n))}function _c(t,e,l){var n=0;e&&(n|=4),Qh(l,t,n,e)}var $i="_reactListening"+Math.random().toString(36).slice(2);function Tc(t){if(!t[$i]){t[$i]=!0,Br.forEach(function(l){l!=="selectionchange"&&(gp.has(l)||_c(l,!1,t),_c(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[$i]||(e[$i]=!0,_c("selectionchange",!1,e))}}function Qh(t,e,l,n){switch(gd(e)){case 2:var a=Kp;break;case 8:a=Jp;break;default:a=Lc}l=a.bind(null,e,l,t),a=void 0,!Vu||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 Ac(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var h=n.stateNode.containerInfo;if(h===a)break;if(f===4)for(f=n.return;f!==null;){var y=f.tag;if((y===3||y===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;h!==null;){if(f=an(h),f===null)return;if(y=f.tag,y===5||y===6||y===26||y===27){n=u=f;continue t}h=h.parentNode}}n=n.return}Kr(function(){var T=u,C=Gu(l),U=[];t:{var O=Ef.get(t);if(O!==void 0){var N=ui,G=t;switch(t){case"keypress":if(ai(l)===0)break t;case"keydown":case"keyup":N=oy;break;case"focusin":G="focus",N=ku;break;case"focusout":G="blur",N=ku;break;case"beforeblur":case"afterblur":N=ku;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=$r;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Im;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=my;break;case vf:case gf:case bf:N=ly;break;case Sf:N=py;break;case"scroll":case"scrollend":N=Fm;break;case"wheel":N=gy;break;case"copy":case"cut":case"paste":N=ay;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Fr;break;case"toggle":case"beforetoggle":N=Sy}var $=(e&4)!==0,bt=!$&&(t==="scroll"||t==="scrollend"),E=$?O!==null?O+"Capture":null:O;$=[];for(var g=T,_;g!==null;){var M=g;if(_=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||_===null||E===null||(M=Fn(g,E),M!=null&&$.push(Ca(g,M,_))),bt)break;g=g.return}0<$.length&&(O=new N(O,G,null,l,C),U.push({event:O,listeners:$}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",O&&l!==Xu&&(G=l.relatedTarget||l.fromElement)&&(an(G)||G[nn]))break t;if((N||O)&&(O=C.window===C?C:(O=C.ownerDocument)?O.defaultView||O.parentWindow:window,N?(G=l.relatedTarget||l.toElement,N=T,G=G?an(G):null,G!==null&&(bt=d(G),$=G.tag,G!==bt||$!==5&&$!==27&&$!==6)&&(G=null)):(N=null,G=T),N!==G)){if($=$r,M="onMouseLeave",E="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&($=Fr,M="onPointerLeave",E="onPointerEnter",g="pointer"),bt=N==null?O:Wn(N),_=G==null?O:Wn(G),O=new $(M,g+"leave",N,l,C),O.target=bt,O.relatedTarget=_,M=null,an(C)===T&&($=new $(E,g+"enter",G,l,C),$.target=_,$.relatedTarget=bt,M=$),bt=M,N&&G)e:{for($=bp,E=N,g=G,_=0,M=E;M;M=$(M))_++;M=0;for(var J=g;J;J=$(J))M++;for(;0<_-M;)E=$(E),_--;for(;0<M-_;)g=$(g),M--;for(;_--;){if(E===g||g!==null&&E===g.alternate){$=E;break e}E=$(E),g=$(g)}$=null}else $=null;N!==null&&Vh(U,O,N,$,!1),G!==null&&bt!==null&&Vh(U,bt,G,$,!0)}}t:{if(O=T?Wn(T):window,N=O.nodeName&&O.nodeName.toLowerCase(),N==="select"||N==="input"&&O.type==="file")var rt=uf;else if(nf(O))if(sf)rt=Cy;else{rt=Ny;var K=Oy}else N=O.nodeName,!N||N.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?T&&Yu(T.elementType)&&(rt=uf):rt=zy;if(rt&&(rt=rt(t,T))){af(U,rt,l,C);break t}K&&K(t,O,T),t==="focusout"&&T&&O.type==="number"&&T.memoizedProps.value!=null&&Lu(O,"number",O.value)}switch(K=T?Wn(T):window,t){case"focusin":(nf(K)||K.contentEditable==="true")&&(mn=K,ts=T,ia=null);break;case"focusout":ia=ts=mn=null;break;case"mousedown":es=!0;break;case"contextmenu":case"mouseup":case"dragend":es=!1,yf(U,l,C);break;case"selectionchange":if(My)break;case"keydown":case"keyup":yf(U,l,C)}var et;if(Wu)t:{switch(t){case"compositionstart":var ut="onCompositionStart";break t;case"compositionend":ut="onCompositionEnd";break t;case"compositionupdate":ut="onCompositionUpdate";break t}ut=void 0}else dn?ef(t,l)&&(ut="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ut="onCompositionStart");ut&&(Pr&&l.locale!=="ko"&&(dn||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&dn&&(et=Jr()):(hl=C,Zu="value"in hl?hl.value:hl.textContent,dn=!0)),K=Wi(T,ut),0<K.length&&(ut=new Wr(ut,t,null,l,C),U.push({event:ut,listeners:K}),et?ut.data=et:(et=lf(l),et!==null&&(ut.data=et)))),(et=xy?_y(t,l):Ty(t,l))&&(ut=Wi(T,"onBeforeInput"),0<ut.length&&(K=new Wr("onBeforeInput","beforeinput",null,l,C),U.push({event:K,listeners:ut}),K.data=et)),yp(U,t,T,l,C)}Gh(U,e)})}function Ca(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Wi(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=Fn(t,l),a!=null&&n.unshift(Ca(t,a,u)),a=Fn(t,e),a!=null&&n.push(Ca(t,a,u))),t.tag===3)return n;t=t.return}return[]}function bp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vh(t,e,l,n,a){for(var u=e._reactName,f=[];l!==null&&l!==n;){var h=l,y=h.alternate,T=h.stateNode;if(h=h.tag,y!==null&&y===n)break;h!==5&&h!==26&&h!==27||T===null||(y=T,a?(T=Fn(l,u),T!=null&&f.unshift(Ca(l,T,y))):a||(T=Fn(l,u),T!=null&&f.push(Ca(l,T,y)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Sp=/\r\n?/g,Ep=/\u0000|\uFFFD/g;function Zh(t){return(typeof t=="string"?t:""+t).replace(Sp,`
`).replace(Ep,"")}function Kh(t,e){return e=Zh(e),Zh(t)===e}function gt(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||fn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&fn(t,""+n);break;case"className":ti(t,"class",n);break;case"tabIndex":ti(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":ti(t,l,n);break;case"style":Vr(t,n,u);break;case"data":if(e!=="object"){ti(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=li(""+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"&&gt(t,e,"name",a.name,a,null),gt(t,e,"formEncType",a.formEncType,a,null),gt(t,e,"formMethod",a.formMethod,a,null),gt(t,e,"formTarget",a.formTarget,a,null)):(gt(t,e,"encType",a.encType,a,null),gt(t,e,"method",a.method,a,null),gt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=li(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=Ve);break;case"onScroll":n!=null&&at("scroll",t);break;case"onScrollEnd":n!=null&&at("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(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=li(""+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":at("beforetoggle",t),at("toggle",t),Ia(t,"popover",n);break;case"xlinkActuate":Qe(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Qe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Qe(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Qe(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Qe(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Qe(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Qe(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Ia(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=$m.get(l)||l,Ia(t,l,n))}}function Rc(t,e,l,n,a,u){switch(l){case"style":Vr(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof n=="string"?fn(t,n):(typeof n=="number"||typeof n=="bigint")&&fn(t,""+n);break;case"onScroll":n!=null&&at("scroll",t);break;case"onScrollEnd":n!=null&&at("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wr.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[Pt]||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,""):Ia(t,l,n)}}}function Jt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",t),at("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:gt(t,e,u,f,l,null)}}a&&gt(t,e,"srcSet",l.srcSet,l,null),n&&gt(t,e,"src",l.src,l,null);return;case"input":at("invalid",t);var h=u=f=a=null,y=null,T=null;for(n in l)if(l.hasOwnProperty(n)){var C=l[n];if(C!=null)switch(n){case"name":a=C;break;case"type":f=C;break;case"checked":y=C;break;case"defaultChecked":T=C;break;case"value":u=C;break;case"defaultValue":h=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:gt(t,e,n,C,l,null)}}Yr(t,u,h,y,T,f,a,!1);return;case"select":at("invalid",t),n=f=u=null;for(a in l)if(l.hasOwnProperty(a)&&(h=l[a],h!=null))switch(a){case"value":u=h;break;case"defaultValue":f=h;break;case"multiple":n=h;default:gt(t,e,a,h,l,null)}e=u,l=f,t.multiple=!!n,e!=null?rn(t,!!n,e,!1):l!=null&&rn(t,!!n,l,!0);return;case"textarea":at("invalid",t),u=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":n=h;break;case"defaultValue":a=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:gt(t,e,f,h,l,null)}Gr(t,n,a,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(n=l[y],n!=null))switch(y){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:gt(t,e,y,n,l,null)}return;case"dialog":at("beforetoggle",t),at("toggle",t),at("cancel",t),at("close",t);break;case"iframe":case"object":at("load",t);break;case"video":case"audio":for(n=0;n<za.length;n++)at(za[n],t);break;case"image":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"embed":case"source":case"link":at("error",t),at("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(T in l)if(l.hasOwnProperty(T)&&(n=l[T],n!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:gt(t,e,T,n,l,null)}return;default:if(Yu(e)){for(C in l)l.hasOwnProperty(C)&&(n=l[C],n!==void 0&&Rc(t,e,C,n,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(n=l[h],n!=null&&gt(t,e,h,n,l,null))}function xp(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,f=null,h=null,y=null,T=null,C=null;for(N in l){var U=l[N];if(l.hasOwnProperty(N)&&U!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":y=U;default:n.hasOwnProperty(N)||gt(t,e,N,null,n,U)}}for(var O in n){var N=n[O];if(U=l[O],n.hasOwnProperty(O)&&(N!=null||U!=null))switch(O){case"type":u=N;break;case"name":a=N;break;case"checked":T=N;break;case"defaultChecked":C=N;break;case"value":f=N;break;case"defaultValue":h=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:N!==U&&gt(t,e,O,N,n,U)}}qu(t,f,h,y,T,C,u,a);return;case"select":N=f=h=O=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":N=y;default:n.hasOwnProperty(u)||gt(t,e,u,null,n,y)}for(a in n)if(u=n[a],y=l[a],n.hasOwnProperty(a)&&(u!=null||y!=null))switch(a){case"value":O=u;break;case"defaultValue":h=u;break;case"multiple":f=u;default:u!==y&&gt(t,e,a,u,n,y)}e=h,l=f,n=N,O!=null?rn(t,!!l,O,!1):!!n!=!!l&&(e!=null?rn(t,!!l,e,!0):rn(t,!!l,l?[]:"",!1));return;case"textarea":N=O=null;for(h in l)if(a=l[h],l.hasOwnProperty(h)&&a!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:gt(t,e,h,null,n,a)}for(f in n)if(a=n[f],u=l[f],n.hasOwnProperty(f)&&(a!=null||u!=null))switch(f){case"value":O=a;break;case"defaultValue":N=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==u&&gt(t,e,f,a,n,u)}Xr(t,O,N);return;case"option":for(var G in l)if(O=l[G],l.hasOwnProperty(G)&&O!=null&&!n.hasOwnProperty(G))switch(G){case"selected":t.selected=!1;break;default:gt(t,e,G,null,n,O)}for(y in n)if(O=n[y],N=l[y],n.hasOwnProperty(y)&&O!==N&&(O!=null||N!=null))switch(y){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:gt(t,e,y,O,n,N)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in l)O=l[$],l.hasOwnProperty($)&&O!=null&&!n.hasOwnProperty($)&&gt(t,e,$,null,n,O);for(T in n)if(O=n[T],N=l[T],n.hasOwnProperty(T)&&O!==N&&(O!=null||N!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:gt(t,e,T,O,n,N)}return;default:if(Yu(e)){for(var bt in l)O=l[bt],l.hasOwnProperty(bt)&&O!==void 0&&!n.hasOwnProperty(bt)&&Rc(t,e,bt,void 0,n,O);for(C in n)O=n[C],N=l[C],!n.hasOwnProperty(C)||O===N||O===void 0&&N===void 0||Rc(t,e,C,O,n,N);return}}for(var E in l)O=l[E],l.hasOwnProperty(E)&&O!=null&&!n.hasOwnProperty(E)&&gt(t,e,E,null,n,O);for(U in n)O=n[U],N=l[U],!n.hasOwnProperty(U)||O===N||O==null&&N==null||gt(t,e,U,O,n,N)}function Jh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _p(){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,f=a.initiatorType,h=a.duration;if(u&&h&&Jh(f)){for(f=0,h=a.responseEnd,n+=1;n<l.length;n++){var y=l[n],T=y.startTime;if(T>h)break;var C=y.transferSize,U=y.initiatorType;C&&Jh(U)&&(y=y.responseEnd,f+=C*(y<h?1:(h-T)/(y-T)))}if(--n,e+=8*(u+f)/(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 Oc=null,Nc=null;function Fi(t){return t.nodeType===9?t:t.ownerDocument}function kh(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 $h(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 zc(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 Cc=null;function Tp(){var t=window.event;return t&&t.type==="popstate"?t===Cc?!1:(Cc=t,!0):(Cc=null,!1)}var Wh=typeof setTimeout=="function"?setTimeout:void 0,Ap=typeof clearTimeout=="function"?clearTimeout:void 0,Fh=typeof Promise=="function"?Promise:void 0,Rp=typeof queueMicrotask=="function"?queueMicrotask:typeof Fh<"u"?function(t){return Fh.resolve(null).then(t).catch(Op)}:Wh;function Op(t){setTimeout(function(){throw t})}function zl(t){return t==="head"}function Ph(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),Xn(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Da(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Da(l);for(var u=l.firstChild;u;){var f=u.nextSibling,h=u.nodeName;u[$n]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=f}}else l==="body"&&Da(t.ownerDocument.body);l=a}while(l);Xn(e)}function Ih(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 Dc(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":Dc(l),ju(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Np(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[$n])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=Ae(t.nextSibling),t===null)break}return null}function zp(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ae(t.nextSibling),t===null))return null;return t}function td(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ae(t.nextSibling),t===null))return null;return t}function Mc(t){return t.data==="$?"||t.data==="$~"}function Uc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Cp(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 Ae(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 Bc=null;function ed(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ae(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function ld(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 nd(t,e,l){switch(e=Fi(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Da(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ju(t)}var Re=new Map,ad=new Set;function Pi(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ul=q.d;q.d={f:Dp,r:Mp,D:Up,C:Bp,L:wp,m:jp,X:qp,S:Hp,M:Lp};function Dp(){var t=ul.f(),e=Qi();return t||e}function Mp(t){var e=un(t);e!==null&&e.tag===5&&e.type==="form"?Eo(e):ul.r(t)}var qn=typeof document>"u"?null:document;function id(t,e,l){var n=qn;if(n&&typeof e=="string"&&e){var a=ge(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),ad.has(a)||(ad.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),Jt(e,"link",t),Xt(e),n.head.appendChild(e)))}}function Up(t){ul.D(t),id("dns-prefetch",t,null)}function Bp(t,e){ul.C(t,e),id("preconnect",t,e)}function wp(t,e,l){ul.L(t,e,l);var n=qn;if(n&&t&&e){var a='link[rel="preload"][as="'+ge(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+ge(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+ge(l.imageSizes)+'"]')):a+='[href="'+ge(t)+'"]';var u=a;switch(e){case"style":u=Ln(t);break;case"script":u=Yn(t)}Re.has(u)||(t=R({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Re.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Ma(u))||e==="script"&&n.querySelector(Ua(u))||(e=n.createElement("link"),Jt(e,"link",t),Xt(e),n.head.appendChild(e)))}}function jp(t,e){ul.m(t,e);var l=qn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+ge(n)+'"][href="'+ge(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Yn(t)}if(!Re.has(u)&&(t=R({rel:"modulepreload",href:t},e),Re.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ua(u)))return}n=l.createElement("link"),Jt(n,"link",t),Xt(n),l.head.appendChild(n)}}}function Hp(t,e,l){ul.S(t,e,l);var n=qn;if(n&&t){var a=sn(n).hoistableStyles,u=Ln(t);e=e||"default";var f=a.get(u);if(!f){var h={loading:0,preload:null};if(f=n.querySelector(Ma(u)))h.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Re.get(u))&&wc(t,l);var y=f=n.createElement("link");Xt(y),Jt(y,"link",t),y._p=new Promise(function(T,C){y.onload=T,y.onerror=C}),y.addEventListener("load",function(){h.loading|=1}),y.addEventListener("error",function(){h.loading|=2}),h.loading|=4,Ii(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:h},a.set(u,f)}}}function qp(t,e){ul.X(t,e);var l=qn;if(l&&t){var n=sn(l).hoistableScripts,a=Yn(t),u=n.get(a);u||(u=l.querySelector(Ua(a)),u||(t=R({src:t,async:!0},e),(e=Re.get(a))&&jc(t,e),u=l.createElement("script"),Xt(u),Jt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Lp(t,e){ul.M(t,e);var l=qn;if(l&&t){var n=sn(l).hoistableScripts,a=Yn(t),u=n.get(a);u||(u=l.querySelector(Ua(a)),u||(t=R({src:t,async:!0,type:"module"},e),(e=Re.get(a))&&jc(t,e),u=l.createElement("script"),Xt(u),Jt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function ud(t,e,l,n){var a=(a=lt.current)?Pi(a):null;if(!a)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Ln(l.href),l=sn(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=Ln(l.href);var u=sn(a).hoistableStyles,f=u.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=a.querySelector(Ma(t)))&&!u._p&&(f.instance=u,f.state.loading=5),Re.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},Re.set(t,l),u||Yp(a,t,l,f.state))),e&&n===null)throw Error(r(528,""));return f}if(e&&n!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Yn(l),l=sn(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(r(444,t))}}function Ln(t){return'href="'+ge(t)+'"'}function Ma(t){return'link[rel="stylesheet"]['+t+"]"}function sd(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function Yp(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}),Jt(e,"link",l),Xt(e),t.head.appendChild(e))}function Yn(t){return'[src="'+ge(t)+'"]'}function Ua(t){return"script[async]"+t}function cd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+ge(l.href)+'"]');if(n)return e.instance=n,Xt(n),n;var a=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Xt(n),Jt(n,"style",a),Ii(n,l.precedence,t),e.instance=n;case"stylesheet":a=Ln(l.href);var u=t.querySelector(Ma(a));if(u)return e.state.loading|=4,e.instance=u,Xt(u),u;n=sd(l),(a=Re.get(a))&&wc(n,a),u=(t.ownerDocument||t).createElement("link"),Xt(u);var f=u;return f._p=new Promise(function(h,y){f.onload=h,f.onerror=y}),Jt(u,"link",n),e.state.loading|=4,Ii(u,l.precedence,t),e.instance=u;case"script":return u=Yn(l.src),(a=t.querySelector(Ua(u)))?(e.instance=a,Xt(a),a):(n=l,(a=Re.get(u))&&(n=R({},l),jc(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Xt(a),Jt(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,Ii(n,l.precedence,t));return e.instance}function Ii(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,f=0;f<n.length;f++){var h=n[f];if(h.dataset.precedence===e)u=h;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 wc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function jc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var tu=null;function rd(t,e,l){if(tu===null){var n=new Map,a=tu=new Map;a.set(l,n)}else a=tu,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[$n]||u[Qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var h=n.get(f);h?h.push(u):n.set(f,[u])}}return n}function fd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Xp(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 od(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Gp(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=Ln(n.href),u=e.querySelector(Ma(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=eu.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Xt(u);return}u=e.ownerDocument||e,n=sd(n),(a=Re.get(a))&&wc(n,a),u=u.createElement("link"),Xt(u);var f=u;f._p=new Promise(function(h,y){f.onload=h,f.onerror=y}),Jt(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=eu.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Hc=0;function Qp(t,e){return t.stylesheets&&t.count===0&&nu(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Hc===0&&(Hc=62500*_p());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Hc?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var lu=null;function nu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,lu=new Map,e.forEach(Vp,t),lu=null,eu.call(t))}function Vp(t,e){if(!(e.state.loading&4)){var l=lu.get(t);if(l)var n=l.get(null);else{l=new Map,lu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var f=a[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}a=e.instance,f=a.getAttribute("data-precedence"),u=l.get(f)||n,u===n&&l.set(null,a),l.set(f,a),this.count++,n=eu.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 Ba={$$typeof:k,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Zp(t,e,l,n,a,u,f,h,y){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=Mu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mu(0),this.hiddenUpdates=Mu(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function hd(t,e,l,n,a,u,f,h,y,T,C,U){return t=new Zp(t,e,l,f,y,T,C,U,h),e=1,u===!0&&(e|=24),u=oe(3,null,null,e),t.current=u,u.stateNode=t,e=ps(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},Ss(u),t}function dd(t){return t?(t=vn,t):vn}function md(t,e,l,n,a,u){a=dd(a),n.context===null?n.context=a:n.pendingContext=a,n=gl(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=bl(t,n,e),l!==null&&(ae(l,t,e),ha(l,t,e))}function yd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function qc(t,e){yd(t,e),(t=t.alternate)&&yd(t,e)}function pd(t){if(t.tag===13||t.tag===31){var e=Ql(t,67108864);e!==null&&ae(e,t,67108864),qc(t,67108864)}}function vd(t){if(t.tag===13||t.tag===31){var e=pe();e=Uu(e);var l=Ql(t,e);l!==null&&ae(l,t,e),qc(t,e)}}var au=!0;function Kp(t,e,l,n){var a=D.T;D.T=null;var u=q.p;try{q.p=2,Lc(t,e,l,n)}finally{q.p=u,D.T=a}}function Jp(t,e,l,n){var a=D.T;D.T=null;var u=q.p;try{q.p=8,Lc(t,e,l,n)}finally{q.p=u,D.T=a}}function Lc(t,e,l,n){if(au){var a=Yc(n);if(a===null)Ac(t,e,n,iu,l),bd(t,n);else if($p(a,t,e,l,n))n.stopPropagation();else if(bd(t,n),e&4&&-1<kp.indexOf(t)){for(;a!==null;){var u=un(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=ql(u.pendingLanes);if(f!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var y=1<<31-re(f);h.entanglements[1]|=y,f&=~y}qe(u),(ot&6)===0&&(Xi=se()+500,Na(0))}}break;case 31:case 13:h=Ql(u,2),h!==null&&ae(h,u,2),Qi(),qc(u,2)}if(u=Yc(n),u===null&&Ac(t,e,n,iu,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Ac(t,e,n,null,l)}}function Yc(t){return t=Gu(t),Xc(t)}var iu=null;function Xc(t){if(iu=null,t=an(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=m(e),t!==null)return t;t=null}else if(l===31){if(t=S(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 iu=t,null}function gd(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(Um()){case Tr:return 2;case Ar:return 8;case ka:case Bm:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Gc=!1,Cl=null,Dl=null,Ml=null,wa=new Map,ja=new Map,Ul=[],kp="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 bd(t,e){switch(t){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":wa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ja.delete(e.pointerId)}}function Ha(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=un(e),e!==null&&pd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function $p(t,e,l,n,a){switch(e){case"focusin":return Cl=Ha(Cl,t,e,l,n,a),!0;case"dragenter":return Dl=Ha(Dl,t,e,l,n,a),!0;case"mouseover":return Ml=Ha(Ml,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return wa.set(u,Ha(wa.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,ja.set(u,Ha(ja.get(u)||null,t,e,l,n,a)),!0}return!1}function Sd(t){var e=an(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=m(l),e!==null){t.blockedOn=e,Mr(t.priority,function(){vd(l)});return}}else if(e===31){if(e=S(l),e!==null){t.blockedOn=e,Mr(t.priority,function(){vd(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 uu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Yc(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Xu=n,l.target.dispatchEvent(n),Xu=null}else return e=un(l),e!==null&&pd(e),t.blockedOn=l,!1;e.shift()}return!0}function Ed(t,e,l){uu(t)&&l.delete(e)}function Wp(){Gc=!1,Cl!==null&&uu(Cl)&&(Cl=null),Dl!==null&&uu(Dl)&&(Dl=null),Ml!==null&&uu(Ml)&&(Ml=null),wa.forEach(Ed),ja.forEach(Ed)}function su(t,e){t.blockedOn===e&&(t.blockedOn=null,Gc||(Gc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Wp)))}var cu=null;function xd(t){cu!==t&&(cu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){cu===t&&(cu=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(Xc(n||l)===null)continue;break}var u=un(l);u!==null&&(t.splice(e,3),e-=3,Ys(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Xn(t){function e(y){return su(y,t)}Cl!==null&&su(Cl,t),Dl!==null&&su(Dl,t),Ml!==null&&su(Ml,t),wa.forEach(e),ja.forEach(e);for(var l=0;l<Ul.length;l++){var n=Ul[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)Sd(l),l.blockedOn===null&&Ul.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],f=a[Pt]||null;if(typeof u=="function")f||xd(l);else if(f){var h=null;if(u&&u.hasAttribute("formAction")){if(a=u,f=u[Pt]||null)h=f.formAction;else if(Xc(a)!==null)continue}else h=f.action;typeof h=="function"?l[n+1]=h:(l.splice(n,3),n-=3),xd(l)}}}function _d(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return a=f})},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 Qc(t){this._internalRoot=t}ru.prototype.render=Qc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,n=pe();md(l,n,t,e,null,null)},ru.prototype.unmount=Qc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;md(t.current,2,null,t,null,null),Qi(),e[nn]=null}};function ru(t){this._internalRoot=t}ru.prototype.unstable_scheduleHydration=function(t){if(t){var e=Dr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ul.length&&e!==0&&e<Ul[l].priority;l++);Ul.splice(l,0,t),l===0&&Sd(t)}};var Td=i.version;if(Td!=="19.2.0")throw Error(r(527,Td,"19.2.0"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=v(e),t=t!==null?z(t):null,t=t===null?null:t.stateNode,t};var Fp={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fu.isDisabled&&fu.supportsFiber)try{Kn=fu.inject(Fp),ce=fu}catch{}}return La.createRoot=function(t,e){if(!o(t))throw Error(r(299));var l=!1,n="",a=Do,u=Mo,f=Uo;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&&(f=e.onRecoverableError)),e=hd(t,1,!1,null,null,l,n,null,a,u,f,_d),t[nn]=e.current,Tc(t),new Qc(e)},La.hydrateRoot=function(t,e,l){if(!o(t))throw Error(r(299));var n=!1,a="",u=Do,f=Mo,h=Uo,y=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&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),e=hd(t,1,!0,e,l??null,n,a,y,u,f,h,_d),e.context=dd(null),l=e.current,n=pe(),n=Uu(n),a=gl(n),a.callback=null,bl(l,a,n),l=n,e.current.lanes=l,kn(e,l),qe(e),t[nn]=e.current,Tc(t),new ru(e)},La.version="19.2.0",La}var Bd;function s0(){if(Bd)return Kc.exports;Bd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Kc.exports=u0(),Kc.exports}var c0=s0();var wd="popstate";function r0(s={}){function i(r,o){let{pathname:d,search:m,hash:S}=r.location;return er("",{pathname:d,search:m,hash:S},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function c(r,o){return typeof o=="string"?o:Qa(o)}return o0(i,c,null,s)}function Rt(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Ue(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function f0(){return Math.random().toString(36).substring(2,10)}function jd(s,i){return{usr:s.state,key:s.key,idx:i}}function er(s,i,c=null,r){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?Gn(i):i,state:c,key:i&&i.key||r||f0()}}function Qa({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Gn(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function o0(s,i,c,r={}){let{window:o=document.defaultView,v5Compat:d=!1}=r,m=o.history,S="POP",p=null,v=z();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function z(){return(m.state||{idx:null}).idx}function R(){S="POP";let Y=z(),X=Y==null?null:Y-v;v=Y,p&&p({action:S,location:Z.location,delta:X})}function w(Y,X){S="PUSH";let Q=er(Z.location,Y,X);v=z()+1;let k=jd(Q,v),dt=Z.createHref(Q);try{m.pushState(k,"",dt)}catch(Tt){if(Tt instanceof DOMException&&Tt.name==="DataCloneError")throw Tt;o.location.assign(dt)}d&&p&&p({action:S,location:Z.location,delta:1})}function H(Y,X){S="REPLACE";let Q=er(Z.location,Y,X);v=z();let k=jd(Q,v),dt=Z.createHref(Q);m.replaceState(k,"",dt),d&&p&&p({action:S,location:Z.location,delta:0})}function j(Y){return h0(Y)}let Z={get action(){return S},get location(){return s(o,m)},listen(Y){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(wd,R),p=Y,()=>{o.removeEventListener(wd,R),p=null}},createHref(Y){return i(o,Y)},createURL:j,encodeLocation(Y){let X=j(Y);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:w,replace:H,go(Y){return m.go(Y)}};return Z}function h0(s,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),Rt(c,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Qa(s);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function Jd(s,i,c="/"){return d0(s,i,c,!1)}function d0(s,i,c,r){let o=typeof i=="string"?Gn(i):i,d=cl(o.pathname||"/",c);if(d==null)return null;let m=kd(s);m0(m);let S=null;for(let p=0;S==null&&p<m.length;++p){let v=A0(d);S=_0(m[p],v,r)}return S}function kd(s,i=[],c=[],r="",o=!1){let d=(m,S,p=o,v)=>{let z={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:S,route:m};if(z.relativePath.startsWith("/")){if(!z.relativePath.startsWith(r)&&p)return;Rt(z.relativePath.startsWith(r),`Absolute route path "${z.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),z.relativePath=z.relativePath.slice(r.length)}let R=sl([r,z.relativePath]),w=c.concat(z);m.children&&m.children.length>0&&(Rt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${R}".`),kd(m.children,i,w,R,p)),!(m.path==null&&!m.index)&&i.push({path:R,score:E0(R,m.index),routesMeta:w})};return s.forEach((m,S)=>{if(m.path===""||!m.path?.includes("?"))d(m,S);else for(let p of $d(m.path))d(m,S,!0,p)}),i}function $d(s){let i=s.split("/");if(i.length===0)return[];let[c,...r]=i,o=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return o?[d,""]:[d];let m=$d(r.join("/")),S=[];return S.push(...m.map(p=>p===""?d:[d,p].join("/"))),o&&S.push(...m),S.map(p=>s.startsWith("/")&&p===""?"/":p)}function m0(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:x0(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var y0=/^:[\w-]+$/,p0=3,v0=2,g0=1,b0=10,S0=-2,Hd=s=>s==="*";function E0(s,i){let c=s.split("/"),r=c.length;return c.some(Hd)&&(r+=S0),i&&(r+=v0),c.filter(o=>!Hd(o)).reduce((o,d)=>o+(y0.test(d)?p0:d===""?g0:b0),r)}function x0(s,i){return s.length===i.length&&s.slice(0,-1).every((r,o)=>r===i[o])?s[s.length-1]-i[i.length-1]:0}function _0(s,i,c=!1){let{routesMeta:r}=s,o={},d="/",m=[];for(let S=0;S<r.length;++S){let p=r[S],v=S===r.length-1,z=d==="/"?i:i.slice(d.length)||"/",R=Su({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},z),w=p.route;if(!R&&v&&c&&!r[r.length-1].route.index&&(R=Su({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},z)),!R)return null;Object.assign(o,R.params),m.push({params:o,pathname:sl([d,R.pathname]),pathnameBase:C0(sl([d,R.pathnameBase])),route:w}),R.pathnameBase!=="/"&&(d=sl([d,R.pathnameBase]))}return m}function Su(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=T0(s.path,s.caseSensitive,s.end),o=i.match(c);if(!o)return null;let d=o[0],m=d.replace(/(.)\/+$/,"$1"),S=o.slice(1);return{params:r.reduce((v,{paramName:z,isOptional:R},w)=>{if(z==="*"){let j=S[w]||"";m=d.slice(0,d.length-j.length).replace(/(.)\/+$/,"$1")}const H=S[w];return R&&!H?v[z]=void 0:v[z]=(H||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:m,pattern:s}}function T0(s,i=!1,c=!0){Ue(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,S,p)=>(r.push({paramName:S,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function A0(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ue(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function cl(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var R0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,O0=s=>R0.test(s);function N0(s,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof s=="string"?Gn(s):s,d;if(c)if(O0(c))d=c;else{if(c.includes("//")){let m=c;c=c.replace(/\/\/+/g,"/"),Ue(!1,`Pathnames cannot have embedded double slashes - normalizing ${m} -> ${c}`)}c.startsWith("/")?d=qd(c.substring(1),"/"):d=qd(c,i)}else d=i;return{pathname:d,search:D0(r),hash:M0(o)}}function qd(s,i){let c=i.replace(/\/+$/,"").split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Wc(s,i,c,r){return`Cannot include a '${s}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z0(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function Wd(s){let i=z0(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Fd(s,i,c,r=!1){let o;typeof s=="string"?o=Gn(s):(o={...s},Rt(!o.pathname||!o.pathname.includes("?"),Wc("?","pathname","search",o)),Rt(!o.pathname||!o.pathname.includes("#"),Wc("#","pathname","hash",o)),Rt(!o.search||!o.search.includes("#"),Wc("#","search","hash",o)));let d=s===""||o.pathname==="",m=d?"/":o.pathname,S;if(m==null)S=c;else{let R=i.length-1;if(!r&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),R-=1;o.pathname=w.join("/")}S=R>=0?i[R]:"/"}let p=N0(o,S),v=m&&m!=="/"&&m.endsWith("/"),z=(d||m===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(v||z)&&(p.pathname+="/"),p}var sl=s=>s.join("/").replace(/\/\/+/g,"/"),C0=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),D0=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,M0=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s;function U0(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Pd=["POST","PUT","PATCH","DELETE"];new Set(Pd);var B0=["GET",...Pd];new Set(B0);var Qn=x.createContext(null);Qn.displayName="DataRouter";var Eu=x.createContext(null);Eu.displayName="DataRouterState";x.createContext(!1);var Id=x.createContext({isTransitioning:!1});Id.displayName="ViewTransition";var w0=x.createContext(new Map);w0.displayName="Fetchers";var j0=x.createContext(null);j0.displayName="Await";var Xe=x.createContext(null);Xe.displayName="Navigation";var Va=x.createContext(null);Va.displayName="Location";var rl=x.createContext({outlet:null,matches:[],isDataRoute:!1});rl.displayName="Route";var or=x.createContext(null);or.displayName="RouteError";function H0(s,{relative:i}={}){Rt(Za(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=x.useContext(Xe),{hash:o,pathname:d,search:m}=Ka(s,{relative:i}),S=d;return c!=="/"&&(S=d==="/"?c:sl([c,d])),r.createHref({pathname:S,search:m,hash:o})}function Za(){return x.useContext(Va)!=null}function ln(){return Rt(Za(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Va).location}var tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function em(s){x.useContext(Xe).static||x.useLayoutEffect(s)}function q0(){let{isDataRoute:s}=x.useContext(rl);return s?F0():L0()}function L0(){Rt(Za(),"useNavigate() may be used only in the context of a <Router> component.");let s=x.useContext(Qn),{basename:i,navigator:c}=x.useContext(Xe),{matches:r}=x.useContext(rl),{pathname:o}=ln(),d=JSON.stringify(Wd(r)),m=x.useRef(!1);return em(()=>{m.current=!0}),x.useCallback((p,v={})=>{if(Ue(m.current,tm),!m.current)return;if(typeof p=="number"){c.go(p);return}let z=Fd(p,JSON.parse(d),o,v.relative==="path");s==null&&i!=="/"&&(z.pathname=z.pathname==="/"?i:sl([i,z.pathname])),(v.replace?c.replace:c.push)(z,v.state,v)},[i,c,d,o,s])}x.createContext(null);function Ka(s,{relative:i}={}){let{matches:c}=x.useContext(rl),{pathname:r}=ln(),o=JSON.stringify(Wd(c));return x.useMemo(()=>Fd(s,JSON.parse(o),r,i==="path"),[s,o,r,i])}function Y0(s,i){return lm(s,i)}function lm(s,i,c,r,o){Rt(Za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=x.useContext(Xe),{matches:m}=x.useContext(rl),S=m[m.length-1],p=S?S.params:{},v=S?S.pathname:"/",z=S?S.pathnameBase:"/",R=S&&S.route;{let Q=R&&R.path||"";nm(v,!R||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${Q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let w=ln(),H;if(i){let Q=typeof i=="string"?Gn(i):i;Rt(z==="/"||Q.pathname?.startsWith(z),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${z}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),H=Q}else H=w;let j=H.pathname||"/",Z=j;if(z!=="/"){let Q=z.replace(/^\//,"").split("/");Z="/"+j.replace(/^\//,"").split("/").slice(Q.length).join("/")}let Y=Jd(s,{pathname:Z});Ue(R||Y!=null,`No routes matched location "${H.pathname}${H.search}${H.hash}" `),Ue(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${H.pathname}${H.search}${H.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=Z0(Y&&Y.map(Q=>Object.assign({},Q,{params:Object.assign({},p,Q.params),pathname:sl([z,d.encodeLocation?d.encodeLocation(Q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?z:sl([z,d.encodeLocation?d.encodeLocation(Q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),m,c,r,o);return i&&X?x.createElement(Va.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...H},navigationType:"POP"}},X):X}function X0(){let s=W0(),i=U0(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",s),m=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:d},"ErrorBoundary")," or"," ",x.createElement("code",{style:d},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},i),c?x.createElement("pre",{style:o},c):null,m)}var G0=x.createElement(X0,null),Q0=class extends x.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){return this.state.error!==void 0?x.createElement(rl.Provider,{value:this.props.routeContext},x.createElement(or.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function V0({routeContext:s,match:i,children:c}){let r=x.useContext(Qn);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),x.createElement(rl.Provider,{value:s},c)}function Z0(s,i=[],c=null,r=null,o=null){if(s==null){if(!c)return null;if(c.errors)s=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let d=s,m=c?.errors;if(m!=null){let z=d.findIndex(R=>R.route.id&&m?.[R.route.id]!==void 0);Rt(z>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,z+1))}let S=!1,p=-1;if(c)for(let z=0;z<d.length;z++){let R=d[z];if((R.route.HydrateFallback||R.route.hydrateFallbackElement)&&(p=z),R.route.id){let{loaderData:w,errors:H}=c,j=R.route.loader&&!w.hasOwnProperty(R.route.id)&&(!H||H[R.route.id]===void 0);if(R.route.lazy||j){S=!0,p>=0?d=d.slice(0,p+1):d=[d[0]];break}}}let v=c&&r?(z,R)=>{r(z,{location:c.location,params:c.matches?.[0]?.params??{},errorInfo:R})}:void 0;return d.reduceRight((z,R,w)=>{let H,j=!1,Z=null,Y=null;c&&(H=m&&R.route.id?m[R.route.id]:void 0,Z=R.route.errorElement||G0,S&&(p<0&&w===0?(nm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,Y=null):p===w&&(j=!0,Y=R.route.hydrateFallbackElement||null)));let X=i.concat(d.slice(0,w+1)),Q=()=>{let k;return H?k=Z:j?k=Y:R.route.Component?k=x.createElement(R.route.Component,null):R.route.element?k=R.route.element:k=z,x.createElement(V0,{match:R,routeContext:{outlet:z,matches:X,isDataRoute:c!=null},children:k})};return c&&(R.route.ErrorBoundary||R.route.errorElement||w===0)?x.createElement(Q0,{location:c.location,revalidation:c.revalidation,component:Z,error:H,children:Q(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:v}):Q()},null)}function hr(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K0(s){let i=x.useContext(Qn);return Rt(i,hr(s)),i}function J0(s){let i=x.useContext(Eu);return Rt(i,hr(s)),i}function k0(s){let i=x.useContext(rl);return Rt(i,hr(s)),i}function dr(s){let i=k0(s),c=i.matches[i.matches.length-1];return Rt(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function $0(){return dr("useRouteId")}function W0(){let s=x.useContext(or),i=J0("useRouteError"),c=dr("useRouteError");return s!==void 0?s:i.errors?.[c]}function F0(){let{router:s}=K0("useNavigate"),i=dr("useNavigate"),c=x.useRef(!1);return em(()=>{c.current=!0}),x.useCallback(async(o,d={})=>{Ue(c.current,tm),c.current&&(typeof o=="number"?s.navigate(o):await s.navigate(o,{fromRouteId:i,...d}))},[s,i])}var Ld={};function nm(s,i,c){!i&&!Ld[s]&&(Ld[s]=!0,Ue(!1,c))}x.memo(P0);function P0({routes:s,future:i,state:c,unstable_onError:r}){return lm(s,void 0,c,r,i)}function lr(s){Rt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function I0({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:d=!1}){Rt(!Za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=s.replace(/^\/*/,"/"),S=x.useMemo(()=>({basename:m,navigator:o,static:d,future:{}}),[m,o,d]);typeof c=="string"&&(c=Gn(c));let{pathname:p="/",search:v="",hash:z="",state:R=null,key:w="default"}=c,H=x.useMemo(()=>{let j=cl(p,m);return j==null?null:{location:{pathname:j,search:v,hash:z,state:R,key:w},navigationType:r}},[m,p,v,z,R,w,r]);return Ue(H!=null,`<Router basename="${m}"> is not able to match the URL "${p}${v}${z}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:x.createElement(Xe.Provider,{value:S},x.createElement(Va.Provider,{children:i,value:H}))}function tv({children:s,location:i}){return Y0(nr(s),i)}function nr(s,i=[]){let c=[];return x.Children.forEach(s,(r,o)=>{if(!x.isValidElement(r))return;let d=[...i,o];if(r.type===x.Fragment){c.push.apply(c,nr(r.props.children,d));return}Rt(r.type===lr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Rt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=nr(r.props.children,d)),c.push(m)}),c}var mu="get",yu="application/x-www-form-urlencoded";function xu(s){return s!=null&&typeof s.tagName=="string"}function ev(s){return xu(s)&&s.tagName.toLowerCase()==="button"}function lv(s){return xu(s)&&s.tagName.toLowerCase()==="form"}function nv(s){return xu(s)&&s.tagName.toLowerCase()==="input"}function av(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function iv(s,i){return s.button===0&&(!i||i==="_self")&&!av(s)}var ou=null;function uv(){if(ou===null)try{new FormData(document.createElement("form"),0),ou=!1}catch{ou=!0}return ou}var sv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fc(s){return s!=null&&!sv.has(s)?(Ue(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yu}"`),null):s}function cv(s,i){let c,r,o,d,m;if(lv(s)){let S=s.getAttribute("action");r=S?cl(S,i):null,c=s.getAttribute("method")||mu,o=Fc(s.getAttribute("enctype"))||yu,d=new FormData(s)}else if(ev(s)||nv(s)&&(s.type==="submit"||s.type==="image")){let S=s.form;if(S==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=s.getAttribute("formaction")||S.getAttribute("action");if(r=p?cl(p,i):null,c=s.getAttribute("formmethod")||S.getAttribute("method")||mu,o=Fc(s.getAttribute("formenctype"))||Fc(S.getAttribute("enctype"))||yu,d=new FormData(S,s),!uv()){let{name:v,type:z,value:R}=s;if(z==="image"){let w=v?`${v}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else v&&d.append(v,R)}}else{if(xu(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=mu,r=null,o=yu,m=s}return d&&o==="text/plain"&&(m=d,d=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mr(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function rv(s,i,c){let r=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return r.pathname==="/"?r.pathname=`_root.${c}`:i&&cl(r.pathname,i)==="/"?r.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${c}`,r}async function fv(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ov(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function hv(s,i,c){let r=await Promise.all(s.map(async o=>{let d=i.routes[o.route.id];if(d){let m=await fv(d,c);return m.links?m.links():[]}return[]}));return pv(r.flat(1).filter(ov).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Yd(s,i,c,r,o,d){let m=(p,v)=>c[v]?p.route.id!==c[v].route.id:!0,S=(p,v)=>c[v].pathname!==p.pathname||c[v].route.path?.endsWith("*")&&c[v].params["*"]!==p.params["*"];return d==="assets"?i.filter((p,v)=>m(p,v)||S(p,v)):d==="data"?i.filter((p,v)=>{let z=r.routes[p.route.id];if(!z||!z.hasLoader)return!1;if(m(p,v)||S(p,v))return!0;if(p.route.shouldRevalidate){let R=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof R=="boolean")return R}return!0}):[]}function dv(s,i,{includeHydrateFallback:c}={}){return mv(s.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let d=[o.module];return o.clientActionModule&&(d=d.concat(o.clientActionModule)),o.clientLoaderModule&&(d=d.concat(o.clientLoaderModule)),c&&o.hydrateFallbackModule&&(d=d.concat(o.hydrateFallbackModule)),o.imports&&(d=d.concat(o.imports)),d}).flat(1))}function mv(s){return[...new Set(s)]}function yv(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function pv(s,i){let c=new Set;return new Set(i),s.reduce((r,o)=>{let d=JSON.stringify(yv(o));return c.has(d)||(c.add(d),r.push({key:d,link:o})),r},[])}function am(){let s=x.useContext(Qn);return mr(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function vv(){let s=x.useContext(Eu);return mr(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var yr=x.createContext(void 0);yr.displayName="FrameworkContext";function im(){let s=x.useContext(yr);return mr(s,"You must render this element inside a <HydratedRouter> element"),s}function gv(s,i){let c=x.useContext(yr),[r,o]=x.useState(!1),[d,m]=x.useState(!1),{onFocus:S,onBlur:p,onMouseEnter:v,onMouseLeave:z,onTouchStart:R}=i,w=x.useRef(null);x.useEffect(()=>{if(s==="render"&&m(!0),s==="viewport"){let Z=X=>{X.forEach(Q=>{m(Q.isIntersecting)})},Y=new IntersectionObserver(Z,{threshold:.5});return w.current&&Y.observe(w.current),()=>{Y.disconnect()}}},[s]),x.useEffect(()=>{if(r){let Z=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(Z)}}},[r]);let H=()=>{o(!0)},j=()=>{o(!1),m(!1)};return c?s!=="intent"?[d,w,{}]:[d,w,{onFocus:Ya(S,H),onBlur:Ya(p,j),onMouseEnter:Ya(v,H),onMouseLeave:Ya(z,j),onTouchStart:Ya(R,H)}]:[!1,w,{}]}function Ya(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function bv({page:s,...i}){let{router:c}=am(),r=x.useMemo(()=>Jd(c.routes,s,c.basename),[c.routes,s,c.basename]);return r?x.createElement(Ev,{page:s,matches:r,...i}):null}function Sv(s){let{manifest:i,routeModules:c}=im(),[r,o]=x.useState([]);return x.useEffect(()=>{let d=!1;return hv(s,i,c).then(m=>{d||o(m)}),()=>{d=!0}},[s,i,c]),r}function Ev({page:s,matches:i,...c}){let r=ln(),{manifest:o,routeModules:d}=im(),{basename:m}=am(),{loaderData:S,matches:p}=vv(),v=x.useMemo(()=>Yd(s,i,p,o,r,"data"),[s,i,p,o,r]),z=x.useMemo(()=>Yd(s,i,p,o,r,"assets"),[s,i,p,o,r]),R=x.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let j=new Set,Z=!1;if(i.forEach(X=>{let Q=o.routes[X.route.id];!Q||!Q.hasLoader||(!v.some(k=>k.route.id===X.route.id)&&X.route.id in S&&d[X.route.id]?.shouldRevalidate||Q.hasClientLoader?Z=!0:j.add(X.route.id))}),j.size===0)return[];let Y=rv(s,m,"data");return Z&&j.size>0&&Y.searchParams.set("_routes",i.filter(X=>j.has(X.route.id)).map(X=>X.route.id).join(",")),[Y.pathname+Y.search]},[m,S,r,o,v,i,s,d]),w=x.useMemo(()=>dv(z,o),[z,o]),H=Sv(z);return x.createElement(x.Fragment,null,R.map(j=>x.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...c})),w.map(j=>x.createElement("link",{key:j,rel:"modulepreload",href:j,...c})),H.map(({key:j,link:Z})=>x.createElement("link",{key:j,nonce:c.nonce,...Z})))}function xv(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var um=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{um&&(window.__reactRouterVersion="7.9.6")}catch{}function _v({basename:s,children:i,window:c}){let r=x.useRef();r.current==null&&(r.current=r0({window:c,v5Compat:!0}));let o=r.current,[d,m]=x.useState({action:o.action,location:o.location}),S=x.useCallback(p=>{x.startTransition(()=>m(p))},[m]);return x.useLayoutEffect(()=>o.listen(S),[o,S]),x.createElement(I0,{basename:s,children:i,location:d.location,navigationType:d.action,navigator:o})}var sm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cm=x.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:d,replace:m,state:S,target:p,to:v,preventScrollReset:z,viewTransition:R,...w},H){let{basename:j}=x.useContext(Xe),Z=typeof v=="string"&&sm.test(v),Y,X=!1;if(typeof v=="string"&&Z&&(Y=v,um))try{let Ot=new URL(window.location.href),ie=v.startsWith("//")?new URL(Ot.protocol+v):new URL(v),ue=cl(ie.pathname,j);ie.origin===Ot.origin&&ue!=null?v=ue+ie.search+ie.hash:X=!0}catch{Ue(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Q=H0(v,{relative:o}),[k,dt,Tt]=gv(r,w),qt=Ov(v,{replace:m,state:S,target:p,preventScrollReset:z,relative:o,viewTransition:R});function tt(Ot){i&&i(Ot),Ot.defaultPrevented||qt(Ot)}let Lt=x.createElement("a",{...w,...Tt,href:Y||Q,onClick:X||d?i:tt,ref:xv(H,dt),target:p,"data-discover":!Z&&c==="render"?"true":void 0});return k&&!Z?x.createElement(x.Fragment,null,Lt,x.createElement(bv,{page:Q})):Lt});cm.displayName="Link";var Tv=x.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:d,to:m,viewTransition:S,children:p,...v},z){let R=Ka(m,{relative:v.relative}),w=ln(),H=x.useContext(Eu),{navigator:j,basename:Z}=x.useContext(Xe),Y=H!=null&&Mv(R)&&S===!0,X=j.encodeLocation?j.encodeLocation(R).pathname:R.pathname,Q=w.pathname,k=H&&H.navigation&&H.navigation.location?H.navigation.location.pathname:null;c||(Q=Q.toLowerCase(),k=k?k.toLowerCase():null,X=X.toLowerCase()),k&&Z&&(k=cl(k,Z)||k);const dt=X!=="/"&&X.endsWith("/")?X.length-1:X.length;let Tt=Q===X||!o&&Q.startsWith(X)&&Q.charAt(dt)==="/",qt=k!=null&&(k===X||!o&&k.startsWith(X)&&k.charAt(X.length)==="/"),tt={isActive:Tt,isPending:qt,isTransitioning:Y},Lt=Tt?i:void 0,Ot;typeof r=="function"?Ot=r(tt):Ot=[r,Tt?"active":null,qt?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let ie=typeof d=="function"?d(tt):d;return x.createElement(cm,{...v,"aria-current":Lt,className:Ot,ref:z,style:ie,to:m,viewTransition:S},typeof p=="function"?p(tt):p)});Tv.displayName="NavLink";var Av=x.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:d,method:m=mu,action:S,onSubmit:p,relative:v,preventScrollReset:z,viewTransition:R,...w},H)=>{let j=Cv(),Z=Dv(S,{relative:v}),Y=m.toLowerCase()==="get"?"get":"post",X=typeof S=="string"&&sm.test(S),Q=k=>{if(p&&p(k),k.defaultPrevented)return;k.preventDefault();let dt=k.nativeEvent.submitter,Tt=dt?.getAttribute("formmethod")||m;j(dt||k.currentTarget,{fetcherKey:i,method:Tt,navigate:c,replace:o,state:d,relative:v,preventScrollReset:z,viewTransition:R})};return x.createElement("form",{ref:H,method:Y,action:Z,onSubmit:r?p:Q,...w,"data-discover":!X&&s==="render"?"true":void 0})});Av.displayName="Form";function Rv(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function rm(s){let i=x.useContext(Qn);return Rt(i,Rv(s)),i}function Ov(s,{target:i,replace:c,state:r,preventScrollReset:o,relative:d,viewTransition:m}={}){let S=q0(),p=ln(),v=Ka(s,{relative:d});return x.useCallback(z=>{if(iv(z,i)){z.preventDefault();let R=c!==void 0?c:Qa(p)===Qa(v);S(s,{replace:R,state:r,preventScrollReset:o,relative:d,viewTransition:m})}},[p,S,v,c,r,i,s,o,d,m])}var Nv=0,zv=()=>`__${String(++Nv)}__`;function Cv(){let{router:s}=rm("useSubmit"),{basename:i}=x.useContext(Xe),c=$0();return x.useCallback(async(r,o={})=>{let{action:d,method:m,encType:S,formData:p,body:v}=cv(r,i);if(o.navigate===!1){let z=o.fetcherKey||zv();await s.fetch(z,c,o.action||d,{preventScrollReset:o.preventScrollReset,formData:p,body:v,formMethod:o.method||m,formEncType:o.encType||S,flushSync:o.flushSync})}else await s.navigate(o.action||d,{preventScrollReset:o.preventScrollReset,formData:p,body:v,formMethod:o.method||m,formEncType:o.encType||S,replace:o.replace,state:o.state,fromRouteId:c,flushSync:o.flushSync,viewTransition:o.viewTransition})},[s,i,c])}function Dv(s,{relative:i}={}){let{basename:c}=x.useContext(Xe),r=x.useContext(rl);Rt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),d={...Ka(s||".",{relative:i})},m=ln();if(s==null){d.search=m.search;let S=new URLSearchParams(d.search),p=S.getAll("index");if(p.some(z=>z==="")){S.delete("index"),p.filter(R=>R).forEach(R=>S.append("index",R));let z=S.toString();d.search=z?`?${z}`:""}}return(!s||s===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:sl([c,d.pathname])),Qa(d)}function Mv(s,{relative:i}={}){let c=x.useContext(Id);Rt(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=rm("useViewTransitionState"),o=Ka(s,{relative:i});if(!c.isTransitioning)return!1;let d=cl(c.currentLocation.pathname,r)||c.currentLocation.pathname,m=cl(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Su(o.pathname,m)!=null||Su(o.pathname,d)!=null}const Ye=Object.create(null);Ye.open="0";Ye.close="1";Ye.ping="2";Ye.pong="3";Ye.message="4";Ye.upgrade="5";Ye.noop="6";const pu=Object.create(null);Object.keys(Ye).forEach(s=>{pu[Ye[s]]=s});const ar={type:"error",data:"parser error"},fm=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",om=typeof ArrayBuffer=="function",hm=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,pr=({type:s,data:i},c,r)=>fm&&i instanceof Blob?c?r(i):Xd(i,r):om&&(i instanceof ArrayBuffer||hm(i))?c?r(i):Xd(new Blob([i]),r):r(Ye[s]+(i||"")),Xd=(s,i)=>{const c=new FileReader;return c.onload=function(){const r=c.result.split(",")[1];i("b"+(r||""))},c.readAsDataURL(s)};function Gd(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let Pc;function Uv(s,i){if(fm&&s.data instanceof Blob)return s.data.arrayBuffer().then(Gd).then(i);if(om&&(s.data instanceof ArrayBuffer||hm(s.data)))return i(Gd(s.data));pr(s,!1,c=>{Pc||(Pc=new TextEncoder),i(Pc.encode(c))})}const Qd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ga=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Qd.length;s++)Ga[Qd.charCodeAt(s)]=s;const Bv=s=>{let i=s.length*.75,c=s.length,r,o=0,d,m,S,p;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);const v=new ArrayBuffer(i),z=new Uint8Array(v);for(r=0;r<c;r+=4)d=Ga[s.charCodeAt(r)],m=Ga[s.charCodeAt(r+1)],S=Ga[s.charCodeAt(r+2)],p=Ga[s.charCodeAt(r+3)],z[o++]=d<<2|m>>4,z[o++]=(m&15)<<4|S>>2,z[o++]=(S&3)<<6|p&63;return v},wv=typeof ArrayBuffer=="function",vr=(s,i)=>{if(typeof s!="string")return{type:"message",data:dm(s,i)};const c=s.charAt(0);return c==="b"?{type:"message",data:jv(s.substring(1),i)}:pu[c]?s.length>1?{type:pu[c],data:s.substring(1)}:{type:pu[c]}:ar},jv=(s,i)=>{if(wv){const c=Bv(s);return dm(c,i)}else return{base64:!0,data:s}},dm=(s,i)=>{switch(i){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},mm="",Hv=(s,i)=>{const c=s.length,r=new Array(c);let o=0;s.forEach((d,m)=>{pr(d,!1,S=>{r[m]=S,++o===c&&i(r.join(mm))})})},qv=(s,i)=>{const c=s.split(mm),r=[];for(let o=0;o<c.length;o++){const d=vr(c[o],i);if(r.push(d),d.type==="error")break}return r};function Lv(){return new TransformStream({transform(s,i){Uv(s,c=>{const r=c.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const d=new DataView(o.buffer);d.setUint8(0,126),d.setUint16(1,r)}else{o=new Uint8Array(9);const d=new DataView(o.buffer);d.setUint8(0,127),d.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(o[0]|=128),i.enqueue(o),i.enqueue(c)})}})}let Ic;function hu(s){return s.reduce((i,c)=>i+c.length,0)}function du(s,i){if(s[0].length===i)return s.shift();const c=new Uint8Array(i);let r=0;for(let o=0;o<i;o++)c[o]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),c}function Yv(s,i){Ic||(Ic=new TextDecoder);const c=[];let r=0,o=-1,d=!1;return new TransformStream({transform(m,S){for(c.push(m);;){if(r===0){if(hu(c)<1)break;const p=du(c,1);d=(p[0]&128)===128,o=p[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(hu(c)<2)break;const p=du(c,2);o=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),r=3}else if(r===2){if(hu(c)<8)break;const p=du(c,8),v=new DataView(p.buffer,p.byteOffset,p.length),z=v.getUint32(0);if(z>Math.pow(2,21)-1){S.enqueue(ar);break}o=z*Math.pow(2,32)+v.getUint32(4),r=3}else{if(hu(c)<o)break;const p=du(c,o);S.enqueue(vr(d?p:Ic.decode(p),i)),r=0}if(o===0||o>s){S.enqueue(ar);break}}}})}const ym=4;function Ht(s){if(s)return Xv(s)}function Xv(s){for(var i in Ht.prototype)s[i]=Ht.prototype[i];return s}Ht.prototype.on=Ht.prototype.addEventListener=function(s,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(i),this};Ht.prototype.once=function(s,i){function c(){this.off(s,c),i.apply(this,arguments)}return c.fn=i,this.on(s,c),this};Ht.prototype.off=Ht.prototype.removeListener=Ht.prototype.removeAllListeners=Ht.prototype.removeEventListener=function(s,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+s];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,o=0;o<c.length;o++)if(r=c[o],r===i||r.fn===i){c.splice(o,1);break}return c.length===0&&delete this._callbacks["$"+s],this};Ht.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+s],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(c){c=c.slice(0);for(var r=0,o=c.length;r<o;++r)c[r].apply(this,i)}return this};Ht.prototype.emitReserved=Ht.prototype.emit;Ht.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};Ht.prototype.hasListeners=function(s){return!!this.listeners(s).length};const _u=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),Oe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Gv="arraybuffer";function pm(s,...i){return i.reduce((c,r)=>(s.hasOwnProperty(r)&&(c[r]=s[r]),c),{})}const Qv=Oe.setTimeout,Vv=Oe.clearTimeout;function Tu(s,i){i.useNativeTimers?(s.setTimeoutFn=Qv.bind(Oe),s.clearTimeoutFn=Vv.bind(Oe)):(s.setTimeoutFn=Oe.setTimeout.bind(Oe),s.clearTimeoutFn=Oe.clearTimeout.bind(Oe))}const Zv=1.33;function Kv(s){return typeof s=="string"?Jv(s):Math.ceil((s.byteLength||s.size)*Zv)}function Jv(s){let i=0,c=0;for(let r=0,o=s.length;r<o;r++)i=s.charCodeAt(r),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(r++,c+=4);return c}function vm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function kv(s){let i="";for(let c in s)s.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(s[c]));return i}function $v(s){let i={},c=s.split("&");for(let r=0,o=c.length;r<o;r++){let d=c[r].split("=");i[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return i}class Wv extends Error{constructor(i,c,r){super(i),this.description=c,this.context=r,this.type="TransportError"}}class gr extends Ht{constructor(i){super(),this.writable=!1,Tu(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,r){return super.emitReserved("error",new Wv(i,c,r)),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 c=vr(i,this.socket.binaryType);this.onPacket(c)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,c={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_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 c=kv(i);return c.length?"?"+c:""}}class Fv extends gr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const c=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||c()})),this.writable||(r++,this.once("drain",function(){--r||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};qv(i,this.socket.binaryType).forEach(c),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,Hv(i,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=vm()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let gm=!1;try{gm=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Pv=gm;function Iv(){}class tg extends Fv{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let r=location.port;r||(r=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||r!==i.port}}doWrite(i,c){const r=this.request({method:"POST",data:i});r.on("success",c),r.on("error",(o,d)=>{this.onError("xhr post error",o,d)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,r)=>{this.onError("xhr poll error",c,r)}),this.pollXhr=i}}class Le extends Ht{constructor(i,c,r){super(),this.createRequest=i,Tu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=c,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var i;const c=pm(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(c);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Le.requestsCount++,Le.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=Iv,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Le.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()}}Le.requestsCount=0;Le.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Vd);else if(typeof addEventListener=="function"){const s="onpagehide"in Oe?"pagehide":"unload";addEventListener(s,Vd,!1)}}function Vd(){for(let s in Le.requests)Le.requests.hasOwnProperty(s)&&Le.requests[s].abort()}const eg=(function(){const s=bm({xdomain:!1});return s&&s.responseType!==null})();class lg extends tg{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=eg&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Le(bm,this.uri(),i)}}function bm(s){const i=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Pv))return new XMLHttpRequest}catch{}if(!i)try{return new Oe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Sm=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ng extends gr{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,r=Sm?{}:pm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,r)}catch(o){return this.emitReserved("error",o)}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 c=0;c<i.length;c++){const r=i[c],o=c===i.length-1;pr(r,this.supportsBinary,d=>{try{this.doWrite(r,d)}catch{}o&&_u(()=>{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",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=vm()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const tr=Oe.WebSocket||Oe.MozWebSocket;class ag extends ng{createSocket(i,c,r){return Sm?new tr(i,c,r):c?new tr(i,c):new tr(i)}doWrite(i,c){this.ws.send(c)}}class ig extends gr{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 c=Yv(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=i.readable.pipeThrough(c).getReader(),o=Lv();o.readable.pipeTo(i.writable),this._writer=o.writable.getWriter();const d=()=>{r.read().then(({done:S,value:p})=>{S||(this.onPacket(p),d())}).catch(S=>{})};d();const m={type:"open"};this.query.sid&&(m.data=`{"sid":"${this.query.sid}"}`),this._writer.write(m).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const r=i[c],o=c===i.length-1;this._writer.write(r).then(()=>{o&&_u(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const ug={websocket:ag,webtransport:ig,polling:lg},sg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,cg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ir(s){if(s.length>8e3)throw"URI too long";const i=s,c=s.indexOf("["),r=s.indexOf("]");c!=-1&&r!=-1&&(s=s.substring(0,c)+s.substring(c,r).replace(/:/g,";")+s.substring(r,s.length));let o=sg.exec(s||""),d={},m=14;for(;m--;)d[cg[m]]=o[m]||"";return c!=-1&&r!=-1&&(d.source=i,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d.pathNames=rg(d,d.path),d.queryKey=fg(d,d.query),d}function rg(s,i){const c=/\/{2,9}/g,r=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&r.splice(0,1),i.slice(-1)=="/"&&r.splice(r.length-1,1),r}function fg(s,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,d){o&&(c[o]=d)}),c}const ur=typeof addEventListener=="function"&&typeof removeEventListener=="function",vu=[];ur&&addEventListener("offline",()=>{vu.forEach(s=>s())},!1);class wl extends Ht{constructor(i,c){if(super(),this.binaryType=Gv,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(c=i,i=null),i){const r=ir(i);c.hostname=r.host,c.secure=r.protocol==="https"||r.protocol==="wss",c.port=r.port,r.query&&(c.query=r.query)}else c.host&&(c.hostname=ir(c.host).host);Tu(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=$v(this.opts.query)),ur&&(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"})},vu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=ym,c.transport=i,this.id&&(c.sid=this.id);const r=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&wl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(i);c.open(),this.setTransport(c)}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",c=>this._onClose("transport close",c))}onOpen(){this.readyState="open",wl.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 c=new Error("server error");c.code=i.data,this._onError(c);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 c=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(c+=Kv(o)),r>0&&c>this._maxPayload)return this.writeBuffer.slice(0,r);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,_u(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,r){return this._sendPacket("message",i,c,r),this}send(i,c,r){return this._sendPacket("message",i,c,r),this}_sendPacket(i,c,r,o){if(typeof c=="function"&&(o=c,c=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const d={type:i,data:c,options:r};this.emitReserved("packetCreate",d),this.writeBuffer.push(d),o&&this.once("flush",o),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},r=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():i()}):this.upgrading?r():i()),this}_onError(i){if(wl.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,c){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(),ur&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=vu.indexOf(this._offlineEventListener);r!==-1&&vu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}wl.protocol=ym;class og extends wl{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 c=this.createTransport(i),r=!1;wl.priorWebsocketSuccess=!1;const o=()=>{r||(c.send([{type:"ping",data:"probe"}]),c.once("packet",R=>{if(!r)if(R.type==="pong"&&R.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;wl.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(z(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const w=new Error("probe error");w.transport=c.name,this.emitReserved("upgradeError",w)}}))};function d(){r||(r=!0,z(),c.close(),c=null)}const m=R=>{const w=new Error("probe error: "+R);w.transport=c.name,d(),this.emitReserved("upgradeError",w)};function S(){m("transport closed")}function p(){m("socket closed")}function v(R){c&&R.name!==c.name&&d()}const z=()=>{c.removeListener("open",o),c.removeListener("error",m),c.removeListener("close",S),this.off("close",p),this.off("upgrading",v)};c.once("open",o),c.once("error",m),c.once("close",S),this.once("close",p),this.once("upgrading",v),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{r||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let r=0;r<i.length;r++)~this.transports.indexOf(i[r])&&c.push(i[r]);return c}}let hg=class extends og{constructor(i,c={}){const r=typeof i=="object"?i:c;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>ug[o]).filter(o=>!!o)),super(i,r)}};function dg(s,i="",c){let r=s;c=c||typeof location<"u"&&location,s==null&&(s=c.protocol+"//"+c.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=c.protocol+s:s=c.host+s),/^(https?|wss?):\/\//.test(s)||(typeof c<"u"?s=c.protocol+"//"+s:s="https://"+s),r=ir(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const d=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+d+":"+r.port+i,r.href=r.protocol+"://"+d+(c&&c.port===r.port?"":":"+r.port),r}const mg=typeof ArrayBuffer=="function",yg=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Em=Object.prototype.toString,pg=typeof Blob=="function"||typeof Blob<"u"&&Em.call(Blob)==="[object BlobConstructor]",vg=typeof File=="function"||typeof File<"u"&&Em.call(File)==="[object FileConstructor]";function br(s){return mg&&(s instanceof ArrayBuffer||yg(s))||pg&&s instanceof Blob||vg&&s instanceof File}function gu(s,i){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let c=0,r=s.length;c<r;c++)if(gu(s[c]))return!0;return!1}if(br(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return gu(s.toJSON(),!0);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&gu(s[c]))return!0;return!1}function gg(s){const i=[],c=s.data,r=s;return r.data=sr(c,i),r.attachments=i.length,{packet:r,buffers:i}}function sr(s,i){if(!s)return s;if(br(s)){const c={_placeholder:!0,num:i.length};return i.push(s),c}else if(Array.isArray(s)){const c=new Array(s.length);for(let r=0;r<s.length;r++)c[r]=sr(s[r],i);return c}else if(typeof s=="object"&&!(s instanceof Date)){const c={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(c[r]=sr(s[r],i));return c}return s}function bg(s,i){return s.data=cr(s.data,i),delete s.attachments,s}function cr(s,i){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<i.length)return i[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let c=0;c<s.length;c++)s[c]=cr(s[c],i);else if(typeof s=="object")for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&(s[c]=cr(s[c],i));return s}const Sg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Eg=5;var ct;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(ct||(ct={}));class xg{constructor(i){this.replacer=i}encode(i){return(i.type===ct.EVENT||i.type===ct.ACK)&&gu(i)?this.encodeAsBinary({type:i.type===ct.EVENT?ct.BINARY_EVENT:ct.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===ct.BINARY_EVENT||i.type===ct.BINARY_ACK)&&(c+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(c+=i.nsp+","),i.id!=null&&(c+=i.id),i.data!=null&&(c+=JSON.stringify(i.data,this.replacer)),c}encodeAsBinary(i){const c=gg(i),r=this.encodeAsString(c.packet),o=c.buffers;return o.unshift(r),o}}function Zd(s){return Object.prototype.toString.call(s)==="[object Object]"}class Sr extends Ht{constructor(i){super(),this.reviver=i}add(i){let c;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(i);const r=c.type===ct.BINARY_EVENT;r||c.type===ct.BINARY_ACK?(c.type=r?ct.EVENT:ct.ACK,this.reconstructor=new _g(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(br(i)||i.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(i),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let c=0;const r={type:Number(i.charAt(0))};if(ct[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ct.BINARY_EVENT||r.type===ct.BINARY_ACK){const d=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const m=i.substring(d,c);if(m!=Number(m)||i.charAt(c)!=="-")throw new Error("Illegal attachments");r.attachments=Number(m)}if(i.charAt(c+1)==="/"){const d=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););r.nsp=i.substring(d,c)}else r.nsp="/";const o=i.charAt(c+1);if(o!==""&&Number(o)==o){const d=c+1;for(;++c;){const m=i.charAt(c);if(m==null||Number(m)!=m){--c;break}if(c===i.length)break}r.id=Number(i.substring(d,c+1))}if(i.charAt(++c)){const d=this.tryParse(i.substr(c));if(Sr.isPayloadValid(r.type,d))r.data=d;else throw new Error("invalid payload")}return r}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case ct.CONNECT:return Zd(c);case ct.DISCONNECT:return c===void 0;case ct.CONNECT_ERROR:return typeof c=="string"||Zd(c);case ct.EVENT:case ct.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&Sg.indexOf(c[0])===-1);case ct.ACK:case ct.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class _g{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const c=bg(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Tg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Sr,Encoder:xg,get PacketType(){return ct},protocol:Eg},Symbol.toStringTag,{value:"Module"}));function Me(s,i,c){return s.on(i,c),function(){s.off(i,c)}}const Ag=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class xm extends Ht{constructor(i,c,r){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=c,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Me(i,"open",this.onopen.bind(this)),Me(i,"packet",this.onpacket.bind(this)),Me(i,"error",this.onerror.bind(this)),Me(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,...c){var r,o,d;if(Ag.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(c.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const m={type:ct.EVENT,data:c};if(m.options={},m.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const z=this.ids++,R=c.pop();this._registerAckCallback(z,R),m.id=z}const S=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,p=this.connected&&!(!((d=this.io.engine)===null||d===void 0)&&d._hasPingExpired());return this.flags.volatile&&!S||(p?(this.notifyOutgoingListeners(m),this.packet(m)):this.sendBuffer.push(m)),this.flags={},this}_registerAckCallback(i,c){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[i]=c;return}const d=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let S=0;S<this.sendBuffer.length;S++)this.sendBuffer[S].id===i&&this.sendBuffer.splice(S,1);c.call(this,new Error("operation has timed out"))},o),m=(...S)=>{this.io.clearTimeoutFn(d),c.apply(this,S)};m.withError=!0,this.acks[i]=m}emitWithAck(i,...c){return new Promise((r,o)=>{const d=(m,S)=>m?o(m):r(S);d.withError=!0,c.push(d),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((o,...d)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(o)):(this._queue.shift(),c&&c(null,...d)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!i||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.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:ct.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,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(r=>String(r.id)===i)){const r=this.acks[i];delete this.acks[i],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case ct.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 ct.EVENT:case ct.BINARY_EVENT:this.onevent(i);break;case ct.ACK:case ct.BINARY_ACK:this.onack(i);break;case ct.DISCONNECT:this.ondisconnect();break;case ct.CONNECT_ERROR:this.destroy();const r=new Error(i.data.message);r.data=i.data.data,this.emitReserved("connect_error",r);break}}onevent(i){const c=i.data||[];i.id!=null&&c.push(this.ack(i.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const r of c)r.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 c=this;let r=!1;return function(...o){r||(r=!0,c.packet({type:ct.ACK,id:i,data:o}))}}onack(i){const c=this.acks[i.id];typeof c=="function"&&(delete this.acks[i.id],c.withError&&i.data.unshift(null),c.apply(this,i.data))}onconnect(i,c){this.id=i,this.recovered=c&&this._pid===c,this._pid=c,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:ct.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 c=this._anyListeners;for(let r=0;r<c.length;r++)if(i===c[r])return c.splice(r,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 c=this._anyOutgoingListeners;for(let r=0;r<c.length;r++)if(i===c[r])return c.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const r of c)r.apply(this,i.data)}}}function Vn(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}Vn.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*s);s=(Math.floor(i*10)&1)==0?s-c:s+c}return Math.min(s,this.max)|0};Vn.prototype.reset=function(){this.attempts=0};Vn.prototype.setMin=function(s){this.ms=s};Vn.prototype.setMax=function(s){this.max=s};Vn.prototype.setJitter=function(s){this.jitter=s};class rr extends Ht{constructor(i,c){var r;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(c=i,i=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,Tu(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((r=c.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Vn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const o=c.parser||Tg;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=c.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 c;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(c=this.backoff)===null||c===void 0||c.setMin(i),this)}randomizationFactor(i){var c;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(c=this.backoff)===null||c===void 0||c.setJitter(i),this)}reconnectionDelayMax(i){var c;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(c=this.backoff)===null||c===void 0||c.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 hg(this.uri,this.opts);const c=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Me(c,"open",function(){r.onopen(),i&&i()}),d=S=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",S),i?i(S):this.maybeReconnectOnOpen()},m=Me(c,"error",d);if(this._timeout!==!1){const S=this._timeout,p=this.setTimeoutFn(()=>{o(),d(new Error("timeout")),c.close()},S);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(o),this.subs.push(m),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Me(i,"ping",this.onping.bind(this)),Me(i,"data",this.ondata.bind(this)),Me(i,"error",this.onerror.bind(this)),Me(i,"close",this.onclose.bind(this)),Me(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(c){this.onclose("parse error",c)}}ondecoded(i){_u(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let r=this.nsps[i];return r?this._autoConnect&&!r.active&&r.connect():(r=new xm(this,i,c),this.nsps[i]=r),r}_destroy(i){const c=Object.keys(this.nsps);for(const r of c)if(this.nsps[r].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let r=0;r<c.length;r++)this.engine.write(c[r],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,c){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,c),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 c=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(o=>{o?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",o)):i.onreconnect()}))},c);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Xa={};function bu(s,i){typeof s=="object"&&(i=s,s=void 0),i=i||{};const c=dg(s,i.path||"/socket.io"),r=c.source,o=c.id,d=c.path,m=Xa[o]&&d in Xa[o].nsps,S=i.forceNew||i["force new connection"]||i.multiplex===!1||m;let p;return S?p=new rr(r,i):(Xa[o]||(Xa[o]=new rr(r,i)),p=Xa[o]),c.query&&!i.query&&(i.query=c.queryKey),p.socket(c.path,i)}Object.assign(bu,{Manager:rr,Socket:xm,io:bu,connect:bu});const _m=window.location.origin;console.info("[socket] connecting to",_m);const Er=bu(_m,{transports:["polling","websocket"],timeout:15e3});Er.on("connect_error",s=>console.error("connect_error",s.code,s.message,s.data));const Tm=x.createContext(Er),Rg=({children:s})=>A.jsx(Tm.Provider,{value:Er,children:s}),Au=()=>x.useContext(Tm),Am=x.createContext({connected:!1,session:null,logs:[],login:async()=>{},setRole:async()=>{},requestControl:async()=>{},releaseControl:async()=>{},subscribeAll:async()=>{}});function Og(s){return x.useCallback((i,c={})=>new Promise((r,o)=>{s.emit(i,c,(d={})=>{d.error?o(new Error(d.error)):r(d)})}),[s])}function Ng({children:s}){const i=Au(),c=Og(i),[r,o]=x.useState(null),[d,m]=x.useState([]),[S,p]=x.useState(i.connected);x.useEffect(()=>{const R=()=>p(!0),w=()=>p(!1);return i.on("connect",R),i.on("disconnect",w),()=>{i.off("connect",R),i.off("disconnect",w)}},[i]),x.useEffect(()=>{function R(j){o(j)}function w(j=[]){m(j)}function H(j){m(Z=>[...Z.slice(-199),j])}return i.on("session:sync",R),i.on("log:init",w),i.on("log:entry",H),()=>{i.off("session:sync",R),i.off("log:init",w),i.off("log:entry",H)}},[i]);const v=x.useMemo(()=>({login:(R,w)=>c("auth:login",{username:R,password:w}),setRole:R=>c("session:setRole",{role:R}),requestControl:(R,w={})=>c("session:requestControl",{roverId:R,...w}),releaseControl:R=>c("session:releaseControl",{roverId:R}),subscribeAll:()=>c("session:subscribeAll")}),[c]),z=x.useMemo(()=>({connected:S,session:r,logs:d,...v}),[v,S,d,r]);return A.jsx(Am.Provider,{value:z,children:s})}function Be(){return x.useContext(Am)}const Rm=x.createContext({frames:{}});function zg({children:s}){const i=Au(),[c,r]=x.useState({});x.useEffect(()=>{function d({roverId:m,sensors:S={},frame:p={}}){m&&r(v=>({...v,[m]:{roverId:m,sensors:S,raw:p?.data||null,receivedAt:Date.now()}}))}return i.on("sensorFrame",d),()=>{i.off("sensorFrame",d)}},[i]);const o=x.useMemo(()=>({frames:c}),[c]);return A.jsx(Rm.Provider,{value:o,children:s})}function Om(){return x.useContext(Rm).frames}function Cg(s){const i=Om();return s?i[s]??null:null}function Dg(s={}){return Object.entries(s).map(([i,c])=>({key:i,value:typeof c=="object"?JSON.stringify(c):c}))}function Mg(){const{session:s}=Be(),i=s?.assignment?.roverId,c=Cg(i),r=x.useMemo(()=>Dg(c?.sensors),[c?.sensors]);return A.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsxs("header",{className:"flex flex-wrap items-center justify-between gap-3",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Telemetry"}),A.jsx("h2",{className:"text-2xl font-semibold text-white",children:i?`Rover ${i}`:"No rover assigned"})]}),A.jsx("p",{className:"text-sm text-slate-400",children:c?.receivedAt?`Updated ${new Date(c.receivedAt).toLocaleTimeString()}`:"Waiting…"})]}),r.length===0?A.jsx("p",{className:"mt-4 text-sm text-slate-400",children:i?"No sensor frames yet.":"Assignment required to view sensors."}):A.jsx("dl",{className:"mt-4 grid gap-3 text-sm text-slate-100",children:r.map(({key:o,value:d})=>A.jsxs("div",{className:"flex justify-between gap-6",children:[A.jsx("dt",{className:"text-slate-500",children:o}),A.jsx("dd",{className:"text-right font-semibold text-white",children:d})]},o))}),c?.raw&&A.jsxs("div",{className:"mt-6",children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Raw frame"}),A.jsx("pre",{className:"mt-2 max-h-32 overflow-y-auto rounded-xl bg-slate-950/60 p-3 text-xs text-lime-300",children:c.raw})]})]})}function Ug(s){if(!s)return{};const i=`${s}:${s}`;return{Authorization:`Basic ${typeof btoa=="function"?btoa(i):Buffer.from(i).toString("base64")}`}}class Bg{constructor({url:i,token:c,video:r,onStatus:o}){this.url=i,this.token=c,this.video=r,this.pc=null,this.abortController=null,this.onStatus=o}notify(i,c){typeof this.onStatus=="function"&&this.onStatus(i,c)}async start(){if(!this.url||!this.video)throw new Error("Video target missing");this.stop(),this.notify("connecting"),this.abortController=new AbortController;const i=new RTCPeerConnection;this.pc=i;const c=new MediaStream;i.ontrack=r=>{r.streams[0]?.getTracks().forEach(o=>c.addTrack(o)),this.video.srcObject=c},i.addTransceiver("video",{direction:"recvonly"}),i.addTransceiver("audio",{direction:"recvonly"}),i.onconnectionstatechange=()=>{const r=i.connectionState;this.notify(r)},i.oniceconnectionstatechange=()=>{const r=i.iceConnectionState;(r==="failed"||r==="disconnected")&&this.notify(r)};try{const r=await i.createOffer();await i.setLocalDescription(r);const o=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/sdp",...Ug(this.token)},body:r.sdp,signal:this.abortController.signal});if(!o.ok)throw new Error(`WHEP request failed: ${o.status}`);const d=await o.text();await i.setRemoteDescription({type:"answer",sdp:d}),this.notify("playing")}catch(r){throw this.notify("error",r.message),this.stop(),r}}stop(){this.abortController&&(this.abortController.abort(),this.abortController=null),this.pc&&(this.pc.getSenders().forEach(i=>i.track?.stop()),this.pc.getReceivers().forEach(i=>i.track?.stop()),this.pc.close(),this.pc=null),this.video&&(this.video.srcObject=null),this.notify("stopped")}}const wg=2e3,jg=3e3;function Nm({sessionInfo:s,label:i,forceMute:c=!1}){const r=x.useRef(null),o=x.useRef(null),d=x.useRef(null),[m,S]=x.useState("idle"),[p,v]=x.useState(null),[z,R]=x.useState(0),[w,H]=x.useState(!0),j=x.useCallback(()=>{clearTimeout(o.current),o.current=setTimeout(()=>R(Date.now()),wg)},[]),Z=x.useCallback((X=0)=>{c||(clearTimeout(d.current),d.current=setTimeout(async()=>{const Q=r.current;if(Q)try{Q.muted=!1,await Q.play(),H(!1)}catch{Q.muted=!0,H(!0),Z(jg)}},X))},[c]);x.useEffect(()=>()=>{clearTimeout(o.current),clearTimeout(d.current)},[]),x.useEffect(()=>{m==="playing"&&Z(0)},[m,Z]),x.useEffect(()=>{if(!s?.url||!r.current){S("waiting"),v(null);return}let X=!0,Q;H(!0);const k=(dt,Tt)=>{X&&(S(dt),v(Tt||null),["error","failed","disconnected","closed"].includes(dt)&&j())};return Q=new Bg({url:s.url,token:s.token,video:r.current,onStatus:k}),Q.start().catch(dt=>{X&&(S("error"),v(dt.message),j())}),()=>{X=!1,Q?.stop()}},[s?.url,s?.token,z,j]),x.useEffect(()=>{m==="stopped"&&s?.url&&j()},[m,s?.url,j]);const Y=m==="error"?`Error: ${p||"unknown"}`:p?`${m} (${p})`:m;return A.jsxs("div",{className:"space-y-2",children:[A.jsx("div",{className:"aspect-video w-full overflow-hidden rounded-2xl border border-slate-800 bg-black",children:A.jsx("video",{ref:r,muted:c||w,playsInline:!0,autoPlay:!0,controls:!1,className:"h-full w-full object-contain"})}),A.jsxs("div",{className:"text-xs text-slate-400",children:[A.jsx("span",{className:"font-semibold text-slate-200",children:i})," ",A.jsx("span",{children:Y})]})]})}function Kd(s,i,c){return Math.max(i,Math.min(c,s))}function Hg(s){const i=s.has("w"),c=s.has("s"),r=s.has("a"),o=s.has("d"),m=s.has("shift")?300:150;let S=0,p=0;return i&&!c?(S+=m,p+=m):c&&!i&&(S-=m,p-=m),r&&!o?(S-=m,p+=m):o&&!r&&(S+=m,p-=m),!i&&!c&&(r||o)&&(S=r?-m:m,p=r?m:-m),{left:Kd(S,-500,500),right:Kd(p,-500,500)}}function qg(s){const i=s.target;if(!i)return!1;const c=i.tagName;return c==="INPUT"||c==="TEXTAREA"||i.isContentEditable||c==="SELECT"&&["w","a","s","d","Shift"].includes(s.key)}function Lg(){const s=Au(),{session:i}=Be(),c=i?.assignment?.roverId,r=x.useRef(new Set),o=x.useRef({left:0,right:0}),[d,m]=x.useState(o.current),[S,p]=x.useState(!1),v=x.useCallback((H,j)=>{c&&s.emit("command",{roverId:c,...H},j)},[s,c]),z=x.useCallback(()=>{if(!c)return;const H=Hg(r.current),j=o.current;H.left===j.left&&H.right===j.right||(o.current=H,m(H),v({type:"drive",data:{driveDirect:H}}))},[v,c]),R=x.useCallback(()=>{c&&(r.current.clear(),o.current={left:0,right:0},m(o.current),v({type:"motors",data:{motorPwm:{main:0,side:0,vacuum:0}}}))},[v,c]),w=x.useCallback(()=>{c&&p(H=>{const j=!H;return v({type:"sensorStream",data:{sensorStream:{enable:j}}}),j})},[v,c]);return x.useEffect(()=>{if(!c){r.current.clear(),o.current={left:0,right:0},m(o.current),p(!1);return}function H(Z){if(qg(Z))return;const Y=Z.key.toLowerCase();["w","a","s","d","shift"].includes(Y)&&(r.current.has(Y)||(r.current.add(Y),z()))}function j(Z){const Y=Z.key.toLowerCase();r.current.has(Y)&&(r.current.delete(Y),z())}return window.addEventListener("keydown",H),window.addEventListener("keyup",j),()=>{window.removeEventListener("keydown",H),window.removeEventListener("keyup",j)}},[c,z]),{roverId:c,speeds:d,sensorEnabled:S,toggleSensorStream:w,stopMotors:R}}function Yg({left:s,right:i}){return A.jsxs("div",{className:"grid grid-cols-2 gap-4 rounded-2xl border border-slate-800/60 bg-slate-950/40 p-4 text-sm",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Left"}),A.jsx("p",{className:"text-2xl font-semibold text-white",children:s})]}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Right"}),A.jsx("p",{className:"text-2xl font-semibold text-white",children:i})]})]})}function Xg(){const{roverId:s,speeds:i,sensorEnabled:c,toggleSensorStream:r,stopMotors:o}=Lg();return A.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsxs("header",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Drive Controls"}),A.jsx("h2",{className:"text-2xl font-semibold text-white",children:s?`Driving rover ${s}`:"No rover assigned"})]}),A.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs text-slate-400",children:[A.jsx("span",{children:"W/A/S/D: move"}),A.jsx("span",{children:"Shift: boost"}),A.jsx("span",{children:"Space: browser handles scroll"})]})]}),A.jsx(Yg,{left:i.left,right:i.right}),A.jsxs("div",{className:"mt-4 flex flex-wrap gap-3",children:[A.jsx("button",{type:"button",onClick:o,className:"rounded-lg bg-red-600 px-4 py-2 text-sm font-semibold text-white disabled:opacity-50",disabled:!s,children:"Stop Motors"}),A.jsx("button",{type:"button",onClick:r,className:"rounded-lg border border-slate-700 px-4 py-2 text-sm font-semibold text-slate-200 disabled:opacity-50",disabled:!s,children:c?"Disable Sensor Stream":"Enable Sensor Stream"})]}),A.jsx("p",{className:"mt-4 text-xs text-slate-500",children:"Keep this tab focused to drive. Keyboard input is ignored while typing in form fields."})]})}function zm(s=[]){const i=Au(),[c,r]=x.useState({});return x.useEffect(()=>{const o=Array.from(new Set(s.filter(Boolean)));if(!o.length){r({});return}let d=!1;return r(m=>{const S={};return o.forEach(p=>{m[p]&&(S[p]=m[p])}),S}),o.forEach(m=>{i.emit("video:request",{roverId:m},(S={})=>{d||r(p=>({...p,[m]:S}))})}),()=>{d=!0}},[i,s.join("|")]),c}function Gg({connected:s,role:i,mode:c}){const r=s?"bg-emerald-500/20 text-emerald-300":"bg-red-500/20 text-red-200";return A.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[A.jsx("span",{className:`rounded-full px-3 py-1 font-medium ${r}`,children:s?"Connected":"Disconnected"}),A.jsxs("span",{className:"rounded-full bg-slate-800/80 px-3 py-1 text-slate-200",children:["Role: ",i||"unknown"]}),A.jsxs("span",{className:"rounded-full bg-slate-800/80 px-3 py-1 text-slate-200",children:["Mode: ",c||"--"]})]})}function Qg(){const{logs:s}=Be();return A.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/70 p-4",children:[A.jsxs("header",{className:"mb-3 flex items-center justify-between",children:[A.jsx("h2",{className:"text-lg font-semibold text-white",children:"Server logs"}),A.jsxs("span",{className:"text-xs uppercase tracking-[0.2em] text-slate-500",children:[s.length," entries"]})]}),A.jsx("div",{className:"h-64 overflow-y-auto rounded-xl bg-slate-950/40 p-3 text-xs font-mono text-slate-300",children:s.length===0?A.jsx("p",{children:"No logs yet."}):s.slice().reverse().map(i=>A.jsxs("div",{className:"mb-2",children:[A.jsx("span",{className:"text-slate-500",children:i.timestamp})," ",A.jsxs("span",{className:"text-cyan-300",children:["[",i.level,"]"]})," ",i.label&&A.jsxs("span",{className:"text-pink-300",children:["[",i.label,"]"]})," ",A.jsx("span",{children:i.message})]},i.id))})]})}function Vg(){const{session:s,requestControl:i}=Be(),c=s?.roster??[],r=s?.role==="admin"||s?.role==="lockdown",[o,d]=x.useState({});async function m(S){d(p=>({...p,[S]:!0}));try{await i(S)}catch(p){alert(p.message)}finally{d(p=>({...p,[S]:!1}))}}return A.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsx("h2",{className:"text-lg font-semibold text-white",children:"Rovers"}),A.jsxs("div",{className:"mt-4 space-y-3",children:[c.length===0&&A.jsx("p",{className:"text-slate-400",children:"No rovers registered."}),c.map(S=>A.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-xl bg-slate-950/40 px-4 py-3",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-white",children:S.name}),A.jsxs("p",{className:"text-xs text-slate-400",children:["Locked: ",S.locked?"yes":"no"]})]}),r?A.jsx("button",{type:"button",onClick:()=>m(S.id),disabled:o[S.id],className:"rounded-full bg-blue-600 px-4 py-1 text-sm font-semibold text-white disabled:opacity-50",children:o[S.id]?"Requesting…":"Request control"}):A.jsx("span",{className:"text-xs text-slate-500",children:"Auto-assigned"})]},S.id))]})]})}function Zg(){const{session:s,releaseControl:i}=Be(),c=s?.assignment,r=c?.roverId,[o,d]=x.useState(!1);async function m(){if(r){d(!0);try{await i(r)}catch(S){alert(S.message)}finally{d(!1)}}}return A.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsx("h2",{className:"text-lg font-semibold text-white",children:"Assignment"}),r?A.jsxs("div",{className:"mt-4 space-y-3",children:[A.jsxs("p",{className:"text-slate-300",children:["Currently driving rover ",r]}),A.jsx("button",{type:"button",onClick:m,disabled:o,className:"rounded-full bg-red-600 px-4 py-1 text-sm font-semibold text-white disabled:opacity-50",children:o?"Releasing…":"Release control"})]}):A.jsxs("div",{className:"mt-4 text-slate-400",children:[A.jsxs("p",{children:["Status: ",c?.status??"not assigned"]}),c?.queuePosition&&A.jsxs("p",{children:["Queue position: ",c.queuePosition]})]})]})}function Kg(){const{session:s}=Be(),i=x.useMemo(()=>JSON.stringify(s??{},null,2),[s]);return A.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsx("h2",{className:"text-lg font-semibold text-white",children:"Session snapshot"}),A.jsx("pre",{className:"mt-4 max-h-64 overflow-y-auto text-sm text-teal-200",children:i})]})}function Jg(){const{session:s}=Be(),i=s?.assignment?.roverId,c=zm(i?[i]:[]),r=i?c[i]:null;return A.jsxs("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsx("header",{className:"mb-4 flex items-center justify-between",children:A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Video Feed"}),A.jsx("h2",{className:"text-2xl font-semibold text-white",children:i?`Rover ${i}`:"No rover assigned"})]})}),i?A.jsx(Nm,{sessionInfo:r,label:i,muted:!1}):A.jsx("p",{className:"text-sm text-slate-400",children:"Assignment required to initialize video."})]})}function kg(){const{login:s,setRole:i}=Be(),[c,r]=x.useState(""),[o,d]=x.useState(""),[m,S]=x.useState(!1);async function p(v){v.preventDefault(),S(!0);try{await s(c,o),r(""),d("")}catch(z){alert(z.message)}finally{S(!1)}}return A.jsxs("div",{className:"rounded-2xl border border-slate-800 bg-slate-900/60 p-4",children:[A.jsx("h2",{className:"text-lg font-semibold text-white",children:"Authentication"}),A.jsxs("form",{className:"mt-4 flex flex-col gap-3",onSubmit:p,children:[A.jsx("input",{className:"rounded-lg border border-slate-800 bg-slate-950/60 px-3 py-2 text-white",placeholder:"Username",value:c,onChange:v=>r(v.target.value)}),A.jsx("input",{className:"rounded-lg border border-slate-800 bg-slate-950/60 px-3 py-2 text-white",placeholder:"Password",type:"password",value:o,onChange:v=>d(v.target.value)}),A.jsx("button",{type:"submit",disabled:m,className:"rounded-lg bg-emerald-600 py-2 font-semibold text-white disabled:opacity-50",children:m?"Logging in…":"Login as admin"})]}),A.jsxs("div",{className:"mt-4 flex gap-3",children:[A.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"}),A.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 $g(){const{connected:s,session:i}=Be();return A.jsx("div",{className:"min-h-screen bg-slate-950 text-slate-50",children:A.jsxs("main",{className:"mx-auto flex max-w-6xl flex-col gap-6 px-6 py-10",children:[A.jsxs("header",{className:"space-y-4",children:[A.jsx("h1",{className:"text-4xl font-semibold text-white",children:"Multi Roomba Rover Console"}),A.jsx(Gg,{connected:s,role:i?.role,mode:i?.mode})]}),A.jsx(Jg,{}),A.jsxs("section",{className:"grid gap-6 lg:grid-cols-2",children:[A.jsx(Vg,{}),A.jsx(Zg,{}),A.jsx(Xg,{}),A.jsx(Mg,{}),A.jsx(kg,{}),A.jsx(Kg,{})]}),A.jsx(Qg,{})]})})}function Wg(){const{session:s,setRole:i,subscribeAll:c}=Be(),[r,o]=x.useState(!1);return x.useEffect(()=>{let d=!1;async function m(){try{s?.role!=="spectator"&&await i("spectator"),await c(),d||o(!0)}catch(S){console.error("Failed to enter spectator mode",S)}}return m(),()=>{d=!0}},[s?.role,i,c]),r}function Fg({connected:s,ready:i,rosterCount:c}){return A.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[A.jsx("span",{className:`rounded-full px-3 py-1 font-semibold ${s?"bg-emerald-500/20 text-emerald-200":"bg-red-500/20 text-red-200"}`,children:s?"Connected":"Disconnected"}),A.jsxs("span",{className:`rounded-full px-3 py-1 ${i?"bg-blue-600/40 text-blue-100":"bg-slate-700 text-slate-200"}`,children:["Spectator mode ",i?"active":"pending…"]}),A.jsxs("span",{className:"rounded-full bg-slate-800 px-3 py-1 text-slate-200",children:["Rovers: ",c]})]})}function Pg({logs:s}){return A.jsxs("section",{className:"rounded-3xl border border-slate-800 bg-slate-900/70 p-4",children:[A.jsxs("header",{className:"mb-3 flex items-center justify-between",children:[A.jsx("h2",{className:"text-lg font-semibold text-white",children:"Server logs"}),A.jsxs("span",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:["latest ",s.length]})]}),A.jsx("div",{className:"h-60 overflow-y-auto rounded-2xl bg-slate-950/40 p-3 text-xs font-mono text-slate-300",children:s.length===0?A.jsx("p",{children:"No log entries yet."}):s.slice().reverse().map(i=>A.jsxs("div",{className:"mb-2",children:[A.jsx("span",{className:"text-slate-500",children:i.timestamp})," ",A.jsxs("span",{className:"text-cyan-300",children:["[",i.level,"]"]})," ",i.label&&A.jsxs("span",{className:"text-pink-300",children:["[",i.label,"]"]})," ",A.jsx("span",{children:i.message})]},i.id))})]})}function Ig(s={}){return Object.entries(s).map(([i,c])=>({key:i,value:typeof c=="object"?JSON.stringify(c):c}))}function tb({rover:s,frame:i,videoInfo:c}){const r=Ig(i?.sensors);return A.jsxs("article",{className:"space-y-4 rounded-3xl border border-slate-800 bg-slate-900/70 p-5",children:[A.jsxs("header",{className:"flex flex-col gap-1",children:[A.jsx("h3",{className:"text-2xl font-semibold text-white",children:s.name}),A.jsx("p",{className:"text-sm text-slate-400",children:i?.receivedAt?`Updated ${new Date(i.receivedAt).toLocaleTimeString()}`:"Waiting for telemetry…"})]}),A.jsx(Nm,{sessionInfo:c,label:s.name,forceMute:!0}),A.jsxs("section",{className:"rounded-2xl border border-slate-800/80 bg-slate-950/50 p-4",children:[A.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-slate-500",children:"Telemetry"}),r.length===0?A.jsx("p",{className:"mt-3 text-sm text-slate-400",children:"No sensor data yet."}):A.jsx("dl",{className:"mt-3 grid gap-2 text-sm text-slate-200",children:r.map(({key:o,value:d})=>A.jsxs("div",{className:"flex justify-between gap-4",children:[A.jsx("dt",{className:"text-slate-500",children:o}),A.jsx("dd",{className:"text-right font-semibold text-white",children:d})]},o))})]})]})}function eb(){const{connected:s,session:i,logs:c}=Be(),r=Wg(),o=Om(),d=i?.roster??[],m=zm(d.map(p=>p.id)),S=x.useMemo(()=>({connected:s,ready:r,rosterCount:d.length}),[s,r,d.length]);return A.jsx("div",{className:"min-h-screen bg-slate-950 text-slate-50",children:A.jsxs("main",{className:"mx-auto flex max-w-7xl flex-col gap-6 px-6 py-10",children:[A.jsxs("header",{className:"space-y-3",children:[A.jsx("h1",{className:"text-4xl font-semibold text-white",children:"Spectator Console"}),A.jsx("p",{className:"text-slate-400",children:"Live rover telemetry & logs. This view is read-only."}),A.jsx(Fg,{...S})]}),A.jsx("section",{className:"grid gap-6 lg:grid-cols-3",children:d.length===0?A.jsx("p",{className:"col-span-full text-slate-400",children:"No rovers registered."}):d.map(p=>A.jsx(tb,{rover:p,frame:o[p.id],videoInfo:m[p.id]},p.id))}),A.jsx(Pg,{logs:c})]})})}c0.createRoot(document.getElementById("root")).render(A.jsx(x.StrictMode,{children:A.jsx(Rg,{children:A.jsx(Ng,{children:A.jsx(zg,{children:A.jsx(_v,{children:A.jsxs(tv,{children:[A.jsx(lr,{path:"/",element:A.jsx($g,{})}),A.jsx(lr,{path:"/spectate",element:A.jsx(eb,{})})]})})})})})}));