~firefoxreact-appqfsclientdistassets
33 itemsDownload ./*

..
index-0UArRR-J.css
index-B4xsfxG0.js
index-B8G5rzKv.css
index-BE7oi6UK.js
index-BHa4UcnA.js
index-BR_47Blh.js
index-BfN9UQlQ.css
index-Bhn-406U.js
index-BxanbE0y.css
index-C4JAuMav.js
index-C9raG3Sn.css
index-CH88NGe8.js
index-CLVJJQsR.js
index-COwyr-jG.js
index-CRpGyO4N.js
index-CcUPzzLf.js
index-CmVkzuof.js
index-CnAbQtd0.js
index-D80dsSjB.css
index-DCX1Lu-x.js
index-DKpsxWmd.js
index-DbEesbd-.js
index-Dd0x-yUq.css
index-Ddcef1SH.js
index-DyVZfQaQ.js
index-GDaw-FyL.js
index-K-FZwgEp.css
index-QlWVpDzm.js
index-RrQJ_Ptk.js
index-ksCuL7H5.js
index-u_-MRJq3.js
twily-DyhF01es.png
webrtc-BihJ6pDI.png


assetsindex-CRpGyO4N.js
258 KB• 1•  4 days ago•  DownloadRawClose
4 days ago•  1

{}
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const v of document.querySelectorAll('link[rel="modulepreload"]'))s(v);new MutationObserver(v=>{for(const R of v)if(R.type==="childList")for(const C of R.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&s(C)}).observe(document,{childList:!0,subtree:!0});function c(v){const R={};return v.integrity&&(R.integrity=v.integrity),v.referrerPolicy&&(R.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?R.credentials="include":v.crossOrigin==="anonymous"?R.credentials="omit":R.credentials="same-origin",R}function s(v){if(v.ep)return;v.ep=!0;const R=c(v);fetch(v.href,R)}})();var Ms={exports:{}},ka={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yh;function Om(){if(Yh)return ka;Yh=1;var f=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,v,R){var C=null;if(R!==void 0&&(C=""+R),v.key!==void 0&&(C=""+v.key),"key"in v){R={};for(var k in v)k!=="key"&&(R[k]=v[k])}else R=v;return v=R.ref,{$$typeof:f,type:s,key:C,ref:v!==void 0?v:null,props:R}}return ka.Fragment=i,ka.jsx=c,ka.jsxs=c,ka}var Xh;function zm(){return Xh||(Xh=1,Ms.exports=Om()),Ms.exports}var Z=zm(),Bs={exports:{}},st={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gh;function Nm(){if(Gh)return st;Gh=1;var f=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),C=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.iterator;function nt(y){return y===null||typeof y!="object"?null:(y=G&&y[G]||y["@@iterator"],typeof y=="function"?y:null)}var bt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mt=Object.assign,Bt={};function Qt(y,x,Y){this.props=y,this.context=x,this.refs=Bt,this.updater=Y||bt}Qt.prototype.isReactComponent={},Qt.prototype.setState=function(y,x){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,x,"setState")},Qt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function _t(){}_t.prototype=Qt.prototype;function oe(y,x,Y){this.props=y,this.context=x,this.refs=Bt,this.updater=Y||bt}var wt=oe.prototype=new _t;wt.constructor=oe,Mt(wt,Qt.prototype),wt.isPureReactComponent=!0;var ne=Array.isArray,W={H:null,A:null,T:null,S:null,V:null},Zt=Object.prototype.hasOwnProperty;function Ht(y,x,Y,q,V,ft){return Y=ft.ref,{$$typeof:f,type:y,key:x,ref:Y!==void 0?Y:null,props:ft}}function M(y,x){return Ht(y.type,x,void 0,void 0,void 0,y.props)}function ht(y){return typeof y=="object"&&y!==null&&y.$$typeof===f}function dt(y){var x={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(Y){return x[Y]})}var at=/\/+/g;function tt(y,x){return typeof y=="object"&&y!==null&&y.key!=null?dt(""+y.key):x.toString(36)}function le(){}function Yt(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(le,le):(y.status="pending",y.then(function(x){y.status==="pending"&&(y.status="fulfilled",y.value=x)},function(x){y.status==="pending"&&(y.status="rejected",y.reason=x)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function Tt(y,x,Y,q,V){var ft=typeof y;(ft==="undefined"||ft==="boolean")&&(y=null);var lt=!1;if(y===null)lt=!0;else switch(ft){case"bigint":case"string":case"number":lt=!0;break;case"object":switch(y.$$typeof){case f:case i:lt=!0;break;case H:return lt=y._init,Tt(lt(y._payload),x,Y,q,V)}}if(lt)return V=V(y),lt=q===""?"."+tt(y,0):q,ne(V)?(Y="",lt!=null&&(Y=lt.replace(at,"$&/")+"/"),Tt(V,x,Y,"",function(Xe){return Xe})):V!=null&&(ht(V)&&(V=M(V,Y+(V.key==null||y&&y.key===V.key?"":(""+V.key).replace(at,"$&/")+"/")+lt)),x.push(V)),1;lt=0;var ce=q===""?".":q+":";if(ne(y))for(var zt=0;zt<y.length;zt++)q=y[zt],ft=ce+tt(q,zt),lt+=Tt(q,x,Y,ft,V);else if(zt=nt(y),typeof zt=="function")for(y=zt.call(y),zt=0;!(q=y.next()).done;)q=q.value,ft=ce+tt(q,zt++),lt+=Tt(q,x,Y,ft,V);else if(ft==="object"){if(typeof y.then=="function")return Tt(Yt(y),x,Y,q,V);throw x=String(y),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}return lt}function A(y,x,Y){if(y==null)return y;var q=[],V=0;return Tt(y,q,"","",function(ft){return x.call(Y,ft,V++)}),q}function j(y){if(y._status===-1){var x=y._result;x=x(),x.then(function(Y){(y._status===0||y._status===-1)&&(y._status=1,y._result=Y)},function(Y){(y._status===0||y._status===-1)&&(y._status=2,y._result=Y)}),y._status===-1&&(y._status=0,y._result=x)}if(y._status===1)return y._result.default;throw y._result}var X=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var x=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(x))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function P(){}return st.Children={map:A,forEach:function(y,x,Y){A(y,function(){x.apply(this,arguments)},Y)},count:function(y){var x=0;return A(y,function(){x++}),x},toArray:function(y){return A(y,function(x){return x})||[]},only:function(y){if(!ht(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},st.Component=Qt,st.Fragment=c,st.Profiler=v,st.PureComponent=oe,st.StrictMode=s,st.Suspense=B,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,st.__COMPILER_RUNTIME={__proto__:null,c:function(y){return W.H.useMemoCache(y)}},st.cache=function(y){return function(){return y.apply(null,arguments)}},st.cloneElement=function(y,x,Y){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var q=Mt({},y.props),V=y.key,ft=void 0;if(x!=null)for(lt in x.ref!==void 0&&(ft=void 0),x.key!==void 0&&(V=""+x.key),x)!Zt.call(x,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&x.ref===void 0||(q[lt]=x[lt]);var lt=arguments.length-2;if(lt===1)q.children=Y;else if(1<lt){for(var ce=Array(lt),zt=0;zt<lt;zt++)ce[zt]=arguments[zt+2];q.children=ce}return Ht(y.type,V,void 0,void 0,ft,q)},st.createContext=function(y){return y={$$typeof:C,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:R,_context:y},y},st.createElement=function(y,x,Y){var q,V={},ft=null;if(x!=null)for(q in x.key!==void 0&&(ft=""+x.key),x)Zt.call(x,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(V[q]=x[q]);var lt=arguments.length-2;if(lt===1)V.children=Y;else if(1<lt){for(var ce=Array(lt),zt=0;zt<lt;zt++)ce[zt]=arguments[zt+2];V.children=ce}if(y&&y.defaultProps)for(q in lt=y.defaultProps,lt)V[q]===void 0&&(V[q]=lt[q]);return Ht(y,ft,void 0,void 0,null,V)},st.createRef=function(){return{current:null}},st.forwardRef=function(y){return{$$typeof:k,render:y}},st.isValidElement=ht,st.lazy=function(y){return{$$typeof:H,_payload:{_status:-1,_result:y},_init:j}},st.memo=function(y,x){return{$$typeof:T,type:y,compare:x===void 0?null:x}},st.startTransition=function(y){var x=W.T,Y={};W.T=Y;try{var q=y(),V=W.S;V!==null&&V(Y,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(P,X)}catch(ft){X(ft)}finally{W.T=x}},st.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},st.use=function(y){return W.H.use(y)},st.useActionState=function(y,x,Y){return W.H.useActionState(y,x,Y)},st.useCallback=function(y,x){return W.H.useCallback(y,x)},st.useContext=function(y){return W.H.useContext(y)},st.useDebugValue=function(){},st.useDeferredValue=function(y,x){return W.H.useDeferredValue(y,x)},st.useEffect=function(y,x,Y){var q=W.H;if(typeof Y=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return q.useEffect(y,x)},st.useId=function(){return W.H.useId()},st.useImperativeHandle=function(y,x,Y){return W.H.useImperativeHandle(y,x,Y)},st.useInsertionEffect=function(y,x){return W.H.useInsertionEffect(y,x)},st.useLayoutEffect=function(y,x){return W.H.useLayoutEffect(y,x)},st.useMemo=function(y,x){return W.H.useMemo(y,x)},st.useOptimistic=function(y,x){return W.H.useOptimistic(y,x)},st.useReducer=function(y,x,Y){return W.H.useReducer(y,x,Y)},st.useRef=function(y){return W.H.useRef(y)},st.useState=function(y){return W.H.useState(y)},st.useSyncExternalStore=function(y,x,Y){return W.H.useSyncExternalStore(y,x,Y)},st.useTransition=function(){return W.H.useTransition()},st.version="19.1.1",st}var Qh;function ks(){return Qh||(Qh=1,Bs.exports=Nm()),Bs.exports}var ct=ks(),Cs={exports:{}},Ka={},ws={exports:{}},qs={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vh;function xm(){return Vh||(Vh=1,function(f){function i(A,j){var X=A.length;A.push(j);t:for(;0<X;){var P=X-1>>>1,y=A[P];if(0<v(y,j))A[P]=j,A[X]=y,X=P;else break t}}function c(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var j=A[0],X=A.pop();if(X!==j){A[0]=X;t:for(var P=0,y=A.length,x=y>>>1;P<x;){var Y=2*(P+1)-1,q=A[Y],V=Y+1,ft=A[V];if(0>v(q,X))V<y&&0>v(ft,q)?(A[P]=ft,A[V]=X,P=V):(A[P]=q,A[Y]=X,P=Y);else if(V<y&&0>v(ft,X))A[P]=ft,A[V]=X,P=V;else break t}}return j}function v(A,j){var X=A.sortIndex-j.sortIndex;return X!==0?X:A.id-j.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var R=performance;f.unstable_now=function(){return R.now()}}else{var C=Date,k=C.now();f.unstable_now=function(){return C.now()-k}}var B=[],T=[],H=1,G=null,nt=3,bt=!1,Mt=!1,Bt=!1,Qt=!1,_t=typeof setTimeout=="function"?setTimeout:null,oe=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;function ne(A){for(var j=c(T);j!==null;){if(j.callback===null)s(T);else if(j.startTime<=A)s(T),j.sortIndex=j.expirationTime,i(B,j);else break;j=c(T)}}function W(A){if(Bt=!1,ne(A),!Mt)if(c(B)!==null)Mt=!0,Zt||(Zt=!0,tt());else{var j=c(T);j!==null&&Tt(W,j.startTime-A)}}var Zt=!1,Ht=-1,M=5,ht=-1;function dt(){return Qt?!0:!(f.unstable_now()-ht<M)}function at(){if(Qt=!1,Zt){var A=f.unstable_now();ht=A;var j=!0;try{t:{Mt=!1,Bt&&(Bt=!1,oe(Ht),Ht=-1),bt=!0;var X=nt;try{e:{for(ne(A),G=c(B);G!==null&&!(G.expirationTime>A&&dt());){var P=G.callback;if(typeof P=="function"){G.callback=null,nt=G.priorityLevel;var y=P(G.expirationTime<=A);if(A=f.unstable_now(),typeof y=="function"){G.callback=y,ne(A),j=!0;break e}G===c(B)&&s(B),ne(A)}else s(B);G=c(B)}if(G!==null)j=!0;else{var x=c(T);x!==null&&Tt(W,x.startTime-A),j=!1}}break t}finally{G=null,nt=X,bt=!1}j=void 0}}finally{j?tt():Zt=!1}}}var tt;if(typeof wt=="function")tt=function(){wt(at)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Yt=le.port2;le.port1.onmessage=at,tt=function(){Yt.postMessage(null)}}else tt=function(){_t(at,0)};function Tt(A,j){Ht=_t(function(){A(f.unstable_now())},j)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(A){A.callback=null},f.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<A?Math.floor(1e3/A):5},f.unstable_getCurrentPriorityLevel=function(){return nt},f.unstable_next=function(A){switch(nt){case 1:case 2:case 3:var j=3;break;default:j=nt}var X=nt;nt=j;try{return A()}finally{nt=X}},f.unstable_requestPaint=function(){Qt=!0},f.unstable_runWithPriority=function(A,j){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var X=nt;nt=A;try{return j()}finally{nt=X}},f.unstable_scheduleCallback=function(A,j,X){var P=f.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?P+X:P):X=P,A){case 1:var y=-1;break;case 2:y=250;break;case 5:y=1073741823;break;case 4:y=1e4;break;default:y=5e3}return y=X+y,A={id:H++,callback:j,priorityLevel:A,startTime:X,expirationTime:y,sortIndex:-1},X>P?(A.sortIndex=X,i(T,A),c(B)===null&&A===c(T)&&(Bt?(oe(Ht),Ht=-1):Bt=!0,Tt(W,X-P))):(A.sortIndex=y,i(B,A),Mt||bt||(Mt=!0,Zt||(Zt=!0,tt()))),A},f.unstable_shouldYield=dt,f.unstable_wrapCallback=function(A){var j=nt;return function(){var X=nt;nt=j;try{return A.apply(this,arguments)}finally{nt=X}}}}(qs)),qs}var $h;function Dm(){return $h||($h=1,ws.exports=xm()),ws.exports}var Hs={exports:{}},fe={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zh;function Um(){if(Zh)return fe;Zh=1;var f=ks();function i(B){var T="https://react.dev/errors/"+B;if(1<arguments.length){T+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)T+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+B+"; visit "+T+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={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},v=Symbol.for("react.portal");function R(B,T,H){var G=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:G==null?null:""+G,children:B,containerInfo:T,implementation:H}}var C=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(B,T){if(B==="font")return"";if(typeof T=="string")return T==="use-credentials"?T:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,fe.createPortal=function(B,T){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!T||T.nodeType!==1&&T.nodeType!==9&&T.nodeType!==11)throw Error(i(299));return R(B,T,null,H)},fe.flushSync=function(B){var T=C.T,H=s.p;try{if(C.T=null,s.p=2,B)return B()}finally{C.T=T,s.p=H,s.d.f()}},fe.preconnect=function(B,T){typeof B=="string"&&(T?(T=T.crossOrigin,T=typeof T=="string"?T==="use-credentials"?T:"":void 0):T=null,s.d.C(B,T))},fe.prefetchDNS=function(B){typeof B=="string"&&s.d.D(B)},fe.preinit=function(B,T){if(typeof B=="string"&&T&&typeof T.as=="string"){var H=T.as,G=k(H,T.crossOrigin),nt=typeof T.integrity=="string"?T.integrity:void 0,bt=typeof T.fetchPriority=="string"?T.fetchPriority:void 0;H==="style"?s.d.S(B,typeof T.precedence=="string"?T.precedence:void 0,{crossOrigin:G,integrity:nt,fetchPriority:bt}):H==="script"&&s.d.X(B,{crossOrigin:G,integrity:nt,fetchPriority:bt,nonce:typeof T.nonce=="string"?T.nonce:void 0})}},fe.preinitModule=function(B,T){if(typeof B=="string")if(typeof T=="object"&&T!==null){if(T.as==null||T.as==="script"){var H=k(T.as,T.crossOrigin);s.d.M(B,{crossOrigin:H,integrity:typeof T.integrity=="string"?T.integrity:void 0,nonce:typeof T.nonce=="string"?T.nonce:void 0})}}else T==null&&s.d.M(B)},fe.preload=function(B,T){if(typeof B=="string"&&typeof T=="object"&&T!==null&&typeof T.as=="string"){var H=T.as,G=k(H,T.crossOrigin);s.d.L(B,H,{crossOrigin:G,integrity:typeof T.integrity=="string"?T.integrity:void 0,nonce:typeof T.nonce=="string"?T.nonce:void 0,type:typeof T.type=="string"?T.type:void 0,fetchPriority:typeof T.fetchPriority=="string"?T.fetchPriority:void 0,referrerPolicy:typeof T.referrerPolicy=="string"?T.referrerPolicy:void 0,imageSrcSet:typeof T.imageSrcSet=="string"?T.imageSrcSet:void 0,imageSizes:typeof T.imageSizes=="string"?T.imageSizes:void 0,media:typeof T.media=="string"?T.media:void 0})}},fe.preloadModule=function(B,T){if(typeof B=="string")if(T){var H=k(T.as,T.crossOrigin);s.d.m(B,{as:typeof T.as=="string"&&T.as!=="script"?T.as:void 0,crossOrigin:H,integrity:typeof T.integrity=="string"?T.integrity:void 0})}else s.d.m(B)},fe.requestFormReset=function(B){s.d.r(B)},fe.unstable_batchedUpdates=function(B,T){return B(T)},fe.useFormState=function(B,T,H){return C.H.useFormState(B,T,H)},fe.useFormStatus=function(){return C.H.useHostTransitionStatus()},fe.version="19.1.1",fe}var kh;function Mm(){if(kh)return Hs.exports;kh=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(i){console.error(i)}}return f(),Hs.exports=Um(),Hs.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Kh;function Bm(){if(Kh)return Ka;Kh=1;var f=Dm(),i=ks(),c=Mm();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 v(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function R(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function C(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 k(t){if(R(t)!==t)throw Error(s(188))}function B(t){var e=t.alternate;if(!e){if(e=R(t),e===null)throw Error(s(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return k(a),t;if(u===l)return k(a),e;u=u.sibling}throw Error(s(188))}if(n.return!==l.return)n=a,l=u;else{for(var r=!1,o=a.child;o;){if(o===n){r=!0,n=a,l=u;break}if(o===l){r=!0,l=a,n=u;break}o=o.sibling}if(!r){for(o=u.child;o;){if(o===n){r=!0,n=u,l=a;break}if(o===l){r=!0,l=u,n=a;break}o=o.sibling}if(!r)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?t:e}function T(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=T(t),e!==null)return e;t=t.sibling}return null}var H=Object.assign,G=Symbol.for("react.element"),nt=Symbol.for("react.transitional.element"),bt=Symbol.for("react.portal"),Mt=Symbol.for("react.fragment"),Bt=Symbol.for("react.strict_mode"),Qt=Symbol.for("react.profiler"),_t=Symbol.for("react.provider"),oe=Symbol.for("react.consumer"),wt=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Zt=Symbol.for("react.suspense_list"),Ht=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),ht=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function Yt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Mt:return"Fragment";case Qt:return"Profiler";case Bt:return"StrictMode";case W:return"Suspense";case Zt:return"SuspenseList";case ht:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case bt:return"Portal";case wt:return(t.displayName||"Context")+".Provider";case oe:return(t._context.displayName||"Context")+".Consumer";case ne:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ht:return e=t.displayName||null,e!==null?e:Yt(t.type)||"Memo";case M:e=t._payload,t=t._init;try{return Yt(t(e))}catch{}}return null}var Tt=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},P=[],y=-1;function x(t){return{current:t}}function Y(t){0>y||(t.current=P[y],P[y]=null,y--)}function q(t,e){y++,P[y]=t.current,t.current=e}var V=x(null),ft=x(null),lt=x(null),ce=x(null);function zt(t,e){switch(q(lt,e),q(ft,t),q(V,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?yh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=yh(e),t=mh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(V),q(V,t)}function Xe(){Y(V),Y(ft),Y(lt)}function ul(t){t.memoizedState!==null&&q(ce,t);var e=V.current,n=mh(e,t.type);e!==n&&(q(ft,t),q(V,n))}function il(t){ft.current===t&&(Y(V),Y(ft)),ce.current===t&&(Y(ce),Ga._currentValue=X)}var jn=Object.prototype.hasOwnProperty,Jl=f.unstable_scheduleCallback,on=f.unstable_cancelCallback,Wl=f.unstable_shouldYield,Ln=f.unstable_requestPaint,Oe=f.unstable_now,Si=f.unstable_getCurrentPriorityLevel,Fa=f.unstable_ImmediatePriority,Pa=f.unstable_UserBlockingPriority,hn=f.unstable_NormalPriority,Ia=f.unstable_LowPriority,Fl=f.unstable_IdlePriority,tu=f.log,h=f.unstable_setDisableYieldValue,N=null,w=null;function g(t){if(typeof tu=="function"&&h(t),w&&typeof w.setStrictMode=="function")try{w.setStrictMode(N,t)}catch{}}var O=Math.clz32?Math.clz32:K,ut=Math.log,L=Math.LN2;function K(t){return t>>>=0,t===0?32:31-(ut(t)/L|0)|0}var St=256,it=4194304;function qt(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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;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 gt(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,u=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var o=l&134217727;return o!==0?(l=o&~u,l!==0?a=qt(l):(r&=o,r!==0?a=qt(r):n||(n=o&~t,n!==0&&(a=qt(n))))):(o=l&~u,o!==0?a=qt(o):r!==0?a=qt(r):n||(n=l&~t,n!==0&&(a=qt(n)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:a}function pe(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function dn(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 Pl(){var t=St;return St<<=1,(St&4194048)===0&&(St=256),t}function Yn(){var t=it;return it<<=1,(it&62914560)===0&&(it=4194304),t}function cl(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Xn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _i(t,e,n,l,a,u){var r=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var o=t.entanglements,d=t.expirationTimes,S=t.hiddenUpdates;for(n=r&~n;0<n;){var z=31-O(n),U=1<<z;o[z]=0,d[z]=-1;var _=S[z];if(_!==null)for(S[z]=null,z=0;z<_.length;z++){var E=_[z];E!==null&&(E.lane&=-536870913)}n&=~U}l!==0&&sl(t,l,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(r&~e))}function sl(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-O(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&4194090}function eu(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-O(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function Ei(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 Ti(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Is(){var t=j.p;return t!==0?t:(t=window.event,t===void 0?32:Ch(t.type))}function md(t,e){var n=j.p;try{return j.p=t,e()}finally{j.p=n}}var yn=Math.random().toString(36).slice(2),se="__reactFiber$"+yn,de="__reactProps$"+yn,rl="__reactContainer$"+yn,Ai="__reactEvents$"+yn,gd="__reactListeners$"+yn,vd="__reactHandles$"+yn,tr="__reactResources$"+yn,Il="__reactMarker$"+yn;function Ri(t){delete t[se],delete t[de],delete t[Ai],delete t[gd],delete t[vd]}function fl(t){var e=t[se];if(e)return e;for(var n=t.parentNode;n;){if(e=n[rl]||n[se]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=bh(t);t!==null;){if(n=t[se])return n;t=bh(t)}return e}t=n,n=t.parentNode}return null}function ol(t){if(t=t[se]||t[rl]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function ta(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function hl(t){var e=t[tr];return e||(e=t[tr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[Il]=!0}var er=new Set,nr={};function Gn(t,e){dl(t,e),dl(t+"Capture",e)}function dl(t,e){for(nr[t]=e,t=0;t<e.length;t++)er.add(e[t])}var pd=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]*$"),lr={},ar={};function bd(t){return jn.call(ar,t)?!0:jn.call(lr,t)?!1:pd.test(t)?ar[t]=!0:(lr[t]=!0,!1)}function nu(t,e,n){if(bd(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function lu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Je(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}var Oi,ur;function yl(t){if(Oi===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Oi=e&&e[1]||"",ur=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Oi+t+ur}var zi=!1;function Ni(t,e){if(!t||zi)return"";zi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={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(E){var _=E}Reflect.construct(t,[],U)}else{try{U.call()}catch(E){_=E}t.call(U.prototype)}}else{try{throw Error()}catch(E){_=E}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(E){if(E&&_&&typeof E.stack=="string")return[E.stack,_.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),r=u[0],o=u[1];if(r&&o){var d=r.split(`
`),S=o.split(`
`);for(a=l=0;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;for(;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;if(l===d.length||a===S.length)for(l=d.length-1,a=S.length-1;1<=l&&0<=a&&d[l]!==S[a];)a--;for(;1<=l&&0<=a;l--,a--)if(d[l]!==S[a]){if(l!==1||a!==1)do if(l--,a--,0>a||d[l]!==S[a]){var z=`
`+d[l].replace(" at new "," at ");return t.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",t.displayName)),z}while(1<=l&&0<=a);break}}}finally{zi=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?yl(n):""}function Sd(t){switch(t.tag){case 26:case 27:case 5:return yl(t.type);case 16:return yl("Lazy");case 13:return yl("Suspense");case 19:return yl("SuspenseList");case 0:case 15:return Ni(t.type,!1);case 11:return Ni(t.type.render,!1);case 1:return Ni(t.type,!0);case 31:return yl("Activity");default:return""}}function ir(t){try{var e="";do e+=Sd(t),t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function cr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _d(t){var e=cr(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),l=""+t[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(r){l=""+r,u.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function au(t){t._valueTracker||(t._valueTracker=_d(t))}function sr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=cr(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function uu(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 Ed=/[\n"\\]/g;function Ne(t){return t.replace(Ed,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function xi(t,e,n,l,a,u,r,o){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Di(t,r,ze(e)):n!=null?Di(t,r,ze(n)):l!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ze(o):t.removeAttribute("name")}function rr(t,e,n,l,a,u,r,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;n=n!=null?""+ze(n):"",e=e!=null?""+ze(e):n,o||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=o?t.checked:!!l,t.defaultChecked=!!l,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r)}function Di(t,e,n){e==="number"&&uu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ml(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+ze(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function fr(t,e,n){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+ze(n):""}function or(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(Tt(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=ze(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l)}function gl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Td=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 hr(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||Td.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function dr(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&hr(t,a,l)}else for(var u in e)e.hasOwnProperty(u)&&hr(t,u,e[u])}function Ui(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 Ad=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"]]),Rd=/^[\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 iu(t){return Rd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Mi=null;function Bi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var vl=null,pl=null;function yr(t){var e=ol(t);if(e&&(t=e.stateNode)){var n=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(xi(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ne(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[de]||null;if(!a)throw Error(s(90));xi(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&sr(l)}break t;case"textarea":fr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ml(t,!!n.multiple,e,!1)}}}var Ci=!1;function mr(t,e,n){if(Ci)return t(e,n);Ci=!0;try{var l=t(e);return l}finally{if(Ci=!1,(vl!==null||pl!==null)&&($u(),vl&&(e=vl,t=pl,pl=vl=null,yr(e),t)))for(e=0;e<t.length;e++)yr(t[e])}}function ea(t,e){var n=t.stateNode;if(n===null)return null;var l=n[de]||null;if(l===null)return null;n=l[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":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(s(231,e,typeof n));return n}var We=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wi=!1;if(We)try{var na={};Object.defineProperty(na,"passive",{get:function(){wi=!0}}),window.addEventListener("test",na,na),window.removeEventListener("test",na,na)}catch{wi=!1}var mn=null,qi=null,cu=null;function gr(){if(cu)return cu;var t,e=qi,n=e.length,l,a="value"in mn?mn.value:mn.textContent,u=a.length;for(t=0;t<n&&e[t]===a[t];t++);var r=n-t;for(l=1;l<=r&&e[n-l]===a[u-l];l++);return cu=a.slice(t,1<l?1-l:void 0)}function su(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 ru(){return!0}function vr(){return!1}function ye(t){function e(n,l,a,u,r){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=u,this.target=r,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(n=t[o],this[o]=n?n(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ru:vr,this.isPropagationStopped=vr,this}return H(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ru)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ru)},persist:function(){},isPersistent:ru}),e}var Qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=ye(Qn),la=H({},Qn,{view:0,detail:0}),Od=ye(la),Hi,ji,aa,ou=H({},la,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Yi,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!==aa&&(aa&&t.type==="mousemove"?(Hi=t.screenX-aa.screenX,ji=t.screenY-aa.screenY):ji=Hi=0,aa=t),Hi)},movementY:function(t){return"movementY"in t?t.movementY:ji}}),pr=ye(ou),zd=H({},ou,{dataTransfer:0}),Nd=ye(zd),xd=H({},la,{relatedTarget:0}),Li=ye(xd),Dd=H({},Qn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ud=ye(Dd),Md=H({},Qn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bd=ye(Md),Cd=H({},Qn,{data:0}),br=ye(Cd),wd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qd={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"},Hd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jd(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Hd[t])?!!e[t]:!1}function Yi(){return jd}var Ld=H({},la,{key:function(t){if(t.key){var e=wd[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=su(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?qd[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Yi,charCode:function(t){return t.type==="keypress"?su(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?su(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Yd=ye(Ld),Xd=H({},ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sr=ye(Xd),Gd=H({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Yi}),Qd=ye(Gd),Vd=H({},Qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),$d=ye(Vd),Zd=H({},ou,{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}),kd=ye(Zd),Kd=H({},Qn,{newState:0,oldState:0}),Jd=ye(Kd),Wd=[9,13,27,32],Xi=We&&"CompositionEvent"in window,ua=null;We&&"documentMode"in document&&(ua=document.documentMode);var Fd=We&&"TextEvent"in window&&!ua,_r=We&&(!Xi||ua&&8<ua&&11>=ua),Er=" ",Tr=!1;function Ar(t,e){switch(t){case"keyup":return Wd.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bl=!1;function Pd(t,e){switch(t){case"compositionend":return Rr(e);case"keypress":return e.which!==32?null:(Tr=!0,Er);case"textInput":return t=e.data,t===Er&&Tr?null:t;default:return null}}function Id(t,e){if(bl)return t==="compositionend"||!Xi&&Ar(t,e)?(t=gr(),cu=qi=mn=null,bl=!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 _r&&e.locale!=="ko"?null:e.data;default:return null}}var ty={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 Or(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ty[t.type]:e==="textarea"}function zr(t,e,n,l){vl?pl?pl.push(l):pl=[l]:vl=l,e=Fu(e,"onChange"),0<e.length&&(n=new fu("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ia=null,ca=null;function ey(t){rh(t,0)}function hu(t){var e=ta(t);if(sr(e))return t}function Nr(t,e){if(t==="change")return e}var xr=!1;if(We){var Gi;if(We){var Qi="oninput"in document;if(!Qi){var Dr=document.createElement("div");Dr.setAttribute("oninput","return;"),Qi=typeof Dr.oninput=="function"}Gi=Qi}else Gi=!1;xr=Gi&&(!document.documentMode||9<document.documentMode)}function Ur(){ia&&(ia.detachEvent("onpropertychange",Mr),ca=ia=null)}function Mr(t){if(t.propertyName==="value"&&hu(ca)){var e=[];zr(e,ca,t,Bi(t)),mr(ey,e)}}function ny(t,e,n){t==="focusin"?(Ur(),ia=e,ca=n,ia.attachEvent("onpropertychange",Mr)):t==="focusout"&&Ur()}function ly(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return hu(ca)}function ay(t,e){if(t==="click")return hu(e)}function uy(t,e){if(t==="input"||t==="change")return hu(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:iy;function sa(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!jn.call(e,a)||!be(t[a],e[a]))return!1}return!0}function Br(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cr(t,e){var n=Br(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Br(n)}}function wr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?wr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function qr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=uu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=uu(t.document)}return e}function Vi(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 cy=We&&"documentMode"in document&&11>=document.documentMode,Sl=null,$i=null,ra=null,Zi=!1;function Hr(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zi||Sl==null||Sl!==uu(l)||(l=Sl,"selectionStart"in l&&Vi(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ra&&sa(ra,l)||(ra=l,l=Fu($i,"onSelect"),0<l.length&&(e=new fu("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Sl)))}function Vn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var _l={animationend:Vn("Animation","AnimationEnd"),animationiteration:Vn("Animation","AnimationIteration"),animationstart:Vn("Animation","AnimationStart"),transitionrun:Vn("Transition","TransitionRun"),transitionstart:Vn("Transition","TransitionStart"),transitioncancel:Vn("Transition","TransitionCancel"),transitionend:Vn("Transition","TransitionEnd")},ki={},jr={};We&&(jr=document.createElement("div").style,"AnimationEvent"in window||(delete _l.animationend.animation,delete _l.animationiteration.animation,delete _l.animationstart.animation),"TransitionEvent"in window||delete _l.transitionend.transition);function $n(t){if(ki[t])return ki[t];if(!_l[t])return t;var e=_l[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in jr)return ki[t]=e[n];return t}var Lr=$n("animationend"),Yr=$n("animationiteration"),Xr=$n("animationstart"),sy=$n("transitionrun"),ry=$n("transitionstart"),fy=$n("transitioncancel"),Gr=$n("transitionend"),Qr=new Map,Ki="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(" ");Ki.push("scrollEnd");function He(t,e){Qr.set(t,e),Gn(e,[t])}var Vr=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=Vr.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ir(e)},Vr.set(t,e),e)}return{value:t,source:e,stack:ir(e)}}var De=[],El=0,Ji=0;function du(){for(var t=El,e=Ji=El=0;e<t;){var n=De[e];De[e++]=null;var l=De[e];De[e++]=null;var a=De[e];De[e++]=null;var u=De[e];if(De[e++]=null,l!==null&&a!==null){var r=l.pending;r===null?a.next=a:(a.next=r.next,r.next=a),l.pending=a}u!==0&&$r(n,a,u)}}function yu(t,e,n,l){De[El++]=t,De[El++]=e,De[El++]=n,De[El++]=l,Ji|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Wi(t,e,n,l){return yu(t,e,n,l),mu(t)}function Tl(t,e){return yu(t,null,null,e),mu(t)}function $r(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),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-O(n),t=u.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),u):null}function mu(t){if(50<Ca)throw Ca=0,ns=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Al={};function oy(t,e,n,l){this.tag=t,this.key=n,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Se(t,e,n,l){return new oy(t,e,n,l)}function Fi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fe(t,e){var n=t.alternate;return n===null?(n=Se(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Zr(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function gu(t,e,n,l,a,u){var r=0;if(l=t,typeof t=="function")Fi(t)&&(r=1);else if(typeof t=="string")r=dm(t,n,V.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ht:return t=Se(31,n,e,a),t.elementType=ht,t.lanes=u,t;case Mt:return Zn(n.children,a,u,e);case Bt:r=8,a|=24;break;case Qt:return t=Se(12,n,e,a|2),t.elementType=Qt,t.lanes=u,t;case W:return t=Se(13,n,e,a),t.elementType=W,t.lanes=u,t;case Zt:return t=Se(19,n,e,a),t.elementType=Zt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case _t:case wt:r=10;break t;case oe:r=9;break t;case ne:r=11;break t;case Ht:r=14;break t;case M:r=16,l=null;break t}r=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=Se(r,n,e,a),e.elementType=t,e.type=l,e.lanes=u,e}function Zn(t,e,n,l){return t=Se(7,t,l,e),t.lanes=n,t}function Pi(t,e,n){return t=Se(6,t,null,e),t.lanes=n,t}function Ii(t,e,n){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Rl=[],Ol=0,vu=null,pu=0,Ue=[],Me=0,kn=null,Pe=1,Ie="";function Kn(t,e){Rl[Ol++]=pu,Rl[Ol++]=vu,vu=t,pu=e}function kr(t,e,n){Ue[Me++]=Pe,Ue[Me++]=Ie,Ue[Me++]=kn,kn=t;var l=Pe;t=Ie;var a=32-O(l)-1;l&=~(1<<a),n+=1;var u=32-O(e)+a;if(30<u){var r=a-a%5;u=(l&(1<<r)-1).toString(32),l>>=r,a-=r,Pe=1<<32-O(e)+a|n<<a|l,Ie=u+t}else Pe=1<<u|n<<a|l,Ie=t}function tc(t){t.return!==null&&(Kn(t,1),kr(t,1,0))}function ec(t){for(;t===vu;)vu=Rl[--Ol],Rl[Ol]=null,pu=Rl[--Ol],Rl[Ol]=null;for(;t===kn;)kn=Ue[--Me],Ue[Me]=null,Ie=Ue[--Me],Ue[Me]=null,Pe=Ue[--Me],Ue[Me]=null}var he=null,Xt=null,At=!1,Jn=null,Ge=!1,nc=Error(s(519));function Wn(t){var e=Error(s(418,""));throw ha(xe(e,t)),nc}function Kr(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[se]=t,e[de]=l,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<qa.length;n++)mt(qa[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),rr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),au(e);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),or(e,l.value,l.defaultValue,l.children),au(e)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||dh(e.textContent,n)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=Pu),e=!0):e=!1,e||Wn(t)}function Jr(t){for(he=t.return;he;)switch(he.tag){case 5:case 13:Ge=!1;return;case 27:case 3:Ge=!0;return;default:he=he.return}}function fa(t){if(t!==he)return!1;if(!At)return Jr(t),At=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ps(t.type,t.memoizedProps)),n=!n),n&&Xt&&Wn(t),Jr(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){Xt=Le(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Xt=null}}else e===27?(e=Xt,Un(t.type)?(t=Es,Es=null,Xt=t):Xt=e):Xt=he?Le(t.stateNode.nextSibling):null;return!0}function oa(){Xt=he=null,At=!1}function Wr(){var t=Jn;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Jn=null),t}function ha(t){Jn===null?Jn=[t]:Jn.push(t)}var lc=x(null),Fn=null,tn=null;function gn(t,e,n){q(lc,e._currentValue),e._currentValue=n}function en(t){t._currentValue=lc.current,Y(lc)}function ac(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function uc(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var r=a.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=a;for(var d=0;d<e.length;d++)if(o.context===e[d]){u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),ac(u.return,n,t),l||(r=null);break t}u=o.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(s(341));r.lanes|=n,u=r.alternate,u!==null&&(u.lanes|=n),ac(r,n,t),r=null}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===t){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function da(t,e,n,l){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 r=a.alternate;if(r===null)throw Error(s(387));if(r=r.memoizedProps,r!==null){var o=a.type;be(a.pendingProps.value,r.value)||(t!==null?t.push(o):t=[o])}}else if(a===ce.current){if(r=a.alternate,r===null)throw Error(s(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ga):t=[Ga])}a=a.return}t!==null&&uc(e,t,n,l),e.flags|=262144}function bu(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Pn(t){Fn=t,tn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return Fr(Fn,t)}function Su(t,e){return Fn===null&&Pn(t),Fr(t,e)}function Fr(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},tn===null){if(t===null)throw Error(s(308));tn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else tn=tn.next=e;return n}var hy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},dy=f.unstable_scheduleCallback,yy=f.unstable_NormalPriority,Wt={$$typeof:wt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new hy,data:new Map,refCount:0}}function ya(t){t.refCount--,t.refCount===0&&dy(yy,function(){t.controller.abort()})}var ma=null,cc=0,zl=0,Nl=null;function my(t,e){if(ma===null){var n=ma=[];cc=0,zl=rs(),Nl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return cc++,e.then(Pr,Pr),e}function Pr(){if(--cc===0&&ma!==null){Nl!==null&&(Nl.status="fulfilled");var t=ma;ma=null,zl=0,Nl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gy(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var Ir=A.S;A.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),Ir!==null&&Ir(t,e)};var In=x(null);function sc(){var t=In.current;return t!==null?t:Ct.pooledCache}function _u(t,e){e===null?q(In,In.current):q(In,e.pool)}function tf(){var t=sc();return t===null?null:{parent:Wt._currentValue,pool:t}}var ga=Error(s(460)),ef=Error(s(474)),Eu=Error(s(542)),rc={then:function(){}};function nf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Tu(){}function lf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Tu,Tu),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,uf(t),t;default:if(typeof e.status=="string")e.then(Tu,Tu);else{if(t=Ct,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,uf(t),t}throw va=e,ga}}var va=null;function af(){if(va===null)throw Error(s(459));var t=va;return va=null,t}function uf(t){if(t===ga||t===Eu)throw Error(s(483))}var vn=!1;function fc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(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 pn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function bn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Rt&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=mu(t),$r(t,null,n),e}return yu(t,l,e,n),mu(t)}function pa(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,eu(t,n)}}function hc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var r={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?a=u=r:u=u.next=r,n=n.next}while(n!==null);u===null?a=u=e:u=u.next=e}else a=u=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var dc=!1;function ba(){if(dc){var t=Nl;if(t!==null)throw t}}function Sa(t,e,n,l){dc=!1;var a=t.updateQueue;vn=!1;var u=a.firstBaseUpdate,r=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var d=o,S=d.next;d.next=null,r===null?u=S:r.next=S,r=d;var z=t.alternate;z!==null&&(z=z.updateQueue,o=z.lastBaseUpdate,o!==r&&(o===null?z.firstBaseUpdate=S:o.next=S,z.lastBaseUpdate=d))}if(u!==null){var U=a.baseState;r=0,z=S=d=null,o=u;do{var _=o.lane&-536870913,E=_!==o.lane;if(E?(pt&_)===_:(l&_)===_){_!==0&&_===zl&&(dc=!0),z!==null&&(z=z.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var et=t,F=o;_=e;var Dt=n;switch(F.tag){case 1:if(et=F.payload,typeof et=="function"){U=et.call(Dt,U,_);break t}U=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=F.payload,_=typeof et=="function"?et.call(Dt,U,_):et,_==null)break t;U=H({},U,_);break t;case 2:vn=!0}}_=o.callback,_!==null&&(t.flags|=64,E&&(t.flags|=8192),E=a.callbacks,E===null?a.callbacks=[_]:E.push(_))}else E={lane:_,tag:o.tag,payload:o.payload,callback:o.callback,next:null},z===null?(S=z=E,d=U):z=z.next=E,r|=_;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;E=o,o=E.next,E.next=null,a.lastBaseUpdate=E,a.shared.pending=null}}while(!0);z===null&&(d=U),a.baseState=d,a.firstBaseUpdate=S,a.lastBaseUpdate=z,u===null&&(a.shared.lanes=0),zn|=r,t.lanes=r,t.memoizedState=U}}function cf(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function sf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)cf(n[t],e)}var xl=x(null),Au=x(0);function rf(t,e){t=rn,q(Au,t),q(xl,e),rn=t|e.baseLanes}function yc(){q(Au,rn),q(xl,xl.current)}function mc(){rn=Au.current,Y(xl),Y(Au)}var Sn=0,rt=null,Nt=null,kt=null,Ru=!1,Dl=!1,tl=!1,Ou=0,_a=0,Ul=null,vy=0;function Vt(){throw Error(s(321))}function gc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function vc(t,e,n,l,a,u){return Sn=u,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?Zf:kf,tl=!1,u=n(l,a),tl=!1,Dl&&(u=of(e,n,l,a)),ff(t),u}function ff(t){A.H=Mu;var e=Nt!==null&&Nt.next!==null;if(Sn=0,kt=Nt=rt=null,Ru=!1,_a=0,Ul=null,e)throw Error(s(300));t===null||It||(t=t.dependencies,t!==null&&bu(t)&&(It=!0))}function of(t,e,n,l){rt=t;var a=0;do{if(Dl&&(Ul=null),_a=0,Dl=!1,25<=a)throw Error(s(301));if(a+=1,kt=Nt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Ay,u=e(n,l)}while(Dl);return u}function py(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Ea(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(rt.flags|=1024),e}function pc(){var t=Ou!==0;return Ou=0,t}function bc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Sc(t){if(Ru){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ru=!1}Sn=0,kt=Nt=rt=null,Dl=!1,_a=Ou=0,Ul=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?rt.memoizedState=kt=t:kt=kt.next=t,kt}function Kt(){if(Nt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=kt===null?rt.memoizedState:kt.next;if(e!==null)kt=e,Nt=t;else{if(t===null)throw rt.alternate===null?Error(s(467)):Error(s(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},kt===null?rt.memoizedState=kt=t:kt=kt.next=t}return kt}function _c(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ea(t){var e=_a;return _a+=1,Ul===null&&(Ul=[]),t=lf(Ul,t,e),e=rt,(kt===null?e.memoizedState:kt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?Zf:kf),t}function zu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ea(t);if(t.$$typeof===wt)return re(t)}throw Error(s(438,String(t)))}function Ec(t){var e=null,n=rt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=rt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=_c(),rt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=dt;return e.index++,n}function nn(t,e){return typeof e=="function"?e(t):e}function Nu(t){var e=Kt();return Tc(e,Nt,t)}function Tc(t,e,n){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var a=t.baseQueue,u=l.pending;if(u!==null){if(a!==null){var r=a.next;a.next=u.next,u.next=r}e.baseQueue=a=u,l.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var o=r=null,d=null,S=e,z=!1;do{var U=S.lane&-536870913;if(U!==S.lane?(pt&U)===U:(Sn&U)===U){var _=S.revertLane;if(_===0)d!==null&&(d=d.next={lane:0,revertLane:0,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),U===zl&&(z=!0);else if((Sn&_)===_){S=S.next,_===zl&&(z=!0);continue}else U={lane:0,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},d===null?(o=d=U,r=u):d=d.next=U,rt.lanes|=_,zn|=_;U=S.action,tl&&n(u,U),u=S.hasEagerState?S.eagerState:n(u,U)}else _={lane:U,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},d===null?(o=d=_,r=u):d=d.next=_,rt.lanes|=U,zn|=U;S=S.next}while(S!==null&&S!==e);if(d===null?r=u:d.next=o,!be(u,t.memoizedState)&&(It=!0,z&&(n=Nl,n!==null)))throw n;t.memoizedState=u,t.baseState=r,t.baseQueue=d,l.lastRenderedState=u}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ac(t){var e=Kt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,u=e.memoizedState;if(a!==null){n.pending=null;var r=a=a.next;do u=t(u,r.action),r=r.next;while(r!==a);be(u,e.memoizedState)||(It=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function hf(t,e,n){var l=rt,a=Kt(),u=At;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=e();var r=!be((Nt||a).memoizedState,n);r&&(a.memoizedState=n,It=!0),a=a.queue;var o=mf.bind(null,l,a,t);if(Ta(2048,8,o,[t]),a.getSnapshot!==e||r||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,Ml(9,xu(),yf.bind(null,l,a,n,e),null),Ct===null)throw Error(s(349));u||(Sn&124)!==0||df(l,e,n)}return n}function df(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=rt.updateQueue,e===null?(e=_c(),rt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function yf(t,e,n,l){e.value=n,e.getSnapshot=l,gf(e)&&vf(t)}function mf(t,e,n){return n(function(){gf(e)&&vf(t)})}function gf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function vf(t){var e=Tl(t,2);e!==null&&Re(e,t,2)}function Rc(t){var e=me();if(typeof t=="function"){var n=t;if(t=n(),tl){g(!0);try{n()}finally{g(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:t},e}function pf(t,e,n,l){return t.baseState=n,Tc(t,Nt,typeof l=="function"?l:nn)}function by(t,e,n,l,a){if(Uu(t))throw Error(s(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){u.listeners.push(r)}};A.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,bf(e,u)):(u.next=n.next,e.pending=n.next=u)}}function bf(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var u=A.T,r={};A.T=r;try{var o=n(a,l),d=A.S;d!==null&&d(r,o),Sf(t,e,o)}catch(S){Oc(t,e,S)}finally{A.T=u}}else try{u=n(a,l),Sf(t,e,u)}catch(S){Oc(t,e,S)}}function Sf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){_f(t,e,l)},function(l){return Oc(t,e,l)}):_f(t,e,n)}function _f(t,e,n){e.status="fulfilled",e.value=n,Ef(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,bf(t,n)))}function Oc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Ef(e),e=e.next;while(e!==l)}t.action=null}function Ef(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Tf(t,e){return e}function Af(t,e){if(At){var n=Ct.formState;if(n!==null){t:{var l=rt;if(At){if(Xt){e:{for(var a=Xt,u=Ge;a.nodeType!==8;){if(!u){a=null;break e}if(a=Le(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Xt=Le(a.nextSibling),l=a.data==="F!";break t}}Wn(l)}l=!1}l&&(e=n[0])}}return n=me(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tf,lastRenderedState:e},n.queue=l,n=Qf.bind(null,rt,l),l.dispatch=n,l=Rc(!1),u=Uc.bind(null,rt,!1,l.queue),l=me(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=by.bind(null,rt,a,u,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Rf(t){var e=Kt();return Of(e,Nt,t)}function Of(t,e,n){if(e=Tc(t,e,Tf)[0],t=Nu(nn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ea(e)}catch(r){throw r===ga?Eu:r}else l=e;e=Kt();var a=e.queue,u=a.dispatch;return n!==e.memoizedState&&(rt.flags|=2048,Ml(9,xu(),Sy.bind(null,a,n),null)),[l,u,t]}function Sy(t,e){t.action=e}function zf(t){var e=Kt(),n=Nt;if(n!==null)return Of(e,n,t);Kt(),e=e.memoizedState,n=Kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ml(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=rt.updateQueue,e===null&&(e=_c(),rt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function xu(){return{destroy:void 0,resource:void 0}}function Nf(){return Kt().memoizedState}function Du(t,e,n,l){var a=me();l=l===void 0?null:l,rt.flags|=t,a.memoizedState=Ml(1|e,xu(),n,l)}function Ta(t,e,n,l){var a=Kt();l=l===void 0?null:l;var u=a.memoizedState.inst;Nt!==null&&l!==null&&gc(l,Nt.memoizedState.deps)?a.memoizedState=Ml(e,u,n,l):(rt.flags|=t,a.memoizedState=Ml(1|e,u,n,l))}function xf(t,e){Du(8390656,8,t,e)}function Df(t,e){Ta(2048,8,t,e)}function Uf(t,e){return Ta(4,2,t,e)}function Mf(t,e){return Ta(4,4,t,e)}function Bf(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Cf(t,e,n){n=n!=null?n.concat([t]):null,Ta(4,4,Bf.bind(null,e,t),n)}function zc(){}function wf(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&gc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function qf(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&gc(e,l[1]))return l[0];if(l=t(),tl){g(!0);try{t()}finally{g(!1)}}return n.memoizedState=[l,e],l}function Nc(t,e,n){return n===void 0||(Sn&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=Yo(),rt.lanes|=t,zn|=t,n)}function Hf(t,e,n,l){return be(n,e)?n:xl.current!==null?(t=Nc(t,n,l),be(t,e)||(It=!0),t):(Sn&42)===0?(It=!0,t.memoizedState=n):(t=Yo(),rt.lanes|=t,zn|=t,e)}function jf(t,e,n,l,a){var u=j.p;j.p=u!==0&&8>u?u:8;var r=A.T,o={};A.T=o,Uc(t,!1,e,n);try{var d=a(),S=A.S;if(S!==null&&S(o,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var z=gy(d,l);Aa(t,e,z,Ae(t))}else Aa(t,e,l,Ae(t))}catch(U){Aa(t,e,{then:function(){},status:"rejected",reason:U},Ae())}finally{j.p=u,A.T=r}}function _y(){}function xc(t,e,n,l){if(t.tag!==5)throw Error(s(476));var a=Lf(t).queue;jf(t,a,e,X,n===null?_y:function(){return Yf(t),n(l)})}function Lf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:X},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Yf(t){var e=Lf(t).next.queue;Aa(t,e,{},Ae())}function Dc(){return re(Ga)}function Xf(){return Kt().memoizedState}function Gf(){return Kt().memoizedState}function Ey(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ae();t=pn(n);var l=bn(e,t,n);l!==null&&(Re(l,e,n),pa(l,e,n)),e={cache:ic()},t.payload=e;return}e=e.return}}function Ty(t,e,n){var l=Ae();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Uu(t)?Vf(e,n):(n=Wi(t,e,n,l),n!==null&&(Re(n,t,l),$f(n,e,l)))}function Qf(t,e,n){var l=Ae();Aa(t,e,n,l)}function Aa(t,e,n,l){var a={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uu(t))Vf(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var r=e.lastRenderedState,o=u(r,n);if(a.hasEagerState=!0,a.eagerState=o,be(o,r))return yu(t,e,a,0),Ct===null&&du(),!1}catch{}finally{}if(n=Wi(t,e,a,l),n!==null)return Re(n,t,l),$f(n,e,l),!0}return!1}function Uc(t,e,n,l){if(l={lane:2,revertLane:rs(),action:l,hasEagerState:!1,eagerState:null,next:null},Uu(t)){if(e)throw Error(s(479))}else e=Wi(t,n,l,2),e!==null&&Re(e,t,2)}function Uu(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function Vf(t,e){Dl=Ru=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function $f(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,eu(t,n)}}var Mu={readContext:re,use:zu,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useLayoutEffect:Vt,useInsertionEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useSyncExternalStore:Vt,useId:Vt,useHostTransitionStatus:Vt,useFormState:Vt,useActionState:Vt,useOptimistic:Vt,useMemoCache:Vt,useCacheRefresh:Vt},Zf={readContext:re,use:zu,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:re,useEffect:xf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Du(4194308,4,Bf.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Du(4194308,4,t,e)},useInsertionEffect:function(t,e){Du(4,2,t,e)},useMemo:function(t,e){var n=me();e=e===void 0?null:e;var l=t();if(tl){g(!0);try{t()}finally{g(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=me();if(n!==void 0){var a=n(e);if(tl){g(!0);try{n(e)}finally{g(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=Ty.bind(null,rt,t),[l.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=Rc(t);var e=t.queue,n=Qf.bind(null,rt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:zc,useDeferredValue:function(t,e){var n=me();return Nc(n,t,e)},useTransition:function(){var t=Rc(!1);return t=jf.bind(null,rt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=rt,a=me();if(At){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),Ct===null)throw Error(s(349));(pt&124)!==0||df(l,e,n)}a.memoizedState=n;var u={value:n,getSnapshot:e};return a.queue=u,xf(mf.bind(null,l,u,t),[t]),l.flags|=2048,Ml(9,xu(),yf.bind(null,l,u,n,e),null),n},useId:function(){var t=me(),e=Ct.identifierPrefix;if(At){var n=Ie,l=Pe;n=(l&~(1<<32-O(l)-1)).toString(32)+n,e="«"+e+"R"+n,n=Ou++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=vy++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:Dc,useFormState:Af,useActionState:Af,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Uc.bind(null,rt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Ec,useCacheRefresh:function(){return me().memoizedState=Ey.bind(null,rt)}},kf={readContext:re,use:zu,useCallback:wf,useContext:re,useEffect:Df,useImperativeHandle:Cf,useInsertionEffect:Uf,useLayoutEffect:Mf,useMemo:qf,useReducer:Nu,useRef:Nf,useState:function(){return Nu(nn)},useDebugValue:zc,useDeferredValue:function(t,e){var n=Kt();return Hf(n,Nt.memoizedState,t,e)},useTransition:function(){var t=Nu(nn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Ea(t),e]},useSyncExternalStore:hf,useId:Xf,useHostTransitionStatus:Dc,useFormState:Rf,useActionState:Rf,useOptimistic:function(t,e){var n=Kt();return pf(n,Nt,t,e)},useMemoCache:Ec,useCacheRefresh:Gf},Ay={readContext:re,use:zu,useCallback:wf,useContext:re,useEffect:Df,useImperativeHandle:Cf,useInsertionEffect:Uf,useLayoutEffect:Mf,useMemo:qf,useReducer:Ac,useRef:Nf,useState:function(){return Ac(nn)},useDebugValue:zc,useDeferredValue:function(t,e){var n=Kt();return Nt===null?Nc(n,t,e):Hf(n,Nt.memoizedState,t,e)},useTransition:function(){var t=Ac(nn)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:Ea(t),e]},useSyncExternalStore:hf,useId:Xf,useHostTransitionStatus:Dc,useFormState:zf,useActionState:zf,useOptimistic:function(t,e){var n=Kt();return Nt!==null?pf(n,Nt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:Gf},Bl=null,Ra=0;function Bu(t){var e=Ra;return Ra+=1,Bl===null&&(Bl=[]),lf(Bl,t,e)}function Oa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Cu(t,e){throw e.$$typeof===G?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Kf(t){var e=t._init;return e(t._payload)}function Jf(t){function e(p,m){if(t){var b=p.deletions;b===null?(p.deletions=[m],p.flags|=16):b.push(m)}}function n(p,m){if(!t)return null;for(;m!==null;)e(p,m),m=m.sibling;return null}function l(p){for(var m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function a(p,m){return p=Fe(p,m),p.index=0,p.sibling=null,p}function u(p,m,b){return p.index=b,t?(b=p.alternate,b!==null?(b=b.index,b<m?(p.flags|=67108866,m):b):(p.flags|=67108866,m)):(p.flags|=1048576,m)}function r(p){return t&&p.alternate===null&&(p.flags|=67108866),p}function o(p,m,b,D){return m===null||m.tag!==6?(m=Pi(b,p.mode,D),m.return=p,m):(m=a(m,b),m.return=p,m)}function d(p,m,b,D){var $=b.type;return $===Mt?z(p,m,b.props.children,D,b.key):m!==null&&(m.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===M&&Kf($)===m.type)?(m=a(m,b.props),Oa(m,b),m.return=p,m):(m=gu(b.type,b.key,b.props,null,p.mode,D),Oa(m,b),m.return=p,m)}function S(p,m,b,D){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=Ii(b,p.mode,D),m.return=p,m):(m=a(m,b.children||[]),m.return=p,m)}function z(p,m,b,D,$){return m===null||m.tag!==7?(m=Zn(b,p.mode,D,$),m.return=p,m):(m=a(m,b),m.return=p,m)}function U(p,m,b){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Pi(""+m,p.mode,b),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case nt:return b=gu(m.type,m.key,m.props,null,p.mode,b),Oa(b,m),b.return=p,b;case bt:return m=Ii(m,p.mode,b),m.return=p,m;case M:var D=m._init;return m=D(m._payload),U(p,m,b)}if(Tt(m)||tt(m))return m=Zn(m,p.mode,b,null),m.return=p,m;if(typeof m.then=="function")return U(p,Bu(m),b);if(m.$$typeof===wt)return U(p,Su(p,m),b);Cu(p,m)}return null}function _(p,m,b,D){var $=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return $!==null?null:o(p,m,""+b,D);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case nt:return b.key===$?d(p,m,b,D):null;case bt:return b.key===$?S(p,m,b,D):null;case M:return $=b._init,b=$(b._payload),_(p,m,b,D)}if(Tt(b)||tt(b))return $!==null?null:z(p,m,b,D,null);if(typeof b.then=="function")return _(p,m,Bu(b),D);if(b.$$typeof===wt)return _(p,m,Su(p,b),D);Cu(p,b)}return null}function E(p,m,b,D,$){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return p=p.get(b)||null,o(m,p,""+D,$);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case nt:return p=p.get(D.key===null?b:D.key)||null,d(m,p,D,$);case bt:return p=p.get(D.key===null?b:D.key)||null,S(m,p,D,$);case M:var ot=D._init;return D=ot(D._payload),E(p,m,b,D,$)}if(Tt(D)||tt(D))return p=p.get(b)||null,z(m,p,D,$,null);if(typeof D.then=="function")return E(p,m,b,Bu(D),$);if(D.$$typeof===wt)return E(p,m,b,Su(m,D),$);Cu(m,D)}return null}function et(p,m,b,D){for(var $=null,ot=null,J=m,I=m=0,ee=null;J!==null&&I<b.length;I++){J.index>I?(ee=J,J=null):ee=J.sibling;var Et=_(p,J,b[I],D);if(Et===null){J===null&&(J=ee);break}t&&J&&Et.alternate===null&&e(p,J),m=u(Et,m,I),ot===null?$=Et:ot.sibling=Et,ot=Et,J=ee}if(I===b.length)return n(p,J),At&&Kn(p,I),$;if(J===null){for(;I<b.length;I++)J=U(p,b[I],D),J!==null&&(m=u(J,m,I),ot===null?$=J:ot.sibling=J,ot=J);return At&&Kn(p,I),$}for(J=l(J);I<b.length;I++)ee=E(J,p,I,b[I],D),ee!==null&&(t&&ee.alternate!==null&&J.delete(ee.key===null?I:ee.key),m=u(ee,m,I),ot===null?$=ee:ot.sibling=ee,ot=ee);return t&&J.forEach(function(qn){return e(p,qn)}),At&&Kn(p,I),$}function F(p,m,b,D){if(b==null)throw Error(s(151));for(var $=null,ot=null,J=m,I=m=0,ee=null,Et=b.next();J!==null&&!Et.done;I++,Et=b.next()){J.index>I?(ee=J,J=null):ee=J.sibling;var qn=_(p,J,Et.value,D);if(qn===null){J===null&&(J=ee);break}t&&J&&qn.alternate===null&&e(p,J),m=u(qn,m,I),ot===null?$=qn:ot.sibling=qn,ot=qn,J=ee}if(Et.done)return n(p,J),At&&Kn(p,I),$;if(J===null){for(;!Et.done;I++,Et=b.next())Et=U(p,Et.value,D),Et!==null&&(m=u(Et,m,I),ot===null?$=Et:ot.sibling=Et,ot=Et);return At&&Kn(p,I),$}for(J=l(J);!Et.done;I++,Et=b.next())Et=E(J,p,I,Et.value,D),Et!==null&&(t&&Et.alternate!==null&&J.delete(Et.key===null?I:Et.key),m=u(Et,m,I),ot===null?$=Et:ot.sibling=Et,ot=Et);return t&&J.forEach(function(Rm){return e(p,Rm)}),At&&Kn(p,I),$}function Dt(p,m,b,D){if(typeof b=="object"&&b!==null&&b.type===Mt&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case nt:t:{for(var $=b.key;m!==null;){if(m.key===$){if($=b.type,$===Mt){if(m.tag===7){n(p,m.sibling),D=a(m,b.props.children),D.return=p,p=D;break t}}else if(m.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===M&&Kf($)===m.type){n(p,m.sibling),D=a(m,b.props),Oa(D,b),D.return=p,p=D;break t}n(p,m);break}else e(p,m);m=m.sibling}b.type===Mt?(D=Zn(b.props.children,p.mode,D,b.key),D.return=p,p=D):(D=gu(b.type,b.key,b.props,null,p.mode,D),Oa(D,b),D.return=p,p=D)}return r(p);case bt:t:{for($=b.key;m!==null;){if(m.key===$)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(p,m.sibling),D=a(m,b.children||[]),D.return=p,p=D;break t}else{n(p,m);break}else e(p,m);m=m.sibling}D=Ii(b,p.mode,D),D.return=p,p=D}return r(p);case M:return $=b._init,b=$(b._payload),Dt(p,m,b,D)}if(Tt(b))return et(p,m,b,D);if(tt(b)){if($=tt(b),typeof $!="function")throw Error(s(150));return b=$.call(b),F(p,m,b,D)}if(typeof b.then=="function")return Dt(p,m,Bu(b),D);if(b.$$typeof===wt)return Dt(p,m,Su(p,b),D);Cu(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(n(p,m.sibling),D=a(m,b),D.return=p,p=D):(n(p,m),D=Pi(b,p.mode,D),D.return=p,p=D),r(p)):n(p,m)}return function(p,m,b,D){try{Ra=0;var $=Dt(p,m,b,D);return Bl=null,$}catch(J){if(J===ga||J===Eu)throw J;var ot=Se(29,J,null,p.mode);return ot.lanes=D,ot.return=p,ot}finally{}}}var Cl=Jf(!0),Wf=Jf(!1),Be=x(null),Qe=null;function _n(t){var e=t.alternate;q(Ft,Ft.current&1),q(Be,t),Qe===null&&(e===null||xl.current!==null||e.memoizedState!==null)&&(Qe=t)}function Ff(t){if(t.tag===22){if(q(Ft,Ft.current),q(Be,t),Qe===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Qe=t)}}else En()}function En(){q(Ft,Ft.current),q(Be,Be.current)}function ln(t){Y(Be),Qe===t&&(Qe=null),Y(Ft)}var Ft=x(0);function wu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||_s(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){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}function Mc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:H({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Bc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ae(),a=pn(l);a.payload=e,n!=null&&(a.callback=n),e=bn(t,a,l),e!==null&&(Re(e,t,l),pa(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ae(),a=pn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=bn(t,a,l),e!==null&&(Re(e,t,l),pa(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ae(),l=pn(n);l.tag=2,e!=null&&(l.callback=e),e=bn(t,l,n),e!==null&&(Re(e,t,n),pa(e,t,n))}};function Pf(t,e,n,l,a,u,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,r):e.prototype&&e.prototype.isPureReactComponent?!sa(n,l)||!sa(a,u):!0}function If(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Bc.enqueueReplaceState(e,e.state,null)}function el(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=H({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}var qu=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)};function to(t){qu(t)}function eo(t){console.error(t)}function no(t){qu(t)}function Hu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function lo(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Cc(t,e,n){return n=pn(n),n.tag=3,n.payload={element:null},n.callback=function(){Hu(t,e)},n}function ao(t){return t=pn(t),t.tag=3,t}function uo(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var u=l.value;t.payload=function(){return a(u)},t.callback=function(){lo(e,n,l)}}var r=n.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){lo(e,n,l),typeof a!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function Ry(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&da(e,n,a,!0),n=Be.current,n!==null){switch(n.tag){case 13:return Qe===null?as():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===rc?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),is(t,l,a)),!1;case 22:return n.flags|=65536,l===rc?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),is(t,l,a)),!1}throw Error(s(435,n.tag))}return is(t,l,a),as(),!1}if(At)return e=Be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==nc&&(t=Error(s(422),{cause:l}),ha(xe(t,n)))):(l!==nc&&(e=Error(s(423),{cause:l}),ha(xe(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=xe(l,n),a=Cc(t.stateNode,l,a),hc(t,a),Gt!==4&&(Gt=2)),!1;var u=Error(s(520),{cause:l});if(u=xe(u,n),Ba===null?Ba=[u]:Ba.push(u),Gt!==4&&(Gt=2),e===null)return!0;l=xe(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Cc(n.stateNode,l,t),hc(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Nn===null||!Nn.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ao(a),uo(a,t,n,l),hc(n,a),!1}n=n.return}while(n!==null);return!1}var io=Error(s(461)),It=!1;function ae(t,e,n,l){e.child=t===null?Wf(e,null,n,l):Cl(e,t.child,n,l)}function co(t,e,n,l,a){n=n.render;var u=e.ref;if("ref"in l){var r={};for(var o in l)o!=="ref"&&(r[o]=l[o])}else r=l;return Pn(e),l=vc(t,e,n,r,u,a),o=pc(),t!==null&&!It?(bc(t,e,a),an(t,e,a)):(At&&o&&tc(e),e.flags|=1,ae(t,e,l,a),e.child)}function so(t,e,n,l,a){if(t===null){var u=n.type;return typeof u=="function"&&!Fi(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,ro(t,e,u,l,a)):(t=gu(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Gc(t,a)){var r=u.memoizedProps;if(n=n.compare,n=n!==null?n:sa,n(r,l)&&t.ref===e.ref)return an(t,e,a)}return e.flags|=1,t=Fe(u,l),t.ref=e.ref,t.return=e,e.child=t}function ro(t,e,n,l,a){if(t!==null){var u=t.memoizedProps;if(sa(u,l)&&t.ref===e.ref)if(It=!1,e.pendingProps=l=u,Gc(t,a))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,an(t,e,a)}return wc(t,e,n,l,a)}function fo(t,e,n){var l=e.pendingProps,a=l.children,u=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((e.flags&128)!==0){if(l=u!==null?u.baseLanes|n:n,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;e.childLanes=u&~l}else e.childLanes=0,e.child=null;return oo(t,e,l,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&_u(e,u!==null?u.cachePool:null),u!==null?rf(e,u):yc(),Ff(e);else return e.lanes=e.childLanes=536870912,oo(t,e,u!==null?u.baseLanes|n:n,n)}else u!==null?(_u(e,u.cachePool),rf(e,u),En(),e.memoizedState=null):(t!==null&&_u(e,null),yc(),En());return ae(t,e,a,n),e.child}function oo(t,e,n,l){var a=sc();return a=a===null?null:{parent:Wt._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&_u(e,null),yc(),Ff(e),t!==null&&da(t,e,l,!0),null}function ju(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function wc(t,e,n,l,a){return Pn(e),n=vc(t,e,n,l,void 0,a),l=pc(),t!==null&&!It?(bc(t,e,a),an(t,e,a)):(At&&l&&tc(e),e.flags|=1,ae(t,e,n,a),e.child)}function ho(t,e,n,l,a,u){return Pn(e),e.updateQueue=null,n=of(e,l,n,a),ff(t),l=pc(),t!==null&&!It?(bc(t,e,u),an(t,e,u)):(At&&l&&tc(e),e.flags|=1,ae(t,e,n,u),e.child)}function yo(t,e,n,l,a){if(Pn(e),e.stateNode===null){var u=Al,r=n.contextType;typeof r=="object"&&r!==null&&(u=re(r)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},fc(e),r=n.contextType,u.context=typeof r=="object"&&r!==null?re(r):Al,u.state=e.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Mc(e,n,r,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&Bc.enqueueReplaceState(u,u.state,null),Sa(e,l,u,a),ba(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,d=el(n,o);u.props=d;var S=u.context,z=n.contextType;r=Al,typeof z=="object"&&z!==null&&(r=re(z));var U=n.getDerivedStateFromProps;z=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||S!==r)&&If(e,u,l,r),vn=!1;var _=e.memoizedState;u.state=_,Sa(e,l,u,a),ba(),S=e.memoizedState,o||_!==S||vn?(typeof U=="function"&&(Mc(e,n,U,l),S=e.memoizedState),(d=vn||Pf(e,n,d,l,_,S,r))?(z||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=l,e.memoizedState=S),u.props=l,u.state=S,u.context=r,l=d):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,oc(t,e),r=e.memoizedProps,z=el(n,r),u.props=z,U=e.pendingProps,_=u.context,S=n.contextType,d=Al,typeof S=="object"&&S!==null&&(d=re(S)),o=n.getDerivedStateFromProps,(S=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==U||_!==d)&&If(e,u,l,d),vn=!1,_=e.memoizedState,u.state=_,Sa(e,l,u,a),ba();var E=e.memoizedState;r!==U||_!==E||vn||t!==null&&t.dependencies!==null&&bu(t.dependencies)?(typeof o=="function"&&(Mc(e,n,o,l),E=e.memoizedState),(z=vn||Pf(e,n,z,l,_,E,d)||t!==null&&t.dependencies!==null&&bu(t.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,E,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,E,d)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=E),u.props=l,u.state=E,u.context=d,l=z):(typeof u.componentDidUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&_===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,ju(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=Cl(e,t.child,null,a),e.child=Cl(e,null,n,a)):ae(t,e,n,a),e.memoizedState=u.state,t=e.child):t=an(t,e,a),t}function mo(t,e,n,l){return oa(),e.flags|=256,ae(t,e,n,l),e.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hc(t){return{baseLanes:t,cachePool:tf()}}function jc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ce),t}function go(t,e,n){var l=e.pendingProps,a=!1,u=(e.flags&128)!==0,r;if((r=u)||(r=t!==null&&t.memoizedState===null?!1:(Ft.current&2)!==0),r&&(a=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(At){if(a?_n(e):En(),At){var o=Xt,d;if(d=o){t:{for(d=o,o=Ge;d.nodeType!==8;){if(!o){o=null;break t}if(d=Le(d.nextSibling),d===null){o=null;break t}}o=d}o!==null?(e.memoizedState={dehydrated:o,treeContext:kn!==null?{id:Pe,overflow:Ie}:null,retryLane:536870912,hydrationErrors:null},d=Se(18,null,null,0),d.stateNode=o,d.return=e,e.child=d,he=e,Xt=null,d=!0):d=!1}d||Wn(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return _s(o)?e.lanes=32:e.lanes=536870912,null;ln(e)}return o=l.children,l=l.fallback,a?(En(),a=e.mode,o=Lu({mode:"hidden",children:o},a),l=Zn(l,a,n,null),o.return=e,l.return=e,o.sibling=l,e.child=o,a=e.child,a.memoizedState=Hc(n),a.childLanes=jc(t,r,n),e.memoizedState=qc,l):(_n(e),Lc(e,o))}if(d=t.memoizedState,d!==null&&(o=d.dehydrated,o!==null)){if(u)e.flags&256?(_n(e),e.flags&=-257,e=Yc(t,e,n)):e.memoizedState!==null?(En(),e.child=t.child,e.flags|=128,e=null):(En(),a=l.fallback,o=e.mode,l=Lu({mode:"visible",children:l.children},o),a=Zn(a,o,n,null),a.flags|=2,l.return=e,a.return=e,l.sibling=a,e.child=l,Cl(e,t.child,null,n),l=e.child,l.memoizedState=Hc(n),l.childLanes=jc(t,r,n),e.memoizedState=qc,e=a);else if(_n(e),_s(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var S=r.dgst;r=S,l=Error(s(419)),l.stack="",l.digest=r,ha({value:l,source:null,stack:null}),e=Yc(t,e,n)}else if(It||da(t,e,n,!1),r=(n&t.childLanes)!==0,It||r){if(r=Ct,r!==null&&(l=n&-n,l=(l&42)!==0?1:Ei(l),l=(l&(r.suspendedLanes|n))!==0?0:l,l!==0&&l!==d.retryLane))throw d.retryLane=l,Tl(t,l),Re(r,t,l),io;o.data==="$?"||as(),e=Yc(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=d.treeContext,Xt=Le(o.nextSibling),he=e,At=!0,Jn=null,Ge=!1,t!==null&&(Ue[Me++]=Pe,Ue[Me++]=Ie,Ue[Me++]=kn,Pe=t.id,Ie=t.overflow,kn=e),e=Lc(e,l.children),e.flags|=4096);return e}return a?(En(),a=l.fallback,o=e.mode,d=t.child,S=d.sibling,l=Fe(d,{mode:"hidden",children:l.children}),l.subtreeFlags=d.subtreeFlags&65011712,S!==null?a=Fe(S,a):(a=Zn(a,o,n,null),a.flags|=2),a.return=e,l.return=e,l.sibling=a,e.child=l,l=a,a=e.child,o=t.child.memoizedState,o===null?o=Hc(n):(d=o.cachePool,d!==null?(S=Wt._currentValue,d=d.parent!==S?{parent:S,pool:S}:d):d=tf(),o={baseLanes:o.baseLanes|n,cachePool:d}),a.memoizedState=o,a.childLanes=jc(t,r,n),e.memoizedState=qc,l):(_n(e),n=t.child,t=n.sibling,n=Fe(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n)}function Lc(t,e){return e=Lu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Lu(t,e){return t=Se(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Yc(t,e,n){return Cl(e,t.child,null,n),t=Lc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function vo(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ac(t.return,e,n)}function Xc(t,e,n,l,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=l,u.tail=n,u.tailMode=a)}function po(t,e,n){var l=e.pendingProps,a=l.revealOrder,u=l.tail;if(ae(t,e,l.children,n),l=Ft.current,(l&2)!==0)l=l&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vo(t,n,e);else if(t.tag===19)vo(t,n,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}l&=1}switch(q(Ft,l),a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&wu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Xc(e,!1,a,n,u);break;case"backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&wu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Xc(e,!0,n,null,u);break;case"together":Xc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function an(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),zn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(da(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=Fe(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Fe(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Gc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&bu(t)))}function Oy(t,e,n){switch(e.tag){case 3:zt(e,e.stateNode.containerInfo),gn(e,Wt,t.memoizedState.cache),oa();break;case 27:case 5:ul(e);break;case 4:zt(e,e.stateNode.containerInfo);break;case 10:gn(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(_n(e),e.flags|=128,null):(n&e.child.childLanes)!==0?go(t,e,n):(_n(e),t=an(t,e,n),t!==null?t.sibling:null);_n(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(da(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return po(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),q(Ft,Ft.current),l)break;return null;case 22:case 23:return e.lanes=0,fo(t,e,n);case 24:gn(e,Wt,t.memoizedState.cache)}return an(t,e,n)}function bo(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!Gc(t,n)&&(e.flags&128)===0)return It=!1,Oy(t,e,n);It=(t.flags&131072)!==0}else It=!1,At&&(e.flags&1048576)!==0&&kr(e,pu,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var l=e.elementType,a=l._init;if(l=a(l._payload),e.type=l,typeof l=="function")Fi(l)?(t=el(l,t),e.tag=1,e=yo(null,e,l,t,n)):(e.tag=0,e=wc(null,e,l,t,n));else{if(l!=null){if(a=l.$$typeof,a===ne){e.tag=11,e=co(null,e,l,t,n);break t}else if(a===Ht){e.tag=14,e=so(null,e,l,t,n);break t}}throw e=Yt(l)||l,Error(s(306,e,""))}}return e;case 0:return wc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=el(l,e.pendingProps),yo(t,e,l,a,n);case 3:t:{if(zt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var u=e.memoizedState;a=u.element,oc(t,e),Sa(e,l,null,n);var r=e.memoizedState;if(l=r.cache,gn(e,Wt,l),l!==u.cache&&uc(e,[Wt],n,!0),ba(),l=r.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=mo(t,e,l,n);break t}else if(l!==a){a=xe(Error(s(424)),e),ha(a),e=mo(t,e,l,n);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=Le(t.firstChild),he=e,At=!0,Jn=null,Ge=!0,n=Wf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(oa(),l===a){e=an(t,e,n);break t}ae(t,e,l,n)}e=e.child}return e;case 26:return ju(t,e),t===null?(n=Th(e.type,null,e.pendingProps,null))?e.memoizedState=n:At||(n=e.type,t=e.pendingProps,l=Iu(lt.current).createElement(n),l[se]=e,l[de]=t,ie(l,n,t),Pt(l),e.stateNode=l):e.memoizedState=Th(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ul(e),t===null&&At&&(l=e.stateNode=Sh(e.type,e.pendingProps,lt.current),he=e,Ge=!0,a=Xt,Un(e.type)?(Es=a,Xt=Le(l.firstChild)):Xt=a),ae(t,e,e.pendingProps.children,n),ju(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&At&&((a=l=Xt)&&(l=tm(l,e.type,e.pendingProps,Ge),l!==null?(e.stateNode=l,he=e,Xt=Le(l.firstChild),Ge=!1,a=!0):a=!1),a||Wn(e)),ul(e),a=e.type,u=e.pendingProps,r=t!==null?t.memoizedProps:null,l=u.children,ps(a,u)?l=null:r!==null&&ps(a,r)&&(e.flags|=32),e.memoizedState!==null&&(a=vc(t,e,py,null,null,n),Ga._currentValue=a),ju(t,e),ae(t,e,l,n),e.child;case 6:return t===null&&At&&((t=n=Xt)&&(n=em(n,e.pendingProps,Ge),n!==null?(e.stateNode=n,he=e,Xt=null,t=!0):t=!1),t||Wn(e)),null;case 13:return go(t,e,n);case 4:return zt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Cl(e,null,l,n):ae(t,e,l,n),e.child;case 11:return co(t,e,e.type,e.pendingProps,n);case 7:return ae(t,e,e.pendingProps,n),e.child;case 8:return ae(t,e,e.pendingProps.children,n),e.child;case 12:return ae(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,gn(e,e.type,l.value),ae(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,Pn(e),a=re(a),l=l(a),e.flags|=1,ae(t,e,l,n),e.child;case 14:return so(t,e,e.type,e.pendingProps,n);case 15:return ro(t,e,e.type,e.pendingProps,n);case 19:return po(t,e,n);case 31:return l=e.pendingProps,n=e.mode,l={mode:l.mode,children:l.children},t===null?(n=Lu(l,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=Fe(t.child,l),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return fo(t,e,n);case 24:return Pn(e),l=re(Wt),t===null?(a=sc(),a===null&&(a=Ct,u=ic(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),e.memoizedState={parent:l,cache:a},fc(e),gn(e,Wt,a)):((t.lanes&n)!==0&&(oc(t,e),Sa(e,null,null,n),ba()),a=t.memoizedState,u=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),gn(e,Wt,l)):(l=u.cache,gn(e,Wt,l),l!==a.cache&&uc(e,[Wt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function un(t){t.flags|=4}function So(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Nh(e)){if(e=Be.current,e!==null&&((pt&4194048)===pt?Qe!==null:(pt&62914560)!==pt&&(pt&536870912)===0||e!==Qe))throw va=rc,ef;t.flags|=8192}}function Yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Yn():536870912,t.lanes|=e,jl|=e)}function za(t,e){if(!At)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function zy(t,e,n){var l=e.pendingProps;switch(ec(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),en(Wt),Xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(fa(e)?un(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wr())),Lt(e),null;case 26:return n=e.memoizedState,t===null?(un(e),n!==null?(Lt(e),So(e,n)):(Lt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(un(e),Lt(e),So(e,n)):(Lt(e),e.flags&=-16777217):(t.memoizedProps!==l&&un(e),Lt(e),e.flags&=-16777217),null;case 27:il(e),n=lt.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&un(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Lt(e),null}t=V.current,fa(e)?Kr(e):(t=Sh(a,l,n),e.stateNode=t,un(e))}return Lt(e),null;case 5:if(il(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&un(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Lt(e),null}if(t=V.current,fa(e))Kr(e);else{switch(a=Iu(lt.current),t){case 1:t=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?a.createElement("select",{is:l.is}):a.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?a.createElement(n,{is:l.is}):a.createElement(n)}}t[se]=e,t[de]=l;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=t;t:switch(ie(t,n,l),n){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&un(e)}}return Lt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&un(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=lt.current,fa(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=he,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[se]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||dh(t.nodeValue,n)),t||Wn(e)}else t=Iu(t).createTextNode(l),t[se]=e,e.stateNode=t}return Lt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=fa(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[se]=e}else oa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),a=!1}else a=Wr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(ln(e),e):(ln(e),null)}if(ln(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=l!==null,t=t!==null&&t.memoizedState!==null,n){l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool);var u=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==a&&(l.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),Yu(e,e.updateQueue),Lt(e),null;case 4:return Xe(),t===null&&ds(e.stateNode.containerInfo),Lt(e),null;case 10:return en(e.type),Lt(e),null;case 19:if(Y(Ft),a=e.memoizedState,a===null)return Lt(e),null;if(l=(e.flags&128)!==0,u=a.rendering,u===null)if(l)za(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=wu(t),u!==null){for(e.flags|=128,za(a,!1),t=u.updateQueue,e.updateQueue=t,Yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Zr(n,t),n=n.sibling;return q(Ft,Ft.current&1|2),e.child}t=t.sibling}a.tail!==null&&Oe()>Qu&&(e.flags|=128,l=!0,za(a,!1),e.lanes=4194304)}else{if(!l)if(t=wu(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Yu(e,t),za(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!At)return Lt(e),null}else 2*Oe()-a.renderingStartTime>Qu&&n!==536870912&&(e.flags|=128,l=!0,za(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Oe(),e.sibling=null,t=Ft.current,q(Ft,l?t&1|2:t&1),e):(Lt(e),null);case 22:case 23:return ln(e),mc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&Yu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Y(In),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),en(Wt),Lt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Ny(t,e){switch(ec(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return en(Wt),Xe(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return il(e),null;case 13:if(ln(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));oa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Ft),null;case 4:return Xe(),null;case 10:return en(e.type),null;case 22:case 23:return ln(e),mc(),t!==null&&Y(In),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return en(Wt),null;case 25:return null;default:return null}}function _o(t,e){switch(ec(e),e.tag){case 3:en(Wt),Xe();break;case 26:case 27:case 5:il(e);break;case 4:Xe();break;case 13:ln(e);break;case 19:Y(Ft);break;case 10:en(e.type);break;case 22:case 23:ln(e),mc(),t!==null&&Y(In);break;case 24:en(Wt)}}function Na(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var u=n.create,r=n.inst;l=u(),r.destroy=l}n=n.next}while(n!==a)}}catch(o){Ut(e,e.return,o)}}function Tn(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){var r=l.inst,o=r.destroy;if(o!==void 0){r.destroy=void 0,a=e;var d=n,S=o;try{S()}catch(z){Ut(a,d,z)}}}l=l.next}while(l!==u)}}catch(z){Ut(e,e.return,z)}}function Eo(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{sf(e,n)}catch(l){Ut(t,t.return,l)}}}function To(t,e,n){n.props=el(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Ut(t,e,l)}}function xa(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){Ut(t,e,a)}}function Ve(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Ut(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ut(t,e,a)}else n.current=null}function Ao(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Ut(t,t.return,a)}}function Qc(t,e,n){try{var l=t.stateNode;Jy(l,t.type,n,e),l[de]=e}catch(a){Ut(t,t.return,a)}}function Ro(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Un(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ro(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&&Un(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 $c(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Pu));else if(l!==4&&(l===27&&Un(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for($c(t,e,n),t=t.sibling;t!==null;)$c(t,e,n),t=t.sibling}function Xu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Un(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Xu(t,e,n),t=t.sibling;t!==null;)Xu(t,e,n),t=t.sibling}function Oo(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);ie(e,l,n),e[se]=t,e[de]=n}catch(u){Ut(t,t.return,u)}}var cn=!1,$t=!1,Zc=!1,zo=typeof WeakSet=="function"?WeakSet:Set,te=null;function xy(t,e){if(t=t.containerInfo,gs=ui,t=qr(t),Vi(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var r=0,o=-1,d=-1,S=0,z=0,U=t,_=null;e:for(;;){for(var E;U!==n||a!==0&&U.nodeType!==3||(o=r+a),U!==u||l!==0&&U.nodeType!==3||(d=r+l),U.nodeType===3&&(r+=U.nodeValue.length),(E=U.firstChild)!==null;)_=U,U=E;for(;;){if(U===t)break e;if(_===n&&++S===a&&(o=r),_===u&&++z===l&&(d=r),(E=U.nextSibling)!==null)break;U=_,_=U.parentNode}U=E}n=o===-1||d===-1?null:{start:o,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for(vs={focusedElem:t,selectionRange:n},ui=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,a=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var et=el(n.type,a,n.elementType===n.type);t=l.getSnapshotBeforeUpdate(et,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(F){Ut(n,n.return,F)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ss(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ss(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function No(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(t,n),l&4&&Na(5,n);break;case 1:if(An(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(r){Ut(n,n.return,r)}else{var a=el(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){Ut(n,n.return,r)}}l&64&&Eo(n),l&512&&xa(n,n.return);break;case 3:if(An(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{sf(t,e)}catch(r){Ut(n,n.return,r)}}break;case 27:e===null&&l&4&&Oo(n);case 26:case 5:An(t,n),e===null&&l&4&&Ao(n),l&512&&xa(n,n.return);break;case 12:An(t,n);break;case 13:An(t,n),l&4&&Uo(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=jy.bind(null,n),nm(t,n))));break;case 22:if(l=n.memoizedState!==null||cn,!l){e=e!==null&&e.memoizedState!==null||$t,a=cn;var u=$t;cn=l,($t=e)&&!u?Rn(t,n,(n.subtreeFlags&8772)!==0):An(t,n),cn=a,$t=u}break;case 30:break;default:An(t,n)}}function xo(t){var e=t.alternate;e!==null&&(t.alternate=null,xo(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ri(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 jt=null,ge=!1;function sn(t,e,n){for(n=n.child;n!==null;)Do(t,e,n),n=n.sibling}function Do(t,e,n){if(w&&typeof w.onCommitFiberUnmount=="function")try{w.onCommitFiberUnmount(N,n)}catch{}switch(n.tag){case 26:$t||Ve(n,e),sn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$t||Ve(n,e);var l=jt,a=ge;Un(n.type)&&(jt=n.stateNode,ge=!1),sn(t,e,n),ja(n.stateNode),jt=l,ge=a;break;case 5:$t||Ve(n,e);case 6:if(l=jt,a=ge,jt=null,sn(t,e,n),jt=l,ge=a,jt!==null)if(ge)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(n.stateNode)}catch(u){Ut(n,e,u)}else try{jt.removeChild(n.stateNode)}catch(u){Ut(n,e,u)}break;case 18:jt!==null&&(ge?(t=jt,ph(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Za(t)):ph(jt,n.stateNode));break;case 4:l=jt,a=ge,jt=n.stateNode.containerInfo,ge=!0,sn(t,e,n),jt=l,ge=a;break;case 0:case 11:case 14:case 15:$t||Tn(2,n,e),$t||Tn(4,n,e),sn(t,e,n);break;case 1:$t||(Ve(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&To(n,e,l)),sn(t,e,n);break;case 21:sn(t,e,n);break;case 22:$t=(l=$t)||n.memoizedState!==null,sn(t,e,n),$t=l;break;default:sn(t,e,n)}}function Uo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Za(t)}catch(n){Ut(e,e.return,n)}}function Dy(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zo),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zo),e;default:throw Error(s(435,t.tag))}}function kc(t,e){var n=Dy(t);e.forEach(function(l){var a=Ly.bind(null,t,l);n.has(l)||(n.add(l),l.then(a,a))})}function _e(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],u=t,r=e,o=r;t:for(;o!==null;){switch(o.tag){case 27:if(Un(o.type)){jt=o.stateNode,ge=!1;break t}break;case 5:jt=o.stateNode,ge=!1;break t;case 3:case 4:jt=o.stateNode.containerInfo,ge=!0;break t}o=o.return}if(jt===null)throw Error(s(160));Do(u,r,a),jt=null,ge=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)Mo(e,t),e=e.sibling}var je=null;function Mo(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:_e(e,t),Ee(t),l&4&&(Tn(3,t,t.return),Na(3,t),Tn(5,t,t.return));break;case 1:_e(e,t),Ee(t),l&512&&($t||n===null||Ve(n,n.return)),l&64&&cn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=je;if(_e(e,t),Ee(t),l&512&&($t||n===null||Ve(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Il]||u[se]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(l),a.head.insertBefore(u,a.querySelector("head > title"))),ie(u,l,n),u[se]=t,Pt(u),l=u;break t;case"link":var r=Oh("link","href",a).get(l+(n.href||""));if(r){for(var o=0;o<r.length;o++)if(u=r[o],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){r.splice(o,1);break e}}u=a.createElement(l),ie(u,l,n),a.head.appendChild(u);break;case"meta":if(r=Oh("meta","content",a).get(l+(n.content||""))){for(o=0;o<r.length;o++)if(u=r[o],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){r.splice(o,1);break e}}u=a.createElement(l),ie(u,l,n),a.head.appendChild(u);break;default:throw Error(s(468,l))}u[se]=t,Pt(u),l=u}t.stateNode=l}else zh(a,t.type,t.stateNode);else t.stateNode=Rh(a,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?zh(a,t.type,t.stateNode):Rh(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Qc(t,t.memoizedProps,n.memoizedProps)}break;case 27:_e(e,t),Ee(t),l&512&&($t||n===null||Ve(n,n.return)),n!==null&&l&4&&Qc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(_e(e,t),Ee(t),l&512&&($t||n===null||Ve(n,n.return)),t.flags&32){a=t.stateNode;try{gl(a,"")}catch(E){Ut(t,t.return,E)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,Qc(t,a,n!==null?n.memoizedProps:a)),l&1024&&(Zc=!0);break;case 6:if(_e(e,t),Ee(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(E){Ut(t,t.return,E)}}break;case 3:if(ni=null,a=je,je=ti(e.containerInfo),_e(e,t),je=a,Ee(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Za(e.containerInfo)}catch(E){Ut(t,t.return,E)}Zc&&(Zc=!1,Bo(t));break;case 4:l=je,je=ti(t.stateNode.containerInfo),_e(e,t),Ee(t),je=l;break;case 12:_e(e,t),Ee(t);break;case 13:_e(e,t),Ee(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ic=Oe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,kc(t,l)));break;case 22:a=t.memoizedState!==null;var d=n!==null&&n.memoizedState!==null,S=cn,z=$t;if(cn=S||a,$t=z||d,_e(e,t),$t=z,cn=S,Ee(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||d||cn||$t||nl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){d=n=e;try{if(u=d.stateNode,a)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{o=d.stateNode;var U=d.memoizedProps.style,_=U!=null&&U.hasOwnProperty("display")?U.display:null;o.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(E){Ut(d,d.return,E)}}}else if(e.tag===6){if(n===null){d=e;try{d.stateNode.nodeValue=a?"":d.memoizedProps}catch(E){Ut(d,d.return,E)}}}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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,kc(t,n))));break;case 19:_e(e,t),Ee(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,kc(t,l)));break;case 30:break;case 21:break;default:_e(e,t),Ee(t)}}function Ee(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Ro(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var a=n.stateNode,u=Vc(t);Xu(t,u,a);break;case 5:var r=n.stateNode;n.flags&32&&(gl(r,""),n.flags&=-33);var o=Vc(t);Xu(t,o,r);break;case 3:case 4:var d=n.stateNode.containerInfo,S=Vc(t);$c(t,S,d);break;default:throw Error(s(161))}}catch(z){Ut(t,t.return,z)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Bo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Bo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function An(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)No(t,e.alternate,e),e=e.sibling}function nl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Tn(4,e,e.return),nl(e);break;case 1:Ve(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&To(e,e.return,n),nl(e);break;case 27:ja(e.stateNode);case 26:case 5:Ve(e,e.return),nl(e);break;case 22:e.memoizedState===null&&nl(e);break;case 30:nl(e);break;default:nl(e)}t=t.sibling}}function Rn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,u=e,r=u.flags;switch(u.tag){case 0:case 11:case 15:Rn(a,u,n),Na(4,u);break;case 1:if(Rn(a,u,n),l=u,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(S){Ut(l,l.return,S)}if(l=u,a=l.updateQueue,a!==null){var o=l.stateNode;try{var d=a.shared.hiddenCallbacks;if(d!==null)for(a.shared.hiddenCallbacks=null,a=0;a<d.length;a++)cf(d[a],o)}catch(S){Ut(l,l.return,S)}}n&&r&64&&Eo(u),xa(u,u.return);break;case 27:Oo(u);case 26:case 5:Rn(a,u,n),n&&l===null&&r&4&&Ao(u),xa(u,u.return);break;case 12:Rn(a,u,n);break;case 13:Rn(a,u,n),n&&r&4&&Uo(a,u);break;case 22:u.memoizedState===null&&Rn(a,u,n),xa(u,u.return);break;case 30:break;default:Rn(a,u,n)}e=e.sibling}}function Kc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ya(n))}function Jc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ya(t))}function $e(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Co(t,e,n,l),e=e.sibling}function Co(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:$e(t,e,n,l),a&2048&&Na(9,e);break;case 1:$e(t,e,n,l);break;case 3:$e(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ya(t)));break;case 12:if(a&2048){$e(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,r=u.id,o=u.onPostCommit;typeof o=="function"&&o(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(d){Ut(e,e.return,d)}}else $e(t,e,n,l);break;case 13:$e(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,r=e.alternate,e.memoizedState!==null?u._visibility&2?$e(t,e,n,l):Da(t,e):u._visibility&2?$e(t,e,n,l):(u._visibility|=2,wl(t,e,n,l,(e.subtreeFlags&10256)!==0)),a&2048&&Kc(r,e);break;case 24:$e(t,e,n,l),a&2048&&Jc(e.alternate,e);break;default:$e(t,e,n,l)}}function wl(t,e,n,l,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,r=e,o=n,d=l,S=r.flags;switch(r.tag){case 0:case 11:case 15:wl(u,r,o,d,a),Na(8,r);break;case 23:break;case 22:var z=r.stateNode;r.memoizedState!==null?z._visibility&2?wl(u,r,o,d,a):Da(u,r):(z._visibility|=2,wl(u,r,o,d,a)),a&&S&2048&&Kc(r.alternate,r);break;case 24:wl(u,r,o,d,a),a&&S&2048&&Jc(r.alternate,r);break;default:wl(u,r,o,d,a)}e=e.sibling}}function Da(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:Da(n,l),a&2048&&Kc(l.alternate,l);break;case 24:Da(n,l),a&2048&&Jc(l.alternate,l);break;default:Da(n,l)}e=e.sibling}}var Ua=8192;function ql(t){if(t.subtreeFlags&Ua)for(t=t.child;t!==null;)wo(t),t=t.sibling}function wo(t){switch(t.tag){case 26:ql(t),t.flags&Ua&&t.memoizedState!==null&&mm(je,t.memoizedState,t.memoizedProps);break;case 5:ql(t);break;case 3:case 4:var e=je;je=ti(t.stateNode.containerInfo),ql(t),je=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Ua,Ua=16777216,ql(t),Ua=e):ql(t));break;default:ql(t)}}function qo(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 Ma(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];te=l,jo(l,t)}qo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ho(t),t=t.sibling}function Ho(t){switch(t.tag){case 0:case 11:case 15:Ma(t),t.flags&2048&&Tn(9,t,t.return);break;case 3:Ma(t);break;case 12:Ma(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Gu(t)):Ma(t);break;default:Ma(t)}}function Gu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];te=l,jo(l,t)}qo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Tn(8,e,e.return),Gu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Gu(e));break;default:Gu(e)}t=t.sibling}}function jo(t,e){for(;te!==null;){var n=te;switch(n.tag){case 0:case 11:case 15:Tn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ya(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,te=l;else t:for(n=t;te!==null;){l=te;var a=l.sibling,u=l.return;if(xo(l),l===n){te=null;break t}if(a!==null){a.return=u,te=a;break t}te=u}}}var Uy={getCacheForType:function(t){var e=re(Wt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},My=typeof WeakMap=="function"?WeakMap:Map,Rt=0,Ct=null,yt=null,pt=0,Ot=0,Te=null,On=!1,Hl=!1,Wc=!1,rn=0,Gt=0,zn=0,ll=0,Fc=0,Ce=0,jl=0,Ba=null,ve=null,Pc=!1,Ic=0,Qu=1/0,Vu=null,Nn=null,ue=0,xn=null,Ll=null,Yl=0,ts=0,es=null,Lo=null,Ca=0,ns=null;function Ae(){if((Rt&2)!==0&&pt!==0)return pt&-pt;if(A.T!==null){var t=zl;return t!==0?t:rs()}return Is()}function Yo(){Ce===0&&(Ce=(pt&536870912)===0||At?Pl():536870912);var t=Be.current;return t!==null&&(t.flags|=32),Ce}function Re(t,e,n){(t===Ct&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(Xl(t,0),Dn(t,pt,Ce,!1)),Xn(t,n),((Rt&2)===0||t!==Ct)&&(t===Ct&&((Rt&2)===0&&(ll|=n),Gt===4&&Dn(t,pt,Ce,!1)),Ze(t))}function Xo(t,e,n){if((Rt&6)!==0)throw Error(s(327));var l=!n&&(e&124)===0&&(e&t.expiredLanes)===0||pe(t,e),a=l?wy(t,e):us(t,e,!0),u=l;do{if(a===0){Hl&&!l&&Dn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!By(n)){a=us(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var o=t;a=Ba;var d=o.current.memoizedState.isDehydrated;if(d&&(Xl(o,r).flags|=256),r=us(o,r,!1),r!==2){if(Wc&&!d){o.errorRecoveryDisabledLanes|=u,ll|=u,a=4;break t}u=ve,ve=a,u!==null&&(ve===null?ve=u:ve.push.apply(ve,u))}a=r}if(u=!1,a!==2)continue}}if(a===1){Xl(t,0),Dn(t,e,0,!0);break}t:{switch(l=t,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Dn(l,e,Ce,!On);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Ic+300-Oe(),10<a)){if(Dn(l,e,Ce,!On),gt(l,0,!0)!==0)break t;l.timeoutHandle=gh(Go.bind(null,l,n,ve,Vu,Pc,e,Ce,ll,jl,On,u,2,-0,0),a);break t}Go(l,n,ve,Vu,Pc,e,Ce,ll,jl,On,u,0,-0,0)}}break}while(!0);Ze(t)}function Go(t,e,n,l,a,u,r,o,d,S,z,U,_,E){if(t.timeoutHandle=-1,U=e.subtreeFlags,(U&8192||(U&16785408)===16785408)&&(Xa={stylesheets:null,count:0,unsuspend:ym},wo(e),U=gm(),U!==null)){t.cancelPendingCommit=U(Jo.bind(null,t,e,u,n,l,a,r,o,d,z,1,_,E)),Dn(t,u,r,!S);return}Jo(t,e,u,n,l,a,r,o,d)}function By(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],u=a.getSnapshot;a=a.value;try{if(!be(u(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 Dn(t,e,n,l){e&=~Fc,e&=~ll,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var u=31-O(a),r=1<<u;l[u]=-1,a&=~r}n!==0&&sl(t,n,e)}function $u(){return(Rt&6)===0?(wa(0),!1):!0}function ls(){if(yt!==null){if(Ot===0)var t=yt.return;else t=yt,tn=Fn=null,Sc(t),Bl=null,Ra=0,t=yt;for(;t!==null;)_o(t.alternate,t),t=t.return;yt=null}}function Xl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Fy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ls(),Ct=t,yt=n=Fe(t.current,null),pt=e,Ot=0,Te=null,On=!1,Hl=pe(t,e),Wc=!1,jl=Ce=Fc=ll=zn=Gt=0,ve=Ba=null,Pc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-O(l),u=1<<a;e|=t[a],l&=~u}return rn=e,du(),n}function Qo(t,e){rt=null,A.H=Mu,e===ga||e===Eu?(e=af(),Ot=3):e===ef?(e=af(),Ot=4):Ot=e===io?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,yt===null&&(Gt=1,Hu(t,xe(e,t.current)))}function Vo(){var t=A.H;return A.H=Mu,t===null?Mu:t}function $o(){var t=A.A;return A.A=Uy,t}function as(){Gt=4,On||(pt&4194048)!==pt&&Be.current!==null||(Hl=!0),(zn&134217727)===0&&(ll&134217727)===0||Ct===null||Dn(Ct,pt,Ce,!1)}function us(t,e,n){var l=Rt;Rt|=2;var a=Vo(),u=$o();(Ct!==t||pt!==e)&&(Vu=null,Xl(t,e)),e=!1;var r=Gt;t:do try{if(Ot!==0&&yt!==null){var o=yt,d=Te;switch(Ot){case 8:ls(),r=6;break t;case 3:case 2:case 9:case 6:Be.current===null&&(e=!0);var S=Ot;if(Ot=0,Te=null,Gl(t,o,d,S),n&&Hl){r=0;break t}break;default:S=Ot,Ot=0,Te=null,Gl(t,o,d,S)}}Cy(),r=Gt;break}catch(z){Qo(t,z)}while(!0);return e&&t.shellSuspendCounter++,tn=Fn=null,Rt=l,A.H=a,A.A=u,yt===null&&(Ct=null,pt=0,du()),r}function Cy(){for(;yt!==null;)Zo(yt)}function wy(t,e){var n=Rt;Rt|=2;var l=Vo(),a=$o();Ct!==t||pt!==e?(Vu=null,Qu=Oe()+500,Xl(t,e)):Hl=pe(t,e);t:do try{if(Ot!==0&&yt!==null){e=yt;var u=Te;e:switch(Ot){case 1:Ot=0,Te=null,Gl(t,e,u,1);break;case 2:case 9:if(nf(u)){Ot=0,Te=null,ko(e);break}e=function(){Ot!==2&&Ot!==9||Ct!==t||(Ot=7),Ze(t)},u.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:nf(u)?(Ot=0,Te=null,ko(e)):(Ot=0,Te=null,Gl(t,e,u,7));break;case 5:var r=null;switch(yt.tag){case 26:r=yt.memoizedState;case 5:case 27:var o=yt;if(!r||Nh(r)){Ot=0,Te=null;var d=o.sibling;if(d!==null)yt=d;else{var S=o.return;S!==null?(yt=S,Zu(S)):yt=null}break e}}Ot=0,Te=null,Gl(t,e,u,5);break;case 6:Ot=0,Te=null,Gl(t,e,u,6);break;case 8:ls(),Gt=6;break t;default:throw Error(s(462))}}qy();break}catch(z){Qo(t,z)}while(!0);return tn=Fn=null,A.H=l,A.A=a,Rt=n,yt!==null?0:(Ct=null,pt=0,du(),Gt)}function qy(){for(;yt!==null&&!Wl();)Zo(yt)}function Zo(t){var e=bo(t.alternate,t,rn);t.memoizedProps=t.pendingProps,e===null?Zu(t):yt=e}function ko(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=ho(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=ho(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:Sc(e);default:_o(n,e),e=yt=Zr(e,rn),e=bo(n,e,rn)}t.memoizedProps=t.pendingProps,e===null?Zu(t):yt=e}function Gl(t,e,n,l){tn=Fn=null,Sc(e),Bl=null,Ra=0;var a=e.return;try{if(Ry(t,a,e,n,pt)){Gt=1,Hu(t,xe(n,t.current)),yt=null;return}}catch(u){if(a!==null)throw yt=a,u;Gt=1,Hu(t,xe(n,t.current)),yt=null;return}e.flags&32768?(At||l===1?t=!0:Hl||(pt&536870912)!==0?t=!1:(On=t=!0,(l===2||l===9||l===3||l===6)&&(l=Be.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ko(e,t)):Zu(e)}function Zu(t){var e=t;do{if((e.flags&32768)!==0){Ko(e,On);return}t=e.return;var n=zy(e.alternate,e,rn);if(n!==null){yt=n;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Gt===0&&(Gt=5)}function Ko(t,e){do{var n=Ny(t.alternate,t);if(n!==null){n.flags&=32767,yt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=n}while(t!==null);Gt=6,yt=null}function Jo(t,e,n,l,a,u,r,o,d){t.cancelPendingCommit=null;do ku();while(ue!==0);if((Rt&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=Ji,_i(t,n,u,r,o,d),t===Ct&&(yt=Ct=null,pt=0),Ll=e,xn=t,Yl=n,ts=u,es=a,Lo=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Yy(hn,function(){return th(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,a=j.p,j.p=2,r=Rt,Rt|=4;try{xy(t,e,n)}finally{Rt=r,j.p=a,A.T=l}}ue=1,Wo(),Fo(),Po()}}function Wo(){if(ue===1){ue=0;var t=xn,e=Ll,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=A.T,A.T=null;var l=j.p;j.p=2;var a=Rt;Rt|=4;try{Mo(e,t);var u=vs,r=qr(t.containerInfo),o=u.focusedElem,d=u.selectionRange;if(r!==o&&o&&o.ownerDocument&&wr(o.ownerDocument.documentElement,o)){if(d!==null&&Vi(o)){var S=d.start,z=d.end;if(z===void 0&&(z=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(z,o.value.length);else{var U=o.ownerDocument||document,_=U&&U.defaultView||window;if(_.getSelection){var E=_.getSelection(),et=o.textContent.length,F=Math.min(d.start,et),Dt=d.end===void 0?F:Math.min(d.end,et);!E.extend&&F>Dt&&(r=Dt,Dt=F,F=r);var p=Cr(o,F),m=Cr(o,Dt);if(p&&m&&(E.rangeCount!==1||E.anchorNode!==p.node||E.anchorOffset!==p.offset||E.focusNode!==m.node||E.focusOffset!==m.offset)){var b=U.createRange();b.setStart(p.node,p.offset),E.removeAllRanges(),F>Dt?(E.addRange(b),E.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),E.addRange(b))}}}}for(U=[],E=o;E=E.parentNode;)E.nodeType===1&&U.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<U.length;o++){var D=U[o];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}ui=!!gs,vs=gs=null}finally{Rt=a,j.p=l,A.T=n}}t.current=e,ue=2}}function Fo(){if(ue===2){ue=0;var t=xn,e=Ll,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=A.T,A.T=null;var l=j.p;j.p=2;var a=Rt;Rt|=4;try{No(t,e.alternate,e)}finally{Rt=a,j.p=l,A.T=n}}ue=3}}function Po(){if(ue===4||ue===3){ue=0,Ln();var t=xn,e=Ll,n=Yl,l=Lo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ue=5:(ue=0,Ll=xn=null,Io(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Nn=null),Ti(n),e=e.stateNode,w&&typeof w.onCommitFiberRoot=="function")try{w.onCommitFiberRoot(N,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=A.T,a=j.p,j.p=2,A.T=null;try{for(var u=t.onRecoverableError,r=0;r<l.length;r++){var o=l[r];u(o.value,{componentStack:o.stack})}}finally{A.T=e,j.p=a}}(Yl&3)!==0&&ku(),Ze(t),a=t.pendingLanes,(n&4194090)!==0&&(a&42)!==0?t===ns?Ca++:(Ca=0,ns=t):Ca=0,wa(0)}}function Io(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ya(e)))}function ku(t){return Wo(),Fo(),Po(),th()}function th(){if(ue!==5)return!1;var t=xn,e=ts;ts=0;var n=Ti(Yl),l=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=es,es=null;var u=xn,r=Yl;if(ue=0,Ll=xn=null,Yl=0,(Rt&6)!==0)throw Error(s(331));var o=Rt;if(Rt|=4,Ho(u.current),Co(u,u.current,r,n),Rt=o,wa(0,!1),w&&typeof w.onPostCommitFiberRoot=="function")try{w.onPostCommitFiberRoot(N,u)}catch{}return!0}finally{j.p=a,A.T=l,Io(t,e)}}function eh(t,e,n){e=xe(n,e),e=Cc(t.stateNode,e,2),t=bn(t,e,2),t!==null&&(Xn(t,2),Ze(t))}function Ut(t,e,n){if(t.tag===3)eh(t,t,n);else for(;e!==null;){if(e.tag===3){eh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Nn===null||!Nn.has(l))){t=xe(n,t),n=ao(2),l=bn(e,n,2),l!==null&&(uo(n,l,e,t),Xn(l,2),Ze(l));break}}e=e.return}}function is(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new My;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(Wc=!0,a.add(n),t=Hy.bind(null,t,e,n),e.then(t,t))}function Hy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Ct===t&&(pt&n)===n&&(Gt===4||Gt===3&&(pt&62914560)===pt&&300>Oe()-Ic?(Rt&2)===0&&Xl(t,0):Fc|=n,jl===pt&&(jl=0)),Ze(t)}function nh(t,e){e===0&&(e=Yn()),t=Tl(t,e),t!==null&&(Xn(t,e),Ze(t))}function jy(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),nh(t,n)}function Ly(t,e){var n=0;switch(t.tag){case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(e),nh(t,n)}function Yy(t,e){return Jl(t,e)}var Ku=null,Ql=null,cs=!1,Ju=!1,ss=!1,al=0;function Ze(t){t!==Ql&&t.next===null&&(Ql===null?Ku=Ql=t:Ql=Ql.next=t),Ju=!0,cs||(cs=!0,Gy())}function wa(t,e){if(!ss&&Ju){ss=!0;do for(var n=!1,l=Ku;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var u=0;else{var r=l.suspendedLanes,o=l.pingedLanes;u=(1<<31-O(42|t)+1)-1,u&=a&~(r&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,ih(l,u))}else u=pt,u=gt(l,l===Ct?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||pe(l,u)||(n=!0,ih(l,u));l=l.next}while(n);ss=!1}}function Xy(){lh()}function lh(){Ju=cs=!1;var t=0;al!==0&&(Wy()&&(t=al),al=0);for(var e=Oe(),n=null,l=Ku;l!==null;){var a=l.next,u=ah(l,e);u===0?(l.next=null,n===null?Ku=a:n.next=a,a===null&&(Ql=n)):(n=l,(t!==0||(u&3)!==0)&&(Ju=!0)),l=a}wa(t)}function ah(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var r=31-O(u),o=1<<r,d=a[r];d===-1?((o&n)===0||(o&l)!==0)&&(a[r]=dn(o,e)):d<=e&&(t.expiredLanes|=o),u&=~o}if(e=Ct,n=pt,n=gt(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&on(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||pe(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&on(l),Ti(n)){case 2:case 8:n=Pa;break;case 32:n=hn;break;case 268435456:n=Fl;break;default:n=hn}return l=uh.bind(null,t),n=Jl(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&on(l),t.callbackPriority=2,t.callbackNode=null,2}function uh(t,e){if(ue!==0&&ue!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(ku()&&t.callbackNode!==n)return null;var l=pt;return l=gt(t,t===Ct?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Xo(t,l,e),ah(t,Oe()),t.callbackNode!=null&&t.callbackNode===n?uh.bind(null,t):null)}function ih(t,e){if(ku())return null;Xo(t,e,!0)}function Gy(){Py(function(){(Rt&6)!==0?Jl(Fa,Xy):lh()})}function rs(){return al===0&&(al=Pl()),al}function ch(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:iu(""+t)}function sh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Qy(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var u=ch((a[de]||null).action),r=l.submitter;r&&(e=(e=r[de]||null)?ch(e.formAction):r.getAttribute("formAction"),e!==null&&(u=e,r=null));var o=new fu("action","action",null,l,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(al!==0){var d=r?sh(a,r):new FormData(a);xc(n,{pending:!0,data:d,method:a.method,action:u},null,d)}}else typeof u=="function"&&(o.preventDefault(),d=r?sh(a,r):new FormData(a),xc(n,{pending:!0,data:d,method:a.method,action:u},u,d))},currentTarget:a}]})}}for(var fs=0;fs<Ki.length;fs++){var os=Ki[fs],Vy=os.toLowerCase(),$y=os[0].toUpperCase()+os.slice(1);He(Vy,"on"+$y)}He(Lr,"onAnimationEnd"),He(Yr,"onAnimationIteration"),He(Xr,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(sy,"onTransitionRun"),He(ry,"onTransitionStart"),He(fy,"onTransitionCancel"),He(Gr,"onTransitionEnd"),dl("onMouseEnter",["mouseout","mouseover"]),dl("onMouseLeave",["mouseout","mouseover"]),dl("onPointerEnter",["pointerout","pointerover"]),dl("onPointerLeave",["pointerout","pointerover"]),Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qa="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qa));function rh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var r=l.length-1;0<=r;r--){var o=l[r],d=o.instance,S=o.currentTarget;if(o=o.listener,d!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=S;try{u(a)}catch(z){qu(z)}a.currentTarget=null,u=d}else for(r=0;r<l.length;r++){if(o=l[r],d=o.instance,S=o.currentTarget,o=o.listener,d!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=S;try{u(a)}catch(z){qu(z)}a.currentTarget=null,u=d}}}}function mt(t,e){var n=e[Ai];n===void 0&&(n=e[Ai]=new Set);var l=t+"__bubble";n.has(l)||(fh(e,t,2,!1),n.add(l))}function hs(t,e,n){var l=0;e&&(l|=4),fh(n,t,l,e)}var Wu="_reactListening"+Math.random().toString(36).slice(2);function ds(t){if(!t[Wu]){t[Wu]=!0,er.forEach(function(n){n!=="selectionchange"&&(Zy.has(n)||hs(n,!1,t),hs(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Wu]||(e[Wu]=!0,hs("selectionchange",!1,e))}}function fh(t,e,n,l){switch(Ch(e)){case 2:var a=bm;break;case 8:a=Sm;break;default:a=zs}n=a.bind(null,e,n,t),a=void 0,!wi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function ys(t,e,n,l,a){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var r=l.tag;if(r===3||r===4){var o=l.stateNode.containerInfo;if(o===a)break;if(r===4)for(r=l.return;r!==null;){var d=r.tag;if((d===3||d===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;o!==null;){if(r=fl(o),r===null)return;if(d=r.tag,d===5||d===6||d===26||d===27){l=u=r;continue t}o=o.parentNode}}l=l.return}mr(function(){var S=u,z=Bi(n),U=[];t:{var _=Qr.get(t);if(_!==void 0){var E=fu,et=t;switch(t){case"keypress":if(su(n)===0)break t;case"keydown":case"keyup":E=Yd;break;case"focusin":et="focus",E=Li;break;case"focusout":et="blur",E=Li;break;case"beforeblur":case"afterblur":E=Li;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":E=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":E=Nd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":E=Qd;break;case Lr:case Yr:case Xr:E=Ud;break;case Gr:E=$d;break;case"scroll":case"scrollend":E=Od;break;case"wheel":E=kd;break;case"copy":case"cut":case"paste":E=Bd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":E=Sr;break;case"toggle":case"beforetoggle":E=Jd}var F=(e&4)!==0,Dt=!F&&(t==="scroll"||t==="scrollend"),p=F?_!==null?_+"Capture":null:_;F=[];for(var m=S,b;m!==null;){var D=m;if(b=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||b===null||p===null||(D=ea(m,p),D!=null&&F.push(Ha(m,D,b))),Dt)break;m=m.return}0<F.length&&(_=new E(_,et,null,n,z),U.push({event:_,listeners:F}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",E=t==="mouseout"||t==="pointerout",_&&n!==Mi&&(et=n.relatedTarget||n.fromElement)&&(fl(et)||et[rl]))break t;if((E||_)&&(_=z.window===z?z:(_=z.ownerDocument)?_.defaultView||_.parentWindow:window,E?(et=n.relatedTarget||n.toElement,E=S,et=et?fl(et):null,et!==null&&(Dt=R(et),F=et.tag,et!==Dt||F!==5&&F!==27&&F!==6)&&(et=null)):(E=null,et=S),E!==et)){if(F=pr,D="onMouseLeave",p="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(F=Sr,D="onPointerLeave",p="onPointerEnter",m="pointer"),Dt=E==null?_:ta(E),b=et==null?_:ta(et),_=new F(D,m+"leave",E,n,z),_.target=Dt,_.relatedTarget=b,D=null,fl(z)===S&&(F=new F(p,m+"enter",et,n,z),F.target=b,F.relatedTarget=Dt,D=F),Dt=D,E&&et)e:{for(F=E,p=et,m=0,b=F;b;b=Vl(b))m++;for(b=0,D=p;D;D=Vl(D))b++;for(;0<m-b;)F=Vl(F),m--;for(;0<b-m;)p=Vl(p),b--;for(;m--;){if(F===p||p!==null&&F===p.alternate)break e;F=Vl(F),p=Vl(p)}F=null}else F=null;E!==null&&oh(U,_,E,F,!1),et!==null&&Dt!==null&&oh(U,Dt,et,F,!0)}}t:{if(_=S?ta(S):window,E=_.nodeName&&_.nodeName.toLowerCase(),E==="select"||E==="input"&&_.type==="file")var $=Nr;else if(Or(_))if(xr)$=uy;else{$=ly;var ot=ny}else E=_.nodeName,!E||E.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?S&&Ui(S.elementType)&&($=Nr):$=ay;if($&&($=$(t,S))){zr(U,$,n,z);break t}ot&&ot(t,_,S),t==="focusout"&&S&&_.type==="number"&&S.memoizedProps.value!=null&&Di(_,"number",_.value)}switch(ot=S?ta(S):window,t){case"focusin":(Or(ot)||ot.contentEditable==="true")&&(Sl=ot,$i=S,ra=null);break;case"focusout":ra=$i=Sl=null;break;case"mousedown":Zi=!0;break;case"contextmenu":case"mouseup":case"dragend":Zi=!1,Hr(U,n,z);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":Hr(U,n,z)}var J;if(Xi)t:{switch(t){case"compositionstart":var I="onCompositionStart";break t;case"compositionend":I="onCompositionEnd";break t;case"compositionupdate":I="onCompositionUpdate";break t}I=void 0}else bl?Ar(t,n)&&(I="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(_r&&n.locale!=="ko"&&(bl||I!=="onCompositionStart"?I==="onCompositionEnd"&&bl&&(J=gr()):(mn=z,qi="value"in mn?mn.value:mn.textContent,bl=!0)),ot=Fu(S,I),0<ot.length&&(I=new br(I,t,null,n,z),U.push({event:I,listeners:ot}),J?I.data=J:(J=Rr(n),J!==null&&(I.data=J)))),(J=Fd?Pd(t,n):Id(t,n))&&(I=Fu(S,"onBeforeInput"),0<I.length&&(ot=new br("onBeforeInput","beforeinput",null,n,z),U.push({event:ot,listeners:I}),ot.data=J)),Qy(U,t,S,n,z)}rh(U,e)})}function Ha(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Fu(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=ea(t,n),a!=null&&l.unshift(Ha(t,a,u)),a=ea(t,e),a!=null&&l.push(Ha(t,a,u))),t.tag===3)return l;t=t.return}return[]}function Vl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function oh(t,e,n,l,a){for(var u=e._reactName,r=[];n!==null&&n!==l;){var o=n,d=o.alternate,S=o.stateNode;if(o=o.tag,d!==null&&d===l)break;o!==5&&o!==26&&o!==27||S===null||(d=S,a?(S=ea(n,u),S!=null&&r.unshift(Ha(n,S,d))):a||(S=ea(n,u),S!=null&&r.push(Ha(n,S,d)))),n=n.return}r.length!==0&&t.push({event:e,listeners:r})}var ky=/\r\n?/g,Ky=/\u0000|\uFFFD/g;function hh(t){return(typeof t=="string"?t:""+t).replace(ky,`
`).replace(Ky,"")}function dh(t,e){return e=hh(e),hh(t)===e}function Pu(){}function xt(t,e,n,l,a,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||gl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&gl(t,""+l);break;case"className":lu(t,"class",l);break;case"tabIndex":lu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(t,n,l);break;case"style":dr(t,l,u);break;case"data":if(e!=="object"){lu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=iu(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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"&&(n==="formAction"?(e!=="input"&&xt(t,e,"name",a.name,a,null),xt(t,e,"formEncType",a.formEncType,a,null),xt(t,e,"formMethod",a.formMethod,a,null),xt(t,e,"formTarget",a.formTarget,a,null)):(xt(t,e,"encType",a.encType,a,null),xt(t,e,"method",a.method,a,null),xt(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=iu(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Pu);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=iu(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":mt("beforetoggle",t),mt("toggle",t),nu(t,"popover",l);break;case"xlinkActuate":Je(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Je(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Je(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Je(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Je(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Je(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Je(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Je(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Je(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":nu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ad.get(n)||n,nu(t,n,l))}}function ms(t,e,n,l,a,u){switch(n){case"style":dr(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof l=="string"?gl(t,l):(typeof l=="number"||typeof l=="bigint")&&gl(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Pu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),u=t[de]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):nu(t,n,l)}}}function ie(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,a=!1,u;for(u in n)if(n.hasOwnProperty(u)){var r=n[u];if(r!=null)switch(u){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:xt(t,e,u,r,n,null)}}a&&xt(t,e,"srcSet",n.srcSet,n,null),l&&xt(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var o=u=r=a=null,d=null,S=null;for(l in n)if(n.hasOwnProperty(l)){var z=n[l];if(z!=null)switch(l){case"name":a=z;break;case"type":r=z;break;case"checked":d=z;break;case"defaultChecked":S=z;break;case"value":u=z;break;case"defaultValue":o=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,e));break;default:xt(t,e,l,z,n,null)}}rr(t,u,o,d,S,r,a,!1),au(t);return;case"select":mt("invalid",t),l=r=u=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":u=o;break;case"defaultValue":r=o;break;case"multiple":l=o;default:xt(t,e,a,o,n,null)}e=u,n=r,t.multiple=!!l,e!=null?ml(t,!!l,e,!1):n!=null&&ml(t,!!l,n,!0);return;case"textarea":mt("invalid",t),u=a=l=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":l=o;break;case"defaultValue":a=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:xt(t,e,r,o,n,null)}or(t,l,a,u),au(t);return;case"option":for(d in n)if(n.hasOwnProperty(d)&&(l=n[d],l!=null))switch(d){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:xt(t,e,d,l,n,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<qa.length;l++)mt(qa[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("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(S in n)if(n.hasOwnProperty(S)&&(l=n[S],l!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:xt(t,e,S,l,n,null)}return;default:if(Ui(e)){for(z in n)n.hasOwnProperty(z)&&(l=n[z],l!==void 0&&ms(t,e,z,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&xt(t,e,o,l,n,null))}function Jy(t,e,n,l){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,r=null,o=null,d=null,S=null,z=null;for(E in n){var U=n[E];if(n.hasOwnProperty(E)&&U!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":d=U;default:l.hasOwnProperty(E)||xt(t,e,E,null,l,U)}}for(var _ in l){var E=l[_];if(U=n[_],l.hasOwnProperty(_)&&(E!=null||U!=null))switch(_){case"type":u=E;break;case"name":a=E;break;case"checked":S=E;break;case"defaultChecked":z=E;break;case"value":r=E;break;case"defaultValue":o=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(137,e));break;default:E!==U&&xt(t,e,_,E,l,U)}}xi(t,r,o,d,S,z,u,a);return;case"select":E=r=o=_=null;for(u in n)if(d=n[u],n.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":E=d;default:l.hasOwnProperty(u)||xt(t,e,u,null,l,d)}for(a in l)if(u=l[a],d=n[a],l.hasOwnProperty(a)&&(u!=null||d!=null))switch(a){case"value":_=u;break;case"defaultValue":o=u;break;case"multiple":r=u;default:u!==d&&xt(t,e,a,u,l,d)}e=o,n=r,l=E,_!=null?ml(t,!!n,_,!1):!!l!=!!n&&(e!=null?ml(t,!!n,e,!0):ml(t,!!n,n?[]:"",!1));return;case"textarea":E=_=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!l.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:xt(t,e,o,null,l,a)}for(r in l)if(a=l[r],u=n[r],l.hasOwnProperty(r)&&(a!=null||u!=null))switch(r){case"value":_=a;break;case"defaultValue":E=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&xt(t,e,r,a,l,u)}fr(t,_,E);return;case"option":for(var et in n)if(_=n[et],n.hasOwnProperty(et)&&_!=null&&!l.hasOwnProperty(et))switch(et){case"selected":t.selected=!1;break;default:xt(t,e,et,null,l,_)}for(d in l)if(_=l[d],E=n[d],l.hasOwnProperty(d)&&_!==E&&(_!=null||E!=null))switch(d){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:xt(t,e,d,_,l,E)}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 F in n)_=n[F],n.hasOwnProperty(F)&&_!=null&&!l.hasOwnProperty(F)&&xt(t,e,F,null,l,_);for(S in l)if(_=l[S],E=n[S],l.hasOwnProperty(S)&&_!==E&&(_!=null||E!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:xt(t,e,S,_,l,E)}return;default:if(Ui(e)){for(var Dt in n)_=n[Dt],n.hasOwnProperty(Dt)&&_!==void 0&&!l.hasOwnProperty(Dt)&&ms(t,e,Dt,void 0,l,_);for(z in l)_=l[z],E=n[z],!l.hasOwnProperty(z)||_===E||_===void 0&&E===void 0||ms(t,e,z,_,l,E);return}}for(var p in n)_=n[p],n.hasOwnProperty(p)&&_!=null&&!l.hasOwnProperty(p)&&xt(t,e,p,null,l,_);for(U in l)_=l[U],E=n[U],!l.hasOwnProperty(U)||_===E||_==null&&E==null||xt(t,e,U,_,l,E)}var gs=null,vs=null;function Iu(t){return t.nodeType===9?t:t.ownerDocument}function yh(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 mh(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 ps(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 bs=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===bs?!1:(bs=t,!0):(bs=null,!1)}var gh=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,vh=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof vh<"u"?function(t){return vh.resolve(null).then(t).catch(Iy)}:gh;function Iy(t){setTimeout(function(){throw t})}function Un(t){return t==="head"}function ph(t,e){var n=e,l=0,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"){if(0<l&&8>l){n=l;var r=t.ownerDocument;if(n&1&&ja(r.documentElement),n&2&&ja(r.body),n&4)for(n=r.head,ja(n),r=n.firstChild;r;){var o=r.nextSibling,d=r.nodeName;r[Il]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}if(a===0){t.removeChild(u),Za(e);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:l=n.charCodeAt(0)-48;else l=0;n=u}while(n);Za(e)}function Ss(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ss(n),Ri(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function tm(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Il])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=Le(t.nextSibling),t===null)break}return null}function em(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function _s(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function nm(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Le(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==="F!"||e==="F")break;if(e==="/$")return null}}return t}var Es=null;function bh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function Sh(t,e,n){switch(e=Iu(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function ja(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ri(t)}var we=new Map,_h=new Set;function ti(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var fn=j.d;j.d={f:lm,r:am,D:um,C:im,L:cm,m:sm,X:fm,S:rm,M:om};function lm(){var t=fn.f(),e=$u();return t||e}function am(t){var e=ol(t);e!==null&&e.tag===5&&e.type==="form"?Yf(e):fn.r(t)}var $l=typeof document>"u"?null:document;function Eh(t,e,n){var l=$l;if(l&&typeof e=="string"&&e){var a=Ne(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),_h.has(a)||(_h.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),ie(e,"link",t),Pt(e),l.head.appendChild(e)))}}function um(t){fn.D(t),Eh("dns-prefetch",t,null)}function im(t,e){fn.C(t,e),Eh("preconnect",t,e)}function cm(t,e,n){fn.L(t,e,n);var l=$l;if(l&&t&&e){var a='link[rel="preload"][as="'+Ne(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Ne(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Ne(n.imageSizes)+'"]')):a+='[href="'+Ne(t)+'"]';var u=a;switch(e){case"style":u=Zl(t);break;case"script":u=kl(t)}we.has(u)||(t=H({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(u,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(La(u))||e==="script"&&l.querySelector(Ya(u))||(e=l.createElement("link"),ie(e,"link",t),Pt(e),l.head.appendChild(e)))}}function sm(t,e){fn.m(t,e);var n=$l;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ne(l)+'"][href="'+Ne(t)+'"]',u=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=kl(t)}if(!we.has(u)&&(t=H({rel:"modulepreload",href:t},e),we.set(u,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ya(u)))return}l=n.createElement("link"),ie(l,"link",t),Pt(l),n.head.appendChild(l)}}}function rm(t,e,n){fn.S(t,e,n);var l=$l;if(l&&t){var a=hl(l).hoistableStyles,u=Zl(t);e=e||"default";var r=a.get(u);if(!r){var o={loading:0,preload:null};if(r=l.querySelector(La(u)))o.loading=5;else{t=H({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(u))&&Ts(t,n);var d=r=l.createElement("link");Pt(d),ie(d,"link",t),d._p=new Promise(function(S,z){d.onload=S,d.onerror=z}),d.addEventListener("load",function(){o.loading|=1}),d.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ei(r,e,l)}r={type:"stylesheet",instance:r,count:1,state:o},a.set(u,r)}}}function fm(t,e){fn.X(t,e);var n=$l;if(n&&t){var l=hl(n).hoistableScripts,a=kl(t),u=l.get(a);u||(u=n.querySelector(Ya(a)),u||(t=H({src:t,async:!0},e),(e=we.get(a))&&As(t,e),u=n.createElement("script"),Pt(u),ie(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function om(t,e){fn.M(t,e);var n=$l;if(n&&t){var l=hl(n).hoistableScripts,a=kl(t),u=l.get(a);u||(u=n.querySelector(Ya(a)),u||(t=H({src:t,async:!0,type:"module"},e),(e=we.get(a))&&As(t,e),u=n.createElement("script"),Pt(u),ie(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function Th(t,e,n,l){var a=(a=lt.current)?ti(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Zl(n.href),n=hl(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Zl(n.href);var u=hl(a).hoistableStyles,r=u.get(t);if(r||(a=a.ownerDocument||a,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,r),(u=a.querySelector(La(t)))&&!u._p&&(r.instance=u,r.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),u||hm(a,t,n,r.state))),e&&l===null)throw Error(s(528,""));return r}if(e&&l!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=kl(n),n=hl(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Zl(t){return'href="'+Ne(t)+'"'}function La(t){return'link[rel="stylesheet"]['+t+"]"}function Ah(t){return H({},t,{"data-precedence":t.precedence,precedence:null})}function hm(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ie(e,"link",n),Pt(e),t.head.appendChild(e))}function kl(t){return'[src="'+Ne(t)+'"]'}function Ya(t){return"script[async]"+t}function Rh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ne(n.href)+'"]');if(l)return e.instance=l,Pt(l),l;var a=H({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Pt(l),ie(l,"style",a),ei(l,n.precedence,t),e.instance=l;case"stylesheet":a=Zl(n.href);var u=t.querySelector(La(a));if(u)return e.state.loading|=4,e.instance=u,Pt(u),u;l=Ah(n),(a=we.get(a))&&Ts(l,a),u=(t.ownerDocument||t).createElement("link"),Pt(u);var r=u;return r._p=new Promise(function(o,d){r.onload=o,r.onerror=d}),ie(u,"link",l),e.state.loading|=4,ei(u,n.precedence,t),e.instance=u;case"script":return u=kl(n.src),(a=t.querySelector(Ya(u)))?(e.instance=a,Pt(a),a):(l=n,(a=we.get(u))&&(l=H({},n),As(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Pt(a),ie(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,ei(l,n.precedence,t));return e.instance}function ei(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,u=a,r=0;r<l.length;r++){var o=l[r];if(o.dataset.precedence===e)u=o;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ts(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function As(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ni=null;function Oh(t,e,n){if(ni===null){var l=new Map,a=ni=new Map;a.set(n,l)}else a=ni,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var u=n[a];if(!(u[Il]||u[se]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(e)||"";r=t+r;var o=l.get(r);o?o.push(u):l.set(r,[u])}}return l}function zh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function dm(t,e,n){if(n===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 Nh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Xa=null;function ym(){}function mm(t,e,n){if(Xa===null)throw Error(s(475));var l=Xa;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Zl(n.href),u=t.querySelector(La(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=li.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Pt(u);return}u=t.ownerDocument||t,n=Ah(n),(a=we.get(a))&&Ts(n,a),u=u.createElement("link"),Pt(u);var r=u;r._p=new Promise(function(o,d){r.onload=o,r.onerror=d}),ie(u,"link",n),e.instance=u}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=li.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function gm(){if(Xa===null)throw Error(s(475));var t=Xa;return t.stylesheets&&t.count===0&&Rs(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Rs(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function li(){if(this.count--,this.count===0){if(this.stylesheets)Rs(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ai=null;function Rs(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ai=new Map,e.forEach(vm,t),ai=null,li.call(t))}function vm(t,e){if(!(e.state.loading&4)){var n=ai.get(t);if(n)var l=n.get(null);else{n=new Map,ai.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var r=a[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(n.set(r.dataset.precedence,r),l=r)}l&&n.set(null,l)}a=e.instance,r=a.getAttribute("data-precedence"),u=n.get(r)||l,u===l&&n.set(null,a),n.set(r,a),this.count++,l=li.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ga={$$typeof:wt,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function pm(t,e,n,l,a,u,r,o){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=cl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.hiddenUpdates=cl(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function xh(t,e,n,l,a,u,r,o,d,S,z,U){return t=new pm(t,e,n,r,o,d,S,U),e=1,u===!0&&(e|=24),u=Se(3,null,null,e),t.current=u,u.stateNode=t,e=ic(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},fc(u),t}function Dh(t){return t?(t=Al,t):Al}function Uh(t,e,n,l,a,u){a=Dh(a),l.context===null?l.context=a:l.pendingContext=a,l=pn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=bn(t,l,e),n!==null&&(Re(n,t,e),pa(n,t,e))}function Mh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Os(t,e){Mh(t,e),(t=t.alternate)&&Mh(t,e)}function Bh(t){if(t.tag===13){var e=Tl(t,67108864);e!==null&&Re(e,t,67108864),Os(t,67108864)}}var ui=!0;function bm(t,e,n,l){var a=A.T;A.T=null;var u=j.p;try{j.p=2,zs(t,e,n,l)}finally{j.p=u,A.T=a}}function Sm(t,e,n,l){var a=A.T;A.T=null;var u=j.p;try{j.p=8,zs(t,e,n,l)}finally{j.p=u,A.T=a}}function zs(t,e,n,l){if(ui){var a=Ns(l);if(a===null)ys(t,e,l,ii,n),wh(t,l);else if(Em(a,t,e,n,l))l.stopPropagation();else if(wh(t,l),e&4&&-1<_m.indexOf(t)){for(;a!==null;){var u=ol(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=qt(u.pendingLanes);if(r!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;r;){var d=1<<31-O(r);o.entanglements[1]|=d,r&=~d}Ze(u),(Rt&6)===0&&(Qu=Oe()+500,wa(0))}}break;case 13:o=Tl(u,2),o!==null&&Re(o,u,2),$u(),Os(u,2)}if(u=Ns(l),u===null&&ys(t,e,l,ii,n),u===a)break;a=u}a!==null&&l.stopPropagation()}else ys(t,e,l,null,n)}}function Ns(t){return t=Bi(t),xs(t)}var ii=null;function xs(t){if(ii=null,t=fl(t),t!==null){var e=R(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=C(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ii=t,null}function Ch(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(Si()){case Fa:return 2;case Pa:return 8;case hn:case Ia:return 32;case Fl:return 268435456;default:return 32}default:return 32}}var Ds=!1,Mn=null,Bn=null,Cn=null,Qa=new Map,Va=new Map,wn=[],_m="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 wh(t,e){switch(t){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":Bn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":Qa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Va.delete(e.pointerId)}}function $a(t,e,n,l,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[a]},e!==null&&(e=ol(e),e!==null&&Bh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Em(t,e,n,l,a){switch(e){case"focusin":return Mn=$a(Mn,t,e,n,l,a),!0;case"dragenter":return Bn=$a(Bn,t,e,n,l,a),!0;case"mouseover":return Cn=$a(Cn,t,e,n,l,a),!0;case"pointerover":var u=a.pointerId;return Qa.set(u,$a(Qa.get(u)||null,t,e,n,l,a)),!0;case"gotpointercapture":return u=a.pointerId,Va.set(u,$a(Va.get(u)||null,t,e,n,l,a)),!0}return!1}function qh(t){var e=fl(t.target);if(e!==null){var n=R(e);if(n!==null){if(e=n.tag,e===13){if(e=C(n),e!==null){t.blockedOn=e,md(t.priority,function(){if(n.tag===13){var l=Ae();l=Ei(l);var a=Tl(n,l);a!==null&&Re(a,n,l),Os(n,l)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ci(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ns(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Mi=l,n.target.dispatchEvent(l),Mi=null}else return e=ol(n),e!==null&&Bh(e),t.blockedOn=n,!1;e.shift()}return!0}function Hh(t,e,n){ci(t)&&n.delete(e)}function Tm(){Ds=!1,Mn!==null&&ci(Mn)&&(Mn=null),Bn!==null&&ci(Bn)&&(Bn=null),Cn!==null&&ci(Cn)&&(Cn=null),Qa.forEach(Hh),Va.forEach(Hh)}function si(t,e){t.blockedOn===e&&(t.blockedOn=null,Ds||(Ds=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Tm)))}var ri=null;function jh(t){ri!==t&&(ri=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){ri===t&&(ri=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(xs(l||n)===null)continue;break}var u=ol(n);u!==null&&(t.splice(e,3),e-=3,xc(u,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Za(t){function e(d){return si(d,t)}Mn!==null&&si(Mn,t),Bn!==null&&si(Bn,t),Cn!==null&&si(Cn,t),Qa.forEach(e),Va.forEach(e);for(var n=0;n<wn.length;n++){var l=wn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<wn.length&&(n=wn[0],n.blockedOn===null);)qh(n),n.blockedOn===null&&wn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],u=n[l+1],r=a[de]||null;if(typeof u=="function")r||jh(n);else if(r){var o=null;if(u&&u.hasAttribute("formAction")){if(a=u,r=u[de]||null)o=r.formAction;else if(xs(a)!==null)continue}else o=r.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),jh(n)}}}function Us(t){this._internalRoot=t}fi.prototype.render=Us.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=Ae();Uh(n,l,t,e,null,null)},fi.prototype.unmount=Us.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Uh(t.current,2,null,t,null,null),$u(),e[rl]=null}};function fi(t){this._internalRoot=t}fi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Is();t={blockedOn:null,target:t,priority:e};for(var n=0;n<wn.length&&e!==0&&e<wn[n].priority;n++);wn.splice(n,0,t),n===0&&qh(t)}};var Lh=i.version;if(Lh!=="19.1.1")throw Error(s(527,Lh,"19.1.1"));j.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=B(e),t=t!==null?T(t):null,t=t===null?null:t.stateNode,t};var Am={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{N=oi.inject(Am),w=oi}catch{}}return Ka.createRoot=function(t,e){if(!v(t))throw Error(s(299));var n=!1,l="",a=to,u=eo,r=no,o=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=xh(t,1,!1,null,null,n,l,a,u,r,o,null),t[rl]=e.current,ds(t),new Us(e)},Ka.hydrateRoot=function(t,e,n){if(!v(t))throw Error(s(299));var l=!1,a="",u=to,r=eo,o=no,d=null,S=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(r=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(d=n.unstable_transitionCallbacks),n.formState!==void 0&&(S=n.formState)),e=xh(t,1,!0,e,n??null,l,a,u,r,o,d,S),e.context=Dh(null),n=e.current,l=Ae(),l=Ei(l),a=pn(l),a.callback=null,bn(n,a,l),n=l,e.current.lanes=n,Xn(e,n),Ze(e),t[rl]=e.current,ds(t),new fi(e)},Ka.version="19.1.1",Ka}var Jh;function Cm(){if(Jh)return Cs.exports;Jh=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(i){console.error(i)}}return f(),Cs.exports=Bm(),Cs.exports}var wm=Cm();const Ke=Object.create(null);Ke.open="0";Ke.close="1";Ke.ping="2";Ke.pong="3";Ke.message="4";Ke.upgrade="5";Ke.noop="6";const yi=Object.create(null);Object.keys(Ke).forEach(f=>{yi[Ke[f]]=f});const Xs={type:"error",data:"parser error"},nd=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ld=typeof ArrayBuffer=="function",ad=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,Ks=({type:f,data:i},c,s)=>nd&&i instanceof Blob?c?s(i):Wh(i,s):ld&&(i instanceof ArrayBuffer||ad(i))?c?s(i):Wh(new Blob([i]),s):s(Ke[f]+(i||"")),Wh=(f,i)=>{const c=new FileReader;return c.onload=function(){const s=c.result.split(",")[1];i("b"+(s||""))},c.readAsDataURL(f)};function Fh(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let js;function qm(f,i){if(nd&&f.data instanceof Blob)return f.data.arrayBuffer().then(Fh).then(i);if(ld&&(f.data instanceof ArrayBuffer||ad(f.data)))return i(Fh(f.data));Ks(f,!1,c=>{js||(js=new TextEncoder),i(js.encode(c))})}const Ph="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let f=0;f<Ph.length;f++)Wa[Ph.charCodeAt(f)]=f;const Hm=f=>{let i=f.length*.75,c=f.length,s,v=0,R,C,k,B;f[f.length-1]==="="&&(i--,f[f.length-2]==="="&&i--);const T=new ArrayBuffer(i),H=new Uint8Array(T);for(s=0;s<c;s+=4)R=Wa[f.charCodeAt(s)],C=Wa[f.charCodeAt(s+1)],k=Wa[f.charCodeAt(s+2)],B=Wa[f.charCodeAt(s+3)],H[v++]=R<<2|C>>4,H[v++]=(C&15)<<4|k>>2,H[v++]=(k&3)<<6|B&63;return T},jm=typeof ArrayBuffer=="function",Js=(f,i)=>{if(typeof f!="string")return{type:"message",data:ud(f,i)};const c=f.charAt(0);return c==="b"?{type:"message",data:Lm(f.substring(1),i)}:yi[c]?f.length>1?{type:yi[c],data:f.substring(1)}:{type:yi[c]}:Xs},Lm=(f,i)=>{if(jm){const c=Hm(f);return ud(c,i)}else return{base64:!0,data:f}},ud=(f,i)=>{switch(i){case"blob":return f instanceof Blob?f:new Blob([f]);case"arraybuffer":default:return f instanceof ArrayBuffer?f:f.buffer}},id="",Ym=(f,i)=>{const c=f.length,s=new Array(c);let v=0;f.forEach((R,C)=>{Ks(R,!1,k=>{s[C]=k,++v===c&&i(s.join(id))})})},Xm=(f,i)=>{const c=f.split(id),s=[];for(let v=0;v<c.length;v++){const R=Js(c[v],i);if(s.push(R),R.type==="error")break}return s};function Gm(){return new TransformStream({transform(f,i){qm(f,c=>{const s=c.length;let v;if(s<126)v=new Uint8Array(1),new DataView(v.buffer).setUint8(0,s);else if(s<65536){v=new Uint8Array(3);const R=new DataView(v.buffer);R.setUint8(0,126),R.setUint16(1,s)}else{v=new Uint8Array(9);const R=new DataView(v.buffer);R.setUint8(0,127),R.setBigUint64(1,BigInt(s))}f.data&&typeof f.data!="string"&&(v[0]|=128),i.enqueue(v),i.enqueue(c)})}})}let Ls;function hi(f){return f.reduce((i,c)=>i+c.length,0)}function di(f,i){if(f[0].length===i)return f.shift();const c=new Uint8Array(i);let s=0;for(let v=0;v<i;v++)c[v]=f[0][s++],s===f[0].length&&(f.shift(),s=0);return f.length&&s<f[0].length&&(f[0]=f[0].slice(s)),c}function Qm(f,i){Ls||(Ls=new TextDecoder);const c=[];let s=0,v=-1,R=!1;return new TransformStream({transform(C,k){for(c.push(C);;){if(s===0){if(hi(c)<1)break;const B=di(c,1);R=(B[0]&128)===128,v=B[0]&127,v<126?s=3:v===126?s=1:s=2}else if(s===1){if(hi(c)<2)break;const B=di(c,2);v=new DataView(B.buffer,B.byteOffset,B.length).getUint16(0),s=3}else if(s===2){if(hi(c)<8)break;const B=di(c,8),T=new DataView(B.buffer,B.byteOffset,B.length),H=T.getUint32(0);if(H>Math.pow(2,21)-1){k.enqueue(Xs);break}v=H*Math.pow(2,32)+T.getUint32(4),s=3}else{if(hi(c)<v)break;const B=di(c,v);k.enqueue(Js(R?B:Ls.decode(B),i)),s=0}if(v===0||v>f){k.enqueue(Xs);break}}}})}const cd=4;function Jt(f){if(f)return Vm(f)}function Vm(f){for(var i in Jt.prototype)f[i]=Jt.prototype[i];return f}Jt.prototype.on=Jt.prototype.addEventListener=function(f,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+f]=this._callbacks["$"+f]||[]).push(i),this};Jt.prototype.once=function(f,i){function c(){this.off(f,c),i.apply(this,arguments)}return c.fn=i,this.on(f,c),this};Jt.prototype.off=Jt.prototype.removeListener=Jt.prototype.removeAllListeners=Jt.prototype.removeEventListener=function(f,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+f];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+f],this;for(var s,v=0;v<c.length;v++)if(s=c[v],s===i||s.fn===i){c.splice(v,1);break}return c.length===0&&delete this._callbacks["$"+f],this};Jt.prototype.emit=function(f){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+f],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(c){c=c.slice(0);for(var s=0,v=c.length;s<v;++s)c[s].apply(this,i)}return this};Jt.prototype.emitReserved=Jt.prototype.emit;Jt.prototype.listeners=function(f){return this._callbacks=this._callbacks||{},this._callbacks["$"+f]||[]};Jt.prototype.hasListeners=function(f){return!!this.listeners(f).length};const pi=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),qe=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),$m="arraybuffer";function sd(f,...i){return i.reduce((c,s)=>(f.hasOwnProperty(s)&&(c[s]=f[s]),c),{})}const Zm=qe.setTimeout,km=qe.clearTimeout;function bi(f,i){i.useNativeTimers?(f.setTimeoutFn=Zm.bind(qe),f.clearTimeoutFn=km.bind(qe)):(f.setTimeoutFn=qe.setTimeout.bind(qe),f.clearTimeoutFn=qe.clearTimeout.bind(qe))}const Km=1.33;function Jm(f){return typeof f=="string"?Wm(f):Math.ceil((f.byteLength||f.size)*Km)}function Wm(f){let i=0,c=0;for(let s=0,v=f.length;s<v;s++)i=f.charCodeAt(s),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(s++,c+=4);return c}function rd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fm(f){let i="";for(let c in f)f.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(f[c]));return i}function Pm(f){let i={},c=f.split("&");for(let s=0,v=c.length;s<v;s++){let R=c[s].split("=");i[decodeURIComponent(R[0])]=decodeURIComponent(R[1])}return i}class Im extends Error{constructor(i,c,s){super(i),this.description=c,this.context=s,this.type="TransportError"}}class Ws extends Jt{constructor(i){super(),this.writable=!1,bi(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,s){return super.emitReserved("error",new Im(i,c,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const c=Js(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=Fm(i);return c.length?"?"+c:""}}class tg extends Ws{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 s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||c()})),this.writable||(s++,this.once("drain",function(){--s||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Xm(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,Ym(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]=rd()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let fd=!1;try{fd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const eg=fd;function ng(){}class lg extends tg{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let s=location.port;s||(s=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,c){const s=this.request({method:"POST",data:i});s.on("success",c),s.on("error",(v,R)=>{this.onError("xhr post error",v,R)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,s)=>{this.onError("xhr poll error",c,s)}),this.pollXhr=i}}class ke extends Jt{constructor(i,c,s){super(),this.createRequest=i,bi(this,s),this._opts=s,this._method=s.method||"GET",this._uri=c,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const c=sd(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(c);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let v in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(v)&&s.setRequestHeader(v,this._opts.extraHeaders[v])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var v;s.readyState===3&&((v=this._opts.cookieJar)===null||v===void 0||v.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(v){this.setTimeoutFn(()=>{this._onError(v)},0);return}typeof document<"u"&&(this._index=ke.requestsCount++,ke.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=ng,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ke.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()}}ke.requestsCount=0;ke.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ih);else if(typeof addEventListener=="function"){const f="onpagehide"in qe?"pagehide":"unload";addEventListener(f,Ih,!1)}}function Ih(){for(let f in ke.requests)ke.requests.hasOwnProperty(f)&&ke.requests[f].abort()}const ag=function(){const f=od({xdomain:!1});return f&&f.responseType!==null}();class ug extends lg{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=ag&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new ke(od,this.uri(),i)}}function od(f){const i=f.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||eg))return new XMLHttpRequest}catch{}if(!i)try{return new qe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const hd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ig extends Ws{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,s=hd?{}:sd(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,s)}catch(v){return this.emitReserved("error",v)}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 s=i[c],v=c===i.length-1;Ks(s,this.supportsBinary,R=>{try{this.doWrite(s,R)}catch{}v&&pi(()=>{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]=rd()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const Ys=qe.WebSocket||qe.MozWebSocket;class cg extends ig{createSocket(i,c,s){return hd?new Ys(i,c,s):c?new Ys(i,c):new Ys(i)}doWrite(i,c){this.ws.send(c)}}class sg extends Ws{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=Qm(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(c).getReader(),v=Gm();v.readable.pipeTo(i.writable),this._writer=v.writable.getWriter();const R=()=>{s.read().then(({done:k,value:B})=>{k||(this.onPacket(B),R())}).catch(k=>{})};R();const C={type:"open"};this.query.sid&&(C.data=`{"sid":"${this.query.sid}"}`),this._writer.write(C).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const s=i[c],v=c===i.length-1;this._writer.write(s).then(()=>{v&&pi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const rg={websocket:cg,webtransport:sg,polling:ug},fg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,og=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Gs(f){if(f.length>8e3)throw"URI too long";const i=f,c=f.indexOf("["),s=f.indexOf("]");c!=-1&&s!=-1&&(f=f.substring(0,c)+f.substring(c,s).replace(/:/g,";")+f.substring(s,f.length));let v=fg.exec(f||""),R={},C=14;for(;C--;)R[og[C]]=v[C]||"";return c!=-1&&s!=-1&&(R.source=i,R.host=R.host.substring(1,R.host.length-1).replace(/;/g,":"),R.authority=R.authority.replace("[","").replace("]","").replace(/;/g,":"),R.ipv6uri=!0),R.pathNames=hg(R,R.path),R.queryKey=dg(R,R.query),R}function hg(f,i){const c=/\/{2,9}/g,s=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function dg(f,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,v,R){v&&(c[v]=R)}),c}const Qs=typeof addEventListener=="function"&&typeof removeEventListener=="function",mi=[];Qs&&addEventListener("offline",()=>{mi.forEach(f=>f())},!1);class Hn extends Jt{constructor(i,c){if(super(),this.binaryType=$m,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 s=Gs(i);c.hostname=s.host,c.secure=s.protocol==="https"||s.protocol==="wss",c.port=s.port,s.query&&(c.query=s.query)}else c.host&&(c.hostname=Gs(c.host).host);bi(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(s=>{const v=s.prototype.name;this.transports.push(v),this._transportsByName[v]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Pm(this.opts.query)),Qs&&(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"})},mi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=cd,c.transport=i,this.id&&(c.sid=this.id);const s=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](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Hn.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",Hn.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 s=0;s<this.writeBuffer.length;s++){const v=this.writeBuffer[s].data;if(v&&(c+=Jm(v)),s>0&&c>this._maxPayload)return this.writeBuffer.slice(0,s);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,pi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,s){return this._sendPacket("message",i,c,s),this}send(i,c,s){return this._sendPacket("message",i,c,s),this}_sendPacket(i,c,s,v){if(typeof c=="function"&&(v=c,c=void 0),typeof s=="function"&&(v=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const R={type:i,data:c,options:s};this.emitReserved("packetCreate",R),this.writeBuffer.push(R),v&&this.once("flush",v),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},s=()=>{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?s():i()}):this.upgrading?s():i()),this}_onError(i){if(Hn.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(),Qs&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=mi.indexOf(this._offlineEventListener);s!==-1&&mi.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}Hn.protocol=cd;class yg extends Hn{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),s=!1;Hn.priorWebsocketSuccess=!1;const v=()=>{s||(c.send([{type:"ping",data:"probe"}]),c.once("packet",G=>{if(!s)if(G.type==="pong"&&G.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Hn.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(H(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const nt=new Error("probe error");nt.transport=c.name,this.emitReserved("upgradeError",nt)}}))};function R(){s||(s=!0,H(),c.close(),c=null)}const C=G=>{const nt=new Error("probe error: "+G);nt.transport=c.name,R(),this.emitReserved("upgradeError",nt)};function k(){C("transport closed")}function B(){C("socket closed")}function T(G){c&&G.name!==c.name&&R()}const H=()=>{c.removeListener("open",v),c.removeListener("error",C),c.removeListener("close",k),this.off("close",B),this.off("upgrading",T)};c.once("open",v),c.once("error",C),c.once("close",k),this.once("close",B),this.once("upgrading",T),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&c.push(i[s]);return c}}let mg=class extends yg{constructor(i,c={}){const s=typeof i=="object"?i:c;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(v=>rg[v]).filter(v=>!!v)),super(i,s)}};function gg(f,i="",c){let s=f;c=c||typeof location<"u"&&location,f==null&&(f=c.protocol+"//"+c.host),typeof f=="string"&&(f.charAt(0)==="/"&&(f.charAt(1)==="/"?f=c.protocol+f:f=c.host+f),/^(https?|wss?):\/\//.test(f)||(typeof c<"u"?f=c.protocol+"//"+f:f="https://"+f),s=Gs(f)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const R=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+R+":"+s.port+i,s.href=s.protocol+"://"+R+(c&&c.port===s.port?"":":"+s.port),s}const vg=typeof ArrayBuffer=="function",pg=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f.buffer instanceof ArrayBuffer,dd=Object.prototype.toString,bg=typeof Blob=="function"||typeof Blob<"u"&&dd.call(Blob)==="[object BlobConstructor]",Sg=typeof File=="function"||typeof File<"u"&&dd.call(File)==="[object FileConstructor]";function Fs(f){return vg&&(f instanceof ArrayBuffer||pg(f))||bg&&f instanceof Blob||Sg&&f instanceof File}function gi(f,i){if(!f||typeof f!="object")return!1;if(Array.isArray(f)){for(let c=0,s=f.length;c<s;c++)if(gi(f[c]))return!0;return!1}if(Fs(f))return!0;if(f.toJSON&&typeof f.toJSON=="function"&&arguments.length===1)return gi(f.toJSON(),!0);for(const c in f)if(Object.prototype.hasOwnProperty.call(f,c)&&gi(f[c]))return!0;return!1}function _g(f){const i=[],c=f.data,s=f;return s.data=Vs(c,i),s.attachments=i.length,{packet:s,buffers:i}}function Vs(f,i){if(!f)return f;if(Fs(f)){const c={_placeholder:!0,num:i.length};return i.push(f),c}else if(Array.isArray(f)){const c=new Array(f.length);for(let s=0;s<f.length;s++)c[s]=Vs(f[s],i);return c}else if(typeof f=="object"&&!(f instanceof Date)){const c={};for(const s in f)Object.prototype.hasOwnProperty.call(f,s)&&(c[s]=Vs(f[s],i));return c}return f}function Eg(f,i){return f.data=$s(f.data,i),delete f.attachments,f}function $s(f,i){if(!f)return f;if(f&&f._placeholder===!0){if(typeof f.num=="number"&&f.num>=0&&f.num<i.length)return i[f.num];throw new Error("illegal attachments")}else if(Array.isArray(f))for(let c=0;c<f.length;c++)f[c]=$s(f[c],i);else if(typeof f=="object")for(const c in f)Object.prototype.hasOwnProperty.call(f,c)&&(f[c]=$s(f[c],i));return f}const Tg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Ag=5;var vt;(function(f){f[f.CONNECT=0]="CONNECT",f[f.DISCONNECT=1]="DISCONNECT",f[f.EVENT=2]="EVENT",f[f.ACK=3]="ACK",f[f.CONNECT_ERROR=4]="CONNECT_ERROR",f[f.BINARY_EVENT=5]="BINARY_EVENT",f[f.BINARY_ACK=6]="BINARY_ACK"})(vt||(vt={}));class Rg{constructor(i){this.replacer=i}encode(i){return(i.type===vt.EVENT||i.type===vt.ACK)&&gi(i)?this.encodeAsBinary({type:i.type===vt.EVENT?vt.BINARY_EVENT:vt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===vt.BINARY_EVENT||i.type===vt.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=_g(i),s=this.encodeAsString(c.packet),v=c.buffers;return v.unshift(s),v}}function td(f){return Object.prototype.toString.call(f)==="[object Object]"}class Ps extends Jt{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 s=c.type===vt.BINARY_EVENT;s||c.type===vt.BINARY_ACK?(c.type=s?vt.EVENT:vt.ACK,this.reconstructor=new Og(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Fs(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 s={type:Number(i.charAt(0))};if(vt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===vt.BINARY_EVENT||s.type===vt.BINARY_ACK){const R=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const C=i.substring(R,c);if(C!=Number(C)||i.charAt(c)!=="-")throw new Error("Illegal attachments");s.attachments=Number(C)}if(i.charAt(c+1)==="/"){const R=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););s.nsp=i.substring(R,c)}else s.nsp="/";const v=i.charAt(c+1);if(v!==""&&Number(v)==v){const R=c+1;for(;++c;){const C=i.charAt(c);if(C==null||Number(C)!=C){--c;break}if(c===i.length)break}s.id=Number(i.substring(R,c+1))}if(i.charAt(++c)){const R=this.tryParse(i.substr(c));if(Ps.isPayloadValid(s.type,R))s.data=R;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case vt.CONNECT:return td(c);case vt.DISCONNECT:return c===void 0;case vt.CONNECT_ERROR:return typeof c=="string"||td(c);case vt.EVENT:case vt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&Tg.indexOf(c[0])===-1);case vt.ACK:case vt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Og{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=Eg(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const zg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Ps,Encoder:Rg,get PacketType(){return vt},protocol:Ag},Symbol.toStringTag,{value:"Module"}));function Ye(f,i,c){return f.on(i,c),function(){f.off(i,c)}}const Ng=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class yd extends Jt{constructor(i,c,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=c,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Ye(i,"open",this.onopen.bind(this)),Ye(i,"packet",this.onpacket.bind(this)),Ye(i,"error",this.onerror.bind(this)),Ye(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 s,v,R;if(Ng.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 C={type:vt.EVENT,data:c};if(C.options={},C.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const H=this.ids++,G=c.pop();this._registerAckCallback(H,G),C.id=H}const k=(v=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||v===void 0?void 0:v.writable,B=this.connected&&!(!((R=this.io.engine)===null||R===void 0)&&R._hasPingExpired());return this.flags.volatile&&!k||(B?(this.notifyOutgoingListeners(C),this.packet(C)):this.sendBuffer.push(C)),this.flags={},this}_registerAckCallback(i,c){var s;const v=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(v===void 0){this.acks[i]=c;return}const R=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let k=0;k<this.sendBuffer.length;k++)this.sendBuffer[k].id===i&&this.sendBuffer.splice(k,1);c.call(this,new Error("operation has timed out"))},v),C=(...k)=>{this.io.clearTimeoutFn(R),c.apply(this,k)};C.withError=!0,this.acks[i]=C}emitWithAck(i,...c){return new Promise((s,v)=>{const R=(C,k)=>C?v(C):s(k);R.withError=!0,c.push(R),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((v,...R)=>s!==this._queue[0]?void 0:(v!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(v)):(this._queue.shift(),c&&c(null,...R)),s.pending=!1,this._drainQueue())),this._queue.push(s),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:vt.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(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case vt.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 vt.EVENT:case vt.BINARY_EVENT:this.onevent(i);break;case vt.ACK:case vt.BINARY_ACK:this.onack(i);break;case vt.DISCONNECT:this.ondisconnect();break;case vt.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const 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 s of c)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const c=this;let s=!1;return function(...v){s||(s=!0,c.packet({type:vt.ACK,id:i,data:v}))}}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:vt.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 s=0;s<c.length;s++)if(i===c[s])return c.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const c=this._anyOutgoingListeners;for(let s=0;s<c.length;s++)if(i===c[s])return c.splice(s,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 s of c)s.apply(this,i.data)}}}function Kl(f){f=f||{},this.ms=f.min||100,this.max=f.max||1e4,this.factor=f.factor||2,this.jitter=f.jitter>0&&f.jitter<=1?f.jitter:0,this.attempts=0}Kl.prototype.duration=function(){var f=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*f);f=(Math.floor(i*10)&1)==0?f-c:f+c}return Math.min(f,this.max)|0};Kl.prototype.reset=function(){this.attempts=0};Kl.prototype.setMin=function(f){this.ms=f};Kl.prototype.setMax=function(f){this.max=f};Kl.prototype.setJitter=function(f){this.jitter=f};class Zs extends Jt{constructor(i,c){var s;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,bi(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((s=c.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Kl({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const v=c.parser||zg;this.encoder=new v.Encoder,this.decoder=new v.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 mg(this.uri,this.opts);const c=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const v=Ye(c,"open",function(){s.onopen(),i&&i()}),R=k=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",k),i?i(k):this.maybeReconnectOnOpen()},C=Ye(c,"error",R);if(this._timeout!==!1){const k=this._timeout,B=this.setTimeoutFn(()=>{v(),R(new Error("timeout")),c.close()},k);this.opts.autoUnref&&B.unref(),this.subs.push(()=>{this.clearTimeoutFn(B)})}return this.subs.push(v),this.subs.push(C),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Ye(i,"ping",this.onping.bind(this)),Ye(i,"data",this.ondata.bind(this)),Ye(i,"error",this.onerror.bind(this)),Ye(i,"close",this.onclose.bind(this)),Ye(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){pi(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new yd(this,i,c),this.nsps[i]=s),s}_destroy(i){const c=Object.keys(this.nsps);for(const s of c)if(this.nsps[s].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let s=0;s<c.length;s++)this.engine.write(c[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,c){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.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 s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(v=>{v?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",v)):i.onreconnect()}))},c);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Ja={};function vi(f,i){typeof f=="object"&&(i=f,f=void 0),i=i||{};const c=gg(f,i.path||"/socket.io"),s=c.source,v=c.id,R=c.path,C=Ja[v]&&R in Ja[v].nsps,k=i.forceNew||i["force new connection"]||i.multiplex===!1||C;let B;return k?B=new Zs(s,i):(Ja[v]||(Ja[v]=new Zs(s,i)),B=Ja[v]),c.query&&!i.query&&(i.query=c.queryKey),B.socket(c.path,i)}Object.assign(vi,{Manager:Zs,Socket:yd,io:vi,connect:vi});function xg({code:f,isConnected:i,onCreateRoom:c,onJoinRoom:s}){const[v,R]=ct.useState(""),C=()=>{if(v){const B=v.trim();s(B)}},k=B=>{B.key==="Enter"&&C()};return Z.jsx("div",{className:"mb-2",children:f?Z.jsx(Z.Fragment,{children:Z.jsxs("p",{className:"text-lg",children:["Code: ",Z.jsx("strong",{className:"text-3xl",children:f})]})}):Z.jsxs(Z.Fragment,{children:[Z.jsx("button",{onClick:c,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),Z.jsx("input",{type:"text",className:"width-212",value:v,onChange:B=>R(B.target.value),onKeyDown:k,placeholder:"Enter code to join"}),Z.jsx("button",{onClick:C,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})})}function Dg({files:f,setFiles:i,dataChannels:c,dataChannelsRef:s,useFallback:v,socket:R,code:C,socketId:k,localFilesRef:B,downloadStates:T,setDownloadStates:H,cancelDownload:G,cancelRequestsRef:nt,downloadCounts:bt,handleDeleteFile:Mt,SERVER_URL:Bt}){const Qt=ct.useRef(null),_t=ct.useRef({}),oe=(M,ht=256)=>new Promise(dt=>{if(!M.type.startsWith("image/")){dt(null);return}const at=new Image,tt=document.createElement("canvas"),le=tt.getContext("2d");at.onload=()=>{const{width:Yt,height:Tt}=at,A=Math.min(ht/Yt,ht/Tt,1);tt.width=Yt*A,tt.height=Tt*A,le.drawImage(at,0,0,tt.width,tt.height),tt.toBlob(j=>{dt(j)},"image/jpeg",.7)},at.src=URL.createObjectURL(M)}),wt=async()=>{const M=Qt.current.files;if(!M||M.length===0)return;const ht=Array.from(M).map(dt=>({name:dt.name,size:dt.size,peerId:k,thumbnail:!!dt.type.startsWith("image/")}));if(v){const dt=new FormData;Array.from(M).forEach(at=>dt.append("files",at));try{if(!(await fetch(`${Bt}/api/upload/${C}`,{method:"POST",body:dt,headers:{"x-socket-id":k}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",ht)}catch(at){console.error("Error uploading files:",at)}}else{const dt=await Promise.all(Array.from(M).map(async at=>({name:at.name,thumbnail:at.type.startsWith("image/")?await oe(at):null})));B.current={...B.current,...Object.fromEntries(Array.from(M).map(at=>[at.name,at])),...Object.fromEntries(dt.filter(({thumbnail:at})=>at).map(({name:at,thumbnail:tt})=>[`${at}_thumbnail`,tt]))},dt.forEach(({name:at,thumbnail:tt})=>{if(tt){const le=URL.createObjectURL(tt);_t.current[at]=le,console.log(`Cached thumbnail URL for ${at}: ${le}`)}}),console.log("Stored files in localFilesRef:",Object.keys(B.current)),R.emit("file-list",{code:C,files:ht}),console.log("Shared file list:",ht)}i(dt=>[...dt,...ht]),Qt.current.value=""},ne=async M=>{if(nt.current.has(M.name)&&(nt.current.delete(M.name),console.log(`Cleared previous cancel for ${M.name}, starting new request to ${M.peerId}`)),T[M.name]?.status==="downloading"){G(M.name,M.peerId),console.log(`Canceling download for ${M.name}`);return}if(H(ht=>({...ht,[M.name]:{status:"downloading",progress:0,total:M.size,peerId:M.peerId}})),console.log(`Starting download for ${M.name}, downloadStates:`,{...T,[M.name]:{status:"downloading",progress:0}}),v){R.emit("download-start-fallback",{code:C,fileName:M.name});const ht=document.createElement("a");ht.href=`${Bt}/uploads/${M.path.split("/").pop()}`,ht.download=M.name,ht.click(),console.log(`Downloading file via server: ${M.name}`),H(dt=>({...dt,[M.name]:{status:"completed",progress:100}})),R.emit("download-end-fallback",{code:C,fileName:M.name})}else if(M.peerId===k){const ht=B.current[M.name]||f.find(dt=>dt.name===M.name)?.file;if(ht){R.emit("download-start-fallback",{code:C,fileName:M.name});const dt=URL.createObjectURL(ht),at=document.createElement("a");at.href=dt,at.download=M.name,at.click(),URL.revokeObjectURL(dt),console.log(`Downloaded local file: ${M.name}`),H(tt=>({...tt,[M.name]:{status:"saved",progress:100}})),R.emit("download-end-fallback",{code:C,fileName:M.name})}else console.error(`Local file not found: ${M.name}`)}else c[M.peerId]?.readyState==="open"?(s.current[M.peerId].send(JSON.stringify({type:"request-file",fileName:M.name})),console.log(`Requested file ${M.name} from ${M.peerId}`)):console.error(`Data channel not open for peer ${M.peerId}`)},W=M=>{const ht=M.split(".").pop().toLowerCase();return`/imgs/${{exe:"executable.png",bin:"executable.png",dll:"executable.png",jpg:"picture.png",jpeg:"picture.png",png:"picture.png",gif:"picture.png",mp3:"audio.png",wav:"audio.png",ogg:"audio.png",mp4:"video.png",mkv:"video.png",avi:"video.png",mov:"video.png",wma:"video.png",pdf:"unknown.png",doc:"unknown.png",docx:"unknown.png",txt:"text.png",log:"text.png",bat:"script.png",sh:"script.png",html:"html.png",xml:"xml.png",zip:"archive.png",gz:"archive.png",bz:"archive.png"}[ht]||"unknown.png"}`},Zt=M=>M?M<1024?`${M} B`:M<1024*1024?`${(M/1024).toFixed(2)} KB`:M<1024*1024*1024?`${(M/(1024*1024)).toFixed(2)} MB`:`${(M/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",Ht=M=>{if(!M.thumbnail)return console.log(`No thumbnail flag for ${M.name}`),null;if(_t.current[M.name])return _t.current[M.name];const ht=B.current[`${M.name}_thumbnail`];if(ht){const dt=URL.createObjectURL(ht);return _t.current[M.name]=dt,console.log(`Generated and cached thumbnail URL for ${M.name}: ${dt}`),dt}return console.log(`No thumbnail available for ${M.name}`),null};return ct.useEffect(()=>()=>{Object.values(_t.current).forEach(M=>{M&&URL.revokeObjectURL(M)}),_t.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),Z.jsxs("div",{children:[Z.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),Z.jsx("input",{type:"file",multiple:!0,ref:Qt,onChange:wt,className:"mb-2"}),Z.jsx("ul",{className:"space-y-2",children:f.map((M,ht)=>(T[M.name]?.status==="downloading"||T[M.name]?.status,Z.jsxs("li",{className:"flex items-center space-x-2",children:[M.thumbnail&&Z.jsx("img",{src:Ht(M)||W(M.name),alt:`${M.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${M.name}, requesting...`)}})||Z.jsx("img",{src:W(M.name),alt:"file icon",className:"w-6 h-6",onError:dt=>dt.target.style.display="none"}),Z.jsxs("span",{children:["(",Zt(M.size),")"]}),M.peerId!==k&&Z.jsx("button",{onClick:()=>ne(M),className:`px-4 py-2 rounded ${T[M.name]?.status==="saved"?"bg-green-500 text-white":T[M.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:T[M.name]?.status==="saved"?"Saved ✓":T[M.name]?.status==="downloading"?`Cancel ${(T[M.name]?.progress||0).toFixed(2)}%`:"Download"}),M.peerId===k&&Z.jsx(Z.Fragment,{children:Z.jsx("button",{onClick:()=>Mt(M.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),bt[M.name]>0&&Z.jsxs("span",{children:[bt[M.name]," downloading"]}),Z.jsx("span",{children:M.name})]},ht)))})]})}function Ug({textHistory:f,setTextHistory:i,dataChannels:c,useFallback:s,socket:v,code:R}){const[C,k]=ct.useState(""),B=()=>{C.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:s,code:R}),!s&&Object.keys(c).length>0?(Object.keys(c).forEach(G=>{c[G].readyState==="open"&&(c[G].send(JSON.stringify({type:"text",text:C})),console.log(`Sent text to peer ${G}`))}),i(G=>[...G,C])):s&&v&&R&&(v.emit("text",{code:R,text:C}),console.log(`Sending text via socket for room ${R}: ${C}`),i(G=>[...G,C])),k(""))},T=G=>{G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),B())},H=G=>{const nt=document.getElementById(`msg-${G}`);if(nt&&window.getSelection){const bt=window.getSelection();bt.removeAllRanges();const Mt=document.createRange();Mt.selectNodeContents(nt),bt.addRange(Mt)}else console.warn(`Element msg-${G} not found or selection API unavailable`)};return Z.jsxs("div",{className:"mb-4",children:[Z.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),Z.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:C,onChange:G=>k(G.target.value),onKeyDown:T,placeholder:"Enter text to share"}),Z.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:B,children:"Send"}),Z.jsx("br",{}),Z.jsxs("div",{className:"mt-2",id:"textview",children:[Z.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),Z.jsx("ul",{className:"list-disc pl-5",children:f?.length>0?f.map((G,nt)=>Z.jsxs("li",{children:[Z.jsx("button",{className:"bg-sky-600 text-darkPurple px-4 py-2 rounded hover:bg-sky-500",onClick:()=>H(nt),children:"{}"}),Z.jsx("pre",{id:`msg-${nt}`,children:G})]},nt)):Z.jsx("li",{children:Z.jsx("pre",{children:"No messages yet"})})})]})]})}const ed="",Q=vi("/",{withCredentials:!0});function Mg(){const[f,i]=ct.useState(!0),[c,s]=ct.useState(""),[v,R]=ct.useState(!1),[C,k]=ct.useState(!1),[B,T]=ct.useState(!1),[H,G]=ct.useState(!1),[nt,bt]=ct.useState(600),[Mt,Bt]=ct.useState([]),[Qt,_t]=ct.useState(""),[oe,wt]=ct.useState({}),[ne,W]=ct.useState([]),[Zt,Ht]=ct.useState({}),[M,ht]=ct.useState([]),[dt,at]=ct.useState({}),tt=ct.useRef({}),le=ct.useRef([]),Yt=ct.useRef({}),Tt=ct.useRef(new Set),A=ct.useRef({}),j=ct.useRef(new Set),X=ct.useRef({}),P=ct.useRef({}),y=ct.useRef({}),x=ct.useRef({}),Y=ct.useRef(0),q=ct.useRef({}),V=ct.useRef({}),ft=ct.useRef(Mt);window.binaryStateRef=q,window.localFilesRef=tt,window.downloadStates=Zt,ct.useEffect(()=>{window.downloadStates=Zt},[Zt]),ct.useEffect(()=>{ft.current=Mt},[Mt]);const lt=window.location.protocol,ce=window.location.hostname||"localhost",zt=(c||"").replace(/ /g,"_"),Xe=`${lt}//${ce}/room/${zt||""}`,ul=async h=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const N=h==="link"?Xe:zt;await navigator.clipboard.writeText(N),R(h),setTimeout(()=>R(null),2e3)}catch(N){console.error(`Failed to copy ${h}:`,N)}},il=async()=>{try{const h=await fetch(`${ed}/api/generate-code`,{method:"GET",credentials:"include"}),{code:N,error:w}=await h.json();if(w){_t(w);return}s(N),k(!0),_t(""),G(!1),Q.emit("create",N)}catch(h){console.error("Error generating code:",h),_t("Failed to generate room code")}},jn=h=>{if(!h){_t("Please enter a room code");return}const N=h.replace(/_/g," ");s(N),_t(""),G(!1),Q.emit("join",N)},Jl=()=>{Q.emit("leave",c),on(),window.history.pushState({},"","/")},on=()=>{s(""),k(!1),T(!1),G(!1),bt(600),W([]),Bt([]),_t(""),wt({}),ht([]),at({}),tt.current={},Object.values(X.current).forEach(h=>{h.onicecandidate=null,h.oniceconnectionstatechange=null,h.onicecandidateerror=null,h.ondatachannel=null,h.onnegotiationneeded=null,h.close()}),X.current={},P.current={},y.current={},Object.keys(x.current).forEach(h=>clearTimeout(x.current[h])),x.current={},Yt.current={},Tt.current=new Set,A.current={},j.current=new Set,q.current={},V.current={}},Wl=(h,N,w=!1)=>{if(!h||h===Q.id||h==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${h}`);return}if(H){console.log(`Skipping WebRTC setup for ${h} due to fallback mode`);return}if(X.current[h]){console.log(`WebRTC connection already exists for ${h}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${h} (${w?"offerer":"answerer"}, attempt ${Yt.current[h]||1}/3)`);const g=new RTCPeerConnection({iceServers:[{urls:"turn:twily.info:5349",username:"ana",credential:"butt"},{urls:"stun:stun.l.google.com:19302"}]});Yt.current[h]=(Yt.current[h]||0)+1,X.current[h]=g,g.ondatachannel=L=>{const K=L.channel;K.label==="file-share"?(P.current[h]=K,K.onopen=()=>{console.log(`Main DataChannel opened with peer ${h}`),T(!0),bt(0),Object.keys(x.current).forEach(it=>{console.log(`Clearing timeout for ${it}`),clearTimeout(x.current[it])}),x.current={},Yt.current[h]=0,P.current.true&&delete P.current.true,wt({...P.current});const St=le.current.map(it=>({name:it.name,size:it.size,peerId:it.peerId,thumbnail:!!tt.current[`${it.name}_thumbnail`]}));K.send(JSON.stringify({type:"file-list",files:St})),St.forEach(it=>{const qt=`${it.name}:${it.peerId}`;it.thumbnail&&it.peerId!==Q.id&&!tt.current[`${it.name}_thumbnail`]&&!j.current.has(qt)&&Ln(it)}),C&&setTimeout(()=>{K.readyState==="open"?(K.send(JSON.stringify({type:"text-history",history:ft.current})),console.log(`Sent text-history to ${h}:`,ft.current)):console.warn(`Main channel not open for ${h}, skipping text-history send`)},1e3)},K.onmessage=St=>Ia(h,St),K.onclose=()=>{console.log(`Main DataChannel closed with peer ${h}`),delete X.current[h],wt({...P.current})},K.onerror=St=>{console.error(`Main DataChannel error with ${h}:`,St)}):K.label==="binary-transfer"&&(K.binaryType="arraybuffer",y.current[h]=K,K.onmessage=St=>Fl(h,St),K.onclose=()=>{console.log(`Binary channel closed with peer ${h}`)},K.onerror=St=>{console.error(`Binary channel error with ${h}:`,St)})};let O=null,ut=null;return w&&(O=g.createDataChannel("file-share"),P.current[h]=O,O.onopen=()=>{console.log(`Main DataChannel opened with peer ${h} (joiner)`),T(!0),bt(0),Object.keys(x.current).forEach(K=>{console.log(`Clearing timeout for ${K}`),clearTimeout(x.current[K])}),x.current={},Yt.current[h]=0,P.current.true&&delete P.current.true,wt({...P.current});const L=le.current.map(K=>({name:K.name,size:K.size,peerId:K.peerId,thumbnail:!!tt.current[`${K.name}_thumbnail`]}));O.send(JSON.stringify({type:"file-list",files:L})),L.forEach(K=>{const St=`${K.name}:${K.peerId}`;K.thumbnail&&K.peerId!==Q.id&&!tt.current[`${K.name}_thumbnail`]&&!j.current.has(St)&&Ln(K)}),C&&setTimeout(()=>{O.readyState==="open"?(O.send(JSON.stringify({type:"text-history",history:ft.current})),console.log(`Sent text-history to ${h}:`,ft.current)):console.warn(`Main channel not open for ${h}, skipping text-history send`)},1e3)},O.onmessage=L=>Ia(h,L),O.onclose=()=>{console.log(`Main DataChannel closed with peer ${h}`),delete X.current[h],wt({...P.current})},O.onerror=L=>{console.error(`Main DataChannel error with ${h}:`,L)},ut=g.createDataChannel("binary-transfer"),ut.binaryType="arraybuffer",y.current[h]=ut,ut.onmessage=L=>Fl(h,L),ut.onclose=()=>{console.log(`Binary channel closed with peer ${h}`)},ut.onerror=L=>{console.error(`Binary channel error with ${h}:`,L)}),g.onicecandidate=L=>{L.candidate&&N&&(Q.emit("ice-candidate",{code:N,candidate:L.candidate,to:h,from:Q.id}),console.log(`Sent ICE candidate to ${h} from ${Q.id}: ${L.candidate.candidate}`))},g.onicecandidateerror=L=>{console.error(`ICE candidate error for ${h}:`,L)},g.oniceconnectionstatechange=()=>{console.log(`ICE state with ${h} (${C?"creator":"joiner"}): ${g.iceConnectionState}`),typeof Yt.current[h]<"u"?g.iceConnectionState==="failed"||g.iceConnectionState==="disconnected"?(console.log(`WebRTC ${g.iceConnectionState} with ${h}, retrying in 5s (attempt ${Yt.current[h]}/3)`),setTimeout(()=>{g.iceConnectionState!=="connected"&&!H&&Yt.current[h]<3?Wl(h,N,w):g.iceConnectionState!=="connected"&&!H&&(console.log(`Max retries reached for ${h}, switching to fallback`),G(!0),_t("WebRTC connection failed after retries, using server fallback"),bt(0),W([]),Bt([]),C&&Q.emit("fallback",{code:N}))},5e3)):g.iceConnectionState==="connected"&&(T(!0),G(!1),_t(""),clearTimeout(x.current[h]),Yt.current[h]=0):(console.log(`err: peerId ${h} not found in retryCountsRef`),G(!1))},g.onnegotiationneeded=async()=>{try{const L=await g.createOffer();await g.setLocalDescription(L),Q.emit("offer",{code:N,offer:g.localDescription,to:h,from:Q.id}),console.log(`Sent renegotiation offer to ${h} for room ${N}`)}catch(L){console.error(`Negotiation needed error for ${h}:`,L)}},w&&g.createOffer().then(L=>{g.setLocalDescription(L),Q.emit("offer",{code:N,offer:L,to:h,from:Q.id}),console.log(`Sent offer to ${h} for room ${N}`)}).catch(L=>{console.error(`Error creating offer for ${h}:`,L),_t("Failed to create WebRTC offer"),G(!0),bt(0),W([]),Bt([]),C&&Q.emit("fallback",{code:N})}),()=>clearTimeout(x.current[h])};ct.useEffect(()=>(Q.on("peer-joined",h=>{if(!h||!h.peerId||h.peerId==="true"){console.error("Invalid peer-joined data:",h);return}const{peerId:N}=h;console.log(`Peer ${N} joined room ${c}`),Wl(N,c,!0)}),Q.on("offer",async({code:h,offer:N,to:w,from:g})=>{if(w!==Q.id||H||h!==c){console.log(`Ignoring offer from ${g} (to=${w}, socket.id=${Q.id}, useFallback=${H}, code mismatch: ${h} vs ${c})`);return}console.log(`Received offer from ${g} for room ${h}`),X.current[g]||(console.log(`No existing connection for ${g}, setting up as answerer`),Wl(g,h,!1));try{const O=X.current[g];await O.setRemoteDescription(new RTCSessionDescription(N));const ut=await O.createAnswer();await O.setLocalDescription(ut),Q.emit("answer",{code:h,answer:ut,to:g,from:Q.id}),console.log(`Sent answer to ${g} from ${Q.id} for room ${h}`)}catch(O){console.error(`Error handling offer from ${g}:`,O),_t("Failed to process WebRTC offer"),G(!0),bt(0),W([]),Bt([]),C&&Q.emit("fallback",{code:h})}}),Q.on("answer",async({code:h,answer:N,to:w,from:g})=>{if(w!==Q.id||H||h!==c){console.log(`Ignoring answer from ${g} (to=${w}, socket.id=${Q.id}, useFallback=${H}, code mismatch: ${h} vs ${c})`);return}if(console.log(`Received answer from ${g} for room ${h}`),X.current[g])try{await X.current[g].setRemoteDescription(new RTCSessionDescription(N)),console.log(`Successfully set remote description for answer from ${g}`)}catch(O){console.error(`Error handling answer from ${g}:`,O),_t("Failed to process WebRTC answer"),G(!0),bt(0),W([]),Bt([]),C&&Q.emit("fallback",{code:h})}else console.warn(`No peer connection found for ${g} when receiving answer`)}),Q.on("room-status",({useFallback:h,textHistory:N,files:w})=>{h&&(console.log(`Received room-status: useFallback=${h}, textHistory=`,N),G(h),Bt(N||[]),W(w||[]),T(!0),bt(0),_t("Room is in fallback mode"))}),Q.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),G(!0),_t("Room switched to fallback mode"),bt(0),W([]),Bt([]),at({}),Object.values(X.current).forEach(h=>h.close()),X.current={},P.current={},y.current={},Object.keys(x.current).forEach(h=>clearTimeout(x.current[h])),x.current={},Yt.current={},j.current=new Set}),Q.on("peer-left",h=>{const{peerId:N}=h;if(X.current[N]){X.current[N].close(),delete X.current[N],delete P.current[N],delete y.current[N],delete x.current[N],Object.keys(q.current).forEach(g=>{q.current[g].peerId===N&&(delete q.current[g],j.current.delete(`${q.current[g]?.fileName}:${N}`))}),wt({...P.current}),console.log(`Peer ${N} left room`),W(g=>{const O=g.filter(ut=>ut.peerId!==N);return Object.values(P.current).forEach(ut=>{ut.readyState==="open"&&ut.send(JSON.stringify({type:"file-list",files:O.map(L=>({name:L.name,size:L.size,peerId:L.peerId,thumbnail:!!tt.current[`${L.name}_thumbnail`]}))}))}),O});let w=!1;Object.keys(V.current).forEach(g=>{V.current[g].delete(N)&&(w=!0,hn(g,V.current[g].size))}),w&&at(g=>({...g}))}C&&Object.keys(X.current).length===0&&(T(!1),H?(G(!1),_t("")):bt(600))}),Q.on("ice-candidate",async({code:h,candidate:N,from:w,to:g})=>{if(g!==Q.id||h!==c){console.log(`Ignoring ICE candidate from ${w} (to=${g}, code mismatch: ${h} vs ${c})`);return}if(console.log(`Received ICE candidate from ${w}`),X.current[w])try{await X.current[w].addIceCandidate(new RTCIceCandidate(N)),console.log(`Added ICE candidate from ${w}`)}catch(O){console.error(`Error adding ICE candidate from ${w}:`,O)}else console.warn(`No peer connection found for ${w} when receiving ICE candidate`)}),Q.on("error",h=>{_t(h),on(),console.log("Server error:",h),(h.includes("Invalid code")||h.includes("room not found"))&&window.history.pushState({},"","/")}),Q.on("files",h=>{console.log("Received files:",h),W(h)}),Q.on("text",({text:h})=>{console.log(`Received text via socket for room ${c}:`,h),Bt(N=>[...N,h])}),Q.on("file-list",({files:h})=>{W(N=>{const w=h.filter(g=>!N.some(O=>O.name===g.name&&O.peerId===g.peerId));return w.forEach(g=>{const O=`${g.name}:${g.peerId}`;g.thumbnail&&!tt.current[`${g.name}_thumbnail`]&&!j.current.has(O)?(console.log(`Requesting thumbnail for ${g.name} from ${g.peerId}`),Ln(g)):g.thumbnail&&console.log(`Thumbnail for ${g.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",h),[...N,...w]})}),Q.on("update-count-fallback",({fileName:h,count:N})=>{at(w=>({...w,[h]:N}))}),Q.on("room-status-check",({exists:h,isInRoom:N})=>{h?N||(console.log(`Rejoining room ${c}`),jn(c)):(_t("Room closed"),on(),console.log(`Room ${c} closed`))}),()=>{Q.off("peer-joined"),Q.off("offer"),Q.off("answer"),Q.off("room-status"),Q.off("fallback"),Q.off("peer-left"),Q.off("ice-candidate"),Q.off("error"),Q.off("files"),Q.off("text"),Q.off("file-list"),Q.off("update-count-fallback"),Q.off("room-status-check")}),[c,C,H]),ct.useEffect(()=>{const h=()=>{c&&(Q.emit("check-room-status",c),console.log(`Reconnected, checking room status for ${c}`))};return Q.io.on("reconnect",h),()=>{Q.io.off("reconnect",h)}},[c]),ct.useEffect(()=>{const h=()=>{document.visibilityState==="visible"&&c&&(Q.disconnected&&(Q.connect(),console.log("Tab visible, reconnecting socket")),Q.emit("check-room-status",c),console.log(`Tab visible, checking room status for ${c}`))};return document.addEventListener("visibilitychange",h),()=>{document.removeEventListener("visibilitychange",h)}},[c]),ct.useEffect(()=>{if(C&&nt>0&&!B&&!H){const h=setInterval(()=>{bt(N=>N<=1?(on(),_t("No one joined the room"),0):N-1)},1e3);return()=>clearInterval(h)}},[C,nt,B,H,c]),ct.useEffect(()=>{le.current=ne,console.log("Updated filesRef:",le.current)},[ne]),ct.useEffect(()=>{const h=Object.keys(X.current);ht([Q.id,...h].sort())},[oe]),ct.useEffect(()=>{if(!c){const h=window.location.pathname;if(h.startsWith("/room/")){const N=h.slice(6).replace(/_/g," ");jn(N)}}},[]),ct.useEffect(()=>{const h=window.location.pathname;i(!h.startsWith("/app/"))},[]);const Ln=h=>{const N=`${h.name}:${h.peerId}`;if(h.thumbnail&&h.peerId!==Q.id&&!H){const w=(A.current[h.name]||0)+1;if(w>3){console.error(`Max retries reached for thumbnail ${h.name} from ${h.peerId}`);return}if(j.current.has(N)){console.log(`Thumbnail request for ${h.name} from ${h.peerId} already in progress, skipping`);return}const g=P.current[h.peerId];g?.readyState==="open"?(A.current[h.name]=w,j.current.add(N),g.send(JSON.stringify({type:"request-thumbnail",fileName:h.name})),console.log(`Requested thumbnail for ${h.name} from ${h.peerId} via WebRTC (retry ${w})`)):(console.warn(`Data channel not ready for ${h.peerId}, retrying in 1s`),setTimeout(()=>{j.current.has(N)||Ln(h)},1e3))}else console.error(`Cannot request thumbnail for ${h.name}:`,{isThumbnail:h.thumbnail,isLocal:h.peerId===Q.id,useFallback:H,channelOpen:P.current[h.peerId]?.readyState})},Oe=async(h,N,w,g)=>{const O=y.current[h];if(!O||O.readyState!=="open"){console.error(`Binary channel not open for ${h}`);return}if(g.size>100*1024){console.warn(`Thumbnail ${w} size ${g.size} exceeds 100KB limit, skipping`);return}const ut=Y.current++;console.log(`Sending ${N} ${w} to ${h}, size: ${g.size}`),O.send(JSON.stringify({type:"start",transferId:ut,kind:N,fileName:w,size:g.size}));const L=new FileReader;L.onload=()=>{const K=L.result,St=new TextEncoder().encode(w),it=8+St.length,qt=new ArrayBuffer(it+K.byteLength),gt=new DataView(qt);gt.setUint32(0,ut),gt.setUint32(4,St.length),new Uint8Array(qt).set(St,8),new Uint8Array(qt).set(new Uint8Array(K),it),O.send(qt),O.send(JSON.stringify({type:"end",transferId:ut}))},L.onerror=K=>{console.error(`Error reading ${N} ${w} for ${h}:`,K)},L.readAsArrayBuffer(g)},Si=async(h,N,w)=>{if(!N){console.error(`No fileName provided for sendFileChunked to ${h}`);return}const g=y.current[h];if(!g||g.readyState!=="open"){console.error(`Binary channel not open for ${h}`);return}Tt.current.has(N)&&(Tt.current.delete(N),console.log(`Cleared previous cancel for ${N}, starting new send to ${h}`));const O=Y.current++;console.log(`Sending start message for file ${N} to ${h}, transferId: ${O}, size: ${w.size}`),g.send(JSON.stringify({type:"start",transferId:O,kind:"file",fileName:N,size:w.size}));const ut=8*1024*1024,L=4*1024*1024;g.bufferedAmountLowThreshold=L;let K;g.onbufferedamountlow=()=>{K&&(K(),K=null)};const St=()=>g.bufferedAmount<=ut?Promise.resolve():new Promise(gt=>{K=gt});await St();const it=16384;let qt=0;for(console.log(`--- offset : ${qt} --- file.size : ${w.size}`);qt<w.size;){if(Tt.current.has(N)){console.log(`Canceled sending ${N} to ${h}`),g.send(JSON.stringify({type:"cancel",transferId:O}));return}const gt=w.slice(qt,qt+it);if(console.log(`--- slice.size : ${gt.size}`),gt.size===0)break;try{const pe=await new Promise((Xn,_i)=>{const sl=new FileReader;sl.onload=eu=>Xn(eu.target.result),sl.onerror=_i,sl.readAsArrayBuffer(gt)});if(Tt.current.has(N)){console.log(`Canceled sending ${N} to ${h} during read`),g.send(JSON.stringify({type:"cancel",transferId:O}));return}const dn=new TextEncoder().encode(N),Pl=8+dn.length,Yn=new ArrayBuffer(Pl+pe.byteLength),cl=new DataView(Yn);cl.setUint32(0,O),cl.setUint32(4,dn.length),new Uint8Array(Yn).set(dn,8),new Uint8Array(Yn).set(new Uint8Array(pe),Pl),g.send(Yn),await St(),qt+=pe.byteLength}catch(pe){console.error(`Error reading ${N}:`,pe),g.send(JSON.stringify({type:"cancel",transferId:O}));return}}g.send(JSON.stringify({type:"end",transferId:O})),Tt.current.delete(N),console.log(`Finished sending ${N} to ${h}`)},Fa=(h,N)=>{if(!Tt.current.has(h)){Tt.current.add(h);const w=P.current[N];w&&w.readyState==="open"&&(w.send(JSON.stringify({type:"end-download",fileName:h})),w.send(JSON.stringify({type:"cancel-download",fileName:h})),console.log(`Sent end-download and cancel-download for ${h} to ${N}`)),Ht(g=>{const O=g[h]?.status==="saved",{[h]:ut,...L}=g;return O?{...L,[h]:{status:"saved",progress:100,peerId:N}}:L}),Object.keys(q.current).forEach(g=>{const O=q.current[g];O.fileName===h&&O.peerId===N&&(delete q.current[g],j.current.delete(`${h}:${N}`))}),console.log(`Canceled download for ${h} locally`)}},Pa=h=>{W(N=>N.filter(w=>w.name!==h)),delete tt.current[h],delete tt.current[`${h}_thumbnail`],Object.values(P.current).forEach(N=>{N.readyState==="open"&&N.send(JSON.stringify({type:"remove-file",fileName:h}))}),V.current[h]&&(delete V.current[h],at(N=>{const{[h]:w,...g}=N;return g}),hn(h,0)),console.log(`Deleted file ${h} and notified peers`)},hn=(h,N)=>{at(w=>({...w,[h]:N})),Object.values(P.current).forEach(w=>{w.readyState==="open"&&w.send(JSON.stringify({type:"update-count",fileName:h,count:N}))})},Ia=(h,N)=>{const w=N.data;try{if(typeof w=="string"){const g=JSON.parse(w);if(g.type==="text")Bt(O=>[...O,g.text]),console.log(`Received text via WebRTC from ${h}: ${g.text}`);else if(g.type==="text-history")console.log(`Received text-history from ${h}:`,g.history,"Current textHistory:",Mt),Array.isArray(g.history)?Bt(g.history):console.warn(`Invalid text-history format from ${h}:`,g.history);else if(g.type==="request-file"){const O=tt.current[g.fileName];O?(console.log(`Handling request-file for ${g.fileName} from ${h}`),tu(h,g.fileName,"start"),Si(h,g.fileName,O)):console.error(`File not found: ${g.fileName}`)}else if(g.type==="request-thumbnail"){const O=tt.current[`${g.fileName}_thumbnail`];O?(console.log(`Handling request-thumbnail for ${g.fileName} from ${h}`),Oe(h,"thumbnail",g.fileName,O)):console.error(`Thumbnail not found for ${g.fileName}`)}else g.type==="end-download"?tu(h,g.fileName,"end"):g.type==="remove-file"?(W(O=>O.filter(ut=>ut.name!==g.fileName)),console.log(`Removed file ${g.fileName} from list`)):g.type==="update-count"?at(O=>({...O,[g.fileName]:g.count})):g.type==="file-list"&&W(O=>{const ut=g.files.filter(L=>!O.some(K=>K.name===L.name&&K.peerId===L.peerId)).map(L=>({...L,peerId:L.peerId||"unknown"}));return ut.forEach(L=>{const K=`${L.name}:${L.peerId}`;L.thumbnail&&!tt.current[`${L.name}_thumbnail`]&&!j.current.has(K)?(console.log(`Requesting thumbnail for ${L.name} from ${L.peerId}`),Ln(L)):L.thumbnail&&console.log(`Thumbnail for ${L.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",g.files),[...O,...ut]})}else console.warn(`Unexpected non-string message on main channel from ${h}`),console.log(w)}catch(g){console.error(`Error processing message from ${h}:`,g)}},Fl=(h,N)=>{const w=N.data;if(typeof w=="string")try{const g=JSON.parse(w);if(g.type==="start"){if(g.transferId===void 0||g.transferId===null||!g.fileName||!g.kind||!g.size){console.error(`Invalid start message from ${h}:`,g);return}if(q.current[g.transferId]){console.warn(`TransferId ${g.transferId} already exists for ${h}, ignoring new start for ${g.fileName}`);return}q.current[g.transferId]={kind:g.kind,fileName:g.fileName,chunks:[],expectedSize:g.size,received:0,peerId:h},console.log(`Started ${g.kind} transfer ${g.transferId} for ${g.fileName} from ${h}, expected size: ${g.size}`),g.kind==="file"&&Ht(O=>({...O,[g.fileName]:{status:"downloading",progress:0,total:g.size,received:0,peerId:h}}))}else if(g.type==="end"){const O=q.current[g.transferId];if(!O){console.warn(`No state for transferId ${g.transferId} from ${h}`);return}if(O.received>=O.expectedSize){const ut=new Blob(O.chunks,{type:O.kind==="thumbnail"?"image/jpeg":"application/octet-stream"});if(console.log(`Assembled ${O.kind} ${O.fileName}, size: ${ut.size}`),O.kind==="thumbnail")tt.current[`${O.fileName}_thumbnail`]=ut,console.log(`Received thumbnail for ${O.fileName} from ${h}, size: ${ut.size}`),W(L=>L.map(K=>K.name===O.fileName&&K.peerId!==Q.id?{...K,thumbnail:!0}:K)),j.current.delete(`${O.fileName}:${h}`);else if(O.kind==="file"){tt.current[O.fileName]=ut;const L=URL.createObjectURL(ut);q.current[g.transferId].blobUrl=L,console.log(`Stored blobUrl ${L} for transferId ${g.transferId}, fileName: ${O.fileName}`),console.log("binaryStateRef.current keys: ",JSON.stringify(Object.keys(q.current))),console.log(`binaryStateRef.current[${g.transferId}]: `,JSON.stringify(q.current[g.transferId]));const K=document.createElement("a");K.href=L,K.download=O.fileName,K.click(),setTimeout(()=>{URL.revokeObjectURL(L),console.log(`Revoked blobUrl ${L} for transferId ${g.transferId}`)},5e3),Ht(it=>({...it,[O.fileName]:{status:"saved",progress:100,peerId:h}}));const St=P.current[h];St&&St.readyState==="open"&&St.send(JSON.stringify({type:"end-download",fileName:O.fileName}))}}else console.warn(`Size mismatch for ${O.kind} ${O.fileName}: received ${O.received}, expected ${O.expectedSize}`),O.kind==="file"&&Ht(ut=>({...ut,[O.fileName]:{status:"error",progress:O.received/O.expectedSize*100}})),j.current.delete(`${O.fileName}:${h}`)}else if(g.type==="cancel"){const O=q.current[g.transferId];O&&O.kind==="file"&&Ht(ut=>({...ut,[O.fileName]:{status:"canceled",progress:0}})),j.current.delete(`${O.fileName}:${h}`),delete q.current[g.transferId]}}catch(g){console.error(`Error processing binary control message from ${h}:`,g)}else if(w instanceof ArrayBuffer){if(w.byteLength<8){console.warn(`Invalid binary message size from ${h}: ${w.byteLength} bytes`);return}const g=new DataView(w),O=g.getUint32(0),ut=g.getUint32(4);if(w.byteLength<8+ut){console.warn(`Invalid binary message: insufficient length for fileName from ${h}`);return}const L=new Uint8Array(w,8,ut),K=new TextDecoder().decode(L),St=w.slice(8+ut),it=q.current[O];if(it&&it.fileName===K){if(Tt.current.has(it.fileName)){console.log(`Ignoring chunk for canceled ${it.kind} ${it.fileName}`);return}if(it.chunks.push(St),it.received+=St.byteLength,it.kind==="file"){const qt=Math.min(100,it.received/it.expectedSize*100);Ht(gt=>({...gt,[it.fileName]:{...gt[it.fileName],progress:qt,received:it.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${O} from ${h}: expected ${it?.fileName}, got ${K}`)}else if(w instanceof Blob){console.log(`Received Blob message from ${h}, size: ${w.size}`),console.dir(w);const g=new FileReader;g.onload=()=>{const O=g.result;if(O.byteLength<4){console.warn(`Invalid Blob-converted ArrayBuffer size from ${h}: ${O.byteLength} bytes`);return}const ut=new DataView(O),L=ut.getUint32(0),K=ut.getUint32(4);if(O.byteLength<8+K){console.warn(`Invalid Blob-converted ArrayBuffer: insufficient length for fileName from ${h}`);return}const St=new Uint8Array(O,8,K),it=new TextDecoder().decode(St),qt=O.slice(8+K),gt=q.current[L];if(gt&&gt.fileName===it){if(Tt.current.has(gt.fileName)){console.log(`Ignoring chunk for canceled ${gt.kind} ${gt.fileName}`);return}if(gt.chunks.push(qt),gt.received+=qt.byteLength,console.log(`Received Blob chunk for ${gt.kind} ${gt.fileName}, transferId ${L}: ${gt.received}/${gt.expectedSize}`),gt.kind==="file"){const pe=Math.min(100,gt.received/gt.expectedSize*100);Ht(dn=>({...dn,[gt.fileName]:{...dn[gt.fileName],progress:pe,received:gt.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${L} from ${h}: expected ${gt?.fileName}, got ${it}`)},g.onerror=O=>{console.error(`Error reading Blob from ${h}:`,O)},g.readAsArrayBuffer(w)}else console.warn(`Unexpected message type from ${h}:`,typeof w),console.log(w)},tu=(h,N,w)=>{if(tt.current[N]){V.current[N]=V.current[N]||new Set,w==="start"?(V.current[N].add(h),console.log(`Started download of ${N} by ${h}, count: ${V.current[N].size}`)):w==="end"&&(V.current[N].delete(h),console.log(`Ended download of ${N} by ${h}, count: ${V.current[N].size}`));const g=V.current[N].size;hn(N,g)}};return Z.jsxs("div",{className:"container mx-auto left",children:[Z.jsxs(Z.Fragment,{children:[c&&Z.jsx(Z.Fragment,{children:C&&nt>0&&!B&&Z.jsxs("p",{children:["Waiting for peer(s) to connect [WebRTC]... ",nt,"s"]})}),Z.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),Qt&&Z.jsx("p",{className:"text-red-500 mb-2",children:Qt}),Z.jsx(xg,{code:c,isConnected:B,onCreateRoom:il,onJoinRoom:jn})]}),c&&Z.jsxs(Z.Fragment,{children:[Z.jsxs("p",{className:"text-lg",children:[lt,"//",ce,"/room/",Z.jsx("strong",{children:zt||"N/A"})]}),Z.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:Jl,children:C?"Close Room":"Leave Room"}),"●",Z.jsx("button",{onClick:()=>ul("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:v==="link"?"Copied!":"Copy Link"}),Z.jsx("button",{onClick:()=>ul("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:v==="code"?"Copied!":"Copy Code"}),Z.jsxs("div",{className:"mb-4 fixed top-0 right-10 text-right",children:[Z.jsxs("h2",{className:"text-xl font-bold text-right",children:["Connected Users (",M.length,"):"]}),Z.jsx("ul",{children:M.filter(h=>h!=null).map((h,N)=>Z.jsxs("li",{children:[Q.id&&h===Q.id?"(You)":""," ",h]},h||`user-${N}`))})]}),Z.jsx(Ug,{textHistory:Mt,setTextHistory:Bt,dataChannels:oe,useFallback:H,socket:Q,code:c}),Z.jsx(Dg,{files:ne,setFiles:W,dataChannels:oe,dataChannelsRef:P,useFallback:H,socket:Q,code:c,socketId:Q.id,localFilesRef:tt,downloadStates:Zt,setDownloadStates:Ht,cancelDownload:Fa,cancelRequestsRef:Tt,downloadCounts:dt,handleDeleteFile:Pa,SERVER_URL:ed}),H&&Z.jsx("p",{className:"text-red-500",children:"Using server fallback"})]}),!c&&f&&Z.jsx("a",{href:"/apk/",id:"apk",children:Z.jsx("button",{children:"APK"})})]})}wm.createRoot(document.getElementById("root")).render(Z.jsx(ct.StrictMode,{children:Z.jsx(Mg,{})}));

Top
©twily.info 2013 - 2025
twily at twily dot info



2 419 798 visits
... ^ v