(function(){const T=document.createElement("link").relList;if(T&&T.supports&&T.supports("modulepreload"))return;for(const M of document.querySelectorAll('link[rel="modulepreload"]'))d(M);new MutationObserver(M=>{for(const _ of M)if(_.type==="childList")for(const Y of _.addedNodes)Y.tagName==="LINK"&&Y.rel==="modulepreload"&&d(Y)}).observe(document,{childList:!0,subtree:!0});function A(M){const _={};return M.integrity&&(_.integrity=M.integrity),M.referrerPolicy&&(_.referrerPolicy=M.referrerPolicy),M.crossOrigin==="use-credentials"?_.credentials="include":M.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function d(M){if(M.ep)return;M.ep=!0;const _=A(M);fetch(M.href,_)}})();function ym(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var oi={exports:{}},En={};/**
 * @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 Td;function vm(){if(Td)return En;Td=1;var o=Symbol.for("react.transitional.element"),T=Symbol.for("react.fragment");function A(d,M,_){var Y=null;if(_!==void 0&&(Y=""+_),M.key!==void 0&&(Y=""+M.key),"key"in M){_={};for(var B in M)B!=="key"&&(_[B]=M[B])}else _=M;return M=_.ref,{$$typeof:o,type:d,key:Y,ref:M!==void 0?M:null,props:_}}return En.Fragment=T,En.jsx=A,En.jsxs=A,En}var Ad;function Nm(){return Ad||(Ad=1,oi.exports=vm()),oi.exports}var c=Nm(),di={exports:{}},K={};/**
 * @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 Md;function jm(){if(Md)return K;Md=1;var o=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),L=Symbol.iterator;function ie(f){return f===null||typeof f!="object"?null:(f=L&&f[L]||f["@@iterator"],typeof f=="function"?f:null)}var oe={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,Se={};function ye(f,y,O){this.props=f,this.context=y,this.refs=Se,this.updater=O||oe}ye.prototype.isReactComponent={},ye.prototype.setState=function(f,y){if(typeof f!="object"&&typeof f!="function"&&f!=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,f,y,"setState")},ye.prototype.forceUpdate=function(f){this.updater.enqueueForceUpdate(this,f,"forceUpdate")};function me(){}me.prototype=ye.prototype;function we(f,y,O){this.props=f,this.context=y,this.refs=Se,this.updater=O||oe}var ke=we.prototype=new me;ke.constructor=we,k(ke,ye.prototype),ke.isPureReactComponent=!0;var $e=Array.isArray;function Re(){}var Z={H:null,A:null,T:null,S:null},Be=Object.prototype.hasOwnProperty;function Ie(f,y,O){var H=O.ref;return{$$typeof:o,type:f,key:y,ref:H!==void 0?H:null,props:O}}function Ct(f,y){return Ie(f.type,y,f.props)}function W(f){return typeof f=="object"&&f!==null&&f.$$typeof===o}function ve(f){var y={"=":"=0",":":"=2"};return"$"+f.replace(/[=:]/g,function(O){return y[O]})}var pt=/\/+/g;function Mt(f,y){return typeof f=="object"&&f!==null&&f.key!=null?ve(""+f.key):y.toString(36)}function ct(f){switch(f.status){case"fulfilled":return f.value;case"rejected":throw f.reason;default:switch(typeof f.status=="string"?f.then(Re,Re):(f.status="pending",f.then(function(y){f.status==="pending"&&(f.status="fulfilled",f.value=y)},function(y){f.status==="pending"&&(f.status="rejected",f.reason=y)})),f.status){case"fulfilled":return f.value;case"rejected":throw f.reason}}throw f}function N(f,y,O,H,J){var I=typeof f;(I==="undefined"||I==="boolean")&&(f=null);var fe=!1;if(f===null)fe=!0;else switch(I){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(f.$$typeof){case o:case T:fe=!0;break;case D:return fe=f._init,N(fe(f._payload),y,O,H,J)}}if(fe)return J=J(f),fe=H===""?"."+Mt(f,0):H,$e(J)?(O="",fe!=null&&(O=fe.replace(pt,"$&/")+"/"),N(J,y,O,"",function(Oa){return Oa})):J!=null&&(W(J)&&(J=Ct(J,O+(J.key==null||f&&f.key===J.key?"":(""+J.key).replace(pt,"$&/")+"/")+fe)),y.push(J)),1;fe=0;var We=H===""?".":H+":";if($e(f))for(var Me=0;Me<f.length;Me++)H=f[Me],I=We+Mt(H,Me),fe+=N(H,y,O,I,J);else if(Me=ie(f),typeof Me=="function")for(f=Me.call(f),Me=0;!(H=f.next()).done;)H=H.value,I=We+Mt(H,Me++),fe+=N(H,y,O,I,J);else if(I==="object"){if(typeof f.then=="function")return N(ct(f),y,O,H,J);throw y=String(f),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return fe}function C(f,y,O){if(f==null)return f;var H=[],J=0;return N(f,H,"","",function(I){return y.call(O,I,J++)}),H}function Q(f){if(f._status===-1){var y=f._result;y=y(),y.then(function(O){(f._status===0||f._status===-1)&&(f._status=1,f._result=O)},function(O){(f._status===0||f._status===-1)&&(f._status=2,f._result=O)}),f._status===-1&&(f._status=0,f._result=y)}if(f._status===1)return f._result.default;throw f._result}var re=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},U={map:C,forEach:function(f,y,O){C(f,function(){y.apply(this,arguments)},O)},count:function(f){var y=0;return C(f,function(){y++}),y},toArray:function(f){return C(f,function(y){return y})||[]},only:function(f){if(!W(f))throw Error("React.Children.only expected to receive a single React element child.");return f}};return K.Activity=w,K.Children=U,K.Component=ye,K.Fragment=A,K.Profiler=M,K.PureComponent=we,K.StrictMode=d,K.Suspense=z,K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,K.__COMPILER_RUNTIME={__proto__:null,c:function(f){return Z.H.useMemoCache(f)}},K.cache=function(f){return function(){return f.apply(null,arguments)}},K.cacheSignal=function(){return null},K.cloneElement=function(f,y,O){if(f==null)throw Error("The argument must be a React element, but you passed "+f+".");var H=k({},f.props),J=f.key;if(y!=null)for(I in y.key!==void 0&&(J=""+y.key),y)!Be.call(y,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&y.ref===void 0||(H[I]=y[I]);var I=arguments.length-2;if(I===1)H.children=O;else if(1<I){for(var fe=Array(I),We=0;We<I;We++)fe[We]=arguments[We+2];H.children=fe}return Ie(f.type,J,H)},K.createContext=function(f){return f={$$typeof:Y,_currentValue:f,_currentValue2:f,_threadCount:0,Provider:null,Consumer:null},f.Provider=f,f.Consumer={$$typeof:_,_context:f},f},K.createElement=function(f,y,O){var H,J={},I=null;if(y!=null)for(H in y.key!==void 0&&(I=""+y.key),y)Be.call(y,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(J[H]=y[H]);var fe=arguments.length-2;if(fe===1)J.children=O;else if(1<fe){for(var We=Array(fe),Me=0;Me<fe;Me++)We[Me]=arguments[Me+2];J.children=We}if(f&&f.defaultProps)for(H in fe=f.defaultProps,fe)J[H]===void 0&&(J[H]=fe[H]);return Ie(f,I,J)},K.createRef=function(){return{current:null}},K.forwardRef=function(f){return{$$typeof:B,render:f}},K.isValidElement=W,K.lazy=function(f){return{$$typeof:D,_payload:{_status:-1,_result:f},_init:Q}},K.memo=function(f,y){return{$$typeof:j,type:f,compare:y===void 0?null:y}},K.startTransition=function(f){var y=Z.T,O={};Z.T=O;try{var H=f(),J=Z.S;J!==null&&J(O,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(Re,re)}catch(I){re(I)}finally{y!==null&&O.types!==null&&(y.types=O.types),Z.T=y}},K.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},K.use=function(f){return Z.H.use(f)},K.useActionState=function(f,y,O){return Z.H.useActionState(f,y,O)},K.useCallback=function(f,y){return Z.H.useCallback(f,y)},K.useContext=function(f){return Z.H.useContext(f)},K.useDebugValue=function(){},K.useDeferredValue=function(f,y){return Z.H.useDeferredValue(f,y)},K.useEffect=function(f,y){return Z.H.useEffect(f,y)},K.useEffectEvent=function(f){return Z.H.useEffectEvent(f)},K.useId=function(){return Z.H.useId()},K.useImperativeHandle=function(f,y,O){return Z.H.useImperativeHandle(f,y,O)},K.useInsertionEffect=function(f,y){return Z.H.useInsertionEffect(f,y)},K.useLayoutEffect=function(f,y){return Z.H.useLayoutEffect(f,y)},K.useMemo=function(f,y){return Z.H.useMemo(f,y)},K.useOptimistic=function(f,y){return Z.H.useOptimistic(f,y)},K.useReducer=function(f,y,O){return Z.H.useReducer(f,y,O)},K.useRef=function(f){return Z.H.useRef(f)},K.useState=function(f){return Z.H.useState(f)},K.useSyncExternalStore=function(f,y,O){return Z.H.useSyncExternalStore(f,y,O)},K.useTransition=function(){return Z.H.useTransition()},K.version="19.2.6",K}var zd;function yi(){return zd||(zd=1,di.exports=jm()),di.exports}var X=yi();const Sm=ym(X);var hi={exports:{}},Tn={},mi={exports:{}},xi={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var _d;function wm(){return _d||(_d=1,(function(o){function T(N,C){var Q=N.length;N.push(C);e:for(;0<Q;){var re=Q-1>>>1,U=N[re];if(0<M(U,C))N[re]=C,N[Q]=U,Q=re;else break e}}function A(N){return N.length===0?null:N[0]}function d(N){if(N.length===0)return null;var C=N[0],Q=N.pop();if(Q!==C){N[0]=Q;e:for(var re=0,U=N.length,f=U>>>1;re<f;){var y=2*(re+1)-1,O=N[y],H=y+1,J=N[H];if(0>M(O,Q))H<U&&0>M(J,O)?(N[re]=J,N[H]=Q,re=H):(N[re]=O,N[y]=Q,re=y);else if(H<U&&0>M(J,Q))N[re]=J,N[H]=Q,re=H;else break e}}return C}function M(N,C){var Q=N.sortIndex-C.sortIndex;return Q!==0?Q:N.id-C.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;o.unstable_now=function(){return _.now()}}else{var Y=Date,B=Y.now();o.unstable_now=function(){return Y.now()-B}}var z=[],j=[],D=1,w=null,L=3,ie=!1,oe=!1,k=!1,Se=!1,ye=typeof setTimeout=="function"?setTimeout:null,me=typeof clearTimeout=="function"?clearTimeout:null,we=typeof setImmediate<"u"?setImmediate:null;function ke(N){for(var C=A(j);C!==null;){if(C.callback===null)d(j);else if(C.startTime<=N)d(j),C.sortIndex=C.expirationTime,T(z,C);else break;C=A(j)}}function $e(N){if(k=!1,ke(N),!oe)if(A(z)!==null)oe=!0,Re||(Re=!0,ve());else{var C=A(j);C!==null&&ct($e,C.startTime-N)}}var Re=!1,Z=-1,Be=5,Ie=-1;function Ct(){return Se?!0:!(o.unstable_now()-Ie<Be)}function W(){if(Se=!1,Re){var N=o.unstable_now();Ie=N;var C=!0;try{e:{oe=!1,k&&(k=!1,me(Z),Z=-1),ie=!0;var Q=L;try{t:{for(ke(N),w=A(z);w!==null&&!(w.expirationTime>N&&Ct());){var re=w.callback;if(typeof re=="function"){w.callback=null,L=w.priorityLevel;var U=re(w.expirationTime<=N);if(N=o.unstable_now(),typeof U=="function"){w.callback=U,ke(N),C=!0;break t}w===A(z)&&d(z),ke(N)}else d(z);w=A(z)}if(w!==null)C=!0;else{var f=A(j);f!==null&&ct($e,f.startTime-N),C=!1}}break e}finally{w=null,L=Q,ie=!1}C=void 0}}finally{C?ve():Re=!1}}}var ve;if(typeof we=="function")ve=function(){we(W)};else if(typeof MessageChannel<"u"){var pt=new MessageChannel,Mt=pt.port2;pt.port1.onmessage=W,ve=function(){Mt.postMessage(null)}}else ve=function(){ye(W,0)};function ct(N,C){Z=ye(function(){N(o.unstable_now())},C)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(N){N.callback=null},o.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Be=0<N?Math.floor(1e3/N):5},o.unstable_getCurrentPriorityLevel=function(){return L},o.unstable_next=function(N){switch(L){case 1:case 2:case 3:var C=3;break;default:C=L}var Q=L;L=C;try{return N()}finally{L=Q}},o.unstable_requestPaint=function(){Se=!0},o.unstable_runWithPriority=function(N,C){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var Q=L;L=N;try{return C()}finally{L=Q}},o.unstable_scheduleCallback=function(N,C,Q){var re=o.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?re+Q:re):Q=re,N){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=Q+U,N={id:D++,callback:C,priorityLevel:N,startTime:Q,expirationTime:U,sortIndex:-1},Q>re?(N.sortIndex=Q,T(j,N),A(z)===null&&N===A(j)&&(k?(me(Z),Z=-1):k=!0,ct($e,Q-re))):(N.sortIndex=U,T(z,N),oe||ie||(oe=!0,Re||(Re=!0,ve()))),N},o.unstable_shouldYield=Ct,o.unstable_wrapCallback=function(N){var C=L;return function(){var Q=L;L=C;try{return N.apply(this,arguments)}finally{L=Q}}}})(xi)),xi}var Od;function Em(){return Od||(Od=1,mi.exports=wm()),mi.exports}var bi={exports:{}},Ke={};/**
 * @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 Cd;function Tm(){if(Cd)return Ke;Cd=1;var o=yi();function T(z){var j="https://react.dev/errors/"+z;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)j+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+z+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function A(){}var d={d:{f:A,r:function(){throw Error(T(522))},D:A,C:A,L:A,m:A,X:A,S:A,M:A},p:0,findDOMNode:null},M=Symbol.for("react.portal");function _(z,j,D){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:w==null?null:""+w,children:z,containerInfo:j,implementation:D}}var Y=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function B(z,j){if(z==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}return Ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=d,Ke.createPortal=function(z,j){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(T(299));return _(z,j,null,D)},Ke.flushSync=function(z){var j=Y.T,D=d.p;try{if(Y.T=null,d.p=2,z)return z()}finally{Y.T=j,d.p=D,d.d.f()}},Ke.preconnect=function(z,j){typeof z=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,d.d.C(z,j))},Ke.prefetchDNS=function(z){typeof z=="string"&&d.d.D(z)},Ke.preinit=function(z,j){if(typeof z=="string"&&j&&typeof j.as=="string"){var D=j.as,w=B(D,j.crossOrigin),L=typeof j.integrity=="string"?j.integrity:void 0,ie=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;D==="style"?d.d.S(z,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:w,integrity:L,fetchPriority:ie}):D==="script"&&d.d.X(z,{crossOrigin:w,integrity:L,fetchPriority:ie,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},Ke.preinitModule=function(z,j){if(typeof z=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var D=B(j.as,j.crossOrigin);d.d.M(z,{crossOrigin:D,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&d.d.M(z)},Ke.preload=function(z,j){if(typeof z=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var D=j.as,w=B(D,j.crossOrigin);d.d.L(z,D,{crossOrigin:w,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}},Ke.preloadModule=function(z,j){if(typeof z=="string")if(j){var D=B(j.as,j.crossOrigin);d.d.m(z,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:D,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else d.d.m(z)},Ke.requestFormReset=function(z){d.d.r(z)},Ke.unstable_batchedUpdates=function(z,j){return z(j)},Ke.useFormState=function(z,j,D){return Y.H.useFormState(z,j,D)},Ke.useFormStatus=function(){return Y.H.useHostTransitionStatus()},Ke.version="19.2.6",Ke}var Dd;function Am(){if(Dd)return bi.exports;Dd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(T){console.error(T)}}return o(),bi.exports=Tm(),bi.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 Ud;function Mm(){if(Ud)return Tn;Ud=1;var o=Em(),T=yi(),A=Am();function d(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 M(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function Y(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 B(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 z(e){if(_(e)!==e)throw Error(d(188))}function j(e){var t=e.alternate;if(!t){if(t=_(e),t===null)throw Error(d(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return z(n),e;if(s===a)return z(n),t;s=s.sibling}throw Error(d(188))}if(l.return!==a.return)l=n,a=s;else{for(var u=!1,i=n.child;i;){if(i===l){u=!0,l=n,a=s;break}if(i===a){u=!0,a=n,l=s;break}i=i.sibling}if(!u){for(i=s.child;i;){if(i===l){u=!0,l=s,a=n;break}if(i===a){u=!0,a=s,l=n;break}i=i.sibling}if(!u)throw Error(d(189))}}if(l.alternate!==a)throw Error(d(190))}if(l.tag!==3)throw Error(d(188));return l.stateNode.current===l?e:t}function D(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=D(e),t!==null)return t;e=e.sibling}return null}var w=Object.assign,L=Symbol.for("react.element"),ie=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),Se=Symbol.for("react.strict_mode"),ye=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),we=Symbol.for("react.context"),ke=Symbol.for("react.forward_ref"),$e=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Ie=Symbol.for("react.activity"),Ct=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var pt=Symbol.for("react.client.reference");function Mt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case ye:return"Profiler";case Se:return"StrictMode";case $e:return"Suspense";case Re:return"SuspenseList";case Ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case oe:return"Portal";case we:return e.displayName||"Context";case me:return(e._context.displayName||"Context")+".Consumer";case ke:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Mt(e.type)||"Memo";case Be:t=e._payload,e=e._init;try{return Mt(e(t))}catch{}}return null}var ct=Array.isArray,N=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=A.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},re=[],U=-1;function f(e){return{current:e}}function y(e){0>U||(e.current=re[U],re[U]=null,U--)}function O(e,t){U++,re[U]=e.current,e.current=t}var H=f(null),J=f(null),I=f(null),fe=f(null);function We(e,t){switch(O(I,t),O(J,e),O(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$o(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$o(t),e=Wo(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}y(H),O(H,e)}function Me(){y(H),y(J),y(I)}function Oa(e){e.memoizedState!==null&&O(fe,e);var t=H.current,l=Wo(t,e.type);t!==l&&(O(J,e),O(H,l))}function Mn(e){J.current===e&&(y(H),y(J)),fe.current===e&&(y(fe),Nn._currentValue=Q)}var Ks,Si;function Ml(e){if(Ks===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ks=t&&t[1]||"",Si=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ks+e+Si}var Js=!1;function $s(e,t){if(!e||Js)return"";Js=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(g){var p=g}Reflect.construct(e,[],E)}else{try{E.call()}catch(g){p=g}e.call(E.prototype)}}else{try{throw Error()}catch(g){p=g}(E=e())&&typeof E.catch=="function"&&E.catch(function(){})}}catch(g){if(g&&p&&typeof g.stack=="string")return[g.stack,p.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 s=a.DetermineComponentFrameRoot(),u=s[0],i=s[1];if(u&&i){var r=u.split(`
`),b=i.split(`
`);for(n=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;if(a===r.length||n===b.length)for(a=r.length-1,n=b.length-1;1<=a&&0<=n&&r[a]!==b[n];)n--;for(;1<=a&&0<=n;a--,n--)if(r[a]!==b[n]){if(a!==1||n!==1)do if(a--,n--,0>n||r[a]!==b[n]){var v=`
`+r[a].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),v}while(1<=a&&0<=n);break}}}finally{Js=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ml(l):""}function Wd(e,t){switch(e.tag){case 26:case 27:case 5:return Ml(e.type);case 16:return Ml("Lazy");case 13:return e.child!==t&&t!==null?Ml("Suspense Fallback"):Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 15:return $s(e.type,!1);case 11:return $s(e.type.render,!1);case 1:return $s(e.type,!0);case 31:return Ml("Activity");default:return""}}function wi(e){try{var t="",l=null;do t+=Wd(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ws=Object.prototype.hasOwnProperty,Fs=o.unstable_scheduleCallback,Is=o.unstable_cancelCallback,Fd=o.unstable_shouldYield,Id=o.unstable_requestPaint,ut=o.unstable_now,Pd=o.unstable_getCurrentPriorityLevel,Ei=o.unstable_ImmediatePriority,Ti=o.unstable_UserBlockingPriority,zn=o.unstable_NormalPriority,e0=o.unstable_LowPriority,Ai=o.unstable_IdlePriority,t0=o.log,l0=o.unstable_setDisableYieldValue,Ca=null,it=null;function ll(e){if(typeof t0=="function"&&l0(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Ca,e)}catch{}}var rt=Math.clz32?Math.clz32:s0,a0=Math.log,n0=Math.LN2;function s0(e){return e>>>=0,e===0?32:31-(a0(e)/n0|0)|0}var _n=256,On=262144,Cn=4194304;function zl(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 Dn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var i=a&134217727;return i!==0?(a=i&~s,a!==0?n=zl(a):(u&=i,u!==0?n=zl(u):l||(l=i&~e,l!==0&&(n=zl(l))))):(i=a&~s,i!==0?n=zl(i):u!==0?n=zl(u):l||(l=a&~e,l!==0&&(n=zl(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function Da(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function c0(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 Mi(){var e=Cn;return Cn<<=1,(Cn&62914560)===0&&(Cn=4194304),e}function Ps(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function u0(e,t,l,a,n,s){var u=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 i=e.entanglements,r=e.expirationTimes,b=e.hiddenUpdates;for(l=u&~l;0<l;){var v=31-rt(l),E=1<<v;i[v]=0,r[v]=-1;var p=b[v];if(p!==null)for(b[v]=null,v=0;v<p.length;v++){var g=p[v];g!==null&&(g.lane&=-536870913)}l&=~E}a!==0&&zi(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(u&~t))}function zi(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-rt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function _i(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-rt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Oi(e,t){var l=t&-t;return l=(l&42)!==0?1:ec(l),(l&(e.suspendedLanes|t))!==0?0:l}function ec(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 tc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ci(){var e=C.p;return e!==0?e:(e=window.event,e===void 0?32:yd(e.type))}function Di(e,t){var l=C.p;try{return C.p=e,t()}finally{C.p=l}}var al=Math.random().toString(36).slice(2),Ye="__reactFiber$"+al,Pe="__reactProps$"+al,Kl="__reactContainer$"+al,lc="__reactEvents$"+al,i0="__reactListeners$"+al,r0="__reactHandles$"+al,Ui="__reactResources$"+al,ka="__reactMarker$"+al;function ac(e){delete e[Ye],delete e[Pe],delete e[lc],delete e[i0],delete e[r0]}function Jl(e){var t=e[Ye];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Kl]||l[Ye]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ad(e);e!==null;){if(l=e[Ye])return l;e=ad(e)}return t}e=l,l=e.parentNode}return null}function $l(e){if(e=e[Ye]||e[Kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ra(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(d(33))}function Wl(e){var t=e[Ui];return t||(t=e[Ui]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[ka]=!0}var ki=new Set,Ri={};function _l(e,t){Fl(e,t),Fl(e+"Capture",t)}function Fl(e,t){for(Ri[e]=t,e=0;e<t.length;e++)ki.add(t[e])}var f0=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]*$"),Hi={},Bi={};function o0(e){return Ws.call(Bi,e)?!0:Ws.call(Hi,e)?!1:f0.test(e)?Bi[e]=!0:(Hi[e]=!0,!1)}function Un(e,t,l){if(o0(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 kn(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 Bt(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 gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d0(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,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,s.call(this,u)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nc(e){if(!e._valueTracker){var t=qi(e)?"checked":"value";e._valueTracker=d0(e,t,""+e[t])}}function Li(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=qi(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Rn(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 h0=/[\n"\\]/g;function yt(e){return e.replace(h0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function sc(e,t,l,a,n,s,u,i){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gt(t)):e.value!==""+gt(t)&&(e.value=""+gt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?cc(e,u,gt(t)):l!=null?cc(e,u,gt(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+gt(i):e.removeAttribute("name")}function Yi(e,t,l,a,n,s,u,i){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){nc(e);return}l=l!=null?""+gt(l):"",t=t!=null?""+gt(t):l,i||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=i?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),nc(e)}function cc(e,t,l){t==="number"&&Rn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Il(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=""+gt(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 Gi(e,t,l){if(t!=null&&(t=""+gt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+gt(l):""}function Xi(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(d(92));if(ct(a)){if(1<a.length)throw Error(d(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=gt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),nc(e)}function Pl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var m0=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 Vi(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||m0.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Qi(e,t,l){if(t!=null&&typeof t!="object")throw Error(d(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&&Vi(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&Vi(e,s,t[s])}function uc(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 x0=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"]]),b0=/^[\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 Hn(e){return b0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function qt(){}var ic=null;function rc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ea=null,ta=null;function Zi(e){var t=$l(e);if(t&&(e=t.stateNode)){var l=e[Pe]||null;e:switch(e=t.stateNode,t.type){case"input":if(sc(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="'+yt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Pe]||null;if(!n)throw Error(d(90));sc(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&&Li(a)}break e;case"textarea":Gi(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Il(e,!!l.multiple,t,!1)}}}var fc=!1;function Ki(e,t,l){if(fc)return e(t,l);fc=!0;try{var a=e(t);return a}finally{if(fc=!1,(ea!==null||ta!==null)&&(ws(),ea&&(t=ea,e=ta,ta=ea=null,Zi(t),e)))for(t=0;t<e.length;t++)Zi(e[t])}}function Ha(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Pe]||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(d(231,t,typeof l));return l}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oc=!1;if(Lt)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){oc=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{oc=!1}var nl=null,dc=null,Bn=null;function Ji(){if(Bn)return Bn;var e,t=dc,l=t.length,a,n="value"in nl?nl.value:nl.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var u=l-e;for(a=1;a<=u&&t[l-a]===n[s-a];a++);return Bn=n.slice(e,1<a?1-a:void 0)}function qn(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 Ln(){return!0}function $i(){return!1}function et(e){function t(l,a,n,s,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=u,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(l=e[i],this[i]=l?l(s):s[i]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ln:$i,this.isPropagationStopped=$i,this}return w(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=Ln)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ln)},persist:function(){},isPersistent:Ln}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yn=et(Ol),qa=w({},Ol,{view:0,detail:0}),p0=et(qa),hc,mc,La,Gn=w({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bc,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!==La&&(La&&e.type==="mousemove"?(hc=e.screenX-La.screenX,mc=e.screenY-La.screenY):mc=hc=0,La=e),hc)},movementY:function(e){return"movementY"in e?e.movementY:mc}}),Wi=et(Gn),g0=w({},Gn,{dataTransfer:0}),y0=et(g0),v0=w({},qa,{relatedTarget:0}),xc=et(v0),N0=w({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),j0=et(N0),S0=w({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w0=et(S0),E0=w({},Ol,{data:0}),Fi=et(E0),T0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A0={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"},M0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=M0[e])?!!t[e]:!1}function bc(){return z0}var _0=w({},qa,{key:function(e){if(e.key){var t=T0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?A0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bc,charCode:function(e){return e.type==="keypress"?qn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),O0=et(_0),C0=w({},Gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ii=et(C0),D0=w({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bc}),U0=et(D0),k0=w({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),R0=et(k0),H0=w({},Gn,{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}),B0=et(H0),q0=w({},Ol,{newState:0,oldState:0}),L0=et(q0),Y0=[9,13,27,32],pc=Lt&&"CompositionEvent"in window,Ya=null;Lt&&"documentMode"in document&&(Ya=document.documentMode);var G0=Lt&&"TextEvent"in window&&!Ya,Pi=Lt&&(!pc||Ya&&8<Ya&&11>=Ya),er=" ",tr=!1;function lr(e,t){switch(e){case"keyup":return Y0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ar(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var la=!1;function X0(e,t){switch(e){case"compositionend":return ar(t);case"keypress":return t.which!==32?null:(tr=!0,er);case"textInput":return e=t.data,e===er&&tr?null:e;default:return null}}function V0(e,t){if(la)return e==="compositionend"||!pc&&lr(e,t)?(e=Ji(),Bn=dc=nl=null,la=!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 Pi&&t.locale!=="ko"?null:t.data;default:return null}}var Q0={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 nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q0[e.type]:t==="textarea"}function sr(e,t,l,a){ea?ta?ta.push(a):ta=[a]:ea=a,t=Os(t,"onChange"),0<t.length&&(l=new Yn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Ga=null,Xa=null;function Z0(e){Xo(e,0)}function Xn(e){var t=Ra(e);if(Li(t))return e}function cr(e,t){if(e==="change")return t}var ur=!1;if(Lt){var gc;if(Lt){var yc="oninput"in document;if(!yc){var ir=document.createElement("div");ir.setAttribute("oninput","return;"),yc=typeof ir.oninput=="function"}gc=yc}else gc=!1;ur=gc&&(!document.documentMode||9<document.documentMode)}function rr(){Ga&&(Ga.detachEvent("onpropertychange",fr),Xa=Ga=null)}function fr(e){if(e.propertyName==="value"&&Xn(Xa)){var t=[];sr(t,Xa,e,rc(e)),Ki(Z0,t)}}function K0(e,t,l){e==="focusin"?(rr(),Ga=t,Xa=l,Ga.attachEvent("onpropertychange",fr)):e==="focusout"&&rr()}function J0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xn(Xa)}function $0(e,t){if(e==="click")return Xn(t)}function W0(e,t){if(e==="input"||e==="change")return Xn(t)}function F0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:F0;function Va(e,t){if(ft(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(!Ws.call(t,n)||!ft(e[n],t[n]))return!1}return!0}function or(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var l=or(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=or(l)}}function hr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rn(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=Rn(e.document)}return t}function vc(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 I0=Lt&&"documentMode"in document&&11>=document.documentMode,aa=null,Nc=null,Qa=null,jc=!1;function xr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;jc||aa==null||aa!==Rn(a)||(a=aa,"selectionStart"in a&&vc(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}),Qa&&Va(Qa,a)||(Qa=a,a=Os(Nc,"onSelect"),0<a.length&&(t=new Yn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=aa)))}function Cl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var na={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},Sc={},br={};Lt&&(br=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function Dl(e){if(Sc[e])return Sc[e];if(!na[e])return e;var t=na[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in br)return Sc[e]=t[l];return e}var pr=Dl("animationend"),gr=Dl("animationiteration"),yr=Dl("animationstart"),P0=Dl("transitionrun"),eh=Dl("transitionstart"),th=Dl("transitioncancel"),vr=Dl("transitionend"),Nr=new Map,wc="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(" ");wc.push("scrollEnd");function zt(e,t){Nr.set(e,t),_l(t,[e])}var Vn=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)},vt=[],sa=0,Ec=0;function Qn(){for(var e=sa,t=Ec=sa=0;t<e;){var l=vt[t];vt[t++]=null;var a=vt[t];vt[t++]=null;var n=vt[t];vt[t++]=null;var s=vt[t];if(vt[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}s!==0&&jr(l,n,s)}}function Zn(e,t,l,a){vt[sa++]=e,vt[sa++]=t,vt[sa++]=l,vt[sa++]=a,Ec|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Tc(e,t,l,a){return Zn(e,t,l,a),Kn(e)}function Ul(e,t){return Zn(e,null,null,t),Kn(e)}function jr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-rt(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function Kn(e){if(50<mn)throw mn=0,ku=null,Error(d(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ca={};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 ot(e,t,l,a){return new lh(e,t,l,a)}function Ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Yt(e,t){var l=e.alternate;return l===null?(l=ot(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 Sr(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 Jn(e,t,l,a,n,s){var u=0;if(a=e,typeof e=="function")Ac(e)&&(u=1);else if(typeof e=="string")u=um(e,l,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ie:return e=ot(31,l,t,n),e.elementType=Ie,e.lanes=s,e;case k:return kl(l.children,n,s,t);case Se:u=8,n|=24;break;case ye:return e=ot(12,l,t,n|2),e.elementType=ye,e.lanes=s,e;case $e:return e=ot(13,l,t,n),e.elementType=$e,e.lanes=s,e;case Re:return e=ot(19,l,t,n),e.elementType=Re,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case we:u=10;break e;case me:u=9;break e;case ke:u=11;break e;case Z:u=14;break e;case Be:u=16,a=null;break e}u=29,l=Error(d(130,e===null?"null":typeof e,"")),a=null}return t=ot(u,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function kl(e,t,l,a){return e=ot(7,e,a,t),e.lanes=l,e}function Mc(e,t,l){return e=ot(6,e,null,t),e.lanes=l,e}function wr(e){var t=ot(18,null,null,0);return t.stateNode=e,t}function zc(e,t,l){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Er=new WeakMap;function Nt(e,t){if(typeof e=="object"&&e!==null){var l=Er.get(e);return l!==void 0?l:(t={value:e,source:t,stack:wi(t)},Er.set(e,t),t)}return{value:e,source:t,stack:wi(t)}}var ua=[],ia=0,$n=null,Za=0,jt=[],St=0,sl=null,Dt=1,Ut="";function Gt(e,t){ua[ia++]=Za,ua[ia++]=$n,$n=e,Za=t}function Tr(e,t,l){jt[St++]=Dt,jt[St++]=Ut,jt[St++]=sl,sl=e;var a=Dt;e=Ut;var n=32-rt(a)-1;a&=~(1<<n),l+=1;var s=32-rt(t)+n;if(30<s){var u=n-n%5;s=(a&(1<<u)-1).toString(32),a>>=u,n-=u,Dt=1<<32-rt(t)+n|l<<n|a,Ut=s+e}else Dt=1<<s|l<<n|a,Ut=e}function _c(e){e.return!==null&&(Gt(e,1),Tr(e,1,0))}function Oc(e){for(;e===$n;)$n=ua[--ia],ua[ia]=null,Za=ua[--ia],ua[ia]=null;for(;e===sl;)sl=jt[--St],jt[St]=null,Ut=jt[--St],jt[St]=null,Dt=jt[--St],jt[St]=null}function Ar(e,t){jt[St++]=Dt,jt[St++]=Ut,jt[St++]=sl,Dt=t.id,Ut=t.overflow,sl=e}var Ge=null,Ne=null,ne=!1,cl=null,wt=!1,Cc=Error(d(519));function ul(e){var t=Error(d(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(Nt(t,e)),Cc}function Mr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ye]=e,t[Pe]=a,l){case"dialog":ee("cancel",t),ee("close",t);break;case"iframe":case"object":case"embed":ee("load",t);break;case"video":case"audio":for(l=0;l<bn.length;l++)ee(bn[l],t);break;case"source":ee("error",t);break;case"img":case"image":case"link":ee("error",t),ee("load",t);break;case"details":ee("toggle",t);break;case"input":ee("invalid",t),Yi(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ee("invalid",t);break;case"textarea":ee("invalid",t),Xi(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||Ko(t.textContent,l)?(a.popover!=null&&(ee("beforetoggle",t),ee("toggle",t)),a.onScroll!=null&&ee("scroll",t),a.onScrollEnd!=null&&ee("scrollend",t),a.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||ul(e,!0)}function zr(e){for(Ge=e.return;Ge;)switch(Ge.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:Ge=Ge.return}}function ra(e){if(e!==Ge)return!1;if(!ne)return zr(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")||Wu(e.type,e.memoizedProps)),l=!l),l&&Ne&&ul(e),zr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(d(317));Ne=ld(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(d(317));Ne=ld(e)}else t===27?(t=Ne,Nl(e.type)?(e=ti,ti=null,Ne=e):Ne=t):Ne=Ge?Tt(e.stateNode.nextSibling):null;return!0}function Rl(){Ne=Ge=null,ne=!1}function Dc(){var e=cl;return e!==null&&(nt===null?nt=e:nt.push.apply(nt,e),cl=null),e}function Ka(e){cl===null?cl=[e]:cl.push(e)}var Uc=f(null),Hl=null,Xt=null;function il(e,t,l){O(Uc,t._currentValue),t._currentValue=l}function Vt(e){e._currentValue=Uc.current,y(Uc)}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 Rc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var u=n.child;s=s.firstContext;e:for(;s!==null;){var i=s;s=n;for(var r=0;r<t.length;r++)if(i.context===t[r]){s.lanes|=l,i=s.alternate,i!==null&&(i.lanes|=l),kc(s.return,l,e),a||(u=null);break e}s=i.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(d(341));u.lanes|=l,s=u.alternate,s!==null&&(s.lanes|=l),kc(u,l,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function fa(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(d(387));if(u=u.memoizedProps,u!==null){var i=n.type;ft(n.pendingProps.value,u.value)||(e!==null?e.push(i):e=[i])}}else if(n===fe.current){if(u=n.alternate,u===null)throw Error(d(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Nn):e=[Nn])}n=n.return}e!==null&&Rc(t,e,l,a),t.flags|=262144}function Wn(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Bl(e){Hl=e,Xt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xe(e){return _r(Hl,e)}function Fn(e,t){return Hl===null&&Bl(e),_r(e,t)}function _r(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Xt===null){if(e===null)throw Error(d(308));Xt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xt=Xt.next=t;return l}var ah=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()})}},nh=o.unstable_scheduleCallback,sh=o.unstable_NormalPriority,Oe={$$typeof:we,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new ah,data:new Map,refCount:0}}function Ja(e){e.refCount--,e.refCount===0&&nh(sh,function(){e.controller.abort()})}var $a=null,Bc=0,oa=0,da=null;function ch(e,t){if($a===null){var l=$a=[];Bc=0,oa=Yu(),da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Bc++,t.then(Or,Or),t}function Or(){if(--Bc===0&&$a!==null){da!==null&&(da.status="fulfilled");var e=$a;$a=null,oa=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uh(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 Cr=N.S;N.S=function(e,t){po=ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ch(e,t),Cr!==null&&Cr(e,t)};var ql=f(null);function qc(){var e=ql.current;return e!==null?e:ge.pooledCache}function In(e,t){t===null?O(ql,ql.current):O(ql,t.pool)}function Dr(){var e=qc();return e===null?null:{parent:Oe._currentValue,pool:e}}var ha=Error(d(460)),Lc=Error(d(474)),Pn=Error(d(542)),es={then:function(){}};function Ur(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(qt,qt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Hr(e),e;default:if(typeof t.status=="string")t.then(qt,qt);else{if(e=ge,e!==null&&100<e.shellSuspendCounter)throw Error(d(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,Hr(e),e}throw Yl=t,ha}}function Ll(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Yl=l,ha):l}}var Yl=null;function Rr(){if(Yl===null)throw Error(d(459));var e=Yl;return Yl=null,e}function Hr(e){if(e===ha||e===Pn)throw Error(d(483))}var ma=null,Wa=0;function ts(e){var t=Wa;return Wa+=1,ma===null&&(ma=[]),kr(ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ls(e,t){throw t.$$typeof===L?Error(d(525)):(e=Object.prototype.toString.call(t),Error(d(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Br(e){function t(m,h){if(e){var x=m.deletions;x===null?(m.deletions=[h],m.flags|=16):x.push(h)}}function l(m,h){if(!e)return null;for(;h!==null;)t(m,h),h=h.sibling;return null}function a(m){for(var h=new Map;m!==null;)m.key!==null?h.set(m.key,m):h.set(m.index,m),m=m.sibling;return h}function n(m,h){return m=Yt(m,h),m.index=0,m.sibling=null,m}function s(m,h,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<h?(m.flags|=67108866,h):x):(m.flags|=67108866,h)):(m.flags|=1048576,h)}function u(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function i(m,h,x,S){return h===null||h.tag!==6?(h=Mc(x,m.mode,S),h.return=m,h):(h=n(h,x),h.return=m,h)}function r(m,h,x,S){var G=x.type;return G===k?v(m,h,x.props.children,S,x.key):h!==null&&(h.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Be&&Ll(G)===h.type)?(h=n(h,x.props),Fa(h,x),h.return=m,h):(h=Jn(x.type,x.key,x.props,null,m.mode,S),Fa(h,x),h.return=m,h)}function b(m,h,x,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==x.containerInfo||h.stateNode.implementation!==x.implementation?(h=zc(x,m.mode,S),h.return=m,h):(h=n(h,x.children||[]),h.return=m,h)}function v(m,h,x,S,G){return h===null||h.tag!==7?(h=kl(x,m.mode,S,G),h.return=m,h):(h=n(h,x),h.return=m,h)}function E(m,h,x){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Mc(""+h,m.mode,x),h.return=m,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case ie:return x=Jn(h.type,h.key,h.props,null,m.mode,x),Fa(x,h),x.return=m,x;case oe:return h=zc(h,m.mode,x),h.return=m,h;case Be:return h=Ll(h),E(m,h,x)}if(ct(h)||ve(h))return h=kl(h,m.mode,x,null),h.return=m,h;if(typeof h.then=="function")return E(m,ts(h),x);if(h.$$typeof===we)return E(m,Fn(m,h),x);ls(m,h)}return null}function p(m,h,x,S){var G=h!==null?h.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return G!==null?null:i(m,h,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ie:return x.key===G?r(m,h,x,S):null;case oe:return x.key===G?b(m,h,x,S):null;case Be:return x=Ll(x),p(m,h,x,S)}if(ct(x)||ve(x))return G!==null?null:v(m,h,x,S,null);if(typeof x.then=="function")return p(m,h,ts(x),S);if(x.$$typeof===we)return p(m,h,Fn(m,x),S);ls(m,x)}return null}function g(m,h,x,S,G){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(x)||null,i(h,m,""+S,G);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ie:return m=m.get(S.key===null?x:S.key)||null,r(h,m,S,G);case oe:return m=m.get(S.key===null?x:S.key)||null,b(h,m,S,G);case Be:return S=Ll(S),g(m,h,x,S,G)}if(ct(S)||ve(S))return m=m.get(x)||null,v(h,m,S,G,null);if(typeof S.then=="function")return g(m,h,x,ts(S),G);if(S.$$typeof===we)return g(m,h,x,Fn(h,S),G);ls(h,S)}return null}function R(m,h,x,S){for(var G=null,se=null,q=h,F=h=0,ae=null;q!==null&&F<x.length;F++){q.index>F?(ae=q,q=null):ae=q.sibling;var ce=p(m,q,x[F],S);if(ce===null){q===null&&(q=ae);break}e&&q&&ce.alternate===null&&t(m,q),h=s(ce,h,F),se===null?G=ce:se.sibling=ce,se=ce,q=ae}if(F===x.length)return l(m,q),ne&&Gt(m,F),G;if(q===null){for(;F<x.length;F++)q=E(m,x[F],S),q!==null&&(h=s(q,h,F),se===null?G=q:se.sibling=q,se=q);return ne&&Gt(m,F),G}for(q=a(q);F<x.length;F++)ae=g(q,m,F,x[F],S),ae!==null&&(e&&ae.alternate!==null&&q.delete(ae.key===null?F:ae.key),h=s(ae,h,F),se===null?G=ae:se.sibling=ae,se=ae);return e&&q.forEach(function(Tl){return t(m,Tl)}),ne&&Gt(m,F),G}function V(m,h,x,S){if(x==null)throw Error(d(151));for(var G=null,se=null,q=h,F=h=0,ae=null,ce=x.next();q!==null&&!ce.done;F++,ce=x.next()){q.index>F?(ae=q,q=null):ae=q.sibling;var Tl=p(m,q,ce.value,S);if(Tl===null){q===null&&(q=ae);break}e&&q&&Tl.alternate===null&&t(m,q),h=s(Tl,h,F),se===null?G=Tl:se.sibling=Tl,se=Tl,q=ae}if(ce.done)return l(m,q),ne&&Gt(m,F),G;if(q===null){for(;!ce.done;F++,ce=x.next())ce=E(m,ce.value,S),ce!==null&&(h=s(ce,h,F),se===null?G=ce:se.sibling=ce,se=ce);return ne&&Gt(m,F),G}for(q=a(q);!ce.done;F++,ce=x.next())ce=g(q,m,F,ce.value,S),ce!==null&&(e&&ce.alternate!==null&&q.delete(ce.key===null?F:ce.key),h=s(ce,h,F),se===null?G=ce:se.sibling=ce,se=ce);return e&&q.forEach(function(gm){return t(m,gm)}),ne&&Gt(m,F),G}function pe(m,h,x,S){if(typeof x=="object"&&x!==null&&x.type===k&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case ie:e:{for(var G=x.key;h!==null;){if(h.key===G){if(G=x.type,G===k){if(h.tag===7){l(m,h.sibling),S=n(h,x.props.children),S.return=m,m=S;break e}}else if(h.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===Be&&Ll(G)===h.type){l(m,h.sibling),S=n(h,x.props),Fa(S,x),S.return=m,m=S;break e}l(m,h);break}else t(m,h);h=h.sibling}x.type===k?(S=kl(x.props.children,m.mode,S,x.key),S.return=m,m=S):(S=Jn(x.type,x.key,x.props,null,m.mode,S),Fa(S,x),S.return=m,m=S)}return u(m);case oe:e:{for(G=x.key;h!==null;){if(h.key===G)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){l(m,h.sibling),S=n(h,x.children||[]),S.return=m,m=S;break e}else{l(m,h);break}else t(m,h);h=h.sibling}S=zc(x,m.mode,S),S.return=m,m=S}return u(m);case Be:return x=Ll(x),pe(m,h,x,S)}if(ct(x))return R(m,h,x,S);if(ve(x)){if(G=ve(x),typeof G!="function")throw Error(d(150));return x=G.call(x),V(m,h,x,S)}if(typeof x.then=="function")return pe(m,h,ts(x),S);if(x.$$typeof===we)return pe(m,h,Fn(m,x),S);ls(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,h!==null&&h.tag===6?(l(m,h.sibling),S=n(h,x),S.return=m,m=S):(l(m,h),S=Mc(x,m.mode,S),S.return=m,m=S),u(m)):l(m,h)}return function(m,h,x,S){try{Wa=0;var G=pe(m,h,x,S);return ma=null,G}catch(q){if(q===ha||q===Pn)throw q;var se=ot(29,q,null,m.mode);return se.lanes=S,se.return=m,se}finally{}}}var Gl=Br(!0),qr=Br(!1),rl=!1;function Yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gc(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 fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ol(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ue&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Kn(e),jr(e,null,l),t}return Zn(e,a,t,l),Kn(e)}function Ia(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,_i(e,l)}}function Xc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=u:s=s.next=u,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,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 Vc=!1;function Pa(){if(Vc){var e=da;if(e!==null)throw e}}function en(e,t,l,a){Vc=!1;var n=e.updateQueue;rl=!1;var s=n.firstBaseUpdate,u=n.lastBaseUpdate,i=n.shared.pending;if(i!==null){n.shared.pending=null;var r=i,b=r.next;r.next=null,u===null?s=b:u.next=b,u=r;var v=e.alternate;v!==null&&(v=v.updateQueue,i=v.lastBaseUpdate,i!==u&&(i===null?v.firstBaseUpdate=b:i.next=b,v.lastBaseUpdate=r))}if(s!==null){var E=n.baseState;u=0,v=b=r=null,i=s;do{var p=i.lane&-536870913,g=p!==i.lane;if(g?(le&p)===p:(a&p)===p){p!==0&&p===oa&&(Vc=!0),v!==null&&(v=v.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var R=e,V=i;p=t;var pe=l;switch(V.tag){case 1:if(R=V.payload,typeof R=="function"){E=R.call(pe,E,p);break e}E=R;break e;case 3:R.flags=R.flags&-65537|128;case 0:if(R=V.payload,p=typeof R=="function"?R.call(pe,E,p):R,p==null)break e;E=w({},E,p);break e;case 2:rl=!0}}p=i.callback,p!==null&&(e.flags|=64,g&&(e.flags|=8192),g=n.callbacks,g===null?n.callbacks=[p]:g.push(p))}else g={lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},v===null?(b=v=g,r=E):v=v.next=g,u|=p;if(i=i.next,i===null){if(i=n.shared.pending,i===null)break;g=i,i=g.next,g.next=null,n.lastBaseUpdate=g,n.shared.pending=null}}while(!0);v===null&&(r=E),n.baseState=r,n.firstBaseUpdate=b,n.lastBaseUpdate=v,s===null&&(n.shared.lanes=0),bl|=u,e.lanes=u,e.memoizedState=E}}function Lr(e,t){if(typeof e!="function")throw Error(d(191,e));e.call(t)}function Yr(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Lr(l[e],t)}var xa=f(null),as=f(0);function Gr(e,t){e=Pt,O(as,e),O(xa,t),Pt=e|t.baseLanes}function Qc(){O(as,Pt),O(xa,xa.current)}function Zc(){Pt=as.current,y(xa),y(as)}var dt=f(null),Et=null;function dl(e){var t=e.alternate;O(ze,ze.current&1),O(dt,e),Et===null&&(t===null||xa.current!==null||t.memoizedState!==null)&&(Et=e)}function Kc(e){O(ze,ze.current),O(dt,e),Et===null&&(Et=e)}function Xr(e){e.tag===22?(O(ze,ze.current),O(dt,e),Et===null&&(Et=e)):hl()}function hl(){O(ze,ze.current),O(dt,dt.current)}function ht(e){y(dt),Et===e&&(Et=null),y(ze)}var ze=f(0);function ns(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Pu(l)||ei(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)!==0)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 Qt=0,$=null,xe=null,Ce=null,ss=!1,ba=!1,Xl=!1,cs=0,tn=0,pa=null,ih=0;function Te(){throw Error(d(321))}function Jc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ft(e[l],t[l]))return!1;return!0}function $c(e,t,l,a,n,s){return Qt=s,$=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Af:fu,Xl=!1,s=l(a,n),Xl=!1,ba&&(s=Qr(t,l,a,n)),Vr(e),s}function Vr(e){N.H=nn;var t=xe!==null&&xe.next!==null;if(Qt=0,Ce=xe=$=null,ss=!1,tn=0,pa=null,t)throw Error(d(300));e===null||De||(e=e.dependencies,e!==null&&Wn(e)&&(De=!0))}function Qr(e,t,l,a){$=e;var n=0;do{if(ba&&(pa=null),tn=0,ba=!1,25<=n)throw Error(d(301));if(n+=1,Ce=xe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}N.H=Mf,s=t(l,a)}while(ba);return s}function rh(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?ln(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&($.flags|=1024),t}function Wc(){var e=cs!==0;return cs=0,e}function Fc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ic(e){if(ss){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ss=!1}Qt=0,Ce=xe=$=null,ba=!1,tn=cs=0,pa=null}function Fe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ce===null?$.memoizedState=Ce=e:Ce=Ce.next=e,Ce}function _e(){if(xe===null){var e=$.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Ce===null?$.memoizedState:Ce.next;if(t!==null)Ce=t,xe=e;else{if(e===null)throw $.alternate===null?Error(d(467)):Error(d(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Ce===null?$.memoizedState=Ce=e:Ce=Ce.next=e}return Ce}function us(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ln(e){var t=tn;return tn+=1,pa===null&&(pa=[]),e=kr(pa,e,t),t=$,(Ce===null?t.memoizedState:Ce.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Af:fu),e}function is(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ln(e);if(e.$$typeof===we)return Xe(e)}throw Error(d(438,String(e)))}function Pc(e){var t=null,l=$.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=$.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=us(),$.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]=Ct;return t.index++,l}function Zt(e,t){return typeof t=="function"?t(e):t}function rs(e){var t=_e();return eu(t,xe,e)}function eu(e,t,l){var a=e.queue;if(a===null)throw Error(d(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var u=n.next;n.next=s.next,s.next=u}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var i=u=null,r=null,b=t,v=!1;do{var E=b.lane&-536870913;if(E!==b.lane?(le&E)===E:(Qt&E)===E){var p=b.revertLane;if(p===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),E===oa&&(v=!0);else if((Qt&p)===p){b=b.next,p===oa&&(v=!0);continue}else E={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},r===null?(i=r=E,u=s):r=r.next=E,$.lanes|=p,bl|=p;E=b.action,Xl&&l(s,E),s=b.hasEagerState?b.eagerState:l(s,E)}else p={lane:E,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},r===null?(i=r=p,u=s):r=r.next=p,$.lanes|=E,bl|=E;b=b.next}while(b!==null&&b!==t);if(r===null?u=s:r.next=i,!ft(s,e.memoizedState)&&(De=!0,v&&(l=da,l!==null)))throw l;e.memoizedState=s,e.baseState=u,e.baseQueue=r,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function tu(e){var t=_e(),l=t.queue;if(l===null)throw Error(d(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do s=e(s,u.action),u=u.next;while(u!==n);ft(s,t.memoizedState)||(De=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function Zr(e,t,l){var a=$,n=_e(),s=ne;if(s){if(l===void 0)throw Error(d(407));l=l()}else l=t();var u=!ft((xe||n).memoizedState,l);if(u&&(n.memoizedState=l,De=!0),n=n.queue,nu($r.bind(null,a,n,e),[e]),n.getSnapshot!==t||u||Ce!==null&&Ce.memoizedState.tag&1){if(a.flags|=2048,ga(9,{destroy:void 0},Jr.bind(null,a,n,l,t),null),ge===null)throw Error(d(349));s||(Qt&127)!==0||Kr(a,t,l)}return l}function Kr(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=$.updateQueue,t===null?(t=us(),$.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Jr(e,t,l,a){t.value=l,t.getSnapshot=a,Wr(t)&&Fr(e)}function $r(e,t,l){return l(function(){Wr(t)&&Fr(e)})}function Wr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ft(e,l)}catch{return!0}}function Fr(e){var t=Ul(e,2);t!==null&&st(t,e,2)}function lu(e){var t=Fe();if(typeof e=="function"){var l=e;if(e=l(),Xl){ll(!0);try{l()}finally{ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:e},t}function Ir(e,t,l,a){return e.baseState=l,eu(e,xe,typeof a=="function"?a:Zt)}function fh(e,t,l,a,n){if(ds(e))throw Error(d(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){s.listeners.push(u)}};N.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,Pr(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Pr(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=N.T,u={};N.T=u;try{var i=l(n,a),r=N.S;r!==null&&r(u,i),ef(e,t,i)}catch(b){au(e,t,b)}finally{s!==null&&u.types!==null&&(s.types=u.types),N.T=s}}else try{s=l(n,a),ef(e,t,s)}catch(b){au(e,t,b)}}function ef(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){tf(e,t,a)},function(a){return au(e,t,a)}):tf(e,t,l)}function tf(e,t,l){t.status="fulfilled",t.value=l,lf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Pr(e,l)))}function au(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,lf(t),t=t.next;while(t!==a)}e.action=null}function lf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function af(e,t){return t}function nf(e,t){if(ne){var l=ge.formState;if(l!==null){e:{var a=$;if(ne){if(Ne){t:{for(var n=Ne,s=wt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Tt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){Ne=Tt(n.nextSibling),a=n.data==="F!";break e}}ul(a)}a=!1}a&&(t=l[0])}}return l=Fe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:af,lastRenderedState:t},l.queue=a,l=wf.bind(null,$,a),a.dispatch=l,a=lu(!1),s=ru.bind(null,$,!1,a.queue),a=Fe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=fh.bind(null,$,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function sf(e){var t=_e();return cf(t,xe,e)}function cf(e,t,l){if(t=eu(e,t,af)[0],e=rs(Zt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ln(t)}catch(u){throw u===ha?Pn:u}else a=t;t=_e();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&($.flags|=2048,ga(9,{destroy:void 0},oh.bind(null,n,l),null)),[a,s,e]}function oh(e,t){e.action=t}function uf(e){var t=_e(),l=xe;if(l!==null)return cf(t,l,e);_e(),t=t.memoizedState,l=_e();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ga(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=$.updateQueue,t===null&&(t=us(),$.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 rf(){return _e().memoizedState}function fs(e,t,l,a){var n=Fe();$.flags|=e,n.memoizedState=ga(1|t,{destroy:void 0},l,a===void 0?null:a)}function os(e,t,l,a){var n=_e();a=a===void 0?null:a;var s=n.memoizedState.inst;xe!==null&&a!==null&&Jc(a,xe.memoizedState.deps)?n.memoizedState=ga(t,s,l,a):($.flags|=e,n.memoizedState=ga(1|t,s,l,a))}function ff(e,t){fs(8390656,8,e,t)}function nu(e,t){os(2048,8,e,t)}function dh(e){$.flags|=4;var t=$.updateQueue;if(t===null)t=us(),$.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function of(e){var t=_e().memoizedState;return dh({ref:t,nextImpl:e}),function(){if((ue&2)!==0)throw Error(d(440));return t.impl.apply(void 0,arguments)}}function df(e,t){return os(4,2,e,t)}function hf(e,t){return os(4,4,e,t)}function mf(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 xf(e,t,l){l=l!=null?l.concat([e]):null,os(4,4,mf.bind(null,t,e),l)}function su(){}function bf(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Jc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function pf(e,t){var l=_e();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Jc(t,a[1]))return a[0];if(a=e(),Xl){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a}function cu(e,t,l){return l===void 0||(Qt&1073741824)!==0&&(le&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=yo(),$.lanes|=e,bl|=e,l)}function gf(e,t,l,a){return ft(l,t)?l:xa.current!==null?(e=cu(e,l,a),ft(e,t)||(De=!0),e):(Qt&42)===0||(Qt&1073741824)!==0&&(le&261930)===0?(De=!0,e.memoizedState=l):(e=yo(),$.lanes|=e,bl|=e,t)}function yf(e,t,l,a,n){var s=C.p;C.p=s!==0&&8>s?s:8;var u=N.T,i={};N.T=i,ru(e,!1,t,l);try{var r=n(),b=N.S;if(b!==null&&b(i,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var v=uh(r,a);an(e,t,v,bt(e))}else an(e,t,a,bt(e))}catch(E){an(e,t,{then:function(){},status:"rejected",reason:E},bt())}finally{C.p=s,u!==null&&i.types!==null&&(u.types=i.types),N.T=u}}function hh(){}function uu(e,t,l,a){if(e.tag!==5)throw Error(d(476));var n=vf(e).queue;yf(e,n,t,Q,l===null?hh:function(){return Nf(e),l(a)})}function vf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:Q},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nf(e){var t=vf(e);t.next===null&&(t=e.alternate.memoizedState),an(e,t.next.queue,{},bt())}function iu(){return Xe(Nn)}function jf(){return _e().memoizedState}function Sf(){return _e().memoizedState}function mh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=fl(l);var a=ol(t,e,l);a!==null&&(st(a,t,l),Ia(a,t,l)),t={cache:Hc()},e.payload=t;return}t=t.return}}function xh(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ds(e)?Ef(t,l):(l=Tc(e,t,l,a),l!==null&&(st(l,e,a),Tf(l,t,a)))}function wf(e,t,l){var a=bt();an(e,t,l,a)}function an(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ds(e))Ef(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var u=t.lastRenderedState,i=s(u,l);if(n.hasEagerState=!0,n.eagerState=i,ft(i,u))return Zn(e,t,n,0),ge===null&&Qn(),!1}catch{}finally{}if(l=Tc(e,t,n,a),l!==null)return st(l,e,a),Tf(l,t,a),!0}return!1}function ru(e,t,l,a){if(a={lane:2,revertLane:Yu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ds(e)){if(t)throw Error(d(479))}else t=Tc(e,l,a,2),t!==null&&st(t,e,2)}function ds(e){var t=e.alternate;return e===$||t!==null&&t===$}function Ef(e,t){ba=ss=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Tf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,_i(e,l)}}var nn={readContext:Xe,use:is,useCallback:Te,useContext:Te,useEffect:Te,useImperativeHandle:Te,useLayoutEffect:Te,useInsertionEffect:Te,useMemo:Te,useReducer:Te,useRef:Te,useState:Te,useDebugValue:Te,useDeferredValue:Te,useTransition:Te,useSyncExternalStore:Te,useId:Te,useHostTransitionStatus:Te,useFormState:Te,useActionState:Te,useOptimistic:Te,useMemoCache:Te,useCacheRefresh:Te};nn.useEffectEvent=Te;var Af={readContext:Xe,use:is,useCallback:function(e,t){return Fe().memoizedState=[e,t===void 0?null:t],e},useContext:Xe,useEffect:ff,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,fs(4194308,4,mf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return fs(4194308,4,e,t)},useInsertionEffect:function(e,t){fs(4,2,e,t)},useMemo:function(e,t){var l=Fe();t=t===void 0?null:t;var a=e();if(Xl){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Fe();if(l!==void 0){var n=l(t);if(Xl){ll(!0);try{l(t)}finally{ll(!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=xh.bind(null,$,e),[a.memoizedState,e]},useRef:function(e){var t=Fe();return e={current:e},t.memoizedState=e},useState:function(e){e=lu(e);var t=e.queue,l=wf.bind(null,$,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:su,useDeferredValue:function(e,t){var l=Fe();return cu(l,e,t)},useTransition:function(){var e=lu(!1);return e=yf.bind(null,$,e.queue,!0,!1),Fe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=$,n=Fe();if(ne){if(l===void 0)throw Error(d(407));l=l()}else{if(l=t(),ge===null)throw Error(d(349));(le&127)!==0||Kr(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,ff($r.bind(null,a,s,e),[e]),a.flags|=2048,ga(9,{destroy:void 0},Jr.bind(null,a,s,l,t),null),l},useId:function(){var e=Fe(),t=ge.identifierPrefix;if(ne){var l=Ut,a=Dt;l=(a&~(1<<32-rt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=cs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=ih++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:iu,useFormState:nf,useActionState:nf,useOptimistic:function(e){var t=Fe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ru.bind(null,$,!0,l),l.dispatch=t,[e,t]},useMemoCache:Pc,useCacheRefresh:function(){return Fe().memoizedState=mh.bind(null,$)},useEffectEvent:function(e){var t=Fe(),l={impl:e};return t.memoizedState=l,function(){if((ue&2)!==0)throw Error(d(440));return l.impl.apply(void 0,arguments)}}},fu={readContext:Xe,use:is,useCallback:bf,useContext:Xe,useEffect:nu,useImperativeHandle:xf,useInsertionEffect:df,useLayoutEffect:hf,useMemo:pf,useReducer:rs,useRef:rf,useState:function(){return rs(Zt)},useDebugValue:su,useDeferredValue:function(e,t){var l=_e();return gf(l,xe.memoizedState,e,t)},useTransition:function(){var e=rs(Zt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:ln(e),t]},useSyncExternalStore:Zr,useId:jf,useHostTransitionStatus:iu,useFormState:sf,useActionState:sf,useOptimistic:function(e,t){var l=_e();return Ir(l,xe,e,t)},useMemoCache:Pc,useCacheRefresh:Sf};fu.useEffectEvent=of;var Mf={readContext:Xe,use:is,useCallback:bf,useContext:Xe,useEffect:nu,useImperativeHandle:xf,useInsertionEffect:df,useLayoutEffect:hf,useMemo:pf,useReducer:tu,useRef:rf,useState:function(){return tu(Zt)},useDebugValue:su,useDeferredValue:function(e,t){var l=_e();return xe===null?cu(l,e,t):gf(l,xe.memoizedState,e,t)},useTransition:function(){var e=tu(Zt)[0],t=_e().memoizedState;return[typeof e=="boolean"?e:ln(e),t]},useSyncExternalStore:Zr,useId:jf,useHostTransitionStatus:iu,useFormState:uf,useActionState:uf,useOptimistic:function(e,t){var l=_e();return xe!==null?Ir(l,xe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Pc,useCacheRefresh:Sf};Mf.useEffectEvent=of;function ou(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:w({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var du={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),n=fl(a);n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(st(t,e,a),Ia(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),n=fl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ol(e,n,a),t!==null&&(st(t,e,a),Ia(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=fl(l);a.tag=2,t!=null&&(a.callback=t),t=ol(e,a,l),t!==null&&(st(t,e,l),Ia(t,e,l))}};function zf(e,t,l,a,n,s,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,u):t.prototype&&t.prototype.isPureReactComponent?!Va(l,a)||!Va(n,s):!0}function _f(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&&du.enqueueReplaceState(t,t.state,null)}function Vl(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=w({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Of(e){Vn(e)}function Cf(e){console.error(e)}function Df(e){Vn(e)}function hs(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uf(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 hu(e,t,l){return l=fl(l),l.tag=3,l.payload={element:null},l.callback=function(){hs(e,t)},l}function kf(e){return e=fl(e),e.tag=3,e}function Rf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){Uf(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Uf(t,l,a),typeof n!="function"&&(pl===null?pl=new Set([this]):pl.add(this));var i=a.stack;this.componentDidCatch(a.value,{componentStack:i!==null?i:""})})}function bh(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&fa(t,l,n,!0),l=dt.current,l!==null){switch(l.tag){case 31:case 13:return Et===null?Es():l.alternate===null&&Ae===0&&(Ae=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===es?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Bu(e,a,n)),!1;case 22:return l.flags|=65536,a===es?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)),Bu(e,a,n)),!1}throw Error(d(435,l.tag))}return Bu(e,a,n),Es(),!1}if(ne)return t=dt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Cc&&(e=Error(d(422),{cause:a}),Ka(Nt(e,l)))):(a!==Cc&&(t=Error(d(423),{cause:a}),Ka(Nt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Nt(a,l),n=hu(e.stateNode,a,n),Xc(e,n),Ae!==4&&(Ae=2)),!1;var s=Error(d(520),{cause:a});if(s=Nt(s,l),hn===null?hn=[s]:hn.push(s),Ae!==4&&(Ae=2),t===null)return!0;a=Nt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=hu(l.stateNode,a,e),Xc(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(pl===null||!pl.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=kf(n),Rf(n,e,l,a),Xc(l,n),!1}l=l.return}while(l!==null);return!1}var mu=Error(d(461)),De=!1;function Ve(e,t,l,a){t.child=e===null?qr(t,null,l,a):Gl(t,e.child,l,a)}function Hf(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var u={};for(var i in a)i!=="ref"&&(u[i]=a[i])}else u=a;return Bl(t),a=$c(e,t,l,u,s,n),i=Wc(),e!==null&&!De?(Fc(e,t,n),Kt(e,t,n)):(ne&&i&&_c(t),t.flags|=1,Ve(e,t,a,n),t.child)}function Bf(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!Ac(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,qf(e,t,s,a,n)):(e=Jn(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!ju(e,n)){var u=s.memoizedProps;if(l=l.compare,l=l!==null?l:Va,l(u,a)&&e.ref===t.ref)return Kt(e,t,n)}return t.flags|=1,e=Yt(s,a),e.ref=t.ref,e.return=t,t.child=e}function qf(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(Va(s,a)&&e.ref===t.ref)if(De=!1,t.pendingProps=a=s,ju(e,n))(e.flags&131072)!==0&&(De=!0);else return t.lanes=e.lanes,Kt(e,t,n)}return xu(e,t,l,a,n)}function Lf(e,t,l,a){var n=a.children,s=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)!==0){if(s=s!==null?s.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&~s}else a=0,t.child=null;return Yf(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&In(t,s!==null?s.cachePool:null),s!==null?Gr(t,s):Qc(),Xr(t);else return a=t.lanes=536870912,Yf(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(In(t,s.cachePool),Gr(t,s),hl(),t.memoizedState=null):(e!==null&&In(t,null),Qc(),hl());return Ve(e,t,n,l),t.child}function sn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yf(e,t,l,a,n){var s=qc();return s=s===null?null:{parent:Oe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&In(t,null),Qc(),Xr(t),e!==null&&fa(e,t,a,!0),t.childLanes=n,null}function ms(e,t){return t=bs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gf(e,t,l){return Gl(t,e.child,null,l),e=ms(t,t.pendingProps),e.flags|=2,ht(t),t.memoizedState=null,e}function ph(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=ms(t,a),t.lanes=536870912,sn(null,e);if(Kc(t),(e=Ne)?(e=td(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:Dt,overflow:Ut}:null,retryLane:536870912,hydrationErrors:null},l=wr(e),l.return=t,t.child=l,Ge=t,Ne=null)):e=null,e===null)throw ul(t);return t.lanes=536870912,null}return ms(t,a)}var s=e.memoizedState;if(s!==null){var u=s.dehydrated;if(Kc(t),n)if(t.flags&256)t.flags&=-257,t=Gf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(d(558));else if(De||fa(e,t,l,!1),n=(l&e.childLanes)!==0,De||n){if(a=ge,a!==null&&(u=Oi(a,l),u!==0&&u!==s.retryLane))throw s.retryLane=u,Ul(e,u),st(a,e,u),mu;Es(),t=Gf(e,t,l)}else e=s.treeContext,Ne=Tt(u.nextSibling),Ge=t,ne=!0,cl=null,wt=!1,e!==null&&Ar(t,e),t=ms(t,a),t.flags|=4096;return t}return e=Yt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function xs(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(d(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function xu(e,t,l,a,n){return Bl(t),l=$c(e,t,l,a,void 0,n),a=Wc(),e!==null&&!De?(Fc(e,t,n),Kt(e,t,n)):(ne&&a&&_c(t),t.flags|=1,Ve(e,t,l,n),t.child)}function Xf(e,t,l,a,n,s){return Bl(t),t.updateQueue=null,l=Qr(t,a,l,n),Vr(e),a=Wc(),e!==null&&!De?(Fc(e,t,s),Kt(e,t,s)):(ne&&a&&_c(t),t.flags|=1,Ve(e,t,l,s),t.child)}function Vf(e,t,l,a,n){if(Bl(t),t.stateNode===null){var s=ca,u=l.contextType;typeof u=="object"&&u!==null&&(s=Xe(u)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=du,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Yc(t),u=l.contextType,s.context=typeof u=="object"&&u!==null?Xe(u):ca,s.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(ou(t,l,u,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(u=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),u!==s.state&&du.enqueueReplaceState(s,s.state,null),en(t,a,s,n),Pa(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var i=t.memoizedProps,r=Vl(l,i);s.props=r;var b=s.context,v=l.contextType;u=ca,typeof v=="object"&&v!==null&&(u=Xe(v));var E=l.getDerivedStateFromProps;v=typeof E=="function"||typeof s.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,v||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i||b!==u)&&_f(t,s,a,u),rl=!1;var p=t.memoizedState;s.state=p,en(t,a,s,n),Pa(),b=t.memoizedState,i||p!==b||rl?(typeof E=="function"&&(ou(t,l,E,a),b=t.memoizedState),(r=rl||zf(t,l,r,a,p,b,u))?(v||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=b),s.props=a,s.state=b,s.context=u,a=r):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,Gc(e,t),u=t.memoizedProps,v=Vl(l,u),s.props=v,E=t.pendingProps,p=s.context,b=l.contextType,r=ca,typeof b=="object"&&b!==null&&(r=Xe(b)),i=l.getDerivedStateFromProps,(b=typeof i=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(u!==E||p!==r)&&_f(t,s,a,r),rl=!1,p=t.memoizedState,s.state=p,en(t,a,s,n),Pa();var g=t.memoizedState;u!==E||p!==g||rl||e!==null&&e.dependencies!==null&&Wn(e.dependencies)?(typeof i=="function"&&(ou(t,l,i,a),g=t.memoizedState),(v=rl||zf(t,l,v,a,p,g,r)||e!==null&&e.dependencies!==null&&Wn(e.dependencies))?(b||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,g,r),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,g,r)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),s.props=a,s.state=g,s.context=r,a=v):(typeof s.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,xs(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Gl(t,e.child,null,n),t.child=Gl(t,null,l,n)):Ve(e,t,l,n),t.memoizedState=s.state,e=t.child):e=Kt(e,t,n),e}function Qf(e,t,l,a){return Rl(),t.flags|=256,Ve(e,t,l,a),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pu(e){return{baseLanes:e,cachePool:Dr()}}function gu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=xt),e}function Zf(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,u;if((u=s)||(u=e!==null&&e.memoizedState===null?!1:(ze.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(ne){if(n?dl(t):hl(),(e=Ne)?(e=td(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:Dt,overflow:Ut}:null,retryLane:536870912,hydrationErrors:null},l=wr(e),l.return=t,t.child=l,Ge=t,Ne=null)):e=null,e===null)throw ul(t);return ei(e)?t.lanes=32:t.lanes=536870912,null}var i=a.children;return a=a.fallback,n?(hl(),n=t.mode,i=bs({mode:"hidden",children:i},n),a=kl(a,n,l,null),i.return=t,a.return=t,i.sibling=a,t.child=i,a=t.child,a.memoizedState=pu(l),a.childLanes=gu(e,u,l),t.memoizedState=bu,sn(null,a)):(dl(t),yu(t,i))}var r=e.memoizedState;if(r!==null&&(i=r.dehydrated,i!==null)){if(s)t.flags&256?(dl(t),t.flags&=-257,t=vu(e,t,l)):t.memoizedState!==null?(hl(),t.child=e.child,t.flags|=128,t=null):(hl(),i=a.fallback,n=t.mode,a=bs({mode:"visible",children:a.children},n),i=kl(i,n,l,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,Gl(t,e.child,null,l),a=t.child,a.memoizedState=pu(l),a.childLanes=gu(e,u,l),t.memoizedState=bu,t=sn(null,a));else if(dl(t),ei(i)){if(u=i.nextSibling&&i.nextSibling.dataset,u)var b=u.dgst;u=b,a=Error(d(419)),a.stack="",a.digest=u,Ka({value:a,source:null,stack:null}),t=vu(e,t,l)}else if(De||fa(e,t,l,!1),u=(l&e.childLanes)!==0,De||u){if(u=ge,u!==null&&(a=Oi(u,l),a!==0&&a!==r.retryLane))throw r.retryLane=a,Ul(e,a),st(u,e,a),mu;Pu(i)||Es(),t=vu(e,t,l)}else Pu(i)?(t.flags|=192,t.child=e.child,t=null):(e=r.treeContext,Ne=Tt(i.nextSibling),Ge=t,ne=!0,cl=null,wt=!1,e!==null&&Ar(t,e),t=yu(t,a.children),t.flags|=4096);return t}return n?(hl(),i=a.fallback,n=t.mode,r=e.child,b=r.sibling,a=Yt(r,{mode:"hidden",children:a.children}),a.subtreeFlags=r.subtreeFlags&65011712,b!==null?i=Yt(b,i):(i=kl(i,n,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,sn(null,a),a=t.child,i=e.child.memoizedState,i===null?i=pu(l):(n=i.cachePool,n!==null?(r=Oe._currentValue,n=n.parent!==r?{parent:r,pool:r}:n):n=Dr(),i={baseLanes:i.baseLanes|l,cachePool:n}),a.memoizedState=i,a.childLanes=gu(e,u,l),t.memoizedState=bu,sn(e.child,a)):(dl(t),l=e.child,e=l.sibling,l=Yt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function yu(e,t){return t=bs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bs(e,t){return e=ot(22,e,null,t),e.lanes=0,e}function vu(e,t,l){return Gl(t,e.child,null,l),e=yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),kc(e.return,t,l)}function Nu(e,t,l,a,n,s){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=s)}function Jf(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var u=ze.current,i=(u&2)!==0;if(i?(u=u&1|2,t.flags|=128):u&=1,O(ze,u),Ve(e,t,a,l),a=ne?Za:0,!i&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kf(e,l,t);else if(e.tag===19)Kf(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&&ns(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Nu(t,!1,n,l,s,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&&ns(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Nu(t,!0,l,null,s,a);break;case"together":Nu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Kt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(fa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(d(153));if(t.child!==null){for(e=t.child,l=Yt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Yt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ju(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Wn(e)))}function gh(e,t,l){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),il(t,Oe,e.memoizedState.cache),Rl();break;case 27:case 5:Oa(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:il(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(dl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Zf(e,t,l):(dl(t),e=Kt(e,t,l),e!==null?e.sibling:null);dl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(fa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Jf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),O(ze,ze.current),a)break;return null;case 22:return t.lanes=0,Lf(e,t,l,t.pendingProps);case 24:il(t,Oe,e.memoizedState.cache)}return Kt(e,t,l)}function $f(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)De=!0;else{if(!ju(e,l)&&(t.flags&128)===0)return De=!1,gh(e,t,l);De=(e.flags&131072)!==0}else De=!1,ne&&(t.flags&1048576)!==0&&Tr(t,Za,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ll(t.elementType),t.type=e,typeof e=="function")Ac(e)?(a=Vl(e,a),t.tag=1,t=Vf(null,t,e,a,l)):(t.tag=0,t=xu(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ke){t.tag=11,t=Hf(null,t,e,a,l);break e}else if(n===Z){t.tag=14,t=Bf(null,t,e,a,l);break e}}throw t=Mt(e)||e,Error(d(306,t,""))}}return t;case 0:return xu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Vl(a,t.pendingProps),Vf(e,t,a,n,l);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(d(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,Gc(e,t),en(t,a,null,l);var u=t.memoizedState;if(a=u.cache,il(t,Oe,a),a!==s.cache&&Rc(t,[Oe],l,!0),Pa(),a=u.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Qf(e,t,a,l);break e}else if(a!==n){n=Nt(Error(d(424)),t),Ka(n),t=Qf(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(Ne=Tt(e.firstChild),Ge=t,ne=!0,cl=null,wt=!0,l=qr(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Rl(),a===n){t=Kt(e,t,l);break e}Ve(e,t,a,l)}t=t.child}return t;case 26:return xs(e,t),e===null?(l=ud(t.type,null,t.pendingProps,null))?t.memoizedState=l:ne||(l=t.type,e=t.pendingProps,a=Cs(I.current).createElement(l),a[Ye]=t,a[Pe]=e,Qe(a,l,e),qe(a),t.stateNode=a):t.memoizedState=ud(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Oa(t),e===null&&ne&&(a=t.stateNode=nd(t.type,t.pendingProps,I.current),Ge=t,wt=!0,n=Ne,Nl(t.type)?(ti=n,Ne=Tt(a.firstChild)):Ne=n),Ve(e,t,t.pendingProps.children,l),xs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ne&&((n=a=Ne)&&(a=Jh(a,t.type,t.pendingProps,wt),a!==null?(t.stateNode=a,Ge=t,Ne=Tt(a.firstChild),wt=!1,n=!0):n=!1),n||ul(t)),Oa(t),n=t.type,s=t.pendingProps,u=e!==null?e.memoizedProps:null,a=s.children,Wu(n,s)?a=null:u!==null&&Wu(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=$c(e,t,rh,null,null,l),Nn._currentValue=n),xs(e,t),Ve(e,t,a,l),t.child;case 6:return e===null&&ne&&((e=l=Ne)&&(l=$h(l,t.pendingProps,wt),l!==null?(t.stateNode=l,Ge=t,Ne=null,e=!0):e=!1),e||ul(t)),null;case 13:return Zf(e,t,l);case 4:return We(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Gl(t,null,a,l):Ve(e,t,a,l),t.child;case 11:return Hf(e,t,t.type,t.pendingProps,l);case 7:return Ve(e,t,t.pendingProps,l),t.child;case 8:return Ve(e,t,t.pendingProps.children,l),t.child;case 12:return Ve(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,il(t,t.type,a.value),Ve(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Bl(t),n=Xe(n),a=a(n),t.flags|=1,Ve(e,t,a,l),t.child;case 14:return Bf(e,t,t.type,t.pendingProps,l);case 15:return qf(e,t,t.type,t.pendingProps,l);case 19:return Jf(e,t,l);case 31:return ph(e,t,l);case 22:return Lf(e,t,l,t.pendingProps);case 24:return Bl(t),a=Xe(Oe),e===null?(n=qc(),n===null&&(n=ge,s=Hc(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},Yc(t),il(t,Oe,n)):((e.lanes&l)!==0&&(Gc(e,t),en(t,null,null,l),Pa()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),il(t,Oe,a)):(a=s.cache,il(t,Oe,a),a!==n.cache&&Rc(t,[Oe],l,!0))),Ve(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(d(156,t.tag))}function Jt(e){e.flags|=4}function Su(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(So())e.flags|=8192;else throw Yl=es,Lc}else e.flags&=-16777217}function Wf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dd(t))if(So())e.flags|=8192;else throw Yl=es,Lc}function ps(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mi():536870912,e.lanes|=t,ja|=t)}function cn(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 je(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 yh(e,t,l){var a=t.pendingProps;switch(Oc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return je(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vt(Oe),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ra(t)?Jt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dc())),je(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(Jt(t),s!==null?(je(t),Wf(t,s)):(je(t),Su(t,n,null,a,l))):s?s!==e.memoizedState?(Jt(t),je(t),Wf(t,s)):(je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Jt(t),je(t),Su(t,n,e,a,l)),null;case 27:if(Mn(t),l=I.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Jt(t);else{if(!a){if(t.stateNode===null)throw Error(d(166));return je(t),null}e=H.current,ra(t)?Mr(t):(e=nd(n,a,l),t.stateNode=e,Jt(t))}return je(t),null;case 5:if(Mn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Jt(t);else{if(!a){if(t.stateNode===null)throw Error(d(166));return je(t),null}if(s=H.current,ra(t))Mr(t);else{var u=Cs(I.current);switch(s){case 1:s=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=u.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}s[Ye]=t,s[Pe]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)s.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=s;e:switch(Qe(s,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&&Jt(t)}}return je(t),Su(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Jt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(d(166));if(e=I.current,ra(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ge,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ye]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Ko(e.nodeValue,l)),e||ul(t,!0)}else e=Cs(e).createTextNode(a),e[Ye]=t,t.stateNode=e}return je(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ra(t),l!==null){if(e===null){if(!a)throw Error(d(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(d(557));e[Ye]=t}else Rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),e=!1}else l=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ht(t),t):(ht(t),null);if((t.flags&128)!==0)throw Error(d(558))}return je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ra(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(d(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(d(317));n[Ye]=t}else Rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),n=!1}else n=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ht(t),t):(ht(t),null)}return ht(t),(t.flags&128)!==0?(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),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ps(t,t.updateQueue),je(t),null);case 4:return Me(),e===null&&Qu(t.stateNode.containerInfo),je(t),null;case 10:return Vt(t.type),je(t),null;case 19:if(y(ze),a=t.memoizedState,a===null)return je(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)cn(a,!1);else{if(Ae!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=ns(e),s!==null){for(t.flags|=128,cn(a,!1),e=s.updateQueue,t.updateQueue=e,ps(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Sr(l,e),l=l.sibling;return O(ze,ze.current&1|2),ne&&Gt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ut()>js&&(t.flags|=128,n=!0,cn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ns(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,ps(t,e),cn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ne)return je(t),null}else 2*ut()-a.renderingStartTime>js&&l!==536870912&&(t.flags|=128,n=!0,cn(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ut(),e.sibling=null,l=ze.current,O(ze,n?l&1|2:l&1),ne&&Gt(t,a.treeForkCount),e):(je(t),null);case 22:case 23:return ht(t),Zc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),l=t.updateQueue,l!==null&&ps(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&&y(ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vt(Oe),je(t),null;case 25:return null;case 30:return null}throw Error(d(156,t.tag))}function vh(e,t){switch(Oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vt(Oe),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Mn(t),null;case 31:if(t.memoizedState!==null){if(ht(t),t.alternate===null)throw Error(d(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(d(340));Rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return y(ze),null;case 4:return Me(),null;case 10:return Vt(t.type),null;case 22:case 23:return ht(t),Zc(),e!==null&&y(ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vt(Oe),null;case 25:return null;default:return null}}function Ff(e,t){switch(Oc(t),t.tag){case 3:Vt(Oe),Me();break;case 26:case 27:case 5:Mn(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&ht(t);break;case 13:ht(t);break;case 19:y(ze);break;case 10:Vt(t.type);break;case 22:case 23:ht(t),Zc(),e!==null&&y(ql);break;case 24:Vt(Oe)}}function un(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 s=l.create,u=l.inst;a=s(),u.destroy=a}l=l.next}while(l!==n)}}catch(i){he(t,t.return,i)}}function ml(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var u=a.inst,i=u.destroy;if(i!==void 0){u.destroy=void 0,n=t;var r=l,b=i;try{b()}catch(v){he(n,r,v)}}}a=a.next}while(a!==s)}}catch(v){he(t,t.return,v)}}function If(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Yr(t,l)}catch(a){he(e,e.return,a)}}}function Pf(e,t,l){l.props=Vl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){he(e,t,a)}}function rn(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){he(e,t,n)}}function kt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){he(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){he(e,t,n)}else l.current=null}function eo(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){he(e,e.return,n)}}function wu(e,t,l){try{var a=e.stateNode;Gh(a,e.type,l,t),a[Pe]=t}catch(n){he(e,e.return,n)}}function to(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nl(e.type)||e.tag===4}function Eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||to(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&&Nl(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 Tu(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=qt));else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Tu(e,t,l),e=e.sibling;e!==null;)Tu(e,t,l),e=e.sibling}function gs(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&&Nl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(gs(e,t,l),e=e.sibling;e!==null;)gs(e,t,l),e=e.sibling}function lo(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Qe(t,a,l),t[Ye]=e,t[Pe]=l}catch(s){he(e,e.return,s)}}var $t=!1,Ue=!1,Au=!1,ao=typeof WeakSet=="function"?WeakSet:Set,Le=null;function Nh(e,t){if(e=e.containerInfo,Ju=qs,e=mr(e),vc(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,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var u=0,i=-1,r=-1,b=0,v=0,E=e,p=null;t:for(;;){for(var g;E!==l||n!==0&&E.nodeType!==3||(i=u+n),E!==s||a!==0&&E.nodeType!==3||(r=u+a),E.nodeType===3&&(u+=E.nodeValue.length),(g=E.firstChild)!==null;)p=E,E=g;for(;;){if(E===e)break t;if(p===l&&++b===n&&(i=u),p===s&&++v===a&&(r=u),(g=E.nextSibling)!==null)break;E=p,p=E.parentNode}E=g}l=i===-1||r===-1?null:{start:i,end:r}}else l=null}l=l||{start:0,end:0}}else l=null;for($u={focusedElem:e,selectionRange:l},qs=!1,Le=t;Le!==null;)if(t=Le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Le=e;else for(;Le!==null;){switch(t=Le,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(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)!==0&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var R=Vl(l.type,n);e=a.getSnapshotBeforeUpdate(R,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(V){he(l,l.return,V)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Iu(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Iu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(d(163))}if(e=t.sibling,e!==null){e.return=t.return,Le=e;break}Le=t.return}}function no(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Ft(e,l),a&4&&un(5,l);break;case 1:if(Ft(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){he(l,l.return,u)}else{var n=Vl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){he(l,l.return,u)}}a&64&&If(l),a&512&&rn(l,l.return);break;case 3:if(Ft(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{Yr(e,t)}catch(u){he(l,l.return,u)}}break;case 27:t===null&&a&4&&lo(l);case 26:case 5:Ft(e,l),t===null&&a&4&&eo(l),a&512&&rn(l,l.return);break;case 12:Ft(e,l);break;case 31:Ft(e,l),a&4&&uo(e,l);break;case 13:Ft(e,l),a&4&&io(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=_h.bind(null,l),Wh(e,l))));break;case 22:if(a=l.memoizedState!==null||$t,!a){t=t!==null&&t.memoizedState!==null||Ue,n=$t;var s=Ue;$t=a,(Ue=t)&&!s?It(e,l,(l.subtreeFlags&8772)!==0):Ft(e,l),$t=n,Ue=s}break;case 30:break;default:Ft(e,l)}}function so(e){var t=e.alternate;t!==null&&(e.alternate=null,so(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ac(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 Ee=null,tt=!1;function Wt(e,t,l){for(l=l.child;l!==null;)co(e,t,l),l=l.sibling}function co(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(Ca,l)}catch{}switch(l.tag){case 26:Ue||kt(l,t),Wt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ue||kt(l,t);var a=Ee,n=tt;Nl(l.type)&&(Ee=l.stateNode,tt=!1),Wt(e,t,l),gn(l.stateNode),Ee=a,tt=n;break;case 5:Ue||kt(l,t);case 6:if(a=Ee,n=tt,Ee=null,Wt(e,t,l),Ee=a,tt=n,Ee!==null)if(tt)try{(Ee.nodeType===9?Ee.body:Ee.nodeName==="HTML"?Ee.ownerDocument.body:Ee).removeChild(l.stateNode)}catch(s){he(l,t,s)}else try{Ee.removeChild(l.stateNode)}catch(s){he(l,t,s)}break;case 18:Ee!==null&&(tt?(e=Ee,Po(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),_a(e)):Po(Ee,l.stateNode));break;case 4:a=Ee,n=tt,Ee=l.stateNode.containerInfo,tt=!0,Wt(e,t,l),Ee=a,tt=n;break;case 0:case 11:case 14:case 15:ml(2,l,t),Ue||ml(4,l,t),Wt(e,t,l);break;case 1:Ue||(kt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Pf(l,t,a)),Wt(e,t,l);break;case 21:Wt(e,t,l);break;case 22:Ue=(a=Ue)||l.memoizedState!==null,Wt(e,t,l),Ue=a;break;default:Wt(e,t,l)}}function uo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_a(e)}catch(l){he(t,t.return,l)}}}function io(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_a(e)}catch(l){he(t,t.return,l)}}function jh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ao),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ao),t;default:throw Error(d(435,e.tag))}}function ys(e,t){var l=jh(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Oh.bind(null,e,a);a.then(n,n)}})}function lt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,u=t,i=u;e:for(;i!==null;){switch(i.tag){case 27:if(Nl(i.type)){Ee=i.stateNode,tt=!1;break e}break;case 5:Ee=i.stateNode,tt=!1;break e;case 3:case 4:Ee=i.stateNode.containerInfo,tt=!0;break e}i=i.return}if(Ee===null)throw Error(d(160));co(s,u,n),Ee=null,tt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ro(t,e),t=t.sibling}var _t=null;function ro(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:lt(t,e),at(e),a&4&&(ml(3,e,e.return),un(3,e),ml(5,e,e.return));break;case 1:lt(t,e),at(e),a&512&&(Ue||l===null||kt(l,l.return)),a&64&&$t&&(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=_t;if(lt(t,e),at(e),a&512&&(Ue||l===null||kt(l,l.return)),a&4){var s=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":s=n.getElementsByTagName("title")[0],(!s||s[ka]||s[Ye]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),Qe(s,a,l),s[Ye]=e,qe(s),a=s;break e;case"link":var u=fd("link","href",n).get(a+(l.href||""));if(u){for(var i=0;i<u.length;i++)if(s=u[i],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(i,1);break t}}s=n.createElement(a),Qe(s,a,l),n.head.appendChild(s);break;case"meta":if(u=fd("meta","content",n).get(a+(l.content||""))){for(i=0;i<u.length;i++)if(s=u[i],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(i,1);break t}}s=n.createElement(a),Qe(s,a,l),n.head.appendChild(s);break;default:throw Error(d(468,a))}s[Ye]=e,qe(s),a=s}e.stateNode=a}else od(n,e.type,e.stateNode);else e.stateNode=rd(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?od(n,e.type,e.stateNode):rd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&wu(e,e.memoizedProps,l.memoizedProps)}break;case 27:lt(t,e),at(e),a&512&&(Ue||l===null||kt(l,l.return)),l!==null&&a&4&&wu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(lt(t,e),at(e),a&512&&(Ue||l===null||kt(l,l.return)),e.flags&32){n=e.stateNode;try{Pl(n,"")}catch(R){he(e,e.return,R)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,wu(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Au=!0);break;case 6:if(lt(t,e),at(e),a&4){if(e.stateNode===null)throw Error(d(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(R){he(e,e.return,R)}}break;case 3:if(ks=null,n=_t,_t=Ds(t.containerInfo),lt(t,e),_t=n,at(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{_a(t.containerInfo)}catch(R){he(e,e.return,R)}Au&&(Au=!1,fo(e));break;case 4:a=_t,_t=Ds(e.stateNode.containerInfo),lt(t,e),at(e),_t=a;break;case 12:lt(t,e),at(e);break;case 31:lt(t,e),at(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ys(e,a)));break;case 13:lt(t,e),at(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ns=ut()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ys(e,a)));break;case 22:n=e.memoizedState!==null;var r=l!==null&&l.memoizedState!==null,b=$t,v=Ue;if($t=b||n,Ue=v||r,lt(t,e),Ue=v,$t=b,at(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||r||$t||Ue||Ql(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){r=l=t;try{if(s=r.stateNode,n)u=s.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{i=r.stateNode;var E=r.memoizedProps.style,p=E!=null&&E.hasOwnProperty("display")?E.display:null;i.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(R){he(r,r.return,R)}}}else if(t.tag===6){if(l===null){r=t;try{r.stateNode.nodeValue=n?"":r.memoizedProps}catch(R){he(r,r.return,R)}}}else if(t.tag===18){if(l===null){r=t;try{var g=r.stateNode;n?ed(g,!0):ed(r.stateNode,!1)}catch(R){he(r,r.return,R)}}}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,ys(e,l))));break;case 19:lt(t,e),at(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ys(e,a)));break;case 30:break;case 21:break;default:lt(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(to(a)){l=a;break}a=a.return}if(l==null)throw Error(d(160));switch(l.tag){case 27:var n=l.stateNode,s=Eu(e);gs(e,s,n);break;case 5:var u=l.stateNode;l.flags&32&&(Pl(u,""),l.flags&=-33);var i=Eu(e);gs(e,i,u);break;case 3:case 4:var r=l.stateNode.containerInfo,b=Eu(e);Tu(e,b,r);break;default:throw Error(d(161))}}catch(v){he(e,e.return,v)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ft(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)no(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ml(4,t,t.return),Ql(t);break;case 1:kt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Pf(t,t.return,l),Ql(t);break;case 27:gn(t.stateNode);case 26:case 5:kt(t,t.return),Ql(t);break;case 22:t.memoizedState===null&&Ql(t);break;case 30:Ql(t);break;default:Ql(t)}e=e.sibling}}function It(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,u=s.flags;switch(s.tag){case 0:case 11:case 15:It(n,s,l),un(4,s);break;case 1:if(It(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(b){he(a,a.return,b)}if(a=s,n=a.updateQueue,n!==null){var i=a.stateNode;try{var r=n.shared.hiddenCallbacks;if(r!==null)for(n.shared.hiddenCallbacks=null,n=0;n<r.length;n++)Lr(r[n],i)}catch(b){he(a,a.return,b)}}l&&u&64&&If(s),rn(s,s.return);break;case 27:lo(s);case 26:case 5:It(n,s,l),l&&a===null&&u&4&&eo(s),rn(s,s.return);break;case 12:It(n,s,l);break;case 31:It(n,s,l),l&&u&4&&uo(n,s);break;case 13:It(n,s,l),l&&u&4&&io(n,s);break;case 22:s.memoizedState===null&&It(n,s,l),rn(s,s.return);break;case 30:break;default:It(n,s,l)}t=t.sibling}}function Mu(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&&Ja(l))}function zu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ja(e))}function Ot(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)oo(e,t,l,a),t=t.sibling}function oo(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,l,a),n&2048&&un(9,t);break;case 1:Ot(e,t,l,a);break;case 3:Ot(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&&Ja(e)));break;case 12:if(n&2048){Ot(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,u=s.id,i=s.onPostCommit;typeof i=="function"&&i(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(r){he(t,t.return,r)}}else Ot(e,t,l,a);break;case 31:Ot(e,t,l,a);break;case 13:Ot(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,u=t.alternate,t.memoizedState!==null?s._visibility&2?Ot(e,t,l,a):fn(e,t):s._visibility&2?Ot(e,t,l,a):(s._visibility|=2,ya(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Mu(u,t);break;case 24:Ot(e,t,l,a),n&2048&&zu(t.alternate,t);break;default:Ot(e,t,l,a)}}function ya(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,u=t,i=l,r=a,b=u.flags;switch(u.tag){case 0:case 11:case 15:ya(s,u,i,r,n),un(8,u);break;case 23:break;case 22:var v=u.stateNode;u.memoizedState!==null?v._visibility&2?ya(s,u,i,r,n):fn(s,u):(v._visibility|=2,ya(s,u,i,r,n)),n&&b&2048&&Mu(u.alternate,u);break;case 24:ya(s,u,i,r,n),n&&b&2048&&zu(u.alternate,u);break;default:ya(s,u,i,r,n)}t=t.sibling}}function fn(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:fn(l,a),n&2048&&Mu(a.alternate,a);break;case 24:fn(l,a),n&2048&&zu(a.alternate,a);break;default:fn(l,a)}t=t.sibling}}var on=8192;function va(e,t,l){if(e.subtreeFlags&on)for(e=e.child;e!==null;)ho(e,t,l),e=e.sibling}function ho(e,t,l){switch(e.tag){case 26:va(e,t,l),e.flags&on&&e.memoizedState!==null&&im(l,_t,e.memoizedState,e.memoizedProps);break;case 5:va(e,t,l);break;case 3:case 4:var a=_t;_t=Ds(e.stateNode.containerInfo),va(e,t,l),_t=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,va(e,t,l),on=a):va(e,t,l));break;default:va(e,t,l)}}function mo(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)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Le=a,bo(a,e)}mo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xo(e),e=e.sibling}function xo(e){switch(e.tag){case 0:case 11:case 15:dn(e),e.flags&2048&&ml(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,vs(e)):dn(e);break;default:dn(e)}}function vs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Le=a,bo(a,e)}mo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ml(8,t,t.return),vs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,vs(t));break;default:vs(t)}e=e.sibling}}function bo(e,t){for(;Le!==null;){var l=Le;switch(l.tag){case 0:case 11:case 15:ml(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:Ja(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Le=a;else e:for(l=e;Le!==null;){a=Le;var n=a.sibling,s=a.return;if(so(a),a===l){Le=null;break e}if(n!==null){n.return=s,Le=n;break e}Le=s}}}var Sh={getCacheForType:function(e){var t=Xe(Oe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Xe(Oe).controller.signal}},wh=typeof WeakMap=="function"?WeakMap:Map,ue=0,ge=null,P=null,le=0,de=0,mt=null,xl=!1,Na=!1,_u=!1,Pt=0,Ae=0,bl=0,Zl=0,Ou=0,xt=0,ja=0,hn=null,nt=null,Cu=!1,Ns=0,po=0,js=1/0,Ss=null,pl=null,He=0,gl=null,Sa=null,el=0,Du=0,Uu=null,go=null,mn=0,ku=null;function bt(){return(ue&2)!==0&&le!==0?le&-le:N.T!==null?Yu():Ci()}function yo(){if(xt===0)if((le&536870912)===0||ne){var e=On;On<<=1,(On&3932160)===0&&(On=262144),xt=e}else xt=536870912;return e=dt.current,e!==null&&(e.flags|=32),xt}function st(e,t,l){(e===ge&&(de===2||de===9)||e.cancelPendingCommit!==null)&&(wa(e,0),yl(e,le,xt,!1)),Ua(e,l),((ue&2)===0||e!==ge)&&(e===ge&&((ue&2)===0&&(Zl|=l),Ae===4&&yl(e,le,xt,!1)),Rt(e))}function vo(e,t,l){if((ue&6)!==0)throw Error(d(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Da(e,t),n=a?Ah(e,t):Hu(e,t,!0),s=a;do{if(n===0){Na&&!a&&yl(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!Eh(l)){n=Hu(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var i=e;n=hn;var r=i.current.memoizedState.isDehydrated;if(r&&(wa(i,u).flags|=256),u=Hu(i,u,!1),u!==2){if(_u&&!r){i.errorRecoveryDisabledLanes|=s,Zl|=s,n=4;break e}s=nt,nt=n,s!==null&&(nt===null?nt=s:nt.push.apply(nt,s))}n=u}if(s=!1,n!==2)continue}}if(n===1){wa(e,0),yl(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(d(345));case 4:if((t&4194048)!==t)break;case 6:yl(a,t,xt,!xl);break e;case 2:nt=null;break;case 3:case 5:break;default:throw Error(d(329))}if((t&62914560)===t&&(n=Ns+300-ut(),10<n)){if(yl(a,t,xt,!xl),Dn(a,0,!0)!==0)break e;el=t,a.timeoutHandle=Fo(No.bind(null,a,l,nt,Ss,Cu,t,xt,Zl,ja,xl,s,"Throttled",-0,0),n);break e}No(a,l,nt,Ss,Cu,t,xt,Zl,ja,xl,s,null,-0,0)}}break}while(!0);Rt(e)}function No(e,t,l,a,n,s,u,i,r,b,v,E,p,g){if(e.timeoutHandle=-1,E=t.subtreeFlags,E&8192||(E&16785408)===16785408){E={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},ho(t,s,E);var R=(s&62914560)===s?Ns-ut():(s&4194048)===s?po-ut():0;if(R=rm(E,R),R!==null){el=s,e.cancelPendingCommit=R(zo.bind(null,e,t,s,l,a,n,u,i,r,v,E,null,p,g)),yl(e,s,u,!b);return}}zo(e,t,s,l,a,n,u,i,r)}function Eh(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],s=n.getSnapshot;n=n.value;try{if(!ft(s(),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&=~Ou,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-rt(n),u=1<<s;a[s]=-1,n&=~u}l!==0&&zi(e,l,t)}function ws(){return(ue&6)===0?(xn(0),!1):!0}function Ru(){if(P!==null){if(de===0)var e=P.return;else e=P,Xt=Hl=null,Ic(e),ma=null,Wa=0,e=P;for(;e!==null;)Ff(e.alternate,e),e=e.return;P=null}}function wa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Qh(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),el=0,Ru(),ge=e,P=l=Yt(e.current,null),le=t,de=0,mt=null,xl=!1,Na=Da(e,t),_u=!1,ja=xt=Ou=Zl=bl=Ae=0,nt=hn=null,Cu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-rt(a),s=1<<n;t|=e[n],a&=~s}return Pt=t,Qn(),l}function jo(e,t){$=null,N.H=nn,t===ha||t===Pn?(t=Rr(),de=3):t===Lc?(t=Rr(),de=4):de=t===mu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mt=t,P===null&&(Ae=1,hs(e,Nt(t,e.current)))}function So(){var e=dt.current;return e===null?!0:(le&4194048)===le?Et===null:(le&62914560)===le||(le&536870912)!==0?e===Et:!1}function wo(){var e=N.H;return N.H=nn,e===null?nn:e}function Eo(){var e=N.A;return N.A=Sh,e}function Es(){Ae=4,xl||(le&4194048)!==le&&dt.current!==null||(Na=!0),(bl&134217727)===0&&(Zl&134217727)===0||ge===null||yl(ge,le,xt,!1)}function Hu(e,t,l){var a=ue;ue|=2;var n=wo(),s=Eo();(ge!==e||le!==t)&&(Ss=null,wa(e,t)),t=!1;var u=Ae;e:do try{if(de!==0&&P!==null){var i=P,r=mt;switch(de){case 8:Ru(),u=6;break e;case 3:case 2:case 9:case 6:dt.current===null&&(t=!0);var b=de;if(de=0,mt=null,Ea(e,i,r,b),l&&Na){u=0;break e}break;default:b=de,de=0,mt=null,Ea(e,i,r,b)}}Th(),u=Ae;break}catch(v){jo(e,v)}while(!0);return t&&e.shellSuspendCounter++,Xt=Hl=null,ue=a,N.H=n,N.A=s,P===null&&(ge=null,le=0,Qn()),u}function Th(){for(;P!==null;)To(P)}function Ah(e,t){var l=ue;ue|=2;var a=wo(),n=Eo();ge!==e||le!==t?(Ss=null,js=ut()+500,wa(e,t)):Na=Da(e,t);e:do try{if(de!==0&&P!==null){t=P;var s=mt;t:switch(de){case 1:de=0,mt=null,Ea(e,t,s,1);break;case 2:case 9:if(Ur(s)){de=0,mt=null,Ao(t);break}t=function(){de!==2&&de!==9||ge!==e||(de=7),Rt(e)},s.then(t,t);break e;case 3:de=7;break e;case 4:de=5;break e;case 7:Ur(s)?(de=0,mt=null,Ao(t)):(de=0,mt=null,Ea(e,t,s,7));break;case 5:var u=null;switch(P.tag){case 26:u=P.memoizedState;case 5:case 27:var i=P;if(u?dd(u):i.stateNode.complete){de=0,mt=null;var r=i.sibling;if(r!==null)P=r;else{var b=i.return;b!==null?(P=b,Ts(b)):P=null}break t}}de=0,mt=null,Ea(e,t,s,5);break;case 6:de=0,mt=null,Ea(e,t,s,6);break;case 8:Ru(),Ae=6;break e;default:throw Error(d(462))}}Mh();break}catch(v){jo(e,v)}while(!0);return Xt=Hl=null,N.H=a,N.A=n,ue=l,P!==null?0:(ge=null,le=0,Qn(),Ae)}function Mh(){for(;P!==null&&!Fd();)To(P)}function To(e){var t=$f(e.alternate,e,Pt);e.memoizedProps=e.pendingProps,t===null?Ts(e):P=t}function Ao(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xf(l,t,t.pendingProps,t.type,void 0,le);break;case 11:t=Xf(l,t,t.pendingProps,t.type.render,t.ref,le);break;case 5:Ic(t);default:Ff(l,t),t=P=Sr(t,Pt),t=$f(l,t,Pt)}e.memoizedProps=e.pendingProps,t===null?Ts(e):P=t}function Ea(e,t,l,a){Xt=Hl=null,Ic(t),ma=null,Wa=0;var n=t.return;try{if(bh(e,n,t,l,le)){Ae=1,hs(e,Nt(l,e.current)),P=null;return}}catch(s){if(n!==null)throw P=n,s;Ae=1,hs(e,Nt(l,e.current)),P=null;return}t.flags&32768?(ne||a===1?e=!0:Na||(le&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=dt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mo(t,e)):Ts(t)}function Ts(e){var t=e;do{if((t.flags&32768)!==0){Mo(t,xl);return}e=t.return;var l=yh(t.alternate,t,Pt);if(l!==null){P=l;return}if(t=t.sibling,t!==null){P=t;return}P=t=e}while(t!==null);Ae===0&&(Ae=5)}function Mo(e,t){do{var l=vh(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);Ae=6,P=null}function zo(e,t,l,a,n,s,u,i,r){e.cancelPendingCommit=null;do As();while(He!==0);if((ue&6)!==0)throw Error(d(327));if(t!==null){if(t===e.current)throw Error(d(177));if(s=t.lanes|t.childLanes,s|=Ec,u0(e,l,s,u,i,r),e===ge&&(P=ge=null,le=0),Sa=t,gl=e,el=l,Du=s,Uu=n,go=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ch(zn,function(){return Uo(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,n=C.p,C.p=2,u=ue,ue|=4;try{Nh(e,t,l)}finally{ue=u,C.p=n,N.T=a}}He=1,_o(),Oo(),Co()}}function _o(){if(He===1){He=0;var e=gl,t=Sa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null;var a=C.p;C.p=2;var n=ue;ue|=4;try{ro(t,e);var s=$u,u=mr(e.containerInfo),i=s.focusedElem,r=s.selectionRange;if(u!==i&&i&&i.ownerDocument&&hr(i.ownerDocument.documentElement,i)){if(r!==null&&vc(i)){var b=r.start,v=r.end;if(v===void 0&&(v=b),"selectionStart"in i)i.selectionStart=b,i.selectionEnd=Math.min(v,i.value.length);else{var E=i.ownerDocument||document,p=E&&E.defaultView||window;if(p.getSelection){var g=p.getSelection(),R=i.textContent.length,V=Math.min(r.start,R),pe=r.end===void 0?V:Math.min(r.end,R);!g.extend&&V>pe&&(u=pe,pe=V,V=u);var m=dr(i,V),h=dr(i,pe);if(m&&h&&(g.rangeCount!==1||g.anchorNode!==m.node||g.anchorOffset!==m.offset||g.focusNode!==h.node||g.focusOffset!==h.offset)){var x=E.createRange();x.setStart(m.node,m.offset),g.removeAllRanges(),V>pe?(g.addRange(x),g.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),g.addRange(x))}}}}for(E=[],g=i;g=g.parentNode;)g.nodeType===1&&E.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<E.length;i++){var S=E[i];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}qs=!!Ju,$u=Ju=null}finally{ue=n,C.p=a,N.T=l}}e.current=t,He=2}}function Oo(){if(He===2){He=0;var e=gl,t=Sa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=N.T,N.T=null;var a=C.p;C.p=2;var n=ue;ue|=4;try{no(e,t.alternate,t)}finally{ue=n,C.p=a,N.T=l}}He=3}}function Co(){if(He===4||He===3){He=0,Id();var e=gl,t=Sa,l=el,a=go;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?He=5:(He=0,Sa=gl=null,Do(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(pl=null),tc(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(Ca,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=N.T,n=C.p,C.p=2,N.T=null;try{for(var s=e.onRecoverableError,u=0;u<a.length;u++){var i=a[u];s(i.value,{componentStack:i.stack})}}finally{N.T=t,C.p=n}}(el&3)!==0&&As(),Rt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ku?mn++:(mn=0,ku=e):mn=0,xn(0)}}function Do(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ja(t)))}function As(){return _o(),Oo(),Co(),Uo()}function Uo(){if(He!==5)return!1;var e=gl,t=Du;Du=0;var l=tc(el),a=N.T,n=C.p;try{C.p=32>l?32:l,N.T=null,l=Uu,Uu=null;var s=gl,u=el;if(He=0,Sa=gl=null,el=0,(ue&6)!==0)throw Error(d(331));var i=ue;if(ue|=4,xo(s.current),oo(s,s.current,u,l),ue=i,xn(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(Ca,s)}catch{}return!0}finally{C.p=n,N.T=a,Do(e,t)}}function ko(e,t,l){t=Nt(l,t),t=hu(e.stateNode,t,2),e=ol(e,t,2),e!==null&&(Ua(e,2),Rt(e))}function he(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"&&(pl===null||!pl.has(a))){e=Nt(l,e),l=kf(2),a=ol(t,l,2),a!==null&&(Rf(l,a,t,e),Ua(a,2),Rt(a));break}}t=t.return}}function Bu(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new wh;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)||(_u=!0,n.add(l),e=zh.bind(null,e,t,l),t.then(e,e))}function zh(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ge===e&&(le&l)===l&&(Ae===4||Ae===3&&(le&62914560)===le&&300>ut()-Ns?(ue&2)===0&&wa(e,0):Ou|=l,ja===le&&(ja=0)),Rt(e)}function Ro(e,t){t===0&&(t=Mi()),e=Ul(e,t),e!==null&&(Ua(e,t),Rt(e))}function _h(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ro(e,l)}function Oh(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(d(314))}a!==null&&a.delete(t),Ro(e,l)}function Ch(e,t){return Fs(e,t)}var Ms=null,Ta=null,qu=!1,zs=!1,Lu=!1,vl=0;function Rt(e){e!==Ta&&e.next===null&&(Ta===null?Ms=Ta=e:Ta=Ta.next=e),zs=!0,qu||(qu=!0,Uh())}function xn(e,t){if(!Lu&&zs){Lu=!0;do for(var l=!1,a=Ms;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var u=a.suspendedLanes,i=a.pingedLanes;s=(1<<31-rt(42|e)+1)-1,s&=n&~(u&~i),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,Lo(a,s))}else s=le,s=Dn(a,a===ge?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||Da(a,s)||(l=!0,Lo(a,s));a=a.next}while(l);Lu=!1}}function Dh(){Ho()}function Ho(){zs=qu=!1;var e=0;vl!==0&&Vh()&&(e=vl);for(var t=ut(),l=null,a=Ms;a!==null;){var n=a.next,s=Bo(a,t);s===0?(a.next=null,l===null?Ms=n:l.next=n,n===null&&(Ta=l)):(l=a,(e!==0||(s&3)!==0)&&(zs=!0)),a=n}He!==0&&He!==5||xn(e),vl!==0&&(vl=0)}function Bo(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var u=31-rt(s),i=1<<u,r=n[u];r===-1?((i&l)===0||(i&a)!==0)&&(n[u]=c0(i,t)):r<=t&&(e.expiredLanes|=i),s&=~i}if(t=ge,l=le,l=Dn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(de===2||de===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Is(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Da(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Is(a),tc(l)){case 2:case 8:l=Ti;break;case 32:l=zn;break;case 268435456:l=Ai;break;default:l=zn}return a=qo.bind(null,e),l=Fs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Is(a),e.callbackPriority=2,e.callbackNode=null,2}function qo(e,t){if(He!==0&&He!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(As()&&e.callbackNode!==l)return null;var a=le;return a=Dn(e,e===ge?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(vo(e,a,t),Bo(e,ut()),e.callbackNode!=null&&e.callbackNode===l?qo.bind(null,e):null)}function Lo(e,t){if(As())return null;vo(e,t,!0)}function Uh(){Zh(function(){(ue&6)!==0?Fs(Ei,Dh):Ho()})}function Yu(){if(vl===0){var e=oa;e===0&&(e=_n,_n<<=1,(_n&261888)===0&&(_n=256)),vl=e}return vl}function Yo(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hn(""+e)}function Go(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 kh(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=Yo((n[Pe]||null).action),u=a.submitter;u&&(t=(t=u[Pe]||null)?Yo(t.formAction):u.getAttribute("formAction"),t!==null&&(s=t,u=null));var i=new Yn("action","action",null,a,n);e.push({event:i,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(vl!==0){var r=u?Go(n,u):new FormData(n);uu(l,{pending:!0,data:r,method:n.method,action:s},null,r)}}else typeof s=="function"&&(i.preventDefault(),r=u?Go(n,u):new FormData(n),uu(l,{pending:!0,data:r,method:n.method,action:s},s,r))},currentTarget:n}]})}}for(var Gu=0;Gu<wc.length;Gu++){var Xu=wc[Gu],Rh=Xu.toLowerCase(),Hh=Xu[0].toUpperCase()+Xu.slice(1);zt(Rh,"on"+Hh)}zt(pr,"onAnimationEnd"),zt(gr,"onAnimationIteration"),zt(yr,"onAnimationStart"),zt("dblclick","onDoubleClick"),zt("focusin","onFocus"),zt("focusout","onBlur"),zt(P0,"onTransitionRun"),zt(eh,"onTransitionStart"),zt(th,"onTransitionCancel"),zt(vr,"onTransitionEnd"),Fl("onMouseEnter",["mouseout","mouseover"]),Fl("onMouseLeave",["mouseout","mouseover"]),Fl("onPointerEnter",["pointerout","pointerover"]),Fl("onPointerLeave",["pointerout","pointerover"]),_l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_l("onBeforeInput",["compositionend","keypress","textInput","paste"]),_l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bn="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(" "),Bh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bn));function Xo(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 s=void 0;if(t)for(var u=a.length-1;0<=u;u--){var i=a[u],r=i.instance,b=i.currentTarget;if(i=i.listener,r!==s&&n.isPropagationStopped())break e;s=i,n.currentTarget=b;try{s(n)}catch(v){Vn(v)}n.currentTarget=null,s=r}else for(u=0;u<a.length;u++){if(i=a[u],r=i.instance,b=i.currentTarget,i=i.listener,r!==s&&n.isPropagationStopped())break e;s=i,n.currentTarget=b;try{s(n)}catch(v){Vn(v)}n.currentTarget=null,s=r}}}}function ee(e,t){var l=t[lc];l===void 0&&(l=t[lc]=new Set);var a=e+"__bubble";l.has(a)||(Vo(t,e,2,!1),l.add(a))}function Vu(e,t,l){var a=0;t&&(a|=4),Vo(l,e,a,t)}var _s="_reactListening"+Math.random().toString(36).slice(2);function Qu(e){if(!e[_s]){e[_s]=!0,ki.forEach(function(l){l!=="selectionchange"&&(Bh.has(l)||Vu(l,!1,e),Vu(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_s]||(t[_s]=!0,Vu("selectionchange",!1,t))}}function Vo(e,t,l,a){switch(yd(t)){case 2:var n=dm;break;case 8:n=hm;break;default:n=ci}l=n.bind(null,t,l,e),n=void 0,!oc||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 Zu(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var i=a.stateNode.containerInfo;if(i===n)break;if(u===4)for(u=a.return;u!==null;){var r=u.tag;if((r===3||r===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;i!==null;){if(u=Jl(i),u===null)return;if(r=u.tag,r===5||r===6||r===26||r===27){a=s=u;continue e}i=i.parentNode}}a=a.return}Ki(function(){var b=s,v=rc(l),E=[];e:{var p=Nr.get(e);if(p!==void 0){var g=Yn,R=e;switch(e){case"keypress":if(qn(l)===0)break e;case"keydown":case"keyup":g=O0;break;case"focusin":R="focus",g=xc;break;case"focusout":R="blur",g=xc;break;case"beforeblur":case"afterblur":g=xc;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":g=Wi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=y0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=U0;break;case pr:case gr:case yr:g=j0;break;case vr:g=R0;break;case"scroll":case"scrollend":g=p0;break;case"wheel":g=B0;break;case"copy":case"cut":case"paste":g=w0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ii;break;case"toggle":case"beforetoggle":g=L0}var V=(t&4)!==0,pe=!V&&(e==="scroll"||e==="scrollend"),m=V?p!==null?p+"Capture":null:p;V=[];for(var h=b,x;h!==null;){var S=h;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||m===null||(S=Ha(h,m),S!=null&&V.push(pn(h,S,x))),pe)break;h=h.return}0<V.length&&(p=new g(p,R,null,l,v),E.push({event:p,listeners:V}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&l!==ic&&(R=l.relatedTarget||l.fromElement)&&(Jl(R)||R[Kl]))break e;if((g||p)&&(p=v.window===v?v:(p=v.ownerDocument)?p.defaultView||p.parentWindow:window,g?(R=l.relatedTarget||l.toElement,g=b,R=R?Jl(R):null,R!==null&&(pe=_(R),V=R.tag,R!==pe||V!==5&&V!==27&&V!==6)&&(R=null)):(g=null,R=b),g!==R)){if(V=Wi,S="onMouseLeave",m="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(V=Ii,S="onPointerLeave",m="onPointerEnter",h="pointer"),pe=g==null?p:Ra(g),x=R==null?p:Ra(R),p=new V(S,h+"leave",g,l,v),p.target=pe,p.relatedTarget=x,S=null,Jl(v)===b&&(V=new V(m,h+"enter",R,l,v),V.target=x,V.relatedTarget=pe,S=V),pe=S,g&&R)t:{for(V=qh,m=g,h=R,x=0,S=m;S;S=V(S))x++;S=0;for(var G=h;G;G=V(G))S++;for(;0<x-S;)m=V(m),x--;for(;0<S-x;)h=V(h),S--;for(;x--;){if(m===h||h!==null&&m===h.alternate){V=m;break t}m=V(m),h=V(h)}V=null}else V=null;g!==null&&Qo(E,p,g,V,!1),R!==null&&pe!==null&&Qo(E,pe,R,V,!0)}}e:{if(p=b?Ra(b):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var se=cr;else if(nr(p))if(ur)se=W0;else{se=J0;var q=K0}else g=p.nodeName,!g||g.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?b&&uc(b.elementType)&&(se=cr):se=$0;if(se&&(se=se(e,b))){sr(E,se,l,v);break e}q&&q(e,p,b),e==="focusout"&&b&&p.type==="number"&&b.memoizedProps.value!=null&&cc(p,"number",p.value)}switch(q=b?Ra(b):window,e){case"focusin":(nr(q)||q.contentEditable==="true")&&(aa=q,Nc=b,Qa=null);break;case"focusout":Qa=Nc=aa=null;break;case"mousedown":jc=!0;break;case"contextmenu":case"mouseup":case"dragend":jc=!1,xr(E,l,v);break;case"selectionchange":if(I0)break;case"keydown":case"keyup":xr(E,l,v)}var F;if(pc)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else la?lr(e,l)&&(ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(Pi&&l.locale!=="ko"&&(la||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&la&&(F=Ji()):(nl=v,dc="value"in nl?nl.value:nl.textContent,la=!0)),q=Os(b,ae),0<q.length&&(ae=new Fi(ae,e,null,l,v),E.push({event:ae,listeners:q}),F?ae.data=F:(F=ar(l),F!==null&&(ae.data=F)))),(F=G0?X0(e,l):V0(e,l))&&(ae=Os(b,"onBeforeInput"),0<ae.length&&(q=new Fi("onBeforeInput","beforeinput",null,l,v),E.push({event:q,listeners:ae}),q.data=F)),kh(E,e,b,l,v)}Xo(E,t)})}function pn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Os(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=Ha(e,l),n!=null&&a.unshift(pn(e,n,s)),n=Ha(e,t),n!=null&&a.push(pn(e,n,s))),e.tag===3)return a;e=e.return}return[]}function qh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Qo(e,t,l,a,n){for(var s=t._reactName,u=[];l!==null&&l!==a;){var i=l,r=i.alternate,b=i.stateNode;if(i=i.tag,r!==null&&r===a)break;i!==5&&i!==26&&i!==27||b===null||(r=b,n?(b=Ha(l,s),b!=null&&u.unshift(pn(l,b,r))):n||(b=Ha(l,s),b!=null&&u.push(pn(l,b,r)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var Lh=/\r\n?/g,Yh=/\u0000|\uFFFD/g;function Zo(e){return(typeof e=="string"?e:""+e).replace(Lh,`
`).replace(Yh,"")}function Ko(e,t){return t=Zo(t),Zo(e)===t}function be(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Pl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Pl(e,""+a);break;case"className":kn(e,"class",a);break;case"tabIndex":kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":kn(e,l,a);break;case"style":Qi(e,a,s);break;case"data":if(t!=="object"){kn(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=Hn(""+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 s=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Hn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=qt);break;case"onScroll":a!=null&&ee("scroll",e);break;case"onScrollEnd":a!=null&&ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(d(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(d(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=Hn(""+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":ee("beforetoggle",e),ee("toggle",e),Un(e,"popover",a);break;case"xlinkActuate":Bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Un(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=x0.get(l)||l,Un(e,l,a))}}function Ku(e,t,l,a,n,s){switch(l){case"style":Qi(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(d(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(d(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Pl(e,a):(typeof a=="number"||typeof a=="bigint")&&Pl(e,""+a);break;case"onScroll":a!=null&&ee("scroll",e);break;case"onScrollEnd":a!=null&&ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=qt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ri.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[Pe]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==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,""):Un(e,l,a)}}}function Qe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ee("error",e),ee("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var u=l[s];if(u!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(d(137,t));default:be(e,t,s,u,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ee("invalid",e);var i=s=u=n=null,r=null,b=null;for(a in l)if(l.hasOwnProperty(a)){var v=l[a];if(v!=null)switch(a){case"name":n=v;break;case"type":u=v;break;case"checked":r=v;break;case"defaultChecked":b=v;break;case"value":s=v;break;case"defaultValue":i=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(d(137,t));break;default:be(e,t,a,v,l,null)}}Yi(e,s,i,r,b,u,n,!1);return;case"select":ee("invalid",e),a=u=s=null;for(n in l)if(l.hasOwnProperty(n)&&(i=l[n],i!=null))switch(n){case"value":s=i;break;case"defaultValue":u=i;break;case"multiple":a=i;default:be(e,t,n,i,l,null)}t=s,l=u,e.multiple=!!a,t!=null?Il(e,!!a,t,!1):l!=null&&Il(e,!!a,l,!0);return;case"textarea":ee("invalid",e),s=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(i=l[u],i!=null))switch(u){case"value":a=i;break;case"defaultValue":n=i;break;case"children":s=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(d(91));break;default:be(e,t,u,i,l,null)}Xi(e,a,n,s);return;case"option":for(r in l)if(l.hasOwnProperty(r)&&(a=l[r],a!=null))switch(r){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,t,r,a,l,null)}return;case"dialog":ee("beforetoggle",e),ee("toggle",e),ee("cancel",e),ee("close",e);break;case"iframe":case"object":ee("load",e);break;case"video":case"audio":for(a=0;a<bn.length;a++)ee(bn[a],e);break;case"image":ee("error",e),ee("load",e);break;case"details":ee("toggle",e);break;case"embed":case"source":case"link":ee("error",e),ee("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(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(d(137,t));default:be(e,t,b,a,l,null)}return;default:if(uc(t)){for(v in l)l.hasOwnProperty(v)&&(a=l[v],a!==void 0&&Ku(e,t,v,a,l,void 0));return}}for(i in l)l.hasOwnProperty(i)&&(a=l[i],a!=null&&be(e,t,i,a,l,null))}function Gh(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,s=null,u=null,i=null,r=null,b=null,v=null;for(g in l){var E=l[g];if(l.hasOwnProperty(g)&&E!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":r=E;default:a.hasOwnProperty(g)||be(e,t,g,null,a,E)}}for(var p in a){var g=a[p];if(E=l[p],a.hasOwnProperty(p)&&(g!=null||E!=null))switch(p){case"type":s=g;break;case"name":n=g;break;case"checked":b=g;break;case"defaultChecked":v=g;break;case"value":u=g;break;case"defaultValue":i=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(d(137,t));break;default:g!==E&&be(e,t,p,g,a,E)}}sc(e,u,i,r,b,v,s,n);return;case"select":g=u=i=p=null;for(s in l)if(r=l[s],l.hasOwnProperty(s)&&r!=null)switch(s){case"value":break;case"multiple":g=r;default:a.hasOwnProperty(s)||be(e,t,s,null,a,r)}for(n in a)if(s=a[n],r=l[n],a.hasOwnProperty(n)&&(s!=null||r!=null))switch(n){case"value":p=s;break;case"defaultValue":i=s;break;case"multiple":u=s;default:s!==r&&be(e,t,n,s,a,r)}t=i,l=u,a=g,p!=null?Il(e,!!l,p,!1):!!a!=!!l&&(t!=null?Il(e,!!l,t,!0):Il(e,!!l,l?[]:"",!1));return;case"textarea":g=p=null;for(i in l)if(n=l[i],l.hasOwnProperty(i)&&n!=null&&!a.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:be(e,t,i,null,a,n)}for(u in a)if(n=a[u],s=l[u],a.hasOwnProperty(u)&&(n!=null||s!=null))switch(u){case"value":p=n;break;case"defaultValue":g=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(d(91));break;default:n!==s&&be(e,t,u,n,a,s)}Gi(e,p,g);return;case"option":for(var R in l)if(p=l[R],l.hasOwnProperty(R)&&p!=null&&!a.hasOwnProperty(R))switch(R){case"selected":e.selected=!1;break;default:be(e,t,R,null,a,p)}for(r in a)if(p=a[r],g=l[r],a.hasOwnProperty(r)&&p!==g&&(p!=null||g!=null))switch(r){case"selected":e.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:be(e,t,r,p,a,g)}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 V in l)p=l[V],l.hasOwnProperty(V)&&p!=null&&!a.hasOwnProperty(V)&&be(e,t,V,null,a,p);for(b in a)if(p=a[b],g=l[b],a.hasOwnProperty(b)&&p!==g&&(p!=null||g!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(d(137,t));break;default:be(e,t,b,p,a,g)}return;default:if(uc(t)){for(var pe in l)p=l[pe],l.hasOwnProperty(pe)&&p!==void 0&&!a.hasOwnProperty(pe)&&Ku(e,t,pe,void 0,a,p);for(v in a)p=a[v],g=l[v],!a.hasOwnProperty(v)||p===g||p===void 0&&g===void 0||Ku(e,t,v,p,a,g);return}}for(var m in l)p=l[m],l.hasOwnProperty(m)&&p!=null&&!a.hasOwnProperty(m)&&be(e,t,m,null,a,p);for(E in a)p=a[E],g=l[E],!a.hasOwnProperty(E)||p===g||p==null&&g==null||be(e,t,E,p,a,g)}function Jo(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Xh(){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],s=n.transferSize,u=n.initiatorType,i=n.duration;if(s&&i&&Jo(u)){for(u=0,i=n.responseEnd,a+=1;a<l.length;a++){var r=l[a],b=r.startTime;if(b>i)break;var v=r.transferSize,E=r.initiatorType;v&&Jo(E)&&(r=r.responseEnd,u+=v*(r<i?1:(i-b)/(r-b)))}if(--a,t+=8*(s+u)/(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 Ju=null,$u=null;function Cs(e){return e.nodeType===9?e:e.ownerDocument}function $o(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 Wo(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 Wu(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 Fu=null;function Vh(){var e=window.event;return e&&e.type==="popstate"?e===Fu?!1:(Fu=e,!0):(Fu=null,!1)}var Fo=typeof setTimeout=="function"?setTimeout:void 0,Qh=typeof clearTimeout=="function"?clearTimeout:void 0,Io=typeof Promise=="function"?Promise:void 0,Zh=typeof queueMicrotask=="function"?queueMicrotask:typeof Io<"u"?function(e){return Io.resolve(null).then(e).catch(Kh)}:Fo;function Kh(e){setTimeout(function(){throw e})}function Nl(e){return e==="head"}function Po(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),_a(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")gn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,gn(l);for(var s=l.firstChild;s;){var u=s.nextSibling,i=s.nodeName;s[ka]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=u}}else l==="body"&&gn(e.ownerDocument.body);l=n}while(l);_a(t)}function ed(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 Iu(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":Iu(l),ac(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Jh(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[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Tt(e.nextSibling),e===null)break}return null}function $h(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Tt(e.nextSibling),e===null))return null;return e}function td(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tt(e.nextSibling),e===null))return null;return e}function Pu(e){return e.data==="$?"||e.data==="$~"}function ei(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Wh(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 Tt(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 ti=null;function ld(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Tt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ad(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 nd(e,t,l){switch(t=Cs(l),e){case"html":if(e=t.documentElement,!e)throw Error(d(452));return e;case"head":if(e=t.head,!e)throw Error(d(453));return e;case"body":if(e=t.body,!e)throw Error(d(454));return e;default:throw Error(d(451))}}function gn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ac(e)}var At=new Map,sd=new Set;function Ds(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var tl=C.d;C.d={f:Fh,r:Ih,D:Ph,C:em,L:tm,m:lm,X:nm,S:am,M:sm};function Fh(){var e=tl.f(),t=ws();return e||t}function Ih(e){var t=$l(e);t!==null&&t.tag===5&&t.type==="form"?Nf(t):tl.r(e)}var Aa=typeof document>"u"?null:document;function cd(e,t,l){var a=Aa;if(a&&typeof t=="string"&&t){var n=yt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),sd.has(n)||(sd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Qe(t,"link",e),qe(t),a.head.appendChild(t)))}}function Ph(e){tl.D(e),cd("dns-prefetch",e,null)}function em(e,t){tl.C(e,t),cd("preconnect",e,t)}function tm(e,t,l){tl.L(e,t,l);var a=Aa;if(a&&e&&t){var n='link[rel="preload"][as="'+yt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+yt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+yt(l.imageSizes)+'"]')):n+='[href="'+yt(e)+'"]';var s=n;switch(t){case"style":s=Ma(e);break;case"script":s=za(e)}At.has(s)||(e=w({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(yn(s))||t==="script"&&a.querySelector(vn(s))||(t=a.createElement("link"),Qe(t,"link",e),qe(t),a.head.appendChild(t)))}}function lm(e,t){tl.m(e,t);var l=Aa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+yt(a)+'"][href="'+yt(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=za(e)}if(!At.has(s)&&(e=w({rel:"modulepreload",href:e},t),At.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(vn(s)))return}a=l.createElement("link"),Qe(a,"link",e),qe(a),l.head.appendChild(a)}}}function am(e,t,l){tl.S(e,t,l);var a=Aa;if(a&&e){var n=Wl(a).hoistableStyles,s=Ma(e);t=t||"default";var u=n.get(s);if(!u){var i={loading:0,preload:null};if(u=a.querySelector(yn(s)))i.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(s))&&li(e,l);var r=u=a.createElement("link");qe(r),Qe(r,"link",e),r._p=new Promise(function(b,v){r.onload=b,r.onerror=v}),r.addEventListener("load",function(){i.loading|=1}),r.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Us(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:i},n.set(s,u)}}}function nm(e,t){tl.X(e,t);var l=Aa;if(l&&e){var a=Wl(l).hoistableScripts,n=za(e),s=a.get(n);s||(s=l.querySelector(vn(n)),s||(e=w({src:e,async:!0},t),(t=At.get(n))&&ai(e,t),s=l.createElement("script"),qe(s),Qe(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function sm(e,t){tl.M(e,t);var l=Aa;if(l&&e){var a=Wl(l).hoistableScripts,n=za(e),s=a.get(n);s||(s=l.querySelector(vn(n)),s||(e=w({src:e,async:!0,type:"module"},t),(t=At.get(n))&&ai(e,t),s=l.createElement("script"),qe(s),Qe(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function ud(e,t,l,a){var n=(n=I.current)?Ds(n):null;if(!n)throw Error(d(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ma(l.href),l=Wl(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=Ma(l.href);var s=Wl(n).hoistableStyles,u=s.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,u),(s=n.querySelector(yn(e)))&&!s._p&&(u.instance=s,u.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),s||cm(n,e,l,u.state))),t&&a===null)throw Error(d(528,""));return u}if(t&&a!==null)throw Error(d(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=za(l),l=Wl(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(d(444,e))}}function Ma(e){return'href="'+yt(e)+'"'}function yn(e){return'link[rel="stylesheet"]['+e+"]"}function id(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function cm(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}),Qe(t,"link",l),qe(t),e.head.appendChild(t))}function za(e){return'[src="'+yt(e)+'"]'}function vn(e){return"script[async]"+e}function rd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+yt(l.href)+'"]');if(a)return t.instance=a,qe(a),a;var n=w({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),qe(a),Qe(a,"style",n),Us(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ma(l.href);var s=e.querySelector(yn(n));if(s)return t.state.loading|=4,t.instance=s,qe(s),s;a=id(l),(n=At.get(n))&&li(a,n),s=(e.ownerDocument||e).createElement("link"),qe(s);var u=s;return u._p=new Promise(function(i,r){u.onload=i,u.onerror=r}),Qe(s,"link",a),t.state.loading|=4,Us(s,l.precedence,e),t.instance=s;case"script":return s=za(l.src),(n=e.querySelector(vn(s)))?(t.instance=n,qe(n),n):(a=l,(n=At.get(s))&&(a=w({},l),ai(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),qe(n),Qe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(d(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Us(a,l.precedence,e));return t.instance}function Us(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,u=0;u<a.length;u++){var i=a[u];if(i.dataset.precedence===t)s=i;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function li(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ai(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ks=null;function fd(e,t,l){if(ks===null){var a=new Map,n=ks=new Map;n.set(l,a)}else n=ks,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 s=l[n];if(!(s[ka]||s[Ye]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var u=s.getAttribute(t)||"";u=e+u;var i=a.get(u);i?i.push(s):a.set(u,[s])}}return a}function od(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function um(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 dd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function im(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ma(a.href),s=t.querySelector(yn(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Rs.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,qe(s);return}s=t.ownerDocument||t,a=id(a),(n=At.get(n))&&li(a,n),s=s.createElement("link"),qe(s);var u=s;u._p=new Promise(function(i,r){u.onload=i,u.onerror=r}),Qe(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Rs.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ni=0;function rm(e,t){return e.stylesheets&&e.count===0&&Bs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Bs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&ni===0&&(ni=62500*Xh());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>ni?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Rs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hs=null;function Bs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hs=new Map,t.forEach(fm,e),Hs=null,Rs.call(e))}function fm(e,t){if(!(t.state.loading&4)){var l=Hs.get(e);if(l)var a=l.get(null);else{l=new Map,Hs.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var u=n[s];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=t.instance,u=n.getAttribute("data-precedence"),s=l.get(u)||a,s===a&&l.set(null,n),l.set(u,n),this.count++,a=Rs.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Nn={$$typeof:we,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function om(e,t,l,a,n,s,u,i,r){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=Ps(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ps(0),this.hiddenUpdates=Ps(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function hd(e,t,l,a,n,s,u,i,r,b,v,E){return e=new om(e,t,l,u,r,b,v,E,i),t=1,s===!0&&(t|=24),s=ot(3,null,null,t),e.current=s,s.stateNode=e,t=Hc(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},Yc(s),e}function md(e){return e?(e=ca,e):ca}function xd(e,t,l,a,n,s){n=md(n),a.context===null?a.context=n:a.pendingContext=n,a=fl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=ol(e,a,t),l!==null&&(st(l,e,t),Ia(l,e,t))}function bd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function si(e,t){bd(e,t),(e=e.alternate)&&bd(e,t)}function pd(e){if(e.tag===13||e.tag===31){var t=Ul(e,67108864);t!==null&&st(t,e,67108864),si(e,67108864)}}function gd(e){if(e.tag===13||e.tag===31){var t=bt();t=ec(t);var l=Ul(e,t);l!==null&&st(l,e,t),si(e,t)}}var qs=!0;function dm(e,t,l,a){var n=N.T;N.T=null;var s=C.p;try{C.p=2,ci(e,t,l,a)}finally{C.p=s,N.T=n}}function hm(e,t,l,a){var n=N.T;N.T=null;var s=C.p;try{C.p=8,ci(e,t,l,a)}finally{C.p=s,N.T=n}}function ci(e,t,l,a){if(qs){var n=ui(a);if(n===null)Zu(e,t,a,Ls,l),vd(e,a);else if(xm(n,e,t,l,a))a.stopPropagation();else if(vd(e,a),t&4&&-1<mm.indexOf(e)){for(;n!==null;){var s=$l(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var u=zl(s.pendingLanes);if(u!==0){var i=s;for(i.pendingLanes|=2,i.entangledLanes|=2;u;){var r=1<<31-rt(u);i.entanglements[1]|=r,u&=~r}Rt(s),(ue&6)===0&&(js=ut()+500,xn(0))}}break;case 31:case 13:i=Ul(s,2),i!==null&&st(i,s,2),ws(),si(s,2)}if(s=ui(a),s===null&&Zu(e,t,a,Ls,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Zu(e,t,a,null,l)}}function ui(e){return e=rc(e),ii(e)}var Ls=null;function ii(e){if(Ls=null,e=Jl(e),e!==null){var t=_(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=Y(t),e!==null)return e;e=null}else if(l===31){if(e=B(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 Ls=e,null}function yd(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(Pd()){case Ei:return 2;case Ti:return 8;case zn:case e0:return 32;case Ai:return 268435456;default:return 32}default:return 32}}var ri=!1,jl=null,Sl=null,wl=null,jn=new Map,Sn=new Map,El=[],mm="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 vd(e,t){switch(e){case"focusin":case"focusout":jl=null;break;case"dragenter":case"dragleave":Sl=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sn.delete(t.pointerId)}}function wn(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=$l(t),t!==null&&pd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function xm(e,t,l,a,n){switch(t){case"focusin":return jl=wn(jl,e,t,l,a,n),!0;case"dragenter":return Sl=wn(Sl,e,t,l,a,n),!0;case"mouseover":return wl=wn(wl,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return jn.set(s,wn(jn.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Sn.set(s,wn(Sn.get(s)||null,e,t,l,a,n)),!0}return!1}function Nd(e){var t=Jl(e.target);if(t!==null){var l=_(t);if(l!==null){if(t=l.tag,t===13){if(t=Y(l),t!==null){e.blockedOn=t,Di(e.priority,function(){gd(l)});return}}else if(t===31){if(t=B(l),t!==null){e.blockedOn=t,Di(e.priority,function(){gd(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 Ys(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ui(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ic=a,l.target.dispatchEvent(a),ic=null}else return t=$l(l),t!==null&&pd(t),e.blockedOn=l,!1;t.shift()}return!0}function jd(e,t,l){Ys(e)&&l.delete(t)}function bm(){ri=!1,jl!==null&&Ys(jl)&&(jl=null),Sl!==null&&Ys(Sl)&&(Sl=null),wl!==null&&Ys(wl)&&(wl=null),jn.forEach(jd),Sn.forEach(jd)}function Gs(e,t){e.blockedOn===t&&(e.blockedOn=null,ri||(ri=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bm)))}var Xs=null;function Sd(e){Xs!==e&&(Xs=e,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Xs===e&&(Xs=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(ii(a||l)===null)continue;break}var s=$l(l);s!==null&&(e.splice(t,3),t-=3,uu(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function _a(e){function t(r){return Gs(r,e)}jl!==null&&Gs(jl,e),Sl!==null&&Gs(Sl,e),wl!==null&&Gs(wl,e),jn.forEach(t),Sn.forEach(t);for(var l=0;l<El.length;l++){var a=El[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<El.length&&(l=El[0],l.blockedOn===null);)Nd(l),l.blockedOn===null&&El.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],u=n[Pe]||null;if(typeof s=="function")u||Sd(l);else if(u){var i=null;if(s&&s.hasAttribute("formAction")){if(n=s,u=s[Pe]||null)i=u.formAction;else if(ii(n)!==null)continue}else i=u.action;typeof i=="function"?l[a+1]=i:(l.splice(a,3),a-=3),Sd(l)}}}function wd(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 fi(e){this._internalRoot=e}Vs.prototype.render=fi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(d(409));var l=t.current,a=bt();xd(l,a,e,t,null,null)},Vs.prototype.unmount=fi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xd(e.current,2,null,e,null,null),ws(),t[Kl]=null}};function Vs(e){this._internalRoot=e}Vs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ci();e={blockedOn:null,target:e,priority:t};for(var l=0;l<El.length&&t!==0&&t<El[l].priority;l++);El.splice(l,0,e),l===0&&Nd(e)}};var Ed=T.version;if(Ed!=="19.2.6")throw Error(d(527,Ed,"19.2.6"));C.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(d(188)):(e=Object.keys(e).join(","),Error(d(268,e)));return e=j(t),e=e!==null?D(e):null,e=e===null?null:e.stateNode,e};var pm={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qs.isDisabled&&Qs.supportsFiber)try{Ca=Qs.inject(pm),it=Qs}catch{}}return Tn.createRoot=function(e,t){if(!M(e))throw Error(d(299));var l=!1,a="",n=Of,s=Cf,u=Df;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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=hd(e,1,!1,null,null,l,a,null,n,s,u,wd),e[Kl]=t.current,Qu(e),new fi(t)},Tn.hydrateRoot=function(e,t,l){if(!M(e))throw Error(d(299));var a=!1,n="",s=Of,u=Cf,i=Df,r=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError),l.formState!==void 0&&(r=l.formState)),t=hd(e,1,!0,t,l??null,a,n,r,s,u,i,wd),t.context=md(null),l=t.current,a=bt(),a=ec(a),n=fl(a),n.callback=null,ol(l,n,a),l=a,t.current.lanes=l,Ua(t,l),Rt(t),e[Kl]=t.current,Qu(e),new Vs(t)},Tn.version="19.2.6",Tn}var kd;function zm(){if(kd)return hi.exports;kd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(T){console.error(T)}}return o(),hi.exports=Mm(),hi.exports}var _m=zm();let Zs=[];const Om=o=>(Zs.push(o),()=>{Zs=Zs.filter(T=>T!==o)}),An=(o,T,A)=>{if(console.log(`[Notification Triggered] Title: ${o}, Body: ${T}, Type: ${A}`),"Notification"in window&&Notification.permission==="granted")try{new Notification(o,{body:T,icon:"/logo.png"})}catch(d){console.warn("Native notification failed, likely in iframe context:",d)}window.OneSignal&&window.OneSignal.push(()=>{const d=`last_${A.toLowerCase()}`;window.OneSignal.User.addTag(d,T),window.OneSignal.User.addTag("last_notification_time",new Date().toISOString()),console.log(`[OneSignal Tag Updated] Key: ${d}, Value: ${T}`)}),Zs.forEach(d=>{try{d({title:o,body:T,type:A})}catch(M){console.error("Error invoking in-app notification callback",M)}})},Cm=()=>{const o="8bd04d3e-b7d1-4db8-9293-1caef6ded2c5";if(!(typeof window>"u")){if(!document.getElementById("onesignal-sdk")){const T=document.createElement("script");T.id="onesignal-sdk",T.src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js",T.defer=!0,T.async=!0,document.head.appendChild(T)}window.OneSignal=window.OneSignal||[],window.OneSignal.push(()=>{window.OneSignal.init({appId:o,allowLocalhostAsSecureOrigin:!0,welcomeNotification:{disable:!1},promptOptions:{slidedown:{prompts:[{type:"push",autoPrompt:!0,text:{actionMessage:"আমরা আপনাকে খেলা শুরু ও টাকা উত্তোলনের নোটিফিকেশন পাঠাতে চাই।",acceptButton:"হ্যাঁ, নোটিফাই করুন",cancelButton:"পরে করব"}}]}}}),console.log("OneSignal initialized successfully with App ID:",o)})}},pi="/api",Ze={async get(o){return(await fetch(`${pi}${o}`)).json()},async post(o,T){return(await fetch(`${pi}${o}`,{method:"POST",headers:{"Content-Type":"application/json"},body:T?JSON.stringify(T):void 0})).json()},async put(o,T){return(await fetch(`${pi}${o}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:T?JSON.stringify(T):void 0})).json()}},Yd=X.createContext(void 0),Rd=o=>({uid:o.uid,name:o.name,email:o.email,phone:o.phone,referralCode:o.referral_code,balance:Number(o.balance),winningBalance:Number(o.winning_balance),matchesPlayed:Number(o.matches_played),referralsCount:Number(o.referrals_count),totalEarnings:Number(o.total_earnings)}),Dm=o=>({id:o.id,title:o.title,time:o.time,gameName:o.game_name,category:o.category,winningPrize:Number(o.winning_prize),entryFee:Number(o.entry_fee),playersJoined:Number(o.players_joined),totalPlayersNeeded:Number(o.total_players_needed),status:o.status,roomCode:o.room_code||void 0,winnerName:o.winner_name||void 0,userJoinedName:o.user_joined_name||void 0}),Um=o=>({id:o.id,type:o.type,amount:Number(o.amount),date:o.date,status:o.status,description:o.description,paymentChannel:o.payment_channel||void 0,accountNo:o.account_no||void 0,transactionId:o.transaction_id||void 0}),km=o=>({id:o.id,sender:o.sender,text:o.text,timestamp:o.timestamp}),Rm=o=>({rank:Number(o.rank_no),name:o.name,matchesPlayed:Number(o.matches_played),earnings:Number(o.earnings),badge:o.badge||void 0,isCurrentUser:!!o.isCurrentUser}),Hm=({children:o})=>{const[T,A]=X.useState([{view:"home"}]),d=T[T.length-1]||{view:"home"},[M,_]=X.useState(1),[Y,B]=X.useState(()=>({uid:"5281",name:"Rahul",email:"mdrahul123134@gmail.com",phone:"8801405416822",referralCode:"C6480645",balance:1550,winningBalance:0,matchesPlayed:0,referralsCount:4,totalEarnings:0})),[z,j]=X.useState([]),[D,w]=X.useState([]),[L,ie]=X.useState([]),[oe,k]=X.useState([]),Se=X.useCallback(async()=>{const U=await Ze.get("/user");U.success&&B(Rd(U.data))},[]),ye=X.useCallback(async()=>{const U=await Ze.get("/matches");U.success&&j(U.data.map(Dm))},[]),me=X.useCallback(async()=>{const U=await Ze.get("/transactions");U.success&&w(U.data.map(Um))},[]),we=X.useCallback(async()=>{const U=await Ze.get("/chat");U.success&&ie(U.data.map(km))},[]),ke=X.useCallback(async()=>{const U=await Ze.get("/leaderboard");U.success&&k(U.data.map(Rm))},[]);X.useEffect(()=>{Cm(),Se(),ye(),me(),we(),ke()},[Se,ye,me,we,ke]);const $e=(U,f)=>{A(y=>[...y,{view:U,payload:f}])},Re=()=>{T.length>1&&A(U=>U.slice(0,-1))},Z=async(U,f,y)=>{const O=await Ze.put("/user",{name:U,email:f,phone:y});O.success&&B(Rd(O.data))},Be=async(U,f)=>{const y=await Ze.post("/matches/join",{matchId:U,gameName:f});return y.success?(Se(),ye(),me(),An("ম্যাচ জয়েন সফল হয়েছে! 🎮",`আপনি "${y.data.title}" ম্যাচে অংশগ্রহণ করেছেন।`,"MATCH"),{success:!0}):{success:!1,error:y.error}},Ie=async(U,f,y,O)=>{await Ze.post("/deposit",{channel:U,amount:f,walletNo:y,trxId:O}),me(),_(H=>H+1),setTimeout(()=>{Se(),me(),An("ডিপোজিট সফল হয়েছে! 💰",`আপনার ৳${f} এর ${U} ডিপোজিট সফলভাবে অনুমোদন করা হয়েছে।`,"DEPOSIT")},12e3)},Ct=async(U,f,y)=>{const O=await Ze.post("/withdraw",{channel:U,amount:f,walletNo:y});return O.success?(Se(),me(),setTimeout(()=>{me(),An("উইথড্রয়াল সফল হয়েছে! 💸",`আপনার ৳${f} এর ${U} উইথড্র রিকোয়েস্ট সফলভাবে প্রেরণ করা হয়েছে।`,"WITHDRAW")},15e3),{success:!0}):{success:!1,error:O.error}},W=async(U,f)=>{if(Y.balance<f)return{success:!1,error:"বক্স ট্রান্সফারের জন্য মূল ব্যালেন্স অপর্যাপ্ত!"};const y=await Ze.post("/gift",{phone:U,amount:f});return y.success?(Se(),me(),{success:!0}):{success:!1,error:y.error}},ve=async(U,f,y)=>(await Ze.post("/matches/evidence",{matchId:U,roomCode:f,imageSrc:y}),Se(),ye(),me(),{success:!0}),pt=async U=>{U.trim()&&(await Ze.post("/chat",{text:U}),we())},Mt=async(U,f)=>{await Ze.post("/admin/simulate",{matchId:U,status:f}),Se(),ye(),me()},ct=async U=>{await Ze.post("/admin/add-player",{matchId:U}),ye()},N=async()=>{await Ze.post("/admin/reset"),Se(),ye(),me(),we()},C=async U=>{await Ze.post("/admin/approve-tx",{trxId:U}),Se(),me(),An("ট্রানজেকশন অনুমোদিত হয়েছে ✅","লেনদেনটি সফলভাবে এপ্রুভ করা হয়েছে।","SYSTEM")},Q=async U=>{await Ze.post("/admin/cancel-tx",{trxId:U}),Se(),me(),An("ট্রানজেকশন বাতিল হয়েছে ❌","লেনদেনটি বাতিল করা হয়েছে।","SYSTEM")},re=()=>{_(0)};return c.jsx(Yd.Provider,{value:{user:Y,matches:z,transactions:D,chatMessages:L,leaderboard:oe,currentView:d.view,viewPayload:d.payload,notifications:M,pushView:$e,popView:Re,updateProfile:Z,joinMatch:Be,depositFunds:Ie,withdrawFunds:Ct,sendGiftFunds:W,submitEvidenceUpload:ve,sendChatMessage:pt,simulateMatchResult:Mt,adminAddPlayer:ct,adminResetMatches:N,clearNotifications:re,adminApproveTransaction:C,adminCancelTransaction:Q},children:o})},Je=()=>{const o=X.useContext(Yd);if(!o)throw new Error("useApp must be used within AppProvider");return o};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bm=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),qm=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(T,A,d)=>d?d.toUpperCase():A.toLowerCase()),Hd=o=>{const T=qm(o);return T.charAt(0).toUpperCase()+T.slice(1)},Gd=(...o)=>o.filter((T,A,d)=>!!T&&T.trim()!==""&&d.indexOf(T)===A).join(" ").trim(),Lm=o=>{for(const T in o)if(T.startsWith("aria-")||T==="role"||T==="title")return!0};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ym={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gm=X.forwardRef(({color:o="currentColor",size:T=24,strokeWidth:A=2,absoluteStrokeWidth:d,className:M="",children:_,iconNode:Y,...B},z)=>X.createElement("svg",{ref:z,...Ym,width:T,height:T,stroke:o,strokeWidth:d?Number(A)*24/Number(T):A,className:Gd("lucide",M),...!_&&!Lm(B)&&{"aria-hidden":"true"},...B},[...Y.map(([j,D])=>X.createElement(j,D)),...Array.isArray(_)?_:[_]]));/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const te=(o,T)=>{const A=X.forwardRef(({className:d,...M},_)=>X.createElement(Gm,{ref:_,iconNode:T,className:Gd(`lucide-${Bm(Hd(o))}`,`lucide-${o}`,d),...M}));return A.displayName=Hd(o),A};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xm=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ht=te("arrow-left",Xm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vm=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],vi=te("award",Vm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qm=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Xd=te("bell",Qm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zm=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Km=te("bot",Zm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Al=te("chevron-right",Jm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $m=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Bd=te("circle-check-big",$m);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Fm=te("circle-check",Wm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Im=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Vd=te("circle-play",Im);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],ex=te("circle-plus",Pm);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tx=[["path",{d:"M18 20a6 6 0 0 0-12 0",key:"1qehca"}],["circle",{cx:"12",cy:"10",r:"4",key:"1h16sb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lx=te("circle-user-round",tx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ax=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],Qd=te("clipboard",ax);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nx=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],gi=te("clock",nx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sx=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Ni=te("cpu",sx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cx=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],qd=te("crown",cx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ux=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ix=te("file-text",ux);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rx=[["path",{d:"M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762",key:"17lmqv"}]],fx=te("heart-handshake",rx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ox=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],dx=te("house",ox);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hx=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],mx=te("inbox",hx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xx=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],bx=te("landmark",xx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const px=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],gx=te("layers",px);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yx=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],vx=te("log-out",yx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nx=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],jx=te("message-square",Nx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sx=[["path",{d:"M13 2a9 9 0 0 1 9 9",key:"1itnx2"}],["path",{d:"M13 6a5 5 0 0 1 5 5",key:"11nki7"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],wx=te("phone-call",Sx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ex=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Tx=te("play",Ex);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ax=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Mx=te("plus",Ax);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zx=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],_x=te("refresh-cw",zx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ox=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Zd=te("send",Ox);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cx=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Kd=te("share-2",Cx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dx=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ux=te("triangle-alert",Dx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kx=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Rx=te("trophy",kx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hx=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Bx=te("upload",Hx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qx=[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]],Lx=te("user-pen",qx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yx=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ji=te("user",Yx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Jd=te("users",Gx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xx=[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]],Vx=te("wallet",Xx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qx=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$d=te("x",Qx);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zx=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Kx=te("zap",Zx),Jx=()=>{const{user:o,pushView:T,notifications:A,clearNotifications:d}=Je();return c.jsxs("header",{className:"fixed top-0 left-0 right-0 h-16 bg-[#0f172a] border-b border-slate-800/80 px-4 flex items-center justify-between z-30 shadow-lg",children:[c.jsxs("div",{className:"flex items-center gap-2 cursor-pointer active:scale-95 transition-transform",onClick:()=>T("home"),id:"header-brand",children:[c.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-tr from-amber-500 via-rose-500 to-indigo-600 flex items-center justify-center shadow-md border border-white/20",children:c.jsx("span",{className:"text-white font-extrabold text-sm tracking-tighter uppercase font-mono",children:"LUDO"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-[#f8fafc] text-lg font-bold font-sans tracking-tight",children:"Ludo Master"}),c.jsx("span",{className:"text-[9px] text-[#facc15] font-semibold -mt-1 block tracking-wider uppercase font-sans",children:"PLAY & EARN"})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("button",{className:"relative p-2 rounded-full hover:bg-slate-800/60 active:scale-95 transition-all",onClick:()=>{d(),alert(`আপনার আজকের নোটিফিকেশন:
১. নতুন স্পেশাল টুর্নামেন্ট চালু হয়েছে!
২. bKash/Nagad পেমেন্ট ইনস্ট্যান্ট সচল রয়েছে।
৩. রেফার কমিশন ১% সচল রয়েছে।`)},id:"btn-bell",children:[c.jsx(Xd,{className:"w-6 h-6 text-yellow-400 fill-yellow-400"}),A>0&&c.jsx("span",{className:"absolute top-1.5 right-1.5 w-4 h-4 bg-red-600 rounded-full text-[10px] font-bold text-white flex items-center justify-center pulse-badge",children:A})]}),c.jsxs("div",{className:"bg-slate-900 border border-slate-700/80 rounded-full py-1.5 pl-3 pr-4 flex items-center gap-1.5 cursor-pointer hover:bg-slate-800/80 active:scale-95 transition-all shadow-inner",onClick:()=>T("wallet"),id:"header-balance-pill",children:[c.jsx("div",{className:"w-5 h-5 rounded-full bg-white flex items-center justify-center text-[#0f172a] font-extrabold text-xs",children:"৳"}),c.jsx("span",{className:"text-white font-bold text-sm leading-none",children:o.balance+o.winningBalance}),c.jsx("span",{className:"text-green-400 font-extrabold text-[10px] bg-green-500/10 px-1 rounded",children:"+"})]})]})]})},$x=()=>{const{currentView:o,pushView:T}=Je(),A=d=>{T(d)};return c.jsxs("div",{className:"fixed bottom-0 left-0 right-0 h-20 bg-[#0f172a] border-t border-slate-800/80 z-30 shadow-2xl flex items-center justify-around px-8",children:[c.jsxs("button",{className:`flex flex-col items-center justify-center gap-1 transition-all w-16 h-16 rounded-xl ${["home","matches","match-detail","evidence"].includes(o)?"text-[#facc15] scale-105":"text-slate-400 hover:text-slate-100"}`,onClick:()=>A("home"),id:"nav-home",children:[c.jsx(dx,{className:"w-6 h-6 stroke-[2]"}),c.jsx("span",{className:"text-[10px] font-bold tracking-tight",children:"Home"})]}),c.jsxs("div",{className:"relative -top-5",children:[c.jsx("div",{className:"absolute inset-0 bg-yellow-500/20 blur-xl rounded-full"}),c.jsx("button",{className:`relative w-16 h-16 rounded-full flex items-center justify-center shadow-2xl border-2 transition-all active:scale-90 ${o==="support"?"bg-[#facc15] border-[#facc15] text-[#0f172a] rotate-6":"bg-slate-800 border-slate-700 text-yellow-400 hover:bg-slate-700"}`,onClick:()=>A("support"),id:"nav-support",children:c.jsx(jx,{className:"w-8 h-8 fill-current"})})]}),c.jsxs("button",{className:`flex flex-col items-center justify-center gap-1 transition-all w-16 h-16 rounded-xl ${["profile","refer-earn","leaderboard","wallet","withdraw","terms-conditions","developer-panel","edit-profile"].includes(o)?"text-[#facc15] scale-105":"text-slate-400 hover:text-slate-100"}`,onClick:()=>A("profile"),id:"nav-profile",children:[c.jsx(ji,{className:"w-6 h-6 stroke-[2]"}),c.jsx("span",{className:"text-[10px] font-bold tracking-tight",children:"Me"})]})]})},Ld=()=>{const{pushView:o,user:T,matches:A}=Je(),[d,M]=X.useState(!1),_=A?A.filter(z=>z.category==="REGULAR"&&z.status==="ACTIVE").length:0,Y=A?A.filter(z=>z.category==="SPECIAL"&&z.status==="ACTIVE").length:0,B=A?A.filter(z=>z.category==="AUTOMATIC"&&z.status==="ACTIVE").length:0;return c.jsxs("div",{className:"space-y-6 pb-28 pt-4",children:[c.jsxs("div",{className:"flex items-center justify-between px-1",children:[c.jsxs("div",{children:[c.jsxs("h2",{className:"text-[#facc15] font-extrabold text-xl tracking-tight",children:["Hi, ",(T==null?void 0:T.name)||"Player"," 👋"]}),c.jsxs("p",{className:"text-[#94a3b8] text-xs font-semibold uppercase tracking-wider",children:["UID: #",(T==null?void 0:T.uid)||"5281"]})]}),c.jsxs("div",{className:"bg-slate-800/100 border border-slate-700 rounded-lg px-3 py-1.5 text-right",children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block uppercase leading-none",children:"AVAILABLE BAL"}),c.jsxs("span",{className:"text-white font-black text-base",children:["৳ ",(T==null?void 0:T.balance)||0]})]})]}),c.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-indigo-900 via-fuchsia-900 to-purple-800 border border-purple-500/30 p-5 shadow-2xl cursor-pointer hover:shadow-purple-500/10 hover:border-purple-500/50 transition-all active:scale-[0.99]",onClick:()=>M(!0),id:"home-promo-banner",children:[c.jsxs("div",{className:"relative z-10 max-w-[65%] space-y-3",children:[c.jsxs("h3",{className:"text-white font-black text-2xl leading-tight font-sans tracking-tight",children:["কিভাবে ",c.jsx("br",{}),c.jsx("span",{className:"text-yellow-300 underline decoration-yellow-400 decoration-wavy underline-offset-4",children:"খেলবেন?"})]}),c.jsxs("p",{className:"text-white/90 text-sm font-medium flex items-center gap-1.5",children:[c.jsx("span",{className:"w-8 h-8 rounded-full bg-red-600 flex items-center justify-center animate-pulse shrink-0 shadow-lg",children:c.jsx(Tx,{className:"w-4 h-4 text-white fill-white translate-x-0.5"})}),c.jsx("span",{className:"font-bold underline",children:"ভিডিওটি দেখুন 👉"})]})]}),c.jsx("div",{className:"absolute right-2 bottom-0 top-0 w-[45%] flex items-center justify-center",children:c.jsxs("div",{className:"relative w-full h-[120%] flex items-center justify-end",children:[c.jsx("div",{className:"w-32 h-32 rounded-lg bg-slate-950/40 rotate-[20deg] border-2 border-white/20 p-2 opacity-80 shadow-lg relative translate-x-4",children:c.jsxs("div",{className:"grid grid-cols-2 gap-1 h-full w-full",children:[c.jsx("div",{className:"bg-red-500 rounded-sm"}),c.jsx("div",{className:"bg-green-500 rounded-sm"}),c.jsx("div",{className:"bg-blue-500 rounded-sm"}),c.jsx("div",{className:"bg-yellow-500 rounded-sm"})]})}),c.jsxs("div",{className:"absolute top-4 left-6 w-12 h-12 bg-white rounded-xl shadow-xl rotate-[35deg] border border-slate-100 flex flex-col justify-between p-2",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsx("div",{className:"w-2.5 h-2.5 bg-slate-900 rounded-full"}),c.jsx("div",{className:"w-2.5 h-2.5 bg-slate-900 rounded-full"})]}),c.jsx("div",{className:"flex justify-center",children:c.jsx("div",{className:"w-2.5 h-2.5 bg-slate-900 rounded-full"})}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("div",{className:"w-2.5 h-2.5 bg-slate-900 rounded-full"}),c.jsx("div",{className:"w-2.5 h-2.5 bg-slate-900 rounded-full"})]})]}),c.jsx("div",{className:"absolute bottom-6 left-12 w-9 h-9 bg-yellow-400 rounded-lg shadow-lg -rotate-[15deg] border border-amber-300 flex items-center justify-center p-1",children:c.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[c.jsx("div",{className:"w-2 h-2 bg-slate-950 rounded-full"}),c.jsx("div",{className:"w-2 h-2 bg-slate-950 rounded-full"}),c.jsx("div",{className:"w-2 h-2 bg-slate-950 rounded-full"}),c.jsx("div",{className:"w-2 h-2 bg-slate-950 rounded-full"})]})})]})})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800/80 pb-2",children:[c.jsx("h3",{className:"text-white text-xs font-black tracking-widest uppercase font-mono",children:"GAMES & MODES"}),c.jsxs("span",{className:"text-[10px] text-green-400 bg-green-500/10 px-2.5 py-0.5 rounded-full font-bold animate-pulse",children:["● ",1e3+Math.floor(Math.random()*500)," Active Players"]})]}),c.jsxs("div",{className:"relative group overflow-hidden bg-slate-900/95 border border-slate-800 hover:border-[#facc15]/40 rounded-2xl p-5 cursor-pointer shadow-md hover:shadow-[#facc15]/5 transition-all duration-300 active:scale-[0.98]",onClick:()=>o("matches",{category:"REGULAR"}),id:"home-matches-regular",children:[c.jsx("div",{className:"absolute top-4 right-4 bg-yellow-400 text-slate-900 text-xs font-black px-2.5 py-0.5 rounded-full z-10 shadow-lg glow-[#facc15]",children:"111"}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"w-16 h-16 rounded-xl bg-[#1e293b]/50 border border-slate-700/50 flex items-center justify-center p-2.5 shrink-0 shadow-inner group-hover:scale-105 transition-transform",children:c.jsxs("div",{className:"grid grid-cols-2 gap-1 w-full h-full",children:[c.jsx("div",{className:"bg-red-500 rounded border border-white/20"}),c.jsx("div",{className:"bg-green-500 rounded border border-white/20"}),c.jsx("div",{className:"bg-blue-500 rounded border border-white/20"}),c.jsx("div",{className:"bg-yellow-500 rounded border border-white/20"})]})}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-slate-100 font-extrabold text-base tracking-tight group-hover:text-yellow-400 transition-colors",children:"Ludo Matches"}),c.jsx("p",{className:"text-slate-400 text-xs uppercase font-bold tracking-widest mt-0.5 font-mono",children:"REGULAR 1 VS 1"}),c.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[c.jsxs("span",{className:"text-[10px] text-yellow-400 bg-yellow-400/10 px-2 py-0.5 rounded font-bold font-mono",children:[Y+_," LIVE Matches"]}),c.jsx("span",{className:"text-[10px] text-slate-400 font-bold",children:"Entry from: ৳ 50"})]})]})]}),c.jsx("div",{className:"absolute -right-6 -bottom-6 w-24 h-24 bg-[#1e3a8a]/10 rounded-full blur-xl group-hover:bg-yellow-500/10 transition-colors"})]}),c.jsxs("div",{className:"relative group overflow-hidden bg-slate-900/95 border border-slate-800 hover:border-[#facc15]/40 rounded-2xl p-5 cursor-pointer shadow-md hover:shadow-[#facc15]/5 transition-all duration-300 active:scale-[0.98]",onClick:()=>o("matches",{category:"AUTOMATIC"}),id:"home-matches-automatic",children:[c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"w-16 h-16 rounded-xl bg-[#1e293b]/50 border border-slate-700/50 flex items-center justify-center p-2.5 shrink-0 shadow-inner group-hover:scale-105 transition-transform relative",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-tr from-purple-500/20 to-transparent rounded-xl"}),c.jsx("div",{className:"relative w-full h-full flex items-center justify-center",children:c.jsx(gx,{className:"w-8 h-8 text-indigo-400 stroke-[1.5]"})})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-slate-100 font-extrabold text-base tracking-tight group-hover:text-yellow-400 transition-colors",children:"Ludo Matches"}),c.jsx("p",{className:"text-slate-400 text-xs uppercase font-bold tracking-widest mt-0.5 font-mono",children:"AUTOMATIC MATCHMAKER"}),c.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[c.jsxs("span",{className:"text-[10px] text-indigo-400 bg-indigo-400/10 px-2 py-0.5 rounded font-bold font-mono",children:[B||1," AUTO Matches"]}),c.jsx("span",{className:"text-[10px] text-slate-400 font-bold",children:"Entry from: ৳ 500"})]})]})]}),c.jsx("div",{className:"absolute -right-6 -bottom-6 w-24 h-24 bg-purple-500/10 rounded-full blur-xl"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 pt-2",children:[c.jsxs("div",{className:"bg-[#131b2e] border border-slate-800 p-4 rounded-xl cursor-pointer hover:bg-slate-800/50 active:scale-95 transition-all",onClick:()=>o("leaderboard"),children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-yellow-500/10 flex items-center justify-center mb-2",children:c.jsx(vi,{className:"w-5 h-5 text-yellow-500"})}),c.jsx("span",{className:"text-xs text-slate-400 font-medium block",children:"Leaderboard"}),c.jsx("span",{className:"text-white text-sm font-black mt-1 block",children:"রবিন ১ লাখ+ আয় 🏆"})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-800 p-4 rounded-xl cursor-pointer hover:bg-slate-800/50 active:scale-95 transition-all",onClick:()=>o("refer-earn"),children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/10 flex items-center justify-center mb-2",children:c.jsx(Jd,{className:"w-5 h-5 text-emerald-500"})}),c.jsx("span",{className:"text-xs text-slate-400 font-medium block",children:"Refer & Earn"}),c.jsx("span",{className:"text-white text-sm font-black mt-1 block",children:"১% লাইফটাইম কমিশন 💸"})]})]}),d&&c.jsx("div",{className:"fixed inset-0 bg-slate-950/90 z-50 flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-[#131b2e] w-full max-w-lg rounded-2xl border border-slate-800 p-6 space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h4",{className:"text-yellow-400 font-bold text-lg",children:"কিভাবে Ludo Master খেলবেন?"}),c.jsx("button",{className:"p-1 rounded-full bg-slate-800 text-slate-400 hover:text-slate-100",onClick:()=>M(!1),children:c.jsx($d,{className:"w-5 h-5"})})]}),c.jsxs("div",{className:"aspect-video bg-neutral-950 rounded-xl relative overflow-hidden border border-slate-800 flex flex-col items-center justify-center p-4 text-center",children:[c.jsx(Vd,{className:"w-16 h-16 text-red-500 animate-pulse mb-3"}),c.jsx("p",{className:"text-white text-sm font-bold",children:"Ludo Master Tutorial - Bengali Video"}),c.jsx("p",{className:"text-slate-500 text-[10px] max-w-xs mt-1",children:"(এই ডেমো ভিডিওটি আপনাকে বোঝায় কিভাবে টাকা ডিপোজিট করবেন, ম্যাচ জয়েন করবেন এবং উইনিং ব্যালেন্স তুলবেন)"}),c.jsx("button",{className:"mt-4 bg-red-600 hover:bg-red-700 text-white font-bold text-xs py-2 px-5 rounded-full transition-all",onClick:()=>{alert(`১. প্রথমে ওয়ালেট পেজে যান এবং '+ DEPOSIT' বাটনে ক্লিক করে টাকা এড করুন।
২. 'Ludo Matches' কার্ট সিলেক্ট করুন এবং আপনার পছন্দের ম্যাচে 'JOIN' করুন।
৩. ম্যাচ শুরুর ২ মিনিটে রুম আইডি দেওয়া হবে।
৪. রুম কোড দিয়ে Ludo King গেমে যোগ দিন।
৫. জিতলে স্ক্রিনশট উইন প্রমাণের জন্য 'Upload Evidence' করুন।`),M(!1)},children:"টিউটোরিয়াল শেষ করুন"})]}),c.jsxs("div",{className:"text-slate-300 text-xs leading-relaxed space-y-1",children:[c.jsx("p",{children:'• ম্যাচ শুরু হওয়ার ২ মিনিট পূর্বে আমাদের অ্যাপের ম্যাচ পেজে "Room Code" দেওয়া হবে।'}),c.jsxs("p",{children:["• সেটি কপি করে Ludo King অ্যাপের ",'"Play With Friends" -> "Join"',"-এ পেস্ট করুন।"]}),c.jsx("p",{children:"• খেলা শেষ হলে বিজয় স্ক্রিনশট প্রমানসহ অবশ্যই আপলোড করবেন ফাস্ট প্রাইজ পাওয়ার জন্য!"})]})]})})]})},Wx=()=>{const{user:o,pushView:T,adminResetMatches:A}=Je(),d=()=>{if(navigator.share)navigator.share({title:"Ludo Master BD",text:`Hey, use my Referral Code: ${o.referralCode} to play Ludo tourneys & make earnings!`,url:window.location.href}).catch(()=>{});else{const M=`Ludo Master BD গেম খেলুন এবং জিতে টাকা আয় করুন! আমার রেফারেল কোড: ${o.referralCode}`;navigator.clipboard.writeText(M),alert(`শেয়ার লিঙ্ক কপি করা হয়েছে! বন্ধুদের সাথে শেয়ার করুন:

${M}`)}};return c.jsxs("div",{className:"space-y-6 pb-28 pt-2",children:[c.jsxs("div",{className:"flex items-center justify-between bg-slate-900 border border-slate-800 p-5 rounded-2xl shadow-lg relative overflow-hidden",children:[c.jsxs("div",{className:"space-y-1.5 relative z-10",children:[c.jsxs("p",{className:"text-[10px] text-yellow-400 font-extrabold uppercase font-mono tracking-widest",children:["UID: #",o.uid]}),c.jsxs("h2",{className:"text-[#f8fafc] text-xl font-black tracking-tight flex items-center gap-1.5",children:["Hi, ",o.name,c.jsx("span",{className:"inline-block animate-bounce text-base",children:"👑"})]}),c.jsx("p",{className:"text-[#94a3b8] text-xs font-bold leading-none",children:o.phone}),c.jsx("p",{className:"text-[#94a3b8]/80 text-[11px] font-medium leading-none",children:o.email})]}),c.jsxs("div",{className:"w-16 h-16 rounded-full bg-slate-800 border-2 border-slate-700/80 flex items-center justify-center relative shadow-lg",children:[c.jsx(ji,{className:"w-9 h-9 text-slate-400"}),c.jsx("div",{className:"absolute -bottom-1 -right-1 bg-green-500 w-4 h-4 rounded-full border-2 border-slate-900"})]}),c.jsx("div",{className:"absolute right-0 bottom-0 w-32 h-32 bg-yellow-500/5 rounded-full blur-2xl"})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-800 p-5 rounded-2xl shadow-lg text-center space-y-4",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-[11px] text-slate-400 font-bold uppercase tracking-widest block font-mono",children:"AVAILABLE BALANCE"}),c.jsxs("div",{className:"flex items-center justify-center gap-2 mt-1",children:[c.jsx("span",{className:"text-yellow-400 font-extrabold text-lg",children:"BDT"}),c.jsx("span",{className:"text-white font-black text-3xl",children:o.balance+o.winningBalance}),c.jsx("button",{onClick:()=>T("wallet"),className:"p-1 text-emerald-400 hover:text-emerald-300 transition-colors",title:"Add Balance",children:c.jsx(ex,{className:"w-6 h-6 stroke-[2.5]"})})]})]}),c.jsx("div",{className:"w-full h-px bg-slate-800/80"}),c.jsxs("div",{className:"flex items-center justify-between text-xs px-2",children:[c.jsx("span",{className:"text-slate-400 font-semibold uppercase",children:"Winning Balance:"}),c.jsxs("span",{className:"bg-yellow-400/15 border border-yellow-400/25 text-[#facc15] font-black text-xs px-3.5 py-1 rounded-full font-mono",children:["BDT ",o.winningBalance]})]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center bg-slate-900 border border-slate-850 p-4 rounded-xl shadow-inner",children:[c.jsxs("div",{className:"space-y-0.5",children:[c.jsx("span",{className:"text-yellow-400 font-black text-xl font-mono block leading-none",children:o.matchesPlayed}),c.jsx("span",{className:"text-[9px] text-[#94a3b8] font-bold uppercase tracking-wider block leading-none",children:"MATCH WORKED"})]}),c.jsxs("div",{className:"border-x border-slate-800/80 space-y-0.5",children:[c.jsx("span",{className:"text-emerald-400 font-black text-xl font-mono block leading-none",children:o.referralsCount}),c.jsx("span",{className:"text-[9px] text-[#94a3b8] font-bold uppercase tracking-wider block leading-none",children:"TOTAL REFER"})]}),c.jsxs("div",{className:"space-y-0.5",children:[c.jsxs("span",{className:"text-blue-400 font-black text-xl font-mono block leading-none",children:["৳ ",o.totalEarnings]}),c.jsx("span",{className:"text-[9px] text-[#94a3b8] font-bold uppercase tracking-wider block leading-none",children:"TOTAL WINNING"})]})]}),c.jsxs("div",{className:"space-y-2 border-t border-slate-800/60 pt-4",children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-black tracking-widest uppercase block mb-3 font-mono",children:"ACCOUNT"}),c.jsxs("div",{onClick:()=>T("edit-profile"),className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-yellow-400/10 flex items-center justify-center",children:c.jsx(Lx,{className:"w-5 h-5 text-[#facc15]"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight",children:"Edit Profile"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsxs("div",{onClick:()=>T("wallet"),className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-emerald-500/10 flex items-center justify-center",children:c.jsx(Vx,{className:"w-5 h-5 text-emerald-400"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight",children:"My Wallet"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsxs("div",{onClick:()=>T("refer-earn"),className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-orange-500/10 flex items-center justify-center",children:c.jsx(Jd,{className:"w-5 h-5 text-orange-400"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight",children:"Refer & Earn"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsx("span",{className:"text-[10px] text-slate-400 font-black tracking-widest uppercase block pt-4 mb-3 font-mono",children:"ABOUT PLATFORM"}),c.jsxs("div",{onClick:()=>T("leaderboard"),className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-cyan-400/10 flex items-center justify-center",children:c.jsx(vi,{className:"w-5 h-5 text-cyan-400"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight",children:"Top Players"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsxs("div",{onClick:()=>T("terms-conditions"),className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-purple-500/10 flex items-center justify-center",children:c.jsx(ix,{className:"w-5 h-5 text-purple-400"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight",children:"Terms and Conditions"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsxs("div",{onClick:()=>T("developer-panel"),className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-sky-500/10 flex items-center justify-center animate-pulse",children:c.jsx(Ni,{className:"w-5 h-5 text-sky-400"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight text-sky-400",children:"Developer Profile & Admin Panel"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsxs("div",{onClick:d,className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-[#3b82f6]/10 flex items-center justify-center",children:c.jsx(Kd,{className:"w-5 h-5 text-[#3b82f6]"})}),c.jsx("span",{className:"text-white font-bold text-sm tracking-tight",children:"Share App"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]}),c.jsxs("div",{onClick:()=>{window.confirm("আপনি কি অ্যাকাউন্ট ডেটা রিসেট করতে চান? আপনার মূল ব্যালেন্স পুনরায় ১৫৫০ টাকা হয়ে যাবে।")&&(A(),alert("অ্যাকাউন্টের ব্যালেন্স ও ম্যাচ ডেটা সফলভাবে রিসেট করা হয়েছে!"))},className:"flex items-center justify-between p-4 bg-slate-900 border border-slate-850 hover:bg-red-950/20 rounded-xl cursor-pointer transition-all active:scale-[0.99]",children:[c.jsxs("div",{className:"flex items-center gap-3.5",children:[c.jsx("div",{className:"w-9 h-9 rounded-lg bg-red-500/10 flex items-center justify-center",children:c.jsx(vx,{className:"w-5 h-5 text-red-500"})}),c.jsx("span",{className:"text-red-400 font-bold text-sm tracking-tight",children:"Reset Data / Logout"})]}),c.jsx(Al,{className:"w-5 h-5 text-slate-500"})]})]}),c.jsx("p",{className:"text-center text-slate-600 text-xs font-bold font-mono py-2",children:"Version 1.0.2 • Made with ❤️ for Rahul"})]})},Fx=()=>{const{matches:o,user:T,pushView:A,popView:d,viewPayload:M}=Je(),[_,Y]=X.useState(()=>M&&M.category?M.category:"ALL"),[B,z]=X.useState("ALL"),j=o.filter(w=>_==="MY"?w.userJoinedName!==void 0:_!=="ALL"&&w.category!==_||B==="SMALL"&&w.entryFee>=500?!1:!(B==="BIG"&&w.entryFee<500)),D=w=>{w.status==="CLOSED"||w.status==="COMPLETED"||(w.userJoinedName?w.status==="FULL"?A("evidence",{matchId:w.id}):alert("আপনার এন্ট্রি নিশ্চিত করা হয়েছে! আরও খেলোয়াড় জয়েন করার জন্য অপেক্ষা করুন। রুম আইডি খেলা শুরুর পূর্বে দেওয়া হবে।"):A("match-detail",{matchId:w.id}))};return c.jsxs("div",{className:"space-y-5 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:d,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",id:"matches-back-btn",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Ludo Matches"}),c.jsxs("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:[_," Tournaments"]})]})]}),c.jsx("div",{className:"grid grid-cols-4 gap-1.5 bg-slate-900/100 p-1 rounded-xl border border-slate-800",children:["ALL","MY","SPECIAL","REGULAR"].map(w=>c.jsx("button",{onClick:()=>Y(w),className:`py-2 text-[10px] font-black tracking-widest text-center uppercase rounded-lg transition-all ${_===w?"bg-gradient-to-r from-amber-500 to-yellow-400 text-slate-950 font-extrabold shadow-md":"text-slate-400 hover:text-slate-100"}`,children:w},w))}),c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-black tracking-widest uppercase font-mono",children:"BET RANGE FILTER:"}),c.jsx("div",{className:"flex gap-2",children:["ALL","SMALL","BIG"].map(w=>c.jsx("button",{onClick:()=>z(w),className:`px-3 py-1 text-[9px] font-black tracking-wider uppercase rounded-full border transition-all ${B===w?"bg-slate-100/100 text-slate-950 border-white":"text-slate-400 hover:text-slate-100 border-slate-800 bg-slate-950/40"}`,children:w},w))})]}),c.jsx("div",{className:"space-y-4",children:j.length===0?c.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-10 flex flex-col items-center justify-center text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-slate-800 flex items-center justify-center mb-4",children:c.jsx(gi,{className:"w-8 h-8 text-rose-400 animate-pulse"})}),c.jsx("h4",{className:"text-white font-bold text-base",children:"No matches matches available!"}),c.jsx("p",{className:"text-[#94a3b8] text-xs max-w-xs mt-1",children:_==="MY"?"আপনি এখনও কোনো ম্যাচে অংশ নেননি। হোম স্ক্রিন থেকে যেকোনো ম্যাচে যুক্ত হন!":"দয়া করে চেক ব্যাক করুন, কিছুক্ষণের মধ্যেই নতুন ম্যাচ প্রকাশিত হবে!"})]}):j.map(w=>{const L=!!w.userJoinedName,ie=Math.min(100,w.playersJoined/w.totalPlayersNeeded*100);return c.jsxs("div",{className:`relative overflow-hidden bg-slate-900 border rounded-2xl p-5 shadow-lg space-y-4 transition-all hover:border-slate-700 ${L?"border-indigo-500/40":"border-slate-800"}`,id:`match-card-${w.id}`,children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("h4",{className:"text-white font-extrabold text-base tracking-tight leading-tight",children:w.title}),c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400 font-bold",children:[c.jsx(gi,{className:"w-3.5 h-3.5 text-yellow-400"}),c.jsx("span",{children:w.time})]})]}),c.jsxs("div",{className:"flex flex-col items-end gap-1.5 shrink-0",children:[c.jsxs("span",{className:"text-[9px] bg-slate-800 border border-slate-700 text-yellow-400 font-black tracking-wider uppercase px-2.5 py-0.5 rounded-full font-mono",children:["Game: ",w.gameName]}),c.jsx("span",{className:"text-[9px] bg-blue-500/10 text-cyan-400 font-black tracking-wider uppercase px-2.5 py-0.5 rounded-full font-mono",children:"Type: CLASSIC"})]})]}),c.jsx("div",{className:"bg-[#b91c1c]/10 border border-red-700/20 text-red-400 rounded-lg p-2 text-[10px] font-bold text-center",children:"সিট ফুল হলে রুম আইডি দেওয়া হবে"}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 bg-slate-950/60 rounded-xl p-3 text-center border border-slate-800/60",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block uppercase tracking-widest font-mono",children:"WINNING PRIZE"}),c.jsx("span",{className:"text-[#facc15] font-black text-2xl tracking-tight",children:w.winningPrize})]}),c.jsxs("div",{className:"border-l border-slate-800/80",children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block uppercase tracking-widest font-mono",children:"ENTRY FEE"}),c.jsx("span",{className:"text-white font-black text-2xl tracking-tight",children:w.entryFee})]})]}),c.jsxs("div",{className:"space-y-1.5",children:[c.jsxs("div",{className:"flex items-center justify-between text-[11px] font-bold text-slate-400 uppercase",children:[c.jsxs("span",{children:[w.totalPlayersNeeded-w.playersJoined," Players Need"]}),c.jsxs("span",{className:"text-white",children:[w.playersJoined,"/",w.totalPlayersNeeded]})]}),c.jsx("div",{className:"w-full h-2 bg-slate-950 rounded-full overflow-hidden",children:c.jsx("div",{className:"bg-gradient-to-r from-red-500 to-rose-600 h-full rounded-full transition-all duration-500",style:{width:`${ie}%`}})})]}),L&&w.status==="FULL"&&c.jsxs("div",{className:"bg-emerald-500/10 border border-emerald-500/20 rounded-xl p-3.5 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold uppercase block leading-none mb-1 font-mono",children:"Ludo Room Code:"}),c.jsx("span",{className:"text-white font-mono font-black text-base tracking-wider select-all",children:w.roomCode||"ROOM_412554"})]}),c.jsx("button",{className:"bg-emerald-500 py-1 px-3 rounded-lg text-slate-950 font-bold text-xs",onClick:()=>{navigator.clipboard.writeText(w.roomCode||"ROOM_412554"),alert("রুম কোড কপি করা হয়েছে! Ludo King-এ গিয়ে জয়েন করুন।")},children:"কপি করুন"})]}),c.jsx("div",{className:"pt-1",children:w.status==="CLOSED"||w.status==="COMPLETED"?c.jsx("button",{className:"w-full bg-[#1e293b] text-slate-500 border border-slate-800 font-black tracking-widest uppercase text-xs py-3 rounded-xl cursor-not-allowed",children:w.status==="COMPLETED"?"COMPLETED":"CLOSED"}):L?w.status==="FULL"?c.jsxs("button",{onClick:()=>D(w),className:"w-full bg-gradient-to-r from-emerald-500 to-green-600 hover:from-emerald-600 hover:to-green-700 text-slate-950 font-black tracking-widest uppercase text-xs py-3 rounded-xl flex items-center justify-center gap-2 shadow-lg",children:[c.jsx(Bx,{className:"w-4 h-4 text-slate-950 stroke-[3]"}),"UPLOAD EVIDENCE / SUBMIT WIN"]}):c.jsx("button",{className:"w-full bg-indigo-600 text-white font-black tracking-widest uppercase text-xs py-3 rounded-xl border border-indigo-500 shadow-md",children:"✓ JOINED (WAITING FOR COMPANIONS)"}):c.jsx("button",{onClick:()=>D(w),className:"w-full bg-gradient-to-r from-[#22c55e] to-[#16a34a] hover:from-[#18a248] hover:to-[#128a3c] text-white font-black tracking-widest uppercase text-xs py-3 rounded-xl cursor-pointer shadow-lg active:scale-[0.98] transition-transform text-center block",children:"JOIN MATCH"})})]},w.id)})})]})},Ix=()=>{const{matches:o,viewPayload:T,joinMatch:A,popView:d,user:M}=Je(),[_,Y]=X.useState(M.name),[B,z]=X.useState(""),j=T==null?void 0:T.matchId,D=o.find(L=>L.id===j);if(!D)return c.jsxs("div",{className:"p-4 text-center",children:[c.jsx("p",{className:"text-red-400",children:"ম্যাচ ডেটা খুজে পাওয়া যায়নি!"}),c.jsx("button",{onClick:d,className:"mt-4 bg-slate-800 text-white rounded px-4 py-2",children:"ফিরে যান"})]});const w=async()=>{if(!_.trim()){z("অনুগ্রহ করে গেমের নামটি ইনপুট করুন!");return}if(M.balance<D.entryFee){z("আপনার ব্যালেন্স অপর্যাপ্ত! দয়া করে ওয়ালেট থেকে রিচার্জ করুন।");return}const L=await A(D.id,_);L.success?(alert(`অভিনন্দন! আপনি সফলভাবে "${D.title}" এ জয়েন করেছেন।

রুম আইডি ম্যাচ শুরুর ঠিক ২ মিনিট আগে প্রদান করা হবে।`),d()):z(L.error||"একটি ত্রুটি ঘটেছে!")};return c.jsxs("div",{className:"space-y-5 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:d,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Join a Match"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Rules & Regulations"})]})]}),c.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-[#1e293b] to-[#0f172a] border border-slate-800 p-5 shadow-lg flex flex-col justify-between space-y-4",children:[c.jsxs("div",{className:"flex justify-between items-start",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("h3",{className:"text-white font-extrabold text-lg",children:D.title}),c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400 font-bold",children:[c.jsx(gi,{className:"w-4 h-4 text-yellow-400"}),c.jsx("span",{children:D.time})]})]}),c.jsxs("div",{className:"flex flex-col items-end gap-1 shrink-0",children:[c.jsxs("span",{className:"text-[9px] bg-slate-800 text-yellow-400 font-black px-2 py-0.5 rounded-full font-mono",children:["GAME: ",D.gameName]}),c.jsx("span",{className:"text-[9px] bg-cyan-500/10 text-cyan-400 font-black px-2 py-0.5 rounded-full font-mono",children:"TYPE: CLASSIC"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 bg-slate-950/60 rounded-xl p-3 text-center border border-slate-800/60",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block uppercase tracking-widest leading-none mb-1",children:"WINNING PRIZE"}),c.jsxs("span",{className:"text-[#facc15] font-black text-2xl",children:["৳ ",D.winningPrize]})]}),c.jsxs("div",{className:"border-l border-slate-800/80",children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block uppercase tracking-widest leading-none mb-1",children:"ENTRY FEE"}),c.jsxs("span",{className:"text-white font-black text-2xl",children:["৳ ",D.entryFee]})]})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-4 rounded-xl space-y-3 shadow-inner",children:[c.jsx("label",{className:"text-[11px] text-yellow-400 font-black uppercase tracking-wider block font-mono",children:"Ludo King In-Game Name / প্লেয়ার নেম"}),c.jsx("div",{className:"relative",children:c.jsx("input",{type:"text",value:_,onChange:L=>{Y(L.target.value),z("")},placeholder:"Rahul",className:"w-full bg-[#0a0f1d] border border-slate-700/80 rounded-xl px-4 py-3 text-white font-bold tracking-wide focus:outline-none focus:border-yellow-400 placeholder-slate-600 shadow-inner"})}),c.jsx("p",{className:"text-[11px] text-slate-400 font-semibold block leading-tight",children:"ℹ️ Use same name you will use in Ludo King (অবশ্যই লূডু কিং গেমের আসল নামটি টাইপ করুন, নাহলে ব্যালেন্স বাজেয়াপ্ত করা হবে)।"})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-5 rounded-2xl space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 pb-2",children:[c.jsx("h4",{className:"text-white font-black text-xs uppercase tracking-widest font-mono",children:"RULES & REGULATION"}),c.jsxs("button",{type:"button",className:"flex items-center gap-1 text-[10px] text-red-400 font-black tracking-wider uppercase bg-red-400/10 px-2.5 py-1 rounded",onClick:()=>alert("নিয়মাবলী ১. জয়ী হয়ে স্ক্রিনশট আপলোড দিন। ২. টিম-আপ নিষিদ্ধ। ৩. ভুল ফলাফল সাবমিট করলে একাউন্ট আজীবনের জন্য ব্যান।"),children:[c.jsx(Vd,{className:"w-4 h-4 text-red-500 stroke-[3]"}),"WATCH VIDEO"]})]}),c.jsxs("div",{className:"space-y-3.5 text-slate-300 text-xs font-semibold leading-relaxed",children:[c.jsx("p",{children:"১. আপনার মোবাইলে অবশ্যই Ludo King গেমটি থাকতে হবে।"}),c.jsx("p",{children:"২. Room ID ম্যাচ শুরু হওয়ার ২-৩ মিনিট আগে প্রদান করা হবে।"}),c.jsx("p",{children:"৩. Room ID অন্য কারো সাথে শেয়ার করবেন না। শেয়ার করলে আপনার অ্যাকাউন্ট ব্লক করা হবে। আপনি অবশ্যই নির্ধারিত সময়ে Room ID ব্যবহার করে ম্যাচে যোগ দিতে হবে।"}),c.jsx("p",{children:"৪. নির্দিষ্ট সময়ে ম্যাচে যোগ না দিলে, ম্যাচ আপনার ছাড়াই শুরু হবে এবং এর জন্য কোনো রিফান্ড বা ক্ষতিপূরণ দেওয়া হবে না।"}),c.jsx("p",{children:"৫. ম্যাচ চলাকালীন সময়ে কোনো Player এর সাথে team up করা নিষিদ্ধ। এরূপ আচরণ দেখা গেলে আপনাকে ম্যাচ থেকে বাদ দেওয়া হবে এবং আপনার অ্যাকাউন্ট স্থায়ীভাবে ব্লক করা হবে।"}),c.jsx("p",{children:"৬. ম্যাচের ফলাফল এবং বিজয়ীর পুরস্কার ম্যাচ শেষ হওয়ার ২৪ মিনিটের মধ্যে প্রদান করা হবে, যদি কোনো সার্ভার সমস্যার সম্মুখীন না হয়।"})]})]}),B&&c.jsxs("div",{className:"bg-rose-500/10 border border-rose-500/20 text-rose-400 text-xs font-bold rounded-lg p-3 text-center",children:["⚠️ ",B]}),c.jsx("div",{className:"pt-2",children:c.jsxs("button",{onClick:w,className:"w-full bg-[#facc15] hover:bg-yellow-500 text-[#0f172a] font-extrabold tracking-widest uppercase text-sm py-4 rounded-xl shadow-lg active:scale-[0.98] transition-transform text-center block",id:"btn-match-join-submit",children:["JOIN FOR ৳ ",D.entryFee]})})]})},Px=()=>{const{matches:o,viewPayload:T,submitEvidenceUpload:A,popView:d}=Je(),[M,_]=X.useState(""),[Y,B]=X.useState(null),[z,j]=X.useState(!1),D=T==null?void 0:T.matchId,w=o.find(k=>k.id===D);Sm.useEffect(()=>{w&&w.roomCode&&_(w.roomCode)},[w]);const L=()=>{B("MOCK_SCREENSHOT_WINNER_SUCCESS_LUDOMASTER")},ie=async()=>{try{const k=await navigator.clipboard.readText();k&&_(k)}catch{w&&w.roomCode?_(w.roomCode):alert("ক্লিপবোর্ড অ্যাক্সেস করতে অনুগ্রহ করে টাইপ করে লিখুন বা উপরে দেওয়া কোড কপি করুন।")}},oe=async k=>{if(k.preventDefault(),!Y){alert("দয়া করে আপনার বিজয়ী ম্যাচের স্ক্রিনশট প্রমাণটি সিলেক্ট করুন!");return}if(!M.trim()){alert("অনুগ্রহ করে রুম কোডটি ইনপুট করুন!");return}w&&(j(!0),await A(w.id,M,Y),j(!1),alert(`ধন্যবাদ! আপনার বিজয়ী প্রমাণ সফলভাবে গৃহীত হয়েছে।
রুম কোড: ${M}

আপনার ট্রানজেকশনে প্রাইজ মানি ৳ ${w.winningPrize} টাকা যোগ করে দেওয়া হয়েছে। এটি চেক করতে ওয়ালেট স্টেটমেন্ট দেখুন!`),d())};return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:d,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Upload Evidence"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Prove Match Winnings"})]})]}),c.jsxs("form",{onSubmit:oe,className:"space-y-5",children:[c.jsx("div",{onClick:L,className:`h-48 border-2 border-dashed rounded-2xl flex flex-col items-center justify-center p-6 text-center cursor-pointer transition-all ${Y?"border-emerald-500 bg-emerald-500/5":"border-slate-700 bg-slate-900/60 hover:bg-slate-850"}`,id:"evidence-upload-zone",children:Y?c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-emerald-500/10 flex items-center justify-center mx-auto text-emerald-400 border border-emerald-500",children:c.jsx(Bd,{className:"w-9 h-9 stroke-[2.5]"})}),c.jsx("p",{className:"text-emerald-400 font-extrabold text-sm font-sans uppercase",children:"Mock Winner Screen Loaded ✓"}),c.jsx("span",{className:"text-slate-500 text-[10px] block",children:"Click to reload or change screenshot"})]}):c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"w-16 h-12 rounded-lg border-2 border-slate-700 relative flex items-center justify-center mx-auto",children:[c.jsx("div",{className:"w-5 h-5 rounded-full border border-slate-600 flex items-center justify-center",children:c.jsx("div",{className:"w-2.5 h-2.5 bg-slate-500 rounded-full"})}),c.jsx("div",{className:"absolute -top-2.5 right-2 bg-slate-800 border border-slate-700 w-4 h-1.5 rounded"})]}),c.jsx("p",{className:"text-slate-300 font-black text-sm uppercase tracking-wider font-mono",children:"CLICK HERE TO UPLOAD IMAGE"}),c.jsx("p",{className:"text-slate-500 text-[10px] max-w-xs leading-normal",children:"খেলা শেষ হওয়ার পর বিজয়ী স্ক্রিনের একটি স্ক্রিনশট নিন এবং এখানে ক্লিক করে তা যুক্ত করুন।"})]})}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[10px] text-slate-400 font-black tracking-widest uppercase block font-mono",children:"Room Code:"}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{type:"text",value:M,onChange:k=>_(k.target.value),placeholder:"e.g. ROOM_412554",required:!0,className:"w-full bg-[#131b2e] border border-slate-705/80 text-white font-mono font-bold tracking-widest rounded-xl pl-4 pr-12 py-3.5 focus:outline-none focus:border-green-500 uppercase placeholder-slate-600"}),c.jsx("button",{type:"button",onClick:ie,className:"absolute right-3.5 top-3 text-slate-400 hover:text-white p-1",title:"Paste from clipboard",children:c.jsx(Qd,{className:"w-5 h-5 stroke-[2.5]"})})]})]}),c.jsx("button",{type:"submit",disabled:z,className:"w-full bg-[#22c55e] hover:bg-green-600 border border-green-550/30 text-white font-extrabold tracking-widest uppercase text-sm py-4 rounded-xl shadow-lg active:scale-95 transition-all flex items-center justify-center gap-2",children:z?c.jsx("span",{children:"SUBMITTING EVIDENCE..."}):c.jsxs(c.Fragment,{children:[c.jsx(Bd,{className:"w-5 h-5 stroke-[2.5]"}),"SUBMIT EVIDENCE"]})})]}),c.jsxs("div",{className:"bg-[#1e1b4b]/20 border border-indigo-900/30 rounded-2xl p-5 space-y-3.5 text-xs font-semibold text-slate-300 leading-normal",children:[c.jsxs("p",{className:"text-rose-400 flex items-center gap-1.5 font-bold border-b border-rose-950 pb-1.5 uppercase font-mono",children:[c.jsx(Ux,{className:"w-4 h-4 text-rose-400 animate-bounce"}),"খুবই গুরুত্বপূর্ণ সতর্কতা"]}),c.jsx("p",{children:"• স্ক্রিনশট আপলোড না করলে আপনি বিজয়ী প্রাইজ পাবেন না।"}),c.jsx("p",{children:"• উলটা পালটা ছবি/ফেইক স্ক্রিনশট আপলোড করলে আপনাকে অ্যাপ থেকে চিরকালের জন্য অ্যাকাউন্ট ব্যান করে দেওয়া হবে।"}),c.jsx("p",{children:"• স্ক্রিনশট আপলোড করার পরও কোনো কারণে বিজয়ী পুরষ্কার প্রাইজ ওয়ালেটে যোগ না পেলে দয়া করে সরাসরি আমাদের লাইভ চ্যাট সাপোর্টে জানাতে ভুলবেন না।"})]})]})},e1=()=>{const{user:o,transactions:T,pushView:A,popView:d,sendGiftFunds:M,depositFunds:_}=Je(),[Y,B]=X.useState(!1),[z,j]=X.useState("bKash"),[D,w]=X.useState("500"),[L,ie]=X.useState(""),[oe,k]=X.useState(""),[Se,ye]=X.useState(!1),[me,we]=X.useState(""),[ke,$e]=X.useState(""),[Re,Z]=X.useState(""),Be={bKash:"01880541682 (Merchant Pay)",Nagad:"01974054168 (Send Money)",Rocket:"01714054168-4 (Send Money)"},Ie=W=>{if(W.preventDefault(),!D||isNaN(Number(D))||Number(D)<=0){alert("সঠিক টাকা পরিমাণ ইনপুট করুন!");return}if(!L||L.length<11){alert("সঠিক ১১ ডিজিটের ওয়ালেট নম্বর ইনপুট করুন!");return}if(!oe||oe.length<6){alert("অনুগ্রহ করে পেমেন্ট ট্রানজেকশন ট্র্যাকিং TrxID টি প্রদান করুন!");return}_(z,Number(D),L,oe),alert(`ডিপোজিট রিকোয়েস্ট সফলভাবে জমা দেওয়া হয়েছে!

পেমেন্ট চ্যানেল: ${z}
টাকা: ৳ ${D}

আপনার কন্ট্রিবিউশনটি ভেরিফাই হতে সাধারণত ২-১০ মিনিট সময় লাগবে। ডেমো সংস্করণে এটি ১২ সেকেন্ডের মধ্যে অটোমেটিকালি এপ্রুভ হয়ে যাবে!`),B(!1),ie(""),k("")},Ct=async W=>{W.preventDefault(),Z("");const ve=Number(ke);if(!me||me.length<11){Z("১১ ডিজিটের সঠিক মোবাইল নম্বর দিন!");return}if(!ke||isNaN(ve)||ve<=10){Z("৳ ১০ এর বেশি টাকা স্থানান্তর করুন!");return}if(o.balance<ve){Z("আপনার মূল ব্যালেন্স অপর্যাপ্ত!");return}const pt=await M(me,ve);pt.success?(alert(`গিফট ট্রান্সফার সফল হয়েছে!
৳ ${ve} টাকা পাঠানো হয়েছে নম্বরে: ${me}`),$e(""),we(""),ye(!1)):Z(pt.error||"একটি ত্রুটি ঘটেছে!")};return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:d,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Wallet"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Balance Details"})]})]}),c.jsxs("div",{className:"bg-slate-900 border border-slate-800 rounded-2xl p-5 shadow-2xl relative overflow-hidden space-y-4",children:[c.jsxs("div",{className:"text-center",children:[c.jsx("span",{className:"text-[10px] text-slate-400 font-bold uppercase tracking-widest block font-mono leading-none mb-1",children:"AVAILABLE BALANCE"}),c.jsxs("span",{className:"text-white font-extrabold text-4xl block tracking-tight",children:["৳ ",o.balance+o.winningBalance]}),c.jsxs("div",{className:"mt-2.5 inline-block bg-slate-950/80 border border-slate-800 rounded-full px-4 py-1",children:[c.jsx("span",{className:"text-xs text-slate-400 font-bold",children:"Winning Balance: "}),c.jsxs("span",{className:"text-[#facc15] font-black font-mono text-xs",children:["৳ ",o.winningBalance]})]})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-2 pt-2 text-center",children:[c.jsxs("button",{onClick:()=>{B(!Y),ye(!1)},className:"bg-green-600 hover:bg-green-700 text-white font-extrabold text-xs py-3.5 px-1 rounded-xl shadow-lg border border-green-500/30 flex items-center justify-center gap-1.5 transition-transform active:scale-95",id:"btn-wallet-deposit",children:[c.jsx(Mx,{className:"w-4 h-4 stroke-[3]"}),"DEPOSIT"]}),c.jsxs("button",{onClick:()=>A("withdraw"),className:"bg-[#dc2626] hover:bg-red-700 text-white font-extrabold text-xs py-3.5 px-1 rounded-xl shadow-lg border border-red-500/30 flex items-center justify-center gap-1.5 transition-transform active:scale-95",id:"btn-wallet-withdraw",children:[c.jsx(bx,{className:"w-4 h-4"}),"WITHDRAW"]}),c.jsxs("button",{onClick:()=>{ye(!Se),B(!1)},className:"bg-[#2563eb] hover:bg-blue-700 text-white font-extrabold text-xs py-3.5 px-1 rounded-xl shadow-lg border border-blue-500/30 flex items-center justify-center gap-1.5 transition-transform active:scale-95",id:"btn-wallet-gift",children:[c.jsx(Zd,{className:"w-4 h-4"}),"GIFT"]})]})]}),Y&&c.jsxs("form",{onSubmit:Ie,className:"bg-[#131b2e] border-2 border-green-500/30 p-5 rounded-2xl space-y-4 shadow-xl",children:[c.jsx("h4",{className:"text-green-400 font-black text-sm uppercase tracking-wider border-b border-slate-800 pb-2",children:"Add Money / ডিপোজিট করুন"}),c.jsx("div",{className:"grid grid-cols-3 gap-2 text-center",children:["bKash","Nagad","Rocket"].map(W=>c.jsx("div",{onClick:()=>j(W),className:`p-2.5 rounded-xl border-2 cursor-pointer transition-all ${z===W?"border-green-500 bg-green-500/5 text-white font-bold":"border-slate-800 text-slate-400"}`,children:c.jsx("span",{className:"text-xs block font-bold",children:W})},W))}),c.jsxs("div",{className:"bg-slate-950 p-3 rounded-xl border border-slate-800/80 text-xs",children:[c.jsx("span",{className:"text-slate-400 block font-bold leading-tight uppercase font-mono",children:"মরচেন্ট / সেন্ড মানি নম্বর:"}),c.jsx("span",{className:"text-[#facc15] font-black text-sm select-all tracking-wide block mt-1",children:Be[z]}),c.jsx("p",{className:"text-slate-500 mt-1.5 text-[10px] leading-tight font-sans",children:"💡 প্রথমে এই নম্বরটি লক্ষ্য করুন। আপনার ওয়ালেট অ্যাপ (bkash/nagad) থেকে টাকা পরিশোধ করে নিচে ট্রানজেকশন সাবমিট করুন।"})]}),c.jsxs("div",{className:"space-y-3 text-xs font-semibold",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-slate-400 font-bold block uppercase font-mono",children:"Amount / টাকার পরিমাণ (৳)"}),c.jsx("input",{type:"number",value:D,onChange:W=>w(W.target.value),placeholder:"500",required:!0,className:"w-full bg-slate-950 border border-slate-800 rounded-lg px-3 py-2.5 text-white font-bold focus:outline-none focus:border-green-500"})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-slate-400 font-bold block uppercase font-mono",children:"Sender Mobile No / আপনার ফোন নম্বর"}),c.jsx("input",{type:"tel",value:L,onChange:W=>ie(W.target.value),placeholder:"0171XXXXXXXX",required:!0,className:"w-full bg-slate-950 border border-slate-800 rounded-lg px-3 py-2.5 text-white font-bold focus:outline-none focus:border-green-500"})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-slate-400 font-bold block uppercase font-mono",children:"Transaction ID (TrxID) / ট্রানজেকশন আইডি"}),c.jsx("input",{type:"text",value:oe,onChange:W=>k(W.target.value),placeholder:"AX89K7L90P",required:!0,className:"w-full bg-slate-950 border border-slate-800 rounded-lg px-3 py-2.5 text-white font-bold uppercase focus:outline-none focus:border-green-500 font-mono"})]})]}),c.jsx("button",{type:"submit",className:"w-full bg-green-500 hover:bg-green-600 text-slate-950 font-black tracking-wider uppercase py-3 rounded-xl transition-all",children:"CONFIRM REQUEST / সাবমিট করুন"})]}),Se&&c.jsxs("form",{onSubmit:Ct,className:"bg-[#131b2e] border-2 border-blue-500/30 p-5 rounded-2xl space-y-4 shadow-xl",children:[c.jsx("h4",{className:"text-blue-400 font-black text-sm uppercase tracking-wider border-b border-slate-800 pb-2",children:"Gift to Friend / বন্ধুকে গিফট পাঠান"}),c.jsxs("div",{className:"space-y-3 text-xs font-semibold",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-slate-400 font-bold block uppercase font-mono",children:"Friends Wallet/Phone Number"}),c.jsx("input",{type:"tel",value:me,onChange:W=>{we(W.target.value),Z("")},placeholder:"01XXXXXXXXX",required:!0,className:"w-full bg-slate-950 border border-slate-800 rounded-lg px-3 py-2.5 text-white font-bold focus:outline-none focus:border-blue-500"})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"text-slate-400 font-bold block uppercase font-mono",children:"Amount / স্থানান্তর টাকা"}),c.jsx("input",{type:"number",value:ke,onChange:W=>{$e(W.target.value),Z("")},placeholder:"100",required:!0,className:"w-full bg-slate-950 border border-slate-800 rounded-lg px-3 py-2.5 text-white font-bold focus:outline-none focus:border-blue-500"})]})]}),Re&&c.jsx("p",{className:"text-red-400 font-bold text-xs",children:Re}),c.jsx("button",{type:"submit",className:"w-full bg-blue-500 hover:bg-blue-600 text-white font-black tracking-wider uppercase py-3 rounded-xl transition-all",children:"SEND GIFT"})]}),c.jsxs("div",{className:"space-y-2 border-y border-slate-800 pb-4 pt-1",children:[c.jsxs("div",{onClick:()=>alert("টাকা ডিপোজিট করার জন্য bKash বা Nagad সিলেক্ট করুন, আমাদের মার্চেন্ট নম্বরে পেমেন্ট সম্পূর্ণ করে TrxID ও অ্যামাউন্ট সাবমিট করুন। ১২ সেকেন্ডে অটোমেটিক রিকোয়েস্ট এক্সেপ্ট হয়ে যাবে!"),className:"flex items-center justify-between p-3.5 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer",children:[c.jsx("span",{className:"text-slate-300 font-bold text-xs leading-none",children:"কিভাবে টাকা ডিপোজিট করবেন?"}),c.jsx("span",{className:"text-[10px] text-red-500 bg-red-500/10 hover:bg-red-500/20 px-3 py-1 rounded font-black uppercase font-mono transition-transform",children:"ভিডিও দেখুন"})]}),c.jsxs("div",{onClick:()=>alert("ওয়ালেট পেজে 'GIFT' এ ক্লিক করুন, বন্ধুর মোবাইল নম্বর ও পেমেন্ট দেওয়ার অ্যামাউন্ট লিখে পাঠান।"),className:"flex items-center justify-between p-3.5 bg-slate-900 border border-slate-850 hover:bg-slate-850 rounded-xl cursor-pointer",children:[c.jsx("span",{className:"text-slate-300 font-bold text-xs leading-none",children:"কিভাবে বন্ধুকে গিফট পাঠাবেন?"}),c.jsx("span",{className:"text-[10px] text-red-500 bg-red-500/10 hover:bg-red-500/20 px-3 py-1 rounded font-black uppercase font-mono transition-transform",children:"ভিডিও দেখুন"})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-5 rounded-2xl shadow-lg space-y-4",children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 pb-2",children:[c.jsx("h4",{className:"text-white text-xs font-black tracking-widest uppercase font-mono",children:"MINI STATEMENTS"}),c.jsx("span",{className:"text-[10px] text-slate-400 font-bold",children:"Latest activity"})]}),T.length===0?c.jsxs("div",{className:"py-12 text-center flex flex-col items-center justify-center text-slate-500",children:[c.jsx(mx,{className:"w-12 h-12 text-slate-600 mb-3 animate-bounce"}),c.jsx("p",{className:"text-xs font-bold font-sans",children:"No transactions available."}),c.jsx("button",{className:"mt-3 text-sky-400 text-xs font-bold uppercase underline",onClick:()=>alert("আপনার একাউন্টে বর্তমানে কোনো লেনদেন সম্পাদিত হয়নি। ম্যাচ খেলুন বা উইথড্র/ডিপোজিট করুন।"),children:"See all..."})]}):c.jsx("div",{className:"space-y-3.5 max-h-72 overflow-y-auto pr-1",children:T.map(W=>{const ve=["WITHDRAW","ENTRY_FEE","GIFT_SENT"].includes(W.type);return c.jsxs("div",{className:"flex items-center justify-between bg-slate-950 p-3 rounded-xl border border-slate-800/60",children:[c.jsxs("div",{className:"space-y-0.5",children:[c.jsx("span",{className:"text-white font-bold text-xs block truncate max-w-[180px]",children:W.description}),c.jsx("span",{className:"text-[9px] text-slate-500 block font-mono font-medium",children:W.date}),W.transactionId&&c.jsxs("span",{className:"text-[8px] bg-slate-900 text-slate-400 px-1 rounded block w-max uppercase font-mono",children:["TrxID: ",W.transactionId]})]}),c.jsxs("div",{className:"text-right flex flex-col items-end gap-1",children:[c.jsxs("span",{className:`font-mono font-black text-sm ${ve?"text-rose-500":"text-emerald-400"}`,children:[ve?"-":"+"," ৳ ",W.amount]}),c.jsx("span",{className:`text-[8px] font-black px-1.5 py-0.5 rounded uppercase ${W.status==="SUCCESS"?"bg-green-500/10 text-green-400":"bg-yellow-500/10 text-yellow-500"}`,children:W.status})]})]},W.id)})})]})]})},t1=()=>{const{user:o,withdrawFunds:T,popView:A}=Je(),[d,M]=X.useState("bKash"),[_,Y]=X.useState(""),[B,z]=X.useState(""),[j,D]=X.useState(""),w=async L=>{L.preventDefault(),D("");const ie=Number(B);if(!_||_.length<11){D("১১ ডিজিটের সঠিক মোবাইল ওয়ালেট নম্বর দিন!");return}if(!B||isNaN(ie)||ie<=100){D("৳ ১০০ টাকার নিচে উইথড্র দেওয়া সম্ভব নয়!");return}if(o.winningBalance<ie){D("আপনার উইনিং ব্যালেন্স অপর্যাপ্ত! আপনি সর্বোচ্চ ৳ "+o.winningBalance+" উইথড্র করতে পারবেন।");return}const oe=await T(d,ie,_);oe.success?(alert(`উইথড্র রিকোয়েস্ট জমা হয়েছে!

পেমেন্ট চ্যানেল: ${d}
নম্বর: ${_}
পরিমাণ: ৳ ${ie}

আপনার কন্ট্রিবিউশনটি উইনিং ব্যালেন্স হতে কেটে নেওয়া হয়েছে। ২৪ ঘণ্টার মধ্যে পেমেন্ট প্রসেস হয়ে যাবে!`),A()):D(oe.error||"একটি ত্রুটি ঘটেছে!")};return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:A,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Withdrawal"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Receive Winnings"})]})]}),c.jsxs("form",{onSubmit:w,className:"space-y-5",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[10px] text-slate-400 font-black tracking-widest block font-mono uppercase",children:"Choose your payment channel"}),c.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[c.jsxs("div",{onClick:()=>{M("bKash"),D("")},className:`relative p-3.5 rounded-2xl cursor-pointer text-center border-2 transition-all flex flex-col items-center justify-center gap-2 ${d==="bKash"?"border-emerald-500 bg-emerald-500/5":"border-slate-850 bg-slate-900/60"}`,children:[c.jsx("div",{className:"w-11 h-11 rounded-xl bg-pink-500 flex items-center justify-center text-white font-serif font-black shadow-md border border-pink-400/30",children:"bK"}),c.jsx("span",{className:"text-xs text-white font-extrabold font-sans",children:"bKash"}),d==="bKash"&&c.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 bg-emerald-500 rounded-full flex items-center justify-center shadow",children:c.jsx("span",{className:"text-slate-950 font-black text-[9px]",children:"✓"})})]}),c.jsxs("div",{onClick:()=>{M("Nagad"),D("")},className:`relative p-3.5 rounded-2xl cursor-pointer text-center border-2 transition-all flex flex-col items-center justify-center gap-2 ${d==="Nagad"?"border-emerald-500 bg-emerald-500/5":"border-slate-850 bg-slate-900/60"}`,children:[c.jsx("div",{className:"w-11 h-11 rounded-xl bg-orange-600 flex items-center justify-center text-white font-serif font-black shadow-md border border-orange-500/30",children:"Nd"}),c.jsx("span",{className:"text-xs text-white font-extrabold font-sans",children:"Nagad"}),d==="Nagad"&&c.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 bg-emerald-500 rounded-full flex items-center justify-center shadow",children:c.jsx("span",{className:"text-slate-950 font-black text-[9px]",children:"✓"})})]}),c.jsxs("div",{onClick:()=>{M("Rocket"),D("")},className:`relative p-3.5 rounded-2xl cursor-pointer text-center border-2 transition-all flex flex-col items-center justify-center gap-2 ${d==="Rocket"?"border-emerald-500 bg-emerald-500/5":"border-slate-850 bg-slate-900/60"}`,children:[c.jsx("div",{className:"w-11 h-11 rounded-xl bg-purple-700 flex items-center justify-center text-white font-serif font-black shadow-md border border-purple-600/30",children:"Rt"}),c.jsx("span",{className:"text-xs text-white font-extrabold font-sans",children:"Rocket"}),d==="Rocket"&&c.jsx("div",{className:"absolute top-2 right-2 w-4 h-4 bg-emerald-500 rounded-full flex items-center justify-center shadow",children:c.jsx("span",{className:"text-slate-950 font-black text-[9px]",children:"✓"})})]})]})]}),c.jsxs("div",{className:"space-y-4 font-semibold text-xs text-slate-400",children:[c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"uppercase tracking-widest block font-mono",children:"Enter your Wallet Number:"}),c.jsx("input",{type:"tel",value:_,onChange:L=>{Y(L.target.value),D("")},placeholder:"01XXXXXXXXX",required:!0,className:"w-full bg-[#131b2e] border border-slate-700 rounded-xl px-4 py-3 text-white font-bold placeholder-slate-600 focus:outline-none focus:border-emerald-500"})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("label",{className:"uppercase tracking-widest block font-mono",children:"Amount"}),c.jsx("input",{type:"number",value:B,onChange:L=>{z(L.target.value),D("")},placeholder:"Min ৳ 100",required:!0,className:"w-full bg-[#131b2e] border border-slate-700 rounded-xl px-4 py-3 text-white font-bold placeholder-slate-600 focus:outline-none focus:border-emerald-500"})]})]}),c.jsxs("div",{className:"bg-slate-950 border border-slate-850 p-4 rounded-xl text-center",children:[c.jsx("span",{className:"text-[10px] text-slate-500 font-bold block uppercase leading-none font-mono",children:"Your Withdrawal Balance is:"}),c.jsxs("span",{className:"text-[#facc15] font-black text-2xl tracking-tight block mt-1",children:["৳ ",o.winningBalance]})]}),j&&c.jsxs("div",{className:"bg-rose-500/10 border border-rose-500/20 text-rose-400 text-xs font-bold rounded-lg p-3 text-center",children:["⚠️ ",j]}),c.jsx("button",{type:"submit",className:"w-full bg-[#dc2626] hover:bg-red-700 text-white font-extrabold tracking-widest uppercase text-sm py-4 rounded-xl shadow-lg active:scale-95 transition-all",children:"WITHDRAW"})]}),c.jsxs("div",{className:"bg-emerald-500/5 border border-emerald-500/10 rounded-2xl p-4 space-y-2 text-[11px] leading-relaxed font-bold text-emerald-400",children:[c.jsx("p",{children:"• Withdraw রিকোয়েস্ট পাঠানোর পর ২৪ ঘণ্টার মধ্যে আপনার টাকা প্রেরণ করা হবে।"}),c.jsx("p",{children:"• আরো দ্রুত পেমেন্ট সার্ভিস পেতে QUICK সার্ভিস মেথড সিলেক্ট করুন (সাধারণত bKash সেন্ড মানি দ্রুত সম্পন্ন হয়)।"})]})]})},l1=()=>{const{chatMessages:o,sendChatMessage:T}=Je(),[A,d]=X.useState(""),M=X.useRef(null);X.useEffect(()=>{var B;(B=M.current)==null||B.scrollIntoView({behavior:"smooth"})},[o]);const _=B=>{B.preventDefault(),A.trim()&&(T(A),d(""))},Y=["কিভাবে ম্যাচ জয়েন করব?","টাকা ডিপোজিট করতে চাই","উইথড্র করার নিয়ম কি?","রেফারেল থেকে আয় করব কিভাবে?"];return c.jsxs("div",{className:"flex flex-col h-[75vh] pb-10",children:[c.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 pb-3",children:[c.jsxs("div",{children:[c.jsxs("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none flex items-center gap-2",children:["Ludo Master Support",c.jsx("span",{className:"w-2.5 h-2.5 bg-green-500 rounded-full animate-ping"})]}),c.jsx("span",{className:"text-xs text-green-400 font-bold uppercase font-mono tracking-wider",children:"● Live Bot Assistant (অনলাইন)"})]}),c.jsxs("button",{onClick:()=>alert(`সাপোর্ট হেল্পলাইন নম্বর: +8801880541682
(সকাল ১০টা থেকে রাত ১০টা পযন্ত সরাসরি ফোনেই সাহায্য পাবেন)`),className:"p-1 px-3 text-[10px] uppercase font-black bg-emerald-500/10 border border-emerald-500/20 text-emerald-400 rounded-md flex items-center gap-1 shrink-0",children:[c.jsx(wx,{className:"w-3.5 h-3.5"}),"HELP LINE"]})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto space-y-4 py-4 px-1 scroll-smooth",children:[o.map(B=>{const z=B.sender==="user";return c.jsxs("div",{className:`flex items-start gap-2.5 max-w-[85%] ${z?"ml-auto flex-row-reverse":""}`,children:[c.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center shrink-0 shadow ${z?"bg-indigo-600 text-white":"bg-slate-800 border border-indigo-500/20 text-yellow-400"}`,children:z?c.jsx(ji,{className:"w-4 h-4"}):c.jsx(Km,{className:"w-4 h-4 fill-current animate-pulse"})}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:`rounded-2xl p-3 text-xs leading-relaxed font-semibold ${z?"bg-gradient-to-tr from-indigo-600 to-indigo-700 text-white rounded-tr-sm shadow-md":"bg-[#131b2e] border border-slate-800 text-slate-100 rounded-tl-sm shadow-lg border-l-yellow-400/80 border-l-2"}`,children:c.jsx("p",{className:"whitespace-pre-line",children:B.text})}),c.jsx("span",{className:`text-[9px] text-slate-500 block font-mono font-bold ${z?"text-right mr-1":"ml-1"}`,children:B.timestamp})]})]},B.id)}),c.jsx("div",{ref:M})]}),c.jsx("div",{className:"py-2 overflow-x-auto whitespace-nowrap flex gap-1.5 scrollbar-none no-scrollbar",children:Y.map((B,z)=>c.jsxs("button",{type:"button",onClick:()=>T(B),className:"inline-block bg-slate-900 border border-slate-800 text-slate-300 text-[10px] font-bold px-3 py-1.5 rounded-full hover:bg-slate-800 hover:text-white transition-colors cursor-pointer shrink-0",children:["💬 ",B]},z))}),c.jsxs("form",{onSubmit:_,className:"relative mt-2",children:[c.jsx("input",{type:"text",value:A,onChange:B=>d(B.target.value),placeholder:"আপনার প্রশ্নটি বাংলায় লিখুন... (যেমন: টাকা ডিপোজিট করব কীভাবে?)",className:"w-full bg-[#131b2e] border border-slate-700 rounded-xl pl-4 pr-12 py-3.5 text-white text-xs font-semibold placeholder-slate-500 focus:outline-none focus:border-indigo-500 shadow-inner"}),c.jsx("button",{type:"submit",className:"absolute right-2 top-2 p-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-700 text-white cursor-pointer active:scale-95 transition-transform",children:c.jsx(Zd,{className:"w-4 h-4 fill-current"})})]})]})},a1=()=>{const{leaderboard:o,popView:T,user:A}=Je(),d=o[0]||{name:"Rabiul Islam",matchesPlayed:2566,earnings:603680};return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:T,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsxs("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none flex items-center gap-1.5",children:["Leaderboard",c.jsx(Rx,{className:"w-5 h-5 text-yellow-400 stroke-[2] animate-bounce"})]}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Best Ludo Earners"})]})]}),c.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-tr from-[#1e1b4b] via-[#111827] to-[#1e1b4b] border border-indigo-500/20 p-5 shadow-2xl flex items-center justify-between",children:[c.jsxs("div",{className:"space-y-1 relative z-10",children:[c.jsx("span",{className:"text-[10px] bg-yellow-400 text-slate-900 font-black px-2.5 py-0.5 rounded-full uppercase tracking-wider font-mono",children:"GRANDMASTER 👑"}),c.jsx("h3",{className:"text-white font-extrabold text-xl tracking-tight mt-1 truncate max-w-[190px]",children:d.name}),c.jsxs("p",{className:"text-[#94a3b8] text-xs font-bold leading-tight",children:["Total Played: ",d.matchesPlayed," Matches"]}),c.jsxs("p",{className:"text-emerald-400 text-xs font-black leading-tight",children:["Total Earnings: BDT ",d.earnings]})]}),c.jsxs("div",{className:"relative w-20 h-20 shrink-0 flex items-center justify-center",children:[c.jsx("div",{className:"absolute inset-0 bg-yellow-500/10 blur-xl rounded-full"}),c.jsx(qd,{className:"w-16 h-16 text-yellow-400 stroke-[1.5]"})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 rounded-2xl shadow-lg overflow-hidden",children:[c.jsxs("div",{className:"grid grid-cols-12 bg-slate-950 px-4 py-3 text-[10px] font-black tracking-widest text-[#94a3b8] uppercase font-mono border-b border-slate-800/60 text-center",children:[c.jsx("div",{className:"col-span-2 text-left",children:"RANK"}),c.jsx("div",{className:"col-span-6 text-left",children:"NAME"}),c.jsx("div",{className:"col-span-4 text-right",children:"MATCH PLAYED"})]}),c.jsx("div",{className:"divide-y divide-slate-850/60 max-h-[46vh] overflow-y-auto",children:o.map((M,_)=>{const Y=M.name===A.name,B=["bg-yellow-400 text-slate-950 font-black","bg-slate-300 text-slate-900 font-black","bg-amber-600 text-white font-black"];return c.jsxs("div",{className:`grid grid-cols-12 px-4 py-3.5 items-center text-xs font-bold font-sans transition-colors ${Y?"bg-yellow-400/10 border-y border-yellow-400/20":"hover:bg-slate-800/30"}`,children:[c.jsx("div",{className:"col-span-2 flex items-center",children:M.rank<=3?c.jsx("span",{className:`w-6 h-6 rounded-full flex items-center justify-center text-xs ${B[M.rank-1]}`,children:M.rank}):c.jsx("span",{className:`text-[11px] font-bold font-mono pl-1.5 ${Y?"text-yellow-400":"text-slate-500"}`,children:M.rank})}),c.jsxs("div",{className:"col-span-6 text-left flex items-center gap-2 truncate pr-2",children:[c.jsx("span",{className:`truncate ${Y?"text-yellow-400 font-black":"text-slate-100"}`,children:M.name}),M.rank===1&&c.jsx(qd,{className:"w-3.5 h-3.5 text-yellow-400 fill-yellow-400 shrink-0"}),M.rank>1&&M.rank<=3&&c.jsx("span",{className:"text-yellow-500 text-[10px]",children:"👑"})]}),c.jsxs("div",{className:"col-span-4 text-right pr-1 space-y-0.5",children:[c.jsx("span",{className:`font-mono text-sm block ${Y?"text-yellow-400":"text-slate-100"}`,children:M.matchesPlayed}),c.jsxs("span",{className:"text-[9px] text-slate-500 font-bold block leading-none",children:["৳",M.earnings]})]})]},_)})})]})]})},n1=()=>{const{user:o,popView:T}=Je(),A=()=>{navigator.clipboard.writeText(o.referralCode),alert(`রেফারেল কোডটি কপি করা হয়েছে!

কোড: ${o.referralCode}
আপনার বন্ধুদের সাথে শেয়ার করুন!`)},d=()=>{const M=`Ludo Master BD গেম খেলুন এবং রিয়াল টাকা ইনকাম করুন! সাইন-আপ করার সময় আমার রেফারেল কোডটি ব্যবহার করুন:

রেফারেল কোড: ${o.referralCode}
আজই জয়েন করতে এখানে ভিজিট করুন।`;navigator.share?navigator.share({title:"Refer & Earn Ludo Master",text:M,url:window.location.href}).catch(()=>{}):(navigator.clipboard.writeText(M),alert(`রেফারেল বার্তাটি ক্লিপবোর্ডে কপি করা হয়েছে! আপনার বন্ধুদের সাথে শেয়ার করুন:

${M}`))};return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:T,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Refer & Earn"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Invite Friends & Earn Commission"})]})]}),c.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-[#090d16] border border-slate-850 p-6 flex items-center justify-between shadow-lg",children:[c.jsxs("div",{className:"space-y-1 relative z-10 max-w-[60%]",children:[c.jsx("h3",{className:"text-sky-400 font-black text-xl leading-none",children:"Invite your"}),c.jsx("h3",{className:"text-white font-extrabold text-2xl tracking-wide uppercase font-mono",children:"Freinds"}),c.jsx("p",{className:"text-[#94a3b8] text-xs font-semibold leading-tight pt-1",children:"Share and lifetime earn together with other ludo players!"})]}),c.jsxs("div",{className:"w-24 h-24 shrink-0 flex items-center justify-center relative",children:[c.jsx("div",{className:"absolute inset-0 bg-sky-500/10 blur-xl rounded-full"}),c.jsx(fx,{className:"w-16 h-16 text-sky-400 stroke-[1.5]"})]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[10px] text-slate-500 font-black tracking-widest font-mono uppercase block",children:"REFERRAL CODE:"}),c.jsxs("div",{onClick:A,className:"bg-rose-50/5 border-2 border-dashed border-red-500 rounded-2xl p-4.5 flex items-center justify-between cursor-pointer hover:bg-rose-50/10 active:scale-99 transition-all",children:[c.jsx("span",{className:"text-red-500 font-mono font-black text-2xl tracking-widest select-all",children:o.referralCode}),c.jsxs("span",{className:"text-xs text-slate-500 font-black uppercase tracking-wider font-mono flex items-center gap-1.5 shrink-0 bg-slate-950 p-2 rounded-lg border border-slate-800",children:[c.jsx(Qd,{className:"w-4 h-4 text-slate-400 stroke-[2.5]"}),"TAP TO COPY"]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3 text-center border-y border-slate-800 py-5",children:[c.jsxs("div",{className:"space-y-1.5",children:[c.jsx("span",{className:"text-[10px] text-slate-500 font-black uppercase tracking-wider block leading-none font-mono",children:"TOTAL EARNED"}),c.jsx("span",{className:"text-white font-mono font-black text-3xl block leading-none",children:"৳ 0"})]}),c.jsxs("div",{className:"border-l border-slate-800/80 space-y-1.5",children:[c.jsx("span",{className:"text-[10px] text-slate-500 font-black uppercase tracking-wider block leading-none font-mono",children:"TOTAL REFER"}),c.jsx("span",{className:"text-white font-mono font-black text-3xl block leading-none",children:o.referralsCount})]})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("h4",{className:"text-center font-black text-xs tracking-widest text-[#94a3b8] uppercase font-mono",children:"HOW DOES THIS WORKS?"}),c.jsxs("div",{className:"grid grid-cols-5 items-center justify-center p-3 text-center bg-slate-900 border border-slate-850 rounded-2xl",children:[c.jsxs("div",{className:"text-center space-y-1",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-800 mx-auto flex items-center justify-center font-black text-base text-sky-400",children:"👤"}),c.jsx("span",{className:"text-[9px] text-[#94a3b8] font-bold block leading-none uppercase",children:"Invite"})]}),c.jsx("div",{className:"text-slate-600 font-extrabold text-base",children:"▶"}),c.jsxs("div",{className:"text-center space-y-1",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-800 mx-auto flex items-center justify-center font-black text-base text-[#facc15]",children:"🎯"}),c.jsx("span",{className:"text-[9px] text-[#94a3b8] font-bold block leading-none uppercase",children:"Join"})]}),c.jsx("div",{className:"text-slate-600 font-extrabold text-base",children:"▶"}),c.jsxs("div",{className:"text-center space-y-1",children:[c.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-800 mx-auto flex items-center justify-center font-black text-base text-emerald-400",children:"📈"}),c.jsx("span",{className:"text-[9px] text-[#94a3b8] font-bold block leading-none uppercase",children:"Earn"})]})]}),c.jsxs("div",{className:"space-y-4 text-xs font-semibold text-slate-350 leading-relaxed font-sans",children:[c.jsx("p",{className:"text-slate-300",children:"Invite your friends to play our app, and you'll earn 1% of their entry fee every time they join a paid contest that costs more than TK100. This amount will be added to your bonus balance, which you can use to enter any contest."}),c.jsx("div",{className:"w-full h-px bg-slate-800/80"}),c.jsx("p",{className:"text-slate-300",children:"আপনার বন্ধুদের আমাদের অ্যাপটি খেলতে আমন্ত্রণ জানান এবং তারা যখনই ১০০ টাকার উপরে কোনো পেইড কন্টেস্টে যোগ দেয়, আপনি তাদের এন্ট্রি ফি-র ১% পাবেন। এই টাকা আপনার ব্যালেন্সে যোগ হবে, যা আপনি যেকোনো কন্টেস্টে অংশগ্রহন করতে ব্যবহার করতে পারবেন।"})]})]}),c.jsx("div",{className:"pt-2",children:c.jsxs("button",{onClick:d,className:"w-full bg-black hover:bg-slate-900 text-[#facc15] font-black tracking-widest uppercase text-xs py-4 rounded-xl shadow-lg active:scale-95 transition-all flex items-center justify-center gap-2 border border-[#facc15]/20",children:[c.jsx(Kd,{className:"w-4 h-4 text-yellow-400 fill-current"}),"SHARE NOW"]})})]})},s1=()=>{const{user:o,updateProfile:T,popView:A}=Je(),[d,M]=X.useState(o.name),[_,Y]=X.useState(o.email),[B,z]=X.useState(o.phone),[j,D]=X.useState(""),w=L=>{if(L.preventDefault(),!d.trim()||!_.trim()||!B.trim()){alert("সবগুলো ফিল্ড সঠিকভাবে ফিলাপ করুন!");return}T(d,_,B),D("✓ প্রোফাইল পরিবর্তনসমূহ সফলভাবে সংরক্ষণ করা হয়েছে!"),setTimeout(()=>{D(""),A()},1500)};return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:A,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Edit Profile"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Customize Credentials"})]})]}),c.jsxs("form",{onSubmit:w,className:"space-y-5",children:[c.jsxs("div",{className:"flex flex-col items-center justify-center py-4 space-y-2",children:[c.jsxs("div",{className:"w-20 h-20 bg-slate-800 border-2 border-slate-700 rounded-full flex items-center justify-center text-slate-450 relative shadow-inner",children:[c.jsx(lx,{className:"w-12 h-12 text-slate-400"}),c.jsx("span",{className:"absolute bottom-0 right-0 bg-[#facc15] text-[#0a0f1d] p-1 text-[8px] font-black leading-none rounded-full border border-[#0a0f1d]",children:"EDIT"})]}),c.jsx("span",{className:"text-slate-500 text-[10px] font-bold uppercase tracking-wider block",children:"Avatar selected: Default"})]}),c.jsxs("div",{className:"space-y-4 text-xs font-semibold text-slate-400",children:[c.jsxs("div",{className:"space-y-1 bg-slate-900 border border-slate-850 rounded-xl px-4 py-2",children:[c.jsx("label",{className:"text-[10px] text-yellow-400 font-black block tracking-wider uppercase font-mono",children:"Display Name"}),c.jsx("input",{type:"text",value:d,onChange:L=>M(L.target.value),className:"w-full bg-transparent text-white font-bold py-1.5 focus:outline-none placeholder-slate-600 text-sm",placeholder:"e.g. Rahul",required:!0})]}),c.jsxs("div",{className:"space-y-1 bg-slate-900 border border-slate-850 rounded-xl px-4 py-2",children:[c.jsx("label",{className:"text-[10px] text-yellow-400 font-black block tracking-wider uppercase font-mono",children:"Email Address"}),c.jsx("input",{type:"email",value:_,onChange:L=>Y(L.target.value),className:"w-full bg-transparent text-white font-bold py-1.5 focus:outline-none placeholder-slate-600 text-sm",placeholder:"e.g. example@gmail.com",required:!0})]}),c.jsxs("div",{className:"space-y-1 bg-slate-900 border border-slate-850 rounded-xl px-4 py-2",children:[c.jsx("label",{className:"text-[10px] text-yellow-400 font-black block tracking-wider uppercase font-mono",children:"Phone Number"}),c.jsx("input",{type:"tel",value:B,onChange:L=>z(L.target.value),className:"w-full bg-transparent text-white font-bold py-1.5 focus:outline-none placeholder-slate-600 text-sm",placeholder:"e.g. 01XXXXXXXXX",required:!0})]})]}),j&&c.jsxs("div",{className:"bg-emerald-500/15 border border-emerald-550/20 text-emerald-400 rounded-xl p-3.5 flex items-center justify-center gap-2 text-xs font-black",children:[c.jsx(Fm,{className:"w-5 h-5 stroke-[2.5]"}),j]}),c.jsx("button",{type:"submit",className:"w-full bg-indigo-600 hover:bg-indigo-700 text-white font-black tracking-widest uppercase text-xs py-4 rounded-xl shadow-lg active:scale-95 transition-all text-center",children:"SAVE CHANGES"})]})]})},c1=()=>{const{matches:o,user:T,transactions:A,pushView:d,popView:M,simulateMatchResult:_,adminAddPlayer:Y,adminResetMatches:B,depositFunds:z,adminApproveTransaction:j,adminCancelTransaction:D}=Je(),w=async k=>{await _(k,"WIN"),alert("অভিনন্দন! আপনি ম্যাচটি জিতেছেন। পুরো উইনিং প্রাইজ আপনার ওয়ালেটের Winning Balance এ যোগ করা হয়েছে!")},L=async k=>{await _(k,"LOSE"),alert("ম্যাচটি সমাপ্ত হয়েছে এবং অন্য প্রতিপক্ষ জিতেছে। পুনরায় ম্যাচে অংশ নিন!")},ie=async()=>{await z("bKash",2500,"01712234556","SIM_ADMIN_"+Math.floor(Math.random()*99999)),alert("২৫০০ টাকা মূল ব্যালেন্সে যুক্ত করা হয়েছে! এবার আপনি স্পেশাল ও রেগুলার যেকোনো ম্যাচ খেলতে পারবেন।")},oe=o.filter(k=>k.userJoinedName&&k.status!=="COMPLETED");return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:M,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none text-sky-400",children:"Developer Console"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Full App Flow Simulator"})]})]}),c.jsxs("div",{className:"bg-sky-500/10 border border-sky-500/20 rounded-2xl p-4.5 space-y-2 text-xs font-semibold leading-relaxed text-slate-300",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-sky-400 font-black uppercase font-mono",children:[c.jsx(Ni,{className:"w-4 h-4 text-sky-400 animate-spin"}),"How to test everything:"]}),c.jsxs("p",{children:["১. নিচের ",c.jsx("span",{className:"text-yellow-400",children:'"Instant Wallet Fund"'})," বাটনে ক্লিক করে ফ্রি টাকা এড করুন।"]}),c.jsx("p",{children:"২. ম্যাচে যান এবং যেকোনো পেইড টুর্নামেন্টে জয়েন করুন।"}),c.jsxs("p",{children:["৩. নিচে ",c.jsx("span",{className:"text-yellow-400",children:'"Add Simulated Player"'})," দিয়ে সিট ফুল করুন। ফুল হলে আপনি লবি রুম কোড পেয়ে যাবেন!"]}),c.jsxs("p",{children:["৪. গেম শেষে উইনিং স্ক্রিনশট উইন প্রমাণের মাধ্যমে আপলোড দিন অথবা নিচের সিমুলেটরে ",c.jsx("span",{className:"text-green-400",children:'"Force User WIN 🏆"'})," দিন। সাথে সাথে টাকা পাবেন!"]})]}),c.jsxs("div",{className:"space-y-3.5 pt-2",children:[c.jsx("h3",{className:"text-[10px] text-slate-500 font-black tracking-widest font-mono uppercase block",children:"FAST ACTION TOOLS"}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsxs("button",{type:"button",onClick:ie,className:"bg-sky-600 hover:bg-sky-700 text-white font-extrabold text-xs py-4 px-3 rounded-xl shadow-lg flex items-center justify-center gap-2",children:[c.jsx(Kx,{className:"w-4 h-4 fill-current text-yellow-300"}),"+ ৳২৫০০ FREE CASH"]}),c.jsxs("button",{type:"button",onClick:async()=>{await B(),alert("সকল ডেটা সফলভাবে ফেক্টরি রিসেট করা হয়েছে!")},className:"bg-slate-850 hover:bg-slate-800 text-slate-200 border border-slate-700 font-extrabold text-xs py-4 px-3 rounded-xl shadow",children:[c.jsx(_x,{className:"w-4 h-4 inline mr-1"}),"RESET APP DATA"]})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-5 rounded-2xl shadow-lg space-y-4",children:[c.jsxs("div",{className:"border-b border-slate-800 pb-2 flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"text-white text-xs font-black tracking-widest uppercase font-mono text-yellow-400",children:"TRANSACTIONS NOTIFICATIONS"}),c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block pt-0.5",children:"(ডিপোজিট ও উইথড্র নোটিফিকেশন রিসিভ ট্রায়াল ফ্লো)"})]}),c.jsx("span",{className:"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 text-[9px] font-black px-2 py-0.5 rounded-full font-mono",children:"LIVE"})]}),c.jsxs("div",{className:"space-y-3",children:[A.filter(k=>k.status==="PENDING").map(k=>c.jsxs("div",{className:"p-3 bg-slate-950 border border-slate-850 rounded-xl space-y-2 text-left",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:`text-[10px] font-black uppercase tracking-wider px-2 py-0.5 rounded ${k.type==="DEPOSIT"?"bg-emerald-500/10 text-emerald-400":"bg-pink-500/10 text-pink-400"}`,children:[k.type," (",k.paymentChannel,")"]}),c.jsxs("span",{className:"text-white font-extrabold text-xs",children:["৳",k.amount]})]}),c.jsxs("p",{className:"text-[10px] text-slate-400 font-bold leading-tight font-mono",children:["No: ",k.accountNo," ",k.transactionId?`| Trx: ${k.transactionId}`:""]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-center pt-1",children:[c.jsx("button",{type:"button",onClick:async()=>await j(k.id),className:"bg-emerald-500 hover:bg-emerald-600 active:scale-95 text-slate-950 text-[10px] font-black py-1.5 rounded-lg transition-transform",children:"✓ Approve (Success)"}),c.jsx("button",{type:"button",onClick:async()=>await D(k.id),className:"bg-rose-600 hover:bg-rose-700 active:scale-95 text-white text-[10px] font-black py-1.5 rounded-lg transition-transform",children:"✕ Reject (Cancel)"})]})]},k.id)),A.filter(k=>k.status==="PENDING").length===0&&c.jsxs("div",{className:"text-center py-4 text-slate-500 border border-dashed border-slate-800 rounded-xl space-y-2",children:[c.jsx("p",{className:"text-slate-400 text-[11px] font-bold",children:"কোনো পেন্ডিং ডিপোজিট বা উইথড্র রিকোয়েস্ট নেই।"}),c.jsx("p",{className:"text-slate-500 text-[9px] pt-0.5 max-w-[280px] mx-auto leading-relaxed",children:"উইথড্র বা ডিপোজিটের জন্য নোটিফিকেশন চেক করতে প্রথমে ওয়ালেট পেজে গিয়ে একটি রিকোয়েস্ট প্লেস করুন।"}),c.jsx("div",{className:"flex justify-center gap-2 pt-1",children:c.jsx("button",{type:"button",onClick:()=>d("wallet"),className:"bg-[#1e293b] text-yellow-400 hover:bg-slate-800 text-[10px] px-3 py-1 font-black rounded-lg transition-all",children:"Wallet-এ যান"})})]})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-5 rounded-2xl shadow-lg space-y-4",children:[c.jsxs("div",{className:"border-b border-slate-800 pb-2",children:[c.jsx("h4",{className:"text-white text-xs font-black tracking-widest uppercase font-mono",children:"ADD SIMULATED PLAYERS TO ANY SEATS"}),c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block pt-0.5",children:"(সিট ফুল করে রুম কোড দেখতে এই বাটনগুলি চাপুন)"})]}),c.jsxs("div",{className:"space-y-3.5",children:[o.filter(k=>k.status==="ACTIVE").map(k=>c.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950 border border-slate-850 rounded-xl",children:[c.jsxs("div",{className:"space-y-0.5 text-left",children:[c.jsx("span",{className:"text-white font-bold text-xs block",children:k.title}),c.jsxs("span",{className:"text-[10px] text-slate-500 font-medium font-mono leading-none block",children:["Seats: ",k.playersJoined,"/",k.totalPlayersNeeded]})]}),c.jsx("button",{type:"button",onClick:async()=>await Y(k.id),className:"bg-indigo-600 hover:bg-indigo-700 text-white text-[10px] font-black px-3.5 py-2 rounded-lg py-1.5 transition-transform active:scale-95 text-center",children:"+ ADD PLAYERS"})]},k.id)),o.filter(k=>k.status==="ACTIVE").length===0&&c.jsx("p",{className:"text-slate-500 text-xs font-bold text-center",children:"কোনো সক্রিয় ম্যাচ খালি নেই।"})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-5 rounded-2xl shadow-lg space-y-4",children:[c.jsxs("div",{className:"border-b border-slate-800 pb-2",children:[c.jsx("h4",{className:"text-white text-xs font-black tracking-widest uppercase font-mono",children:"OUTCOME FLOW MATCH SIMULATOR"}),c.jsx("span",{className:"text-[10px] text-slate-400 font-bold block pt-0.5",children:"(আপনার অংশগ্রহনকৃত ম্যাচগুলোতে জয়-পরাজয় সিমুলেট করুন)"})]}),c.jsxs("div",{className:"space-y-4",children:[oe.map(k=>c.jsxs("div",{className:"bg-slate-950 border-2 border-indigo-500/10 p-4 rounded-xl space-y-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-white font-extrabold text-xs block",children:k.title}),c.jsxs("span",{className:"text-[9px] text-[#facc15] font-black uppercase font-mono bg-yellow-400/10 px-2 py-0.5 rounded",children:["Status: ",k.status]})]}),c.jsxs("div",{className:"text-right text-[10px]",children:[c.jsx("span",{className:"text-slate-400 leading-none block uppercase font-mono",children:"WIN PRIZE:"}),c.jsxs("span",{className:"text-green-400 font-black text-sm block",children:["৳ ",k.winningPrize]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 text-center pt-1",children:[c.jsxs("button",{type:"button",onClick:()=>w(k.id),className:"bg-emerald-500 hover:bg-green-600 text-slate-950 text-[10px] font-extrabold tracking-wider uppercase py-2.5 rounded-lg flex items-center justify-center gap-1 shadow-lg",children:[c.jsx(vi,{className:"w-3.5 h-3.5 stroke-[3.5]"}),"Force WIN 🏆"]}),c.jsx("button",{type:"button",onClick:()=>L(k.id),className:"bg-rose-600 hover:bg-rose-700 text-white text-[10px] font-extrabold tracking-wider uppercase py-2.5 rounded-lg text-center",children:"Force Lose ❌"})]})]},k.id)),oe.length===0&&c.jsxs("div",{className:"text-center py-6 text-slate-500 font-bold text-xs space-y-2",children:[c.jsx("p",{children:"আপনার অংশগ্রহনকৃত কোনো রানিং ম্যাচ খুজে পাওয়া যায়নি।"}),c.jsx("button",{type:"button",onClick:()=>d("home"),className:"bg-indigo-600 text-white font-bold text-[10px] px-3.5 py-1.5 rounded-lg",children:"Go to Home to Join Match"})]})]})]})]})},u1=()=>{const{popView:o}=Je();return c.jsxs("div",{className:"space-y-6 pb-28",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-800 pb-3",children:[c.jsxs("button",{onClick:o,className:"p-1 px-2.5 rounded-lg bg-slate-800/100 hover:bg-slate-700 text-slate-100",children:[c.jsx(Ht,{className:"w-5 h-5 inline mr-1"}),"Back"]}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-[#f8fafc] text-lg font-black tracking-tight leading-none",children:"Terms & Conditions"}),c.jsx("span",{className:"text-xs text-slate-400 font-bold uppercase font-mono",children:"Platform Regulations"})]})]}),c.jsxs("div",{className:"bg-[#131b2e] border border-slate-850 p-5 rounded-2xl shadow-lg space-y-4 text-xs font-semibold text-slate-300 leading-relaxed font-sans",children:[c.jsx("h3",{className:"text-[#facc15] font-black text-sm uppercase font-mono tracking-widest border-b border-slate-800 pb-1",children:"Ludo Master User Agreement"}),c.jsx("p",{children:"১. ব্যবহারকারী হিসেবে যোগ দেওয়ার জন্য আপনার বয়স অবশ্যই ১৮ বছরের বেশি হতে হবে।"}),c.jsx("p",{children:"২. একটি ডিভাইসে একাধিক অ্যাকাউন্ট তৈরি করে রেফার লিংক জেনারেট করানো কঠোরভাবে নিষিদ্ধ। ধরা পড়লে আজীবনের জন্য অ্যাকাউন্ট সহ ব্যালেন্স ব্যান করা হবে।"}),c.jsx("p",{children:"৩. গেম চলাকালীন সময় কোনো হ্যাক বা ফেইক APK ব্যবহার করলে স্থায়ীভাবে ব্লক করা হবে।"}),c.jsx("p",{children:"৪. বিজয়ী হওয়ার পর অবশ্যই মূল Ludo King গেমের স্ক্রিনশট Evidence পেজে ট্র্যাকিং আইডি সহ জমা দিবেন। কোনো ফেইক বা এডিটেড ছবি প্রমাণিত হলে অ্যাকাউন্ট সাথে সাথে মুছে ফেলা হবে।"}),c.jsx("p",{children:"৫. পেমেন্ট সাধারণত ২ থেকে ২৪ ঘণ্টার মধ্যে bKash, Nagad বা Rocket-এ প্রেরণ করা হয়। কারিগরি ত্রুটির কারণে বিলম্ব হলে অনুগ্রহ করে আমাদের গ্রুপ বা সাহায্য লিংকে বার্তা পাঠান।"}),c.jsx("div",{className:"w-full h-px bg-slate-800/80"}),c.jsx("p",{className:"text-[#94a3b8] italic",children:"Welcome to Ludo Master BD portal. By accepting registration credentials you are bound to play honestly and respect other players in the lobbies. Under any disputes, the final call of the Ludo Master admin system will be treated as absolute."})]})]})},i1=()=>{const{currentView:o,pushView:T}=Je(),[A,d]=X.useState(null);X.useEffect(()=>{const _=Om(Y=>{d(Y)});return()=>_()},[]),X.useEffect(()=>{if(A){const _=setTimeout(()=>{d(Y=>Y&&Y.body===A.body?null:Y)},5e3);return()=>clearTimeout(_)}},[A]);const M=()=>{switch(o){case"home":return c.jsx(Ld,{});case"profile":return c.jsx(Wx,{});case"wallet":return c.jsx(e1,{});case"withdraw":return c.jsx(t1,{});case"matches":return c.jsx(Fx,{});case"match-detail":return c.jsx(Ix,{});case"evidence":return c.jsx(Px,{});case"support":return c.jsx(l1,{});case"leaderboard":return c.jsx(a1,{});case"refer-earn":return c.jsx(n1,{});case"edit-profile":return c.jsx(s1,{});case"developer-panel":return c.jsx(c1,{});case"terms-conditions":return c.jsx(u1,{});default:return c.jsx(Ld,{})}};return c.jsxs("div",{className:"min-h-screen bg-[#070b14] flex flex-col items-center justify-start text-slate-100 overflow-x-hidden selection:bg-[#facc15] selection:text-slate-950",children:[c.jsx("div",{className:"absolute top-0 inset-x-0 h-96 bg-gradient-to-b from-indigo-500/10 via-purple-500/5 to-transparent pointer-events-none z-0"}),c.jsxs("div",{className:"w-full max-w-md min-h-screen bg-[#0a0f1d] border-x border-slate-800/60 shadow-2xl flex flex-col relative z-20 pb-4",children:[c.jsx(Jx,{}),A&&c.jsxs("div",{onClick:()=>d(null),className:"absolute top-22 inset-x-3 bg-slate-900/95 backdrop-blur border border-indigo-500/30 rounded-2xl p-4 shadow-2xl z-50 text-left flex items-start gap-3 cursor-pointer select-none animate-slideDown hover:scale-[1.01] transition-all duration-200",style:{boxShadow:"0 20px 40px -15px rgba(99, 102, 241, 0.45)"},children:[c.jsx("div",{className:`p-2 rounded-xl flex items-center justify-center text-slate-950 shadow-inner shrink-0 ${A.type==="MATCH"?"bg-indigo-400":A.type==="DEPOSIT"?"bg-emerald-400":A.type==="WITHDRAW"?"bg-pink-400":"bg-amber-400"}`,children:c.jsx(Xd,{className:"w-5 h-5 stroke-[2.5]"})}),c.jsxs("div",{className:"flex-1 space-y-0.5 min-w-0 pr-2",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("span",{className:"text-[#facc15] text-[9px] uppercase font-black tracking-widest font-mono",children:["ONE_SIGNAL PUSH • ",A.type]}),c.jsx("span",{className:"text-[8px] text-slate-400 font-bold font-mono",children:"Just Now"})]}),c.jsx("h4",{className:"text-white font-extrabold text-xs tracking-tight leading-snug",children:A.title}),c.jsx("p",{className:"text-slate-300 text-[10px] font-semibold leading-relaxed",children:A.body})]}),c.jsx("button",{onClick:_=>{_.stopPropagation(),d(null)},className:"text-slate-500 hover:text-slate-300 self-center shrink-0",children:c.jsx($d,{className:"w-4 h-4 stroke-[2.5]"})})]}),c.jsx("main",{className:"flex-1 pt-20 px-4 pb-20 overflow-y-auto",children:M()}),c.jsx($x,{})]}),c.jsxs("div",{className:"hidden lg:flex fixed bottom-6 right-6 flex-col gap-2.5 max-w-xs p-5 bg-gradient-to-tr from-slate-900 to-[#131b2e] border-2 border-dashed border-sky-400/30 rounded-2xl shadow-2xl z-40 relative overflow-hidden text-left",children:[c.jsx("span",{className:"text-[10px] bg-sky-500 text-slate-950 font-black px-2.5 py-0.5 rounded-full uppercase tracking-widest font-mono block w-max animate-pulse",children:"SIMULATOR HELPER"}),c.jsx("h4",{className:"text-white font-extrabold text-sm tracking-tight pt-1",children:"Ludo Flow Quick Trial!"}),c.jsx("p",{className:"text-slate-400 text-[11px] leading-relaxed",children:"ম্যাচ খেলা, উইন প্রুফ জমা এবং টাকা রিচার্জ করার পুরো ফ্লো খুব সহজে দ্রুত ট্রায়াল করতে আমাদের সিমুলেটর ব্যবহার করুন।"}),c.jsxs("button",{onClick:()=>T("developer-panel"),className:"bg-sky-500 hover:bg-sky-600 active:scale-95 text-slate-950 font-black text-[11px] py-2 px-4 rounded-xl flex items-center justify-center gap-1.5 transition-all mt-1",children:[c.jsx(Ni,{className:"w-4 h-4 stroke-[2.5]"}),"OPEN DEV CONTROL PANEL"]})]})]})};function r1(){return c.jsx(Hm,{children:c.jsx(i1,{})})}_m.createRoot(document.getElementById("root")).render(c.jsx(X.StrictMode,{children:c.jsx(r1,{})}));
