(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 O of v)if(O.type==="childList")for(const q of O.addedNodes)q.tagName==="LINK"&&q.rel==="modulepreload"&&s(q)}).observe(document,{childList:!0,subtree:!0});function c(v){const O={};return v.integrity&&(O.integrity=v.integrity),v.referrerPolicy&&(O.referrerPolicy=v.referrerPolicy),v.crossOrigin==="use-credentials"?O.credentials="include":v.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function s(v){if(v.ep)return;v.ep=!0;const O=c(v);fetch(v.href,O)}})();var Us={exports:{}},$a={};/**
 * @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 Rm(){if(Yh)return $a;Yh=1;var f=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,v,O){var q=null;if(O!==void 0&&(q=""+O),v.key!==void 0&&(q=""+v.key),"key"in v){O={};for(var Q in v)Q!=="key"&&(O[Q]=v[Q])}else O=v;return v=O.ref,{$$typeof:f,type:s,key:q,ref:v!==void 0?v:null,props:O}}return $a.Fragment=i,$a.jsx=c,$a.jsxs=c,$a}var Xh;function zm(){return Xh||(Xh=1,Us.exports=Rm()),Us.exports}var Z=zm(),Ms={exports:{}},it={};/**
 * @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 it;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"),O=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),T=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),W=Symbol.iterator;function ct(y){return y===null||typeof y!="object"?null:(y=W&&y[W]||y["@@iterator"],typeof y=="function"?y:null)}var Tt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qt=Object.assign,Ut={};function Qt(y,z,L){this.props=y,this.context=z,this.refs=Ut,this.updater=L||Tt}Qt.prototype.isReactComponent={},Qt.prototype.setState=function(y,z){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,z,"setState")},Qt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function St(){}St.prototype=Qt.prototype;function oe(y,z,L){this.props=y,this.context=z,this.refs=Ut,this.updater=L||Tt}var Ct=oe.prototype=new St;Ct.constructor=oe,qt(Ct,Qt.prototype),Ct.isPureReactComponent=!0;var ee=Array.isArray,F={H:null,A:null,T:null,S:null,V:null},ne=Object.prototype.hasOwnProperty;function wt(y,z,L,w,$,gt){return L=gt.ref,{$$typeof:f,type:y,key:z,ref:L!==void 0?L:null,props:gt}}function C(y,z){return wt(y.type,z,void 0,void 0,void 0,y.props)}function ht(y){return typeof y=="object"&&y!==null&&y.$$typeof===f}function dt(y){var z={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(L){return z[L]})}var ut=/\/+/g;function nt(y,z){return typeof y=="object"&&y!==null&&y.key!=null?dt(""+y.key):z.toString(36)}function le(){}function Lt(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(z){y.status==="pending"&&(y.status="fulfilled",y.value=z)},function(z){y.status==="pending"&&(y.status="rejected",y.reason=z)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function _t(y,z,L,w,$){var gt=typeof y;(gt==="undefined"||gt==="boolean")&&(y=null);var lt=!1;if(y===null)lt=!0;else switch(gt){case"bigint":case"string":case"number":lt=!0;break;case"object":switch(y.$$typeof){case f:case i:lt=!0;break;case B:return lt=y._init,_t(lt(y._payload),z,L,w,$)}}if(lt)return $=$(y),lt=w===""?"."+nt(y,0):w,ee($)?(L="",lt!=null&&(L=lt.replace(ut,"$&/")+"/"),_t($,z,L,"",function(je){return je})):$!=null&&(ht($)&&($=C($,L+($.key==null||y&&y.key===$.key?"":(""+$.key).replace(ut,"$&/")+"/")+lt)),z.push($)),1;lt=0;var ce=w===""?".":w+":";if(ee(y))for(var Mt=0;Mt<y.length;Mt++)w=y[Mt],gt=ce+nt(w,Mt),lt+=_t(w,z,L,gt,$);else if(Mt=ct(y),typeof Mt=="function")for(y=Mt.call(y),Mt=0;!(w=y.next()).done;)w=w.value,gt=ce+nt(w,Mt++),lt+=_t(w,z,L,gt,$);else if(gt==="object"){if(typeof y.then=="function")return _t(Lt(y),z,L,w,$);throw z=String(y),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return lt}function A(y,z,L){if(y==null)return y;var w=[],$=0;return _t(y,w,"","",function(gt){return z.call(L,gt,$++)}),w}function H(y){if(y._status===-1){var z=y._result;z=z(),z.then(function(L){(y._status===0||y._status===-1)&&(y._status=1,y._result=L)},function(L){(y._status===0||y._status===-1)&&(y._status=2,y._result=L)}),y._status===-1&&(y._status=0,y._result=z)}if(y._status===1)return y._result.default;throw y._result}var Y=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=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(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function I(){}return it.Children={map:A,forEach:function(y,z,L){A(y,function(){z.apply(this,arguments)},L)},count:function(y){var z=0;return A(y,function(){z++}),z},toArray:function(y){return A(y,function(z){return z})||[]},only:function(y){if(!ht(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},it.Component=Qt,it.Fragment=c,it.Profiler=v,it.PureComponent=oe,it.StrictMode=s,it.Suspense=M,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,it.__COMPILER_RUNTIME={__proto__:null,c:function(y){return F.H.useMemoCache(y)}},it.cache=function(y){return function(){return y.apply(null,arguments)}},it.cloneElement=function(y,z,L){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var w=qt({},y.props),$=y.key,gt=void 0;if(z!=null)for(lt in z.ref!==void 0&&(gt=void 0),z.key!==void 0&&($=""+z.key),z)!ne.call(z,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&z.ref===void 0||(w[lt]=z[lt]);var lt=arguments.length-2;if(lt===1)w.children=L;else if(1<lt){for(var ce=Array(lt),Mt=0;Mt<lt;Mt++)ce[Mt]=arguments[Mt+2];w.children=ce}return wt(y.type,$,void 0,void 0,gt,w)},it.createContext=function(y){return y={$$typeof:q,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:O,_context:y},y},it.createElement=function(y,z,L){var w,$={},gt=null;if(z!=null)for(w in z.key!==void 0&&(gt=""+z.key),z)ne.call(z,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&($[w]=z[w]);var lt=arguments.length-2;if(lt===1)$.children=L;else if(1<lt){for(var ce=Array(lt),Mt=0;Mt<lt;Mt++)ce[Mt]=arguments[Mt+2];$.children=ce}if(y&&y.defaultProps)for(w in lt=y.defaultProps,lt)$[w]===void 0&&($[w]=lt[w]);return wt(y,gt,void 0,void 0,null,$)},it.createRef=function(){return{current:null}},it.forwardRef=function(y){return{$$typeof:Q,render:y}},it.isValidElement=ht,it.lazy=function(y){return{$$typeof:B,_payload:{_status:-1,_result:y},_init:H}},it.memo=function(y,z){return{$$typeof:T,type:y,compare:z===void 0?null:z}},it.startTransition=function(y){var z=F.T,L={};F.T=L;try{var w=y(),$=F.S;$!==null&&$(L,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(I,Y)}catch(gt){Y(gt)}finally{F.T=z}},it.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},it.use=function(y){return F.H.use(y)},it.useActionState=function(y,z,L){return F.H.useActionState(y,z,L)},it.useCallback=function(y,z){return F.H.useCallback(y,z)},it.useContext=function(y){return F.H.useContext(y)},it.useDebugValue=function(){},it.useDeferredValue=function(y,z){return F.H.useDeferredValue(y,z)},it.useEffect=function(y,z,L){var w=F.H;if(typeof L=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return w.useEffect(y,z)},it.useId=function(){return F.H.useId()},it.useImperativeHandle=function(y,z,L){return F.H.useImperativeHandle(y,z,L)},it.useInsertionEffect=function(y,z){return F.H.useInsertionEffect(y,z)},it.useLayoutEffect=function(y,z){return F.H.useLayoutEffect(y,z)},it.useMemo=function(y,z){return F.H.useMemo(y,z)},it.useOptimistic=function(y,z){return F.H.useOptimistic(y,z)},it.useReducer=function(y,z,L){return F.H.useReducer(y,z,L)},it.useRef=function(y){return F.H.useRef(y)},it.useState=function(y){return F.H.useState(y)},it.useSyncExternalStore=function(y,z,L){return F.H.useSyncExternalStore(y,z,L)},it.useTransition=function(){return F.H.useTransition()},it.version="19.1.1",it}var Qh;function $s(){return Qh||(Qh=1,Ms.exports=Nm()),Ms.exports}var rt=$s(),Bs={exports:{}},Ka={},Cs={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 Dm(){return Vh||(Vh=1,function(f){function i(A,H){var Y=A.length;A.push(H);t:for(;0<Y;){var I=Y-1>>>1,y=A[I];if(0<v(y,H))A[I]=H,A[Y]=y,Y=I;else break t}}function c(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var H=A[0],Y=A.pop();if(Y!==H){A[0]=Y;t:for(var I=0,y=A.length,z=y>>>1;I<z;){var L=2*(I+1)-1,w=A[L],$=L+1,gt=A[$];if(0>v(w,Y))$<y&&0>v(gt,w)?(A[I]=gt,A[$]=Y,I=$):(A[I]=w,A[L]=Y,I=L);else if($<y&&0>v(gt,Y))A[I]=gt,A[$]=Y,I=$;else break t}}return H}function v(A,H){var Y=A.sortIndex-H.sortIndex;return Y!==0?Y:A.id-H.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;f.unstable_now=function(){return O.now()}}else{var q=Date,Q=q.now();f.unstable_now=function(){return q.now()-Q}}var M=[],T=[],B=1,W=null,ct=3,Tt=!1,qt=!1,Ut=!1,Qt=!1,St=typeof setTimeout=="function"?setTimeout:null,oe=typeof clearTimeout=="function"?clearTimeout:null,Ct=typeof setImmediate<"u"?setImmediate:null;function ee(A){for(var H=c(T);H!==null;){if(H.callback===null)s(T);else if(H.startTime<=A)s(T),H.sortIndex=H.expirationTime,i(M,H);else break;H=c(T)}}function F(A){if(Ut=!1,ee(A),!qt)if(c(M)!==null)qt=!0,ne||(ne=!0,nt());else{var H=c(T);H!==null&&_t(F,H.startTime-A)}}var ne=!1,wt=-1,C=5,ht=-1;function dt(){return Qt?!0:!(f.unstable_now()-ht<C)}function ut(){if(Qt=!1,ne){var A=f.unstable_now();ht=A;var H=!0;try{t:{qt=!1,Ut&&(Ut=!1,oe(wt),wt=-1),Tt=!0;var Y=ct;try{e:{for(ee(A),W=c(M);W!==null&&!(W.expirationTime>A&&dt());){var I=W.callback;if(typeof I=="function"){W.callback=null,ct=W.priorityLevel;var y=I(W.expirationTime<=A);if(A=f.unstable_now(),typeof y=="function"){W.callback=y,ee(A),H=!0;break e}W===c(M)&&s(M),ee(A)}else s(M);W=c(M)}if(W!==null)H=!0;else{var z=c(T);z!==null&&_t(F,z.startTime-A),H=!1}}break t}finally{W=null,ct=Y,Tt=!1}H=void 0}}finally{H?nt():ne=!1}}}var nt;if(typeof Ct=="function")nt=function(){Ct(ut)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Lt=le.port2;le.port1.onmessage=ut,nt=function(){Lt.postMessage(null)}}else nt=function(){St(ut,0)};function _t(A,H){wt=St(function(){A(f.unstable_now())},H)}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"):C=0<A?Math.floor(1e3/A):5},f.unstable_getCurrentPriorityLevel=function(){return ct},f.unstable_next=function(A){switch(ct){case 1:case 2:case 3:var H=3;break;default:H=ct}var Y=ct;ct=H;try{return A()}finally{ct=Y}},f.unstable_requestPaint=function(){Qt=!0},f.unstable_runWithPriority=function(A,H){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Y=ct;ct=A;try{return H()}finally{ct=Y}},f.unstable_scheduleCallback=function(A,H,Y){var I=f.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?I+Y:I):Y=I,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=Y+y,A={id:B++,callback:H,priorityLevel:A,startTime:Y,expirationTime:y,sortIndex:-1},Y>I?(A.sortIndex=Y,i(T,A),c(M)===null&&A===c(T)&&(Ut?(oe(wt),wt=-1):Ut=!0,_t(F,Y-I))):(A.sortIndex=y,i(M,A),qt||Tt||(qt=!0,ne||(ne=!0,nt()))),A},f.unstable_shouldYield=dt,f.unstable_wrapCallback=function(A){var H=ct;return function(){var Y=ct;ct=H;try{return A.apply(this,arguments)}finally{ct=Y}}}}(qs)),qs}var Zh;function xm(){return Zh||(Zh=1,Cs.exports=Dm()),Cs.exports}var ws={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 $h;function Um(){if($h)return fe;$h=1;var f=$s();function i(M){var T="https://react.dev/errors/"+M;if(1<arguments.length){T+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)T+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+M+"; 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 O(M,T,B){var W=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:v,key:W==null?null:""+W,children:M,containerInfo:T,implementation:B}}var q=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Q(M,T){if(M==="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(M,T){var B=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 O(M,T,null,B)},fe.flushSync=function(M){var T=q.T,B=s.p;try{if(q.T=null,s.p=2,M)return M()}finally{q.T=T,s.p=B,s.d.f()}},fe.preconnect=function(M,T){typeof M=="string"&&(T?(T=T.crossOrigin,T=typeof T=="string"?T==="use-credentials"?T:"":void 0):T=null,s.d.C(M,T))},fe.prefetchDNS=function(M){typeof M=="string"&&s.d.D(M)},fe.preinit=function(M,T){if(typeof M=="string"&&T&&typeof T.as=="string"){var B=T.as,W=Q(B,T.crossOrigin),ct=typeof T.integrity=="string"?T.integrity:void 0,Tt=typeof T.fetchPriority=="string"?T.fetchPriority:void 0;B==="style"?s.d.S(M,typeof T.precedence=="string"?T.precedence:void 0,{crossOrigin:W,integrity:ct,fetchPriority:Tt}):B==="script"&&s.d.X(M,{crossOrigin:W,integrity:ct,fetchPriority:Tt,nonce:typeof T.nonce=="string"?T.nonce:void 0})}},fe.preinitModule=function(M,T){if(typeof M=="string")if(typeof T=="object"&&T!==null){if(T.as==null||T.as==="script"){var B=Q(T.as,T.crossOrigin);s.d.M(M,{crossOrigin:B,integrity:typeof T.integrity=="string"?T.integrity:void 0,nonce:typeof T.nonce=="string"?T.nonce:void 0})}}else T==null&&s.d.M(M)},fe.preload=function(M,T){if(typeof M=="string"&&typeof T=="object"&&T!==null&&typeof T.as=="string"){var B=T.as,W=Q(B,T.crossOrigin);s.d.L(M,B,{crossOrigin:W,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(M,T){if(typeof M=="string")if(T){var B=Q(T.as,T.crossOrigin);s.d.m(M,{as:typeof T.as=="string"&&T.as!=="script"?T.as:void 0,crossOrigin:B,integrity:typeof T.integrity=="string"?T.integrity:void 0})}else s.d.m(M)},fe.requestFormReset=function(M){s.d.r(M)},fe.unstable_batchedUpdates=function(M,T){return M(T)},fe.useFormState=function(M,T,B){return q.H.useFormState(M,T,B)},fe.useFormStatus=function(){return q.H.useHostTransitionStatus()},fe.version="19.1.1",fe}var Kh;function Mm(){if(Kh)return ws.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(),ws.exports=Um(),ws.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=xm(),i=$s(),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 O(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 q(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 Q(t){if(O(t)!==t)throw Error(s(188))}function M(t){var e=t.alternate;if(!e){if(e=O(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 Q(a),t;if(u===l)return Q(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 B=Object.assign,W=Symbol.for("react.element"),ct=Symbol.for("react.transitional.element"),Tt=Symbol.for("react.portal"),qt=Symbol.for("react.fragment"),Ut=Symbol.for("react.strict_mode"),Qt=Symbol.for("react.profiler"),St=Symbol.for("react.provider"),oe=Symbol.for("react.consumer"),Ct=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),wt=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ht=Symbol.for("react.activity"),dt=Symbol.for("react.memo_cache_sentinel"),ut=Symbol.iterator;function nt(t){return t===null||typeof t!="object"?null:(t=ut&&t[ut]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function Lt(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 qt:return"Fragment";case Qt:return"Profiler";case Ut:return"StrictMode";case F:return"Suspense";case ne:return"SuspenseList";case ht:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Tt:return"Portal";case Ct:return(t.displayName||"Context")+".Provider";case oe:return(t._context.displayName||"Context")+".Consumer";case ee:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case wt:return e=t.displayName||null,e!==null?e:Lt(t.type)||"Memo";case C:e=t._payload,t=t._init;try{return Lt(t(e))}catch{}}return null}var _t=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},I=[],y=-1;function z(t){return{current:t}}function L(t){0>y||(t.current=I[y],I[y]=null,y--)}function w(t,e){y++,I[y]=t.current,t.current=e}var $=z(null),gt=z(null),lt=z(null),ce=z(null);function Mt(t,e){switch(w(lt,e),w(gt,t),w($,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}}L($),w($,t)}function je(){L($),L(gt),L(lt)}function $l(t){t.memoizedState!==null&&w(ce,t);var e=$.current,n=mh(e,t.type);e!==n&&(w(gt,t),w($,n))}function wn(t){gt.current===t&&(L($),L(gt)),ce.current===t&&(L(ce),Xa._currentValue=Y)}var Kl=Object.prototype.hasOwnProperty,Hn=f.unstable_scheduleCallback,jn=f.unstable_cancelCallback,Ln=f.unstable_shouldYield,bi=f.unstable_requestPaint,Oe=f.unstable_now,Si=f.unstable_getCurrentPriorityLevel,Wa=f.unstable_ImmediatePriority,kl=f.unstable_UserBlockingPriority,Yn=f.unstable_NormalPriority,Fa=f.unstable_LowPriority,Pa=f.unstable_IdlePriority,d=f.log,U=f.unstable_setDisableYieldValue,j=null,g=null;function D(t){if(typeof d=="function"&&U(t),g&&typeof g.setStrictMode=="function")try{g.setStrictMode(j,t)}catch{}}var K=Math.clz32?Math.clz32:At,X=Math.log,V=Math.LN2;function At(t){return t>>>=0,t===0?32:31-(X(t)/V|0)|0}var at=256,Yt=4194304;function ft(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 Re(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=ft(l):(r&=o,r!==0?a=ft(r):n||(n=o&~t,n!==0&&(a=ft(n))))):(o=l&~u,o!==0?a=ft(o):r!==0?a=ft(r):n||(n=l&~t,n!==0&&(a=ft(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 ze(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ia(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 Xn(){var t=at;return at<<=1,(at&4194048)===0&&(at=256),t}function Jl(){var t=Yt;return Yt<<=1,(Yt&62914560)===0&&(Yt=4194304),t}function Wl(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Gn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Fl(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,h=t.expirationTimes,S=t.hiddenUpdates;for(n=r&~n;0<n;){var R=31-K(n),x=1<<R;o[R]=0,h[R]=-1;var _=S[R];if(_!==null)for(S[R]=null,R=0;R<_.length;R++){var E=_[R];E!==null&&(E.lane&=-536870913)}n&=~x}l!==0&&tu(t,l,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(r&~e))}function tu(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-K(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&4194090}function Ps(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-K(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function _i(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 Ei(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Is(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Ch(t.type))}function md(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var hn=Math.random().toString(36).slice(2),se="__reactFiber$"+hn,de="__reactProps$"+hn,il="__reactContainer$"+hn,Ti="__reactEvents$"+hn,gd="__reactListeners$"+hn,vd="__reactHandles$"+hn,tr="__reactResources$"+hn,Pl="__reactMarker$"+hn;function Ai(t){delete t[se],delete t[de],delete t[Ti],delete t[gd],delete t[vd]}function cl(t){var e=t[se];if(e)return e;for(var n=t.parentNode;n;){if(e=n[il]||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 sl(t){if(t=t[se]||t[il]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Il(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function rl(t){var e=t[tr];return e||(e=t[tr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Pl]=!0}var er=new Set,nr={};function Qn(t,e){fl(t,e),fl(t+"Capture",e)}function fl(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 Kl.call(ar,t)?!0:Kl.call(lr,t)?!1:pd.test(t)?ar[t]=!0:(lr[t]=!0,!1)}function eu(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 nu(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 We(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 ol(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 Ri=!1;function zi(t,e){if(!t||Ri)return"";Ri=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(E){var _=E}Reflect.construct(t,[],x)}else{try{x.call()}catch(E){_=E}t.call(x.prototype)}}else{try{throw Error()}catch(E){_=E}(x=t())&&typeof x.catch=="function"&&x.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 h=r.split(`
`),S=o.split(`
`);for(a=l=0;l<h.length&&!h[l].includes("DetermineComponentFrameRoot");)l++;for(;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;if(l===h.length||a===S.length)for(l=h.length-1,a=S.length-1;1<=l&&0<=a&&h[l]!==S[a];)a--;for(;1<=l&&0<=a;l--,a--)if(h[l]!==S[a]){if(l!==1||a!==1)do if(l--,a--,0>a||h[l]!==S[a]){var R=`
`+h[l].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=l&&0<=a);break}}}finally{Ri=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ol(n):""}function Sd(t){switch(t.tag){case 26:case 27:case 5:return ol(t.type);case 16:return ol("Lazy");case 13:return ol("Suspense");case 19:return ol("SuspenseList");case 0:case 15:return zi(t.type,!1);case 11:return zi(t.type.render,!1);case 1:return zi(t.type,!0);case 31:return ol("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 Ne(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 lu(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 au(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 De(t){return t.replace(Ed,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ni(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=""+Ne(e)):t.value!==""+Ne(e)&&(t.value=""+Ne(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?Di(t,r,Ne(e)):n!=null?Di(t,r,Ne(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=""+Ne(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?""+Ne(n):"",e=e!=null?""+Ne(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"&&au(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function hl(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=""+Ne(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=""+Ne(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ne(n):""}function or(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(_t(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ne(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l)}function dl(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 xi(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"]]),Od=/^[\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 uu(t){return Od.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Ui=null;function Mi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var yl=null,ml=null;function yr(t){var e=sl(t);if(e&&(t=e.stateNode)){var n=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ni(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="'+De(""+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));Ni(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&&hl(t,!!n.multiple,e,!1)}}}var Bi=!1;function mr(t,e,n){if(Bi)return t(e,n);Bi=!0;try{var l=t(e);return l}finally{if(Bi=!1,(yl!==null||ml!==null)&&(Vu(),yl&&(e=yl,t=ml,ml=yl=null,yr(e),t)))for(e=0;e<t.length;e++)yr(t[e])}}function ta(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 Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ci=!1;if(Fe)try{var ea={};Object.defineProperty(ea,"passive",{get:function(){Ci=!0}}),window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{Ci=!1}var dn=null,qi=null,iu=null;function gr(){if(iu)return iu;var t,e=qi,n=e.length,l,a="value"in dn?dn.value:dn.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 iu=a.slice(t,1<l?1-l:void 0)}function cu(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 su(){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)?su:vr,this.isPropagationStopped=vr,this}return B(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=su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=su)},persist:function(){},isPersistent:su}),e}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=ye(Vn),na=B({},Vn,{view:0,detail:0}),Rd=ye(na),wi,Hi,la,fu=B({},na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Li,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!==la&&(la&&t.type==="mousemove"?(wi=t.screenX-la.screenX,Hi=t.screenY-la.screenY):Hi=wi=0,la=t),wi)},movementY:function(t){return"movementY"in t?t.movementY:Hi}}),pr=ye(fu),zd=B({},fu,{dataTransfer:0}),Nd=ye(zd),Dd=B({},na,{relatedTarget:0}),ji=ye(Dd),xd=B({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),Ud=ye(xd),Md=B({},Vn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bd=ye(Md),Cd=B({},Vn,{data:0}),br=ye(Cd),qd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wd={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 Li(){return jd}var Ld=B({},na,{key:function(t){if(t.key){var e=qd[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?wd[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Li,charCode:function(t){return t.type==="keypress"?cu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Yd=ye(Ld),Xd=B({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sr=ye(Xd),Gd=B({},na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Li}),Qd=ye(Gd),Vd=B({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zd=ye(Vd),$d=B({},fu,{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($d),kd=B({},Vn,{newState:0,oldState:0}),Jd=ye(kd),Wd=[9,13,27,32],Yi=Fe&&"CompositionEvent"in window,aa=null;Fe&&"documentMode"in document&&(aa=document.documentMode);var Fd=Fe&&"TextEvent"in window&&!aa,_r=Fe&&(!Yi||aa&&8<aa&&11>=aa),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 Or(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var gl=!1;function Pd(t,e){switch(t){case"compositionend":return Or(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(gl)return t==="compositionend"||!Yi&&Ar(t,e)?(t=gr(),iu=qi=dn=null,gl=!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 Rr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ty[t.type]:e==="textarea"}function zr(t,e,n,l){yl?ml?ml.push(l):ml=[l]:yl=l,e=Wu(e,"onChange"),0<e.length&&(n=new ru("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ua=null,ia=null;function ey(t){rh(t,0)}function ou(t){var e=Il(t);if(sr(e))return t}function Nr(t,e){if(t==="change")return e}var Dr=!1;if(Fe){var Xi;if(Fe){var Gi="oninput"in document;if(!Gi){var xr=document.createElement("div");xr.setAttribute("oninput","return;"),Gi=typeof xr.oninput=="function"}Xi=Gi}else Xi=!1;Dr=Xi&&(!document.documentMode||9<document.documentMode)}function Ur(){ua&&(ua.detachEvent("onpropertychange",Mr),ia=ua=null)}function Mr(t){if(t.propertyName==="value"&&ou(ia)){var e=[];zr(e,ia,t,Mi(t)),mr(ey,e)}}function ny(t,e,n){t==="focusin"?(Ur(),ua=e,ia=n,ua.attachEvent("onpropertychange",Mr)):t==="focusout"&&Ur()}function ly(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ou(ia)}function ay(t,e){if(t==="click")return ou(e)}function uy(t,e){if(t==="input"||t==="change")return ou(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:iy;function ca(t,e){if(pe(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(!Kl.call(e,a)||!pe(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 qr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=au(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=au(t.document)}return e}function Qi(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=Fe&&"documentMode"in document&&11>=document.documentMode,vl=null,Vi=null,sa=null,Zi=!1;function Hr(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zi||vl==null||vl!==au(l)||(l=vl,"selectionStart"in l&&Qi(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}),sa&&ca(sa,l)||(sa=l,l=Wu(Vi,"onSelect"),0<l.length&&(e=new ru("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=vl)))}function Zn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var pl={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},$i={},jr={};Fe&&(jr=document.createElement("div").style,"AnimationEvent"in window||(delete pl.animationend.animation,delete pl.animationiteration.animation,delete pl.animationstart.animation),"TransitionEvent"in window||delete pl.transitionend.transition);function $n(t){if($i[t])return $i[t];if(!pl[t])return t;var e=pl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in jr)return $i[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 Le(t,e){Qr.set(t,e),Qn(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 Ue=[],bl=0,ki=0;function hu(){for(var t=bl,e=ki=bl=0;e<t;){var n=Ue[e];Ue[e++]=null;var l=Ue[e];Ue[e++]=null;var a=Ue[e];Ue[e++]=null;var u=Ue[e];if(Ue[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&&Zr(n,a,u)}}function du(t,e,n,l){Ue[bl++]=t,Ue[bl++]=e,Ue[bl++]=n,Ue[bl++]=l,ki|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Ji(t,e,n,l){return du(t,e,n,l),yu(t)}function Sl(t,e){return du(t,null,null,e),yu(t)}function Zr(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-K(n),t=u.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),u):null}function yu(t){if(50<Ba)throw Ba=0,es=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var _l={};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 be(t,e,n,l){return new oy(t,e,n,l)}function Wi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pe(t,e){var n=t.alternate;return n===null?(n=be(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 $r(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 mu(t,e,n,l,a,u){var r=0;if(l=t,typeof t=="function")Wi(t)&&(r=1);else if(typeof t=="string")r=dm(t,n,$.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ht:return t=be(31,n,e,a),t.elementType=ht,t.lanes=u,t;case qt:return Kn(n.children,a,u,e);case Ut:r=8,a|=24;break;case Qt:return t=be(12,n,e,a|2),t.elementType=Qt,t.lanes=u,t;case F:return t=be(13,n,e,a),t.elementType=F,t.lanes=u,t;case ne:return t=be(19,n,e,a),t.elementType=ne,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case St:case Ct:r=10;break t;case oe:r=9;break t;case ee:r=11;break t;case wt:r=14;break t;case C:r=16,l=null;break t}r=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=be(r,n,e,a),e.elementType=t,e.type=l,e.lanes=u,e}function Kn(t,e,n,l){return t=be(7,t,l,e),t.lanes=n,t}function Fi(t,e,n){return t=be(6,t,null,e),t.lanes=n,t}function Pi(t,e,n){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var El=[],Tl=0,gu=null,vu=0,Me=[],Be=0,kn=null,Ie=1,tn="";function Jn(t,e){El[Tl++]=vu,El[Tl++]=gu,gu=t,vu=e}function Kr(t,e,n){Me[Be++]=Ie,Me[Be++]=tn,Me[Be++]=kn,kn=t;var l=Ie;t=tn;var a=32-K(l)-1;l&=~(1<<a),n+=1;var u=32-K(e)+a;if(30<u){var r=a-a%5;u=(l&(1<<r)-1).toString(32),l>>=r,a-=r,Ie=1<<32-K(e)+a|n<<a|l,tn=u+t}else Ie=1<<u|n<<a|l,tn=t}function Ii(t){t.return!==null&&(Jn(t,1),Kr(t,1,0))}function tc(t){for(;t===gu;)gu=El[--Tl],El[Tl]=null,vu=El[--Tl],El[Tl]=null;for(;t===kn;)kn=Me[--Be],Me[Be]=null,tn=Me[--Be],Me[Be]=null,Ie=Me[--Be],Me[Be]=null}var he=null,Xt=null,Et=!1,Wn=null,Qe=!1,ec=Error(s(519));function Fn(t){var e=Error(s(418,""));throw oa(xe(e,t)),ec}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),lu(e);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),or(e,l.value,l.defaultValue,l.children),lu(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=Fu),e=!0):e=!1,e||Fn(t)}function Jr(t){for(he=t.return;he;)switch(he.tag){case 5:case 13:Qe=!1;return;case 27:case 3:Qe=!0;return;default:he=he.return}}function ra(t){if(t!==he)return!1;if(!Et)return Jr(t),Et=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||vs(t.type,t.memoizedProps)),n=!n),n&&Xt&&Fn(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=Xe(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}Xt=null}}else e===27?(e=Xt,Dn(t.type)?(t=_s,_s=null,Xt=t):Xt=e):Xt=he?Xe(t.stateNode.nextSibling):null;return!0}function fa(){Xt=he=null,Et=!1}function Wr(){var t=Wn;return t!==null&&(ve===null?ve=t:ve.push.apply(ve,t),Wn=null),t}function oa(t){Wn===null?Wn=[t]:Wn.push(t)}var nc=z(null),Pn=null,en=null;function yn(t,e,n){w(nc,e._currentValue),e._currentValue=n}function nn(t){t._currentValue=nc.current,L(nc)}function lc(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 ac(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 h=0;h<e.length;h++)if(o.context===e[h]){u.lanes|=n,o=u.alternate,o!==null&&(o.lanes|=n),lc(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),lc(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 ha(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;pe(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(Xa):t=[Xa])}a=a.return}t!==null&&ac(e,t,n,l),e.flags|=262144}function pu(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function In(t){Pn=t,en=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return Fr(Pn,t)}function bu(t,e){return Pn===null&&In(t),Fr(t,e)}function Fr(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},en===null){if(t===null)throw Error(s(308));en=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else en=en.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,Jt={$$typeof:Ct,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uc(){return{controller:new hy,data:new Map,refCount:0}}function da(t){t.refCount--,t.refCount===0&&dy(yy,function(){t.controller.abort()})}var ya=null,ic=0,Al=0,Ol=null;function my(t,e){if(ya===null){var n=ya=[];ic=0,Al=ss(),Ol={status:"pending",value:void 0,then:function(l){n.push(l)}}}return ic++,e.then(Pr,Pr),e}function Pr(){if(--ic===0&&ya!==null){Ol!==null&&(Ol.status="fulfilled");var t=ya;ya=null,Al=0,Ol=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 tl=z(null);function cc(){var t=tl.current;return t!==null?t:Bt.pooledCache}function Su(t,e){e===null?w(tl,tl.current):w(tl,e.pool)}function tf(){var t=cc();return t===null?null:{parent:Jt._currentValue,pool:t}}var ma=Error(s(460)),ef=Error(s(474)),_u=Error(s(542)),sc={then:function(){}};function nf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Eu(){}function lf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Eu,Eu),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(Eu,Eu);else{if(t=Bt,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 ga=e,ma}}var ga=null;function af(){if(ga===null)throw Error(s(459));var t=ga;return ga=null,t}function uf(t){if(t===ma||t===_u)throw Error(s(483))}var mn=!1;function rc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(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 gn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function vn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ot&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=yu(t),Zr(t,null,n),e}return du(t,l,e,n),yu(t)}function va(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,Ps(t,n)}}function oc(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 hc=!1;function pa(){if(hc){var t=Ol;if(t!==null)throw t}}function ba(t,e,n,l){hc=!1;var a=t.updateQueue;mn=!1;var u=a.firstBaseUpdate,r=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var h=o,S=h.next;h.next=null,r===null?u=S:r.next=S,r=h;var R=t.alternate;R!==null&&(R=R.updateQueue,o=R.lastBaseUpdate,o!==r&&(o===null?R.firstBaseUpdate=S:o.next=S,R.lastBaseUpdate=h))}if(u!==null){var x=a.baseState;r=0,R=S=h=null,o=u;do{var _=o.lane&-536870913,E=_!==o.lane;if(E?(pt&_)===_:(l&_)===_){_!==0&&_===Al&&(hc=!0),R!==null&&(R=R.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var et=t,P=o;_=e;var Dt=n;switch(P.tag){case 1:if(et=P.payload,typeof et=="function"){x=et.call(Dt,x,_);break t}x=et;break t;case 3:et.flags=et.flags&-65537|128;case 0:if(et=P.payload,_=typeof et=="function"?et.call(Dt,x,_):et,_==null)break t;x=B({},x,_);break t;case 2:mn=!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},R===null?(S=R=E,h=x):R=R.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);R===null&&(h=x),a.baseState=h,a.firstBaseUpdate=S,a.lastBaseUpdate=R,u===null&&(a.shared.lanes=0),On|=r,t.lanes=r,t.memoizedState=x}}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 Rl=z(null),Tu=z(0);function rf(t,e){t=fn,w(Tu,t),w(Rl,e),fn=t|e.baseLanes}function dc(){w(Tu,fn),w(Rl,Rl.current)}function yc(){fn=Tu.current,L(Rl),L(Tu)}var pn=0,st=null,zt=null,$t=null,Au=!1,zl=!1,el=!1,Ou=0,Sa=0,Nl=null,vy=0;function Vt(){throw Error(s(321))}function mc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function gc(t,e,n,l,a,u){return pn=u,st=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?$f:Kf,el=!1,u=n(l,a),el=!1,zl&&(u=of(e,n,l,a)),ff(t),u}function ff(t){A.H=Uu;var e=zt!==null&&zt.next!==null;if(pn=0,$t=zt=st=null,Au=!1,Sa=0,Nl=null,e)throw Error(s(300));t===null||Pt||(t=t.dependencies,t!==null&&pu(t)&&(Pt=!0))}function of(t,e,n,l){st=t;var a=0;do{if(zl&&(Nl=null),Sa=0,zl=!1,25<=a)throw Error(s(301));if(a+=1,$t=zt=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(zl);return u}function py(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?_a(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(st.flags|=1024),e}function vc(){var t=Ou!==0;return Ou=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function bc(t){if(Au){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Au=!1}pn=0,$t=zt=st=null,zl=!1,Sa=Ou=0,Nl=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?st.memoizedState=$t=t:$t=$t.next=t,$t}function Kt(){if(zt===null){var t=st.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=$t===null?st.memoizedState:$t.next;if(e!==null)$t=e,zt=t;else{if(t===null)throw st.alternate===null?Error(s(467)):Error(s(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},$t===null?st.memoizedState=$t=t:$t=$t.next=t}return $t}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _a(t){var e=Sa;return Sa+=1,Nl===null&&(Nl=[]),t=lf(Nl,t,e),e=st,($t===null?e.memoizedState:$t.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?$f:Kf),t}function Ru(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return _a(t);if(t.$$typeof===Ct)return re(t)}throw Error(s(438,String(t)))}function _c(t){var e=null,n=st.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=st.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=Sc(),st.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 ln(t,e){return typeof e=="function"?e(t):e}function zu(t){var e=Kt();return Ec(e,zt,t)}function Ec(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,h=null,S=e,R=!1;do{var x=S.lane&-536870913;if(x!==S.lane?(pt&x)===x:(pn&x)===x){var _=S.revertLane;if(_===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),x===Al&&(R=!0);else if((pn&_)===_){S=S.next,_===Al&&(R=!0);continue}else x={lane:0,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=x,r=u):h=h.next=x,st.lanes|=_,On|=_;x=S.action,el&&n(u,x),u=S.hasEagerState?S.eagerState:n(u,x)}else _={lane:x,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(o=h=_,r=u):h=h.next=_,st.lanes|=x,On|=x;S=S.next}while(S!==null&&S!==e);if(h===null?r=u:h.next=o,!pe(u,t.memoizedState)&&(Pt=!0,R&&(n=Ol,n!==null)))throw n;t.memoizedState=u,t.baseState=r,t.baseQueue=h,l.lastRenderedState=u}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Tc(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);pe(u,e.memoizedState)||(Pt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function hf(t,e,n){var l=st,a=Kt(),u=Et;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=e();var r=!pe((zt||a).memoizedState,n);r&&(a.memoizedState=n,Pt=!0),a=a.queue;var o=mf.bind(null,l,a,t);if(Ea(2048,8,o,[t]),a.getSnapshot!==e||r||$t!==null&&$t.memoizedState.tag&1){if(l.flags|=2048,Dl(9,Nu(),yf.bind(null,l,a,n,e),null),Bt===null)throw Error(s(349));u||(pn&124)!==0||df(l,e,n)}return n}function df(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=st.updateQueue,e===null?(e=Sc(),st.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!pe(t,n)}catch{return!0}}function vf(t){var e=Sl(t,2);e!==null&&Ae(e,t,2)}function Ac(t){var e=me();if(typeof t=="function"){var n=t;if(t=n(),el){D(!0);try{n()}finally{D(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:t},e}function pf(t,e,n,l){return t.baseState=n,Ec(t,zt,typeof l=="function"?l:ln)}function by(t,e,n,l,a){if(xu(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),h=A.S;h!==null&&h(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(Et){var n=Bt.formState;if(n!==null){t:{var l=st;if(Et){if(Xt){e:{for(var a=Xt,u=Qe;a.nodeType!==8;){if(!u){a=null;break e}if(a=Xe(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Xt=Xe(a.nextSibling),l=a.data==="F!";break t}}Fn(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,st,l),l.dispatch=n,l=Ac(!1),u=xc.bind(null,st,!1,l.queue),l=me(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=by.bind(null,st,a,u,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Of(t){var e=Kt();return Rf(e,zt,t)}function Rf(t,e,n){if(e=Ec(t,e,Tf)[0],t=zu(ln)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=_a(e)}catch(r){throw r===ma?_u:r}else l=e;e=Kt();var a=e.queue,u=a.dispatch;return n!==e.memoizedState&&(st.flags|=2048,Dl(9,Nu(),Sy.bind(null,a,n),null)),[l,u,t]}function Sy(t,e){t.action=e}function zf(t){var e=Kt(),n=zt;if(n!==null)return Rf(e,n,t);Kt(),e=e.memoizedState,n=Kt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Dl(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=st.updateQueue,e===null&&(e=Sc(),st.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 Nu(){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,st.flags|=t,a.memoizedState=Dl(1|e,Nu(),n,l)}function Ea(t,e,n,l){var a=Kt();l=l===void 0?null:l;var u=a.memoizedState.inst;zt!==null&&l!==null&&mc(l,zt.memoizedState.deps)?a.memoizedState=Dl(e,u,n,l):(st.flags|=t,a.memoizedState=Dl(1|e,u,n,l))}function Df(t,e){Du(8390656,8,t,e)}function xf(t,e){Ea(2048,8,t,e)}function Uf(t,e){return Ea(4,2,t,e)}function Mf(t,e){return Ea(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,Ea(4,4,Bf.bind(null,e,t),n)}function Rc(){}function qf(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&mc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function wf(t,e){var n=Kt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&mc(e,l[1]))return l[0];if(l=t(),el){D(!0);try{t()}finally{D(!1)}}return n.memoizedState=[l,e],l}function zc(t,e,n){return n===void 0||(pn&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=Yo(),st.lanes|=t,On|=t,n)}function Hf(t,e,n,l){return pe(n,e)?n:Rl.current!==null?(t=zc(t,n,l),pe(t,e)||(Pt=!0),t):(pn&42)===0?(Pt=!0,t.memoizedState=n):(t=Yo(),st.lanes|=t,On|=t,e)}function jf(t,e,n,l,a){var u=H.p;H.p=u!==0&&8>u?u:8;var r=A.T,o={};A.T=o,xc(t,!1,e,n);try{var h=a(),S=A.S;if(S!==null&&S(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var R=gy(h,l);Ta(t,e,R,Te(t))}else Ta(t,e,l,Te(t))}catch(x){Ta(t,e,{then:function(){},status:"rejected",reason:x},Te())}finally{H.p=u,A.T=r}}function _y(){}function Nc(t,e,n,l){if(t.tag!==5)throw Error(s(476));var a=Lf(t).queue;jf(t,a,e,Y,n===null?_y:function(){return Yf(t),n(l)})}function Lf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,lastRenderedState:Y},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ln,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;Ta(t,e,{},Te())}function Dc(){return re(Xa)}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=Te();t=gn(n);var l=vn(e,t,n);l!==null&&(Ae(l,e,n),va(l,e,n)),e={cache:uc()},t.payload=e;return}e=e.return}}function Ty(t,e,n){var l=Te();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},xu(t)?Vf(e,n):(n=Ji(t,e,n,l),n!==null&&(Ae(n,t,l),Zf(n,e,l)))}function Qf(t,e,n){var l=Te();Ta(t,e,n,l)}function Ta(t,e,n,l){var a={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(xu(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,pe(o,r))return du(t,e,a,0),Bt===null&&hu(),!1}catch{}finally{}if(n=Ji(t,e,a,l),n!==null)return Ae(n,t,l),Zf(n,e,l),!0}return!1}function xc(t,e,n,l){if(l={lane:2,revertLane:ss(),action:l,hasEagerState:!1,eagerState:null,next:null},xu(t)){if(e)throw Error(s(479))}else e=Ji(t,n,l,2),e!==null&&Ae(e,t,2)}function xu(t){var e=t.alternate;return t===st||e!==null&&e===st}function Vf(t,e){zl=Au=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Zf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Ps(t,n)}}var Uu={readContext:re,use:Ru,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},$f={readContext:re,use:Ru,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:re,useEffect:Df,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(el){D(!0);try{t()}finally{D(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=me();if(n!==void 0){var a=n(e);if(el){D(!0);try{n(e)}finally{D(!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,st,t),[l.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=Ac(t);var e=t.queue,n=Qf.bind(null,st,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Rc,useDeferredValue:function(t,e){var n=me();return zc(n,t,e)},useTransition:function(){var t=Ac(!1);return t=jf.bind(null,st,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=st,a=me();if(Et){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),Bt===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,Df(mf.bind(null,l,u,t),[t]),l.flags|=2048,Dl(9,Nu(),yf.bind(null,l,u,n,e),null),n},useId:function(){var t=me(),e=Bt.identifierPrefix;if(Et){var n=tn,l=Ie;n=(l&~(1<<32-K(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=xc.bind(null,st,!0,n),n.dispatch=e,[t,e]},useMemoCache:_c,useCacheRefresh:function(){return me().memoizedState=Ey.bind(null,st)}},Kf={readContext:re,use:Ru,useCallback:qf,useContext:re,useEffect:xf,useImperativeHandle:Cf,useInsertionEffect:Uf,useLayoutEffect:Mf,useMemo:wf,useReducer:zu,useRef:Nf,useState:function(){return zu(ln)},useDebugValue:Rc,useDeferredValue:function(t,e){var n=Kt();return Hf(n,zt.memoizedState,t,e)},useTransition:function(){var t=zu(ln)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:hf,useId:Xf,useHostTransitionStatus:Dc,useFormState:Of,useActionState:Of,useOptimistic:function(t,e){var n=Kt();return pf(n,zt,t,e)},useMemoCache:_c,useCacheRefresh:Gf},Ay={readContext:re,use:Ru,useCallback:qf,useContext:re,useEffect:xf,useImperativeHandle:Cf,useInsertionEffect:Uf,useLayoutEffect:Mf,useMemo:wf,useReducer:Tc,useRef:Nf,useState:function(){return Tc(ln)},useDebugValue:Rc,useDeferredValue:function(t,e){var n=Kt();return zt===null?zc(n,t,e):Hf(n,zt.memoizedState,t,e)},useTransition:function(){var t=Tc(ln)[0],e=Kt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:hf,useId:Xf,useHostTransitionStatus:Dc,useFormState:zf,useActionState:zf,useOptimistic:function(t,e){var n=Kt();return zt!==null?pf(n,zt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:_c,useCacheRefresh:Gf},xl=null,Aa=0;function Mu(t){var e=Aa;return Aa+=1,xl===null&&(xl=[]),lf(xl,t,e)}function Oa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Bu(t,e){throw e.$$typeof===W?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=Pe(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,N){return m===null||m.tag!==6?(m=Fi(b,p.mode,N),m.return=p,m):(m=a(m,b),m.return=p,m)}function h(p,m,b,N){var G=b.type;return G===qt?R(p,m,b.props.children,N,b.key):m!==null&&(m.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===C&&kf(G)===m.type)?(m=a(m,b.props),Oa(m,b),m.return=p,m):(m=mu(b.type,b.key,b.props,null,p.mode,N),Oa(m,b),m.return=p,m)}function S(p,m,b,N){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=Pi(b,p.mode,N),m.return=p,m):(m=a(m,b.children||[]),m.return=p,m)}function R(p,m,b,N,G){return m===null||m.tag!==7?(m=Kn(b,p.mode,N,G),m.return=p,m):(m=a(m,b),m.return=p,m)}function x(p,m,b){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Fi(""+m,p.mode,b),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ct:return b=mu(m.type,m.key,m.props,null,p.mode,b),Oa(b,m),b.return=p,b;case Tt:return m=Pi(m,p.mode,b),m.return=p,m;case C:var N=m._init;return m=N(m._payload),x(p,m,b)}if(_t(m)||nt(m))return m=Kn(m,p.mode,b,null),m.return=p,m;if(typeof m.then=="function")return x(p,Mu(m),b);if(m.$$typeof===Ct)return x(p,bu(p,m),b);Bu(p,m)}return null}function _(p,m,b,N){var G=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return G!==null?null:o(p,m,""+b,N);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ct:return b.key===G?h(p,m,b,N):null;case Tt:return b.key===G?S(p,m,b,N):null;case C:return G=b._init,b=G(b._payload),_(p,m,b,N)}if(_t(b)||nt(b))return G!==null?null:R(p,m,b,N,null);if(typeof b.then=="function")return _(p,m,Mu(b),N);if(b.$$typeof===Ct)return _(p,m,bu(p,b),N);Bu(p,b)}return null}function E(p,m,b,N,G){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return p=p.get(b)||null,o(m,p,""+N,G);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ct:return p=p.get(N.key===null?b:N.key)||null,h(m,p,N,G);case Tt:return p=p.get(N.key===null?b:N.key)||null,S(m,p,N,G);case C:var ot=N._init;return N=ot(N._payload),E(p,m,b,N,G)}if(_t(N)||nt(N))return p=p.get(b)||null,R(m,p,N,G,null);if(typeof N.then=="function")return E(p,m,b,Mu(N),G);if(N.$$typeof===Ct)return E(p,m,b,bu(m,N),G);Bu(m,N)}return null}function et(p,m,b,N){for(var G=null,ot=null,k=m,tt=m=0,te=null;k!==null&&tt<b.length;tt++){k.index>tt?(te=k,k=null):te=k.sibling;var bt=_(p,k,b[tt],N);if(bt===null){k===null&&(k=te);break}t&&k&&bt.alternate===null&&e(p,k),m=u(bt,m,tt),ot===null?G=bt:ot.sibling=bt,ot=bt,k=te}if(tt===b.length)return n(p,k),Et&&Jn(p,tt),G;if(k===null){for(;tt<b.length;tt++)k=x(p,b[tt],N),k!==null&&(m=u(k,m,tt),ot===null?G=k:ot.sibling=k,ot=k);return Et&&Jn(p,tt),G}for(k=l(k);tt<b.length;tt++)te=E(k,p,tt,b[tt],N),te!==null&&(t&&te.alternate!==null&&k.delete(te.key===null?tt:te.key),m=u(te,m,tt),ot===null?G=te:ot.sibling=te,ot=te);return t&&k.forEach(function(Cn){return e(p,Cn)}),Et&&Jn(p,tt),G}function P(p,m,b,N){if(b==null)throw Error(s(151));for(var G=null,ot=null,k=m,tt=m=0,te=null,bt=b.next();k!==null&&!bt.done;tt++,bt=b.next()){k.index>tt?(te=k,k=null):te=k.sibling;var Cn=_(p,k,bt.value,N);if(Cn===null){k===null&&(k=te);break}t&&k&&Cn.alternate===null&&e(p,k),m=u(Cn,m,tt),ot===null?G=Cn:ot.sibling=Cn,ot=Cn,k=te}if(bt.done)return n(p,k),Et&&Jn(p,tt),G;if(k===null){for(;!bt.done;tt++,bt=b.next())bt=x(p,bt.value,N),bt!==null&&(m=u(bt,m,tt),ot===null?G=bt:ot.sibling=bt,ot=bt);return Et&&Jn(p,tt),G}for(k=l(k);!bt.done;tt++,bt=b.next())bt=E(k,p,tt,bt.value,N),bt!==null&&(t&&bt.alternate!==null&&k.delete(bt.key===null?tt:bt.key),m=u(bt,m,tt),ot===null?G=bt:ot.sibling=bt,ot=bt);return t&&k.forEach(function(Om){return e(p,Om)}),Et&&Jn(p,tt),G}function Dt(p,m,b,N){if(typeof b=="object"&&b!==null&&b.type===qt&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ct:t:{for(var G=b.key;m!==null;){if(m.key===G){if(G=b.type,G===qt){if(m.tag===7){n(p,m.sibling),N=a(m,b.props.children),N.return=p,p=N;break t}}else if(m.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===C&&kf(G)===m.type){n(p,m.sibling),N=a(m,b.props),Oa(N,b),N.return=p,p=N;break t}n(p,m);break}else e(p,m);m=m.sibling}b.type===qt?(N=Kn(b.props.children,p.mode,N,b.key),N.return=p,p=N):(N=mu(b.type,b.key,b.props,null,p.mode,N),Oa(N,b),N.return=p,p=N)}return r(p);case Tt:t:{for(G=b.key;m!==null;){if(m.key===G)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(p,m.sibling),N=a(m,b.children||[]),N.return=p,p=N;break t}else{n(p,m);break}else e(p,m);m=m.sibling}N=Pi(b,p.mode,N),N.return=p,p=N}return r(p);case C:return G=b._init,b=G(b._payload),Dt(p,m,b,N)}if(_t(b))return et(p,m,b,N);if(nt(b)){if(G=nt(b),typeof G!="function")throw Error(s(150));return b=G.call(b),P(p,m,b,N)}if(typeof b.then=="function")return Dt(p,m,Mu(b),N);if(b.$$typeof===Ct)return Dt(p,m,bu(p,b),N);Bu(p,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(n(p,m.sibling),N=a(m,b),N.return=p,p=N):(n(p,m),N=Fi(b,p.mode,N),N.return=p,p=N),r(p)):n(p,m)}return function(p,m,b,N){try{Aa=0;var G=Dt(p,m,b,N);return xl=null,G}catch(k){if(k===ma||k===_u)throw k;var ot=be(29,k,null,p.mode);return ot.lanes=N,ot.return=p,ot}finally{}}}var Ul=Jf(!0),Wf=Jf(!1),Ce=z(null),Ve=null;function bn(t){var e=t.alternate;w(Wt,Wt.current&1),w(Ce,t),Ve===null&&(e===null||Rl.current!==null||e.memoizedState!==null)&&(Ve=t)}function Ff(t){if(t.tag===22){if(w(Wt,Wt.current),w(Ce,t),Ve===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ve=t)}}else Sn()}function Sn(){w(Wt,Wt.current),w(Ce,Ce.current)}function an(t){L(Ce),Ve===t&&(Ve=null),L(Wt)}var Wt=z(0);function Cu(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==="$?"||Ss(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 Uc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:B({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Mc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Te(),a=gn(l);a.payload=e,n!=null&&(a.callback=n),e=vn(t,a,l),e!==null&&(Ae(e,t,l),va(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Te(),a=gn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=vn(t,a,l),e!==null&&(Ae(e,t,l),va(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),l=gn(n);l.tag=2,e!=null&&(l.callback=e),e=vn(t,l,n),e!==null&&(Ae(e,t,n),va(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?!ca(n,l)||!ca(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&&Mc.enqueueReplaceState(e,e.state,null)}function nl(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=B({},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 wu(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 Bc(t,e,n){return n=gn(n),n.tag=3,n.payload={element:null},n.callback=function(){wu(t,e)},n}function ao(t){return t=gn(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"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var o=l.stack;this.componentDidCatch(l.value,{componentStack:o!==null?o:""})})}function Oy(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&ha(e,n,a,!0),n=Ce.current,n!==null){switch(n.tag){case 13:return Ve===null?ls():n.alternate===null&&Gt===0&&(Gt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===sc?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),us(t,l,a)),!1;case 22:return n.flags|=65536,l===sc?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)),us(t,l,a)),!1}throw Error(s(435,n.tag))}return us(t,l,a),ls(),!1}if(Et)return e=Ce.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==ec&&(t=Error(s(422),{cause:l}),oa(xe(t,n)))):(l!==ec&&(e=Error(s(423),{cause:l}),oa(xe(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=xe(l,n),a=Bc(t.stateNode,l,a),oc(t,a),Gt!==4&&(Gt=2)),!1;var u=Error(s(520),{cause:l});if(u=xe(u,n),Ma===null?Ma=[u]:Ma.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=Bc(n.stateNode,l,t),oc(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"&&(Rn===null||!Rn.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ao(a),uo(a,t,n,l),oc(n,a),!1}n=n.return}while(n!==null);return!1}var io=Error(s(461)),Pt=!1;function ae(t,e,n,l){e.child=t===null?Wf(e,null,n,l):Ul(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 In(e),l=gc(t,e,n,r,u,a),o=vc(),t!==null&&!Pt?(pc(t,e,a),un(t,e,a)):(Et&&o&&Ii(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"&&!Wi(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,ro(t,e,u,l,a)):(t=mu(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Xc(t,a)){var r=u.memoizedProps;if(n=n.compare,n=n!==null?n:ca,n(r,l)&&t.ref===e.ref)return un(t,e,a)}return e.flags|=1,t=Pe(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(ca(u,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=u,Xc(t,a))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,un(t,e,a)}return Cc(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&&Su(e,u!==null?u.cachePool:null),u!==null?rf(e,u):dc(),Ff(e);else return e.lanes=e.childLanes=536870912,oo(t,e,u!==null?u.baseLanes|n:n,n)}else u!==null?(Su(e,u.cachePool),rf(e,u),Sn(),e.memoizedState=null):(t!==null&&Su(e,null),dc(),Sn());return ae(t,e,a,n),e.child}function oo(t,e,n,l){var a=cc();return a=a===null?null:{parent:Jt._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&Su(e,null),dc(),Ff(e),t!==null&&ha(t,e,l,!0),null}function Hu(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 Cc(t,e,n,l,a){return In(e),n=gc(t,e,n,l,void 0,a),l=vc(),t!==null&&!Pt?(pc(t,e,a),un(t,e,a)):(Et&&l&&Ii(e),e.flags|=1,ae(t,e,n,a),e.child)}function ho(t,e,n,l,a,u){return In(e),e.updateQueue=null,n=of(e,l,n,a),ff(t),l=vc(),t!==null&&!Pt?(pc(t,e,u),un(t,e,u)):(Et&&l&&Ii(e),e.flags|=1,ae(t,e,n,u),e.child)}function yo(t,e,n,l,a){if(In(e),e.stateNode===null){var u=_l,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=Mc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},rc(e),r=n.contextType,u.context=typeof r=="object"&&r!==null?re(r):_l,u.state=e.memoizedState,r=n.getDerivedStateFromProps,typeof r=="function"&&(Uc(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&&Mc.enqueueReplaceState(u,u.state,null),ba(e,l,u,a),pa(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,h=nl(n,o);u.props=h;var S=u.context,R=n.contextType;r=_l,typeof R=="object"&&R!==null&&(r=re(R));var x=n.getDerivedStateFromProps;R=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||S!==r)&&If(e,u,l,r),mn=!1;var _=e.memoizedState;u.state=_,ba(e,l,u,a),pa(),S=e.memoizedState,o||_!==S||mn?(typeof x=="function"&&(Uc(e,n,x,l),S=e.memoizedState),(h=mn||Pf(e,n,h,l,_,S,r))?(R||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=h):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,fc(t,e),r=e.memoizedProps,R=nl(n,r),u.props=R,x=e.pendingProps,_=u.context,S=n.contextType,h=_l,typeof S=="object"&&S!==null&&(h=re(S)),o=n.getDerivedStateFromProps,(S=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==x||_!==h)&&If(e,u,l,h),mn=!1,_=e.memoizedState,u.state=_,ba(e,l,u,a),pa();var E=e.memoizedState;r!==x||_!==E||mn||t!==null&&t.dependencies!==null&&pu(t.dependencies)?(typeof o=="function"&&(Uc(e,n,o,l),E=e.memoizedState),(R=mn||Pf(e,n,R,l,_,E,h)||t!==null&&t.dependencies!==null&&pu(t.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,E,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,E,h)),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=h,l=R):(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,Hu(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=Ul(e,t.child,null,a),e.child=Ul(e,null,n,a)):ae(t,e,n,a),e.memoizedState=u.state,t=e.child):t=un(t,e,a),t}function mo(t,e,n,l){return fa(),e.flags|=256,ae(t,e,n,l),e.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(t){return{baseLanes:t,cachePool:tf()}}function Hc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=qe),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:(Wt.current&2)!==0),r&&(a=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(a?bn(e):Sn(),Et){var o=Xt,h;if(h=o){t:{for(h=o,o=Qe;h.nodeType!==8;){if(!o){o=null;break t}if(h=Xe(h.nextSibling),h===null){o=null;break t}}o=h}o!==null?(e.memoizedState={dehydrated:o,treeContext:kn!==null?{id:Ie,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},h=be(18,null,null,0),h.stateNode=o,h.return=e,e.child=h,he=e,Xt=null,h=!0):h=!1}h||Fn(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return Ss(o)?e.lanes=32:e.lanes=536870912,null;an(e)}return o=l.children,l=l.fallback,a?(Sn(),a=e.mode,o=ju({mode:"hidden",children:o},a),l=Kn(l,a,n,null),o.return=e,l.return=e,o.sibling=l,e.child=o,a=e.child,a.memoizedState=wc(n),a.childLanes=Hc(t,r,n),e.memoizedState=qc,l):(bn(e),jc(e,o))}if(h=t.memoizedState,h!==null&&(o=h.dehydrated,o!==null)){if(u)e.flags&256?(bn(e),e.flags&=-257,e=Lc(t,e,n)):e.memoizedState!==null?(Sn(),e.child=t.child,e.flags|=128,e=null):(Sn(),a=l.fallback,o=e.mode,l=ju({mode:"visible",children:l.children},o),a=Kn(a,o,n,null),a.flags|=2,l.return=e,a.return=e,l.sibling=a,e.child=l,Ul(e,t.child,null,n),l=e.child,l.memoizedState=wc(n),l.childLanes=Hc(t,r,n),e.memoizedState=qc,e=a);else if(bn(e),Ss(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var S=r.dgst;r=S,l=Error(s(419)),l.stack="",l.digest=r,oa({value:l,source:null,stack:null}),e=Lc(t,e,n)}else if(Pt||ha(t,e,n,!1),r=(n&t.childLanes)!==0,Pt||r){if(r=Bt,r!==null&&(l=n&-n,l=(l&42)!==0?1:_i(l),l=(l&(r.suspendedLanes|n))!==0?0:l,l!==0&&l!==h.retryLane))throw h.retryLane=l,Sl(t,l),Ae(r,t,l),io;o.data==="$?"||ls(),e=Lc(t,e,n)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,Xt=Xe(o.nextSibling),he=e,Et=!0,Wn=null,Qe=!1,t!==null&&(Me[Be++]=Ie,Me[Be++]=tn,Me[Be++]=kn,Ie=t.id,tn=t.overflow,kn=e),e=jc(e,l.children),e.flags|=4096);return e}return a?(Sn(),a=l.fallback,o=e.mode,h=t.child,S=h.sibling,l=Pe(h,{mode:"hidden",children:l.children}),l.subtreeFlags=h.subtreeFlags&65011712,S!==null?a=Pe(S,a):(a=Kn(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=wc(n):(h=o.cachePool,h!==null?(S=Jt._currentValue,h=h.parent!==S?{parent:S,pool:S}:h):h=tf(),o={baseLanes:o.baseLanes|n,cachePool:h}),a.memoizedState=o,a.childLanes=Hc(t,r,n),e.memoizedState=qc,l):(bn(e),n=t.child,t=n.sibling,n=Pe(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 jc(t,e){return e=ju({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ju(t,e){return t=be(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Lc(t,e,n){return Ul(e,t.child,null,n),t=jc(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),lc(t.return,e,n)}function Yc(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=Wt.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(w(Wt,l),a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Cu(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Yc(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&&Cu(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Yc(e,!0,n,null,u);break;case"together":Yc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function un(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),On|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ha(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=Pe(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Pe(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Xc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&pu(t)))}function Ry(t,e,n){switch(e.tag){case 3:Mt(e,e.stateNode.containerInfo),yn(e,Jt,t.memoizedState.cache),fa();break;case 27:case 5:$l(e);break;case 4:Mt(e,e.stateNode.containerInfo);break;case 10:yn(e,e.type,e.memoizedProps.value);break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(bn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?go(t,e,n):(bn(e),t=un(t,e,n),t!==null?t.sibling:null);bn(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(ha(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),w(Wt,Wt.current),l)break;return null;case 22:case 23:return e.lanes=0,fo(t,e,n);case 24:yn(e,Jt,t.memoizedState.cache)}return un(t,e,n)}function bo(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!Xc(t,n)&&(e.flags&128)===0)return Pt=!1,Ry(t,e,n);Pt=(t.flags&131072)!==0}else Pt=!1,Et&&(e.flags&1048576)!==0&&Kr(e,vu,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")Wi(l)?(t=nl(l,t),e.tag=1,e=yo(null,e,l,t,n)):(e.tag=0,e=Cc(null,e,l,t,n));else{if(l!=null){if(a=l.$$typeof,a===ee){e.tag=11,e=co(null,e,l,t,n);break t}else if(a===wt){e.tag=14,e=so(null,e,l,t,n);break t}}throw e=Lt(l)||l,Error(s(306,e,""))}}return e;case 0:return Cc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=nl(l,e.pendingProps),yo(t,e,l,a,n);case 3:t:{if(Mt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var u=e.memoizedState;a=u.element,fc(t,e),ba(e,l,null,n);var r=e.memoizedState;if(l=r.cache,yn(e,Jt,l),l!==u.cache&&ac(e,[Jt],n,!0),pa(),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),oa(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=Xe(t.firstChild),he=e,Et=!0,Wn=null,Qe=!0,n=Wf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(fa(),l===a){e=un(t,e,n);break t}ae(t,e,l,n)}e=e.child}return e;case 26:return Hu(t,e),t===null?(n=Th(e.type,null,e.pendingProps,null))?e.memoizedState=n:Et||(n=e.type,t=e.pendingProps,l=Pu(lt.current).createElement(n),l[se]=e,l[de]=t,ie(l,n,t),Ft(l),e.stateNode=l):e.memoizedState=Th(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return $l(e),t===null&&Et&&(l=e.stateNode=Sh(e.type,e.pendingProps,lt.current),he=e,Qe=!0,a=Xt,Dn(e.type)?(_s=a,Xt=Xe(l.firstChild)):Xt=a),ae(t,e,e.pendingProps.children,n),Hu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((a=l=Xt)&&(l=tm(l,e.type,e.pendingProps,Qe),l!==null?(e.stateNode=l,he=e,Xt=Xe(l.firstChild),Qe=!1,a=!0):a=!1),a||Fn(e)),$l(e),a=e.type,u=e.pendingProps,r=t!==null?t.memoizedProps:null,l=u.children,vs(a,u)?l=null:r!==null&&vs(a,r)&&(e.flags|=32),e.memoizedState!==null&&(a=gc(t,e,py,null,null,n),Xa._currentValue=a),Hu(t,e),ae(t,e,l,n),e.child;case 6:return t===null&&Et&&((t=n=Xt)&&(n=em(n,e.pendingProps,Qe),n!==null?(e.stateNode=n,he=e,Xt=null,t=!0):t=!1),t||Fn(e)),null;case 13:return go(t,e,n);case 4:return Mt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Ul(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,yn(e,e.type,l.value),ae(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,In(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=ju(l,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=Pe(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 In(e),l=re(Jt),t===null?(a=cc(),a===null&&(a=Bt,u=uc(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),e.memoizedState={parent:l,cache:a},rc(e),yn(e,Jt,a)):((t.lanes&n)!==0&&(fc(t,e),ba(e,null,null,n),pa()),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),yn(e,Jt,l)):(l=u.cache,yn(e,Jt,l),l!==a.cache&&ac(e,[Jt],n,!0))),ae(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function cn(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=Ce.current,e!==null&&((pt&4194048)===pt?Ve!==null:(pt&62914560)!==pt&&(pt&536870912)===0||e!==Ve))throw ga=sc,ef;t.flags|=8192}}function Lu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Jl():536870912,t.lanes|=e,ql|=e)}function Ra(t,e){if(!Et)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 jt(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(tc(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(e),null;case 1:return jt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),nn(Jt),je(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ra(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wr())),jt(e),null;case 26:return n=e.memoizedState,t===null?(cn(e),n!==null?(jt(e),So(e,n)):(jt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(cn(e),jt(e),So(e,n)):(jt(e),e.flags&=-16777217):(t.memoizedProps!==l&&cn(e),jt(e),e.flags&=-16777217),null;case 27:wn(e),n=lt.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==l&&cn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return jt(e),null}t=$.current,ra(e)?kr(e):(t=Sh(a,l,n),e.stateNode=t,cn(e))}return jt(e),null;case 5:if(wn(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&cn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return jt(e),null}if(t=$.current,ra(e))kr(e);else{switch(a=Pu(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&&cn(e)}}return jt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&cn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=lt.current,ra(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||Fn(e)}else t=Pu(t).createTextNode(l),t[se]=e,e.stateNode=t}return jt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=ra(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 fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;jt(e),a=!1}else a=Wr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(an(e),e):(an(e),null)}if(an(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),Lu(e,e.updateQueue),jt(e),null;case 4:return je(),t===null&&hs(e.stateNode.containerInfo),jt(e),null;case 10:return nn(e.type),jt(e),null;case 19:if(L(Wt),a=e.memoizedState,a===null)return jt(e),null;if(l=(e.flags&128)!==0,u=a.rendering,u===null)if(l)Ra(a,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Cu(t),u!==null){for(e.flags|=128,Ra(a,!1),t=u.updateQueue,e.updateQueue=t,Lu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)$r(n,t),n=n.sibling;return w(Wt,Wt.current&1|2),e.child}t=t.sibling}a.tail!==null&&Oe()>Gu&&(e.flags|=128,l=!0,Ra(a,!1),e.lanes=4194304)}else{if(!l)if(t=Cu(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,Lu(e,t),Ra(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Et)return jt(e),null}else 2*Oe()-a.renderingStartTime>Gu&&n!==536870912&&(e.flags|=128,l=!0,Ra(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=Wt.current,w(Wt,l?t&1|2:t&1),e):(jt(e),null);case 22:case 23:return an(e),yc(),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&&(jt(e),e.subtreeFlags&6&&(e.flags|=8192)):jt(e),n=e.updateQueue,n!==null&&Lu(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&&L(tl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),nn(Jt),jt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Ny(t,e){switch(tc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return nn(Jt),je(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return wn(e),null;case 13:if(an(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return L(Wt),null;case 4:return je(),null;case 10:return nn(e.type),null;case 22:case 23:return an(e),yc(),t!==null&&L(tl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return nn(Jt),null;case 25:return null;default:return null}}function _o(t,e){switch(tc(e),e.tag){case 3:nn(Jt),je();break;case 26:case 27:case 5:wn(e);break;case 4:je();break;case 13:an(e);break;case 19:L(Wt);break;case 10:nn(e.type);break;case 22:case 23:an(e),yc(),t!==null&&L(tl);break;case 24:nn(Jt)}}function za(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){xt(e,e.return,o)}}function _n(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 h=n,S=o;try{S()}catch(R){xt(a,h,R)}}}l=l.next}while(l!==u)}}catch(R){xt(e,e.return,R)}}function Eo(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{sf(e,n)}catch(l){xt(t,t.return,l)}}}function To(t,e,n){n.props=nl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){xt(t,e,l)}}function Na(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){xt(t,e,a)}}function Ze(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){xt(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){xt(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){xt(t,t.return,a)}}function Gc(t,e,n){try{var l=t.stateNode;Jy(l,t.type,n,e),l[de]=e}catch(a){xt(t,t.return,a)}}function Oo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Dn(t.type)||t.tag===4}function Qc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Oo(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&&Dn(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 Vc(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=Fu));else if(l!==4&&(l===27&&Dn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Vc(t,e,n),t=t.sibling;t!==null;)Vc(t,e,n),t=t.sibling}function Yu(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&&Dn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Yu(t,e,n),t=t.sibling;t!==null;)Yu(t,e,n),t=t.sibling}function Ro(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){xt(t,t.return,u)}}var sn=!1,Zt=!1,Zc=!1,zo=typeof WeakSet=="function"?WeakSet:Set,It=null;function Dy(t,e){if(t=t.containerInfo,ms=ai,t=wr(t),Qi(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,h=-1,S=0,R=0,x=t,_=null;e:for(;;){for(var E;x!==n||a!==0&&x.nodeType!==3||(o=r+a),x!==u||l!==0&&x.nodeType!==3||(h=r+l),x.nodeType===3&&(r+=x.nodeValue.length),(E=x.firstChild)!==null;)_=x,x=E;for(;;){if(x===t)break e;if(_===n&&++S===a&&(o=r),_===u&&++R===l&&(h=r),(E=x.nextSibling)!==null)break;x=_,_=x.parentNode}x=E}n=o===-1||h===-1?null:{start:o,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(gs={focusedElem:t,selectionRange:n},ai=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,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=nl(n.type,a,n.elementType===n.type);t=l.getSnapshotBeforeUpdate(et,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(P){xt(n,n.return,P)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)bs(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":bs(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,It=t;break}It=e.return}}function No(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:En(t,n),l&4&&za(5,n);break;case 1:if(En(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(r){xt(n,n.return,r)}else{var a=nl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){xt(n,n.return,r)}}l&64&&Eo(n),l&512&&Na(n,n.return);break;case 3:if(En(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){xt(n,n.return,r)}}break;case 27:e===null&&l&4&&Ro(n);case 26:case 5:En(t,n),e===null&&l&4&&Ao(n),l&512&&Na(n,n.return);break;case 12:En(t,n);break;case 13:En(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||sn,!l){e=e!==null&&e.memoizedState!==null||Zt,a=sn;var u=Zt;sn=l,(Zt=e)&&!u?Tn(t,n,(n.subtreeFlags&8772)!==0):En(t,n),sn=a,Zt=u}break;case 30:break;default:En(t,n)}}function Do(t){var e=t.alternate;e!==null&&(t.alternate=null,Do(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ai(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 Ht=null,ge=!1;function rn(t,e,n){for(n=n.child;n!==null;)xo(t,e,n),n=n.sibling}function xo(t,e,n){if(g&&typeof g.onCommitFiberUnmount=="function")try{g.onCommitFiberUnmount(j,n)}catch{}switch(n.tag){case 26:Zt||Ze(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Ze(n,e);var l=Ht,a=ge;Dn(n.type)&&(Ht=n.stateNode,ge=!1),rn(t,e,n),Ha(n.stateNode),Ht=l,ge=a;break;case 5:Zt||Ze(n,e);case 6:if(l=Ht,a=ge,Ht=null,rn(t,e,n),Ht=l,ge=a,Ht!==null)if(ge)try{(Ht.nodeType===9?Ht.body:Ht.nodeName==="HTML"?Ht.ownerDocument.body:Ht).removeChild(n.stateNode)}catch(u){xt(n,e,u)}else try{Ht.removeChild(n.stateNode)}catch(u){xt(n,e,u)}break;case 18:Ht!==null&&(ge?(t=Ht,ph(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Za(t)):ph(Ht,n.stateNode));break;case 4:l=Ht,a=ge,Ht=n.stateNode.containerInfo,ge=!0,rn(t,e,n),Ht=l,ge=a;break;case 0:case 11:case 14:case 15:Zt||_n(2,n,e),Zt||_n(4,n,e),rn(t,e,n);break;case 1:Zt||(Ze(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&To(n,e,l)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:Zt=(l=Zt)||n.memoizedState!==null,rn(t,e,n),Zt=l;break;default:rn(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){xt(e,e.return,n)}}function xy(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 $c(t,e){var n=xy(t);e.forEach(function(l){var a=Ly.bind(null,t,l);n.has(l)||(n.add(l),l.then(a,a))})}function Se(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(Dn(o.type)){Ht=o.stateNode,ge=!1;break t}break;case 5:Ht=o.stateNode,ge=!1;break t;case 3:case 4:Ht=o.stateNode.containerInfo,ge=!0;break t}o=o.return}if(Ht===null)throw Error(s(160));xo(u,r,a),Ht=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 Ye=null;function Mo(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),_e(t),l&4&&(_n(3,t,t.return),za(3,t),_n(5,t,t.return));break;case 1:Se(e,t),_e(t),l&512&&(Zt||n===null||Ze(n,n.return)),l&64&&sn&&(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=Ye;if(Se(e,t),_e(t),l&512&&(Zt||n===null||Ze(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[Pl]||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,Ft(u),l=u;break t;case"link":var r=Rh("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=Rh("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,Ft(u),l=u}t.stateNode=l}else zh(a,t.type,t.stateNode);else t.stateNode=Oh(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):Oh(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Gc(t,t.memoizedProps,n.memoizedProps)}break;case 27:Se(e,t),_e(t),l&512&&(Zt||n===null||Ze(n,n.return)),n!==null&&l&4&&Gc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Se(e,t),_e(t),l&512&&(Zt||n===null||Ze(n,n.return)),t.flags&32){a=t.stateNode;try{dl(a,"")}catch(E){xt(t,t.return,E)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,Gc(t,a,n!==null?n.memoizedProps:a)),l&1024&&(Zc=!0);break;case 6:if(Se(e,t),_e(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(E){xt(t,t.return,E)}}break;case 3:if(ei=null,a=Ye,Ye=Iu(e.containerInfo),Se(e,t),Ye=a,_e(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Za(e.containerInfo)}catch(E){xt(t,t.return,E)}Zc&&(Zc=!1,Bo(t));break;case 4:l=Ye,Ye=Iu(t.stateNode.containerInfo),Se(e,t),_e(t),Ye=l;break;case 12:Se(e,t),_e(t);break;case 13:Se(e,t),_e(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Pc=Oe()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$c(t,l)));break;case 22:a=t.memoizedState!==null;var h=n!==null&&n.memoizedState!==null,S=sn,R=Zt;if(sn=S||a,Zt=R||h,Se(e,t),Zt=R,sn=S,_e(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||h||sn||Zt||ll(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){h=n=e;try{if(u=h.stateNode,a)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{o=h.stateNode;var x=h.memoizedProps.style,_=x!=null&&x.hasOwnProperty("display")?x.display:null;o.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(E){xt(h,h.return,E)}}}else if(e.tag===6){if(n===null){h=e;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(E){xt(h,h.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,$c(t,n))));break;case 19:Se(e,t),_e(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,$c(t,l)));break;case 30:break;case 21:break;default:Se(e,t),_e(t)}}function _e(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Oo(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var a=n.stateNode,u=Qc(t);Yu(t,u,a);break;case 5:var r=n.stateNode;n.flags&32&&(dl(r,""),n.flags&=-33);var o=Qc(t);Yu(t,o,r);break;case 3:case 4:var h=n.stateNode.containerInfo,S=Qc(t);Vc(t,S,h);break;default:throw Error(s(161))}}catch(R){xt(t,t.return,R)}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 En(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)No(t,e.alternate,e),e=e.sibling}function ll(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:_n(4,e,e.return),ll(e);break;case 1:Ze(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&To(e,e.return,n),ll(e);break;case 27:Ha(e.stateNode);case 26:case 5:Ze(e,e.return),ll(e);break;case 22:e.memoizedState===null&&ll(e);break;case 30:ll(e);break;default:ll(e)}t=t.sibling}}function Tn(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:Tn(a,u,n),za(4,u);break;case 1:if(Tn(a,u,n),l=u,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(S){xt(l,l.return,S)}if(l=u,a=l.updateQueue,a!==null){var o=l.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)cf(h[a],o)}catch(S){xt(l,l.return,S)}}n&&r&64&&Eo(u),Na(u,u.return);break;case 27:Ro(u);case 26:case 5:Tn(a,u,n),n&&l===null&&r&4&&Ao(u),Na(u,u.return);break;case 12:Tn(a,u,n);break;case 13:Tn(a,u,n),n&&r&4&&Uo(a,u);break;case 22:u.memoizedState===null&&Tn(a,u,n),Na(u,u.return);break;case 30:break;default:Tn(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&&da(n))}function kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&da(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&&za(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&&da(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(h){xt(e,e.return,h)}}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,Ml(t,e,n,l,(e.subtreeFlags&10256)!==0)),a&2048&&Kc(r,e);break;case 24:$e(t,e,n,l),a&2048&&kc(e.alternate,e);break;default:$e(t,e,n,l)}}function Ml(t,e,n,l,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,r=e,o=n,h=l,S=r.flags;switch(r.tag){case 0:case 11:case 15:Ml(u,r,o,h,a),za(8,r);break;case 23:break;case 22:var R=r.stateNode;r.memoizedState!==null?R._visibility&2?Ml(u,r,o,h,a):Da(u,r):(R._visibility|=2,Ml(u,r,o,h,a)),a&&S&2048&&Kc(r.alternate,r);break;case 24:Ml(u,r,o,h,a),a&&S&2048&&kc(r.alternate,r);break;default:Ml(u,r,o,h,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&&kc(l.alternate,l);break;default:Da(n,l)}e=e.sibling}}var xa=8192;function Bl(t){if(t.subtreeFlags&xa)for(t=t.child;t!==null;)qo(t),t=t.sibling}function qo(t){switch(t.tag){case 26:Bl(t),t.flags&xa&&t.memoizedState!==null&&mm(Ye,t.memoizedState,t.memoizedProps);break;case 5:Bl(t);break;case 3:case 4:var e=Ye;Ye=Iu(t.stateNode.containerInfo),Bl(t),Ye=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=xa,xa=16777216,Bl(t),xa=e):Bl(t));break;default:Bl(t)}}function wo(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 Ua(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];It=l,jo(l,t)}wo(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:Ua(t),t.flags&2048&&_n(9,t,t.return);break;case 3:Ua(t);break;case 12:Ua(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Xu(t)):Ua(t);break;default:Ua(t)}}function Xu(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];It=l,jo(l,t)}wo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:_n(8,e,e.return),Xu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(e));break;default:Xu(e)}t=t.sibling}}function jo(t,e){for(;It!==null;){var n=It;switch(n.tag){case 0:case 11:case 15:_n(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:da(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,It=l;else t:for(n=t;It!==null;){l=It;var a=l.sibling,u=l.return;if(Do(l),l===n){It=null;break t}if(a!==null){a.return=u,It=a;break t}It=u}}}var Uy={getCacheForType:function(t){var e=re(Jt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},My=typeof WeakMap=="function"?WeakMap:Map,Ot=0,Bt=null,yt=null,pt=0,Rt=0,Ee=null,An=!1,Cl=!1,Jc=!1,fn=0,Gt=0,On=0,al=0,Wc=0,qe=0,ql=0,Ma=null,ve=null,Fc=!1,Pc=0,Gu=1/0,Qu=null,Rn=null,ue=0,zn=null,wl=null,Hl=0,Ic=0,ts=null,Lo=null,Ba=0,es=null;function Te(){if((Ot&2)!==0&&pt!==0)return pt&-pt;if(A.T!==null){var t=Al;return t!==0?t:ss()}return Is()}function Yo(){qe===0&&(qe=(pt&536870912)===0||Et?Xn():536870912);var t=Ce.current;return t!==null&&(t.flags|=32),qe}function Ae(t,e,n){(t===Bt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(jl(t,0),Nn(t,pt,qe,!1)),Gn(t,n),((Ot&2)===0||t!==Bt)&&(t===Bt&&((Ot&2)===0&&(al|=n),Gt===4&&Nn(t,pt,qe,!1)),Ke(t))}function Xo(t,e,n){if((Ot&6)!==0)throw Error(s(327));var l=!n&&(e&124)===0&&(e&t.expiredLanes)===0||ze(t,e),a=l?qy(t,e):as(t,e,!0),u=l;do{if(a===0){Cl&&!l&&Nn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!By(n)){a=as(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=Ma;var h=o.current.memoizedState.isDehydrated;if(h&&(jl(o,r).flags|=256),r=as(o,r,!1),r!==2){if(Jc&&!h){o.errorRecoveryDisabledLanes|=u,al|=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){jl(t,0),Nn(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:Nn(l,e,qe,!An);break t;case 2:ve=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Pc+300-Oe(),10<a)){if(Nn(l,e,qe,!An),Re(l,0,!0)!==0)break t;l.timeoutHandle=gh(Go.bind(null,l,n,ve,Qu,Fc,e,qe,al,ql,An,u,2,-0,0),a);break t}Go(l,n,ve,Qu,Fc,e,qe,al,ql,An,u,0,-0,0)}}break}while(!0);Ke(t)}function Go(t,e,n,l,a,u,r,o,h,S,R,x,_,E){if(t.timeoutHandle=-1,x=e.subtreeFlags,(x&8192||(x&16785408)===16785408)&&(Ya={stylesheets:null,count:0,unsuspend:ym},qo(e),x=gm(),x!==null)){t.cancelPendingCommit=x(Jo.bind(null,t,e,u,n,l,a,r,o,h,R,1,_,E)),Nn(t,u,r,!S);return}Jo(t,e,u,n,l,a,r,o,h)}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(!pe(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 Nn(t,e,n,l){e&=~Wc,e&=~al,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var u=31-K(a),r=1<<u;l[u]=-1,a&=~r}n!==0&&tu(t,n,e)}function Vu(){return(Ot&6)===0?(Ca(0),!1):!0}function ns(){if(yt!==null){if(Rt===0)var t=yt.return;else t=yt,en=Pn=null,bc(t),xl=null,Aa=0,t=yt;for(;t!==null;)_o(t.alternate,t),t=t.return;yt=null}}function jl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Fy(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),ns(),Bt=t,yt=n=Pe(t.current,null),pt=e,Rt=0,Ee=null,An=!1,Cl=ze(t,e),Jc=!1,ql=qe=Wc=al=On=Gt=0,ve=Ma=null,Fc=!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-K(l),u=1<<a;e|=t[a],l&=~u}return fn=e,hu(),n}function Qo(t,e){st=null,A.H=Uu,e===ma||e===_u?(e=af(),Rt=3):e===ef?(e=af(),Rt=4):Rt=e===io?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ee=e,yt===null&&(Gt=1,wu(t,xe(e,t.current)))}function Vo(){var t=A.H;return A.H=Uu,t===null?Uu:t}function Zo(){var t=A.A;return A.A=Uy,t}function ls(){Gt=4,An||(pt&4194048)!==pt&&Ce.current!==null||(Cl=!0),(On&134217727)===0&&(al&134217727)===0||Bt===null||Nn(Bt,pt,qe,!1)}function as(t,e,n){var l=Ot;Ot|=2;var a=Vo(),u=Zo();(Bt!==t||pt!==e)&&(Qu=null,jl(t,e)),e=!1;var r=Gt;t:do try{if(Rt!==0&&yt!==null){var o=yt,h=Ee;switch(Rt){case 8:ns(),r=6;break t;case 3:case 2:case 9:case 6:Ce.current===null&&(e=!0);var S=Rt;if(Rt=0,Ee=null,Ll(t,o,h,S),n&&Cl){r=0;break t}break;default:S=Rt,Rt=0,Ee=null,Ll(t,o,h,S)}}Cy(),r=Gt;break}catch(R){Qo(t,R)}while(!0);return e&&t.shellSuspendCounter++,en=Pn=null,Ot=l,A.H=a,A.A=u,yt===null&&(Bt=null,pt=0,hu()),r}function Cy(){for(;yt!==null;)$o(yt)}function qy(t,e){var n=Ot;Ot|=2;var l=Vo(),a=Zo();Bt!==t||pt!==e?(Qu=null,Gu=Oe()+500,jl(t,e)):Cl=ze(t,e);t:do try{if(Rt!==0&&yt!==null){e=yt;var u=Ee;e:switch(Rt){case 1:Rt=0,Ee=null,Ll(t,e,u,1);break;case 2:case 9:if(nf(u)){Rt=0,Ee=null,Ko(e);break}e=function(){Rt!==2&&Rt!==9||Bt!==t||(Rt=7),Ke(t)},u.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:nf(u)?(Rt=0,Ee=null,Ko(e)):(Rt=0,Ee=null,Ll(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)){Rt=0,Ee=null;var h=o.sibling;if(h!==null)yt=h;else{var S=o.return;S!==null?(yt=S,Zu(S)):yt=null}break e}}Rt=0,Ee=null,Ll(t,e,u,5);break;case 6:Rt=0,Ee=null,Ll(t,e,u,6);break;case 8:ns(),Gt=6;break t;default:throw Error(s(462))}}wy();break}catch(R){Qo(t,R)}while(!0);return en=Pn=null,A.H=l,A.A=a,Ot=n,yt!==null?0:(Bt=null,pt=0,hu(),Gt)}function wy(){for(;yt!==null&&!Ln();)$o(yt)}function $o(t){var e=bo(t.alternate,t,fn);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:bc(e);default:_o(n,e),e=yt=$r(e,fn),e=bo(n,e,fn)}t.memoizedProps=t.pendingProps,e===null?Zu(t):yt=e}function Ll(t,e,n,l){en=Pn=null,bc(e),xl=null,Aa=0;var a=e.return;try{if(Oy(t,a,e,n,pt)){Gt=1,wu(t,xe(n,t.current)),yt=null;return}}catch(u){if(a!==null)throw yt=a,u;Gt=1,wu(t,xe(n,t.current)),yt=null;return}e.flags&32768?(Et||l===1?t=!0:Cl||(pt&536870912)!==0?t=!1:(An=t=!0,(l===2||l===9||l===3||l===6)&&(l=Ce.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,An);return}t=e.return;var n=zy(e.alternate,e,fn);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,h){t.cancelPendingCommit=null;do $u();while(ue!==0);if((Ot&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=ki,Fl(t,n,u,r,o,h),t===Bt&&(yt=Bt=null,pt=0),wl=e,zn=t,Hl=n,Ic=u,ts=a,Lo=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Yy(Yn,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=H.p,H.p=2,r=Ot,Ot|=4;try{Dy(t,e,n)}finally{Ot=r,H.p=a,A.T=l}}ue=1,Wo(),Fo(),Po()}}function Wo(){if(ue===1){ue=0;var t=zn,e=wl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=A.T,A.T=null;var l=H.p;H.p=2;var a=Ot;Ot|=4;try{Mo(e,t);var u=gs,r=wr(t.containerInfo),o=u.focusedElem,h=u.selectionRange;if(r!==o&&o&&o.ownerDocument&&qr(o.ownerDocument.documentElement,o)){if(h!==null&&Qi(o)){var S=h.start,R=h.end;if(R===void 0&&(R=S),"selectionStart"in o)o.selectionStart=S,o.selectionEnd=Math.min(R,o.value.length);else{var x=o.ownerDocument||document,_=x&&x.defaultView||window;if(_.getSelection){var E=_.getSelection(),et=o.textContent.length,P=Math.min(h.start,et),Dt=h.end===void 0?P:Math.min(h.end,et);!E.extend&&P>Dt&&(r=Dt,Dt=P,P=r);var p=Cr(o,P),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=x.createRange();b.setStart(p.node,p.offset),E.removeAllRanges(),P>Dt?(E.addRange(b),E.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),E.addRange(b))}}}}for(x=[],E=o;E=E.parentNode;)E.nodeType===1&&x.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<x.length;o++){var N=x[o];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}ai=!!ms,gs=ms=null}finally{Ot=a,H.p=l,A.T=n}}t.current=e,ue=2}}function Fo(){if(ue===2){ue=0;var t=zn,e=wl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=A.T,A.T=null;var l=H.p;H.p=2;var a=Ot;Ot|=4;try{No(t,e.alternate,e)}finally{Ot=a,H.p=l,A.T=n}}ue=3}}function Po(){if(ue===4||ue===3){ue=0,bi();var t=zn,e=wl,n=Hl,l=Lo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ue=5:(ue=0,wl=zn=null,Io(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Rn=null),Ei(n),e=e.stateNode,g&&typeof g.onCommitFiberRoot=="function")try{g.onCommitFiberRoot(j,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=A.T,a=H.p,H.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,H.p=a}}(Hl&3)!==0&&$u(),Ke(t),a=t.pendingLanes,(n&4194090)!==0&&(a&42)!==0?t===es?Ba++:(Ba=0,es=t):Ba=0,Ca(0)}}function Io(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,da(e)))}function $u(t){return Wo(),Fo(),Po(),th()}function th(){if(ue!==5)return!1;var t=zn,e=Ic;Ic=0;var n=Ei(Hl),l=A.T,a=H.p;try{H.p=32>n?32:n,A.T=null,n=ts,ts=null;var u=zn,r=Hl;if(ue=0,wl=zn=null,Hl=0,(Ot&6)!==0)throw Error(s(331));var o=Ot;if(Ot|=4,Ho(u.current),Co(u,u.current,r,n),Ot=o,Ca(0,!1),g&&typeof g.onPostCommitFiberRoot=="function")try{g.onPostCommitFiberRoot(j,u)}catch{}return!0}finally{H.p=a,A.T=l,Io(t,e)}}function eh(t,e,n){e=xe(n,e),e=Bc(t.stateNode,e,2),t=vn(t,e,2),t!==null&&(Gn(t,2),Ke(t))}function xt(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"&&(Rn===null||!Rn.has(l))){t=xe(n,t),n=ao(2),l=vn(e,n,2),l!==null&&(uo(n,l,e,t),Gn(l,2),Ke(l));break}}e=e.return}}function us(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)||(Jc=!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,Bt===t&&(pt&n)===n&&(Gt===4||Gt===3&&(pt&62914560)===pt&&300>Oe()-Pc?(Ot&2)===0&&jl(t,0):Wc|=n,ql===pt&&(ql=0)),Ke(t)}function nh(t,e){e===0&&(e=Jl()),t=Sl(t,e),t!==null&&(Gn(t,e),Ke(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 Hn(t,e)}var Ku=null,Yl=null,is=!1,ku=!1,cs=!1,ul=0;function Ke(t){t!==Yl&&t.next===null&&(Yl===null?Ku=Yl=t:Yl=Yl.next=t),ku=!0,is||(is=!0,Gy())}function Ca(t,e){if(!cs&&ku){cs=!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-K(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=Re(l,l===Bt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||ze(l,u)||(n=!0,ih(l,u));l=l.next}while(n);cs=!1}}function Xy(){lh()}function lh(){ku=is=!1;var t=0;ul!==0&&(Wy()&&(t=ul),ul=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&&(Yl=n)):(n=l,(t!==0||(u&3)!==0)&&(ku=!0)),l=a}Ca(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-K(u),o=1<<r,h=a[r];h===-1?((o&n)===0||(o&l)!==0)&&(a[r]=Ia(o,e)):h<=e&&(t.expiredLanes|=o),u&=~o}if(e=Bt,n=pt,n=Re(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&jn(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||ze(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&jn(l),Ei(n)){case 2:case 8:n=kl;break;case 32:n=Yn;break;case 268435456:n=Pa;break;default:n=Yn}return l=uh.bind(null,t),n=Hn(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&jn(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($u()&&t.callbackNode!==n)return null;var l=pt;return l=Re(t,t===Bt?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($u())return null;Xo(t,e,!0)}function Gy(){Py(function(){(Ot&6)!==0?Hn(Wa,Xy):lh()})}function ss(){return ul===0&&(ul=Xn()),ul}function ch(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:uu(""+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 ru("action","action",null,l,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ul!==0){var h=r?sh(a,r):new FormData(a);Nc(n,{pending:!0,data:h,method:a.method,action:u},null,h)}}else typeof u=="function"&&(o.preventDefault(),h=r?sh(a,r):new FormData(a),Nc(n,{pending:!0,data:h,method:a.method,action:u},u,h))},currentTarget:a}]})}}for(var rs=0;rs<Ki.length;rs++){var fs=Ki[rs],Vy=fs.toLowerCase(),Zy=fs[0].toUpperCase()+fs.slice(1);Le(Vy,"on"+Zy)}Le(Lr,"onAnimationEnd"),Le(Yr,"onAnimationIteration"),Le(Xr,"onAnimationStart"),Le("dblclick","onDoubleClick"),Le("focusin","onFocus"),Le("focusout","onBlur"),Le(sy,"onTransitionRun"),Le(ry,"onTransitionStart"),Le(fy,"onTransitionCancel"),Le(Gr,"onTransitionEnd"),fl("onMouseEnter",["mouseout","mouseover"]),fl("onMouseLeave",["mouseout","mouseover"]),fl("onPointerEnter",["pointerout","pointerover"]),fl("onPointerLeave",["pointerout","pointerover"]),Qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qn("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(" "),$y=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],h=o.instance,S=o.currentTarget;if(o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=S;try{u(a)}catch(R){qu(R)}a.currentTarget=null,u=h}else for(r=0;r<l.length;r++){if(o=l[r],h=o.instance,S=o.currentTarget,o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=S;try{u(a)}catch(R){qu(R)}a.currentTarget=null,u=h}}}}function mt(t,e){var n=e[Ti];n===void 0&&(n=e[Ti]=new Set);var l=t+"__bubble";n.has(l)||(fh(e,t,2,!1),n.add(l))}function os(t,e,n){var l=0;e&&(l|=4),fh(n,t,l,e)}var Ju="_reactListening"+Math.random().toString(36).slice(2);function hs(t){if(!t[Ju]){t[Ju]=!0,er.forEach(function(n){n!=="selectionchange"&&($y.has(n)||os(n,!1,t),os(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ju]||(e[Ju]=!0,os("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=Rs}n=a.bind(null,e,n,t),a=void 0,!Ci||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 ds(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 h=r.tag;if((h===3||h===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;o!==null;){if(r=cl(o),r===null)return;if(h=r.tag,h===5||h===6||h===26||h===27){l=u=r;continue t}o=o.parentNode}}l=l.return}mr(function(){var S=u,R=Mi(n),x=[];t:{var _=Qr.get(t);if(_!==void 0){var E=ru,et=t;switch(t){case"keypress":if(cu(n)===0)break t;case"keydown":case"keyup":E=Yd;break;case"focusin":et="focus",E=ji;break;case"focusout":et="blur",E=ji;break;case"beforeblur":case"afterblur":E=ji;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=Zd;break;case"scroll":case"scrollend":E=Rd;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 P=(e&4)!==0,Dt=!P&&(t==="scroll"||t==="scrollend"),p=P?_!==null?_+"Capture":null:_;P=[];for(var m=S,b;m!==null;){var N=m;if(b=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||b===null||p===null||(N=ta(m,p),N!=null&&P.push(wa(m,N,b))),Dt)break;m=m.return}0<P.length&&(_=new E(_,et,null,n,R),x.push({event:_,listeners:P}))}}if((e&7)===0){t:{if(_=t==="mouseover"||t==="pointerover",E=t==="mouseout"||t==="pointerout",_&&n!==Ui&&(et=n.relatedTarget||n.fromElement)&&(cl(et)||et[il]))break t;if((E||_)&&(_=R.window===R?R:(_=R.ownerDocument)?_.defaultView||_.parentWindow:window,E?(et=n.relatedTarget||n.toElement,E=S,et=et?cl(et):null,et!==null&&(Dt=O(et),P=et.tag,et!==Dt||P!==5&&P!==27&&P!==6)&&(et=null)):(E=null,et=S),E!==et)){if(P=pr,N="onMouseLeave",p="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&(P=Sr,N="onPointerLeave",p="onPointerEnter",m="pointer"),Dt=E==null?_:Il(E),b=et==null?_:Il(et),_=new P(N,m+"leave",E,n,R),_.target=Dt,_.relatedTarget=b,N=null,cl(R)===S&&(P=new P(p,m+"enter",et,n,R),P.target=b,P.relatedTarget=Dt,N=P),Dt=N,E&&et)e:{for(P=E,p=et,m=0,b=P;b;b=Xl(b))m++;for(b=0,N=p;N;N=Xl(N))b++;for(;0<m-b;)P=Xl(P),m--;for(;0<b-m;)p=Xl(p),b--;for(;m--;){if(P===p||p!==null&&P===p.alternate)break e;P=Xl(P),p=Xl(p)}P=null}else P=null;E!==null&&oh(x,_,E,P,!1),et!==null&&Dt!==null&&oh(x,Dt,et,P,!0)}}t:{if(_=S?Il(S):window,E=_.nodeName&&_.nodeName.toLowerCase(),E==="select"||E==="input"&&_.type==="file")var G=Nr;else if(Rr(_))if(Dr)G=uy;else{G=ly;var ot=ny}else E=_.nodeName,!E||E.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?S&&xi(S.elementType)&&(G=Nr):G=ay;if(G&&(G=G(t,S))){zr(x,G,n,R);break t}ot&&ot(t,_,S),t==="focusout"&&S&&_.type==="number"&&S.memoizedProps.value!=null&&Di(_,"number",_.value)}switch(ot=S?Il(S):window,t){case"focusin":(Rr(ot)||ot.contentEditable==="true")&&(vl=ot,Vi=S,sa=null);break;case"focusout":sa=Vi=vl=null;break;case"mousedown":Zi=!0;break;case"contextmenu":case"mouseup":case"dragend":Zi=!1,Hr(x,n,R);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":Hr(x,n,R)}var k;if(Yi)t:{switch(t){case"compositionstart":var tt="onCompositionStart";break t;case"compositionend":tt="onCompositionEnd";break t;case"compositionupdate":tt="onCompositionUpdate";break t}tt=void 0}else gl?Ar(t,n)&&(tt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(tt="onCompositionStart");tt&&(_r&&n.locale!=="ko"&&(gl||tt!=="onCompositionStart"?tt==="onCompositionEnd"&&gl&&(k=gr()):(dn=R,qi="value"in dn?dn.value:dn.textContent,gl=!0)),ot=Wu(S,tt),0<ot.length&&(tt=new br(tt,t,null,n,R),x.push({event:tt,listeners:ot}),k?tt.data=k:(k=Or(n),k!==null&&(tt.data=k)))),(k=Fd?Pd(t,n):Id(t,n))&&(tt=Wu(S,"onBeforeInput"),0<tt.length&&(ot=new br("onBeforeInput","beforeinput",null,n,R),x.push({event:ot,listeners:tt}),ot.data=k)),Qy(x,t,S,n,R)}rh(x,e)})}function wa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Wu(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=ta(t,n),a!=null&&l.unshift(wa(t,a,u)),a=ta(t,e),a!=null&&l.push(wa(t,a,u))),t.tag===3)return l;t=t.return}return[]}function Xl(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,h=o.alternate,S=o.stateNode;if(o=o.tag,h!==null&&h===l)break;o!==5&&o!==26&&o!==27||S===null||(h=S,a?(S=ta(n,u),S!=null&&r.unshift(wa(n,S,h))):a||(S=ta(n,u),S!=null&&r.push(wa(n,S,h)))),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 Fu(){}function Nt(t,e,n,l,a,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||dl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&dl(t,""+l);break;case"className":nu(t,"class",l);break;case"tabIndex":nu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":nu(t,n,l);break;case"style":dr(t,l,u);break;case"data":if(e!=="object"){nu(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=uu(""+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"&&Nt(t,e,"name",a.name,a,null),Nt(t,e,"formEncType",a.formEncType,a,null),Nt(t,e,"formMethod",a.formMethod,a,null),Nt(t,e,"formTarget",a.formTarget,a,null)):(Nt(t,e,"encType",a.encType,a,null),Nt(t,e,"method",a.method,a,null),Nt(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=uu(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Fu);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=uu(""+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),eu(t,"popover",l);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":eu(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,eu(t,n,l))}}function ys(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"?dl(t,l):(typeof l=="number"||typeof l=="bigint")&&dl(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=Fu);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,""):eu(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:Nt(t,e,u,r,n,null)}}a&&Nt(t,e,"srcSet",n.srcSet,n,null),l&&Nt(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var o=u=r=a=null,h=null,S=null;for(l in n)if(n.hasOwnProperty(l)){var R=n[l];if(R!=null)switch(l){case"name":a=R;break;case"type":r=R;break;case"checked":h=R;break;case"defaultChecked":S=R;break;case"value":u=R;break;case"defaultValue":o=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,e));break;default:Nt(t,e,l,R,n,null)}}rr(t,u,o,h,S,r,a,!1),lu(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:Nt(t,e,a,o,n,null)}e=u,n=r,t.multiple=!!l,e!=null?hl(t,!!l,e,!1):n!=null&&hl(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:Nt(t,e,r,o,n,null)}or(t,l,a,u),lu(t);return;case"option":for(h in n)if(n.hasOwnProperty(h)&&(l=n[h],l!=null))switch(h){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Nt(t,e,h,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:Nt(t,e,S,l,n,null)}return;default:if(xi(e)){for(R in n)n.hasOwnProperty(R)&&(l=n[R],l!==void 0&&ys(t,e,R,l,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(l=n[o],l!=null&&Nt(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,h=null,S=null,R=null;for(E in n){var x=n[E];if(n.hasOwnProperty(E)&&x!=null)switch(E){case"checked":break;case"value":break;case"defaultValue":h=x;default:l.hasOwnProperty(E)||Nt(t,e,E,null,l,x)}}for(var _ in l){var E=l[_];if(x=n[_],l.hasOwnProperty(_)&&(E!=null||x!=null))switch(_){case"type":u=E;break;case"name":a=E;break;case"checked":S=E;break;case"defaultChecked":R=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!==x&&Nt(t,e,_,E,l,x)}}Ni(t,r,o,h,S,R,u,a);return;case"select":E=r=o=_=null;for(u in n)if(h=n[u],n.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":E=h;default:l.hasOwnProperty(u)||Nt(t,e,u,null,l,h)}for(a in l)if(u=l[a],h=n[a],l.hasOwnProperty(a)&&(u!=null||h!=null))switch(a){case"value":_=u;break;case"defaultValue":o=u;break;case"multiple":r=u;default:u!==h&&Nt(t,e,a,u,l,h)}e=o,n=r,l=E,_!=null?hl(t,!!n,_,!1):!!l!=!!n&&(e!=null?hl(t,!!n,e,!0):hl(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:Nt(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&&Nt(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:Nt(t,e,et,null,l,_)}for(h in l)if(_=l[h],E=n[h],l.hasOwnProperty(h)&&_!==E&&(_!=null||E!=null))switch(h){case"selected":t.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Nt(t,e,h,_,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 P in n)_=n[P],n.hasOwnProperty(P)&&_!=null&&!l.hasOwnProperty(P)&&Nt(t,e,P,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:Nt(t,e,S,_,l,E)}return;default:if(xi(e)){for(var Dt in n)_=n[Dt],n.hasOwnProperty(Dt)&&_!==void 0&&!l.hasOwnProperty(Dt)&&ys(t,e,Dt,void 0,l,_);for(R in l)_=l[R],E=n[R],!l.hasOwnProperty(R)||_===E||_===void 0&&E===void 0||ys(t,e,R,_,l,E);return}}for(var p in n)_=n[p],n.hasOwnProperty(p)&&_!=null&&!l.hasOwnProperty(p)&&Nt(t,e,p,null,l,_);for(x in l)_=l[x],E=n[x],!l.hasOwnProperty(x)||_===E||_==null&&E==null||Nt(t,e,x,_,l,E)}var ms=null,gs=null;function Pu(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 vs(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 ps=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===ps?!1:(ps=t,!0):(ps=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 Dn(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&&Ha(r.documentElement),n&2&&Ha(r.body),n&4)for(n=r.head,Ha(n),r=n.firstChild;r;){var o=r.nextSibling,h=r.nodeName;r[Pl]||h==="SCRIPT"||h==="STYLE"||h==="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 bs(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":bs(n),Ai(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[Pl])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=Xe(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=Xe(t.nextSibling),t===null))return null;return t}function Ss(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 Xe(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 _s=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=Pu(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 Ha(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ai(t)}var we=new Map,_h=new Set;function Iu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var on=H.d;H.d={f:lm,r:am,D:um,C:im,L:cm,m:sm,X:fm,S:rm,M:om};function lm(){var t=on.f(),e=Vu();return t||e}function am(t){var e=sl(t);e!==null&&e.tag===5&&e.type==="form"?Yf(e):on.r(t)}var Gl=typeof document>"u"?null:document;function Eh(t,e,n){var l=Gl;if(l&&typeof e=="string"&&e){var a=De(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),Ft(e),l.head.appendChild(e)))}}function um(t){on.D(t),Eh("dns-prefetch",t,null)}function im(t,e){on.C(t,e),Eh("preconnect",t,e)}function cm(t,e,n){on.L(t,e,n);var l=Gl;if(l&&t&&e){var a='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+De(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+De(n.imageSizes)+'"]')):a+='[href="'+De(t)+'"]';var u=a;switch(e){case"style":u=Ql(t);break;case"script":u=Vl(t)}we.has(u)||(t=B({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(ja(u))||e==="script"&&l.querySelector(La(u))||(e=l.createElement("link"),ie(e,"link",t),Ft(e),l.head.appendChild(e)))}}function sm(t,e){on.m(t,e);var n=Gl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+De(l)+'"][href="'+De(t)+'"]',u=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Vl(t)}if(!we.has(u)&&(t=B({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(La(u)))return}l=n.createElement("link"),ie(l,"link",t),Ft(l),n.head.appendChild(l)}}}function rm(t,e,n){on.S(t,e,n);var l=Gl;if(l&&t){var a=rl(l).hoistableStyles,u=Ql(t);e=e||"default";var r=a.get(u);if(!r){var o={loading:0,preload:null};if(r=l.querySelector(ja(u)))o.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(u))&&Es(t,n);var h=r=l.createElement("link");Ft(h),ie(h,"link",t),h._p=new Promise(function(S,R){h.onload=S,h.onerror=R}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ti(r,e,l)}r={type:"stylesheet",instance:r,count:1,state:o},a.set(u,r)}}}function fm(t,e){on.X(t,e);var n=Gl;if(n&&t){var l=rl(n).hoistableScripts,a=Vl(t),u=l.get(a);u||(u=n.querySelector(La(a)),u||(t=B({src:t,async:!0},e),(e=we.get(a))&&Ts(t,e),u=n.createElement("script"),Ft(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){on.M(t,e);var n=Gl;if(n&&t){var l=rl(n).hoistableScripts,a=Vl(t),u=l.get(a);u||(u=n.querySelector(La(a)),u||(t=B({src:t,async:!0,type:"module"},e),(e=we.get(a))&&Ts(t,e),u=n.createElement("script"),Ft(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)?Iu(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=Ql(n.href),n=rl(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=Ql(n.href);var u=rl(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(ja(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=Vl(n),n=rl(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 Ql(t){return'href="'+De(t)+'"'}function ja(t){return'link[rel="stylesheet"]['+t+"]"}function Ah(t){return B({},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),Ft(e),t.head.appendChild(e))}function Vl(t){return'[src="'+De(t)+'"]'}function La(t){return"script[async]"+t}function Oh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+De(n.href)+'"]');if(l)return e.instance=l,Ft(l),l;var a=B({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ft(l),ie(l,"style",a),ti(l,n.precedence,t),e.instance=l;case"stylesheet":a=Ql(n.href);var u=t.querySelector(ja(a));if(u)return e.state.loading|=4,e.instance=u,Ft(u),u;l=Ah(n),(a=we.get(a))&&Es(l,a),u=(t.ownerDocument||t).createElement("link"),Ft(u);var r=u;return r._p=new Promise(function(o,h){r.onload=o,r.onerror=h}),ie(u,"link",l),e.state.loading|=4,ti(u,n.precedence,t),e.instance=u;case"script":return u=Vl(n.src),(a=t.querySelector(La(u)))?(e.instance=a,Ft(a),a):(l=n,(a=we.get(u))&&(l=B({},n),Ts(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Ft(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,ti(l,n.precedence,t));return e.instance}function ti(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 Es(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ts(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ei=null;function Rh(t,e,n){if(ei===null){var l=new Map,a=ei=new Map;a.set(n,l)}else a=ei,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[Pl]||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 Ya=null;function ym(){}function mm(t,e,n){if(Ya===null)throw Error(s(475));var l=Ya;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Ql(n.href),u=t.querySelector(ja(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=ni.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=u,Ft(u);return}u=t.ownerDocument||t,n=Ah(n),(a=we.get(a))&&Es(n,a),u=u.createElement("link"),Ft(u);var r=u;r._p=new Promise(function(o,h){r.onload=o,r.onerror=h}),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=ni.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}function gm(){if(Ya===null)throw Error(s(475));var t=Ya;return t.stylesheets&&t.count===0&&As(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&As(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 ni(){if(this.count--,this.count===0){if(this.stylesheets)As(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var li=null;function As(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,li=new Map,e.forEach(vm,t),li=null,ni.call(t))}function vm(t,e){if(!(e.state.loading&4)){var n=li.get(t);if(n)var l=n.get(null);else{n=new Map,li.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=ni.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 Xa={$$typeof:Ct,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_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=Wl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wl(0),this.hiddenUpdates=Wl(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 Dh(t,e,n,l,a,u,r,o,h,S,R,x){return t=new pm(t,e,n,r,o,h,S,x),e=1,u===!0&&(e|=24),u=be(3,null,null,e),t.current=u,u.stateNode=t,e=uc(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},rc(u),t}function xh(t){return t?(t=_l,t):_l}function Uh(t,e,n,l,a,u){a=xh(a),l.context===null?l.context=a:l.pendingContext=a,l=gn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=vn(t,l,e),n!==null&&(Ae(n,t,e),va(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=Sl(t,67108864);e!==null&&Ae(e,t,67108864),Os(t,67108864)}}var ai=!0;function bm(t,e,n,l){var a=A.T;A.T=null;var u=H.p;try{H.p=2,Rs(t,e,n,l)}finally{H.p=u,A.T=a}}function Sm(t,e,n,l){var a=A.T;A.T=null;var u=H.p;try{H.p=8,Rs(t,e,n,l)}finally{H.p=u,A.T=a}}function Rs(t,e,n,l){if(ai){var a=zs(l);if(a===null)ds(t,e,l,ui,n),qh(t,l);else if(Em(a,t,e,n,l))l.stopPropagation();else if(qh(t,l),e&4&&-1<_m.indexOf(t)){for(;a!==null;){var u=sl(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=ft(u.pendingLanes);if(r!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;r;){var h=1<<31-K(r);o.entanglements[1]|=h,r&=~h}Ke(u),(Ot&6)===0&&(Gu=Oe()+500,Ca(0))}}break;case 13:o=Sl(u,2),o!==null&&Ae(o,u,2),Vu(),Os(u,2)}if(u=zs(l),u===null&&ds(t,e,l,ui,n),u===a)break;a=u}a!==null&&l.stopPropagation()}else ds(t,e,l,null,n)}}function zs(t){return t=Mi(t),Ns(t)}var ui=null;function Ns(t){if(ui=null,t=cl(t),t!==null){var e=O(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=q(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 ui=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 Wa:return 2;case kl:return 8;case Yn:case Fa:return 32;case Pa:return 268435456;default:return 32}default:return 32}}var Ds=!1,xn=null,Un=null,Mn=null,Ga=new Map,Qa=new Map,Bn=[],_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 qh(t,e){switch(t){case"focusin":case"focusout":xn=null;break;case"dragenter":case"dragleave":Un=null;break;case"mouseover":case"mouseout":Mn=null;break;case"pointerover":case"pointerout":Ga.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qa.delete(e.pointerId)}}function Va(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=sl(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 xn=Va(xn,t,e,n,l,a),!0;case"dragenter":return Un=Va(Un,t,e,n,l,a),!0;case"mouseover":return Mn=Va(Mn,t,e,n,l,a),!0;case"pointerover":var u=a.pointerId;return Ga.set(u,Va(Ga.get(u)||null,t,e,n,l,a)),!0;case"gotpointercapture":return u=a.pointerId,Qa.set(u,Va(Qa.get(u)||null,t,e,n,l,a)),!0}return!1}function wh(t){var e=cl(t.target);if(e!==null){var n=O(e);if(n!==null){if(e=n.tag,e===13){if(e=q(n),e!==null){t.blockedOn=e,md(t.priority,function(){if(n.tag===13){var l=Te();l=_i(l);var a=Sl(n,l);a!==null&&Ae(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 ii(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=zs(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Ui=l,n.target.dispatchEvent(l),Ui=null}else return e=sl(n),e!==null&&Bh(e),t.blockedOn=n,!1;e.shift()}return!0}function Hh(t,e,n){ii(t)&&n.delete(e)}function Tm(){Ds=!1,xn!==null&&ii(xn)&&(xn=null),Un!==null&&ii(Un)&&(Un=null),Mn!==null&&ii(Mn)&&(Mn=null),Ga.forEach(Hh),Qa.forEach(Hh)}function ci(t,e){t.blockedOn===e&&(t.blockedOn=null,Ds||(Ds=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Tm)))}var si=null;function jh(t){si!==t&&(si=t,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){si===t&&(si=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(Ns(l||n)===null)continue;break}var u=sl(n);u!==null&&(t.splice(e,3),e-=3,Nc(u,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Za(t){function e(h){return ci(h,t)}xn!==null&&ci(xn,t),Un!==null&&ci(Un,t),Mn!==null&&ci(Mn,t),Ga.forEach(e),Qa.forEach(e);for(var n=0;n<Bn.length;n++){var l=Bn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Bn.length&&(n=Bn[0],n.blockedOn===null);)wh(n),n.blockedOn===null&&Bn.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(Ns(a)!==null)continue}else o=r.action;typeof o=="function"?n[l+1]=o:(n.splice(l,3),l-=3),jh(n)}}}function xs(t){this._internalRoot=t}ri.prototype.render=xs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=Te();Uh(n,l,t,e,null,null)},ri.prototype.unmount=xs.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),Vu(),e[il]=null}};function ri(t){this._internalRoot=t}ri.prototype.unstable_scheduleHydration=function(t){if(t){var e=Is();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Bn.length&&e!==0&&e<Bn[n].priority;n++);Bn.splice(n,0,t),n===0&&wh(t)}};var Lh=i.version;if(Lh!=="19.1.1")throw Error(s(527,Lh,"19.1.1"));H.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=M(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 fi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fi.isDisabled&&fi.supportsFiber)try{j=fi.inject(Am),g=fi}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=Dh(t,1,!1,null,null,n,l,a,u,r,o,null),t[il]=e.current,hs(t),new xs(e)},Ka.hydrateRoot=function(t,e,n){if(!v(t))throw Error(s(299));var l=!1,a="",u=to,r=eo,o=no,h=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&&(h=n.unstable_transitionCallbacks),n.formState!==void 0&&(S=n.formState)),e=Dh(t,1,!0,e,n??null,l,a,u,r,o,h,S),e.context=xh(null),n=e.current,l=Te(),l=_i(l),a=gn(l),a.callback=null,vn(n,a,l),n=l,e.current.lanes=n,Gn(e,n),Ke(e),t[il]=e.current,hs(t),new ri(e)},Ka.version="19.1.1",Ka}var Jh;function Cm(){if(Jh)return Bs.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(),Bs.exports=Bm(),Bs.exports}var qm=Cm();const Je=Object.create(null);Je.open="0";Je.close="1";Je.ping="2";Je.pong="3";Je.message="4";Je.upgrade="5";Je.noop="6";const di=Object.create(null);Object.keys(Je).forEach(f=>{di[Je[f]]=f});const Ys={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(Je[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 Hs;function wm(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=>{Hs||(Hs=new TextEncoder),i(Hs.encode(c))})}const Ph="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ja=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let f=0;f<Ph.length;f++)Ja[Ph.charCodeAt(f)]=f;const Hm=f=>{let i=f.length*.75,c=f.length,s,v=0,O,q,Q,M;f[f.length-1]==="="&&(i--,f[f.length-2]==="="&&i--);const T=new ArrayBuffer(i),B=new Uint8Array(T);for(s=0;s<c;s+=4)O=Ja[f.charCodeAt(s)],q=Ja[f.charCodeAt(s+1)],Q=Ja[f.charCodeAt(s+2)],M=Ja[f.charCodeAt(s+3)],B[v++]=O<<2|q>>4,B[v++]=(q&15)<<4|Q>>2,B[v++]=(Q&3)<<6|M&63;return T},jm=typeof ArrayBuffer=="function",ks=(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)}:di[c]?f.length>1?{type:di[c],data:f.substring(1)}:{type:di[c]}:Ys},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((O,q)=>{Ks(O,!1,Q=>{s[q]=Q,++v===c&&i(s.join(id))})})},Xm=(f,i)=>{const c=f.split(id),s=[];for(let v=0;v<c.length;v++){const O=ks(c[v],i);if(s.push(O),O.type==="error")break}return s};function Gm(){return new TransformStream({transform(f,i){wm(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 O=new DataView(v.buffer);O.setUint8(0,126),O.setUint16(1,s)}else{v=new Uint8Array(9);const O=new DataView(v.buffer);O.setUint8(0,127),O.setBigUint64(1,BigInt(s))}f.data&&typeof f.data!="string"&&(v[0]|=128),i.enqueue(v),i.enqueue(c)})}})}let js;function oi(f){return f.reduce((i,c)=>i+c.length,0)}function hi(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){js||(js=new TextDecoder);const c=[];let s=0,v=-1,O=!1;return new TransformStream({transform(q,Q){for(c.push(q);;){if(s===0){if(oi(c)<1)break;const M=hi(c,1);O=(M[0]&128)===128,v=M[0]&127,v<126?s=3:v===126?s=1:s=2}else if(s===1){if(oi(c)<2)break;const M=hi(c,2);v=new DataView(M.buffer,M.byteOffset,M.length).getUint16(0),s=3}else if(s===2){if(oi(c)<8)break;const M=hi(c,8),T=new DataView(M.buffer,M.byteOffset,M.length),B=T.getUint32(0);if(B>Math.pow(2,21)-1){Q.enqueue(Ys);break}v=B*Math.pow(2,32)+T.getUint32(4),s=3}else{if(oi(c)<v)break;const M=hi(c,v);Q.enqueue(ks(O?M:js.decode(M),i)),s=0}if(v===0||v>f){Q.enqueue(Ys);break}}}})}const cd=4;function kt(f){if(f)return Vm(f)}function Vm(f){for(var i in kt.prototype)f[i]=kt.prototype[i];return f}kt.prototype.on=kt.prototype.addEventListener=function(f,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+f]=this._callbacks["$"+f]||[]).push(i),this};kt.prototype.once=function(f,i){function c(){this.off(f,c),i.apply(this,arguments)}return c.fn=i,this.on(f,c),this};kt.prototype.off=kt.prototype.removeListener=kt.prototype.removeAllListeners=kt.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};kt.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};kt.prototype.emitReserved=kt.prototype.emit;kt.prototype.listeners=function(f){return this._callbacks=this._callbacks||{},this._callbacks["$"+f]||[]};kt.prototype.hasListeners=function(f){return!!this.listeners(f).length};const vi=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),He=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Zm="arraybuffer";function sd(f,...i){return i.reduce((c,s)=>(f.hasOwnProperty(s)&&(c[s]=f[s]),c),{})}const $m=He.setTimeout,Km=He.clearTimeout;function pi(f,i){i.useNativeTimers?(f.setTimeoutFn=$m.bind(He),f.clearTimeoutFn=Km.bind(He)):(f.setTimeoutFn=He.setTimeout.bind(He),f.clearTimeoutFn=He.clearTimeout.bind(He))}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 O=c[s].split("=");i[decodeURIComponent(O[0])]=decodeURIComponent(O[1])}return i}class Im extends Error{constructor(i,c,s){super(i),this.description=c,this.context=s,this.type="TransportError"}}class Js extends kt{constructor(i){super(),this.writable=!1,pi(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=ks(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 t0 extends Js{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 e0=fd;function n0(){}class l0 extends t0{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,O)=>{this.onError("xhr post error",v,O)})}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 kt{constructor(i,c,s){super(),this.createRequest=i,pi(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=n0,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 He?"pagehide":"unload";addEventListener(f,Ih,!1)}}function Ih(){for(let f in ke.requests)ke.requests.hasOwnProperty(f)&&ke.requests[f].abort()}const a0=function(){const f=od({xdomain:!1});return f&&f.responseType!==null}();class u0 extends l0{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=a0&&!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||e0))return new XMLHttpRequest}catch{}if(!i)try{return new He[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const hd=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class i0 extends Js{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,O=>{try{this.doWrite(s,O)}catch{}v&&vi(()=>{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 Ls=He.WebSocket||He.MozWebSocket;class c0 extends i0{createSocket(i,c,s){return hd?new Ls(i,c,s):c?new Ls(i,c):new Ls(i)}doWrite(i,c){this.ws.send(c)}}class s0 extends Js{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 O=()=>{s.read().then(({done:Q,value:M})=>{Q||(this.onPacket(M),O())}).catch(Q=>{})};O();const q={type:"open"};this.query.sid&&(q.data=`{"sid":"${this.query.sid}"}`),this._writer.write(q).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&&vi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const r0={websocket:c0,webtransport:s0,polling:u0},f0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Xs(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=f0.exec(f||""),O={},q=14;for(;q--;)O[o0[q]]=v[q]||"";return c!=-1&&s!=-1&&(O.source=i,O.host=O.host.substring(1,O.host.length-1).replace(/;/g,":"),O.authority=O.authority.replace("[","").replace("]","").replace(/;/g,":"),O.ipv6uri=!0),O.pathNames=h0(O,O.path),O.queryKey=d0(O,O.query),O}function h0(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 d0(f,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,v,O){v&&(c[v]=O)}),c}const Gs=typeof addEventListener=="function"&&typeof removeEventListener=="function",yi=[];Gs&&addEventListener("offline",()=>{yi.forEach(f=>f())},!1);class qn extends kt{constructor(i,c){if(super(),this.binaryType=Zm,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=Xs(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=Xs(c.host).host);pi(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)),Gs&&(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"})},yi.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&&qn.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",qn.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,vi(()=>{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 O={type:i,data:c,options:s};this.emitReserved("packetCreate",O),this.writeBuffer.push(O),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(qn.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(),Gs&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=yi.indexOf(this._offlineEventListener);s!==-1&&yi.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}qn.protocol=cd;class y0 extends qn{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;qn.priorWebsocketSuccess=!1;const v=()=>{s||(c.send([{type:"ping",data:"probe"}]),c.once("packet",W=>{if(!s)if(W.type==="pong"&&W.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;qn.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(B(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const ct=new Error("probe error");ct.transport=c.name,this.emitReserved("upgradeError",ct)}}))};function O(){s||(s=!0,B(),c.close(),c=null)}const q=W=>{const ct=new Error("probe error: "+W);ct.transport=c.name,O(),this.emitReserved("upgradeError",ct)};function Q(){q("transport closed")}function M(){q("socket closed")}function T(W){c&&W.name!==c.name&&O()}const B=()=>{c.removeListener("open",v),c.removeListener("error",q),c.removeListener("close",Q),this.off("close",M),this.off("upgrading",T)};c.once("open",v),c.once("error",q),c.once("close",Q),this.once("close",M),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 m0=class extends y0{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=>r0[v]).filter(v=>!!v)),super(i,s)}};function g0(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=Xs(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 O=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+O+":"+s.port+i,s.href=s.protocol+"://"+O+(c&&c.port===s.port?"":":"+s.port),s}const v0=typeof ArrayBuffer=="function",p0=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f.buffer instanceof ArrayBuffer,dd=Object.prototype.toString,b0=typeof Blob=="function"||typeof Blob<"u"&&dd.call(Blob)==="[object BlobConstructor]",S0=typeof File=="function"||typeof File<"u"&&dd.call(File)==="[object FileConstructor]";function Ws(f){return v0&&(f instanceof ArrayBuffer||p0(f))||b0&&f instanceof Blob||S0&&f instanceof File}function mi(f,i){if(!f||typeof f!="object")return!1;if(Array.isArray(f)){for(let c=0,s=f.length;c<s;c++)if(mi(f[c]))return!0;return!1}if(Ws(f))return!0;if(f.toJSON&&typeof f.toJSON=="function"&&arguments.length===1)return mi(f.toJSON(),!0);for(const c in f)if(Object.prototype.hasOwnProperty.call(f,c)&&mi(f[c]))return!0;return!1}function _0(f){const i=[],c=f.data,s=f;return s.data=Qs(c,i),s.attachments=i.length,{packet:s,buffers:i}}function Qs(f,i){if(!f)return f;if(Ws(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]=Qs(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]=Qs(f[s],i));return c}return f}function E0(f,i){return f.data=Vs(f.data,i),delete f.attachments,f}function Vs(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]=Vs(f[c],i);else if(typeof f=="object")for(const c in f)Object.prototype.hasOwnProperty.call(f,c)&&(f[c]=Vs(f[c],i));return f}const T0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],A0=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 O0{constructor(i){this.replacer=i}encode(i){return(i.type===vt.EVENT||i.type===vt.ACK)&&mi(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=_0(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 Fs extends kt{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 R0(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Ws(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 O=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const q=i.substring(O,c);if(q!=Number(q)||i.charAt(c)!=="-")throw new Error("Illegal attachments");s.attachments=Number(q)}if(i.charAt(c+1)==="/"){const O=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););s.nsp=i.substring(O,c)}else s.nsp="/";const v=i.charAt(c+1);if(v!==""&&Number(v)==v){const O=c+1;for(;++c;){const q=i.charAt(c);if(q==null||Number(q)!=q){--c;break}if(c===i.length)break}s.id=Number(i.substring(O,c+1))}if(i.charAt(++c)){const O=this.tryParse(i.substr(c));if(Fs.isPayloadValid(s.type,O))s.data=O;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"&&T0.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 R0{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=E0(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const z0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Fs,Encoder:O0,get PacketType(){return vt},protocol:A0},Symbol.toStringTag,{value:"Module"}));function Ge(f,i,c){return f.on(i,c),function(){f.off(i,c)}}const N0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class yd extends kt{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=[Ge(i,"open",this.onopen.bind(this)),Ge(i,"packet",this.onpacket.bind(this)),Ge(i,"error",this.onerror.bind(this)),Ge(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,O;if(N0.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 q={type:vt.EVENT,data:c};if(q.options={},q.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const B=this.ids++,W=c.pop();this._registerAckCallback(B,W),q.id=B}const Q=(v=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||v===void 0?void 0:v.writable,M=this.connected&&!(!((O=this.io.engine)===null||O===void 0)&&O._hasPingExpired());return this.flags.volatile&&!Q||(M?(this.notifyOutgoingListeners(q),this.packet(q)):this.sendBuffer.push(q)),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 O=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let Q=0;Q<this.sendBuffer.length;Q++)this.sendBuffer[Q].id===i&&this.sendBuffer.splice(Q,1);c.call(this,new Error("operation has timed out"))},v),q=(...Q)=>{this.io.clearTimeoutFn(O),c.apply(this,Q)};q.withError=!0,this.acks[i]=q}emitWithAck(i,...c){return new Promise((s,v)=>{const O=(q,Q)=>q?v(q):s(Q);O.withError=!0,c.push(O),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,...O)=>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,...O)),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 Zl(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}Zl.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};Zl.prototype.reset=function(){this.attempts=0};Zl.prototype.setMin=function(f){this.ms=f};Zl.prototype.setMax=function(f){this.max=f};Zl.prototype.setJitter=function(f){this.jitter=f};class Zs extends kt{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,pi(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 Zl({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||z0;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 m0(this.uri,this.opts);const c=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const v=Ge(c,"open",function(){s.onopen(),i&&i()}),O=Q=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Q),i?i(Q):this.maybeReconnectOnOpen()},q=Ge(c,"error",O);if(this._timeout!==!1){const Q=this._timeout,M=this.setTimeoutFn(()=>{v(),O(new Error("timeout")),c.close()},Q);this.opts.autoUnref&&M.unref(),this.subs.push(()=>{this.clearTimeoutFn(M)})}return this.subs.push(v),this.subs.push(q),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Ge(i,"ping",this.onping.bind(this)),Ge(i,"data",this.ondata.bind(this)),Ge(i,"error",this.onerror.bind(this)),Ge(i,"close",this.onclose.bind(this)),Ge(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){vi(()=>{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 ka={};function gi(f,i){typeof f=="object"&&(i=f,f=void 0),i=i||{};const c=g0(f,i.path||"/socket.io"),s=c.source,v=c.id,O=c.path,q=ka[v]&&O in ka[v].nsps,Q=i.forceNew||i["force new connection"]||i.multiplex===!1||q;let M;return Q?M=new Zs(s,i):(ka[v]||(ka[v]=new Zs(s,i)),M=ka[v]),c.query&&!i.query&&(i.query=c.queryKey),M.socket(c.path,i)}Object.assign(gi,{Manager:Zs,Socket:yd,io:gi,connect:gi});function D0({code:f,isConnected:i,onCreateRoom:c,onJoinRoom:s}){const[v,O]=rt.useState(""),q=()=>{if(v){const M=v.trim();s(M)}},Q=M=>{M.key==="Enter"&&q()};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:M=>O(M.target.value),onKeyDown:Q,placeholder:"Enter code to join"}),Z.jsx("button",{onClick:q,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})})}function x0({files:f,setFiles:i,dataChannels:c,dataChannelsRef:s,useFallback:v,socket:O,code:q,socketId:Q,localFilesRef:M,downloadStates:T,setDownloadStates:B,cancelDownload:W,cancelRequestsRef:ct,downloadCounts:Tt,handleDeleteFile:qt,SERVER_URL:Ut}){const Qt=rt.useRef(null),St=rt.useRef({}),oe=(C,ht=256)=>new Promise(dt=>{if(!C.type.startsWith("image/")){dt(null);return}const ut=new Image,nt=document.createElement("canvas"),le=nt.getContext("2d");ut.onload=()=>{const{width:Lt,height:_t}=ut,A=Math.min(ht/Lt,ht/_t,1);nt.width=Lt*A,nt.height=_t*A,le.drawImage(ut,0,0,nt.width,nt.height),nt.toBlob(H=>{dt(H)},"image/jpeg",.7)},ut.src=URL.createObjectURL(C)}),Ct=async()=>{const C=Qt.current.files;if(!C||C.length===0)return;const ht=Array.from(C).map(dt=>({name:dt.name,size:dt.size,peerId:Q,thumbnail:!!dt.type.startsWith("image/")}));if(v){const dt=new FormData;Array.from(C).forEach(ut=>dt.append("files",ut));try{if(!(await fetch(`${Ut}/api/upload/${q}`,{method:"POST",body:dt,headers:{"x-socket-id":Q}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",ht)}catch(ut){console.error("Error uploading files:",ut)}}else{const dt=await Promise.all(Array.from(C).map(async ut=>({name:ut.name,thumbnail:ut.type.startsWith("image/")?await oe(ut):null})));M.current={...M.current,...Object.fromEntries(Array.from(C).map(ut=>[ut.name,ut])),...Object.fromEntries(dt.filter(({thumbnail:ut})=>ut).map(({name:ut,thumbnail:nt})=>[`${ut}_thumbnail`,nt]))},dt.forEach(({name:ut,thumbnail:nt})=>{if(nt){const le=URL.createObjectURL(nt);St.current[ut]=le,console.log(`Cached thumbnail URL for ${ut}: ${le}`)}}),console.log("Stored files in localFilesRef:",Object.keys(M.current)),O.emit("file-list",{code:q,files:ht}),console.log("Shared file list:",ht)}i(dt=>[...dt,...ht]),Qt.current.value=""},ee=async C=>{if(ct.current.has(C.name)&&(ct.current.delete(C.name),console.log(`Cleared previous cancel for ${C.name}, starting new request to ${C.peerId}`)),T[C.name]?.status==="downloading"){W(C.name,C.peerId),console.log(`Canceling download for ${C.name}`);return}if(B(ht=>({...ht,[C.name]:{status:"downloading",progress:0,total:C.size,peerId:C.peerId}})),console.log(`Starting download for ${C.name}, downloadStates:`,{...T,[C.name]:{status:"downloading",progress:0}}),v){const ht=document.createElement("a");ht.href=`${Ut}/uploads/${C.path.split("/").pop()}`,ht.download=C.name,ht.click(),console.log(`Downloading file via server: ${C.name}`),B(dt=>({...dt,[C.name]:{status:"completed",progress:100}}))}else if(C.peerId===Q){const ht=M.current[C.name]||f.find(dt=>dt.name===C.name)?.file;if(ht){const dt=URL.createObjectURL(ht),ut=document.createElement("a");ut.href=dt,ut.download=C.name,ut.click(),URL.revokeObjectURL(dt),console.log(`Downloaded local file: ${C.name}`),B(nt=>({...nt,[C.name]:{status:"saved",progress:100}}))}else console.error(`Local file not found: ${C.name}`)}else c[C.peerId]?.readyState==="open"?(s.current[C.peerId].send(JSON.stringify({type:"request-file",fileName:C.name})),console.log(`Requested file ${C.name} from ${C.peerId}`)):console.error(`Data channel not open for peer ${C.peerId}`)},F=C=>{const ht=C.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"}`},ne=C=>C?C<1024?`${C} B`:C<1024*1024?`${(C/1024).toFixed(2)} KB`:C<1024*1024*1024?`${(C/(1024*1024)).toFixed(2)} MB`:`${(C/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",wt=C=>{if(!C.thumbnail)return console.log(`No thumbnail flag for ${C.name}`),null;if(St.current[C.name])return St.current[C.name];const ht=M.current[`${C.name}_thumbnail`];if(ht){const dt=URL.createObjectURL(ht);return St.current[C.name]=dt,console.log(`Generated and cached thumbnail URL for ${C.name}: ${dt}`),dt}return console.log(`No thumbnail available for ${C.name}`),null};return rt.useEffect(()=>()=>{Object.values(St.current).forEach(C=>{C&&URL.revokeObjectURL(C)}),St.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:Ct,className:"mb-2"}),Z.jsx("ul",{className:"space-y-2",children:f.map((C,ht)=>(T[C.name]?.status==="downloading"||T[C.name]?.status,Z.jsxs("li",{className:"flex items-center space-x-2",children:[C.thumbnail&&Z.jsx("img",{src:wt(C)||F(C.name),alt:`${C.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${C.name}, requesting...`)}})||Z.jsx("img",{src:F(C.name),alt:"file icon",className:"w-6 h-6",onError:dt=>dt.target.style.display="none"}),Z.jsxs("span",{children:["(",ne(C.size),")"]}),C.peerId!==Q&&Z.jsx("button",{onClick:()=>ee(C),className:`px-4 py-2 rounded ${T[C.name]?.status==="saved"?"bg-green-500 text-white":T[C.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:T[C.name]?.status==="saved"?"Saved ✓":T[C.name]?.status==="downloading"?`Cancel ${(T[C.name]?.progress||0).toFixed(2)}%`:"Download"}),C.peerId===Q&&Z.jsx(Z.Fragment,{children:Z.jsx("button",{onClick:()=>qt(C.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),Tt[C.name]>0&&Z.jsxs("span",{children:[Tt[C.name]," downloading"]}),Z.jsx("span",{children:C.name})]},ht)))})]})}function U0({textHistory:f,setTextHistory:i,dataChannels:c,useFallback:s,socket:v,code:O}){const[q,Q]=rt.useState(""),M=()=>{q.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:s,code:O}),!s&&Object.keys(c).length>0?(Object.keys(c).forEach(B=>{c[B].readyState==="open"&&(c[B].send(JSON.stringify({type:"text",text:q})),console.log(`Sent text to peer ${B}`))}),i(B=>[...B,q])):s&&v&&O&&(v.emit("text",{code:O,text:q}),console.log(`Sending text via socket for room ${O}: ${q}`),i(B=>[...B,q])),Q(""))},T=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),M())};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:q,onChange:B=>Q(B.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:M,children:"Send"}),Z.jsxs("div",{className:"mt-2",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((B,W)=>Z.jsx("li",{children:Z.jsx("pre",{children:B})},W)):Z.jsx("li",{children:Z.jsx("pre",{children:"No messages yet"})})})]})]})}const ed="",J=gi("/",{withCredentials:!0});function M0(){const[f,i]=rt.useState(!0),[c,s]=rt.useState(""),[v,O]=rt.useState(!1),[q,Q]=rt.useState(!1),[M,T]=rt.useState(!1),[B,W]=rt.useState(!1),[ct,Tt]=rt.useState(600),[qt,Ut]=rt.useState([]),[Qt,St]=rt.useState(""),[oe,Ct]=rt.useState({}),[ee,F]=rt.useState([]),[ne,wt]=rt.useState({}),[C,ht]=rt.useState([]),[dt,ut]=rt.useState({}),nt=rt.useRef({}),le=rt.useRef([]),Lt=rt.useRef({}),_t=rt.useRef(new Set),A=rt.useRef({}),H=rt.useRef(new Set),Y=rt.useRef({}),I=rt.useRef({}),y=rt.useRef({}),z=rt.useRef({}),L=rt.useRef(0),w=rt.useRef({}),$=rt.useRef({}),gt=window.location.protocol,lt=window.location.hostname||"localhost",ce=(c||"").replace(/ /g,"_"),Mt=`${gt}//${lt}/room/${ce||""}`,je=async d=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const U=d==="link"?Mt:ce;await navigator.clipboard.writeText(U),O(d),setTimeout(()=>O(null),2e3)}catch(U){console.error(`Failed to copy ${d}:`,U)}},$l=async()=>{try{const d=await fetch(`${ed}/api/generate-code`,{method:"GET",credentials:"include"}),{code:U,error:j}=await d.json();if(j){St(j);return}s(U),Q(!0),St(""),W(!1),J.emit("create",U)}catch(d){console.error("Error generating code:",d),St("Failed to generate room code")}},wn=d=>{if(!d){St("Please enter a room code");return}const U=d.replace(/_/g," ");s(U),St(""),W(!1),J.emit("join",U)},Kl=()=>{J.emit("leave",c),Hn(),window.history.pushState({},"","/")},Hn=()=>{s(""),Q(!1),T(!1),W(!1),Tt(600),F([]),Ut([]),St(""),Ct({}),ht([]),ut({}),nt.current={},Object.values(Y.current).forEach(d=>{d.onicecandidate=null,d.oniceconnectionstatechange=null,d.onicecandidateerror=null,d.ondatachannel=null,d.onnegotiationneeded=null,d.close()}),Y.current={},I.current={},y.current={},Object.keys(z.current).forEach(d=>clearTimeout(z.current[d])),z.current={},Lt.current={},_t.current=new Set,A.current={},H.current=new Set,w.current={},$.current={}},jn=(d,U,j=!1)=>{if(!d||d===J.id||d==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${d}`);return}if(B){console.log(`Skipping WebRTC setup for ${d} due to fallback mode`);return}if(Y.current[d]){console.log(`WebRTC connection already exists for ${d}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${d} (${j?"offerer":"answerer"}, attempt ${Lt.current[d]||1}/3)`);const g=new RTCPeerConnection({iceServers:[{urls:"turn:twily.info:5349",username:"ana",credential:"butt"},{urls:"stun:stun.l.google.com:19302"}]});Lt.current[d]=(Lt.current[d]||0)+1,Y.current[d]=g,g.ondatachannel=X=>{const V=X.channel;V.label==="file-share"?(I.current[d]=V,V.onopen=()=>{console.log(`Main DataChannel opened with peer ${d}`),T(!0),Tt(0),Object.keys(z.current).forEach(at=>{console.log(`Clearing timeout for ${at}`),clearTimeout(z.current[at])}),z.current={},Lt.current[d]=0,I.current.true&&delete I.current.true,Ct({...I.current});const At=le.current.map(at=>({name:at.name,size:at.size,peerId:at.peerId,thumbnail:!!nt.current[`${at.name}_thumbnail`]}));V.send(JSON.stringify({type:"file-list",files:At})),At.forEach(at=>{const Yt=`${at.name}:${at.peerId}`;at.thumbnail&&at.peerId!==J.id&&!nt.current[`${at.name}_thumbnail`]&&!H.current.has(Yt)&&Ln(at)}),q&&setTimeout(()=>{V.readyState==="open"?(V.send(JSON.stringify({type:"text-history",history:qt})),console.log(`Sent text-history to ${d}:`,qt)):console.warn(`Main channel not open for ${d}, skipping text-history send`)},1e3)},V.onmessage=At=>Yn(d,At),V.onclose=()=>{console.log(`Main DataChannel closed with peer ${d}`),delete Y.current[d],Ct({...I.current})},V.onerror=At=>{console.error(`Main DataChannel error with ${d}:`,At)}):V.label==="binary-transfer"&&(V.binaryType="arraybuffer",y.current[d]=V,V.onmessage=At=>Fa(d,At),V.onclose=()=>{console.log(`Binary channel closed with peer ${d}`)},V.onerror=At=>{console.error(`Binary channel error with ${d}:`,At)})};let D=null,K=null;return j&&(D=g.createDataChannel("file-share"),I.current[d]=D,D.onopen=()=>{console.log(`Main DataChannel opened with peer ${d} (joiner)`),T(!0),Tt(0),Object.keys(z.current).forEach(V=>{console.log(`Clearing timeout for ${V}`),clearTimeout(z.current[V])}),z.current={},Lt.current[d]=0,I.current.true&&delete I.current.true,Ct({...I.current});const X=le.current.map(V=>({name:V.name,size:V.size,peerId:V.peerId,thumbnail:!!nt.current[`${V.name}_thumbnail`]}));D.send(JSON.stringify({type:"file-list",files:X})),X.forEach(V=>{const At=`${V.name}:${V.peerId}`;V.thumbnail&&V.peerId!==J.id&&!nt.current[`${V.name}_thumbnail`]&&!H.current.has(At)&&Ln(V)}),q&&setTimeout(()=>{D.readyState==="open"?(D.send(JSON.stringify({type:"text-history",history:qt})),console.log(`Sent text-history to ${d}:`,qt)):console.warn(`Main channel not open for ${d}, skipping text-history send`)},1e3)},D.onmessage=X=>Yn(d,X),D.onclose=()=>{console.log(`Main DataChannel closed with peer ${d}`),delete Y.current[d],Ct({...I.current})},D.onerror=X=>{console.error(`Main DataChannel error with ${d}:`,X)},K=g.createDataChannel("binary-transfer"),K.binaryType="arraybuffer",y.current[d]=K,K.onmessage=X=>Fa(d,X),K.onclose=()=>{console.log(`Binary channel closed with peer ${d}`)},K.onerror=X=>{console.error(`Binary channel error with ${d}:`,X)}),g.onicecandidate=X=>{X.candidate&&U&&(J.emit("ice-candidate",{code:U,candidate:X.candidate,to:d,from:J.id}),console.log(`Sent ICE candidate to ${d} from ${J.id}: ${X.candidate.candidate}`))},g.onicecandidateerror=X=>{console.error(`ICE candidate error for ${d}:`,X)},g.oniceconnectionstatechange=()=>{console.log(`ICE state with ${d} (${q?"creator":"joiner"}): ${g.iceConnectionState}`),typeof Lt.current[d]<"u"?g.iceConnectionState==="failed"||g.iceConnectionState==="disconnected"?(console.log(`WebRTC ${g.iceConnectionState} with ${d}, retrying in 5s (attempt ${Lt.current[d]}/3)`),setTimeout(()=>{g.iceConnectionState!=="connected"&&!B&&Lt.current[d]<3?jn(d,U,j):g.iceConnectionState!=="connected"&&!B&&(console.log(`Max retries reached for ${d}, switching to fallback`),W(!0),St("WebRTC connection failed after retries, using server fallback"),Tt(0),F([]),Ut([]),q&&J.emit("fallback",{code:U}))},5e3)):g.iceConnectionState==="connected"&&(T(!0),W(!1),St(""),clearTimeout(z.current[d]),Lt.current[d]=0):(console.log(`err: peerId ${d} not found in retryCountsRef`),W(!1))},g.onnegotiationneeded=async()=>{try{const X=await g.createOffer();await g.setLocalDescription(X),J.emit("offer",{code:U,offer:g.localDescription,to:d,from:J.id}),console.log(`Sent renegotiation offer to ${d} for room ${U}`)}catch(X){console.error(`Negotiation needed error for ${d}:`,X)}},j&&g.createOffer().then(X=>{g.setLocalDescription(X),J.emit("offer",{code:U,offer:X,to:d,from:J.id}),console.log(`Sent offer to ${d} for room ${U}`)}).catch(X=>{console.error(`Error creating offer for ${d}:`,X),St("Failed to create WebRTC offer"),W(!0),Tt(0),F([]),Ut([]),q&&J.emit("fallback",{code:U})}),()=>clearTimeout(z.current[d])};rt.useEffect(()=>(J.on("peer-joined",d=>{if(!d||!d.peerId||d.peerId==="true"){console.error("Invalid peer-joined data:",d);return}const{peerId:U}=d;console.log(`Peer ${U} joined room ${c}`),jn(U,c,!0)}),J.on("offer",async({code:d,offer:U,to:j,from:g})=>{if(j!==J.id||B||d!==c){console.log(`Ignoring offer from ${g} (to=${j}, socket.id=${J.id}, useFallback=${B}, code mismatch: ${d} vs ${c})`);return}console.log(`Received offer from ${g} for room ${d}`),Y.current[g]||(console.log(`No existing connection for ${g}, setting up as answerer`),jn(g,d,!1));try{const D=Y.current[g];await D.setRemoteDescription(new RTCSessionDescription(U));const K=await D.createAnswer();await D.setLocalDescription(K),J.emit("answer",{code:d,answer:K,to:g,from:J.id}),console.log(`Sent answer to ${g} from ${J.id} for room ${d}`)}catch(D){console.error(`Error handling offer from ${g}:`,D),St("Failed to process WebRTC offer"),W(!0),Tt(0),F([]),Ut([]),q&&J.emit("fallback",{code:d})}}),J.on("answer",async({code:d,answer:U,to:j,from:g})=>{if(j!==J.id||B||d!==c){console.log(`Ignoring answer from ${g} (to=${j}, socket.id=${J.id}, useFallback=${B}, code mismatch: ${d} vs ${c})`);return}if(console.log(`Received answer from ${g} for room ${d}`),Y.current[g])try{await Y.current[g].setRemoteDescription(new RTCSessionDescription(U)),console.log(`Successfully set remote description for answer from ${g}`)}catch(D){console.error(`Error handling answer from ${g}:`,D),St("Failed to process WebRTC answer"),W(!0),Tt(0),F([]),Ut([]),q&&J.emit("fallback",{code:d})}else console.warn(`No peer connection found for ${g} when receiving answer`)}),J.on("room-status",({useFallback:d,textHistory:U,files:j})=>{d&&(console.log(`Received room-status: useFallback=${d}, textHistory=`,U),W(d),Ut(U||[]),F(j||[]),T(!0),Tt(0),St("Room is in fallback mode"))}),J.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),W(!0),St("Room switched to fallback mode"),Tt(0),F([]),Ut([]),Object.values(Y.current).forEach(d=>d.close()),Y.current={},I.current={},y.current={},Object.keys(z.current).forEach(d=>clearTimeout(z.current[d])),z.current={},Lt.current={},H.current=new Set}),J.on("peer-left",d=>{const{peerId:U}=d;if(Y.current[U]){Y.current[U].close(),delete Y.current[U],delete I.current[U],delete y.current[U],delete z.current[U],Object.keys(w.current).forEach(g=>{w.current[g].peerId===U&&(delete w.current[g],H.current.delete(`${w.current[g]?.fileName}:${U}`))}),Ct({...I.current}),console.log(`Peer ${U} left room`),F(g=>{const D=g.filter(K=>K.peerId!==U);return Object.values(I.current).forEach(K=>{K.readyState==="open"&&K.send(JSON.stringify({type:"file-list",files:D.map(X=>({name:X.name,size:X.size,peerId:X.peerId,thumbnail:!!nt.current[`${X.name}_thumbnail`]}))}))}),D});let j=!1;Object.keys($.current).forEach(g=>{$.current[g].delete(U)&&(j=!0,kl(g,$.current[g].size))}),j&&ut(g=>({...g}))}q&&Object.keys(Y.current).length===0&&(T(!1),B?(W(!1),St("")):Tt(600))}),J.on("ice-candidate",async({code:d,candidate:U,from:j,to:g})=>{if(g!==J.id||d!==c){console.log(`Ignoring ICE candidate from ${j} (to=${g}, code mismatch: ${d} vs ${c})`);return}if(console.log(`Received ICE candidate from ${j}`),Y.current[j])try{await Y.current[j].addIceCandidate(new RTCIceCandidate(U)),console.log(`Added ICE candidate from ${j}`)}catch(D){console.error(`Error adding ICE candidate from ${j}:`,D)}else console.warn(`No peer connection found for ${j} when receiving ICE candidate`)}),J.on("error",d=>{St(d),Hn(),console.log("Server error:",d),(d.includes("Invalid code")||d.includes("room not found"))&&window.history.pushState({},"","/")}),J.on("files",d=>{console.log("Received files:",d),F(d)}),J.on("text",({text:d})=>{console.log(`Received text via socket for room ${c}:`,d),Ut(U=>[...U,d])}),J.on("file-list",({files:d})=>{F(U=>{const j=d.filter(g=>!U.some(D=>D.name===g.name&&D.peerId===g.peerId));return j.forEach(g=>{const D=`${g.name}:${g.peerId}`;g.thumbnail&&!nt.current[`${g.name}_thumbnail`]&&!H.current.has(D)?(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:",d),[...U,...j]})}),()=>{J.off("peer-joined"),J.off("offer"),J.off("answer"),J.off("room-status"),J.off("fallback"),J.off("peer-left"),J.off("ice-candidate"),J.off("error"),J.off("files"),J.off("text"),J.off("file-list")}),[c,q,B]),rt.useEffect(()=>{if(q&&ct>0&&!M&&!B){const d=setInterval(()=>{Tt(U=>U<=1?(Hn(),St("No one joined the room"),0):U-1)},1e3);return()=>clearInterval(d)}},[q,ct,M,B,c]),rt.useEffect(()=>{le.current=ee,console.log("Updated filesRef:",le.current)},[ee]),rt.useEffect(()=>{const d=Object.keys(Y.current);ht([J.id,...d].sort())},[oe]),rt.useEffect(()=>{if(!c){const d=window.location.pathname;if(d.startsWith("/room/")){const U=d.slice(6).replace(/_/g," ");wn(U)}}},[]),rt.useEffect(()=>{const d=window.location.pathname;i(!d.startsWith("/app/"))},[]);const Ln=d=>{const U=`${d.name}:${d.peerId}`;if(d.thumbnail&&d.peerId!==J.id&&!B){const j=(A.current[d.name]||0)+1;if(j>3){console.error(`Max retries reached for thumbnail ${d.name} from ${d.peerId}`);return}if(H.current.has(U)){console.log(`Thumbnail request for ${d.name} from ${d.peerId} already in progress, skipping`);return}const g=I.current[d.peerId];g?.readyState==="open"?(A.current[d.name]=j,H.current.add(U),g.send(JSON.stringify({type:"request-thumbnail",fileName:d.name})),console.log(`Requested thumbnail for ${d.name} from ${d.peerId} via WebRTC (retry ${j})`)):(console.warn(`Data channel not ready for ${d.peerId}, retrying in 1s`),setTimeout(()=>{H.current.has(U)||Ln(d)},1e3))}else console.error(`Cannot request thumbnail for ${d.name}:`,{isThumbnail:d.thumbnail,isLocal:d.peerId===J.id,useFallback:B,channelOpen:I.current[d.peerId]?.readyState})},bi=async(d,U,j,g)=>{const D=y.current[d];if(!D||D.readyState!=="open"){console.error(`Binary channel not open for ${d}`);return}if(g.size>100*1024){console.warn(`Thumbnail ${j} size ${g.size} exceeds 100KB limit, skipping`);return}const K=L.current++;console.log(`Sending ${U} ${j} to ${d}, size: ${g.size}`),D.send(JSON.stringify({type:"start",transferId:K,kind:U,fileName:j,size:g.size}));const X=new FileReader;X.onload=()=>{const V=X.result,At=new TextEncoder().encode(j),at=8+At.length,Yt=new ArrayBuffer(at+V.byteLength),ft=new DataView(Yt);ft.setUint32(0,K),ft.setUint32(4,At.length),new Uint8Array(Yt).set(At,8),new Uint8Array(Yt).set(new Uint8Array(V),at),D.send(Yt),D.send(JSON.stringify({type:"end",transferId:K}))},X.onerror=V=>{console.error(`Error reading ${U} ${j} for ${d}:`,V)},X.readAsArrayBuffer(g)},Oe=async(d,U,j)=>{if(!U){console.error(`No fileName provided for sendFileChunked to ${d}`);return}const g=y.current[d];if(!g||g.readyState!=="open"){console.error(`Binary channel not open for ${d}`);return}_t.current.has(U)&&(_t.current.delete(U),console.log(`Cleared previous cancel for ${U}, starting new send to ${d}`));const D=L.current++;console.log(`Sending start message for file ${U} to ${d}, transferId: ${D}, size: ${j.size}`),g.send(JSON.stringify({type:"start",transferId:D,kind:"file",fileName:U,size:j.size}));const K=8*1024*1024,X=4*1024*1024;g.bufferedAmountLowThreshold=X;let V;g.onbufferedamountlow=()=>{V&&(V(),V=null)};const At=()=>g.bufferedAmount<=K?Promise.resolve():new Promise(ft=>{V=ft});await At();const at=16384;let Yt=0;for(console.log(`--- offset : ${Yt} --- file.size : ${j.size}`);Yt<j.size;){if(_t.current.has(U)){console.log(`Canceled sending ${U} to ${d}`),g.send(JSON.stringify({type:"cancel",transferId:D}));return}const ft=j.slice(Yt,Yt+at);if(console.log(`--- slice.size : ${ft.size}`),ft.size===0)break;try{const Re=await new Promise((Wl,Gn)=>{const Fl=new FileReader;Fl.onload=tu=>Wl(tu.target.result),Fl.onerror=Gn,Fl.readAsArrayBuffer(ft)});if(_t.current.has(U)){console.log(`Canceled sending ${U} to ${d} during read`),g.send(JSON.stringify({type:"cancel",transferId:D}));return}const ze=new TextEncoder().encode(U),Ia=8+ze.length,Xn=new ArrayBuffer(Ia+Re.byteLength),Jl=new DataView(Xn);Jl.setUint32(0,D),Jl.setUint32(4,ze.length),new Uint8Array(Xn).set(ze,8),new Uint8Array(Xn).set(new Uint8Array(Re),Ia),g.send(Xn),await At(),Yt+=Re.byteLength}catch(Re){console.error(`Error reading ${U}:`,Re),g.send(JSON.stringify({type:"cancel",transferId:D}));return}}g.send(JSON.stringify({type:"end",transferId:D})),_t.current.delete(U),console.log(`Finished sending ${U} to ${d}`)},Si=(d,U)=>{if(!_t.current.has(d)){_t.current.add(d);const j=I.current[U];j&&j.readyState==="open"&&(j.send(JSON.stringify({type:"end-download",fileName:d})),j.send(JSON.stringify({type:"cancel-download",fileName:d})),console.log(`Sent end-download and cancel-download for ${d} to ${U}`)),wt(g=>{const D=g[d]?.status==="saved",{[d]:K,...X}=g;return D?{...X,[d]:{status:"saved",progress:100,peerId:U}}:X}),Object.keys(w.current).forEach(g=>{const D=w.current[g];D.fileName===d&&D.peerId===U&&(delete w.current[g],H.current.delete(`${d}:${U}`))}),console.log(`Canceled download for ${d} locally`)}},Wa=d=>{F(U=>U.filter(j=>j.name!==d)),delete nt.current[d],delete nt.current[`${d}_thumbnail`],Object.values(I.current).forEach(U=>{U.readyState==="open"&&U.send(JSON.stringify({type:"remove-file",fileName:d}))}),console.log(`Deleted file ${d} and notified peers`)},kl=(d,U)=>{Object.values(I.current).forEach(j=>{j.readyState==="open"&&j.send(JSON.stringify({type:"update-count",fileName:d,count:U}))})},Yn=(d,U)=>{const j=U.data;try{if(typeof j=="string"){const g=JSON.parse(j);if(g.type==="text")Ut(D=>[...D,g.text]),console.log(`Received text via WebRTC from ${d}: ${g.text}`);else if(g.type==="text-history")console.log(`Received text-history from ${d}:`,g.history,"Current textHistory:",qt),Array.isArray(g.history)?Ut(g.history):console.warn(`Invalid text-history format from ${d}:`,g.history);else if(g.type==="request-file"){const D=nt.current[g.fileName];D?(console.log(`Handling request-file for ${g.fileName} from ${d}`),Oe(d,g.fileName,D)):console.error(`File not found: ${g.fileName}`)}else if(g.type==="request-thumbnail"){const D=nt.current[`${g.fileName}_thumbnail`];D?(console.log(`Handling request-thumbnail for ${g.fileName} from ${d}`),bi(d,"thumbnail",g.fileName,D)):console.error(`Thumbnail not found for ${g.fileName}`)}else g.type==="end-download"?Pa(d,g.fileName,"end"):g.type==="remove-file"?(F(D=>D.filter(K=>K.name!==g.fileName)),console.log(`Removed file ${g.fileName} from list`)):g.type==="update-count"?ut(D=>({...D,[g.fileName]:g.count})):g.type==="file-list"&&F(D=>{const K=g.files.filter(X=>!D.some(V=>V.name===X.name&&V.peerId===X.peerId));return K.forEach(X=>{const V=`${X.name}:${X.peerId}`;X.thumbnail&&!nt.current[`${X.name}_thumbnail`]&&!H.current.has(V)?(console.log(`Requesting thumbnail for ${X.name} from ${X.peerId}`),Ln(X)):X.thumbnail&&console.log(`Thumbnail for ${X.name} already cached or requested, skipping request`)}),console.log("Received file-list from server:",g.files),[...D,...K]})}else console.warn(`Unexpected non-string message on main channel from ${d}`),console.log(j)}catch(g){console.error(`Error processing message from ${d}:`,g)}},Fa=(d,U)=>{const j=U.data;if(typeof j=="string")try{const g=JSON.parse(j);if(g.type==="start"){if(g.transferId===void 0||g.transferId===null||!g.fileName||!g.kind||!g.size){console.error(`Invalid start message from ${d}:`,g);return}if(w.current[g.transferId]){console.warn(`TransferId ${g.transferId} already exists for ${d}, ignoring new start for ${g.fileName}`);return}w.current[g.transferId]={kind:g.kind,fileName:g.fileName,chunks:[],expectedSize:g.size,received:0,peerId:d},console.log(`Started ${g.kind} transfer ${g.transferId} for ${g.fileName} from ${d}, expected size: ${g.size}`),g.kind==="file"&&wt(D=>({...D,[g.fileName]:{status:"downloading",progress:0,total:g.size,received:0,peerId:d}}))}else if(g.type==="end"){const D=w.current[g.transferId];if(!D){console.warn(`No state for transferId ${g.transferId} from ${d}`);return}if(D.received>=D.expectedSize){const K=new Blob(D.chunks,{type:D.kind==="thumbnail"?"image/jpeg":"application/octet-stream"});if(console.log(`Assembled ${D.kind} ${D.fileName}, size: ${K.size}`),D.kind==="thumbnail")nt.current[`${D.fileName}_thumbnail`]=K,console.log(`Received thumbnail for ${D.fileName} from ${d}, size: ${K.size}`),F(X=>X.map(V=>V.name===D.fileName&&V.peerId!==J.id?{...V,thumbnail:!0}:V)),H.current.delete(`${D.fileName}:${d}`);else if(D.kind==="file"){nt.current[D.fileName]=K;const X=URL.createObjectURL(K),V=document.createElement("a");V.href=X,V.download=D.fileName,V.click(),URL.revokeObjectURL(X),wt(at=>({...at,[D.fileName]:{status:"saved",progress:100,peerId:d}}));const At=I.current[d];At&&At.readyState==="open"&&At.send(JSON.stringify({type:"end-download",fileName:D.fileName}))}}else console.warn(`Size mismatch for ${D.kind} ${D.fileName}: received ${D.received}, expected ${D.expectedSize}`),D.kind==="file"&&wt(K=>({...K,[D.fileName]:{status:"error",progress:D.received/D.expectedSize*100}})),H.current.delete(`${D.fileName}:${d}`);delete w.current[g.transferId]}else if(g.type==="cancel"){const D=w.current[g.transferId];D&&D.kind==="file"&&wt(K=>({...K,[D.fileName]:{status:"canceled",progress:0}})),H.current.delete(`${D.fileName}:${d}`),delete w.current[g.transferId]}}catch(g){console.error(`Error processing binary control message from ${d}:`,g)}else if(j instanceof ArrayBuffer){if(j.byteLength<8){console.warn(`Invalid binary message size from ${d}: ${j.byteLength} bytes`);return}const g=new DataView(j),D=g.getUint32(0),K=g.getUint32(4);if(j.byteLength<8+K){console.warn(`Invalid binary message: insufficient length for fileName from ${d}`);return}const X=new Uint8Array(j,8,K),V=new TextDecoder().decode(X),At=j.slice(8+K),at=w.current[D];if(at&&at.fileName===V){if(_t.current.has(at.fileName)){console.log(`Ignoring chunk for canceled ${at.kind} ${at.fileName}`);return}if(at.chunks.push(At),at.received+=At.byteLength,at.kind==="file"){const Yt=Math.min(100,at.received/at.expectedSize*100);wt(ft=>({...ft,[at.fileName]:{...ft[at.fileName],progress:Yt,received:at.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${D} from ${d}: expected ${at?.fileName}, got ${V}`)}else if(j instanceof Blob){console.log(`Received Blob message from ${d}, size: ${j.size}`),console.dir(j);const g=new FileReader;g.onload=()=>{const D=g.result;if(D.byteLength<4){console.warn(`Invalid Blob-converted ArrayBuffer size from ${d}: ${D.byteLength} bytes`);return}const K=new DataView(D),X=K.getUint32(0),V=K.getUint32(4);if(D.byteLength<8+V){console.warn(`Invalid Blob-converted ArrayBuffer: insufficient length for fileName from ${d}`);return}const At=new Uint8Array(D,8,V),at=new TextDecoder().decode(At),Yt=D.slice(8+V),ft=w.current[X];if(ft&&ft.fileName===at){if(_t.current.has(ft.fileName)){console.log(`Ignoring chunk for canceled ${ft.kind} ${ft.fileName}`);return}if(ft.chunks.push(Yt),ft.received+=Yt.byteLength,console.log(`Received Blob chunk for ${ft.kind} ${ft.fileName}, transferId ${X}: ${ft.received}/${ft.expectedSize}`),ft.kind==="file"){const Re=Math.min(100,ft.received/ft.expectedSize*100);wt(ze=>({...ze,[ft.fileName]:{...ze[ft.fileName],progress:Re,received:ft.received}}))}}else console.warn(`No state or fileName mismatch for transferId ${X} from ${d}: expected ${ft?.fileName}, got ${at}`)},g.onerror=D=>{console.error(`Error reading Blob from ${d}:`,D)},g.readAsArrayBuffer(j)}else console.warn(`Unexpected message type from ${d}:`,typeof j),console.log(j)},Pa=(d,U,j)=>{if(nt.current[U]){$.current[U]=$.current[U]||new Set,$.current[U].delete(d);const g=$.current[U].size;kl(U,g)}};return Z.jsxs("div",{className:"container mx-auto left",children:[Z.jsxs(Z.Fragment,{children:[c&&Z.jsx(Z.Fragment,{children:q&&ct>0&&!M&&Z.jsxs("p",{children:["Waiting for peer(s) to connect [WebRTC]... ",ct,"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(D0,{code:c,isConnected:M,onCreateRoom:$l,onJoinRoom:wn})]}),c&&Z.jsxs(Z.Fragment,{children:[Z.jsxs("p",{className:"text-lg",children:[gt,"//",lt,"/room/",Z.jsx("strong",{children:c||"N/A"})]}),Z.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:Kl,children:q?"Close Room":"Leave Room"}),"☻",Z.jsx("button",{onClick:()=>je("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:()=>je("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.jsx("h2",{className:"text-xl font-bold text-right",children:"Connected Users:"}),Z.jsx("ul",{children:C.filter(d=>d!=null).map((d,U)=>Z.jsxs("li",{children:[J.id&&d===J.id?"(You)":""," ",d]},d||`user-${U}`))})]}),Z.jsx(U0,{textHistory:qt,setTextHistory:Ut,dataChannels:oe,useFallback:B,socket:J,code:c}),Z.jsx(x0,{files:ee,setFiles:F,dataChannels:oe,dataChannelsRef:I,useFallback:B,socket:J,code:c,socketId:J.id,localFilesRef:nt,downloadStates:ne,setDownloadStates:wt,cancelDownload:Si,cancelRequestsRef:_t,downloadCounts:dt,handleDeleteFile:Wa,SERVER_URL:ed}),B&&Z.jsx("p",{className:"text-red-500",children:"Using server fallback"})]}),!c&&f&&Z.jsx("a",{href:"/apk/",download:!0,id:"apk",children:Z.jsx("button",{children:"Download APK"})})]})}qm.createRoot(document.getElementById("root")).render(Z.jsx(rt.StrictMode,{children:Z.jsx(M0,{})}));
