(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function l(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=l(n);fetch(n.href,u)}})();var gs={exports:{}},pi={};/**
 * @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 rm=Symbol.for("react.transitional.element"),om=Symbol.for("react.fragment");function bs(e,t,l){var a=null;if(l!==void 0&&(a=""+l),t.key!==void 0&&(a=""+t.key),"key"in t){l={};for(var n in t)n!=="key"&&(l[n]=t[n])}else l=t;return t=l.ref,{$$typeof:rm,type:e,key:a,ref:t!==void 0?t:null,props:l}}pi.Fragment=om;pi.jsx=bs;pi.jsxs=bs;gs.exports=pi;var g=gs.exports,ys={exports:{}},W={};/**
 * @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 Tf=Symbol.for("react.transitional.element"),sm=Symbol.for("react.portal"),dm=Symbol.for("react.fragment"),pm=Symbol.for("react.strict_mode"),vm=Symbol.for("react.profiler"),mm=Symbol.for("react.consumer"),hm=Symbol.for("react.context"),gm=Symbol.for("react.forward_ref"),bm=Symbol.for("react.suspense"),ym=Symbol.for("react.memo"),_s=Symbol.for("react.lazy"),_m=Symbol.for("react.activity"),Xr=Symbol.iterator;function Sm(e){return e===null||typeof e!="object"?null:(e=Xr&&e[Xr]||e["@@iterator"],typeof e=="function"?e:null)}var Ss={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},As=Object.assign,Es={};function Qa(e,t,l){this.props=e,this.context=t,this.refs=Es,this.updater=l||Ss}Qa.prototype.isReactComponent={};Qa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Qa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ts(){}Ts.prototype=Qa.prototype;function zf(e,t,l){this.props=e,this.context=t,this.refs=Es,this.updater=l||Ss}var Of=zf.prototype=new Ts;Of.constructor=zf;As(Of,Qa.prototype);Of.isPureReactComponent=!0;var Lr=Array.isArray;function xc(){}var ge={H:null,A:null,T:null,S:null},zs=Object.prototype.hasOwnProperty;function xf(e,t,l){var a=l.ref;return{$$typeof:Tf,type:e,key:t,ref:a!==void 0?a:null,props:l}}function Am(e,t){return xf(e.type,t,e.props)}function Mf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Tf}function Em(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var Zr=/\/+/g;function Zi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Em(""+e.key):t.toString(36)}function Tm(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(xc,xc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function fa(e,t,l,a,n){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Tf:case sm:i=!0;break;case _s:return i=e._init,fa(i(e._payload),t,l,a,n)}}if(i)return n=n(e),i=a===""?"."+Zi(e,0):a,Lr(n)?(l="",i!=null&&(l=i.replace(Zr,"$&/")+"/"),fa(n,t,l,"",function(p){return p})):n!=null&&(Mf(n)&&(n=Am(n,l+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(Zr,"$&/")+"/")+i)),t.push(n)),1;i=0;var c=a===""?".":a+":";if(Lr(e))for(var s=0;s<e.length;s++)a=e[s],u=c+Zi(a,s),i+=fa(a,t,l,u,n);else if(s=Sm(e),typeof s=="function")for(e=s.call(e),s=0;!(a=e.next()).done;)a=a.value,u=c+Zi(a,s++),i+=fa(a,t,l,u,n);else if(u==="object"){if(typeof e.then=="function")return fa(Tm(e),t,l,a,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function cu(e,t,l){if(e==null)return e;var a=[],n=0;return fa(e,a,"","",function(u){return t.call(l,u,n++)}),a}function zm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Vr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Om={map:cu,forEach:function(e,t,l){cu(e,function(){t.apply(this,arguments)},l)},count:function(e){var t=0;return cu(e,function(){t++}),t},toArray:function(e){return cu(e,function(t){return t})||[]},only:function(e){if(!Mf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Activity=_m;W.Children=Om;W.Component=Qa;W.Fragment=dm;W.Profiler=vm;W.PureComponent=zf;W.StrictMode=pm;W.Suspense=bm;W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ge;W.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ge.H.useMemoCache(e)}};W.cache=function(e){return function(){return e.apply(null,arguments)}};W.cacheSignal=function(){return null};W.cloneElement=function(e,t,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=As({},e.props),n=e.key;if(t!=null)for(u in t.key!==void 0&&(n=""+t.key),t)!zs.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(a[u]=t[u]);var u=arguments.length-2;if(u===1)a.children=l;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];a.children=i}return xf(e.type,n,a)};W.createContext=function(e){return e={$$typeof:hm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:mm,_context:e},e};W.createElement=function(e,t,l){var a,n={},u=null;if(t!=null)for(a in t.key!==void 0&&(u=""+t.key),t)zs.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=t[a]);var i=arguments.length-2;if(i===1)n.children=l;else if(1<i){for(var c=Array(i),s=0;s<i;s++)c[s]=arguments[s+2];n.children=c}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return xf(e,u,n)};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:gm,render:e}};W.isValidElement=Mf;W.lazy=function(e){return{$$typeof:_s,_payload:{_status:-1,_result:e},_init:zm}};W.memo=function(e,t){return{$$typeof:ym,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=ge.T,l={};ge.T=l;try{var a=e(),n=ge.S;n!==null&&n(l,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(xc,Vr)}catch(u){Vr(u)}finally{t!==null&&l.types!==null&&(t.types=l.types),ge.T=t}};W.unstable_useCacheRefresh=function(){return ge.H.useCacheRefresh()};W.use=function(e){return ge.H.use(e)};W.useActionState=function(e,t,l){return ge.H.useActionState(e,t,l)};W.useCallback=function(e,t){return ge.H.useCallback(e,t)};W.useContext=function(e){return ge.H.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e,t){return ge.H.useDeferredValue(e,t)};W.useEffect=function(e,t){return ge.H.useEffect(e,t)};W.useEffectEvent=function(e){return ge.H.useEffectEvent(e)};W.useId=function(){return ge.H.useId()};W.useImperativeHandle=function(e,t,l){return ge.H.useImperativeHandle(e,t,l)};W.useInsertionEffect=function(e,t){return ge.H.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return ge.H.useLayoutEffect(e,t)};W.useMemo=function(e,t){return ge.H.useMemo(e,t)};W.useOptimistic=function(e,t){return ge.H.useOptimistic(e,t)};W.useReducer=function(e,t,l){return ge.H.useReducer(e,t,l)};W.useRef=function(e){return ge.H.useRef(e)};W.useState=function(e){return ge.H.useState(e)};W.useSyncExternalStore=function(e,t,l){return ge.H.useSyncExternalStore(e,t,l)};W.useTransition=function(){return ge.H.useTransition()};W.version="19.2.7";ys.exports=W;var Je=ys.exports,Os={exports:{}},vi={},xs={exports:{}},Ms={};/**
 * @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.
 */(function(e){function t(U,$){var k=U.length;U.push($);e:for(;0<k;){var ue=k-1>>>1,q=U[ue];if(0<n(q,$))U[ue]=$,U[k]=q,k=ue;else break e}}function l(U){return U.length===0?null:U[0]}function a(U){if(U.length===0)return null;var $=U[0],k=U.pop();if(k!==$){U[0]=k;e:for(var ue=0,q=U.length,Ht=q>>>1;ue<Ht;){var Dt=2*(ue+1)-1,Qe=U[Dt],st=Dt+1,Dl=U[st];if(0>n(Qe,k))st<q&&0>n(Dl,Qe)?(U[ue]=Dl,U[st]=k,ue=st):(U[ue]=Qe,U[Dt]=k,ue=Dt);else if(st<q&&0>n(Dl,k))U[ue]=Dl,U[st]=k,ue=st;else break e}}return $}function n(U,$){var k=U.sortIndex-$.sortIndex;return k!==0?k:U.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var s=[],p=[],S=1,A=null,h=3,y=!1,O=!1,N=!1,Z=!1,m=typeof setTimeout=="function"?setTimeout:null,o=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function b(U){for(var $=l(p);$!==null;){if($.callback===null)a(p);else if($.startTime<=U)a(p),$.sortIndex=$.expirationTime,t(s,$);else break;$=l(p)}}function x(U){if(N=!1,b(U),!O)if(l(s)!==null)O=!0,G||(G=!0,Et());else{var $=l(p);$!==null&&ka(x,$.startTime-U)}}var G=!1,M=-1,E=5,Q=-1;function V(){return Z?!0:!(e.unstable_now()-Q<E)}function Ve(){if(Z=!1,G){var U=e.unstable_now();Q=U;var $=!0;try{e:{O=!1,N&&(N=!1,o(M),M=-1),y=!0;var k=h;try{t:{for(b(U),A=l(s);A!==null&&!(A.expirationTime>U&&V());){var ue=A.callback;if(typeof ue=="function"){A.callback=null,h=A.priorityLevel;var q=ue(A.expirationTime<=U);if(U=e.unstable_now(),typeof q=="function"){A.callback=q,b(U),$=!0;break t}A===l(s)&&a(s),b(U)}else a(s);A=l(s)}if(A!==null)$=!0;else{var Ht=l(p);Ht!==null&&ka(x,Ht.startTime-U),$=!1}}break e}finally{A=null,h=k,y=!1}$=void 0}}finally{$?Et():G=!1}}}var Et;if(typeof v=="function")Et=function(){v(Ve)};else if(typeof MessageChannel<"u"){var uu=new MessageChannel,iu=uu.port2;uu.port1.onmessage=Ve,Et=function(){iu.postMessage(null)}}else Et=function(){m(Ve,0)};function ka(U,$){M=m(function(){U(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(U){switch(h){case 1:case 2:case 3:var $=3;break;default:$=h}var k=h;h=$;try{return U()}finally{h=k}},e.unstable_requestPaint=function(){Z=!0},e.unstable_runWithPriority=function(U,$){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var k=h;h=U;try{return $()}finally{h=k}},e.unstable_scheduleCallback=function(U,$,k){var ue=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ue+k:ue):k=ue,U){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=k+q,U={id:S++,callback:$,priorityLevel:U,startTime:k,expirationTime:q,sortIndex:-1},k>ue?(U.sortIndex=k,t(p,U),l(s)===null&&U===l(p)&&(N?(o(M),M=-1):N=!0,ka(x,k-ue))):(U.sortIndex=q,t(s,U),O||y||(O=!0,G||(G=!0,Et()))),U},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(U){var $=h;return function(){var k=h;h=$;try{return U.apply(this,arguments)}finally{h=k}}}})(Ms);xs.exports=Ms;var xm=xs.exports,Ns={exports:{}},Ze={};/**
 * @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 Mm=Je;function js(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function rl(){}var Le={d:{f:rl,r:function(){throw Error(js(522))},D:rl,C:rl,L:rl,m:rl,X:rl,S:rl,M:rl},p:0,findDOMNode:null},Nm=Symbol.for("react.portal");function jm(e,t,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Nm,key:a==null?null:""+a,children:e,containerInfo:t,implementation:l}}var yn=Mm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function mi(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Le;Ze.createPortal=function(e,t){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(js(299));return jm(e,t,null,l)};Ze.flushSync=function(e){var t=yn.T,l=Le.p;try{if(yn.T=null,Le.p=2,e)return e()}finally{yn.T=t,Le.p=l,Le.d.f()}};Ze.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Le.d.C(e,t))};Ze.prefetchDNS=function(e){typeof e=="string"&&Le.d.D(e)};Ze.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var l=t.as,a=mi(l,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,u=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;l==="style"?Le.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:u}):l==="script"&&Le.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:u,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Ze.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var l=mi(t.as,t.crossOrigin);Le.d.M(e,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Le.d.M(e)};Ze.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var l=t.as,a=mi(l,t.crossOrigin);Le.d.L(e,l,{crossOrigin:a,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})}};Ze.preloadModule=function(e,t){if(typeof e=="string")if(t){var l=mi(t.as,t.crossOrigin);Le.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Le.d.m(e)};Ze.requestFormReset=function(e){Le.d.r(e)};Ze.unstable_batchedUpdates=function(e,t){return e(t)};Ze.useFormState=function(e,t,l){return yn.H.useFormState(e,t,l)};Ze.useFormStatus=function(){return yn.H.useHostTransitionStatus()};Ze.version="19.2.7";function Cs(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cs)}catch(e){console.error(e)}}Cs(),Ns.exports=Ze;var Cm=Ns.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 Be=xm,Bs=Je,Bm=Cm;function z(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Us(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kn(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function qs(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Hs(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wr(e){if(Kn(e)!==e)throw Error(z(188))}function Um(e){var t=e.alternate;if(!t){if(t=Kn(e),t===null)throw Error(z(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return Wr(n),e;if(u===a)return Wr(n),t;u=u.sibling}throw Error(z(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===l){i=!0,l=n,a=u;break}if(c===a){i=!0,a=n,l=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===l){i=!0,l=u,a=n;break}if(c===a){i=!0,a=u,l=n;break}c=c.sibling}if(!i)throw Error(z(189))}}if(l.alternate!==a)throw Error(z(190))}if(l.tag!==3)throw Error(z(188));return l.stateNode.current===l?e:t}function Ds(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ds(e),t!==null)return t;e=e.sibling}return null}var be=Object.assign,qm=Symbol.for("react.element"),fu=Symbol.for("react.transitional.element"),vn=Symbol.for("react.portal"),sa=Symbol.for("react.fragment"),ws=Symbol.for("react.strict_mode"),Mc=Symbol.for("react.profiler"),Rs=Symbol.for("react.consumer"),Jt=Symbol.for("react.context"),Nf=Symbol.for("react.forward_ref"),Nc=Symbol.for("react.suspense"),jc=Symbol.for("react.suspense_list"),jf=Symbol.for("react.memo"),ol=Symbol.for("react.lazy"),Cc=Symbol.for("react.activity"),Hm=Symbol.for("react.memo_cache_sentinel"),Kr=Symbol.iterator;function cn(e){return e===null||typeof e!="object"?null:(e=Kr&&e[Kr]||e["@@iterator"],typeof e=="function"?e:null)}var Dm=Symbol.for("react.client.reference");function Bc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Dm?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case sa:return"Fragment";case Mc:return"Profiler";case ws:return"StrictMode";case Nc:return"Suspense";case jc:return"SuspenseList";case Cc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case vn:return"Portal";case Jt:return e.displayName||"Context";case Rs:return(e._context.displayName||"Context")+".Consumer";case Nf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jf:return t=e.displayName||null,t!==null?t:Bc(e.type)||"Memo";case ol:t=e._payload,e=e._init;try{return Bc(e(t))}catch{}}return null}var mn=Array.isArray,L=Bs.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Bm.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ll={pending:!1,data:null,method:null,action:null},Uc=[],da=-1;function Ut(e){return{current:e}}function He(e){0>da||(e.current=Uc[da],Uc[da]=null,da--)}function ve(e,t){da++,Uc[da]=e.current,e.current=t}var Bt=Ut(null),Un=Ut(null),Sl=Ut(null),Ru=Ut(null);function Yu(e,t){switch(ve(Sl,t),ve(Un,e),ve(Bt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?es(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=es(t),e=nv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}He(Bt),ve(Bt,e)}function ja(){He(Bt),He(Un),He(Sl)}function qc(e){e.memoizedState!==null&&ve(Ru,e);var t=Bt.current,l=nv(t,e.type);t!==l&&(ve(Un,e),ve(Bt,l))}function Gu(e){Un.current===e&&(He(Bt),He(Un)),Ru.current===e&&(He(Ru),Zn._currentValue=Ll)}var Vi,Jr;function Yl(e){if(Vi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Vi=t&&t[1]||"",Jr=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Vi+e+Jr}var Wi=!1;function Ki(e,t){if(!e||Wi)return"";Wi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(y){var h=y}Reflect.construct(e,[],A)}else{try{A.call()}catch(y){h=y}e.call(A.prototype)}}else{try{throw Error()}catch(y){h=y}(A=e())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(y){if(y&&h&&typeof y.stack=="string")return[y.stack,h.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var s=i.split(`
`),p=c.split(`
`);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===p.length)for(a=s.length-1,n=p.length-1;1<=a&&0<=n&&s[a]!==p[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==p[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==p[n]){var S=`
`+s[a].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=a&&0<=n);break}}}finally{Wi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Yl(l):""}function wm(e,t){switch(e.tag){case 26:case 27:case 5:return Yl(e.type);case 16:return Yl("Lazy");case 13:return e.child!==t&&t!==null?Yl("Suspense Fallback"):Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 15:return Ki(e.type,!1);case 11:return Ki(e.type.render,!1);case 1:return Ki(e.type,!0);case 31:return Yl("Activity");default:return""}}function kr(e){try{var t="",l=null;do t+=wm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Hc=Object.prototype.hasOwnProperty,Cf=Be.unstable_scheduleCallback,Ji=Be.unstable_cancelCallback,Rm=Be.unstable_shouldYield,Ym=Be.unstable_requestPaint,ut=Be.unstable_now,Gm=Be.unstable_getCurrentPriorityLevel,Ys=Be.unstable_ImmediatePriority,Gs=Be.unstable_UserBlockingPriority,Qu=Be.unstable_NormalPriority,Qm=Be.unstable_LowPriority,Qs=Be.unstable_IdlePriority,Xm=Be.log,Lm=Be.unstable_setDisableYieldValue,Jn=null,it=null;function hl(e){if(typeof Xm=="function"&&Lm(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Jn,e)}catch{}}var ct=Math.clz32?Math.clz32:Wm,Zm=Math.log,Vm=Math.LN2;function Wm(e){return e>>>=0,e===0?32:31-(Zm(e)/Vm|0)|0}var ru=256,ou=262144,su=4194304;function Gl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function hi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=Gl(a):(i&=c,i!==0?n=Gl(i):l||(l=c&~e,l!==0&&(n=Gl(l))))):(c=a&~u,c!==0?n=Gl(c):i!==0?n=Gl(i):l||(l=a&~e,l!==0&&(n=Gl(l)))),n===0?0:t!==0&&t!==n&&!(t&u)&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function kn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Km(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Xs(){var e=su;return su<<=1,!(su&62914560)&&(su=4194304),e}function ki(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function $n(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jm(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var c=e.entanglements,s=e.expirationTimes,p=e.hiddenUpdates;for(l=i&~l;0<l;){var S=31-ct(l),A=1<<S;c[S]=0,s[S]=-1;var h=p[S];if(h!==null)for(p[S]=null,S=0;S<h.length;S++){var y=h[S];y!==null&&(y.lane&=-536870913)}l&=~A}a!==0&&Ls(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function Ls(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Zs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Vs(e,t){var l=t&-t;return l=l&42?1:Bf(l),l&(e.suspendedLanes|t)?0:l}function Bf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Uf(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Ws(){var e=ce.p;return e!==0?e:(e=window.event,e===void 0?32:mv(e.type))}function $r(e,t){var l=ce.p;try{return ce.p=e,t()}finally{ce.p=l}}var ql=Math.random().toString(36).slice(2),we="__reactFiber$"+ql,Ie="__reactProps$"+ql,Xa="__reactContainer$"+ql,Dc="__reactEvents$"+ql,km="__reactListeners$"+ql,$m="__reactHandles$"+ql,Fr="__reactResources$"+ql,Fn="__reactMarker$"+ql;function qf(e){delete e[we],delete e[Ie],delete e[Dc],delete e[km],delete e[$m]}function pa(e){var t=e[we];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Xa]||l[we]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=us(e);e!==null;){if(l=e[we])return l;e=us(e)}return t}e=l,l=e.parentNode}return null}function La(e){if(e=e[we]||e[Xa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function hn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(z(33))}function Ea(e){var t=e[Fr];return t||(t=e[Fr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[Fn]=!0}var Ks=new Set,Js={};function Pl(e,t){Ca(e,t),Ca(e+"Capture",t)}function Ca(e,t){for(Js[e]=t,e=0;e<t.length;e++)Ks.add(t[e])}var Fm=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]*$"),Ir={},Pr={};function Im(e){return Hc.call(Pr,e)?!0:Hc.call(Ir,e)?!1:Fm.test(e)?Pr[e]=!0:(Ir[e]=!0,!1)}function Eu(e,t,l){if(Im(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function du(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Qt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ks(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wc(e){if(!e._valueTracker){var t=ks(e)?"checked":"value";e._valueTracker=Pm(e,t,""+e[t])}}function $s(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=ks(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Xu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var eh=/[\n"\\]/g;function gt(e){return e.replace(eh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rc(e,t,l,a,n,u,i,c){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+vt(t)):e.value!==""+vt(t)&&(e.value=""+vt(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Yc(e,i,vt(t)):l!=null?Yc(e,i,vt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+vt(c):e.removeAttribute("name")}function Fs(e,t,l,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){wc(e);return}l=l!=null?""+vt(l):"",t=t!=null?""+vt(t):l,c||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=c?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),wc(e)}function Yc(e,t,l){t==="number"&&Xu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ta(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+vt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Is(e,t,l){if(t!=null&&(t=""+vt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+vt(l):""}function Ps(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(z(92));if(mn(a)){if(1<a.length)throw Error(z(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=vt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),wc(e)}function Ba(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var th=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 eo(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||th.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ed(e,t,l){if(t!=null&&typeof t!="object")throw Error(z(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&eo(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&eo(e,u,t[u])}function Hf(e){if(e.indexOf("-")===-1)return!1;switch(e){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 lh=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"]]),ah=/^[\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 Tu(e){return ah.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var Gc=null;function Df(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var va=null,za=null;function to(e){var t=La(e);if(t&&(e=t.stateNode)){var l=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ie]||null;if(!n)throw Error(z(90));Rc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&$s(a)}break e;case"textarea":Is(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ta(e,!!l.multiple,t,!1)}}}var $i=!1;function td(e,t,l){if($i)return e(t,l);$i=!0;try{var a=e(t);return a}finally{if($i=!1,(va!==null||za!==null)&&(Mi(),va&&(t=va,e=za,za=va=null,to(t),e)))for(t=0;t<e.length;t++)to(e[t])}}function qn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ie]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(z(231,t,typeof l));return l}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=!1;if(el)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){Qc=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{Qc=!1}var gl=null,wf=null,zu=null;function ld(){if(zu)return zu;var e,t=wf,l=t.length,a,n="value"in gl?gl.value:gl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return zu=n.slice(e,1<a?1-a:void 0)}function Ou(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pu(){return!0}function lo(){return!1}function Pe(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(l=e[c],this[c]=l?l(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pu:lo,this.isPropagationStopped=lo,this}return be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=pu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=pu)},persist:function(){},isPersistent:pu}),t}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gi=Pe(ea),In=be({},ea,{view:0,detail:0}),nh=Pe(In),Fi,Ii,rn,bi=be({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==rn&&(rn&&e.type==="mousemove"?(Fi=e.screenX-rn.screenX,Ii=e.screenY-rn.screenY):Ii=Fi=0,rn=e),Fi)},movementY:function(e){return"movementY"in e?e.movementY:Ii}}),ao=Pe(bi),uh=be({},bi,{dataTransfer:0}),ih=Pe(uh),ch=be({},In,{relatedTarget:0}),Pi=Pe(ch),fh=be({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),rh=Pe(fh),oh=be({},ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sh=Pe(oh),dh=be({},ea,{data:0}),no=Pe(dh),ph={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vh={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"},mh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mh[e])?!!t[e]:!1}function Rf(){return hh}var gh=be({},In,{key:function(e){if(e.key){var t=ph[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ou(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rf,charCode:function(e){return e.type==="keypress"?Ou(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ou(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bh=Pe(gh),yh=be({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uo=Pe(yh),_h=be({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rf}),Sh=Pe(_h),Ah=be({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eh=Pe(Ah),Th=be({},bi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),zh=Pe(Th),Oh=be({},ea,{newState:0,oldState:0}),xh=Pe(Oh),Mh=[9,13,27,32],Yf=el&&"CompositionEvent"in window,_n=null;el&&"documentMode"in document&&(_n=document.documentMode);var Nh=el&&"TextEvent"in window&&!_n,ad=el&&(!Yf||_n&&8<_n&&11>=_n),io=" ",co=!1;function nd(e,t){switch(e){case"keyup":return Mh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ma=!1;function jh(e,t){switch(e){case"compositionend":return ud(t);case"keypress":return t.which!==32?null:(co=!0,io);case"textInput":return e=t.data,e===io&&co?null:e;default:return null}}function Ch(e,t){if(ma)return e==="compositionend"||!Yf&&nd(e,t)?(e=ld(),zu=wf=gl=null,ma=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ad&&t.locale!=="ko"?null:t.data;default:return null}}var Bh={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 fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bh[e.type]:t==="textarea"}function id(e,t,l,a){va?za?za.push(a):za=[a]:va=a,t=ii(t,"onChange"),0<t.length&&(l=new gi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Sn=null,Hn=null;function Uh(e){tv(e,0)}function yi(e){var t=hn(e);if($s(t))return e}function ro(e,t){if(e==="change")return t}var cd=!1;if(el){var ec;if(el){var tc="oninput"in document;if(!tc){var oo=document.createElement("div");oo.setAttribute("oninput","return;"),tc=typeof oo.oninput=="function"}ec=tc}else ec=!1;cd=ec&&(!document.documentMode||9<document.documentMode)}function so(){Sn&&(Sn.detachEvent("onpropertychange",fd),Hn=Sn=null)}function fd(e){if(e.propertyName==="value"&&yi(Hn)){var t=[];id(t,Hn,e,Df(e)),td(Uh,t)}}function qh(e,t,l){e==="focusin"?(so(),Sn=t,Hn=l,Sn.attachEvent("onpropertychange",fd)):e==="focusout"&&so()}function Hh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(Hn)}function Dh(e,t){if(e==="click")return yi(t)}function wh(e,t){if(e==="input"||e==="change")return yi(t)}function Rh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Rh;function Dn(e,t){if(rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Hc.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vo(e,t){var l=po(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=po(l)}}function rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function od(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Xu(e.document)}return t}function Gf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yh=el&&"documentMode"in document&&11>=document.documentMode,ha=null,Xc=null,An=null,Lc=!1;function mo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Lc||ha==null||ha!==Xu(a)||(a=ha,"selectionStart"in a&&Gf(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),An&&Dn(An,a)||(An=a,a=ii(Xc,"onSelect"),0<a.length&&(t=new gi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ha)))}function Rl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ga={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionrun:Rl("Transition","TransitionRun"),transitionstart:Rl("Transition","TransitionStart"),transitioncancel:Rl("Transition","TransitionCancel"),transitionend:Rl("Transition","TransitionEnd")},lc={},sd={};el&&(sd=document.createElement("div").style,"AnimationEvent"in window||(delete ga.animationend.animation,delete ga.animationiteration.animation,delete ga.animationstart.animation),"TransitionEvent"in window||delete ga.transitionend.transition);function ta(e){if(lc[e])return lc[e];if(!ga[e])return e;var t=ga[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in sd)return lc[e]=t[l];return e}var dd=ta("animationend"),pd=ta("animationiteration"),vd=ta("animationstart"),Gh=ta("transitionrun"),Qh=ta("transitionstart"),Xh=ta("transitioncancel"),md=ta("transitionend"),hd=new Map,Zc="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(" ");Zc.push("scrollEnd");function xt(e,t){hd.set(e,t),Pl(t,[e])}var Lu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pt=[],ba=0,Qf=0;function _i(){for(var e=ba,t=Qf=ba=0;t<e;){var l=pt[t];pt[t++]=null;var a=pt[t];pt[t++]=null;var n=pt[t];pt[t++]=null;var u=pt[t];if(pt[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&gd(l,n,u)}}function Si(e,t,l,a){pt[ba++]=e,pt[ba++]=t,pt[ba++]=l,pt[ba++]=a,Qf|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Xf(e,t,l,a){return Si(e,t,l,a),Zu(e)}function la(e,t){return Si(e,null,null,t),Zu(e)}function gd(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ct(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Zu(e){if(50<Cn)throw Cn=0,df=null,Error(z(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ya={};function Lh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,l,a){return new Lh(e,t,l,a)}function Lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=at(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function bd(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function xu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")Lf(e)&&(i=1);else if(typeof e=="string")i=Jg(e,l,Bt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Cc:return e=at(31,l,t,n),e.elementType=Cc,e.lanes=u,e;case sa:return Zl(l.children,n,u,t);case ws:i=8,n|=24;break;case Mc:return e=at(12,l,t,n|2),e.elementType=Mc,e.lanes=u,e;case Nc:return e=at(13,l,t,n),e.elementType=Nc,e.lanes=u,e;case jc:return e=at(19,l,t,n),e.elementType=jc,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jt:i=10;break e;case Rs:i=9;break e;case Nf:i=11;break e;case jf:i=14;break e;case ol:i=16,a=null;break e}i=29,l=Error(z(130,e===null?"null":typeof e,"")),a=null}return t=at(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Zl(e,t,l,a){return e=at(7,e,a,t),e.lanes=l,e}function ac(e,t,l){return e=at(6,e,null,t),e.lanes=l,e}function yd(e){var t=at(18,null,null,0);return t.stateNode=e,t}function nc(e,t,l){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ho=new WeakMap;function bt(e,t){if(typeof e=="object"&&e!==null){var l=ho.get(e);return l!==void 0?l:(t={value:e,source:t,stack:kr(t)},ho.set(e,t),t)}return{value:e,source:t,stack:kr(t)}}var _a=[],Sa=0,Vu=null,wn=0,mt=[],ht=0,jl=null,Nt=1,jt="";function Wt(e,t){_a[Sa++]=wn,_a[Sa++]=Vu,Vu=e,wn=t}function _d(e,t,l){mt[ht++]=Nt,mt[ht++]=jt,mt[ht++]=jl,jl=e;var a=Nt;e=jt;var n=32-ct(a)-1;a&=~(1<<n),l+=1;var u=32-ct(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Nt=1<<32-ct(t)+n|l<<n|a,jt=u+e}else Nt=1<<u|l<<n|a,jt=e}function Zf(e){e.return!==null&&(Wt(e,1),_d(e,1,0))}function Vf(e){for(;e===Vu;)Vu=_a[--Sa],_a[Sa]=null,wn=_a[--Sa],_a[Sa]=null;for(;e===jl;)jl=mt[--ht],mt[ht]=null,jt=mt[--ht],mt[ht]=null,Nt=mt[--ht],mt[ht]=null}function Sd(e,t){mt[ht++]=Nt,mt[ht++]=jt,mt[ht++]=jl,Nt=t.id,jt=t.overflow,jl=e}var Re=null,he=null,ne=!1,Al=null,yt=!1,Vc=Error(z(519));function Cl(e){var t=Error(z(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Rn(bt(t,e)),Vc}function go(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[we]=e,t[Ie]=a,l){case"dialog":I("cancel",t),I("close",t);break;case"iframe":case"object":case"embed":I("load",t);break;case"video":case"audio":for(l=0;l<Xn.length;l++)I(Xn[l],t);break;case"source":I("error",t);break;case"img":case"image":case"link":I("error",t),I("load",t);break;case"details":I("toggle",t);break;case"input":I("invalid",t),Fs(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":I("invalid",t);break;case"textarea":I("invalid",t),Ps(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||av(t.textContent,l)?(a.popover!=null&&(I("beforetoggle",t),I("toggle",t)),a.onScroll!=null&&I("scroll",t),a.onScrollEnd!=null&&I("scrollend",t),a.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||Cl(e,!0)}function bo(e){for(Re=e.return;Re;)switch(Re.tag){case 5:case 31:case 13:yt=!1;return;case 27:case 3:yt=!0;return;default:Re=Re.return}}function ia(e){if(e!==Re)return!1;if(!ne)return bo(e),ne=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||gf(e.type,e.memoizedProps)),l=!l),l&&he&&Cl(e),bo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));he=ns(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));he=ns(e)}else t===27?(t=he,Hl(e.type)?(e=Sf,Sf=null,he=e):he=t):he=Re?St(e.stateNode.nextSibling):null;return!0}function Jl(){he=Re=null,ne=!1}function uc(){var e=Al;return e!==null&&($e===null?$e=e:$e.push.apply($e,e),Al=null),e}function Rn(e){Al===null?Al=[e]:Al.push(e)}var Wc=Ut(null),aa=null,$t=null;function dl(e,t,l){ve(Wc,t._currentValue),t._currentValue=l}function It(e){e._currentValue=Wc.current,He(Wc)}function Kc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Jc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var c=u;u=n;for(var s=0;s<t.length;s++)if(c.context===t[s]){u.lanes|=l,c=u.alternate,c!==null&&(c.lanes|=l),Kc(u.return,l,e),a||(i=null);break e}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(z(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Kc(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function Za(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if(n.flags&524288)u=!0;else if(n.flags&262144)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(z(387));if(i=i.memoizedProps,i!==null){var c=n.type;rt(n.pendingProps.value,i.value)||(e!==null?e.push(c):e=[c])}}else if(n===Ru.current){if(i=n.alternate,i===null)throw Error(z(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Zn):e=[Zn])}n=n.return}e!==null&&Jc(t,e,l,a),t.flags|=262144}function Wu(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){aa=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ye(e){return Ad(aa,e)}function vu(e,t){return aa===null&&kl(e),Ad(e,t)}function Ad(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(z(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var Zh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Vh=Be.unstable_scheduleCallback,Wh=Be.unstable_NormalPriority,Ne={$$typeof:Jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wf(){return{controller:new Zh,data:new Map,refCount:0}}function Pn(e){e.refCount--,e.refCount===0&&Vh(Wh,function(){e.controller.abort()})}var En=null,kc=0,Ua=0,Oa=null;function Kh(e,t){if(En===null){var l=En=[];kc=0,Ua=gr(),Oa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return kc++,t.then(yo,yo),t}function yo(){if(--kc===0&&En!==null){Oa!==null&&(Oa.status="fulfilled");var e=En;En=null,Ua=0,Oa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var _o=L.S;L.S=function(e,t){Dp=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kh(e,t),_o!==null&&_o(e,t)};var Vl=Ut(null);function Kf(){var e=Vl.current;return e!==null?e:pe.pooledCache}function Mu(e,t){t===null?ve(Vl,Vl.current):ve(Vl,t.pool)}function Ed(){var e=Kf();return e===null?null:{parent:Ne._currentValue,pool:e}}var Va=Error(z(460)),Jf=Error(z(474)),Ai=Error(z(542)),Ku={then:function(){}};function So(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Td(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kt,kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eo(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=pe,e!==null&&100<e.shellSuspendCounter)throw Error(z(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eo(e),e}throw Wl=t,Va}}function Ql(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,Va):l}}var Wl=null;function Ao(){if(Wl===null)throw Error(z(459));var e=Wl;return Wl=null,e}function Eo(e){if(e===Va||e===Ai)throw Error(z(483))}var xa=null,Yn=0;function mu(e){var t=Yn;return Yn+=1,xa===null&&(xa=[]),Td(xa,e,t)}function on(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===qm?Error(z(525)):(e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function zd(e){function t(m,o){if(e){var v=m.deletions;v===null?(m.deletions=[o],m.flags|=16):v.push(o)}}function l(m,o){if(!e)return null;for(;o!==null;)t(m,o),o=o.sibling;return null}function a(m){for(var o=new Map;m!==null;)m.key!==null?o.set(m.key,m):o.set(m.index,m),m=m.sibling;return o}function n(m,o){return m=Ft(m,o),m.index=0,m.sibling=null,m}function u(m,o,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<o?(m.flags|=67108866,o):v):(m.flags|=67108866,o)):(m.flags|=1048576,o)}function i(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function c(m,o,v,b){return o===null||o.tag!==6?(o=ac(v,m.mode,b),o.return=m,o):(o=n(o,v),o.return=m,o)}function s(m,o,v,b){var x=v.type;return x===sa?S(m,o,v.props.children,b,v.key):o!==null&&(o.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ol&&Ql(x)===o.type)?(o=n(o,v.props),on(o,v),o.return=m,o):(o=xu(v.type,v.key,v.props,null,m.mode,b),on(o,v),o.return=m,o)}function p(m,o,v,b){return o===null||o.tag!==4||o.stateNode.containerInfo!==v.containerInfo||o.stateNode.implementation!==v.implementation?(o=nc(v,m.mode,b),o.return=m,o):(o=n(o,v.children||[]),o.return=m,o)}function S(m,o,v,b,x){return o===null||o.tag!==7?(o=Zl(v,m.mode,b,x),o.return=m,o):(o=n(o,v),o.return=m,o)}function A(m,o,v){if(typeof o=="string"&&o!==""||typeof o=="number"||typeof o=="bigint")return o=ac(""+o,m.mode,v),o.return=m,o;if(typeof o=="object"&&o!==null){switch(o.$$typeof){case fu:return v=xu(o.type,o.key,o.props,null,m.mode,v),on(v,o),v.return=m,v;case vn:return o=nc(o,m.mode,v),o.return=m,o;case ol:return o=Ql(o),A(m,o,v)}if(mn(o)||cn(o))return o=Zl(o,m.mode,v,null),o.return=m,o;if(typeof o.then=="function")return A(m,mu(o),v);if(o.$$typeof===Jt)return A(m,vu(m,o),v);hu(m,o)}return null}function h(m,o,v,b){var x=o!==null?o.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return x!==null?null:c(m,o,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case fu:return v.key===x?s(m,o,v,b):null;case vn:return v.key===x?p(m,o,v,b):null;case ol:return v=Ql(v),h(m,o,v,b)}if(mn(v)||cn(v))return x!==null?null:S(m,o,v,b,null);if(typeof v.then=="function")return h(m,o,mu(v),b);if(v.$$typeof===Jt)return h(m,o,vu(m,v),b);hu(m,v)}return null}function y(m,o,v,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return m=m.get(v)||null,c(o,m,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case fu:return m=m.get(b.key===null?v:b.key)||null,s(o,m,b,x);case vn:return m=m.get(b.key===null?v:b.key)||null,p(o,m,b,x);case ol:return b=Ql(b),y(m,o,v,b,x)}if(mn(b)||cn(b))return m=m.get(v)||null,S(o,m,b,x,null);if(typeof b.then=="function")return y(m,o,v,mu(b),x);if(b.$$typeof===Jt)return y(m,o,v,vu(o,b),x);hu(o,b)}return null}function O(m,o,v,b){for(var x=null,G=null,M=o,E=o=0,Q=null;M!==null&&E<v.length;E++){M.index>E?(Q=M,M=null):Q=M.sibling;var V=h(m,M,v[E],b);if(V===null){M===null&&(M=Q);break}e&&M&&V.alternate===null&&t(m,M),o=u(V,o,E),G===null?x=V:G.sibling=V,G=V,M=Q}if(E===v.length)return l(m,M),ne&&Wt(m,E),x;if(M===null){for(;E<v.length;E++)M=A(m,v[E],b),M!==null&&(o=u(M,o,E),G===null?x=M:G.sibling=M,G=M);return ne&&Wt(m,E),x}for(M=a(M);E<v.length;E++)Q=y(M,m,E,v[E],b),Q!==null&&(e&&Q.alternate!==null&&M.delete(Q.key===null?E:Q.key),o=u(Q,o,E),G===null?x=Q:G.sibling=Q,G=Q);return e&&M.forEach(function(Ve){return t(m,Ve)}),ne&&Wt(m,E),x}function N(m,o,v,b){if(v==null)throw Error(z(151));for(var x=null,G=null,M=o,E=o=0,Q=null,V=v.next();M!==null&&!V.done;E++,V=v.next()){M.index>E?(Q=M,M=null):Q=M.sibling;var Ve=h(m,M,V.value,b);if(Ve===null){M===null&&(M=Q);break}e&&M&&Ve.alternate===null&&t(m,M),o=u(Ve,o,E),G===null?x=Ve:G.sibling=Ve,G=Ve,M=Q}if(V.done)return l(m,M),ne&&Wt(m,E),x;if(M===null){for(;!V.done;E++,V=v.next())V=A(m,V.value,b),V!==null&&(o=u(V,o,E),G===null?x=V:G.sibling=V,G=V);return ne&&Wt(m,E),x}for(M=a(M);!V.done;E++,V=v.next())V=y(M,m,E,V.value,b),V!==null&&(e&&V.alternate!==null&&M.delete(V.key===null?E:V.key),o=u(V,o,E),G===null?x=V:G.sibling=V,G=V);return e&&M.forEach(function(Et){return t(m,Et)}),ne&&Wt(m,E),x}function Z(m,o,v,b){if(typeof v=="object"&&v!==null&&v.type===sa&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case fu:e:{for(var x=v.key;o!==null;){if(o.key===x){if(x=v.type,x===sa){if(o.tag===7){l(m,o.sibling),b=n(o,v.props.children),b.return=m,m=b;break e}}else if(o.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ol&&Ql(x)===o.type){l(m,o.sibling),b=n(o,v.props),on(b,v),b.return=m,m=b;break e}l(m,o);break}else t(m,o);o=o.sibling}v.type===sa?(b=Zl(v.props.children,m.mode,b,v.key),b.return=m,m=b):(b=xu(v.type,v.key,v.props,null,m.mode,b),on(b,v),b.return=m,m=b)}return i(m);case vn:e:{for(x=v.key;o!==null;){if(o.key===x)if(o.tag===4&&o.stateNode.containerInfo===v.containerInfo&&o.stateNode.implementation===v.implementation){l(m,o.sibling),b=n(o,v.children||[]),b.return=m,m=b;break e}else{l(m,o);break}else t(m,o);o=o.sibling}b=nc(v,m.mode,b),b.return=m,m=b}return i(m);case ol:return v=Ql(v),Z(m,o,v,b)}if(mn(v))return O(m,o,v,b);if(cn(v)){if(x=cn(v),typeof x!="function")throw Error(z(150));return v=x.call(v),N(m,o,v,b)}if(typeof v.then=="function")return Z(m,o,mu(v),b);if(v.$$typeof===Jt)return Z(m,o,vu(m,v),b);hu(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,o!==null&&o.tag===6?(l(m,o.sibling),b=n(o,v),b.return=m,m=b):(l(m,o),b=ac(v,m.mode,b),b.return=m,m=b),i(m)):l(m,o)}return function(m,o,v,b){try{Yn=0;var x=Z(m,o,v,b);return xa=null,x}catch(M){if(M===Va||M===Ai)throw M;var G=at(29,M,null,m.mode);return G.lanes=b,G.return=m,G}finally{}}}var $l=zd(!0),Od=zd(!1),sl=!1;function kf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function El(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,ie&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Zu(e),gd(e,null,l),t}return Si(e,a,t,l),Zu(e)}function Tn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Zs(e,l)}}function ic(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Fc=!1;function zn(){if(Fc){var e=Oa;if(e!==null)throw e}}function On(e,t,l,a){Fc=!1;var n=e.updateQueue;sl=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,p=s.next;s.next=null,i===null?u=p:i.next=p,i=s;var S=e.alternate;S!==null&&(S=S.updateQueue,c=S.lastBaseUpdate,c!==i&&(c===null?S.firstBaseUpdate=p:c.next=p,S.lastBaseUpdate=s))}if(u!==null){var A=n.baseState;i=0,S=p=s=null,c=u;do{var h=c.lane&-536870913,y=h!==c.lane;if(y?(te&h)===h:(a&h)===h){h!==0&&h===Ua&&(Fc=!0),S!==null&&(S=S.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var O=e,N=c;h=t;var Z=l;switch(N.tag){case 1:if(O=N.payload,typeof O=="function"){A=O.call(Z,A,h);break e}A=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=N.payload,h=typeof O=="function"?O.call(Z,A,h):O,h==null)break e;A=be({},A,h);break e;case 2:sl=!0}}h=c.callback,h!==null&&(e.flags|=64,y&&(e.flags|=8192),y=n.callbacks,y===null?n.callbacks=[h]:y.push(h))}else y={lane:h,tag:c.tag,payload:c.payload,callback:c.callback,next:null},S===null?(p=S=y,s=A):S=S.next=y,i|=h;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;y=c,c=y.next,y.next=null,n.lastBaseUpdate=y,n.shared.pending=null}}while(!0);S===null&&(s=A),n.baseState=s,n.firstBaseUpdate=p,n.lastBaseUpdate=S,u===null&&(n.shared.lanes=0),Ul|=i,e.lanes=i,e.memoizedState=A}}function xd(e,t){if(typeof e!="function")throw Error(z(191,e));e.call(t)}function Md(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)xd(l[e],t)}var qa=Ut(null),Ju=Ut(0);function To(e,t){e=nl,ve(Ju,e),ve(qa,t),nl=e|t.baseLanes}function Ic(){ve(Ju,nl),ve(qa,qa.current)}function $f(){nl=Ju.current,He(qa),He(Ju)}var ot=Ut(null),_t=null;function pl(e){var t=e.alternate;ve(Ee,Ee.current&1),ve(ot,e),_t===null&&(t===null||qa.current!==null||t.memoizedState!==null)&&(_t=e)}function Pc(e){ve(Ee,Ee.current),ve(ot,e),_t===null&&(_t=e)}function Nd(e){e.tag===22?(ve(Ee,Ee.current),ve(ot,e),_t===null&&(_t=e)):vl()}function vl(){ve(Ee,Ee.current),ve(ot,ot.current)}function lt(e){He(ot),_t===e&&(_t=null),He(Ee)}var Ee=Ut(0);function ku(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||yf(l)||_f(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tl=0,J=null,de=null,xe=null,$u=!1,Ma=!1,Fl=!1,Fu=0,Gn=0,Na=null,kh=0;function _e(){throw Error(z(321))}function Ff(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rt(e[l],t[l]))return!1;return!0}function If(e,t,l,a,n,u){return tl=u,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?ip:rr,Fl=!1,u=l(a,n),Fl=!1,Ma&&(u=Cd(t,l,a,n)),jd(e),u}function jd(e){L.H=Qn;var t=de!==null&&de.next!==null;if(tl=0,xe=de=J=null,$u=!1,Gn=0,Na=null,t)throw Error(z(300));e===null||je||(e=e.dependencies,e!==null&&Wu(e)&&(je=!0))}function Cd(e,t,l,a){J=e;var n=0;do{if(Ma&&(Na=null),Gn=0,Ma=!1,25<=n)throw Error(z(301));if(n+=1,xe=de=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}L.H=cp,u=t(l,a)}while(Ma);return u}function $h(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?eu(t):t,e=e.useState()[0],(de!==null?de.memoizedState:null)!==e&&(J.flags|=1024),t}function Pf(){var e=Fu!==0;return Fu=0,e}function er(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function tr(e){if($u){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}$u=!1}tl=0,xe=de=J=null,Ma=!1,Gn=Fu=0,Na=null}function Xe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xe===null?J.memoizedState=xe=e:xe=xe.next=e,xe}function Te(){if(de===null){var e=J.alternate;e=e!==null?e.memoizedState:null}else e=de.next;var t=xe===null?J.memoizedState:xe.next;if(t!==null)xe=t,de=e;else{if(e===null)throw J.alternate===null?Error(z(467)):Error(z(310));de=e,e={memoizedState:de.memoizedState,baseState:de.baseState,baseQueue:de.baseQueue,queue:de.queue,next:null},xe===null?J.memoizedState=xe=e:xe=xe.next=e}return xe}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eu(e){var t=Gn;return Gn+=1,Na===null&&(Na=[]),e=Td(Na,e,t),t=J,(xe===null?t.memoizedState:xe.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?ip:rr),e}function Ti(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return eu(e);if(e.$$typeof===Jt)return Ye(e)}throw Error(z(438,String(e)))}function lr(e){var t=null,l=J.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=J.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ei(),J.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Hm;return t.index++,l}function ll(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=Te();return ar(t,de,e)}function ar(e,t,l){var a=e.queue;if(a===null)throw Error(z(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var c=i=null,s=null,p=t,S=!1;do{var A=p.lane&-536870913;if(A!==p.lane?(te&A)===A:(tl&A)===A){var h=p.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),A===Ua&&(S=!0);else if((tl&h)===h){p=p.next,h===Ua&&(S=!0);continue}else A={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},s===null?(c=s=A,i=u):s=s.next=A,J.lanes|=h,Ul|=h;A=p.action,Fl&&l(u,A),u=p.hasEagerState?p.eagerState:l(u,A)}else h={lane:A,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},s===null?(c=s=h,i=u):s=s.next=h,J.lanes|=A,Ul|=A;p=p.next}while(p!==null&&p!==t);if(s===null?i=u:s.next=c,!rt(u,e.memoizedState)&&(je=!0,S&&(l=Oa,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function cc(e){var t=Te(),l=t.queue;if(l===null)throw Error(z(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);rt(u,t.memoizedState)||(je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Bd(e,t,l){var a=J,n=Te(),u=ne;if(u){if(l===void 0)throw Error(z(407));l=l()}else l=t();var i=!rt((de||n).memoizedState,l);if(i&&(n.memoizedState=l,je=!0),n=n.queue,nr(Hd.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||xe!==null&&xe.memoizedState.tag&1){if(a.flags|=2048,Ha(9,{destroy:void 0},qd.bind(null,a,n,l,t),null),pe===null)throw Error(z(349));u||tl&127||Ud(a,t,l)}return l}function Ud(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=J.updateQueue,t===null?(t=Ei(),J.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function qd(e,t,l,a){t.value=l,t.getSnapshot=a,Dd(t)&&wd(e)}function Hd(e,t,l){return l(function(){Dd(t)&&wd(e)})}function Dd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rt(e,l)}catch{return!0}}function wd(e){var t=la(e,2);t!==null&&Fe(t,e,2)}function ef(e){var t=Xe();if(typeof e=="function"){var l=e;if(e=l(),Fl){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:e},t}function Rd(e,t,l,a){return e.baseState=l,ar(e,de,typeof a=="function"?a:ll)}function Fh(e,t,l,a,n){if(Oi(e))throw Error(z(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};L.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Yd(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Yd(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=L.T,i={};L.T=i;try{var c=l(n,a),s=L.S;s!==null&&s(i,c),zo(e,t,c)}catch(p){tf(e,t,p)}finally{u!==null&&i.types!==null&&(u.types=i.types),L.T=u}}else try{u=l(n,a),zo(e,t,u)}catch(p){tf(e,t,p)}}function zo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Oo(e,t,a)},function(a){return tf(e,t,a)}):Oo(e,t,l)}function Oo(e,t,l){t.status="fulfilled",t.value=l,Gd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Yd(e,l)))}function tf(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Gd(t),t=t.next;while(t!==a)}e.action=null}function Gd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Qd(e,t){return t}function xo(e,t){if(ne){var l=pe.formState;if(l!==null){e:{var a=J;if(ne){if(he){t:{for(var n=he,u=yt;n.nodeType!==8;){if(!u){n=null;break t}if(n=St(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){he=St(n.nextSibling),a=n.data==="F!";break e}}Cl(a)}a=!1}a&&(t=l[0])}}return l=Xe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qd,lastRenderedState:t},l.queue=a,l=ap.bind(null,J,a),a.dispatch=l,a=ef(!1),u=fr.bind(null,J,!1,a.queue),a=Xe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Fh.bind(null,J,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Mo(e){var t=Te();return Xd(t,de,e)}function Xd(e,t,l){if(t=ar(e,t,Qd)[0],e=Nu(ll)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=eu(t)}catch(i){throw i===Va?Ai:i}else a=t;t=Te();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(J.flags|=2048,Ha(9,{destroy:void 0},Ih.bind(null,n,l),null)),[a,u,e]}function Ih(e,t){e.action=t}function No(e){var t=Te(),l=de;if(l!==null)return Xd(t,l,e);Te(),t=t.memoizedState,l=Te();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ha(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=J.updateQueue,t===null&&(t=Ei(),J.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Ld(){return Te().memoizedState}function ju(e,t,l,a){var n=Xe();J.flags|=e,n.memoizedState=Ha(1|t,{destroy:void 0},l,a===void 0?null:a)}function zi(e,t,l,a){var n=Te();a=a===void 0?null:a;var u=n.memoizedState.inst;de!==null&&a!==null&&Ff(a,de.memoizedState.deps)?n.memoizedState=Ha(t,u,l,a):(J.flags|=e,n.memoizedState=Ha(1|t,u,l,a))}function jo(e,t){ju(8390656,8,e,t)}function nr(e,t){zi(2048,8,e,t)}function Ph(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Ei(),J.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Zd(e){var t=Te().memoizedState;return Ph({ref:t,nextImpl:e}),function(){if(ie&2)throw Error(z(440));return t.impl.apply(void 0,arguments)}}function Vd(e,t){return zi(4,2,e,t)}function Wd(e,t){return zi(4,4,e,t)}function Kd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jd(e,t,l){l=l!=null?l.concat([e]):null,zi(4,4,Kd.bind(null,t,e),l)}function ur(){}function kd(e,t){var l=Te();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ff(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function $d(e,t){var l=Te();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ff(t,a[1]))return a[0];if(a=e(),Fl){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function ir(e,t,l){return l===void 0||tl&1073741824&&!(te&261930)?e.memoizedState=t:(e.memoizedState=l,e=Rp(),J.lanes|=e,Ul|=e,l)}function Fd(e,t,l,a){return rt(l,t)?l:qa.current!==null?(e=ir(e,l,a),rt(e,t)||(je=!0),e):!(tl&42)||tl&1073741824&&!(te&261930)?(je=!0,e.memoizedState=l):(e=Rp(),J.lanes|=e,Ul|=e,t)}function Id(e,t,l,a,n){var u=ce.p;ce.p=u!==0&&8>u?u:8;var i=L.T,c={};L.T=c,fr(e,!1,t,l);try{var s=n(),p=L.S;if(p!==null&&p(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var S=Jh(s,a);xn(e,t,S,ft(e))}else xn(e,t,a,ft(e))}catch(A){xn(e,t,{then:function(){},status:"rejected",reason:A},ft())}finally{ce.p=u,i!==null&&c.types!==null&&(i.types=c.types),L.T=i}}function eg(){}function lf(e,t,l,a){if(e.tag!==5)throw Error(z(476));var n=Pd(e).queue;Id(e,n,t,Ll,l===null?eg:function(){return ep(e),l(a)})}function Pd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ll,baseState:Ll,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:Ll},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ep(e){var t=Pd(e);t.next===null&&(t=e.alternate.memoizedState),xn(e,t.next.queue,{},ft())}function cr(){return Ye(Zn)}function tp(){return Te().memoizedState}function lp(){return Te().memoizedState}function tg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ft();e=El(l);var a=Tl(t,e,l);a!==null&&(Fe(a,t,l),Tn(a,t,l)),t={cache:Wf()},e.payload=t;return}t=t.return}}function lg(e,t,l){var a=ft();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oi(e)?np(t,l):(l=Xf(e,t,l,a),l!==null&&(Fe(l,e,a),up(l,t,a)))}function ap(e,t,l){var a=ft();xn(e,t,l,a)}function xn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Oi(e))np(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,c=u(i,l);if(n.hasEagerState=!0,n.eagerState=c,rt(c,i))return Si(e,t,n,0),pe===null&&_i(),!1}catch{}finally{}if(l=Xf(e,t,n,a),l!==null)return Fe(l,e,a),up(l,t,a),!0}return!1}function fr(e,t,l,a){if(a={lane:2,revertLane:gr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(t)throw Error(z(479))}else t=Xf(e,l,a,2),t!==null&&Fe(t,e,2)}function Oi(e){var t=e.alternate;return e===J||t!==null&&t===J}function np(e,t){Ma=$u=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function up(e,t,l){if(l&4194048){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Zs(e,l)}}var Qn={readContext:Ye,use:Ti,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useInsertionEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useSyncExternalStore:_e,useId:_e,useHostTransitionStatus:_e,useFormState:_e,useActionState:_e,useOptimistic:_e,useMemoCache:_e,useCacheRefresh:_e};Qn.useEffectEvent=_e;var ip={readContext:Ye,use:Ti,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:jo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Kd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var l=Xe();t=t===void 0?null:t;var a=e();if(Fl){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Xe();if(l!==void 0){var n=l(t);if(Fl){hl(!0);try{l(t)}finally{hl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=lg.bind(null,J,e),[a.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:function(e){e=ef(e);var t=e.queue,l=ap.bind(null,J,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ur,useDeferredValue:function(e,t){var l=Xe();return ir(l,e,t)},useTransition:function(){var e=ef(!1);return e=Id.bind(null,J,e.queue,!0,!1),Xe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=J,n=Xe();if(ne){if(l===void 0)throw Error(z(407));l=l()}else{if(l=t(),pe===null)throw Error(z(349));te&127||Ud(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,jo(Hd.bind(null,a,u,e),[e]),a.flags|=2048,Ha(9,{destroy:void 0},qd.bind(null,a,u,l,t),null),l},useId:function(){var e=Xe(),t=pe.identifierPrefix;if(ne){var l=jt,a=Nt;l=(a&~(1<<32-ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Fu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=kh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cr,useFormState:xo,useActionState:xo,useOptimistic:function(e){var t=Xe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=fr.bind(null,J,!0,l),l.dispatch=t,[e,t]},useMemoCache:lr,useCacheRefresh:function(){return Xe().memoizedState=tg.bind(null,J)},useEffectEvent:function(e){var t=Xe(),l={impl:e};return t.memoizedState=l,function(){if(ie&2)throw Error(z(440));return l.impl.apply(void 0,arguments)}}},rr={readContext:Ye,use:Ti,useCallback:kd,useContext:Ye,useEffect:nr,useImperativeHandle:Jd,useInsertionEffect:Vd,useLayoutEffect:Wd,useMemo:$d,useReducer:Nu,useRef:Ld,useState:function(){return Nu(ll)},useDebugValue:ur,useDeferredValue:function(e,t){var l=Te();return Fd(l,de.memoizedState,e,t)},useTransition:function(){var e=Nu(ll)[0],t=Te().memoizedState;return[typeof e=="boolean"?e:eu(e),t]},useSyncExternalStore:Bd,useId:tp,useHostTransitionStatus:cr,useFormState:Mo,useActionState:Mo,useOptimistic:function(e,t){var l=Te();return Rd(l,de,e,t)},useMemoCache:lr,useCacheRefresh:lp};rr.useEffectEvent=Zd;var cp={readContext:Ye,use:Ti,useCallback:kd,useContext:Ye,useEffect:nr,useImperativeHandle:Jd,useInsertionEffect:Vd,useLayoutEffect:Wd,useMemo:$d,useReducer:cc,useRef:Ld,useState:function(){return cc(ll)},useDebugValue:ur,useDeferredValue:function(e,t){var l=Te();return de===null?ir(l,e,t):Fd(l,de.memoizedState,e,t)},useTransition:function(){var e=cc(ll)[0],t=Te().memoizedState;return[typeof e=="boolean"?e:eu(e),t]},useSyncExternalStore:Bd,useId:tp,useHostTransitionStatus:cr,useFormState:No,useActionState:No,useOptimistic:function(e,t){var l=Te();return de!==null?Rd(l,de,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:lr,useCacheRefresh:lp};cp.useEffectEvent=Zd;function fc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:be({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var af={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=ft(),n=El(a);n.payload=t,l!=null&&(n.callback=l),t=Tl(e,n,a),t!==null&&(Fe(t,e,a),Tn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=ft(),n=El(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Tl(e,n,a),t!==null&&(Fe(t,e,a),Tn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ft(),a=El(l);a.tag=2,t!=null&&(a.callback=t),t=Tl(e,a,l),t!==null&&(Fe(t,e,l),Tn(t,e,l))}};function Co(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!Dn(l,a)||!Dn(n,u):!0}function Bo(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&af.enqueueReplaceState(t,t.state,null)}function Il(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=be({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function fp(e){Lu(e)}function rp(e){console.error(e)}function op(e){Lu(e)}function Iu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function nf(e,t,l){return l=El(l),l.tag=3,l.payload={element:null},l.callback=function(){Iu(e,t)},l}function sp(e){return e=El(e),e.tag=3,e}function dp(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Uo(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){Uo(t,l,a),typeof n!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function ag(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Za(t,l,n,!0),l=ot.current,l!==null){switch(l.tag){case 31:case 13:return _t===null?ai():l.alternate===null&&Se===0&&(Se=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ku?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),yc(e,a,n)),!1;case 22:return l.flags|=65536,a===Ku?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),yc(e,a,n)),!1}throw Error(z(435,l.tag))}return yc(e,a,n),ai(),!1}if(ne)return t=ot.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Vc&&(e=Error(z(422),{cause:a}),Rn(bt(e,l)))):(a!==Vc&&(t=Error(z(423),{cause:a}),Rn(bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=bt(a,l),n=nf(e.stateNode,a,n),ic(e,n),Se!==4&&(Se=2)),!1;var u=Error(z(520),{cause:a});if(u=bt(u,l),jn===null?jn=[u]:jn.push(u),Se!==4&&(Se=2),t===null)return!0;a=bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=nf(l.stateNode,a,e),ic(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(zl===null||!zl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=sp(n),dp(n,e,l,a),ic(l,n),!1}l=l.return}while(l!==null);return!1}var or=Error(z(461)),je=!1;function De(e,t,l,a){t.child=e===null?Od(t,null,l,a):$l(t,e.child,l,a)}function qo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return kl(t),a=If(e,t,l,i,u,n),c=Pf(),e!==null&&!je?(er(e,t,n),al(e,t,n)):(ne&&c&&Zf(t),t.flags|=1,De(e,t,a,n),t.child)}function Ho(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Lf(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,pp(e,t,u,a,n)):(e=xu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!sr(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:Dn,l(i,a)&&e.ref===t.ref)return al(e,t,n)}return t.flags|=1,e=Ft(u,a),e.ref=t.ref,e.return=t,t.child=e}function pp(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Dn(u,a)&&e.ref===t.ref)if(je=!1,t.pendingProps=a=u,sr(e,n))e.flags&131072&&(je=!0);else return t.lanes=e.lanes,al(e,t,n)}return uf(e,t,l,a,n)}function vp(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Do(e,t,u,l,a)}if(l&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mu(t,u!==null?u.cachePool:null),u!==null?To(t,u):Ic(),Nd(t);else return a=t.lanes=536870912,Do(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Mu(t,u.cachePool),To(t,u),vl(),t.memoizedState=null):(e!==null&&Mu(t,null),Ic(),vl());return De(e,t,n,l),t.child}function gn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Do(e,t,l,a,n){var u=Kf();return u=u===null?null:{parent:Ne._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Mu(t,null),Ic(),Nd(t),e!==null&&Za(e,t,a,!0),t.childLanes=n,null}function Cu(e,t){return t=Pu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wo(e,t,l){return $l(t,e.child,null,l),e=Cu(t,t.pendingProps),e.flags|=2,lt(t),t.memoizedState=null,e}function ng(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ne){if(a.mode==="hidden")return e=Cu(t,a),t.lanes=536870912,gn(null,e);if(Pc(t),(e=he)?(e=iv(e,yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:Nt,overflow:jt}:null,retryLane:536870912,hydrationErrors:null},l=yd(e),l.return=t,t.child=l,Re=t,he=null)):e=null,e===null)throw Cl(t);return t.lanes=536870912,null}return Cu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Pc(t),n)if(t.flags&256)t.flags&=-257,t=wo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(z(558));else if(je||Za(e,t,l,!1),n=(l&e.childLanes)!==0,je||n){if(a=pe,a!==null&&(i=Vs(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,la(e,i),Fe(a,e,i),or;ai(),t=wo(e,t,l)}else e=u.treeContext,he=St(i.nextSibling),Re=t,ne=!0,Al=null,yt=!1,e!==null&&Sd(t,e),t=Cu(t,a),t.flags|=4096;return t}return e=Ft(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Bu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(z(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function uf(e,t,l,a,n){return kl(t),l=If(e,t,l,a,void 0,n),a=Pf(),e!==null&&!je?(er(e,t,n),al(e,t,n)):(ne&&a&&Zf(t),t.flags|=1,De(e,t,l,n),t.child)}function Ro(e,t,l,a,n,u){return kl(t),t.updateQueue=null,l=Cd(t,a,l,n),jd(e),a=Pf(),e!==null&&!je?(er(e,t,u),al(e,t,u)):(ne&&a&&Zf(t),t.flags|=1,De(e,t,l,u),t.child)}function Yo(e,t,l,a,n){if(kl(t),t.stateNode===null){var u=ya,i=l.contextType;typeof i=="object"&&i!==null&&(u=Ye(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=af,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},kf(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?Ye(i):ya,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(fc(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&af.enqueueReplaceState(u,u.state,null),On(t,a,u,n),zn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var c=t.memoizedProps,s=Il(l,c);u.props=s;var p=u.context,S=l.contextType;i=ya,typeof S=="object"&&S!==null&&(i=Ye(S));var A=l.getDerivedStateFromProps;S=typeof A=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,S||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||p!==i)&&Bo(t,u,a,i),sl=!1;var h=t.memoizedState;u.state=h,On(t,a,u,n),zn(),p=t.memoizedState,c||h!==p||sl?(typeof A=="function"&&(fc(t,l,A,a),p=t.memoizedState),(s=sl||Co(t,l,s,a,h,p,i))?(S||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"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=p),u.props=a,u.state=p,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,$c(e,t),i=t.memoizedProps,S=Il(l,i),u.props=S,A=t.pendingProps,h=u.context,p=l.contextType,s=ya,typeof p=="object"&&p!==null&&(s=Ye(p)),c=l.getDerivedStateFromProps,(p=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==A||h!==s)&&Bo(t,u,a,s),sl=!1,h=t.memoizedState,u.state=h,On(t,a,u,n),zn();var y=t.memoizedState;i!==A||h!==y||sl||e!==null&&e.dependencies!==null&&Wu(e.dependencies)?(typeof c=="function"&&(fc(t,l,c,a),y=t.memoizedState),(S=sl||Co(t,l,S,a,h,y,s)||e!==null&&e.dependencies!==null&&Wu(e.dependencies))?(p||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,y,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,y,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=y),u.props=a,u.state=y,u.context=s,a=S):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Bu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,n),t.child=$l(t,null,l,n)):De(e,t,l,n),t.memoizedState=u.state,e=t.child):e=al(e,t,n),e}function Go(e,t,l,a){return Jl(),t.flags|=256,De(e,t,l,a),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oc(e){return{baseLanes:e,cachePool:Ed()}}function sc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=nt),e}function mp(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(Ee.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(ne){if(n?pl(t):vl(),(e=he)?(e=iv(e,yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:Nt,overflow:jt}:null,retryLane:536870912,hydrationErrors:null},l=yd(e),l.return=t,t.child=l,Re=t,he=null)):e=null,e===null)throw Cl(t);return _f(e)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(vl(),n=t.mode,c=Pu({mode:"hidden",children:c},n),a=Zl(a,n,l,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=oc(l),a.childLanes=sc(e,i,l),t.memoizedState=rc,gn(null,a)):(pl(t),cf(t,c))}var s=e.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(u)t.flags&256?(pl(t),t.flags&=-257,t=dc(e,t,l)):t.memoizedState!==null?(vl(),t.child=e.child,t.flags|=128,t=null):(vl(),c=a.fallback,n=t.mode,a=Pu({mode:"visible",children:a.children},n),c=Zl(c,n,l,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,$l(t,e.child,null,l),a=t.child,a.memoizedState=oc(l),a.childLanes=sc(e,i,l),t.memoizedState=rc,t=gn(null,a));else if(pl(t),_f(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var p=i.dgst;i=p,a=Error(z(419)),a.stack="",a.digest=i,Rn({value:a,source:null,stack:null}),t=dc(e,t,l)}else if(je||Za(e,t,l,!1),i=(l&e.childLanes)!==0,je||i){if(i=pe,i!==null&&(a=Vs(i,l),a!==0&&a!==s.retryLane))throw s.retryLane=a,la(e,a),Fe(i,e,a),or;yf(c)||ai(),t=dc(e,t,l)}else yf(c)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,he=St(c.nextSibling),Re=t,ne=!0,Al=null,yt=!1,e!==null&&Sd(t,e),t=cf(t,a.children),t.flags|=4096);return t}return n?(vl(),c=a.fallback,n=t.mode,s=e.child,p=s.sibling,a=Ft(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,p!==null?c=Ft(p,c):(c=Zl(c,n,l,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,gn(null,a),a=t.child,c=e.child.memoizedState,c===null?c=oc(l):(n=c.cachePool,n!==null?(s=Ne._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=Ed(),c={baseLanes:c.baseLanes|l,cachePool:n}),a.memoizedState=c,a.childLanes=sc(e,i,l),t.memoizedState=rc,gn(e.child,a)):(pl(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function cf(e,t){return t=Pu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pu(e,t){return e=at(22,e,null,t),e.lanes=0,e}function dc(e,t,l){return $l(t,e.child,null,l),e=cf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Kc(e.return,t,l)}function pc(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function hp(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Ee.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,ve(Ee,i),De(e,t,a,l),a=ne?wn:0,!c&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qo(e,l,t);else if(e.tag===19)Qo(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&ku(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),pc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ku(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}pc(t,!0,l,null,u,a);break;case"together":pc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function al(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,!(l&t.childLanes))if(e!==null){if(Za(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function sr(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Wu(e)))}function ug(e,t,l){switch(t.tag){case 3:Yu(t,t.stateNode.containerInfo),dl(t,Ne,e.memoizedState.cache),Jl();break;case 27:case 5:qc(t);break;case 4:Yu(t,t.stateNode.containerInfo);break;case 10:dl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(pl(t),t.flags|=128,null):l&t.child.childLanes?mp(e,t,l):(pl(t),e=al(e,t,l),e!==null?e.sibling:null);pl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Za(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return hp(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),ve(Ee,Ee.current),a)break;return null;case 22:return t.lanes=0,vp(e,t,l,t.pendingProps);case 24:dl(t,Ne,e.memoizedState.cache)}return al(e,t,l)}function gp(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)je=!0;else{if(!sr(e,l)&&!(t.flags&128))return je=!1,ug(e,t,l);je=!!(e.flags&131072)}else je=!1,ne&&t.flags&1048576&&_d(t,wn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ql(t.elementType),t.type=e,typeof e=="function")Lf(e)?(a=Il(e,a),t.tag=1,t=Yo(null,t,e,a,l)):(t.tag=0,t=uf(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Nf){t.tag=11,t=qo(null,t,e,a,l);break e}else if(n===jf){t.tag=14,t=Ho(null,t,e,a,l);break e}}throw t=Bc(e)||e,Error(z(306,t,""))}}return t;case 0:return uf(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Il(a,t.pendingProps),Yo(e,t,a,n,l);case 3:e:{if(Yu(t,t.stateNode.containerInfo),e===null)throw Error(z(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,$c(e,t),On(t,a,null,l);var i=t.memoizedState;if(a=i.cache,dl(t,Ne,a),a!==u.cache&&Jc(t,[Ne],l,!0),zn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Go(e,t,a,l);break e}else if(a!==n){n=bt(Error(z(424)),t),Rn(n),t=Go(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(he=St(e.firstChild),Re=t,ne=!0,Al=null,yt=!0,l=Od(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=al(e,t,l);break e}De(e,t,a,l)}t=t.child}return t;case 26:return Bu(e,t),e===null?(l=cs(t.type,null,t.pendingProps,null))?t.memoizedState=l:ne||(l=t.type,e=t.pendingProps,a=ci(Sl.current).createElement(l),a[we]=t,a[Ie]=e,Ge(a,l,e),qe(a),t.stateNode=a):t.memoizedState=cs(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qc(t),e===null&&ne&&(a=t.stateNode=cv(t.type,t.pendingProps,Sl.current),Re=t,yt=!0,n=he,Hl(t.type)?(Sf=n,he=St(a.firstChild)):he=n),De(e,t,t.pendingProps.children,l),Bu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ne&&((n=a=he)&&(a=Hg(a,t.type,t.pendingProps,yt),a!==null?(t.stateNode=a,Re=t,he=St(a.firstChild),yt=!1,n=!0):n=!1),n||Cl(t)),qc(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,gf(n,u)?a=null:i!==null&&gf(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=If(e,t,$h,null,null,l),Zn._currentValue=n),Bu(e,t),De(e,t,a,l),t.child;case 6:return e===null&&ne&&((e=l=he)&&(l=Dg(l,t.pendingProps,yt),l!==null?(t.stateNode=l,Re=t,he=null,e=!0):e=!1),e||Cl(t)),null;case 13:return mp(e,t,l);case 4:return Yu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,l):De(e,t,a,l),t.child;case 11:return qo(e,t,t.type,t.pendingProps,l);case 7:return De(e,t,t.pendingProps,l),t.child;case 8:return De(e,t,t.pendingProps.children,l),t.child;case 12:return De(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,dl(t,t.type,a.value),De(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,kl(t),n=Ye(n),a=a(n),t.flags|=1,De(e,t,a,l),t.child;case 14:return Ho(e,t,t.type,t.pendingProps,l);case 15:return pp(e,t,t.type,t.pendingProps,l);case 19:return hp(e,t,l);case 31:return ng(e,t,l);case 22:return vp(e,t,l,t.pendingProps);case 24:return kl(t),a=Ye(Ne),e===null?(n=Kf(),n===null&&(n=pe,u=Wf(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},kf(t),dl(t,Ne,n)):(e.lanes&l&&($c(e,t),On(t,null,null,l),zn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),dl(t,Ne,a)):(a=u.cache,dl(t,Ne,a),a!==n.cache&&Jc(t,[Ne],l,!0))),De(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(z(156,t.tag))}function Xt(e){e.flags|=4}function vc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Qp())e.flags|=8192;else throw Wl=Ku,Jf}else e.flags&=-16777217}function Xo(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ov(t))if(Qp())e.flags|=8192;else throw Wl=Ku,Jf}function gu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xs():536870912,e.lanes|=t,Da|=t)}function sn(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function me(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function ig(e,t,l){var a=t.pendingProps;switch(Vf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return me(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Ne),ja(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ia(t)?Xt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,uc())),me(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Xt(t),u!==null?(me(t),Xo(t,u)):(me(t),vc(t,n,null,a,l))):u?u!==e.memoizedState?(Xt(t),me(t),Xo(t,u)):(me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Xt(t),me(t),vc(t,n,e,a,l)),null;case 27:if(Gu(t),l=Sl.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Xt(t);else{if(!a){if(t.stateNode===null)throw Error(z(166));return me(t),null}e=Bt.current,ia(t)?go(t):(e=cv(n,a,l),t.stateNode=e,Xt(t))}return me(t),null;case 5:if(Gu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Xt(t);else{if(!a){if(t.stateNode===null)throw Error(z(166));return me(t),null}if(u=Bt.current,ia(t))go(t);else{var i=ci(Sl.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[we]=t,u[Ie]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Ge(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Xt(t)}}return me(t),vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Xt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(z(166));if(e=Sl.current,ia(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Re,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[we]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||av(e.nodeValue,l)),e||Cl(t,!0)}else e=ci(e).createTextNode(a),e[we]=t,t.stateNode=e}return me(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ia(t),l!==null){if(e===null){if(!a)throw Error(z(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(557));e[we]=t}else Jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),e=!1}else l=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(lt(t),t):(lt(t),null);if(t.flags&128)throw Error(z(558))}return me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ia(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(z(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(z(317));n[we]=t}else Jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),n=!1}else n=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(lt(t),t):(lt(t),null)}return lt(t),t.flags&128?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),gu(t,t.updateQueue),me(t),null);case 4:return ja(),e===null&&br(t.stateNode.containerInfo),me(t),null;case 10:return It(t.type),me(t),null;case 19:if(He(Ee),a=t.memoizedState,a===null)return me(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)sn(a,!1);else{if(Se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=ku(e),u!==null){for(t.flags|=128,sn(a,!1),e=u.updateQueue,t.updateQueue=e,gu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)bd(l,e),l=l.sibling;return ve(Ee,Ee.current&1|2),ne&&Wt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ut()>ti&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ku(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,gu(t,e),sn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ne)return me(t),null}else 2*ut()-a.renderingStartTime>ti&&l!==536870912&&(t.flags|=128,n=!0,sn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ut(),e.sibling=null,l=Ee.current,ve(Ee,n?l&1|2:l&1),ne&&Wt(t,a.treeForkCount),e):(me(t),null);case 22:case 23:return lt(t),$f(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?l&536870912&&!(t.flags&128)&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),l=t.updateQueue,l!==null&&gu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&He(Vl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Ne),me(t),null;case 25:return null;case 30:return null}throw Error(z(156,t.tag))}function cg(e,t){switch(Vf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ne),ja(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Gu(t),null;case 31:if(t.memoizedState!==null){if(lt(t),t.alternate===null)throw Error(z(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(Ee),null;case 4:return ja(),null;case 10:return It(t.type),null;case 22:case 23:return lt(t),$f(),e!==null&&He(Vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ne),null;case 25:return null;default:return null}}function bp(e,t){switch(Vf(t),t.tag){case 3:It(Ne),ja();break;case 26:case 27:case 5:Gu(t);break;case 4:ja();break;case 31:t.memoizedState!==null&&lt(t);break;case 13:lt(t);break;case 19:He(Ee);break;case 10:It(t.type);break;case 22:case 23:lt(t),$f(),e!==null&&He(Vl);break;case 24:It(Ne)}}function tu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(c){re(t,t.return,c)}}function Bl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=t;var s=l,p=c;try{p()}catch(S){re(n,s,S)}}}a=a.next}while(a!==u)}}catch(S){re(t,t.return,S)}}function yp(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Md(t,l)}catch(a){re(e,e.return,a)}}}function _p(e,t,l){l.props=Il(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){re(e,t,a)}}function Mn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){re(e,t,n)}}function Ct(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){re(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){re(e,t,n)}else l.current=null}function Sp(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){re(e,e.return,n)}}function mc(e,t,l){try{var a=e.stateNode;Ng(a,e.type,l,t),a[Ie]=t}catch(n){re(e,e.return,n)}}function Ap(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hl(e.type)||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ap(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Hl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ff(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=kt));else if(a!==4&&(a===27&&Hl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ff(e,t,l),e=e.sibling;e!==null;)ff(e,t,l),e=e.sibling}function ei(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Hl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(ei(e,t,l),e=e.sibling;e!==null;)ei(e,t,l),e=e.sibling}function Ep(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ge(t,a,l),t[we]=e,t[Ie]=l}catch(u){re(e,e.return,u)}}var Kt=!1,Me=!1,gc=!1,Lo=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function fg(e,t){if(e=e.containerInfo,mf=si,e=od(e),Gf(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,c=-1,s=-1,p=0,S=0,A=e,h=null;t:for(;;){for(var y;A!==l||n!==0&&A.nodeType!==3||(c=i+n),A!==u||a!==0&&A.nodeType!==3||(s=i+a),A.nodeType===3&&(i+=A.nodeValue.length),(y=A.firstChild)!==null;)h=A,A=y;for(;;){if(A===e)break t;if(h===l&&++p===n&&(c=i),h===u&&++S===a&&(s=i),(y=A.nextSibling)!==null)break;A=h,h=A.parentNode}A=y}l=c===-1||s===-1?null:{start:c,end:s}}else l=null}l=l||{start:0,end:0}}else l=null;for(hf={focusedElem:e,selectionRange:l},si=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){switch(t=Ue,u=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var O=Il(l.type,n);e=a.getSnapshotBeforeUpdate(O,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(N){re(l,l.return,N)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)bf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(z(163))}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}}function Tp(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Zt(e,l),a&4&&tu(5,l);break;case 1:if(Zt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){re(l,l.return,i)}else{var n=Il(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){re(l,l.return,i)}}a&64&&yp(l),a&512&&Mn(l,l.return);break;case 3:if(Zt(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Md(e,t)}catch(i){re(l,l.return,i)}}break;case 27:t===null&&a&4&&Ep(l);case 26:case 5:Zt(e,l),t===null&&a&4&&Sp(l),a&512&&Mn(l,l.return);break;case 12:Zt(e,l);break;case 31:Zt(e,l),a&4&&xp(e,l);break;case 13:Zt(e,l),a&4&&Mp(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gg.bind(null,l),wg(e,l))));break;case 22:if(a=l.memoizedState!==null||Kt,!a){t=t!==null&&t.memoizedState!==null||Me,n=Kt;var u=Me;Kt=a,(Me=t)&&!u?Vt(e,l,(l.subtreeFlags&8772)!==0):Zt(e,l),Kt=n,Me=u}break;case 30:break;default:Zt(e,l)}}function zp(e){var t=e.alternate;t!==null&&(e.alternate=null,zp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qf(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ye=null,ke=!1;function Lt(e,t,l){for(l=l.child;l!==null;)Op(e,t,l),l=l.sibling}function Op(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(Jn,l)}catch{}switch(l.tag){case 26:Me||Ct(l,t),Lt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Me||Ct(l,t);var a=ye,n=ke;Hl(l.type)&&(ye=l.stateNode,ke=!1),Lt(e,t,l),Bn(l.stateNode),ye=a,ke=n;break;case 5:Me||Ct(l,t);case 6:if(a=ye,n=ke,ye=null,Lt(e,t,l),ye=a,ke=n,ye!==null)if(ke)try{(ye.nodeType===9?ye.body:ye.nodeName==="HTML"?ye.ownerDocument.body:ye).removeChild(l.stateNode)}catch(u){re(l,t,u)}else try{ye.removeChild(l.stateNode)}catch(u){re(l,t,u)}break;case 18:ye!==null&&(ke?(e=ye,ls(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ga(e)):ls(ye,l.stateNode));break;case 4:a=ye,n=ke,ye=l.stateNode.containerInfo,ke=!0,Lt(e,t,l),ye=a,ke=n;break;case 0:case 11:case 14:case 15:Bl(2,l,t),Me||Bl(4,l,t),Lt(e,t,l);break;case 1:Me||(Ct(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&_p(l,t,a)),Lt(e,t,l);break;case 21:Lt(e,t,l);break;case 22:Me=(a=Me)||l.memoizedState!==null,Lt(e,t,l),Me=a;break;default:Lt(e,t,l)}}function xp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ga(e)}catch(l){re(t,t.return,l)}}}function Mp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ga(e)}catch(l){re(t,t.return,l)}}function rg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Lo),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Lo),t;default:throw Error(z(435,e.tag))}}function bu(e,t){var l=rg(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=bg.bind(null,e,a);a.then(n,n)}})}function We(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 27:if(Hl(c.type)){ye=c.stateNode,ke=!1;break e}break;case 5:ye=c.stateNode,ke=!1;break e;case 3:case 4:ye=c.stateNode.containerInfo,ke=!0;break e}c=c.return}if(ye===null)throw Error(z(160));Op(u,i,n),ye=null,ke=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Np(t,e),t=t.sibling}var Ot=null;function Np(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:We(t,e),Ke(e),a&4&&(Bl(3,e,e.return),tu(3,e),Bl(5,e,e.return));break;case 1:We(t,e),Ke(e),a&512&&(Me||l===null||Ct(l,l.return)),a&64&&Kt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ot;if(We(t,e),Ke(e),a&512&&(Me||l===null||Ct(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Fn]||u[we]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ge(u,a,l),u[we]=e,qe(u),a=u;break e;case"link":var i=rs("link","href",n).get(a+(l.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(c,1);break t}}u=n.createElement(a),Ge(u,a,l),n.head.appendChild(u);break;case"meta":if(i=rs("meta","content",n).get(a+(l.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(c,1);break t}}u=n.createElement(a),Ge(u,a,l),n.head.appendChild(u);break;default:throw Error(z(468,a))}u[we]=e,qe(u),a=u}e.stateNode=a}else os(n,e.type,e.stateNode);else e.stateNode=fs(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?os(n,e.type,e.stateNode):fs(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&mc(e,e.memoizedProps,l.memoizedProps)}break;case 27:We(t,e),Ke(e),a&512&&(Me||l===null||Ct(l,l.return)),l!==null&&a&4&&mc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(We(t,e),Ke(e),a&512&&(Me||l===null||Ct(l,l.return)),e.flags&32){n=e.stateNode;try{Ba(n,"")}catch(O){re(e,e.return,O)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,mc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(gc=!0);break;case 6:if(We(t,e),Ke(e),a&4){if(e.stateNode===null)throw Error(z(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(O){re(e,e.return,O)}}break;case 3:if(Hu=null,n=Ot,Ot=fi(t.containerInfo),We(t,e),Ot=n,Ke(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(O){re(e,e.return,O)}gc&&(gc=!1,jp(e));break;case 4:a=Ot,Ot=fi(e.stateNode.containerInfo),We(t,e),Ke(e),Ot=a;break;case 12:We(t,e),Ke(e);break;case 31:We(t,e),Ke(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bu(e,a)));break;case 13:We(t,e),Ke(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xi=ut()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bu(e,a)));break;case 22:n=e.memoizedState!==null;var s=l!==null&&l.memoizedState!==null,p=Kt,S=Me;if(Kt=p||n,Me=S||s,We(t,e),Me=S,Kt=p,Ke(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||s||Kt||Me||Xl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){s=l=t;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var A=s.memoizedProps.style,h=A!=null&&A.hasOwnProperty("display")?A.display:null;c.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(O){re(s,s.return,O)}}}else if(t.tag===6){if(l===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(O){re(s,s.return,O)}}}else if(t.tag===18){if(l===null){s=t;try{var y=s.stateNode;n?as(y,!0):as(s.stateNode,!1)}catch(O){re(s,s.return,O)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,bu(e,l))));break;case 19:We(t,e),Ke(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,bu(e,a)));break;case 30:break;case 21:break;default:We(t,e),Ke(e)}}function Ke(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Ap(a)){l=a;break}a=a.return}if(l==null)throw Error(z(160));switch(l.tag){case 27:var n=l.stateNode,u=hc(e);ei(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(Ba(i,""),l.flags&=-33);var c=hc(e);ei(e,c,i);break;case 3:case 4:var s=l.stateNode.containerInfo,p=hc(e);ff(e,p,s);break;default:throw Error(z(161))}}catch(S){re(e,e.return,S)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Zt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Tp(e,t.alternate,t),t=t.sibling}function Xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bl(4,t,t.return),Xl(t);break;case 1:Ct(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&_p(t,t.return,l),Xl(t);break;case 27:Bn(t.stateNode);case 26:case 5:Ct(t,t.return),Xl(t);break;case 22:t.memoizedState===null&&Xl(t);break;case 30:Xl(t);break;default:Xl(t)}e=e.sibling}}function Vt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:Vt(n,u,l),tu(4,u);break;case 1:if(Vt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(p){re(a,a.return,p)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)xd(s[n],c)}catch(p){re(a,a.return,p)}}l&&i&64&&yp(u),Mn(u,u.return);break;case 27:Ep(u);case 26:case 5:Vt(n,u,l),l&&a===null&&i&4&&Sp(u),Mn(u,u.return);break;case 12:Vt(n,u,l);break;case 31:Vt(n,u,l),l&&i&4&&xp(n,u);break;case 13:Vt(n,u,l),l&&i&4&&Mp(n,u);break;case 22:u.memoizedState===null&&Vt(n,u,l),Mn(u,u.return);break;case 30:break;default:Vt(n,u,l)}t=t.sibling}}function dr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Pn(l))}function pr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pn(e))}function Tt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cp(e,t,l,a),t=t.sibling}function Cp(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Tt(e,t,l,a),n&2048&&tu(9,t);break;case 1:Tt(e,t,l,a);break;case 3:Tt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pn(e)));break;case 12:if(n&2048){Tt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){re(t,t.return,s)}}else Tt(e,t,l,a);break;case 31:Tt(e,t,l,a);break;case 13:Tt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?Tt(e,t,l,a):Nn(e,t):u._visibility&2?Tt(e,t,l,a):(u._visibility|=2,ra(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&dr(i,t);break;case 24:Tt(e,t,l,a),n&2048&&pr(t.alternate,t);break;default:Tt(e,t,l,a)}}function ra(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,c=l,s=a,p=i.flags;switch(i.tag){case 0:case 11:case 15:ra(u,i,c,s,n),tu(8,i);break;case 23:break;case 22:var S=i.stateNode;i.memoizedState!==null?S._visibility&2?ra(u,i,c,s,n):Nn(u,i):(S._visibility|=2,ra(u,i,c,s,n)),n&&p&2048&&dr(i.alternate,i);break;case 24:ra(u,i,c,s,n),n&&p&2048&&pr(i.alternate,i);break;default:ra(u,i,c,s,n)}t=t.sibling}}function Nn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Nn(l,a),n&2048&&dr(a.alternate,a);break;case 24:Nn(l,a),n&2048&&pr(a.alternate,a);break;default:Nn(l,a)}t=t.sibling}}var bn=8192;function ca(e,t,l){if(e.subtreeFlags&bn)for(e=e.child;e!==null;)Bp(e,t,l),e=e.sibling}function Bp(e,t,l){switch(e.tag){case 26:ca(e,t,l),e.flags&bn&&e.memoizedState!==null&&kg(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:ca(e,t,l);break;case 3:case 4:var a=Ot;Ot=fi(e.stateNode.containerInfo),ca(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=bn,bn=16777216,ca(e,t,l),bn=a):ca(e,t,l));break;default:ca(e,t,l)}}function Up(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function dn(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ue=a,Hp(a,e)}Up(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qp(e),e=e.sibling}function qp(e){switch(e.tag){case 0:case 11:case 15:dn(e),e.flags&2048&&Bl(9,e,e.return);break;case 3:dn(e);break;case 12:dn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uu(e)):dn(e);break;default:dn(e)}}function Uu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ue=a,Hp(a,e)}Up(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bl(8,t,t.return),Uu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Uu(t));break;default:Uu(t)}e=e.sibling}}function Hp(e,t){for(;Ue!==null;){var l=Ue;switch(l.tag){case 0:case 11:case 15:Bl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Pn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ue=a;else e:for(l=e;Ue!==null;){a=Ue;var n=a.sibling,u=a.return;if(zp(a),a===l){Ue=null;break e}if(n!==null){n.return=u,Ue=n;break e}Ue=u}}}var og={getCacheForType:function(e){var t=Ye(Ne),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ye(Ne).controller.signal}},sg=typeof WeakMap=="function"?WeakMap:Map,ie=0,pe=null,P=null,te=0,fe=0,tt=null,bl=!1,Wa=!1,vr=!1,nl=0,Se=0,Ul=0,Kl=0,mr=0,nt=0,Da=0,jn=null,$e=null,rf=!1,xi=0,Dp=0,ti=1/0,li=null,zl=null,Ce=0,Ol=null,wa=null,Pt=0,of=0,sf=null,wp=null,Cn=0,df=null;function ft(){return ie&2&&te!==0?te&-te:L.T!==null?gr():Ws()}function Rp(){if(nt===0)if(!(te&536870912)||ne){var e=ou;ou<<=1,!(ou&3932160)&&(ou=262144),nt=e}else nt=536870912;return e=ot.current,e!==null&&(e.flags|=32),nt}function Fe(e,t,l){(e===pe&&(fe===2||fe===9)||e.cancelPendingCommit!==null)&&(Ra(e,0),yl(e,te,nt,!1)),$n(e,l),(!(ie&2)||e!==pe)&&(e===pe&&(!(ie&2)&&(Kl|=l),Se===4&&yl(e,te,nt,!1)),qt(e))}function Yp(e,t,l){if(ie&6)throw Error(z(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||kn(e,t),n=a?vg(e,t):bc(e,t,!0),u=a;do{if(n===0){Wa&&!a&&yl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!dg(l)){n=bc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var c=e;n=jn;var s=c.current.memoizedState.isDehydrated;if(s&&(Ra(c,i).flags|=256),i=bc(c,i,!1),i!==2){if(vr&&!s){c.errorRecoveryDisabledLanes|=u,Kl|=u,n=4;break e}u=$e,$e=n,u!==null&&($e===null?$e=u:$e.push.apply($e,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ra(e,0),yl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(z(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,nt,!bl);break e;case 2:$e=null;break;case 3:case 5:break;default:throw Error(z(329))}if((t&62914560)===t&&(n=xi+300-ut(),10<n)){if(yl(a,t,nt,!bl),hi(a,0,!0)!==0)break e;Pt=t,a.timeoutHandle=uv(Zo.bind(null,a,l,$e,li,rf,t,nt,Kl,Da,bl,u,"Throttled",-0,0),n);break e}Zo(a,l,$e,li,rf,t,nt,Kl,Da,bl,u,null,-0,0)}}break}while(!0);qt(e)}function Zo(e,t,l,a,n,u,i,c,s,p,S,A,h,y){if(e.timeoutHandle=-1,A=t.subtreeFlags,A&8192||(A&16785408)===16785408){A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},Bp(t,u,A);var O=(u&62914560)===u?xi-ut():(u&4194048)===u?Dp-ut():0;if(O=$g(A,O),O!==null){Pt=u,e.cancelPendingCommit=O(Wo.bind(null,e,t,u,l,a,n,i,c,s,S,A,null,h,y)),yl(e,u,i,!p);return}}Wo(e,t,u,l,a,n,i,c,s)}function dg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!rt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yl(e,t,l,a){t&=~mr,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ct(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Ls(e,l,t)}function Mi(){return ie&6?!0:(lu(0),!1)}function hr(){if(P!==null){if(fe===0)var e=P.return;else e=P,$t=aa=null,tr(e),xa=null,Yn=0,e=P;for(;e!==null;)bp(e.alternate,e),e=e.return;P=null}}function Ra(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Bg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pt=0,hr(),pe=e,P=l=Ft(e.current,null),te=t,fe=0,tt=null,bl=!1,Wa=kn(e,t),vr=!1,Da=nt=mr=Kl=Ul=Se=0,$e=jn=null,rf=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ct(a),u=1<<n;t|=e[n],a&=~u}return nl=t,_i(),l}function Gp(e,t){J=null,L.H=Qn,t===Va||t===Ai?(t=Ao(),fe=3):t===Jf?(t=Ao(),fe=4):fe=t===or?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tt=t,P===null&&(Se=1,Iu(e,bt(t,e.current)))}function Qp(){var e=ot.current;return e===null?!0:(te&4194048)===te?_t===null:(te&62914560)===te||te&536870912?e===_t:!1}function Xp(){var e=L.H;return L.H=Qn,e===null?Qn:e}function Lp(){var e=L.A;return L.A=og,e}function ai(){Se=4,bl||(te&4194048)!==te&&ot.current!==null||(Wa=!0),!(Ul&134217727)&&!(Kl&134217727)||pe===null||yl(pe,te,nt,!1)}function bc(e,t,l){var a=ie;ie|=2;var n=Xp(),u=Lp();(pe!==e||te!==t)&&(li=null,Ra(e,t)),t=!1;var i=Se;e:do try{if(fe!==0&&P!==null){var c=P,s=tt;switch(fe){case 8:hr(),i=6;break e;case 3:case 2:case 9:case 6:ot.current===null&&(t=!0);var p=fe;if(fe=0,tt=null,Aa(e,c,s,p),l&&Wa){i=0;break e}break;default:p=fe,fe=0,tt=null,Aa(e,c,s,p)}}pg(),i=Se;break}catch(S){Gp(e,S)}while(!0);return t&&e.shellSuspendCounter++,$t=aa=null,ie=a,L.H=n,L.A=u,P===null&&(pe=null,te=0,_i()),i}function pg(){for(;P!==null;)Zp(P)}function vg(e,t){var l=ie;ie|=2;var a=Xp(),n=Lp();pe!==e||te!==t?(li=null,ti=ut()+500,Ra(e,t)):Wa=kn(e,t);e:do try{if(fe!==0&&P!==null){t=P;var u=tt;t:switch(fe){case 1:fe=0,tt=null,Aa(e,t,u,1);break;case 2:case 9:if(So(u)){fe=0,tt=null,Vo(t);break}t=function(){fe!==2&&fe!==9||pe!==e||(fe=7),qt(e)},u.then(t,t);break e;case 3:fe=7;break e;case 4:fe=5;break e;case 7:So(u)?(fe=0,tt=null,Vo(t)):(fe=0,tt=null,Aa(e,t,u,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var c=P;if(i?ov(i):c.stateNode.complete){fe=0,tt=null;var s=c.sibling;if(s!==null)P=s;else{var p=c.return;p!==null?(P=p,Ni(p)):P=null}break t}}fe=0,tt=null,Aa(e,t,u,5);break;case 6:fe=0,tt=null,Aa(e,t,u,6);break;case 8:hr(),Se=6;break e;default:throw Error(z(462))}}mg();break}catch(S){Gp(e,S)}while(!0);return $t=aa=null,L.H=a,L.A=n,ie=l,P!==null?0:(pe=null,te=0,_i(),Se)}function mg(){for(;P!==null&&!Rm();)Zp(P)}function Zp(e){var t=gp(e.alternate,e,nl);e.memoizedProps=e.pendingProps,t===null?Ni(e):P=t}function Vo(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ro(l,t,t.pendingProps,t.type,void 0,te);break;case 11:t=Ro(l,t,t.pendingProps,t.type.render,t.ref,te);break;case 5:tr(t);default:bp(l,t),t=P=bd(t,nl),t=gp(l,t,nl)}e.memoizedProps=e.pendingProps,t===null?Ni(e):P=t}function Aa(e,t,l,a){$t=aa=null,tr(t),xa=null,Yn=0;var n=t.return;try{if(ag(e,n,t,l,te)){Se=1,Iu(e,bt(l,e.current)),P=null;return}}catch(u){if(n!==null)throw P=n,u;Se=1,Iu(e,bt(l,e.current)),P=null;return}t.flags&32768?(ne||a===1?e=!0:Wa||te&536870912?e=!1:(bl=e=!0,(a===2||a===9||a===3||a===6)&&(a=ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Vp(t,e)):Ni(t)}function Ni(e){var t=e;do{if(t.flags&32768){Vp(t,bl);return}e=t.return;var l=ig(t.alternate,t,nl);if(l!==null){P=l;return}if(t=t.sibling,t!==null){P=t;return}P=t=e}while(t!==null);Se===0&&(Se=5)}function Vp(e,t){do{var l=cg(e.alternate,e);if(l!==null){l.flags&=32767,P=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){P=e;return}P=e=l}while(e!==null);Se=6,P=null}function Wo(e,t,l,a,n,u,i,c,s){e.cancelPendingCommit=null;do ji();while(Ce!==0);if(ie&6)throw Error(z(327));if(t!==null){if(t===e.current)throw Error(z(177));if(u=t.lanes|t.childLanes,u|=Qf,Jm(e,l,u,i,c,s),e===pe&&(P=pe=null,te=0),wa=t,Ol=e,Pt=l,of=u,sf=n,wp=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,yg(Qu,function(){return $p(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=L.T,L.T=null,n=ce.p,ce.p=2,i=ie,ie|=4;try{fg(e,t,l)}finally{ie=i,ce.p=n,L.T=a}}Ce=1,Wp(),Kp(),Jp()}}function Wp(){if(Ce===1){Ce=0;var e=Ol,t=wa,l=(t.flags&13878)!==0;if(t.subtreeFlags&13878||l){l=L.T,L.T=null;var a=ce.p;ce.p=2;var n=ie;ie|=4;try{Np(t,e);var u=hf,i=od(e.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&rd(c.ownerDocument.documentElement,c)){if(s!==null&&Gf(c)){var p=s.start,S=s.end;if(S===void 0&&(S=p),"selectionStart"in c)c.selectionStart=p,c.selectionEnd=Math.min(S,c.value.length);else{var A=c.ownerDocument||document,h=A&&A.defaultView||window;if(h.getSelection){var y=h.getSelection(),O=c.textContent.length,N=Math.min(s.start,O),Z=s.end===void 0?N:Math.min(s.end,O);!y.extend&&N>Z&&(i=Z,Z=N,N=i);var m=vo(c,N),o=vo(c,Z);if(m&&o&&(y.rangeCount!==1||y.anchorNode!==m.node||y.anchorOffset!==m.offset||y.focusNode!==o.node||y.focusOffset!==o.offset)){var v=A.createRange();v.setStart(m.node,m.offset),y.removeAllRanges(),N>Z?(y.addRange(v),y.extend(o.node,o.offset)):(v.setEnd(o.node,o.offset),y.addRange(v))}}}}for(A=[],y=c;y=y.parentNode;)y.nodeType===1&&A.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<A.length;c++){var b=A[c];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}si=!!mf,hf=mf=null}finally{ie=n,ce.p=a,L.T=l}}e.current=t,Ce=2}}function Kp(){if(Ce===2){Ce=0;var e=Ol,t=wa,l=(t.flags&8772)!==0;if(t.subtreeFlags&8772||l){l=L.T,L.T=null;var a=ce.p;ce.p=2;var n=ie;ie|=4;try{Tp(e,t.alternate,t)}finally{ie=n,ce.p=a,L.T=l}}Ce=3}}function Jp(){if(Ce===4||Ce===3){Ce=0,Ym();var e=Ol,t=wa,l=Pt,a=wp;t.subtreeFlags&10256||t.flags&10256?Ce=5:(Ce=0,wa=Ol=null,kp(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),Uf(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(Jn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=L.T,n=ce.p,ce.p=2,L.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{L.T=t,ce.p=n}}Pt&3&&ji(),qt(e),n=e.pendingLanes,l&261930&&n&42?e===df?Cn++:(Cn=0,df=e):Cn=0,lu(0)}}function kp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pn(t)))}function ji(){return Wp(),Kp(),Jp(),$p()}function $p(){if(Ce!==5)return!1;var e=Ol,t=of;of=0;var l=Uf(Pt),a=L.T,n=ce.p;try{ce.p=32>l?32:l,L.T=null,l=sf,sf=null;var u=Ol,i=Pt;if(Ce=0,wa=Ol=null,Pt=0,ie&6)throw Error(z(331));var c=ie;if(ie|=4,qp(u.current),Cp(u,u.current,i,l),ie=c,lu(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(Jn,u)}catch{}return!0}finally{ce.p=n,L.T=a,kp(e,t)}}function Ko(e,t,l){t=bt(l,t),t=nf(e.stateNode,t,2),e=Tl(e,t,2),e!==null&&($n(e,2),qt(e))}function re(e,t,l){if(e.tag===3)Ko(e,e,l);else for(;t!==null;){if(t.tag===3){Ko(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zl===null||!zl.has(a))){e=bt(l,e),l=sp(2),a=Tl(t,l,2),a!==null&&(dp(l,a,t,e),$n(a,2),qt(a));break}}t=t.return}}function yc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new sg;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(vr=!0,n.add(l),e=hg.bind(null,e,t,l),t.then(e,e))}function hg(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,pe===e&&(te&l)===l&&(Se===4||Se===3&&(te&62914560)===te&&300>ut()-xi?!(ie&2)&&Ra(e,0):mr|=l,Da===te&&(Da=0)),qt(e)}function Fp(e,t){t===0&&(t=Xs()),e=la(e,t),e!==null&&($n(e,t),qt(e))}function gg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Fp(e,l)}function bg(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(z(314))}a!==null&&a.delete(t),Fp(e,l)}function yg(e,t){return Cf(e,t)}var ni=null,oa=null,pf=!1,ui=!1,_c=!1,_l=0;function qt(e){e!==oa&&e.next===null&&(oa===null?ni=oa=e:oa=oa.next=e),ui=!0,pf||(pf=!0,Sg())}function lu(e,t){if(!_c&&ui){_c=!0;do for(var l=!1,a=ni;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-ct(42|e)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Jo(a,u))}else u=te,u=hi(a,a===pe?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(u&3)||kn(a,u)||(l=!0,Jo(a,u));a=a.next}while(l);_c=!1}}function _g(){Ip()}function Ip(){ui=pf=!1;var e=0;_l!==0&&Cg()&&(e=_l);for(var t=ut(),l=null,a=ni;a!==null;){var n=a.next,u=Pp(a,t);u===0?(a.next=null,l===null?ni=n:l.next=n,n===null&&(oa=l)):(l=a,(e!==0||u&3)&&(ui=!0)),a=n}Ce!==0&&Ce!==5||lu(e),_l!==0&&(_l=0)}function Pp(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-ct(u),c=1<<i,s=n[i];s===-1?(!(c&l)||c&a)&&(n[i]=Km(c,t)):s<=t&&(e.expiredLanes|=c),u&=~c}if(t=pe,l=te,l=hi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(fe===2||fe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ji(a),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||kn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ji(a),Uf(l)){case 2:case 8:l=Gs;break;case 32:l=Qu;break;case 268435456:l=Qs;break;default:l=Qu}return a=ev.bind(null,e),l=Cf(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ji(a),e.callbackPriority=2,e.callbackNode=null,2}function ev(e,t){if(Ce!==0&&Ce!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ji()&&e.callbackNode!==l)return null;var a=te;return a=hi(e,e===pe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Yp(e,a,t),Pp(e,ut()),e.callbackNode!=null&&e.callbackNode===l?ev.bind(null,e):null)}function Jo(e,t){if(ji())return null;Yp(e,t,!0)}function Sg(){Ug(function(){ie&6?Cf(Ys,_g):Ip()})}function gr(){if(_l===0){var e=Ua;e===0&&(e=ru,ru<<=1,!(ru&261888)&&(ru=256)),_l=e}return _l}function ko(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Tu(""+e)}function $o(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Ag(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=ko((n[Ie]||null).action),i=a.submitter;i&&(t=(t=i[Ie]||null)?ko(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var c=new gi("action","action",null,a,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_l!==0){var s=i?$o(n,i):new FormData(n);lf(l,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?$o(n,i):new FormData(n),lf(l,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var Sc=0;Sc<Zc.length;Sc++){var Ac=Zc[Sc],Eg=Ac.toLowerCase(),Tg=Ac[0].toUpperCase()+Ac.slice(1);xt(Eg,"on"+Tg)}xt(dd,"onAnimationEnd");xt(pd,"onAnimationIteration");xt(vd,"onAnimationStart");xt("dblclick","onDoubleClick");xt("focusin","onFocus");xt("focusout","onBlur");xt(Gh,"onTransitionRun");xt(Qh,"onTransitionStart");xt(Xh,"onTransitionCancel");xt(md,"onTransitionEnd");Ca("onMouseEnter",["mouseout","mouseover"]);Ca("onMouseLeave",["mouseout","mouseover"]);Ca("onPointerEnter",["pointerout","pointerover"]);Ca("onPointerLeave",["pointerout","pointerover"]);Pl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Pl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Pl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Pl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Pl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Pl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xn="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(" "),zg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xn));function tv(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,p=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break e;u=c,n.currentTarget=p;try{u(n)}catch(S){Lu(S)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,p=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break e;u=c,n.currentTarget=p;try{u(n)}catch(S){Lu(S)}n.currentTarget=null,u=s}}}}function I(e,t){var l=t[Dc];l===void 0&&(l=t[Dc]=new Set);var a=e+"__bubble";l.has(a)||(lv(t,e,2,!1),l.add(a))}function Ec(e,t,l){var a=0;t&&(a|=4),lv(l,e,a,t)}var yu="_reactListening"+Math.random().toString(36).slice(2);function br(e){if(!e[yu]){e[yu]=!0,Ks.forEach(function(l){l!=="selectionchange"&&(zg.has(l)||Ec(l,!1,e),Ec(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[yu]||(t[yu]=!0,Ec("selectionchange",!1,t))}}function lv(e,t,l,a){switch(mv(t)){case 2:var n=Pg;break;case 8:n=eb;break;default:n=Ar}l=n.bind(null,t,l,e),n=void 0,!Qc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Tc(e,t,l,a,n){var u=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=pa(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue e}c=c.parentNode}}a=a.return}td(function(){var p=u,S=Df(l),A=[];e:{var h=hd.get(e);if(h!==void 0){var y=gi,O=e;switch(e){case"keypress":if(Ou(l)===0)break e;case"keydown":case"keyup":y=bh;break;case"focusin":O="focus",y=Pi;break;case"focusout":O="blur",y=Pi;break;case"beforeblur":case"afterblur":y=Pi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=ih;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Sh;break;case dd:case pd:case vd:y=rh;break;case md:y=Eh;break;case"scroll":case"scrollend":y=nh;break;case"wheel":y=zh;break;case"copy":case"cut":case"paste":y=sh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=uo;break;case"toggle":case"beforetoggle":y=xh}var N=(t&4)!==0,Z=!N&&(e==="scroll"||e==="scrollend"),m=N?h!==null?h+"Capture":null:h;N=[];for(var o=p,v;o!==null;){var b=o;if(v=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||v===null||m===null||(b=qn(o,m),b!=null&&N.push(Ln(o,b,v))),Z)break;o=o.return}0<N.length&&(h=new y(h,O,null,l,S),A.push({event:h,listeners:N}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",h&&l!==Gc&&(O=l.relatedTarget||l.fromElement)&&(pa(O)||O[Xa]))break e;if((y||h)&&(h=S.window===S?S:(h=S.ownerDocument)?h.defaultView||h.parentWindow:window,y?(O=l.relatedTarget||l.toElement,y=p,O=O?pa(O):null,O!==null&&(Z=Kn(O),N=O.tag,O!==Z||N!==5&&N!==27&&N!==6)&&(O=null)):(y=null,O=p),y!==O)){if(N=ao,b="onMouseLeave",m="onMouseEnter",o="mouse",(e==="pointerout"||e==="pointerover")&&(N=uo,b="onPointerLeave",m="onPointerEnter",o="pointer"),Z=y==null?h:hn(y),v=O==null?h:hn(O),h=new N(b,o+"leave",y,l,S),h.target=Z,h.relatedTarget=v,b=null,pa(S)===p&&(N=new N(m,o+"enter",O,l,S),N.target=v,N.relatedTarget=Z,b=N),Z=b,y&&O)t:{for(N=Og,m=y,o=O,v=0,b=m;b;b=N(b))v++;b=0;for(var x=o;x;x=N(x))b++;for(;0<v-b;)m=N(m),v--;for(;0<b-v;)o=N(o),b--;for(;v--;){if(m===o||o!==null&&m===o.alternate){N=m;break t}m=N(m),o=N(o)}N=null}else N=null;y!==null&&Fo(A,h,y,N,!1),O!==null&&Z!==null&&Fo(A,Z,O,N,!0)}}e:{if(h=p?hn(p):window,y=h.nodeName&&h.nodeName.toLowerCase(),y==="select"||y==="input"&&h.type==="file")var G=ro;else if(fo(h))if(cd)G=wh;else{G=Hh;var M=qh}else y=h.nodeName,!y||y.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?p&&Hf(p.elementType)&&(G=ro):G=Dh;if(G&&(G=G(e,p))){id(A,G,l,S);break e}M&&M(e,h,p),e==="focusout"&&p&&h.type==="number"&&p.memoizedProps.value!=null&&Yc(h,"number",h.value)}switch(M=p?hn(p):window,e){case"focusin":(fo(M)||M.contentEditable==="true")&&(ha=M,Xc=p,An=null);break;case"focusout":An=Xc=ha=null;break;case"mousedown":Lc=!0;break;case"contextmenu":case"mouseup":case"dragend":Lc=!1,mo(A,l,S);break;case"selectionchange":if(Yh)break;case"keydown":case"keyup":mo(A,l,S)}var E;if(Yf)e:{switch(e){case"compositionstart":var Q="onCompositionStart";break e;case"compositionend":Q="onCompositionEnd";break e;case"compositionupdate":Q="onCompositionUpdate";break e}Q=void 0}else ma?nd(e,l)&&(Q="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Q="onCompositionStart");Q&&(ad&&l.locale!=="ko"&&(ma||Q!=="onCompositionStart"?Q==="onCompositionEnd"&&ma&&(E=ld()):(gl=S,wf="value"in gl?gl.value:gl.textContent,ma=!0)),M=ii(p,Q),0<M.length&&(Q=new no(Q,e,null,l,S),A.push({event:Q,listeners:M}),E?Q.data=E:(E=ud(l),E!==null&&(Q.data=E)))),(E=Nh?jh(e,l):Ch(e,l))&&(Q=ii(p,"onBeforeInput"),0<Q.length&&(M=new no("onBeforeInput","beforeinput",null,l,S),A.push({event:M,listeners:Q}),M.data=E)),Ag(A,e,p,l,S)}tv(A,t)})}function Ln(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ii(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=qn(e,l),n!=null&&a.unshift(Ln(e,n,u)),n=qn(e,t),n!=null&&a.push(Ln(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Og(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fo(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var c=l,s=c.alternate,p=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||p===null||(s=p,n?(p=qn(l,u),p!=null&&i.unshift(Ln(l,p,s))):n||(p=qn(l,u),p!=null&&i.push(Ln(l,p,s)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var xg=/\r\n?/g,Mg=/\u0000|\uFFFD/g;function Io(e){return(typeof e=="string"?e:""+e).replace(xg,`
`).replace(Mg,"")}function av(e,t){return t=Io(t),Io(e)===t}function se(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ba(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ba(e,""+a);break;case"className":du(e,"class",a);break;case"tabIndex":du(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":du(e,l,a);break;case"style":ed(e,a,u);break;case"data":if(t!=="object"){du(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Tu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&se(e,t,"name",n.name,n,null),se(e,t,"formEncType",n.formEncType,n,null),se(e,t,"formMethod",n.formMethod,n,null),se(e,t,"formTarget",n.formTarget,n,null)):(se(e,t,"encType",n.encType,n,null),se(e,t,"method",n.method,n,null),se(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Tu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=kt);break;case"onScroll":a!=null&&I("scroll",e);break;case"onScrollEnd":a!=null&&I("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(z(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(z(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Tu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":I("beforetoggle",e),I("toggle",e),Eu(e,"popover",a);break;case"xlinkActuate":Qt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Qt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Qt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Qt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Qt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Qt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Qt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Eu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=lh.get(l)||l,Eu(e,l,a))}}function vf(e,t,l,a,n,u){switch(l){case"style":ed(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(z(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(z(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ba(e,a):(typeof a=="number"||typeof a=="bigint")&&Ba(e,""+a);break;case"onScroll":a!=null&&I("scroll",e);break;case"onScrollEnd":a!=null&&I("scrollend",e);break;case"onClick":a!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Js.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Ie]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Eu(e,l,a)}}}function Ge(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":I("error",e),I("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(z(137,t));default:se(e,t,u,i,l,null)}}n&&se(e,t,"srcSet",l.srcSet,l,null),a&&se(e,t,"src",l.src,l,null);return;case"input":I("invalid",e);var c=u=i=n=null,s=null,p=null;for(a in l)if(l.hasOwnProperty(a)){var S=l[a];if(S!=null)switch(a){case"name":n=S;break;case"type":i=S;break;case"checked":s=S;break;case"defaultChecked":p=S;break;case"value":u=S;break;case"defaultValue":c=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(z(137,t));break;default:se(e,t,a,S,l,null)}}Fs(e,u,c,s,p,i,n,!1);return;case"select":I("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(c=l[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:se(e,t,n,c,l,null)}t=u,l=i,e.multiple=!!a,t!=null?Ta(e,!!a,t,!1):l!=null&&Ta(e,!!a,l,!0);return;case"textarea":I("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(z(91));break;default:se(e,t,i,c,l,null)}Ps(e,a,n,u);return;case"option":for(s in l)if(l.hasOwnProperty(s)&&(a=l[s],a!=null))switch(s){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:se(e,t,s,a,l,null)}return;case"dialog":I("beforetoggle",e),I("toggle",e),I("cancel",e),I("close",e);break;case"iframe":case"object":I("load",e);break;case"video":case"audio":for(a=0;a<Xn.length;a++)I(Xn[a],e);break;case"image":I("error",e),I("load",e);break;case"details":I("toggle",e);break;case"embed":case"source":case"link":I("error",e),I("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(z(137,t));default:se(e,t,p,a,l,null)}return;default:if(Hf(t)){for(S in l)l.hasOwnProperty(S)&&(a=l[S],a!==void 0&&vf(e,t,S,a,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(a=l[c],a!=null&&se(e,t,c,a,l,null))}function Ng(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,s=null,p=null,S=null;for(y in l){var A=l[y];if(l.hasOwnProperty(y)&&A!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":s=A;default:a.hasOwnProperty(y)||se(e,t,y,null,a,A)}}for(var h in a){var y=a[h];if(A=l[h],a.hasOwnProperty(h)&&(y!=null||A!=null))switch(h){case"type":u=y;break;case"name":n=y;break;case"checked":p=y;break;case"defaultChecked":S=y;break;case"value":i=y;break;case"defaultValue":c=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(z(137,t));break;default:y!==A&&se(e,t,h,y,a,A)}}Rc(e,i,c,s,p,S,u,n);return;case"select":y=i=c=h=null;for(u in l)if(s=l[u],l.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":y=s;default:a.hasOwnProperty(u)||se(e,t,u,null,a,s)}for(n in a)if(u=a[n],s=l[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":h=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&se(e,t,n,u,a,s)}t=c,l=i,a=y,h!=null?Ta(e,!!l,h,!1):!!a!=!!l&&(t!=null?Ta(e,!!l,t,!0):Ta(e,!!l,l?[]:"",!1));return;case"textarea":y=h=null;for(c in l)if(n=l[c],l.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:se(e,t,c,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":h=n;break;case"defaultValue":y=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(z(91));break;default:n!==u&&se(e,t,i,n,a,u)}Is(e,h,y);return;case"option":for(var O in l)if(h=l[O],l.hasOwnProperty(O)&&h!=null&&!a.hasOwnProperty(O))switch(O){case"selected":e.selected=!1;break;default:se(e,t,O,null,a,h)}for(s in a)if(h=a[s],y=l[s],a.hasOwnProperty(s)&&h!==y&&(h!=null||y!=null))switch(s){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:se(e,t,s,h,a,y)}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 N in l)h=l[N],l.hasOwnProperty(N)&&h!=null&&!a.hasOwnProperty(N)&&se(e,t,N,null,a,h);for(p in a)if(h=a[p],y=l[p],a.hasOwnProperty(p)&&h!==y&&(h!=null||y!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(z(137,t));break;default:se(e,t,p,h,a,y)}return;default:if(Hf(t)){for(var Z in l)h=l[Z],l.hasOwnProperty(Z)&&h!==void 0&&!a.hasOwnProperty(Z)&&vf(e,t,Z,void 0,a,h);for(S in a)h=a[S],y=l[S],!a.hasOwnProperty(S)||h===y||h===void 0&&y===void 0||vf(e,t,S,h,a,y);return}}for(var m in l)h=l[m],l.hasOwnProperty(m)&&h!=null&&!a.hasOwnProperty(m)&&se(e,t,m,null,a,h);for(A in a)h=a[A],y=l[A],!a.hasOwnProperty(A)||h===y||h==null&&y==null||se(e,t,A,h,a,y)}function Po(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&Po(i)){for(i=0,c=n.responseEnd,a+=1;a<l.length;a++){var s=l[a],p=s.startTime;if(p>c)break;var S=s.transferSize,A=s.initiatorType;S&&Po(A)&&(s=s.responseEnd,i+=S*(s<c?1:(c-p)/(s-p)))}if(--a,t+=8*(u+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mf=null,hf=null;function ci(e){return e.nodeType===9?e:e.ownerDocument}function es(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function nv(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var zc=null;function Cg(){var e=window.event;return e&&e.type==="popstate"?e===zc?!1:(zc=e,!0):(zc=null,!1)}var uv=typeof setTimeout=="function"?setTimeout:void 0,Bg=typeof clearTimeout=="function"?clearTimeout:void 0,ts=typeof Promise=="function"?Promise:void 0,Ug=typeof queueMicrotask=="function"?queueMicrotask:typeof ts<"u"?function(e){return ts.resolve(null).then(e).catch(qg)}:uv;function qg(e){setTimeout(function(){throw e})}function Hl(e){return e==="head"}function ls(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ga(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Bn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Bn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Fn]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Bn(e.ownerDocument.body);l=n}while(l);Ga(t)}function as(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function bf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":bf(l),qf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Hg(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Fn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=St(e.nextSibling),e===null)break}return null}function Dg(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=St(e.nextSibling),e===null))return null;return e}function iv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=St(e.nextSibling),e===null))return null;return e}function yf(e){return e.data==="$?"||e.data==="$~"}function _f(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wg(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function St(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Sf=null;function ns(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return St(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function us(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function cv(e,t,l){switch(t=ci(l),e){case"html":if(e=t.documentElement,!e)throw Error(z(452));return e;case"head":if(e=t.head,!e)throw Error(z(453));return e;case"body":if(e=t.body,!e)throw Error(z(454));return e;default:throw Error(z(451))}}function Bn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qf(e)}var At=new Map,is=new Set;function fi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ul=ce.d;ce.d={f:Rg,r:Yg,D:Gg,C:Qg,L:Xg,m:Lg,X:Vg,S:Zg,M:Wg};function Rg(){var e=ul.f(),t=Mi();return e||t}function Yg(e){var t=La(e);t!==null&&t.tag===5&&t.type==="form"?ep(t):ul.r(e)}var Ka=typeof document>"u"?null:document;function fv(e,t,l){var a=Ka;if(a&&typeof t=="string"&&t){var n=gt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),is.has(n)||(is.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ge(t,"link",e),qe(t),a.head.appendChild(t)))}}function Gg(e){ul.D(e),fv("dns-prefetch",e,null)}function Qg(e,t){ul.C(e,t),fv("preconnect",e,t)}function Xg(e,t,l){ul.L(e,t,l);var a=Ka;if(a&&e&&t){var n='link[rel="preload"][as="'+gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+gt(l.imageSizes)+'"]')):n+='[href="'+gt(e)+'"]';var u=n;switch(t){case"style":u=Ya(e);break;case"script":u=Ja(e)}At.has(u)||(e=be({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(au(u))||t==="script"&&a.querySelector(nu(u))||(t=a.createElement("link"),Ge(t,"link",e),qe(t),a.head.appendChild(t)))}}function Lg(e,t){ul.m(e,t);var l=Ka;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+gt(a)+'"][href="'+gt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ja(e)}if(!At.has(u)&&(e=be({rel:"modulepreload",href:e},t),At.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(nu(u)))return}a=l.createElement("link"),Ge(a,"link",e),qe(a),l.head.appendChild(a)}}}function Zg(e,t,l){ul.S(e,t,l);var a=Ka;if(a&&e){var n=Ea(a).hoistableStyles,u=Ya(e);t=t||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(au(u)))c.loading=5;else{e=be({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(u))&&yr(e,l);var s=i=a.createElement("link");qe(s),Ge(s,"link",e),s._p=new Promise(function(p,S){s.onload=p,s.onerror=S}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,qu(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function Vg(e,t){ul.X(e,t);var l=Ka;if(l&&e){var a=Ea(l).hoistableScripts,n=Ja(e),u=a.get(n);u||(u=l.querySelector(nu(n)),u||(e=be({src:e,async:!0},t),(t=At.get(n))&&_r(e,t),u=l.createElement("script"),qe(u),Ge(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Wg(e,t){ul.M(e,t);var l=Ka;if(l&&e){var a=Ea(l).hoistableScripts,n=Ja(e),u=a.get(n);u||(u=l.querySelector(nu(n)),u||(e=be({src:e,async:!0,type:"module"},t),(t=At.get(n))&&_r(e,t),u=l.createElement("script"),qe(u),Ge(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function cs(e,t,l,a){var n=(n=Sl.current)?fi(n):null;if(!n)throw Error(z(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ya(l.href),l=Ea(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ya(l.href);var u=Ea(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(au(e)))&&!u._p&&(i.instance=u,i.state.loading=5),At.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},At.set(e,l),u||Kg(n,e,l,i.state))),t&&a===null)throw Error(z(528,""));return i}if(t&&a!==null)throw Error(z(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ja(l),l=Ea(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(z(444,e))}}function Ya(e){return'href="'+gt(e)+'"'}function au(e){return'link[rel="stylesheet"]['+e+"]"}function rv(e){return be({},e,{"data-precedence":e.precedence,precedence:null})}function Kg(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ge(t,"link",l),qe(t),e.head.appendChild(t))}function Ja(e){return'[src="'+gt(e)+'"]'}function nu(e){return"script[async]"+e}function fs(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+gt(l.href)+'"]');if(a)return t.instance=a,qe(a),a;var n=be({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),qe(a),Ge(a,"style",n),qu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ya(l.href);var u=e.querySelector(au(n));if(u)return t.state.loading|=4,t.instance=u,qe(u),u;a=rv(l),(n=At.get(n))&&yr(a,n),u=(e.ownerDocument||e).createElement("link"),qe(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Ge(u,"link",a),t.state.loading|=4,qu(u,l.precedence,e),t.instance=u;case"script":return u=Ja(l.src),(n=e.querySelector(nu(u)))?(t.instance=n,qe(n),n):(a=l,(n=At.get(u))&&(a=be({},l),_r(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),qe(n),Ge(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(z(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,qu(a,l.precedence,e));return t.instance}function qu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===t)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function yr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function _r(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Hu=null;function rs(e,t,l){if(Hu===null){var a=new Map,n=Hu=new Map;n.set(l,a)}else n=Hu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Fn]||u[we]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function os(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Jg(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ov(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function kg(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=Ya(a.href),u=t.querySelector(au(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ri.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,qe(u);return}u=t.ownerDocument||t,a=rv(a),(n=At.get(n))&&yr(a,n),u=u.createElement("link"),qe(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Ge(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=ri.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Oc=0;function $g(e,t){return e.stylesheets&&e.count===0&&Du(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Du(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Oc===0&&(Oc=62500*jg());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Du(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Oc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ri(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oi=null;function Du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oi=new Map,t.forEach(Fg,e),oi=null,ri.call(e))}function Fg(e,t){if(!(t.state.loading&4)){var l=oi.get(e);if(l)var a=l.get(null);else{l=new Map,oi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=ri.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Zn={$$typeof:Jt,Provider:null,Consumer:null,_currentValue:Ll,_currentValue2:Ll,_threadCount:0};function Ig(e,t,l,a,n,u,i,c,s){this.tag=1,this.containerInfo=e,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=ki(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ki(0),this.hiddenUpdates=ki(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function sv(e,t,l,a,n,u,i,c,s,p,S,A){return e=new Ig(e,t,l,i,s,p,S,A,c),t=1,u===!0&&(t|=24),u=at(3,null,null,t),e.current=u,u.stateNode=e,t=Wf(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},kf(u),e}function dv(e){return e?(e=ya,e):ya}function pv(e,t,l,a,n,u){n=dv(n),a.context===null?a.context=n:a.pendingContext=n,a=El(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Tl(e,a,t),l!==null&&(Fe(l,e,t),Tn(l,e,t))}function ss(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Sr(e,t){ss(e,t),(e=e.alternate)&&ss(e,t)}function vv(e){if(e.tag===13||e.tag===31){var t=la(e,67108864);t!==null&&Fe(t,e,67108864),Sr(e,67108864)}}function ds(e){if(e.tag===13||e.tag===31){var t=ft();t=Bf(t);var l=la(e,t);l!==null&&Fe(l,e,t),Sr(e,t)}}var si=!0;function Pg(e,t,l,a){var n=L.T;L.T=null;var u=ce.p;try{ce.p=2,Ar(e,t,l,a)}finally{ce.p=u,L.T=n}}function eb(e,t,l,a){var n=L.T;L.T=null;var u=ce.p;try{ce.p=8,Ar(e,t,l,a)}finally{ce.p=u,L.T=n}}function Ar(e,t,l,a){if(si){var n=Af(a);if(n===null)Tc(e,t,a,di,l),ps(e,a);else if(lb(n,e,t,l,a))a.stopPropagation();else if(ps(e,a),t&4&&-1<tb.indexOf(e)){for(;n!==null;){var u=La(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Gl(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-ct(i);c.entanglements[1]|=s,i&=~s}qt(u),!(ie&6)&&(ti=ut()+500,lu(0))}}break;case 31:case 13:c=la(u,2),c!==null&&Fe(c,u,2),Mi(),Sr(u,2)}if(u=Af(a),u===null&&Tc(e,t,a,di,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Tc(e,t,a,null,l)}}function Af(e){return e=Df(e),Er(e)}var di=null;function Er(e){if(di=null,e=pa(e),e!==null){var t=Kn(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=qs(t),e!==null)return e;e=null}else if(l===31){if(e=Hs(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return di=e,null}function mv(e){switch(e){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(Gm()){case Ys:return 2;case Gs:return 8;case Qu:case Qm:return 32;case Qs:return 268435456;default:return 32}default:return 32}}var Ef=!1,xl=null,Ml=null,Nl=null,Vn=new Map,Wn=new Map,ml=[],tb="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 ps(e,t){switch(e){case"focusin":case"focusout":xl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":Vn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wn.delete(t.pointerId)}}function pn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=La(t),t!==null&&vv(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function lb(e,t,l,a,n){switch(t){case"focusin":return xl=pn(xl,e,t,l,a,n),!0;case"dragenter":return Ml=pn(Ml,e,t,l,a,n),!0;case"mouseover":return Nl=pn(Nl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Vn.set(u,pn(Vn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Wn.set(u,pn(Wn.get(u)||null,e,t,l,a,n)),!0}return!1}function hv(e){var t=pa(e.target);if(t!==null){var l=Kn(t);if(l!==null){if(t=l.tag,t===13){if(t=qs(l),t!==null){e.blockedOn=t,$r(e.priority,function(){ds(l)});return}}else if(t===31){if(t=Hs(l),t!==null){e.blockedOn=t,$r(e.priority,function(){ds(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Af(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Gc=a,l.target.dispatchEvent(a),Gc=null}else return t=La(l),t!==null&&vv(t),e.blockedOn=l,!1;t.shift()}return!0}function vs(e,t,l){wu(e)&&l.delete(t)}function ab(){Ef=!1,xl!==null&&wu(xl)&&(xl=null),Ml!==null&&wu(Ml)&&(Ml=null),Nl!==null&&wu(Nl)&&(Nl=null),Vn.forEach(vs),Wn.forEach(vs)}function _u(e,t){e.blockedOn===t&&(e.blockedOn=null,Ef||(Ef=!0,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,ab)))}var Su=null;function ms(e){Su!==e&&(Su=e,Be.unstable_scheduleCallback(Be.unstable_NormalPriority,function(){Su===e&&(Su=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Er(a||l)===null)continue;break}var u=La(l);u!==null&&(e.splice(t,3),t-=3,lf(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ga(e){function t(s){return _u(s,e)}xl!==null&&_u(xl,e),Ml!==null&&_u(Ml,e),Nl!==null&&_u(Nl,e),Vn.forEach(t),Wn.forEach(t);for(var l=0;l<ml.length;l++){var a=ml[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ml.length&&(l=ml[0],l.blockedOn===null);)hv(l),l.blockedOn===null&&ml.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Ie]||null;if(typeof u=="function")i||ms(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Ie]||null)c=i.formAction;else if(Er(n)!==null)continue}else c=i.action;typeof c=="function"?l[a+1]=c:(l.splice(a,3),a-=3),ms(l)}}}function gv(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Tr(e){this._internalRoot=e}Ci.prototype.render=Tr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));var l=t.current,a=ft();pv(l,a,e,t,null,null)};Ci.prototype.unmount=Tr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pv(e.current,2,null,e,null,null),Mi(),t[Xa]=null}};function Ci(e){this._internalRoot=e}Ci.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ws();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ml.length&&t!==0&&t<ml[l].priority;l++);ml.splice(l,0,e),l===0&&hv(e)}};var hs=Bs.version;if(hs!=="19.2.7")throw Error(z(527,hs,"19.2.7"));ce.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=Um(t),e=e!==null?Ds(e):null,e=e===null?null:e.stateNode,e};var nb={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{Jn=Au.inject(nb),it=Au}catch{}}vi.createRoot=function(e,t){if(!Us(e))throw Error(z(299));var l=!1,a="",n=fp,u=rp,i=op;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=sv(e,1,!1,null,null,l,a,null,n,u,i,gv),e[Xa]=t.current,br(e),new Tr(t)};vi.hydrateRoot=function(e,t,l){if(!Us(e))throw Error(z(299));var a=!1,n="",u=fp,i=rp,c=op,s=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(s=l.formState)),t=sv(e,1,!0,t,l??null,a,n,s,u,i,c,gv),t.context=dv(null),l=t.current,a=ft(),a=Bf(a),n=El(a),n.callback=null,Tl(l,n,a),l=a,t.current.lanes=l,$n(t,l),qt(t),e[Xa]=t.current,br(e),new Ci(t)};vi.version="19.2.7";function bv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bv)}catch(e){console.error(e)}}bv(),Os.exports=vi;var ub=Os.exports,yv={},Bi={};(function(){var e={},t="";try{t=location.hash.toString()}catch{}var l=s(t),a=m("initParams");if(a)for(var n in a)typeof l[n]>"u"&&(l[n]=a[n]);Z("initParams",l);var u=!1,i;try{if(u=window.parent!=null&&window!=window.parent,u){window.addEventListener("message",function(o){if(o.source===window.parent){try{var v=JSON.parse(o.data)}catch{return}if(!(!v||!v.eventType))if(v.eventType=="set_custom_style")o.origin==="https://web.telegram.org"&&(i.innerHTML=v.eventData);else if(v.eventType=="reload_iframe"){try{window.parent.postMessage(JSON.stringify({eventType:"iframe_will_reload"}),"*")}catch{}location.reload()}else h(v.eventType,v.eventData)}}),i=document.createElement("style"),document.head.appendChild(i);try{window.parent.postMessage(JSON.stringify({eventType:"iframe_ready",eventData:{reload_supported:!0}}),"*")}catch{}}}catch{}function c(o){try{return o=o.replace(/\+/g,"%20"),decodeURIComponent(o)}catch{return o}}function s(o){o=o.replace(/^#/,"");var v={};if(!o.length)return v;if(o.indexOf("=")<0&&o.indexOf("?")<0)return v._path=c(o),v;var b=o.indexOf("?");if(b>=0){var x=o.substr(0,b);v._path=c(x),o=o.substr(b+1)}var G=p(o);for(var M in G)v[M]=G[M];return v}function p(o){var v={};if(!o.length)return v;var b=o.split("&"),x,G,M,E;for(x=0;x<b.length;x++)G=b[x].split("="),M=c(G[0]),E=G[1]==null?null:c(G[1]),v[M]=E;return v}function S(o,v){var b=o.indexOf("#");if(b<0)return o+"#"+v;var x=o.substr(b+1);return x.indexOf("=")>=0||x.indexOf("?")>=0?o+"&"+v:x.length>0?o+"?"+v:o+v}function A(o,v,b){if(v||(v=function(){}),b===void 0&&(b=""),console.log("[Telegram.WebView] > postEvent",o,b),window.TelegramWebviewProxy!==void 0)TelegramWebviewProxy.postEvent(o,JSON.stringify(b)),v();else if(window.external&&"notify"in window.external)window.external.notify(JSON.stringify({eventType:o,eventData:b})),v();else if(u)try{var x="https://web.telegram.org";x="*",window.parent.postMessage(JSON.stringify({eventType:o,eventData:b}),x),v()}catch(G){v(G)}else v({notAvailable:!0})}function h(o,v){console.log("[Telegram.WebView] < receiveEvent",o,v),y(o,function(b){b(o,v)})}function y(o,v){var b=e[o];if(!(b===void 0||!b.length))for(var x=0;x<b.length;x++)try{v(b[x])}catch{}}function O(o,v){e[o]===void 0&&(e[o]=[]);var b=e[o].indexOf(v);b===-1&&e[o].push(v)}function N(o,v){if(e[o]!==void 0){var b=e[o].indexOf(v);b!==-1&&e[o].splice(b,1)}}function Z(o,v){try{return window.sessionStorage.setItem("__telegram__"+o,JSON.stringify(v)),!0}catch{}return!1}function m(o){try{return JSON.parse(window.sessionStorage.getItem("__telegram__"+o))}catch{}return null}window.Telegram||(window.Telegram={}),window.Telegram.WebView={initParams:l,isIframe:u,onEvent:O,offEvent:N,postEvent:A,receiveEvent:h,callEventCallbacks:y},window.Telegram.Utils={urlSafeDecode:c,urlParseQueryString:p,urlParseHashParams:s,urlAppendHashParams:S,sessionStorageSet:Z,sessionStorageGet:m},window.TelegramGameProxy_receiveEvent=h,window.TelegramGameProxy={receiveEvent:h}})();(function(){var e=window.Telegram.Utils,t=window.Telegram.WebView,l=t.initParams,a=t.isIframe,n={},u="",i={},c={},s="light",p="6.0",S="unknown",A=!0,h=!1,y=!1,O="bg_color",N="bg_color",Z=null;if(l.tgWebAppData&&l.tgWebAppData.length){u=l.tgWebAppData,i=e.urlParseQueryString(u);for(var m in i){var o=i[m];try{(o.substr(0,1)=="{"&&o.substr(-1)=="}"||o.substr(0,1)=="["&&o.substr(-1)=="]")&&(i[m]=JSON.parse(o))}catch{}}}var v=e.sessionStorageGet("themeParams");if(l.tgWebAppThemeParams&&l.tgWebAppThemeParams.length){var b=l.tgWebAppThemeParams;try{var x=JSON.parse(b);x&&Ui(x)}catch{}}v&&Ui(v);var G=e.sessionStorageGet("defaultColors");if(l.tgWebAppDefaultColors&&l.tgWebAppDefaultColors.length){var M=l.tgWebAppDefaultColors;try{var E=JSON.parse(M);E&&zr(E)}catch{}}G&&zr(G),l.tgWebAppVersion&&(p=l.tgWebAppVersion),l.tgWebAppPlatform&&(S=l.tgWebAppPlatform);var Q=e.sessionStorageGet("isFullscreen");l.tgWebAppFullscreen&&st(!0),Q&&st(Q=="yes");var V=e.sessionStorageGet("isOrientationLocked");V&&Dl(V=="yes");function Ve(f,r){r.theme_params&&(Ui(r.theme_params),window.Telegram.WebApp.MainButton.setParams({}),window.Telegram.WebApp.SecondaryButton.setParams({}),Ri(),Yi(),Gi(),q("themeChanged"))}var Et=window.innerHeight;function uu(f,r){r.height&&(window.removeEventListener("resize",iu),qi(r))}function iu(f){Et!=window.innerHeight&&(Et=window.innerHeight,q("viewportChanged",{isStateStable:!0}))}function ka(f,r){r&&_v(r)}function U(f,r){r&&Sv(r)}function $(f,r){r.is_visible?(A=!0,q("activated")):(A=!1,q("deactivated"))}function k(f){if(!(f.metaKey||f.ctrlKey)){for(var r=f.target;r.tagName!="A"&&r.parentNode;)r=r.parentNode;r.tagName=="A"&&r.target!="_blank"&&(r.protocol=="http:"||r.protocol=="https:")&&r.hostname=="t.me"&&(n.openTgLink(r.href),f.preventDefault())}}function ue(f){return f.toString().replace(/^\s+|\s+$/g,"")}function q(f){var r=Array.prototype.slice.call(arguments);f=r.shift(),t.callEventCallbacks("webview:"+f,function(d){d.apply(n,r)})}function Ht(f,r){t.onEvent("webview:"+f,r)}function Dt(f,r){t.offEvent("webview:"+f,r)}function Qe(f,r){var d=document.documentElement;d&&d.style&&d.style.setProperty&&d.style.setProperty("--tg-"+f,r)}function st(f){h=!!f,e.sessionStorageSet("isFullscreen",h?"yes":"no")}function Dl(f){y=!!f,e.sessionStorageSet("isOrientationLocked",y?"yes":"no")}function Ui(f){f.bg_color=="#1c1c1d"&&f.bg_color==f.secondary_bg_color&&(f.secondary_bg_color="#2c2c2e");var r;for(var d in f)(r=na(f[d]))&&(c[d]=r,d=="bg_color"&&(s=Rv(r)?"dark":"light",Qe("color-scheme",s)),d="theme-"+d.split("_").join("-"),Qe(d,r));e.sessionStorageSet("themeParams",c)}function zr(f){s=="dark"?(f.bg_dark_color&&(O=f.bg_dark_color),f.header_dark_color&&(N=null,Z=f.header_dark_color)):(f.bg_color&&(O=f.bg_color),f.header_color&&(N=null,Z=f.header_color)),e.sessionStorageSet("defaultColors",f)}var Mt={};function Or(f){for(var r=100;--r;){for(var d="",_="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",T=_.length,j=0;j<f;j++)d+=_[Math.floor(Math.random()*T)];if(!Mt[d])return Mt[d]={},d}throw Error("WebAppCallbackIdGenerateFailed")}var $a=!1,Fa=!1,xr=!0;function qi(f){typeof f<"u"&&(xr=!!f.is_expanded,$a=f.height,f.is_state_stable&&(Fa=f.height),q("viewportChanged",{isStateStable:!!f.is_state_stable}));var r,d;$a!==!1?r=$a-et+"px":r=et?"calc(100vh - "+et+"px)":"100vh",Fa!==!1?d=Fa-et+"px":d=et?"calc(100vh - "+et+"px)":"100vh",Qe("viewport-height",r),Qe("viewport-stable-height",d)}var wt={top:0,bottom:0,left:0,right:0};function _v(f){typeof f<"u"&&(typeof f.top<"u"&&(wt.top=f.top),typeof f.bottom<"u"&&(wt.bottom=f.bottom),typeof f.left<"u"&&(wt.left=f.left),typeof f.right<"u"&&(wt.right=f.right),q("safeAreaChanged")),Qe("safe-area-inset-top",wt.top+"px"),Qe("safe-area-inset-bottom",wt.bottom+"px"),Qe("safe-area-inset-left",wt.left+"px"),Qe("safe-area-inset-right",wt.right+"px")}var Rt={top:0,bottom:0,left:0,right:0};function Sv(f){typeof f<"u"&&(typeof f.top<"u"&&(Rt.top=f.top),typeof f.bottom<"u"&&(Rt.bottom=f.bottom),typeof f.left<"u"&&(Rt.left=f.left),typeof f.right<"u"&&(Rt.right=f.right),q("contentSafeAreaChanged")),Qe("content-safe-area-inset-top",Rt.top+"px"),Qe("content-safe-area-inset-bottom",Rt.bottom+"px"),Qe("content-safe-area-inset-left",Rt.left+"px"),Qe("content-safe-area-inset-right",Rt.right+"px")}var Hi=!1;function Av(f){if(!K("6.2")){console.warn("[Telegram.WebApp] Closing confirmation is not supported in version "+p);return}Hi=!!f,t.postEvent("web_app_setup_closing_behavior",!1,{need_confirmation:Hi})}var Di=!0;function Ev(f){if(!K("7.7")){console.warn("[Telegram.WebApp] Changing swipes behavior is not supported in version "+p);return}Di=!!f,t.postEvent("web_app_setup_swipe_behavior",!1,{allow_vertical_swipe:Di})}function Tv(f,r){st(r.is_fullscreen),q("fullscreenChanged")}function zv(f,r){r.error=="ALREADY_FULLSCREEN"&&!h&&st(!0),q("fullscreenFailed",{error:r.error})}function Ov(f){if(!K("8.0")){console.warn("[Telegram.WebApp] Orientation locking is not supported in version "+p);return}Dl(f),t.postEvent("web_app_toggle_orientation_lock",!1,{locked:y})}var Ia=[];function xv(f,r){q("homeScreenAdded")}function Mv(f,r){var d=r.status||"unknown";if(Ia.length>0){for(var _=0;_<Ia.length;_++){var T=Ia[_];T(d)}Ia=[]}q("homeScreenChecked",{status:d})}var il=!1;function Nv(f,r){if(il){var d=il;il=!1,d.callback&&d.callback(!0),q("shareMessageSent")}}function jv(f,r){if(il){var d=il;il=!1,d.callback&&d.callback(!1),q("shareMessageFailed",{error:r.error})}}var cl=!1;function Cv(f,r){if(cl){var d=cl;cl=!1,d.callback&&d.callback(!0),q("emojiStatusSet")}}function Bv(f,r){if(cl){var d=cl;cl=!1,d.callback&&d.callback(!1),q("emojiStatusFailed",{error:r.error})}}var Pa=!1;function Uv(f,r){if(Pa){var d=Pa;Pa=!1,d.callback&&d.callback(r.status=="allowed"),q("emojiStatusAccessRequested",{status:r.status})}}var Yt=!1;function qv(){return N=="secondary_bg_color"?c.secondary_bg_color:N=="bg_color"?c.bg_color:Z}function Hv(f){if(!K("6.1")){console.warn("[Telegram.WebApp] Header color is not supported in version "+p);return}K("6.9")||(c.bg_color&&c.bg_color==f?f="bg_color":c.secondary_bg_color&&c.secondary_bg_color==f&&(f="secondary_bg_color"));var r=null,d=null;if(f=="bg_color"||f=="secondary_bg_color")d=f;else if(K("6.9")&&(r=na(f),!r))throw console.error("[Telegram.WebApp] Header color format is invalid",f),Error("WebAppHeaderColorInvalid");if(!K("6.9")&&d!="bg_color"&&d!="secondary_bg_color")throw console.error("[Telegram.WebApp] Header color key should be one of Telegram.WebApp.themeParams.bg_color, Telegram.WebApp.themeParams.secondary_bg_color, 'bg_color', 'secondary_bg_color'",f),Error("WebAppHeaderColorKeyInvalid");N=d,Z=r,Ri()}var Mr=null,wi=null;function Ri(){(Mr!=N||wi!=Z)&&(Mr=N,wi=Z,wi?t.postEvent("web_app_set_header_color",!1,{color:Z}):t.postEvent("web_app_set_header_color",!1,{color_key:N}))}function Nr(){return O=="secondary_bg_color"?c.secondary_bg_color:O=="bg_color"?c.bg_color:O}function Dv(f){if(!K("6.1")){console.warn("[Telegram.WebApp] Background color is not supported in version "+p);return}var r;if(f=="bg_color"||f=="secondary_bg_color")r=f;else if(r=na(f),!r)throw console.error("[Telegram.WebApp] Background color format is invalid",f),Error("WebAppBackgroundColorInvalid");O=r,Yi()}var jr=null;function Yi(){var f=Nr();jr!=f&&(jr=f,t.postEvent("web_app_set_background_color",!1,{color:f}))}var en="bottom_bar_bg_color";function tn(){return en=="bottom_bar_bg_color"?c.bottom_bar_bg_color||c.secondary_bg_color||"#ffffff":en=="secondary_bg_color"?c.secondary_bg_color:en=="bg_color"?c.bg_color:en}function wv(f){if(!K("7.10")){console.warn("[Telegram.WebApp] Bottom bar color is not supported in version "+p);return}var r;if(f=="bg_color"||f=="secondary_bg_color"||f=="bottom_bar_bg_color")r=f;else if(r=na(f),!r)throw console.error("[Telegram.WebApp] Bottom bar color format is invalid",f),Error("WebAppBottomBarColorInvalid");en=r,Gi(),window.Telegram.WebApp.SecondaryButton.setParams({})}var Cr=null;function Gi(){var f=tn();Cr!=f&&(Cr=f,t.postEvent("web_app_set_bottom_bar_color",!1,{color:f})),l.tgWebAppDebug&&Hr()}function na(f){f+="";var r;if(r=/^\s*#([0-9a-f]{6})\s*$/i.exec(f))return"#"+r[1].toLowerCase();if(r=/^\s*#([0-9a-f])([0-9a-f])([0-9a-f])\s*$/i.exec(f))return("#"+r[1]+r[1]+r[2]+r[2]+r[3]+r[3]).toLowerCase();if(r=/^\s*rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)\s*$/.exec(f)){var d=parseInt(r[1]),_=parseInt(r[2]),T=parseInt(r[3]);return d=(d<16?"0":"")+d.toString(16),_=(_<16?"0":"")+_.toString(16),T=(T<16?"0":"")+T.toString(16),"#"+d+_+T}return!1}function Rv(f){f=f.replace(/[\s#]/g,""),f.length==3&&(f=f[0]+f[0]+f[1]+f[1]+f[2]+f[2]);var r=parseInt(f.substr(0,2),16),d=parseInt(f.substr(2,2),16),_=parseInt(f.substr(4,2),16),T=Math.sqrt(.299*(r*r)+.587*(d*d)+.114*(_*_));return T<120}function Yv(f,r){typeof f!="string"&&(f=""),typeof r!="string"&&(r=""),f=f.replace(/^\s+|\s+$/g,"").split("."),r=r.replace(/^\s+|\s+$/g,"").split(".");var d=Math.max(f.length,r.length),_,T,j;for(_=0;_<d;_++)if(T=parseInt(f[_])||0,j=parseInt(r[_])||0,T!=j)return T>j?1:-1;return 0}function K(f){return Yv(p,f)>=0}function Gv(f){if(window.Blob)try{return new Blob([f]).size}catch{}for(var r=f.length,d=f.length-1;d>=0;d--){var _=f.charCodeAt(d);_>127&&_<=2047?r++:_>2047&&_<=65535&&(r+=2),_>=56320&&_<=57343&&d--}return r}var Qv=function(){var f=!1,r={};Object.defineProperty(r,"isVisible",{set:function(Y){le({is_visible:Y})},get:function(){return f},enumerable:!0});var d=null;t.onEvent("back_button_pressed",_);function _(){q("backButtonClicked")}function T(){return{is_visible:f}}function j(Y){return typeof Y>"u"&&(Y=T()),JSON.stringify(Y)}function w(){return K("6.1")?!0:(console.warn("[Telegram.WebApp] BackButton is not supported in version "+p),!1)}function H(){var Y=T(),ee=j(Y);d!==ee&&(d=ee,t.postEvent("web_app_setup_back_button",!1,Y))}function le(Y){return w()&&(typeof Y.is_visible<"u"&&(f=!!Y.is_visible),H()),r}return r.onClick=function(Y){return w()&&Ht("backButtonClicked",Y),r},r.offClick=function(Y){return w()&&Dt("backButtonClicked",Y),r},r.show=function(){return le({is_visible:!0})},r.hide=function(){return le({is_visible:!1})},r}(),dt=null,Qi={},et=0;if(l.tgWebAppDebug){dt=document.createElement("tg-bottom-bar");var Br={display:"flex",gap:"7px",font:"600 14px/18px sans-serif",width:"100%",background:tn(),position:"fixed",left:"0",right:"0",bottom:"0",margin:"0",padding:"7px",textAlign:"center",boxSizing:"border-box",zIndex:"10000"};for(var Ur in Br)dt.style[Ur]=Br[Ur];document.addEventListener("DOMContentLoaded",function f(r){document.removeEventListener("DOMContentLoaded",f),document.body.appendChild(dt)});var qr=document.createElement("style");qr.innerHTML='tg-bottom-button.shine { position: relative; overflow: hidden; } tg-bottom-button.shine:before { content:""; position: absolute; top: 0; width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .2), transparent); animation: tg-bottom-button-shine 5s ease-in-out infinite; } @-webkit-keyframes tg-bottom-button-shine { 0% {left: -100%;} 12%,100% {left: 100%}} @keyframes tg-bottom-button-shine { 0% {left: -100%;} 12%,100% {left: 100%}}',dt.appendChild(qr)}function Hr(){var f=Qi.main._bottomButton,r=Qi.secondary._bottomButton;f.isVisible||r.isVisible?(dt.style.display="flex",et=58,f.isVisible&&r.isVisible&&(r.position=="top"?(dt.style.flexDirection="column-reverse",et+=51):r.position=="bottom"?(dt.style.flexDirection="column",et+=51):r.position=="left"?dt.style.flexDirection="row-reverse":r.position=="right"&&(dt.style.flexDirection="row"))):(dt.style.display="none",et=0),dt.style.background=tn(),document.documentElement&&(document.documentElement.style.boxSizing="border-box",document.documentElement.style.paddingBottom=et+"px"),qi()}var Dr=function(f){var r=f=="main";if(r)var d="web_app_setup_main_button",_="main_button_pressed",T="mainButtonClicked",j="Continue",w=function(){return c.button_color||"#2481cc"},H=function(){return c.button_text_color||"#ffffff"};else var d="web_app_setup_secondary_button",_="secondary_button_pressed",T="secondaryButtonClicked",j="Cancel",w=function(){return tn()},H=function(){return c.button_color||"#2481cc"};var le=!1,Y=!0,ee=!1,oe=!1,F=f,C=j,D=!1,X=!1,ze="left",R={};Object.defineProperty(R,"type",{get:function(){return F},enumerable:!0}),Object.defineProperty(R,"text",{set:function(B){R.setParams({text:B})},get:function(){return C},enumerable:!0}),Object.defineProperty(R,"color",{set:function(B){R.setParams({color:B})},get:function(){return D||w()},enumerable:!0}),Object.defineProperty(R,"textColor",{set:function(B){R.setParams({text_color:B})},get:function(){return X||H()},enumerable:!0}),Object.defineProperty(R,"isVisible",{set:function(B){R.setParams({is_visible:B})},get:function(){return le},enumerable:!0}),Object.defineProperty(R,"isProgressVisible",{get:function(){return oe},enumerable:!0}),Object.defineProperty(R,"isActive",{set:function(B){R.setParams({is_active:B})},get:function(){return Y},enumerable:!0}),Object.defineProperty(R,"hasShineEffect",{set:function(B){R.setParams({has_shine_effect:B})},get:function(){return ee},enumerable:!0}),r||Object.defineProperty(R,"position",{set:function(B){R.setParams({position:B})},get:function(){return ze},enumerable:!0});var Ae=null;t.onEvent(_,Yr);var ae=null;if(l.tgWebAppDebug){ae=document.createElement("tg-bottom-button");var Oe={display:"none",width:"100%",height:"44px",borderRadius:"0",background:"no-repeat right center",padding:"13px 15px",textAlign:"center",boxSizing:"border-box"};for(var fl in Oe)ae.style[fl]=Oe[fl];dt.appendChild(ae),ae.addEventListener("click",Yr,!1),ae._bottomButton=R,Qi[f]=ae}function Yr(){Y&&q(T)}function Gr(){var B=R.color,Gt=R.textColor;if(le){var ua={is_visible:!0,is_active:Y,is_progress_visible:oe,text:C,color:B,text_color:Gt,has_shine_effect:ee&&Y&&!oe};r||(ua.position=ze)}else var ua={is_visible:!1};return ua}function im(B){return typeof B>"u"&&(B=Gr()),JSON.stringify(B)}function Li(){var B=Gr(),Gt=im(B);Ae!==Gt&&(Ae=Gt,t.postEvent(d,!1,B),l.tgWebAppDebug&&cm(B))}function cm(B){B.is_visible?(ae.style.display="block",ae.style.opacity=B.is_active?"1":"0.8",ae.style.cursor=B.is_active?"pointer":"auto",ae.disabled=!B.is_active,ae.innerText=B.text,ae.className=B.has_shine_effect?"shine":"",ae.style.backgroundImage=B.is_progress_visible?"url('data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewport="0 0 48 48" width="48px" height="48px"><circle cx="50%" cy="50%" stroke="'+B.text_color+'" stroke-width="2.25" stroke-linecap="round" fill="none" stroke-dashoffset="106" r="9" stroke-dasharray="56.52" rotate="-90"><animate attributeName="stroke-dashoffset" attributeType="XML" dur="360s" from="0" to="12500" repeatCount="indefinite"></animate><animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="1s" from="-90 24 24" to="630 24 24" repeatCount="indefinite"></animateTransform></circle></svg>')+"')":"none",ae.style.backgroundColor=B.color,ae.style.color=B.text_color):ae.style.display="none",Hr()}function fm(B){if(typeof B.text<"u"){var Gt=ue(B.text);if(!Gt.length)throw console.error("[Telegram.WebApp] Bottom button text is required",B.text),Error("WebAppBottomButtonParamInvalid");if(Gt.length>64)throw console.error("[Telegram.WebApp] Bottom button text is too long",Gt),Error("WebAppBottomButtonParamInvalid");C=Gt}if(typeof B.color<"u")if(B.color===!1||B.color===null)D=!1;else{var ua=na(B.color);if(!ua)throw console.error("[Telegram.WebApp] Bottom button color format is invalid",B.color),Error("WebAppBottomButtonParamInvalid");D=ua}if(typeof B.text_color<"u")if(B.text_color===!1||B.text_color===null)X=!1;else{var Qr=na(B.text_color);if(!Qr)throw console.error("[Telegram.WebApp] Bottom button text color format is invalid",B.text_color),Error("WebAppBottomButtonParamInvalid");X=Qr}if(typeof B.is_visible<"u"){if(B.is_visible&&!R.text.length)throw console.error("[Telegram.WebApp] Bottom button text is required"),Error("WebAppBottomButtonParamInvalid");le=!!B.is_visible}if(typeof B.has_shine_effect<"u"&&(ee=!!B.has_shine_effect),!r&&typeof B.position<"u"){if(B.position!="left"&&B.position!="right"&&B.position!="top"&&B.position!="bottom")throw console.error("[Telegram.WebApp] Bottom button posiition is invalid",B.position),Error("WebAppBottomButtonParamInvalid");ze=B.position}return typeof B.is_active<"u"&&(Y=!!B.is_active),Li(),R}return R.setText=function(B){return R.setParams({text:B})},R.onClick=function(B){return Ht(T,B),R},R.offClick=function(B){return Dt(T,B),R},R.show=function(){return R.setParams({is_visible:!0})},R.hide=function(){return R.setParams({is_visible:!1})},R.enable=function(){return R.setParams({is_active:!0})},R.disable=function(){return R.setParams({is_active:!1})},R.showProgress=function(B){return Y=!!B,oe=!0,Li(),R},R.hideProgress=function(){return R.isActive||(Y=!0),oe=!1,Li(),R},R.setParams=fm,R},Xv=Dr("main"),Lv=Dr("secondary"),wr=function(){var f=!1,r={};Object.defineProperty(r,"isVisible",{set:function(Y){le({is_visible:Y})},get:function(){return f},enumerable:!0});var d=null;t.onEvent("settings_button_pressed",_);function _(){q("settingsButtonClicked")}function T(){return{is_visible:f}}function j(Y){return typeof Y>"u"&&(Y=T()),JSON.stringify(Y)}function w(){return K("6.10")?!0:(console.warn("[Telegram.WebApp] SettingsButton is not supported in version "+p),!1)}function H(){var Y=T(),ee=j(Y);d!==ee&&(d=ee,t.postEvent("web_app_setup_settings_button",!1,Y))}function le(Y){return w()&&(typeof Y.is_visible<"u"&&(f=!!Y.is_visible),H()),r}return r.onClick=function(Y){return w()&&Ht("settingsButtonClicked",Y),r},r.offClick=function(Y){return w()&&Dt("settingsButtonClicked",Y),r},r.show=function(){return le({is_visible:!0})},r.hide=function(){return le({is_visible:!1})},r}(),Zv=function(){var f={};function r(d){if(!K("6.1"))return console.warn("[Telegram.WebApp] HapticFeedback is not supported in version "+p),f;if(d.type=="impact"){if(d.impact_style!="light"&&d.impact_style!="medium"&&d.impact_style!="heavy"&&d.impact_style!="rigid"&&d.impact_style!="soft")throw console.error("[Telegram.WebApp] Haptic impact style is invalid",d.impact_style),Error("WebAppHapticImpactStyleInvalid")}else if(d.type=="notification"){if(d.notification_type!="error"&&d.notification_type!="success"&&d.notification_type!="warning")throw console.error("[Telegram.WebApp] Haptic notification type is invalid",d.notification_type),Error("WebAppHapticNotificationTypeInvalid")}else if(d.type!="selection_change")throw console.error("[Telegram.WebApp] Haptic feedback type is invalid",d.type),Error("WebAppHapticFeedbackTypeInvalid");return t.postEvent("web_app_trigger_haptic_feedback",!1,d),f}return f.impactOccurred=function(d){return r({type:"impact",impact_style:d})},f.notificationOccurred=function(d){return r({type:"notification",notification_type:d})},f.selectionChanged=function(){return r({type:"selection_change"})},f}(),Vv=function(){var f={};function r(d,_,T){if(!K("6.9"))throw console.error("[Telegram.WebApp] CloudStorage is not supported in version "+p),Error("WebAppMethodUnsupported");return Xi(d,_,T),f}return f.setItem=function(d,_,T){return r("saveStorageValue",{key:d,value:_},T)},f.getItem=function(d,_){return f.getItems([d],_?function(T,j){T?_(T):_(null,j[d])}:null)},f.getItems=function(d,_){return r("getStorageValues",{keys:d},_)},f.removeItem=function(d,_){return f.removeItems([d],_)},f.removeItems=function(d,_){return r("deleteStorageValues",{keys:d},_)},f.getKeys=function(d){return r("getStorageKeys",{},d)},f}(),Wv=function(){var f=!1,r=!1,d="unknown",_=!1,T=!1,j=!1,w="",H={};Object.defineProperty(H,"isInited",{get:function(){return f},enumerable:!0}),Object.defineProperty(H,"isBiometricAvailable",{get:function(){return f&&r},enumerable:!0}),Object.defineProperty(H,"biometricType",{get:function(){return d||"unknown"},enumerable:!0}),Object.defineProperty(H,"isAccessRequested",{get:function(){return _},enumerable:!0}),Object.defineProperty(H,"isAccessGranted",{get:function(){return _&&T},enumerable:!0}),Object.defineProperty(H,"isBiometricTokenSaved",{get:function(){return j},enumerable:!0}),Object.defineProperty(H,"deviceId",{get:function(){return w||""},enumerable:!0});var le={callbacks:[]},Y=!1,ee=!1,oe=!1;t.onEvent("biometry_info_received",F),t.onEvent("biometry_auth_requested",C),t.onEvent("biometry_token_updated",D);function F(R,Ae){if(f=!0,Ae.available?(r=!0,d=Ae.type||"unknown",Ae.access_requested?(_=!0,T=!!Ae.access_granted,j=!!Ae.token_saved):(_=!1,T=!1,j=!1)):(r=!1,d="unknown",_=!1,T=!1,j=!1),w=Ae.device_id||"",le.callbacks.length>0){for(var ae=0;ae<le.callbacks.length;ae++){var Oe=le.callbacks[ae];Oe()}le.callbacks=[]}if(Y){var fl=Y;Y=!1,fl.callback&&fl.callback(T)}q("biometricManagerUpdated")}function C(R,Ae){var ae=Ae.status=="authorized",Oe=Ae.token||"";if(ee){var fl=ee;ee=!1,fl.callback&&fl.callback(ae,ae?Oe:null)}q("biometricAuthRequested",ae?{isAuthenticated:!0,biometricToken:Oe}:{isAuthenticated:!1})}function D(R,Ae){var ae=!1;if(r&&_&&(Ae.status=="updated"?(j=!0,ae=!0):Ae.status=="removed"&&(j=!1,ae=!0)),oe){var Oe=oe;oe=!1,Oe.callback&&Oe.callback(ae)}q("biometricTokenUpdated",{isUpdated:ae})}function X(){return K("7.2")?!0:(console.warn("[Telegram.WebApp] BiometricManager is not supported in version "+p),!1)}function ze(){if(!f)throw console.error("[Telegram.WebApp] BiometricManager should be inited before using."),Error("WebAppBiometricManagerNotInited");return!0}return H.init=function(R){return!X()||f||(R&&le.callbacks.push(R),t.postEvent("web_app_biometry_get_info",!1)),H},H.requestAccess=function(R,Ae){if(!X())return H;if(ze(),!r)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(Y)throw console.error("[Telegram.WebApp] Access is already requested"),Error("WebAppBiometricManagerAccessRequested");var ae={};if(typeof R.reason<"u"){var Oe=ue(R.reason);if(Oe.length>128)throw console.error("[Telegram.WebApp] Biometric reason is too long",Oe),Error("WebAppBiometricRequestAccessParamInvalid");Oe.length>0&&(ae.reason=Oe)}return Y={callback:Ae},t.postEvent("web_app_biometry_request_access",!1,ae),H},H.authenticate=function(R,Ae){if(!X())return H;if(ze(),!r)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!T)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(ee)throw console.error("[Telegram.WebApp] Authentication request is already in progress."),Error("WebAppBiometricManagerAuthenticationRequested");var ae={};if(typeof R.reason<"u"){var Oe=ue(R.reason);if(Oe.length>128)throw console.error("[Telegram.WebApp] Biometric reason is too long",Oe),Error("WebAppBiometricRequestAccessParamInvalid");Oe.length>0&&(ae.reason=Oe)}return ee={callback:Ae},t.postEvent("web_app_biometry_request_auth",!1,ae),H},H.updateBiometricToken=function(R,Ae){if(!X())return H;if(R=R||"",R.length>1024)throw console.error("[Telegram.WebApp] Token is too long",R),Error("WebAppBiometricManagerTokenInvalid");if(ze(),!r)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!T)throw console.error("[Telegram.WebApp] Biometric access was not granted by the user."),Error("WebAppBiometricManagerBiometricAccessNotGranted");if(oe)throw console.error("[Telegram.WebApp] Token request is already in progress."),Error("WebAppBiometricManagerTokenUpdateRequested");return oe={callback:Ae},t.postEvent("web_app_biometry_update_token",!1,{token:R}),H},H.openSettings=function(){if(!X())return H;if(ze(),!r)throw console.error("[Telegram.WebApp] Biometrics is not available on this device."),Error("WebAppBiometricManagerBiometricsNotAvailable");if(!_)throw console.error("[Telegram.WebApp] Biometric access was not requested yet."),Error("WebAppBiometricManagerBiometricsAccessNotRequested");return T?(console.warn("[Telegram.WebApp] Biometric access was granted by the user, no need to go to settings."),H):(t.postEvent("web_app_biometry_open_settings",!1),H)},H}(),Kv=function(){var f=!1,r=!1,d=!1,_=!1,T={};Object.defineProperty(T,"isInited",{get:function(){return f},enumerable:!0}),Object.defineProperty(T,"isLocationAvailable",{get:function(){return f&&r},enumerable:!0}),Object.defineProperty(T,"isAccessRequested",{get:function(){return d},enumerable:!0}),Object.defineProperty(T,"isAccessGranted",{get:function(){return d&&_},enumerable:!0});var j={callbacks:[]},w={callbacks:[]};t.onEvent("location_checked",H),t.onEvent("location_requested",le);function H(F,C){if(f=!0,C.available?(r=!0,C.access_requested?(d=!0,_=!!C.access_granted):(d=!1,_=!1)):(r=!1,d=!1,_=!1),j.callbacks.length>0){for(var D=0;D<j.callbacks.length;D++){var X=j.callbacks[D];X()}j.callbacks=[]}q("locationManagerUpdated")}function le(F,C){if(!C.available)D=null;else{var D={latitude:C.latitude,longitude:C.longitude,altitude:null,course:null,speed:null,horizontal_accuracy:null,vertical_accuracy:null,course_accuracy:null,speed_accuracy:null};typeof C.altitude<"u"&&C.altitude!==null&&(D.altitude=C.altitude),typeof C.course<"u"&&C.course!==null&&(D.course=C.course%360),typeof C.speed<"u"&&C.speed!==null&&(D.speed=C.speed),typeof C.horizontal_accuracy<"u"&&C.horizontal_accuracy!==null&&(D.horizontal_accuracy=C.horizontal_accuracy),typeof C.vertical_accuracy<"u"&&C.vertical_accuracy!==null&&(D.vertical_accuracy=C.vertical_accuracy),typeof C.course_accuracy<"u"&&C.course_accuracy!==null&&(D.course_accuracy=C.course_accuracy),typeof C.speed_accuracy<"u"&&C.speed_accuracy!==null&&(D.speed_accuracy=C.speed_accuracy)}!C.available||!r||!d||!_?(j.callbacks.push(function(){Y(D)}),t.postEvent("web_app_check_location",!1)):Y(D)}function Y(F){if(w.callbacks.length>0){for(var C=0;C<w.callbacks.length;C++){var D=w.callbacks[C];D(F)}w.callbacks=[]}F!==null&&q("locationRequested",{locationData:F})}function ee(){return K("8.0")?!0:(console.warn("[Telegram.WebApp] LocationManager is not supported in version "+p),!1)}function oe(){if(!f)throw console.error("[Telegram.WebApp] LocationManager should be inited before using."),Error("WebAppLocationManagerNotInited");return!0}return T.init=function(F){return!ee()||f||(F&&j.callbacks.push(F),t.postEvent("web_app_check_location",!1)),T},T.getLocation=function(F){if(!ee())return T;if(oe(),!r)throw console.error("[Telegram.WebApp] Location is not available on this device."),Error("WebAppLocationManagerLocationNotAvailable");return w.callbacks.push(F),t.postEvent("web_app_request_location"),T},T.openSettings=function(){if(!ee())return T;if(oe(),!r)throw console.error("[Telegram.WebApp] Location is not available on this device."),Error("WebAppLocationManagerLocationNotAvailable");if(!d)throw console.error("[Telegram.WebApp] Location access was not requested yet."),Error("WebAppLocationManagerLocationAccessNotRequested");return _?(console.warn("[Telegram.WebApp] Location access was granted by the user, no need to go to settings."),T):(t.postEvent("web_app_open_location_settings",!1),T)},T}(),Jv=function(){var f=!1,r=null,d=null,_=null,T=[],j=[],w={};Object.defineProperty(w,"isStarted",{get:function(){return f},enumerable:!0}),Object.defineProperty(w,"x",{get:function(){return r},enumerable:!0}),Object.defineProperty(w,"y",{get:function(){return d},enumerable:!0}),Object.defineProperty(w,"z",{get:function(){return _},enumerable:!0}),t.onEvent("accelerometer_started",H),t.onEvent("accelerometer_stopped",le),t.onEvent("accelerometer_changed",Y),t.onEvent("accelerometer_failed",ee);function H(F,C){if(f=!0,T.length>0){for(var D=0;D<T.length;D++){var X=T[D];X(!0)}T=[]}q("accelerometerStarted")}function le(F,C){if(f=!1,j.length>0){for(var D=0;D<j.length;D++){var X=j[D];X(!0)}j=[]}q("accelerometerStopped")}function Y(F,C){r=C.x,d=C.y,_=C.z,q("accelerometerChanged")}function ee(F,C){if(T.length>0){for(var D=0;D<T.length;D++){var X=T[D];X(!1)}T=[]}q("accelerometerFailed",{error:C.error})}function oe(){return K("8.0")?!0:(console.warn("[Telegram.WebApp] Accelerometer is not supported in version "+p),!1)}return w.start=function(F,C){if(F=F||{},!oe())return w;var D={},X=parseInt(F.refresh_rate||1e3);return isNaN(X)||X<20||X>1e3?console.warn("[Telegram.WebApp] Accelerometer refresh_rate is invalid",X):D.refresh_rate=X,C&&T.push(C),t.postEvent("web_app_start_accelerometer",!1,D),w},w.stop=function(F){return oe()&&(F&&j.push(F),t.postEvent("web_app_stop_accelerometer")),w},w}(),kv=function(){var f=!1,r=null,d=null,_=null,T=!1,j=[],w=[],H={};Object.defineProperty(H,"isStarted",{get:function(){return f},enumerable:!0}),Object.defineProperty(H,"absolute",{get:function(){return T},enumerable:!0}),Object.defineProperty(H,"alpha",{get:function(){return r},enumerable:!0}),Object.defineProperty(H,"beta",{get:function(){return d},enumerable:!0}),Object.defineProperty(H,"gamma",{get:function(){return _},enumerable:!0}),t.onEvent("device_orientation_started",le),t.onEvent("device_orientation_stopped",Y),t.onEvent("device_orientation_changed",ee),t.onEvent("device_orientation_failed",oe);function le(C,D){if(f=!0,j.length>0){for(var X=0;X<j.length;X++){var ze=j[X];ze(!0)}j=[]}q("deviceOrientationStarted")}function Y(C,D){if(f=!1,w.length>0){for(var X=0;X<w.length;X++){var ze=w[X];ze(!0)}w=[]}q("deviceOrientationStopped")}function ee(C,D){T=!!D.absolute,r=D.alpha,d=D.beta,_=D.gamma,q("deviceOrientationChanged")}function oe(C,D){if(j.length>0){for(var X=0;X<j.length;X++){var ze=j[X];ze(!1)}j=[]}q("deviceOrientationFailed",{error:D.error})}function F(){return K("8.0")?!0:(console.warn("[Telegram.WebApp] DeviceOrientation is not supported in version "+p),!1)}return H.start=function(C,D){if(C=C||{},!F())return H;var X={},ze=parseInt(C.refresh_rate||1e3);return isNaN(ze)||ze<20||ze>1e3?console.warn("[Telegram.WebApp] DeviceOrientation refresh_rate is invalid",ze):X.refresh_rate=ze,X.need_absolute=!!C.need_absolute,D&&j.push(D),t.postEvent("web_app_start_device_orientation",!1,X),H},H.stop=function(C){return F()&&(C&&w.push(C),t.postEvent("web_app_stop_device_orientation")),H},H}(),$v=function(){var f=!1,r=null,d=null,_=null,T=[],j=[],w={};Object.defineProperty(w,"isStarted",{get:function(){return f},enumerable:!0}),Object.defineProperty(w,"x",{get:function(){return r},enumerable:!0}),Object.defineProperty(w,"y",{get:function(){return d},enumerable:!0}),Object.defineProperty(w,"z",{get:function(){return _},enumerable:!0}),t.onEvent("gyroscope_started",H),t.onEvent("gyroscope_stopped",le),t.onEvent("gyroscope_changed",Y),t.onEvent("gyroscope_failed",ee);function H(F,C){if(f=!0,T.length>0){for(var D=0;D<T.length;D++){var X=T[D];X(!0)}T=[]}q("gyroscopeStarted")}function le(F,C){if(f=!1,j.length>0){for(var D=0;D<j.length;D++){var X=j[D];X(!0)}j=[]}q("gyroscopeStopped")}function Y(F,C){r=C.x,d=C.y,_=C.z,q("gyroscopeChanged")}function ee(F,C){if(T.length>0){for(var D=0;D<T.length;D++){var X=T[D];X(!1)}T=[]}q("gyroscopeFailed",{error:C.error})}function oe(){return K("8.0")?!0:(console.warn("[Telegram.WebApp] Gyroscope is not supported in version "+p),!1)}return w.start=function(F,C){if(F=F||{},!oe())return w;var D={},X=parseInt(F.refresh_rate||1e3);return isNaN(X)||X<20||X>1e3?console.warn("[Telegram.WebApp] Gyroscope refresh_rate is invalid",X):D.refresh_rate=X,C&&T.push(C),t.postEvent("web_app_start_gyroscope",!1,D),w},w.stop=function(F){return oe()&&(F&&j.push(F),t.postEvent("web_app_stop_gyroscope")),w},w}(),ln={};function Fv(f,r){if(r.slug&&ln[r.slug]){var d=ln[r.slug];delete ln[r.slug],d.callback&&d.callback(r.status),q("invoiceClosed",{url:d.url,status:r.status})}}var Yt=!1;function Rr(f,r){if(Yt){var d=Yt;Yt=!1;var _=null;typeof r.button_id<"u"&&(_=r.button_id),d.callback&&d.callback(_),q("popupClosed",{button_id:_})}}var wl=!1;function Iv(f,r){if(wl){var d=wl,_=null;typeof r.data<"u"&&(_=r.data),d.callback&&d.callback(_)&&(wl=!1,t.postEvent("web_app_close_scan_qr_popup",!1)),q("qrTextReceived",{data:_})}}function Pv(f,r){wl=!1,q("scanQrPopupClosed")}function em(f,r){if(r.req_id&&Mt[r.req_id]){var d=Mt[r.req_id];delete Mt[r.req_id];var _=null;typeof r.data<"u"&&(_=r.data),d.callback&&d.callback(_),q("clipboardTextReceived",{data:_})}}var an=!1;function tm(f,r){if(an){var d=an;an=!1,d.callback&&d.callback(r.status=="allowed"),q("writeAccessRequested",{status:r.status})}}function lm(f,r){var d,_,T=0,j=function(){Xi("getRequestedContact",{},function(H,le){le&&le.length?(clearTimeout(_),f(le)):(T+=50,d=setTimeout(j,T))})},w=function(){clearTimeout(d),f("")};_=setTimeout(w,r),j()}var nn=!1;function am(f,r){if(nn){var d=nn;nn=!1;var _=r.status=="sent",T={status:r.status};_?lm(function(j){if(j&&j.length){T.response=j,T.responseUnsafe=e.urlParseQueryString(j);for(var w in T.responseUnsafe){var H=T.responseUnsafe[w];try{(H.substr(0,1)=="{"&&H.substr(-1)=="}"||H.substr(0,1)=="["&&H.substr(-1)=="]")&&(T.responseUnsafe[w]=JSON.parse(H))}catch{}}}d.callback&&d.callback(_,T),q("contactRequested",T)},3e3):(d.callback&&d.callback(_,T),q("contactRequested",T))}}var un=!1;function nm(f,r){if(un){var d=un;un=!1;var _=r.status=="downloading";d.callback&&d.callback(_),q("fileDownloadRequested",{status:_?"downloading":"cancelled"})}}function um(f,r){if(r.req_id&&Mt[r.req_id]){var d=Mt[r.req_id];delete Mt[r.req_id];var _=null,T=null;typeof r.result<"u"&&(_=r.result),typeof r.error<"u"&&(T=r.error),d.callback&&d.callback(T,_)}}function Xi(f,r,d){if(!K("6.9"))throw console.error("[Telegram.WebApp] Method invokeCustomMethod is not supported in version "+p),Error("WebAppMethodUnsupported");var _=Or(16),T={req_id:_,method:f,params:r||{}};Mt[_]={callback:d},t.postEvent("web_app_invoke_custom_method",!1,T)}window.Telegram||(window.Telegram={}),Object.defineProperty(n,"initData",{get:function(){return u},enumerable:!0}),Object.defineProperty(n,"initDataUnsafe",{get:function(){return i},enumerable:!0}),Object.defineProperty(n,"version",{get:function(){return p},enumerable:!0}),Object.defineProperty(n,"platform",{get:function(){return S},enumerable:!0}),Object.defineProperty(n,"colorScheme",{get:function(){return s},enumerable:!0}),Object.defineProperty(n,"themeParams",{get:function(){return c},enumerable:!0}),Object.defineProperty(n,"isExpanded",{get:function(){return xr},enumerable:!0}),Object.defineProperty(n,"viewportHeight",{get:function(){return($a===!1?window.innerHeight:$a)-et},enumerable:!0}),Object.defineProperty(n,"viewportStableHeight",{get:function(){return(Fa===!1?window.innerHeight:Fa)-et},enumerable:!0}),Object.defineProperty(n,"safeAreaInset",{get:function(){return wt},enumerable:!0}),Object.defineProperty(n,"contentSafeAreaInset",{get:function(){return Rt},enumerable:!0}),Object.defineProperty(n,"isClosingConfirmationEnabled",{set:function(f){Av(f)},get:function(){return Hi},enumerable:!0}),Object.defineProperty(n,"isVerticalSwipesEnabled",{set:function(f){Ev(f)},get:function(){return Di},enumerable:!0}),Object.defineProperty(n,"isFullscreen",{get:function(){return h},enumerable:!0}),Object.defineProperty(n,"isOrientationLocked",{set:function(f){Ov(f)},get:function(){return y},enumerable:!0}),Object.defineProperty(n,"isActive",{get:function(){return A},enumerable:!0}),Object.defineProperty(n,"headerColor",{set:function(f){Hv(f)},get:function(){return qv()},enumerable:!0}),Object.defineProperty(n,"backgroundColor",{set:function(f){Dv(f)},get:function(){return Nr()},enumerable:!0}),Object.defineProperty(n,"bottomBarColor",{set:function(f){wv(f)},get:function(){return tn()},enumerable:!0}),Object.defineProperty(n,"BackButton",{value:Qv,enumerable:!0}),Object.defineProperty(n,"MainButton",{value:Xv,enumerable:!0}),Object.defineProperty(n,"SecondaryButton",{value:Lv,enumerable:!0}),Object.defineProperty(n,"SettingsButton",{value:wr,enumerable:!0}),Object.defineProperty(n,"HapticFeedback",{value:Zv,enumerable:!0}),Object.defineProperty(n,"CloudStorage",{value:Vv,enumerable:!0}),Object.defineProperty(n,"BiometricManager",{value:Wv,enumerable:!0}),Object.defineProperty(n,"Accelerometer",{value:Jv,enumerable:!0}),Object.defineProperty(n,"DeviceOrientation",{value:kv,enumerable:!0}),Object.defineProperty(n,"Gyroscope",{value:$v,enumerable:!0}),Object.defineProperty(n,"LocationManager",{value:Kv,enumerable:!0}),n.isVersionAtLeast=function(f){return K(f)},n.setHeaderColor=function(f){n.headerColor=f},n.setBackgroundColor=function(f){n.backgroundColor=f},n.setBottomBarColor=function(f){n.bottomBarColor=f},n.enableClosingConfirmation=function(){n.isClosingConfirmationEnabled=!0},n.disableClosingConfirmation=function(){n.isClosingConfirmationEnabled=!1},n.enableVerticalSwipes=function(){n.isVerticalSwipesEnabled=!0},n.disableVerticalSwipes=function(){n.isVerticalSwipesEnabled=!1},n.lockOrientation=function(){n.isOrientationLocked=!0},n.unlockOrientation=function(){n.isOrientationLocked=!1},n.requestFullscreen=function(){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method requestFullscreen is not supported in version "+p),Error("WebAppMethodUnsupported");t.postEvent("web_app_request_fullscreen")},n.exitFullscreen=function(){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method exitFullscreen is not supported in version "+p),Error("WebAppMethodUnsupported");t.postEvent("web_app_exit_fullscreen")},n.addToHomeScreen=function(){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method addToHomeScreen is not supported in version "+p),Error("WebAppMethodUnsupported");t.postEvent("web_app_add_to_home_screen")},n.checkHomeScreenStatus=function(f){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method checkHomeScreenStatus is not supported in version "+p),Error("WebAppMethodUnsupported");f&&Ia.push(f),t.postEvent("web_app_check_home_screen")},n.onEvent=function(f,r){Ht(f,r)},n.offEvent=function(f,r){Dt(f,r)},n.sendData=function(f){if(!f||!f.length)throw console.error("[Telegram.WebApp] Data is required",f),Error("WebAppDataInvalid");if(Gv(f)>4096)throw console.error("[Telegram.WebApp] Data is too long",f),Error("WebAppDataInvalid");t.postEvent("web_app_data_send",!1,{data:f})},n.switchInlineQuery=function(f,r){if(!K("6.6"))throw console.error("[Telegram.WebApp] Method switchInlineQuery is not supported in version "+p),Error("WebAppMethodUnsupported");if(!l.tgWebAppBotInline)throw console.error("[Telegram.WebApp] Inline mode is disabled for this bot. Read more about inline mode: https://core.telegram.org/bots/inline"),Error("WebAppInlineModeDisabled");if(f=f||"",f.length>256)throw console.error("[Telegram.WebApp] Inline query is too long",f),Error("WebAppInlineQueryInvalid");var d=[];if(r){if(!Array.isArray(r))throw console.error("[Telegram.WebApp] Choose chat types should be an array",r),Error("WebAppInlineChooseChatTypesInvalid");for(var _={users:1,bots:1,groups:1,channels:1},T=0;T<r.length;T++){var j=r[T];if(!_[j])throw console.error("[Telegram.WebApp] Choose chat type is invalid",j),Error("WebAppInlineChooseChatTypeInvalid");_[j]!=2&&(_[j]=2,d.push(j))}}t.postEvent("web_app_switch_inline_query",!1,{query:f,chat_types:d})},n.openLink=function(_,r){var d=document.createElement("A");if(d.href=_,d.protocol!="http:"&&d.protocol!="https:")throw console.error("[Telegram.WebApp] Url protocol is not supported",_),Error("WebAppTgUrlInvalid");var _=d.href;if(r=r||{},K("6.1")){var T={url:_};K("6.4")&&r.try_instant_view&&(T.try_instant_view=!0),K("7.6")&&r.try_browser&&(T.try_browser=r.try_browser),t.postEvent("web_app_open_link",!1,T)}else window.open(_,"_blank")},n.openTelegramLink=function(f,r){var d=document.createElement("A");if(d.href=f,d.protocol!="http:"&&d.protocol!="https:")throw console.error("[Telegram.WebApp] Url protocol is not supported",f),Error("WebAppTgUrlInvalid");if(d.hostname!="t.me")throw console.error("[Telegram.WebApp] Url host is not supported",f),Error("WebAppTgUrlInvalid");var _=d.pathname+d.search;if(r=r||{},a||K("6.1")){var T={path_full:_};r.force_request&&(T.force_request=!0),t.postEvent("web_app_open_tg_link",!1,T)}else location.href="https://t.me"+_},n.openInvoice=function(f,r){var d=document.createElement("A"),_,T;if(d.href=f,d.protocol!="http:"&&d.protocol!="https:"||d.hostname!="t.me"||!(_=d.pathname.match(/^\/(\$|invoice\/)([A-Za-z0-9\-_=]+)$/))||!(T=_[2]))throw console.error("[Telegram.WebApp] Invoice url is invalid",f),Error("WebAppInvoiceUrlInvalid");if(!K("6.1"))throw console.error("[Telegram.WebApp] Method openInvoice is not supported in version "+p),Error("WebAppMethodUnsupported");if(ln[T])throw console.error("[Telegram.WebApp] Invoice is already opened"),Error("WebAppInvoiceOpened");ln[T]={url:f,callback:r},t.postEvent("web_app_open_invoice",!1,{slug:T})},n.showPopup=function(f,r){if(!K("6.2"))throw console.error("[Telegram.WebApp] Method showPopup is not supported in version "+p),Error("WebAppMethodUnsupported");if(Yt)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppPopupOpened");var d="",_="",T=[],j={};if(typeof f.title<"u"){if(d=ue(f.title),d.length>64)throw console.error("[Telegram.WebApp] Popup title is too long",d),Error("WebAppPopupParamInvalid");d.length>0&&(j.title=d)}if(typeof f.message<"u"&&(_=ue(f.message)),!_.length)throw console.error("[Telegram.WebApp] Popup message is required",f.message),Error("WebAppPopupParamInvalid");if(_.length>256)throw console.error("[Telegram.WebApp] Popup message is too long",_),Error("WebAppPopupParamInvalid");if(j.message=_,typeof f.buttons<"u"){if(!Array.isArray(f.buttons))throw console.error("[Telegram.WebApp] Popup buttons should be an array",f.buttons),Error("WebAppPopupParamInvalid");for(var w=0;w<f.buttons.length;w++){var H=f.buttons[w],le={},Y="";if(typeof H.id<"u"&&(Y=H.id.toString(),Y.length>64))throw console.error("[Telegram.WebApp] Popup button id is too long",Y),Error("WebAppPopupParamInvalid");le.id=Y;var ee=H.type;if(typeof ee>"u"&&(ee="default"),le.type=ee,!(ee=="ok"||ee=="close"||ee=="cancel"))if(ee=="default"||ee=="destructive"){var oe="";if(typeof H.text<"u"&&(oe=ue(H.text)),!oe.length)throw console.error("[Telegram.WebApp] Popup button text is required for type "+ee,H.text),Error("WebAppPopupParamInvalid");if(oe.length>64)throw console.error("[Telegram.WebApp] Popup button text is too long",oe),Error("WebAppPopupParamInvalid");le.text=oe}else throw console.error("[Telegram.WebApp] Popup button type is invalid",ee),Error("WebAppPopupParamInvalid");T.push(le)}}else T.push({id:"",type:"close"});if(T.length<1)throw console.error("[Telegram.WebApp] Popup should have at least one button"),Error("WebAppPopupParamInvalid");if(T.length>3)throw console.error("[Telegram.WebApp] Popup should not have more than 3 buttons"),Error("WebAppPopupParamInvalid");j.buttons=T,Yt={callback:r},t.postEvent("web_app_open_popup",!1,j)},n.showAlert=function(f,r){n.showPopup({message:f},r?function(){r()}:null)},n.showConfirm=function(f,r){n.showPopup({message:f,buttons:[{type:"ok",id:"ok"},{type:"cancel"}]},r?function(d){r(d=="ok")}:null)},n.showScanQrPopup=function(f,r){if(!K("6.4"))throw console.error("[Telegram.WebApp] Method showScanQrPopup is not supported in version "+p),Error("WebAppMethodUnsupported");if(wl)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppScanQrPopupOpened");var d="",_={};if(typeof f.text<"u"){if(d=ue(f.text),d.length>64)throw console.error("[Telegram.WebApp] Scan QR popup text is too long",d),Error("WebAppScanQrPopupParamInvalid");d.length>0&&(_.text=d)}wl={callback:r},t.postEvent("web_app_open_scan_qr_popup",!1,_)},n.closeScanQrPopup=function(){if(!K("6.4"))throw console.error("[Telegram.WebApp] Method closeScanQrPopup is not supported in version "+p),Error("WebAppMethodUnsupported");wl=!1,t.postEvent("web_app_close_scan_qr_popup",!1)},n.readTextFromClipboard=function(f){if(!K("6.4"))throw console.error("[Telegram.WebApp] Method readTextFromClipboard is not supported in version "+p),Error("WebAppMethodUnsupported");var r=Or(16),d={req_id:r};Mt[r]={callback:f},t.postEvent("web_app_read_text_from_clipboard",!1,d)},n.requestWriteAccess=function(f){if(!K("6.9"))throw console.error("[Telegram.WebApp] Method requestWriteAccess is not supported in version "+p),Error("WebAppMethodUnsupported");if(an)throw console.error("[Telegram.WebApp] Write access is already requested"),Error("WebAppWriteAccessRequested");an={callback:f},t.postEvent("web_app_request_write_access")},n.requestContact=function(f){if(!K("6.9"))throw console.error("[Telegram.WebApp] Method requestContact is not supported in version "+p),Error("WebAppMethodUnsupported");if(nn)throw console.error("[Telegram.WebApp] Contact is already requested"),Error("WebAppContactRequested");nn={callback:f},t.postEvent("web_app_request_phone")},n.downloadFile=function(f,r){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method downloadFile is not supported in version "+p),Error("WebAppMethodUnsupported");if(un)throw console.error("[Telegram.WebApp] Popup is already opened"),Error("WebAppDownloadFilePopupOpened");var d=document.createElement("A"),_={};if(!f||!f.url||!f.url.length)throw console.error("[Telegram.WebApp] Url is required"),Error("WebAppDownloadFileParamInvalid");if(d.href=f.url,d.protocol!="https:")throw console.error("[Telegram.WebApp] Url protocol is not supported",url),Error("WebAppDownloadFileParamInvalid");if(_.url=d.href,!f||!f.file_name||!f.file_name.length)throw console.error("[Telegram.WebApp] File name is required"),Error("WebAppDownloadFileParamInvalid");_.file_name=f.file_name,un={callback:r},t.postEvent("web_app_request_file_download",!1,_)},n.shareToStory=function(f,r){if(r=r||{},!K("7.8"))throw console.error("[Telegram.WebApp] Method shareToStory is not supported in version "+p),Error("WebAppMethodUnsupported");var d=document.createElement("A");if(d.href=f,d.protocol!="http:"&&d.protocol!="https:")throw console.error("[Telegram.WebApp] Media url protocol is not supported",url),Error("WebAppMediaUrlInvalid");var _={};if(_.media_url=d.href,typeof r.text<"u"){var T=ue(r.text);if(T.length>2048)throw console.error("[Telegram.WebApp] Text is too long",T),Error("WebAppShareToStoryParamInvalid");T.length>0&&(_.text=T)}if(typeof r.widget_link<"u"){if(r.widget_link=r.widget_link||{},d.href=r.widget_link.url,d.protocol!="http:"&&d.protocol!="https:")throw console.error("[Telegram.WebApp] Link protocol is not supported",url),Error("WebAppShareToStoryParamInvalid");var j={url:d.href};if(typeof r.widget_link.name<"u"){var w=ue(r.widget_link.name);if(w.length>48)throw console.error("[Telegram.WebApp] Link name is too long",w),Error("WebAppShareToStoryParamInvalid");w.length>0&&(j.name=w)}_.widget_link=j}t.postEvent("web_app_share_to_story",!1,_)},n.shareMessage=function(f,r){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method shareMessage is not supported in version "+p),Error("WebAppMethodUnsupported");if(il)throw console.error("[Telegram.WebApp] Share message is already opened"),Error("WebAppShareMessageOpened");il={callback:r},t.postEvent("web_app_send_prepared_message",!1,{id:f})},n.setEmojiStatus=function(f,r,d){if(r=r||{},!K("8.0"))throw console.error("[Telegram.WebApp] Method setEmojiStatus is not supported in version "+p),Error("WebAppMethodUnsupported");var _={};if(_.custom_emoji_id=f,typeof r.duration<"u"&&(_.duration=r.duration),cl)throw console.error("[Telegram.WebApp] Emoji status is already requested"),Error("WebAppEmojiStatusRequested");cl={callback:d},t.postEvent("web_app_set_emoji_status",!1,_)},n.requestEmojiStatusAccess=function(f){if(!K("8.0"))throw console.error("[Telegram.WebApp] Method requestEmojiStatusAccess is not supported in version "+p),Error("WebAppMethodUnsupported");if(Pa)throw console.error("[Telegram.WebApp] Emoji status permission is already requested"),Error("WebAppEmojiStatusAccessRequested");Pa={callback:f},t.postEvent("web_app_request_emoji_status_access")},n.invokeCustomMethod=function(f,r,d){Xi(f,r,d)},n.ready=function(){t.postEvent("web_app_ready")},n.expand=function(){t.postEvent("web_app_expand")},n.close=function(f){f=f||{};var r={};K("7.6")&&f.return_back&&(r.return_back=!0),t.postEvent("web_app_close",!1,r)},window.Telegram.WebApp=n,Ri(),Yi(),Gi(),qi(),l.tgWebAppShowSettings&&wr.show(),window.addEventListener("resize",iu),a&&document.addEventListener("click",k),t.onEvent("theme_changed",Ve),t.onEvent("viewport_changed",uu),t.onEvent("safe_area_changed",ka),t.onEvent("content_safe_area_changed",U),t.onEvent("visibility_changed",$),t.onEvent("invoice_closed",Fv),t.onEvent("popup_closed",Rr),t.onEvent("qr_text_received",Iv),t.onEvent("scan_qr_popup_closed",Pv),t.onEvent("clipboard_text_received",em),t.onEvent("write_access_requested",tm),t.onEvent("phone_requested",am),t.onEvent("file_download_requested",nm),t.onEvent("custom_method_invoked",um),t.onEvent("fullscreen_changed",Tv),t.onEvent("fullscreen_failed",zv),t.onEvent("home_screen_added",xv),t.onEvent("home_screen_checked",Mv),t.onEvent("prepared_message_sent",Nv),t.onEvent("prepared_message_failed",jv),t.onEvent("emoji_status_set",Cv),t.onEvent("emoji_status_failed",Bv),t.onEvent("emoji_status_access_requested",Uv),t.postEvent("web_app_request_theme"),t.postEvent("web_app_request_viewport"),t.postEvent("web_app_request_safe_area"),t.postEvent("web_app_request_content_safe_area")})();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.WebApp=void 0;var ib=window;Bi.WebApp=ib.Telegram.WebApp;Object.defineProperty(yv,"__esModule",{value:!0});var cb=Bi,zt=yv.default=cb.WebApp;function fb(){const[e,t]=Je.useState("tour-creation"),[l,a]=Je.useState(null),[n,u]=Je.useState({title:"",description:"",difficulty:"3",origin_address:"",region:"",start_date:"",start_time:"08:00",end_date:"",end_time:"18:00",transport_options:["personal_car"],pricing:{personal_car:"0",van:"0",minibus:"0",bus:"0"},services:["insurance"],meal_details:"",required_items:"",capacity:"20",notes:"",banner:""}),[i,c]=Je.useState({gateway_zarinpal:!0,gateway_card:!0,gateway_crypto:!1,gateway_stars:!0,gateway_wallet:!0}),[s,p]=Je.useState({card_number:"",sheba:"",card_owner_name:""}),[S,A]=Je.useState(""),[h,y]=Je.useState([{id:1,amount:25e4,date:"1405/04/10",status:"approved"},{id:2,amount:15e5,date:"1405/04/18",status:"pending"}]),[O,N]=Je.useState({firstName:"",lastName:"",phone:""}),[Z,m]=Je.useState([{id:1,title:"کویر مرنجاب پاییزه",date:"1405/05/12",paid:65e4,vehicle:"ماشین شخصی",status:"completed"},{id:2,title:"جنگل الیمستان",date:"1405/05/26",paid:89e4,vehicle:"اتوبوس توریستی",status:"pending"}]),[o,v]=Je.useState([{id:1,name:"علی حسینی",phone:"09123456789",income:45e6,groups:3},{id:2,name:"مریم رضایی",phone:"09187654321",income:82e6,groups:5}]);Je.useEffect(()=>{var Q;zt.ready(),zt.expand();const E=(Q=zt.initDataUnsafe)==null?void 0:Q.user;E&&(a(E),N({firstName:E.first_name||"",lastName:E.last_name||"",phone:""}),u(V=>({...V,notes:`برگزارکننده: ${E.first_name} ${E.last_name||""}`})))},[]);const b=()=>{u({title:"کمپینگ در جنگل‌های سوادکوه",description:"برنامه دو روزه شاد و پر انرژی کمپینگ در دل جنگل‌های سوادکوه همراه با پیاده‌روی و تماشای مه.",difficulty:"3",origin_address:"تهران، میدان ونک",region:"سوادکوه، مازندران",start_date:"1405-05-15",start_time:"05:00",end_date:"1405-05-16",end_time:"20:00",transport_options:["personal_car","van"],pricing:{personal_car:"450000",van:"850000",minibus:"0",bus:"0"},services:["insurance","accommodation","meals"],meal_details:"یک وعده صبحانه و یک وعده شام گرم توریستی",required_items:"چادر مسافرتی، کیسه خواب، کفش مناسب، لباس گرم، چراغ پیشانی",capacity:"25",notes:"دوستان عزیز لطفا از آوردن وسایل غیرضروری خودداری فرمایید.",banner:"https://images.unsplash.com/photo-1504280390367-361c6d9f38f4"}),zt.showAlert("اطلاعات آخرین تور با موفقیت بارگذاری شد!")},x=E=>{E.preventDefault(),zt.showConfirm("آیا مایلید این تور در کانال و گروه متصل شما منتشر شود؟",Q=>{Q&&(zt.sendData(JSON.stringify({action:"create_tour",data:n})),zt.close())})},G=()=>{zt.showAlert("تنظیمات درگاه‌ها و شماره کارت لیدر با موفقیت ذخیره شد.")},M=E=>{if(E.preventDefault(),!S||isNaN(S)){zt.showAlert("لطفا مبلغ معتبری وارد کنید.");return}const Q=parseFloat(S);y(V=>[{id:Date.now(),amount:Q,date:"۱۴۰۵/۰۴/۲۱",status:"pending"},...V]),A(""),zt.showAlert("درخواست تسویه‌حساب شما ثبت شد و پس از بررسی ادمین انجام می‌شود.")};return g.jsxs("div",{className:"app-container",children:[g.jsxs("header",{className:"app-header",children:[g.jsx("h1",{className:"app-title",children:"طبیعت‌گردی رام 🏕️"}),l&&g.jsxs("div",{style:{fontSize:"12px",color:"var(--text-secondary)"},children:["سلام، ",l.first_name]})]}),g.jsxs("div",{className:"tabs-container",children:[g.jsx("button",{className:`tab-btn ${e==="tour-creation"?"active":""}`,onClick:()=>t("tour-creation"),children:"🏔️ ایجاد تور"}),g.jsx("button",{className:`tab-btn ${e==="leader-dashboard"?"active":""}`,onClick:()=>t("leader-dashboard"),children:"🧭 پنل لیدر"}),g.jsx("button",{className:`tab-btn ${e==="explorer-profile"?"active":""}`,onClick:()=>t("explorer-profile"),children:"👤 طبیعت‌گرد"}),g.jsx("button",{className:`tab-btn ${e==="admin-dashboard"?"active":""}`,onClick:()=>t("admin-dashboard"),children:"⚙️ ادمین پلتفرم"})]}),e==="tour-creation"&&g.jsxs("div",{className:"glass-card",children:[g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"16px"},children:[g.jsx("h2",{style:{fontSize:"18px"},children:"ایجاد برنامه‌ی طبیعت‌گردی جدید"}),g.jsx("button",{className:"btn btn-secondary",style:{width:"auto",padding:"6px 12px",fontSize:"13px"},onClick:b,children:"🔄 کپی از تور قبلی"})]}),g.jsxs("form",{onSubmit:x,children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🏷️ عنوان تور"}),g.jsx("input",{type:"text",className:"form-control",value:n.title,onChange:E=>u({...n,title:E.target.value}),placeholder:"مثال: تور یک روزه آبشار دارنو",required:!0})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"📝 شرح برنامه"}),g.jsx("textarea",{className:"form-control",rows:"3",value:n.description,onChange:E=>u({...n,description:E.target.value}),placeholder:"توضیحات مربوط به ساعت حرکت، جزییات مسیر و خدمات...",required:!0})]}),g.jsxs("div",{className:"form-row",children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🧗‍♂️ سطح سختی"}),g.jsxs("select",{className:"form-control",value:n.difficulty,onChange:E=>u({...n,difficulty:E.target.value}),children:[g.jsx("option",{value:"1",children:"آسان (۱/۵)"}),g.jsx("option",{value:"2",children:"معمولی (۲/۵)"}),g.jsx("option",{value:"3",children:"متوسط (۳/۵)"}),g.jsx("option",{value:"4",children:"چالش‌برانگیز (۴/۵)"}),g.jsx("option",{value:"5",children:"سخت (۵/۵)"})]})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"👥 ظرفیت کل (نفر)"}),g.jsx("input",{type:"number",className:"form-control",value:n.capacity,onChange:E=>u({...n,capacity:E.target.value}),required:!0})]})]}),g.jsxs("div",{className:"form-row",children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🚩 مبدا حرکت"}),g.jsx("input",{type:"text",className:"form-control",value:n.origin_address,onChange:E=>u({...n,origin_address:E.target.value}),placeholder:"مثال: تهران، میدان آرژانتین",required:!0})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"📍 منطقه هدف"}),g.jsx("input",{type:"text",className:"form-control",value:n.region,onChange:E=>u({...n,region:E.target.value}),placeholder:"مثال: کلاردشت، مازندران",required:!0})]})]}),g.jsxs("div",{className:"form-row",children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🗓️ تاریخ رفت"}),g.jsx("input",{type:"date",className:"form-control",value:n.start_date,onChange:E=>u({...n,start_date:E.target.value}),required:!0})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"⏰ ساعت رفت"}),g.jsx("input",{type:"time",className:"form-control",value:n.start_time,onChange:E=>u({...n,start_time:E.target.value}),required:!0})]})]}),g.jsxs("div",{className:"form-row",children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🗓️ تاریخ برگشت"}),g.jsx("input",{type:"date",className:"form-control",value:n.end_date,onChange:E=>u({...n,end_date:E.target.value}),required:!0})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"⏰ ساعت برگشت"}),g.jsx("input",{type:"time",className:"form-control",value:n.end_time,onChange:E=>u({...n,end_time:E.target.value}),required:!0})]})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🚌 وسایل نقلیه و هزینه هرکدام (تومان)"}),g.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px",marginTop:"8px"},children:["personal_car","van","minibus","bus"].map(E=>{const Q={personal_car:"🚗 شخصی",van:"🚐 ون",minibus:"🚌 مینی‌بوس",bus:"🚍 اتوبوس"};return g.jsxs("div",{style:{background:"rgba(255,255,255,0.03)",padding:"8px",borderRadius:"8px",border:"1px solid var(--glass-border)"},children:[g.jsx("span",{style:{fontSize:"13px",display:"block",marginBottom:"4px"},children:Q[E]}),g.jsx("input",{type:"number",className:"form-control",style:{padding:"6px"},value:n.pricing[E]||"0",onChange:V=>u({...n,pricing:{...n.pricing,[E]:V.target.value}}),placeholder:"هزینه"})]},E)})})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🎒 لوازم مورد نیاز"}),g.jsx("input",{type:"text",className:"form-control",value:n.required_items,onChange:E=>u({...n,required_items:E.target.value}),placeholder:"پانچو، عینک آفتابی، کفش کوه، آب..."})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"🖼️ آدرس تصویر بنر"}),g.jsx("input",{type:"text",className:"form-control",value:n.banner,onChange:E=>u({...n,banner:E.target.value}),placeholder:"https://example.com/banner.jpg"})]}),g.jsx("button",{type:"submit",className:"btn btn-primary",style:{marginTop:"16px"},children:"📤 ثبت و انتشار تور در تلگرام"})]})]}),e==="leader-dashboard"&&g.jsxs("div",{children:[g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"📊 خلاصه وضعیت مالی لیدر"}),g.jsxs("div",{className:"stat-grid",children:[g.jsxs("div",{className:"stat-item",children:[g.jsx("div",{className:"stat-label",children:"درآمد قابل برداشت"}),g.jsx("div",{className:"stat-val",children:"۲۴,۵۰۰,۰۰۰ تومان"})]}),g.jsxs("div",{className:"stat-item",children:[g.jsx("div",{className:"stat-label",children:"تعداد کل مسافران ثبت‌نامی"}),g.jsx("div",{className:"stat-val",children:"۱۲۴ نفر"})]})]}),g.jsxs("form",{onSubmit:M,style:{display:"flex",gap:"8px",marginTop:"12px"},children:[g.jsx("input",{type:"number",className:"form-control",placeholder:"مبلغ برداشت (تومان)",value:S,onChange:E=>A(E.target.value)}),g.jsx("button",{type:"submit",className:"btn btn-success",style:{width:"auto",whiteSpace:"nowrap"},children:"💸 درخواست تسویه"})]})]}),g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"⚙️ تنظیمات درگاه‌های پرداخت تور"}),g.jsx("p",{style:{fontSize:"12px",color:"var(--text-secondary)",marginBottom:"16px"},children:"به عنوان لیدر، درگاه‌هایی که مایلید طبیعت‌گردان در پیش‌فاکتور مشاهده کنند را فعال کنید:"}),g.jsxs("div",{className:"switch-container",children:[g.jsx("span",{className:"switch-label",children:"💳 کارت به کارت (بدون کارمزد)"}),g.jsxs("label",{className:"switch",children:[g.jsx("input",{type:"checkbox",checked:i.gateway_card,onChange:E=>c({...i,gateway_card:E.target.checked})}),g.jsx("span",{className:"slider"})]})]}),g.jsxs("div",{className:"switch-container",children:[g.jsx("span",{className:"switch-label",children:"🌐 پرداخت آنلاین زرین‌پال (۵٪ کارمزد پلتفرم)"}),g.jsxs("label",{className:"switch",children:[g.jsx("input",{type:"checkbox",checked:i.gateway_zarinpal,onChange:E=>c({...i,gateway_zarinpal:E.target.checked})}),g.jsx("span",{className:"slider"})]})]}),g.jsxs("div",{className:"switch-container",children:[g.jsx("span",{className:"switch-label",children:"💎 پرداخت کریپتو تتر (۵٪ کارمزد پلتفرم)"}),g.jsxs("label",{className:"switch",children:[g.jsx("input",{type:"checkbox",checked:i.gateway_crypto,onChange:E=>c({...i,gateway_crypto:E.target.checked})}),g.jsx("span",{className:"slider"})]})]}),g.jsxs("div",{className:"switch-container",children:[g.jsx("span",{className:"switch-label",children:"⭐️ استارز رسمی تلگرام (۵٪ کارمزد پلتفرم)"}),g.jsxs("label",{className:"switch",children:[g.jsx("input",{type:"checkbox",checked:i.gateway_stars,onChange:E=>c({...i,gateway_stars:E.target.checked})}),g.jsx("span",{className:"slider"})]})]}),g.jsxs("div",{className:"switch-container",children:[g.jsx("span",{className:"switch-label",children:"👛 پرداخت مستقیم از کیف پول (۵٪ کارمزد پلتفرم)"}),g.jsxs("label",{className:"switch",children:[g.jsx("input",{type:"checkbox",checked:i.gateway_wallet,onChange:E=>c({...i,gateway_wallet:E.target.checked})}),g.jsx("span",{className:"slider"})]})]}),g.jsxs("div",{style:{marginTop:"16px",borderTop:"1px solid var(--glass-border)",paddingTop:"16px"},children:[g.jsx("h3",{style:{fontSize:"14px",marginBottom:"12px"},children:"🏦 اطلاعات حساب بانکی لیدر برای تسویه"}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"شماره کارت ۱۶ رقمی"}),g.jsx("input",{type:"text",className:"form-control",value:s.card_number,onChange:E=>p({...s,card_number:E.target.value}),placeholder:"۶۰۳۷۹۹۱۸..."})]}),g.jsxs("div",{className:"form-row",children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"شماره شبا (IR)"}),g.jsx("input",{type:"text",className:"form-control",value:s.sheba,onChange:E=>p({...s,sheba:E.target.value}),placeholder:"IR12012..."})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"نام صاحب حساب"}),g.jsx("input",{type:"text",className:"form-control",value:s.card_owner_name,onChange:E=>p({...s,card_owner_name:E.target.value}),placeholder:"نام کامل"})]})]}),g.jsx("button",{className:"btn btn-primary",onClick:G,children:"💾 ذخیره تنظیمات حساب و درگاه‌ها"})]})]}),g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"💸 تاریخچه درخواست‌های تسویه"}),h.map(E=>g.jsxs("div",{className:"list-item",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"list-item-title",children:[E.amount.toLocaleString()," تومان"]}),g.jsxs("div",{className:"list-item-desc",children:["تاریخ درخواست: ",E.date]})]}),g.jsx("span",{className:`badge ${E.status==="approved"?"badge-success":"badge-warning"}`,children:E.status==="approved"?"تسویه شده":"در انتظار بررسی"})]},E.id))]})]}),e==="explorer-profile"&&g.jsxs("div",{children:[g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"👤 اطلاعات پروفایل طبیعت‌گرد"}),g.jsxs("div",{className:"form-row",children:[g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"نام"}),g.jsx("input",{type:"text",className:"form-control",value:O.firstName,onChange:E=>N({...O,firstName:E.target.value})})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"نام خانوادگی"}),g.jsx("input",{type:"text",className:"form-control",value:O.lastName,onChange:E=>N({...O,lastName:E.target.value})})]})]}),g.jsxs("div",{className:"form-group",children:[g.jsx("label",{className:"form-label",children:"📞 شماره موبایل جهت هماهنگی"}),g.jsx("input",{type:"text",className:"form-control",value:O.phone,onChange:E=>N({...O,phone:E.target.value}),placeholder:"۰۹۱۲۳۴۵۶۷۸۹"})]}),g.jsx("button",{className:"btn btn-primary",onClick:()=>zt.showAlert("اطلاعات کاربری ثبت‌نامی شما ذخیره شد."),children:"💾 به‌روزرسانی پروفایل"})]}),g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"🎒 سفرهای ثبت‌نام شده من"}),Z.map(E=>g.jsxs("div",{className:"list-item",children:[g.jsxs("div",{children:[g.jsx("div",{className:"list-item-title",children:E.title}),g.jsxs("div",{className:"list-item-desc",children:["تاریخ رفت: ",E.date," | وسیله: ",E.vehicle]}),g.jsxs("div",{className:"list-item-desc",style:{color:"var(--primary)",fontWeight:"700"},children:["هزینه پرداخت شده: ",E.paid.toLocaleString()," تومان"]})]}),g.jsx("span",{className:`badge ${E.status==="completed"?"badge-success":"badge-warning"}`,children:E.status==="completed"?"پرداخت نهایی":"در انتظار تایید فیش"})]},E.id))]})]}),e==="admin-dashboard"&&g.jsxs("div",{children:[g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"📊 آمار کل پلتفرم طبیعت‌گردی"}),g.jsxs("div",{className:"stat-grid",children:[g.jsxs("div",{className:"stat-item",children:[g.jsx("div",{className:"stat-label",children:"تعداد کل لیدرها"}),g.jsx("div",{className:"stat-val",children:"۲ نفر"})]}),g.jsxs("div",{className:"stat-item",children:[g.jsx("div",{className:"stat-label",children:"سود پلتفرم (۵٪ کارمزد)"}),g.jsx("div",{className:"stat-val",children:"۶,۳۵۰,۰۰۰ تومان"})]})]})]}),g.jsxs("div",{className:"glass-card",children:[g.jsx("h2",{style:{fontSize:"16px",marginBottom:"12px"},children:"🧭 لیست تورلیدرهای ثبت‌شده"}),o.map(E=>g.jsxs("div",{className:"list-item",style:{flexDirection:"column",alignItems:"flex-start",gap:"8px"},children:[g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"},children:[g.jsx("span",{className:"list-item-title",children:E.name}),g.jsxs("span",{style:{fontSize:"12px",color:"var(--text-secondary)"},children:["تلفن: ",E.phone]})]}),g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",width:"100%",fontSize:"13px"},children:[g.jsxs("span",{children:["درآمد کل: ",g.jsxs("b",{style:{color:"var(--success)"},children:[E.income.toLocaleString()," تومان"]})]}),g.jsxs("span",{children:["تعداد گروه‌ها: ",g.jsxs("b",{children:[E.groups," گروه"]})]})]})]},E.id))]})]})]})}ub.createRoot(document.getElementById("root")).render(g.jsx(Je.StrictMode,{children:g.jsx(fb,{})}));
