const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Auth-DBVEKWIz.js","assets/arrow-left-DF7Gvvmd.js","assets/Onboard-BZ8fFrgb.js","assets/sparkles-D60umh0h.js","assets/chevron-left-CeZegcv8.js","assets/chevron-right-Dkj-cKiy.js","assets/MainLayout-DhuCSS-i.js","assets/conv-es1vYEdZ.js","assets/message-square-Cq-R7zFd.js","assets/inbox-DaZislMC.js","assets/shield-alert-DC4KGxRC.js","assets/ChatList-DoeoDP9Y.js","assets/moon-D68Jrquu.js","assets/ChatView-Yl7-eIuk.js","assets/useVoiceSession-gcfkFbyD.js","assets/utils-ByjjaO5W.js","assets/OverflowMenu-C9oqAuRA.js","assets/check-BPTk_zqD.js","assets/safety-CSXr_nal.js","assets/loader-circle-q5E7NPOq.js","assets/pencil-D0sUQrU_.js","assets/send-D-nSKl6X.js","assets/Discover-9qW_1Xi_.js","assets/useTopics-C6St7wqz.js","assets/radio-DndGXdP5.js","assets/Inbox-d8tMrsir.js","assets/tag-B0EWrDWk.js","assets/InboxDetail-DRS-rDxV.js","assets/circle-x-CR6uOYqa.js","assets/TopicDetail-BTlASBVJ.js","assets/Notifications-C_24_0Nh.js","assets/Settings-DBbF8ZVt.js","assets/email-DxSipMkI.js","assets/NotificationTest-BkEWVujq.js","assets/Claiming-CGFoAWEn.js","assets/Signin-CqQpiUtx.js","assets/Demo-BD2x3E7I.js","assets/ChatKit-kthhHOag.js","assets/pgsl-driver-Brb8lVm_.js","assets/TypingLoader-CZ4EG63n.js","assets/pgsl-llm-callbacks-Bz49PWen.js","assets/DemoOnboarding-BadQBgOH.js","assets/DemoOnboarding-DWhtEAT3.css","assets/JobChannel-CVhdwQ4_.js","assets/PlanCard-DB6JBhE7.js","assets/ConversationChannel-DiN3BLo6.js","assets/BeckyAvatar-DCM3uagf.js","assets/sleep-intake-TzkTyaXo.js","assets/use-warm-theme-Bq9FUzoO.js","assets/AdminTrace-DR4qHMKb.js","assets/AdminReports-BRjRmUie.js","assets/InChatFunnel-jNPX-BV_.js","assets/intake-sleep-VhqKU7tw.js","assets/meta-pixel-oND_FF6D.js","assets/Baby-D4M7c65e.js","assets/BabyIntake-BX6-2A4S.js","assets/BabyQuiz-sia1YjYR.js"])))=>i.map(i=>d[i]);
var ig=Object.defineProperty;var ug=(s,i,c)=>i in s?ig(s,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[i]=c;var Ch=(s,i,c)=>ug(s,typeof i!="symbol"?i+"":i,c);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const g of d.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function c(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();const sg="modulepreload",rg=function(s){return"/"+s},zh={},Dt=function(i,c,r){let f=Promise.resolve();if(c&&c.length>0){let g=function(m){return Promise.all(m.map(M=>Promise.resolve(M).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const b=document.querySelector("meta[property=csp-nonce]"),y=(b==null?void 0:b.nonce)||(b==null?void 0:b.getAttribute("nonce"));f=g(c.map(m=>{if(m=rg(m),m in zh)return;zh[m]=!0;const M=m.endsWith(".css"),A=M?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${A}`))return;const k=document.createElement("link");if(k.rel=M?"stylesheet":sg,M||(k.as="script"),k.crossOrigin="",k.href=m,y&&k.setAttribute("nonce",y),document.head.appendChild(k),M)return new Promise(($,J)=>{k.addEventListener("load",$),k.addEventListener("error",()=>J(new Error(`Unable to preload CSS for ${m}`)))})}))}function d(g){const b=new Event("vite:preloadError",{cancelable:!0});if(b.payload=g,window.dispatchEvent(b),!b.defaultPrevented)throw g}return f.then(g=>{for(const b of g||[])b.status==="rejected"&&d(b.reason);return i().catch(d)})};var Wr={exports:{}},ni={};/**
* @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 Oh;function cg(){if(Oh)return ni;Oh=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,f,d){var g=null;if(d!==void 0&&(g=""+d),f.key!==void 0&&(g=""+f.key),"key"in f){d={};for(var b in f)b!=="key"&&(d[b]=f[b])}else d=f;return f=d.ref,{$$typeof:s,type:r,key:g,ref:f!==void 0?f:null,props:d}}return ni.Fragment=i,ni.jsx=c,ni.jsxs=c,ni}var Nh;function og(){return Nh||(Nh=1,Wr.exports=cg()),Wr.exports}var w=og(),Fr={exports:{}},ot={};/**
* @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 Uh;function fg(){if(Uh)return ot;Uh=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),k=Symbol.iterator;function $(x){return x===null||typeof x!="object"?null:(x=k&&x[k]||x["@@iterator"],typeof x=="function"?x:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,L={};function O(x,q,Z){this.props=x,this.context=q,this.refs=L,this.updater=Z||J}O.prototype.isReactComponent={},O.prototype.setState=function(x,q){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,q,"setState")},O.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function N(){}N.prototype=O.prototype;function p(x,q,Z){this.props=x,this.context=q,this.refs=L,this.updater=Z||J}var K=p.prototype=new N;K.constructor=p,X(K,O.prototype),K.isPureReactComponent=!0;var G=Array.isArray;function tt(){}var Q={H:null,A:null,T:null,S:null},Et=Object.prototype.hasOwnProperty;function Qt(x,q,Z){var I=Z.ref;return{$$typeof:s,type:x,key:q,ref:I!==void 0?I:null,props:Z}}function re(x,q){return Qt(x.type,q,x.props)}function le(x){return typeof x=="object"&&x!==null&&x.$$typeof===s}function Ut(x){var q={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(Z){return q[Z]})}var ve=/\/+/g;function pe(x,q){return typeof x=="object"&&x!==null&&x.key!=null?Ut(""+x.key):q.toString(36)}function Ht(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(tt,tt):(x.status="pending",x.then(function(q){x.status==="pending"&&(x.status="fulfilled",x.value=q)},function(q){x.status==="pending"&&(x.status="rejected",x.reason=q)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function U(x,q,Z,I,ct){var ht=typeof x;(ht==="undefined"||ht==="boolean")&&(x=null);var V=!1;if(x===null)V=!0;else switch(ht){case"bigint":case"string":case"number":V=!0;break;case"object":switch(x.$$typeof){case s:case i:V=!0;break;case M:return V=x._init,U(V(x._payload),q,Z,I,ct)}}if(V)return ct=ct(x),V=I===""?"."+pe(x,0):I,G(ct)?(Z="",V!=null&&(Z=V.replace(ve,"$&/")+"/"),U(ct,q,Z,"",function(st){return st})):ct!=null&&(le(ct)&&(ct=re(ct,Z+(ct.key==null||x&&x.key===ct.key?"":(""+ct.key).replace(ve,"$&/")+"/")+V)),q.push(ct)),1;V=0;var Y=I===""?".":I+":";if(G(x))for(var W=0;W<x.length;W++)I=x[W],ht=Y+pe(I,W),V+=U(I,q,Z,ht,ct);else if(W=$(x),typeof W=="function")for(x=W.call(x),W=0;!(I=x.next()).done;)I=I.value,ht=Y+pe(I,W++),V+=U(I,q,Z,ht,ct);else if(ht==="object"){if(typeof x.then=="function")return U(Ht(x),q,Z,I,ct);throw q=String(x),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return V}function T(x,q,Z){if(x==null)return x;var I=[],ct=0;return U(x,I,"","",function(ht){return q.call(Z,ht,ct++)}),I}function P(x){if(x._status===-1){var q=x._result;q=q(),q.then(function(Z){(x._status===0||x._status===-1)&&(x._status=1,x._result=Z)},function(Z){(x._status===0||x._status===-1)&&(x._status=2,x._result=Z)}),x._status===-1&&(x._status=0,x._result=q)}if(x._status===1)return x._result.default;throw x._result}var rt=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},nt={map:T,forEach:function(x,q,Z){T(x,function(){q.apply(this,arguments)},Z)},count:function(x){var q=0;return T(x,function(){q++}),q},toArray:function(x){return T(x,function(q){return q})||[]},only:function(x){if(!le(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ot.Activity=A,ot.Children=nt,ot.Component=O,ot.Fragment=c,ot.Profiler=f,ot.PureComponent=p,ot.StrictMode=r,ot.Suspense=y,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,ot.__COMPILER_RUNTIME={__proto__:null,c:function(x){return Q.H.useMemoCache(x)}},ot.cache=function(x){return function(){return x.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(x,q,Z){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var I=X({},x.props),ct=x.key;if(q!=null)for(ht in q.key!==void 0&&(ct=""+q.key),q)!Et.call(q,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&q.ref===void 0||(I[ht]=q[ht]);var ht=arguments.length-2;if(ht===1)I.children=Z;else if(1<ht){for(var V=Array(ht),Y=0;Y<ht;Y++)V[Y]=arguments[Y+2];I.children=V}return Qt(x.type,ct,I)},ot.createContext=function(x){return x={$$typeof:g,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:d,_context:x},x},ot.createElement=function(x,q,Z){var I,ct={},ht=null;if(q!=null)for(I in q.key!==void 0&&(ht=""+q.key),q)Et.call(q,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ct[I]=q[I]);var V=arguments.length-2;if(V===1)ct.children=Z;else if(1<V){for(var Y=Array(V),W=0;W<V;W++)Y[W]=arguments[W+2];ct.children=Y}if(x&&x.defaultProps)for(I in V=x.defaultProps,V)ct[I]===void 0&&(ct[I]=V[I]);return Qt(x,ht,ct)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(x){return{$$typeof:b,render:x}},ot.isValidElement=le,ot.lazy=function(x){return{$$typeof:M,_payload:{_status:-1,_result:x},_init:P}},ot.memo=function(x,q){return{$$typeof:m,type:x,compare:q===void 0?null:q}},ot.startTransition=function(x){var q=Q.T,Z={};Q.T=Z;try{var I=x(),ct=Q.S;ct!==null&&ct(Z,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(tt,rt)}catch(ht){rt(ht)}finally{q!==null&&Z.types!==null&&(q.types=Z.types),Q.T=q}},ot.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},ot.use=function(x){return Q.H.use(x)},ot.useActionState=function(x,q,Z){return Q.H.useActionState(x,q,Z)},ot.useCallback=function(x,q){return Q.H.useCallback(x,q)},ot.useContext=function(x){return Q.H.useContext(x)},ot.useDebugValue=function(){},ot.useDeferredValue=function(x,q){return Q.H.useDeferredValue(x,q)},ot.useEffect=function(x,q){return Q.H.useEffect(x,q)},ot.useEffectEvent=function(x){return Q.H.useEffectEvent(x)},ot.useId=function(){return Q.H.useId()},ot.useImperativeHandle=function(x,q,Z){return Q.H.useImperativeHandle(x,q,Z)},ot.useInsertionEffect=function(x,q){return Q.H.useInsertionEffect(x,q)},ot.useLayoutEffect=function(x,q){return Q.H.useLayoutEffect(x,q)},ot.useMemo=function(x,q){return Q.H.useMemo(x,q)},ot.useOptimistic=function(x,q){return Q.H.useOptimistic(x,q)},ot.useReducer=function(x,q,Z){return Q.H.useReducer(x,q,Z)},ot.useRef=function(x){return Q.H.useRef(x)},ot.useState=function(x){return Q.H.useState(x)},ot.useSyncExternalStore=function(x,q,Z){return Q.H.useSyncExternalStore(x,q,Z)},ot.useTransition=function(){return Q.H.useTransition()},ot.version="19.2.7",ot}var kh;function yc(){return kh||(kh=1,Fr.exports=fg()),Fr.exports}var E=yc(),Ir={exports:{}},li={},tc={exports:{}},ec={};/**
* @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 jh;function dg(){return jh||(jh=1,(function(s){function i(U,T){var P=U.length;U.push(T);t:for(;0<P;){var rt=P-1>>>1,nt=U[rt];if(0<f(nt,T))U[rt]=T,U[P]=nt,P=rt;else break t}}function c(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var T=U[0],P=U.pop();if(P!==T){U[0]=P;t:for(var rt=0,nt=U.length,x=nt>>>1;rt<x;){var q=2*(rt+1)-1,Z=U[q],I=q+1,ct=U[I];if(0>f(Z,P))I<nt&&0>f(ct,Z)?(U[rt]=ct,U[I]=P,rt=I):(U[rt]=Z,U[q]=P,rt=q);else if(I<nt&&0>f(ct,P))U[rt]=ct,U[I]=P,rt=I;else break t}}return T}function f(U,T){var P=U.sortIndex-T.sortIndex;return P!==0?P:U.id-T.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var g=Date,b=g.now();s.unstable_now=function(){return g.now()-b}}var y=[],m=[],M=1,A=null,k=3,$=!1,J=!1,X=!1,L=!1,O=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;function K(U){for(var T=c(m);T!==null;){if(T.callback===null)r(m);else if(T.startTime<=U)r(m),T.sortIndex=T.expirationTime,i(y,T);else break;T=c(m)}}function G(U){if(X=!1,K(U),!J)if(c(y)!==null)J=!0,tt||(tt=!0,Ut());else{var T=c(m);T!==null&&Ht(G,T.startTime-U)}}var tt=!1,Q=-1,Et=5,Qt=-1;function re(){return L?!0:!(s.unstable_now()-Qt<Et)}function le(){if(L=!1,tt){var U=s.unstable_now();Qt=U;var T=!0;try{t:{J=!1,X&&(X=!1,N(Q),Q=-1),$=!0;var P=k;try{e:{for(K(U),A=c(y);A!==null&&!(A.expirationTime>U&&re());){var rt=A.callback;if(typeof rt=="function"){A.callback=null,k=A.priorityLevel;var nt=rt(A.expirationTime<=U);if(U=s.unstable_now(),typeof nt=="function"){A.callback=nt,K(U),T=!0;break e}A===c(y)&&r(y),K(U)}else r(y);A=c(y)}if(A!==null)T=!0;else{var x=c(m);x!==null&&Ht(G,x.startTime-U),T=!1}}break t}finally{A=null,k=P,$=!1}T=void 0}}finally{T?Ut():tt=!1}}}var Ut;if(typeof p=="function")Ut=function(){p(le)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,pe=ve.port2;ve.port1.onmessage=le,Ut=function(){pe.postMessage(null)}}else Ut=function(){O(le,0)};function Ht(U,T){Q=O(function(){U(s.unstable_now())},T)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(U){U.callback=null},s.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Et=0<U?Math.floor(1e3/U):5},s.unstable_getCurrentPriorityLevel=function(){return k},s.unstable_next=function(U){switch(k){case 1:case 2:case 3:var T=3;break;default:T=k}var P=k;k=T;try{return U()}finally{k=P}},s.unstable_requestPaint=function(){L=!0},s.unstable_runWithPriority=function(U,T){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var P=k;k=U;try{return T()}finally{k=P}},s.unstable_scheduleCallback=function(U,T,P){var rt=s.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?rt+P:rt):P=rt,U){case 1:var nt=-1;break;case 2:nt=250;break;case 5:nt=1073741823;break;case 4:nt=1e4;break;default:nt=5e3}return nt=P+nt,U={id:M++,callback:T,priorityLevel:U,startTime:P,expirationTime:nt,sortIndex:-1},P>rt?(U.sortIndex=P,i(m,U),c(y)===null&&U===c(m)&&(X?(N(Q),Q=-1):X=!0,Ht(G,P-rt))):(U.sortIndex=nt,i(y,U),J||$||(J=!0,tt||(tt=!0,Ut()))),U},s.unstable_shouldYield=re,s.unstable_wrapCallback=function(U){var T=k;return function(){var P=k;k=T;try{return U.apply(this,arguments)}finally{k=P}}}})(ec)),ec}var Lh;function hg(){return Lh||(Lh=1,tc.exports=dg()),tc.exports}var ac={exports:{}},me={};/**
* @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 Bh;function mg(){if(Bh)return me;Bh=1;var s=yc();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)m+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,m,M){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:A==null?null:""+A,children:y,containerInfo:m,implementation:M}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,me.createPortal=function(y,m){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return d(y,m,null,M)},me.flushSync=function(y){var m=g.T,M=r.p;try{if(g.T=null,r.p=2,y)return y()}finally{g.T=m,r.p=M,r.d.f()}},me.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},me.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},me.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var M=m.as,A=b(M,m.crossOrigin),k=typeof m.integrity=="string"?m.integrity:void 0,$=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;M==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:A,integrity:k,fetchPriority:$}):M==="script"&&r.d.X(y,{crossOrigin:A,integrity:k,fetchPriority:$,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},me.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var M=b(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},me.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var M=m.as,A=b(M,m.crossOrigin);r.d.L(y,M,{crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},me.preloadModule=function(y,m){if(typeof y=="string")if(m){var M=b(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},me.requestFormReset=function(y){r.d.r(y)},me.unstable_batchedUpdates=function(y,m){return y(m)},me.useFormState=function(y,m,M){return g.H.useFormState(y,m,M)},me.useFormStatus=function(){return g.H.useHostTransitionStatus()},me.version="19.2.7",me}var Hh;function pg(){if(Hh)return ac.exports;Hh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),ac.exports=mg(),ac.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 qh;function gg(){if(qh)return li;qh=1;var s=hg(),i=yc(),c=pg();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function b(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(r(188))}function m(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,n=e;;){var l=a.return;if(l===null)break;var u=l.alternate;if(u===null){if(n=l.return,n!==null){a=n;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===a)return y(l),t;if(u===n)return y(l),e;u=u.sibling}throw Error(r(188))}if(a.return!==n.return)a=l,n=u;else{for(var o=!1,h=l.child;h;){if(h===a){o=!0,a=l,n=u;break}if(h===n){o=!0,n=l,a=u;break}h=h.sibling}if(!o){for(h=u.child;h;){if(h===a){o=!0,a=u,n=l;break}if(h===n){o=!0,n=u,a=l;break}h=h.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==n)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function M(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=M(t),e!==null)return e;t=t.sibling}return null}var A=Object.assign,k=Symbol.for("react.element"),$=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),p=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),Et=Symbol.for("react.lazy"),Qt=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function Ut(t){return t===null||typeof t!="object"?null:(t=le&&t[le]||t["@@iterator"],typeof t=="function"?t:null)}var ve=Symbol.for("react.client.reference");function pe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ve?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case X:return"Fragment";case O:return"Profiler";case L:return"StrictMode";case G:return"Suspense";case tt:return"SuspenseList";case Qt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case J:return"Portal";case p:return t.displayName||"Context";case N:return(t._context.displayName||"Context")+".Consumer";case K:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Q:return e=t.displayName||null,e!==null?e:pe(t.type)||"Memo";case Et:e=t._payload,t=t._init;try{return pe(t(e))}catch{}}return null}var Ht=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},rt=[],nt=-1;function x(t){return{current:t}}function q(t){0>nt||(t.current=rt[nt],rt[nt]=null,nt--)}function Z(t,e){nt++,rt[nt]=t.current,t.current=e}var I=x(null),ct=x(null),ht=x(null),V=x(null);function Y(t,e){switch(Z(ht,e),Z(ct,t),Z(I,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Id(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Id(e),t=th(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(I),Z(I,t)}function W(){q(I),q(ct),q(ht)}function st(t){t.memoizedState!==null&&Z(V,t);var e=I.current,a=th(e,t.type);e!==a&&(Z(ct,t),Z(I,a))}function lt(t){ct.current===t&&(q(I),q(ct)),V.current===t&&(q(V),Il._currentValue=P)}var ut,Ct;function mt(t){if(ut===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);ut=e&&e[1]||"",Ct=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ut+t+Ct}var xt=!1;function Zt(t,e){if(!t||xt)return"";xt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(z){var C=z}Reflect.construct(t,[],H)}else{try{H.call()}catch(z){C=z}t.call(H.prototype)}}else{try{throw Error()}catch(z){C=z}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),o=u[0],h=u[1];if(o&&h){var v=o.split(`
`),R=h.split(`
`);for(l=n=0;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;for(;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;if(n===v.length||l===R.length)for(n=v.length-1,l=R.length-1;1<=n&&0<=l&&v[n]!==R[l];)l--;for(;1<=n&&0<=l;n--,l--)if(v[n]!==R[l]){if(n!==1||l!==1)do if(n--,l--,0>l||v[n]!==R[l]){var j=`
`+v[n].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=n&&0<=l);break}}}finally{xt=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?mt(a):""}function zt(t,e){switch(t.tag){case 26:case 27:case 5:return mt(t.type);case 16:return mt("Lazy");case 13:return t.child!==e&&e!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Zt(t.type,!1);case 11:return Zt(t.type.render,!1);case 1:return Zt(t.type,!0);case 31:return mt("Activity");default:return""}}function Jt(t){try{var e="",a=null;do e+=zt(t,a),a=t,t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var be=Object.prototype.hasOwnProperty,Kt=s.unstable_scheduleCallback,Me=s.unstable_cancelCallback,ge=s.unstable_shouldYield,ie=s.unstable_requestPaint,qt=s.unstable_now,na=s.unstable_getCurrentPriorityLevel,la=s.unstable_ImmediatePriority,Cc=s.unstable_UserBlockingPriority,di=s.unstable_NormalPriority,qm=s.unstable_LowPriority,zc=s.unstable_IdlePriority,Ym=s.log,Vm=s.unstable_setDisableYieldValue,fl=null,De=null;function Ra(t){if(typeof Ym=="function"&&Vm(t),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(fl,t)}catch{}}var Re=Math.clz32?Math.clz32:Qm,Gm=Math.log,Xm=Math.LN2;function Qm(t){return t>>>=0,t===0?32:31-(Gm(t)/Xm|0)|0}var hi=256,mi=262144,pi=4194304;function an(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function gi(t,e,a){var n=t.pendingLanes;if(n===0)return 0;var l=0,u=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var h=n&134217727;return h!==0?(n=h&~u,n!==0?l=an(n):(o&=h,o!==0?l=an(o):a||(a=h&~t,a!==0&&(l=an(a))))):(h=n&~u,h!==0?l=an(h):o!==0?l=an(o):a||(a=n&~t,a!==0&&(l=an(a)))),l===0?0:e!==0&&e!==l&&(e&u)===0&&(u=l&-l,a=e&-e,u>=a||u===32&&(a&4194048)!==0)?e:l}function dl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Zm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oc(){var t=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),t}function Hu(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function hl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Jm(t,e,a,n,l,u){var o=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var h=t.entanglements,v=t.expirationTimes,R=t.hiddenUpdates;for(a=o&~a;0<a;){var j=31-Re(a),H=1<<j;h[j]=0,v[j]=-1;var C=R[j];if(C!==null)for(R[j]=null,j=0;j<C.length;j++){var z=C[j];z!==null&&(z.lane&=-536870913)}a&=~H}n!==0&&Nc(t,n,0),u!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=u&~(o&~e))}function Nc(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Re(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|a&261930}function Uc(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var n=31-Re(a),l=1<<n;l&e|t[n]&e&&(t[n]|=e),a&=~l}}function kc(t,e){var a=e&-e;return a=(a&42)!==0?1:qu(a),(a&(t.suspendedLanes|e))!==0?0:a}function qu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Yu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function jc(){var t=T.p;return t!==0?t:(t=window.event,t===void 0?32:xh(t.type))}function Lc(t,e){var a=T.p;try{return T.p=t,e()}finally{T.p=a}}var Ca=Math.random().toString(36).slice(2),ce="__reactFiber$"+Ca,Se="__reactProps$"+Ca,xn="__reactContainer$"+Ca,Vu="__reactEvents$"+Ca,Km="__reactListeners$"+Ca,$m="__reactHandles$"+Ca,Bc="__reactResources$"+Ca,ml="__reactMarker$"+Ca;function Gu(t){delete t[ce],delete t[Se],delete t[Vu],delete t[Km],delete t[$m]}function An(t){var e=t[ce];if(e)return e;for(var a=t.parentNode;a;){if(e=a[xn]||a[ce]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=sh(t);t!==null;){if(a=t[ce])return a;t=sh(t)}return e}t=a,a=t.parentNode}return null}function _n(t){if(t=t[ce]||t[xn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function pl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Tn(t){var e=t[Bc];return e||(e=t[Bc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ue(t){t[ml]=!0}var Hc=new Set,qc={};function nn(t,e){Mn(t,e),Mn(t+"Capture",e)}function Mn(t,e){for(qc[t]=e,t=0;t<e.length;t++)Hc.add(e[t])}var Pm=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]*$"),Yc={},Vc={};function Wm(t){return be.call(Vc,t)?!0:be.call(Yc,t)?!1:Pm.test(t)?Vc[t]=!0:(Yc[t]=!0,!1)}function yi(t,e,a){if(Wm(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function vi(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function ca(t,e,a,n){if(n===null)t.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+n)}}function Be(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Gc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Fm(t,e,a){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(o){a=""+o,u.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Xu(t){if(!t._valueTracker){var e=Gc(t)?"checked":"value";t._valueTracker=Fm(t,e,""+t[e])}}function Xc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),n="";return t&&(n=Gc(t)?t.checked?"true":"false":t.value),t=n,t!==a?(e.setValue(t),!0):!1}function bi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Im=/[\n"\\]/g;function He(t){return t.replace(Im,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Qu(t,e,a,n,l,u,o,h){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Be(e)):t.value!==""+Be(e)&&(t.value=""+Be(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Zu(t,o,Be(e)):a!=null?Zu(t,o,Be(a)):n!=null&&t.removeAttribute("value"),l==null&&u!=null&&(t.defaultChecked=!!u),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Be(h):t.removeAttribute("name")}function Qc(t,e,a,n,l,u,o,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Xu(t);return}a=a!=null?""+Be(a):"",e=e!=null?""+Be(e):a,h||e===t.value||(t.value=e),t.defaultValue=e}n=n??l,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=h?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Xu(t)}function Zu(t,e,a){e==="number"&&bi(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Dn(t,e,a,n){if(t=t.options,e){e={};for(var l=0;l<a.length;l++)e["$"+a[l]]=!0;for(a=0;a<t.length;a++)l=e.hasOwnProperty("$"+t[a].value),t[a].selected!==l&&(t[a].selected=l),l&&n&&(t[a].defaultSelected=!0)}else{for(a=""+Be(a),e=null,l=0;l<t.length;l++){if(t[l].value===a){t[l].selected=!0,n&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Zc(t,e,a){if(e!=null&&(e=""+Be(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Be(a):""}function Jc(t,e,a,n){if(e==null){if(n!=null){if(a!=null)throw Error(r(92));if(Ht(n)){if(1<n.length)throw Error(r(93));n=n[0]}a=n}a==null&&(a=""),e=a}a=Be(e),t.defaultValue=a,n=t.textContent,n===a&&n!==""&&n!==null&&(t.value=n),Xu(t)}function Rn(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var t0=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 Kc(t,e,a){var n=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,a):typeof a!="number"||a===0||t0.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function $c(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var l in e)n=e[l],e.hasOwnProperty(l)&&a[l]!==n&&Kc(t,l,n)}else for(var u in e)e.hasOwnProperty(u)&&Kc(t,u,e[u])}function Ju(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e0=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"]]),a0=/^[\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 Si(t){return a0.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function oa(){}var Ku=null;function $u(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Cn=null,zn=null;function Pc(t){var e=_n(t);if(e&&(t=e.stateNode)){var a=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Qu(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+He(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var n=a[e];if(n!==t&&n.form===t.form){var l=n[Se]||null;if(!l)throw Error(r(90));Qu(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<a.length;e++)n=a[e],n.form===t.form&&Xc(n)}break t;case"textarea":Zc(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Dn(t,!!a.multiple,e,!1)}}}var Pu=!1;function Wc(t,e,a){if(Pu)return t(e,a);Pu=!0;try{var n=t(e);return n}finally{if(Pu=!1,(Cn!==null||zn!==null)&&(su(),Cn&&(e=Cn,t=zn,zn=Cn=null,Pc(e),t)))for(e=0;e<t.length;e++)Pc(t[e])}}function gl(t,e){var a=t.stateNode;if(a===null)return null;var n=a[Se]||null;if(n===null)return null;a=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wu=!1;if(fa)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){Wu=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{Wu=!1}var za=null,Fu=null,wi=null;function Fc(){if(wi)return wi;var t,e=Fu,a=e.length,n,l="value"in za?za.value:za.textContent,u=l.length;for(t=0;t<a&&e[t]===l[t];t++);var o=a-t;for(n=1;n<=o&&e[a-n]===l[u-n];n++);return wi=l.slice(t,1<n?1-n:void 0)}function Ei(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function xi(){return!0}function Ic(){return!1}function we(t){function e(a,n,l,u,o){this._reactName=a,this._targetInst=l,this.type=n,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(a=t[h],this[h]=a?a(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?xi:Ic,this.isPropagationStopped=Ic,this}return A(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=xi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=xi)},persist:function(){},isPersistent:xi}),e}var ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=we(ln),vl=A({},ln,{view:0,detail:0}),n0=we(vl),Iu,ts,bl,_i=A({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==bl&&(bl&&t.type==="mousemove"?(Iu=t.screenX-bl.screenX,ts=t.screenY-bl.screenY):ts=Iu=0,bl=t),Iu)},movementY:function(t){return"movementY"in t?t.movementY:ts}}),to=we(_i),l0=A({},_i,{dataTransfer:0}),i0=we(l0),u0=A({},vl,{relatedTarget:0}),es=we(u0),s0=A({},ln,{animationName:0,elapsedTime:0,pseudoElement:0}),r0=we(s0),c0=A({},ln,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),o0=we(c0),f0=A({},ln,{data:0}),eo=we(f0),d0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},h0={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 p0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=m0[t])?!!e[t]:!1}function as(){return p0}var g0=A({},vl,{key:function(t){if(t.key){var e=d0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ei(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?h0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(t){return t.type==="keypress"?Ei(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ei(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),y0=we(g0),v0=A({},_i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ao=we(v0),b0=A({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),S0=we(b0),w0=A({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),E0=we(w0),x0=A({},_i,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),A0=we(x0),_0=A({},ln,{newState:0,oldState:0}),T0=we(_0),M0=[9,13,27,32],ns=fa&&"CompositionEvent"in window,Sl=null;fa&&"documentMode"in document&&(Sl=document.documentMode);var D0=fa&&"TextEvent"in window&&!Sl,no=fa&&(!ns||Sl&&8<Sl&&11>=Sl),lo=" ",io=!1;function uo(t,e){switch(t){case"keyup":return M0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function so(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function R0(t,e){switch(t){case"compositionend":return so(e);case"keypress":return e.which!==32?null:(io=!0,lo);case"textInput":return t=e.data,t===lo&&io?null:t;default:return null}}function C0(t,e){if(On)return t==="compositionend"||!ns&&uo(t,e)?(t=Fc(),wi=Fu=za=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return no&&e.locale!=="ko"?null:e.data;default:return null}}var z0={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 ro(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!z0[t.type]:e==="textarea"}function co(t,e,a,n){Cn?zn?zn.push(n):zn=[n]:Cn=n,e=mu(e,"onChange"),0<e.length&&(a=new Ai("onChange","change",null,a,n),t.push({event:a,listeners:e}))}var wl=null,El=null;function O0(t){Jd(t,0)}function Ti(t){var e=pl(t);if(Xc(e))return t}function oo(t,e){if(t==="change")return e}var fo=!1;if(fa){var ls;if(fa){var is="oninput"in document;if(!is){var ho=document.createElement("div");ho.setAttribute("oninput","return;"),is=typeof ho.oninput=="function"}ls=is}else ls=!1;fo=ls&&(!document.documentMode||9<document.documentMode)}function mo(){wl&&(wl.detachEvent("onpropertychange",po),El=wl=null)}function po(t){if(t.propertyName==="value"&&Ti(El)){var e=[];co(e,El,t,$u(t)),Wc(O0,e)}}function N0(t,e,a){t==="focusin"?(mo(),wl=e,El=a,wl.attachEvent("onpropertychange",po)):t==="focusout"&&mo()}function U0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ti(El)}function k0(t,e){if(t==="click")return Ti(e)}function j0(t,e){if(t==="input"||t==="change")return Ti(e)}function L0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:L0;function xl(t,e){if(Ce(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),n=Object.keys(e);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var l=a[n];if(!be.call(e,l)||!Ce(t[l],e[l]))return!1}return!0}function go(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yo(t,e){var a=go(t);t=0;for(var n;a;){if(a.nodeType===3){if(n=t+a.textContent.length,t<=e&&n>=e)return{node:a,offset:e-t};t=n}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=go(a)}}function vo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?vo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function bo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=bi(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=bi(t.document)}return e}function us(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var B0=fa&&"documentMode"in document&&11>=document.documentMode,Nn=null,ss=null,Al=null,rs=!1;function So(t,e,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;rs||Nn==null||Nn!==bi(n)||(n=Nn,"selectionStart"in n&&us(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Al&&xl(Al,n)||(Al=n,n=mu(ss,"onSelect"),0<n.length&&(e=new Ai("onSelect","select",null,e,a),t.push({event:e,listeners:n}),e.target=Nn)))}function un(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Un={animationend:un("Animation","AnimationEnd"),animationiteration:un("Animation","AnimationIteration"),animationstart:un("Animation","AnimationStart"),transitionrun:un("Transition","TransitionRun"),transitionstart:un("Transition","TransitionStart"),transitioncancel:un("Transition","TransitionCancel"),transitionend:un("Transition","TransitionEnd")},cs={},wo={};fa&&(wo=document.createElement("div").style,"AnimationEvent"in window||(delete Un.animationend.animation,delete Un.animationiteration.animation,delete Un.animationstart.animation),"TransitionEvent"in window||delete Un.transitionend.transition);function sn(t){if(cs[t])return cs[t];if(!Un[t])return t;var e=Un[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in wo)return cs[t]=e[a];return t}var Eo=sn("animationend"),xo=sn("animationiteration"),Ao=sn("animationstart"),H0=sn("transitionrun"),q0=sn("transitionstart"),Y0=sn("transitioncancel"),_o=sn("transitionend"),To=new Map,os="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(" ");os.push("scrollEnd");function Pe(t,e){To.set(t,e),nn(e,[t])}var Mi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},qe=[],kn=0,fs=0;function Di(){for(var t=kn,e=fs=kn=0;e<t;){var a=qe[e];qe[e++]=null;var n=qe[e];qe[e++]=null;var l=qe[e];qe[e++]=null;var u=qe[e];if(qe[e++]=null,n!==null&&l!==null){var o=n.pending;o===null?l.next=l:(l.next=o.next,o.next=l),n.pending=l}u!==0&&Mo(a,l,u)}}function Ri(t,e,a,n){qe[kn++]=t,qe[kn++]=e,qe[kn++]=a,qe[kn++]=n,fs|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function ds(t,e,a,n){return Ri(t,e,a,n),Ci(t)}function rn(t,e){return Ri(t,null,null,e),Ci(t)}function Mo(t,e,a){t.lanes|=a;var n=t.alternate;n!==null&&(n.lanes|=a);for(var l=!1,u=t.return;u!==null;)u.childLanes|=a,n=u.alternate,n!==null&&(n.childLanes|=a),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(l=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,l&&e!==null&&(l=31-Re(a),t=u.hiddenUpdates,n=t[l],n===null?t[l]=[e]:n.push(e),e.lane=a|536870912),u):null}function Ci(t){if(50<Zl)throw Zl=0,wr=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var jn={};function V0(t,e,a,n){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(t,e,a,n){return new V0(t,e,a,n)}function hs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function da(t,e){var a=t.alternate;return a===null?(a=ze(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Do(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function zi(t,e,a,n,l,u){var o=0;if(n=t,typeof t=="function")hs(t)&&(o=1);else if(typeof t=="string")o=Jp(t,a,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Qt:return t=ze(31,a,e,l),t.elementType=Qt,t.lanes=u,t;case X:return cn(a.children,l,u,e);case L:o=8,l|=24;break;case O:return t=ze(12,a,e,l|2),t.elementType=O,t.lanes=u,t;case G:return t=ze(13,a,e,l),t.elementType=G,t.lanes=u,t;case tt:return t=ze(19,a,e,l),t.elementType=tt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case p:o=10;break t;case N:o=9;break t;case K:o=11;break t;case Q:o=14;break t;case Et:o=16,n=null;break t}o=29,a=Error(r(130,t===null?"null":typeof t,"")),n=null}return e=ze(o,a,e,l),e.elementType=t,e.type=n,e.lanes=u,e}function cn(t,e,a,n){return t=ze(7,t,n,e),t.lanes=a,t}function ms(t,e,a){return t=ze(6,t,null,e),t.lanes=a,t}function Ro(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function ps(t,e,a){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Co=new WeakMap;function Ye(t,e){if(typeof t=="object"&&t!==null){var a=Co.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Jt(e)},Co.set(t,e),e)}return{value:t,source:e,stack:Jt(e)}}var Ln=[],Bn=0,Oi=null,_l=0,Ve=[],Ge=0,Oa=null,ia=1,ua="";function ha(t,e){Ln[Bn++]=_l,Ln[Bn++]=Oi,Oi=t,_l=e}function zo(t,e,a){Ve[Ge++]=ia,Ve[Ge++]=ua,Ve[Ge++]=Oa,Oa=t;var n=ia;t=ua;var l=32-Re(n)-1;n&=~(1<<l),a+=1;var u=32-Re(e)+l;if(30<u){var o=l-l%5;u=(n&(1<<o)-1).toString(32),n>>=o,l-=o,ia=1<<32-Re(e)+l|a<<l|n,ua=u+t}else ia=1<<u|a<<l|n,ua=t}function gs(t){t.return!==null&&(ha(t,1),zo(t,1,0))}function ys(t){for(;t===Oi;)Oi=Ln[--Bn],Ln[Bn]=null,_l=Ln[--Bn],Ln[Bn]=null;for(;t===Oa;)Oa=Ve[--Ge],Ve[Ge]=null,ua=Ve[--Ge],Ve[Ge]=null,ia=Ve[--Ge],Ve[Ge]=null}function Oo(t,e){Ve[Ge++]=ia,Ve[Ge++]=ua,Ve[Ge++]=Oa,ia=e.id,ua=e.overflow,Oa=t}var oe=null,Yt=null,wt=!1,Na=null,Xe=!1,vs=Error(r(519));function Ua(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Tl(Ye(e,t)),vs}function No(t){var e=t.stateNode,a=t.type,n=t.memoizedProps;switch(e[ce]=t,e[Se]=n,a){case"dialog":yt("cancel",e),yt("close",e);break;case"iframe":case"object":case"embed":yt("load",e);break;case"video":case"audio":for(a=0;a<Kl.length;a++)yt(Kl[a],e);break;case"source":yt("error",e);break;case"img":case"image":case"link":yt("error",e),yt("load",e);break;case"details":yt("toggle",e);break;case"input":yt("invalid",e),Qc(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":yt("invalid",e);break;case"textarea":yt("invalid",e),Jc(e,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||n.suppressHydrationWarning===!0||Wd(e.textContent,a)?(n.popover!=null&&(yt("beforetoggle",e),yt("toggle",e)),n.onScroll!=null&&yt("scroll",e),n.onScrollEnd!=null&&yt("scrollend",e),n.onClick!=null&&(e.onclick=oa),e=!0):e=!1,e||Ua(t,!0)}function Uo(t){for(oe=t.return;oe;)switch(oe.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:oe=oe.return}}function Hn(t){if(t!==oe)return!1;if(!wt)return Uo(t),wt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||jr(t.type,t.memoizedProps)),a=!a),a&&Yt&&Ua(t),Uo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=uh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Yt=uh(t)}else e===27?(e=Yt,Ka(t.type)?(t=Yr,Yr=null,Yt=t):Yt=e):Yt=oe?Ze(t.stateNode.nextSibling):null;return!0}function on(){Yt=oe=null,wt=!1}function bs(){var t=Na;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Na=null),t}function Tl(t){Na===null?Na=[t]:Na.push(t)}var Ss=x(null),fn=null,ma=null;function ka(t,e,a){Z(Ss,e._currentValue),e._currentValue=a}function pa(t){t._currentValue=Ss.current,q(Ss)}function ws(t,e,a){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===a)break;t=t.return}}function Es(t,e,a,n){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){var o=l.child;u=u.firstContext;t:for(;u!==null;){var h=u;u=l;for(var v=0;v<e.length;v++)if(h.context===e[v]){u.lanes|=a,h=u.alternate,h!==null&&(h.lanes|=a),ws(u.return,a,t),n||(o=null);break t}u=h.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(r(341));o.lanes|=a,u=o.alternate,u!==null&&(u.lanes|=a),ws(o,a,t),o=null}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function qn(t,e,a,n){t=null;for(var l=e,u=!1;l!==null;){if(!u){if((l.flags&524288)!==0)u=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var h=l.type;Ce(l.pendingProps.value,o.value)||(t!==null?t.push(h):t=[h])}}else if(l===V.current){if(o=l.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Il):t=[Il])}l=l.return}t!==null&&Es(e,t,a,n),e.flags|=262144}function Ni(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function dn(t){fn=t,ma=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function fe(t){return ko(fn,t)}function Ui(t,e){return fn===null&&dn(t),ko(t,e)}function ko(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},ma===null){if(t===null)throw Error(r(308));ma=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ma=ma.next=e;return a}var G0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},X0=s.unstable_scheduleCallback,Q0=s.unstable_NormalPriority,It={$$typeof:p,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xs(){return{controller:new G0,data:new Map,refCount:0}}function Ml(t){t.refCount--,t.refCount===0&&X0(Q0,function(){t.controller.abort()})}var Dl=null,As=0,Yn=0,Vn=null;function Z0(t,e){if(Dl===null){var a=Dl=[];As=0,Yn=Mr(),Vn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return As++,e.then(jo,jo),e}function jo(){if(--As===0&&Dl!==null){Vn!==null&&(Vn.status="fulfilled");var t=Dl;Dl=null,Yn=0,Vn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function J0(t,e){var a=[],n={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var l=0;l<a.length;l++)(0,a[l])(e)},function(l){for(n.status="rejected",n.reason=l,l=0;l<a.length;l++)(0,a[l])(void 0)}),n}var Lo=U.S;U.S=function(t,e){wd=qt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Z0(t,e),Lo!==null&&Lo(t,e)};var hn=x(null);function _s(){var t=hn.current;return t!==null?t:Bt.pooledCache}function ki(t,e){e===null?Z(hn,hn.current):Z(hn,e.pool)}function Bo(){var t=_s();return t===null?null:{parent:It._currentValue,pool:t}}var Gn=Error(r(460)),Ts=Error(r(474)),ji=Error(r(542)),Li={then:function(){}};function Ho(t){return t=t.status,t==="fulfilled"||t==="rejected"}function qo(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(oa,oa),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Vo(t),t;default:if(typeof e.status=="string")e.then(oa,oa);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=n}},function(n){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Vo(t),t}throw pn=e,Gn}}function mn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(pn=a,Gn):a}}var pn=null;function Yo(){if(pn===null)throw Error(r(459));var t=pn;return pn=null,t}function Vo(t){if(t===Gn||t===ji)throw Error(r(483))}var Xn=null,Rl=0;function Bi(t){var e=Rl;return Rl+=1,Xn===null&&(Xn=[]),qo(Xn,t,e)}function Cl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Hi(t,e){throw e.$$typeof===k?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Go(t){function e(_,S){if(t){var D=_.deletions;D===null?(_.deletions=[S],_.flags|=16):D.push(S)}}function a(_,S){if(!t)return null;for(;S!==null;)e(_,S),S=S.sibling;return null}function n(_){for(var S=new Map;_!==null;)_.key!==null?S.set(_.key,_):S.set(_.index,_),_=_.sibling;return S}function l(_,S){return _=da(_,S),_.index=0,_.sibling=null,_}function u(_,S,D){return _.index=D,t?(D=_.alternate,D!==null?(D=D.index,D<S?(_.flags|=67108866,S):D):(_.flags|=67108866,S)):(_.flags|=1048576,S)}function o(_){return t&&_.alternate===null&&(_.flags|=67108866),_}function h(_,S,D,B){return S===null||S.tag!==6?(S=ms(D,_.mode,B),S.return=_,S):(S=l(S,D),S.return=_,S)}function v(_,S,D,B){var at=D.type;return at===X?j(_,S,D.props.children,B,D.key):S!==null&&(S.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&mn(at)===S.type)?(S=l(S,D.props),Cl(S,D),S.return=_,S):(S=zi(D.type,D.key,D.props,null,_.mode,B),Cl(S,D),S.return=_,S)}function R(_,S,D,B){return S===null||S.tag!==4||S.stateNode.containerInfo!==D.containerInfo||S.stateNode.implementation!==D.implementation?(S=ps(D,_.mode,B),S.return=_,S):(S=l(S,D.children||[]),S.return=_,S)}function j(_,S,D,B,at){return S===null||S.tag!==7?(S=cn(D,_.mode,B,at),S.return=_,S):(S=l(S,D),S.return=_,S)}function H(_,S,D){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=ms(""+S,_.mode,D),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case $:return D=zi(S.type,S.key,S.props,null,_.mode,D),Cl(D,S),D.return=_,D;case J:return S=ps(S,_.mode,D),S.return=_,S;case Et:return S=mn(S),H(_,S,D)}if(Ht(S)||Ut(S))return S=cn(S,_.mode,D,null),S.return=_,S;if(typeof S.then=="function")return H(_,Bi(S),D);if(S.$$typeof===p)return H(_,Ui(_,S),D);Hi(_,S)}return null}function C(_,S,D,B){var at=S!==null?S.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return at!==null?null:h(_,S,""+D,B);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case $:return D.key===at?v(_,S,D,B):null;case J:return D.key===at?R(_,S,D,B):null;case Et:return D=mn(D),C(_,S,D,B)}if(Ht(D)||Ut(D))return at!==null?null:j(_,S,D,B,null);if(typeof D.then=="function")return C(_,S,Bi(D),B);if(D.$$typeof===p)return C(_,S,Ui(_,D),B);Hi(_,D)}return null}function z(_,S,D,B,at){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return _=_.get(D)||null,h(S,_,""+B,at);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case $:return _=_.get(B.key===null?D:B.key)||null,v(S,_,B,at);case J:return _=_.get(B.key===null?D:B.key)||null,R(S,_,B,at);case Et:return B=mn(B),z(_,S,D,B,at)}if(Ht(B)||Ut(B))return _=_.get(D)||null,j(S,_,B,at,null);if(typeof B.then=="function")return z(_,S,D,Bi(B),at);if(B.$$typeof===p)return z(_,S,D,Ui(S,B),at);Hi(S,B)}return null}function F(_,S,D,B){for(var at=null,At=null,et=S,dt=S=0,bt=null;et!==null&&dt<D.length;dt++){et.index>dt?(bt=et,et=null):bt=et.sibling;var _t=C(_,et,D[dt],B);if(_t===null){et===null&&(et=bt);break}t&&et&&_t.alternate===null&&e(_,et),S=u(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t,et=bt}if(dt===D.length)return a(_,et),wt&&ha(_,dt),at;if(et===null){for(;dt<D.length;dt++)et=H(_,D[dt],B),et!==null&&(S=u(et,S,dt),At===null?at=et:At.sibling=et,At=et);return wt&&ha(_,dt),at}for(et=n(et);dt<D.length;dt++)bt=z(et,_,dt,D[dt],B),bt!==null&&(t&&bt.alternate!==null&&et.delete(bt.key===null?dt:bt.key),S=u(bt,S,dt),At===null?at=bt:At.sibling=bt,At=bt);return t&&et.forEach(function(Ia){return e(_,Ia)}),wt&&ha(_,dt),at}function it(_,S,D,B){if(D==null)throw Error(r(151));for(var at=null,At=null,et=S,dt=S=0,bt=null,_t=D.next();et!==null&&!_t.done;dt++,_t=D.next()){et.index>dt?(bt=et,et=null):bt=et.sibling;var Ia=C(_,et,_t.value,B);if(Ia===null){et===null&&(et=bt);break}t&&et&&Ia.alternate===null&&e(_,et),S=u(Ia,S,dt),At===null?at=Ia:At.sibling=Ia,At=Ia,et=bt}if(_t.done)return a(_,et),wt&&ha(_,dt),at;if(et===null){for(;!_t.done;dt++,_t=D.next())_t=H(_,_t.value,B),_t!==null&&(S=u(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t);return wt&&ha(_,dt),at}for(et=n(et);!_t.done;dt++,_t=D.next())_t=z(et,_,dt,_t.value,B),_t!==null&&(t&&_t.alternate!==null&&et.delete(_t.key===null?dt:_t.key),S=u(_t,S,dt),At===null?at=_t:At.sibling=_t,At=_t);return t&&et.forEach(function(lg){return e(_,lg)}),wt&&ha(_,dt),at}function Lt(_,S,D,B){if(typeof D=="object"&&D!==null&&D.type===X&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case $:t:{for(var at=D.key;S!==null;){if(S.key===at){if(at=D.type,at===X){if(S.tag===7){a(_,S.sibling),B=l(S,D.props.children),B.return=_,_=B;break t}}else if(S.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===Et&&mn(at)===S.type){a(_,S.sibling),B=l(S,D.props),Cl(B,D),B.return=_,_=B;break t}a(_,S);break}else e(_,S);S=S.sibling}D.type===X?(B=cn(D.props.children,_.mode,B,D.key),B.return=_,_=B):(B=zi(D.type,D.key,D.props,null,_.mode,B),Cl(B,D),B.return=_,_=B)}return o(_);case J:t:{for(at=D.key;S!==null;){if(S.key===at)if(S.tag===4&&S.stateNode.containerInfo===D.containerInfo&&S.stateNode.implementation===D.implementation){a(_,S.sibling),B=l(S,D.children||[]),B.return=_,_=B;break t}else{a(_,S);break}else e(_,S);S=S.sibling}B=ps(D,_.mode,B),B.return=_,_=B}return o(_);case Et:return D=mn(D),Lt(_,S,D,B)}if(Ht(D))return F(_,S,D,B);if(Ut(D)){if(at=Ut(D),typeof at!="function")throw Error(r(150));return D=at.call(D),it(_,S,D,B)}if(typeof D.then=="function")return Lt(_,S,Bi(D),B);if(D.$$typeof===p)return Lt(_,S,Ui(_,D),B);Hi(_,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,S!==null&&S.tag===6?(a(_,S.sibling),B=l(S,D),B.return=_,_=B):(a(_,S),B=ms(D,_.mode,B),B.return=_,_=B),o(_)):a(_,S)}return function(_,S,D,B){try{Rl=0;var at=Lt(_,S,D,B);return Xn=null,at}catch(et){if(et===Gn||et===ji)throw et;var At=ze(29,et,null,_.mode);return At.lanes=B,At.return=_,At}finally{}}}var gn=Go(!0),Xo=Go(!1),ja=!1;function Ms(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ds(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function La(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ba(t,e,a){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Mt&2)!==0){var l=n.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),n.pending=e,e=Ci(t),Mo(t,null,a),e}return Ri(t,n,e,a),Ci(t)}function zl(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Uc(t,a)}}function Rs(t,e){var a=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var l=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?l=u=o:u=u.next=o,a=a.next}while(a!==null);u===null?l=u=e:u=u.next=e}else l=u=e;a={baseState:n.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Cs=!1;function Ol(){if(Cs){var t=Vn;if(t!==null)throw t}}function Nl(t,e,a,n){Cs=!1;var l=t.updateQueue;ja=!1;var u=l.firstBaseUpdate,o=l.lastBaseUpdate,h=l.shared.pending;if(h!==null){l.shared.pending=null;var v=h,R=v.next;v.next=null,o===null?u=R:o.next=R,o=v;var j=t.alternate;j!==null&&(j=j.updateQueue,h=j.lastBaseUpdate,h!==o&&(h===null?j.firstBaseUpdate=R:h.next=R,j.lastBaseUpdate=v))}if(u!==null){var H=l.baseState;o=0,j=R=v=null,h=u;do{var C=h.lane&-536870913,z=C!==h.lane;if(z?(vt&C)===C:(n&C)===C){C!==0&&C===Yn&&(Cs=!0),j!==null&&(j=j.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var F=t,it=h;C=e;var Lt=a;switch(it.tag){case 1:if(F=it.payload,typeof F=="function"){H=F.call(Lt,H,C);break t}H=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=it.payload,C=typeof F=="function"?F.call(Lt,H,C):F,C==null)break t;H=A({},H,C);break t;case 2:ja=!0}}C=h.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=l.callbacks,z===null?l.callbacks=[C]:z.push(C))}else z={lane:C,tag:h.tag,payload:h.payload,callback:h.callback,next:null},j===null?(R=j=z,v=H):j=j.next=z,o|=C;if(h=h.next,h===null){if(h=l.shared.pending,h===null)break;z=h,h=z.next,z.next=null,l.lastBaseUpdate=z,l.shared.pending=null}}while(!0);j===null&&(v=H),l.baseState=v,l.firstBaseUpdate=R,l.lastBaseUpdate=j,u===null&&(l.shared.lanes=0),Ga|=o,t.lanes=o,t.memoizedState=H}}function Qo(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Zo(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Qo(a[t],e)}var Qn=x(null),qi=x(0);function Jo(t,e){t=Aa,Z(qi,t),Z(Qn,e),Aa=t|e.baseLanes}function zs(){Z(qi,Aa),Z(Qn,Qn.current)}function Os(){Aa=qi.current,q(Qn),q(qi)}var Oe=x(null),Qe=null;function Ha(t){var e=t.alternate;Z(Wt,Wt.current&1),Z(Oe,t),Qe===null&&(e===null||Qn.current!==null||e.memoizedState!==null)&&(Qe=t)}function Ns(t){Z(Wt,Wt.current),Z(Oe,t),Qe===null&&(Qe=t)}function Ko(t){t.tag===22?(Z(Wt,Wt.current),Z(Oe,t),Qe===null&&(Qe=t)):qa()}function qa(){Z(Wt,Wt.current),Z(Oe,Oe.current)}function Ne(t){q(Oe),Qe===t&&(Qe=null),q(Wt)}var Wt=x(0);function Yi(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hr(a)||qr(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ga=0,ft=null,kt=null,te=null,Vi=!1,Zn=!1,yn=!1,Gi=0,Ul=0,Jn=null,K0=0;function $t(){throw Error(r(321))}function Us(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ce(t[a],e[a]))return!1;return!0}function ks(t,e,a,n,l,u){return ga=u,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Of:Ps,yn=!1,u=a(n,l),yn=!1,Zn&&(u=Po(e,a,n,l)),$o(t),u}function $o(t){U.H=Ll;var e=kt!==null&&kt.next!==null;if(ga=0,te=kt=ft=null,Vi=!1,Ul=0,Jn=null,e)throw Error(r(300));t===null||ee||(t=t.dependencies,t!==null&&Ni(t)&&(ee=!0))}function Po(t,e,a,n){ft=t;var l=0;do{if(Zn&&(Jn=null),Ul=0,Zn=!1,25<=l)throw Error(r(301));if(l+=1,te=kt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=Nf,u=e(a,n)}while(Zn);return u}function $0(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?kl(e):e,t=t.useState()[0],(kt!==null?kt.memoizedState:null)!==t&&(ft.flags|=1024),e}function js(){var t=Gi!==0;return Gi=0,t}function Ls(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Bs(t){if(Vi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Vi=!1}ga=0,te=kt=ft=null,Zn=!1,Ul=Gi=0,Jn=null}function ye(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?ft.memoizedState=te=t:te=te.next=t,te}function Ft(){if(kt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=kt.next;var e=te===null?ft.memoizedState:te.next;if(e!==null)te=e,kt=t;else{if(t===null)throw ft.alternate===null?Error(r(467)):Error(r(310));kt=t,t={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},te===null?ft.memoizedState=te=t:te=te.next=t}return te}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(t){var e=Ul;return Ul+=1,Jn===null&&(Jn=[]),t=qo(Jn,t,e),e=ft,(te===null?e.memoizedState:te.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Of:Ps),t}function Qi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return kl(t);if(t.$$typeof===p)return fe(t)}throw Error(r(438,String(t)))}function Hs(t){var e=null,a=ft.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var n=ft.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Xi(),ft.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),n=0;n<t;n++)a[n]=re;return e.index++,a}function ya(t,e){return typeof e=="function"?e(t):e}function Zi(t){var e=Ft();return qs(e,kt,t)}function qs(t,e,a){var n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=a;var l=t.baseQueue,u=n.pending;if(u!==null){if(l!==null){var o=l.next;l.next=u.next,u.next=o}e.baseQueue=l=u,n.pending=null}if(u=t.baseState,l===null)t.memoizedState=u;else{e=l.next;var h=o=null,v=null,R=e,j=!1;do{var H=R.lane&-536870913;if(H!==R.lane?(vt&H)===H:(ga&H)===H){var C=R.revertLane;if(C===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),H===Yn&&(j=!0);else if((ga&C)===C){R=R.next,C===Yn&&(j=!0);continue}else H={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(h=v=H,o=u):v=v.next=H,ft.lanes|=C,Ga|=C;H=R.action,yn&&a(u,H),u=R.hasEagerState?R.eagerState:a(u,H)}else C={lane:H,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},v===null?(h=v=C,o=u):v=v.next=C,ft.lanes|=H,Ga|=H;R=R.next}while(R!==null&&R!==e);if(v===null?o=u:v.next=h,!Ce(u,t.memoizedState)&&(ee=!0,j&&(a=Vn,a!==null)))throw a;t.memoizedState=u,t.baseState=o,t.baseQueue=v,n.lastRenderedState=u}return l===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Ys(t){var e=Ft(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var n=a.dispatch,l=a.pending,u=e.memoizedState;if(l!==null){a.pending=null;var o=l=l.next;do u=t(u,o.action),o=o.next;while(o!==l);Ce(u,e.memoizedState)||(ee=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),a.lastRenderedState=u}return[u,n]}function Wo(t,e,a){var n=ft,l=Ft(),u=wt;if(u){if(a===void 0)throw Error(r(407));a=a()}else a=e();var o=!Ce((kt||l).memoizedState,a);if(o&&(l.memoizedState=a,ee=!0),l=l.queue,Xs(tf.bind(null,n,l,t),[t]),l.getSnapshot!==e||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,Kn(9,{destroy:void 0},Io.bind(null,n,l,a,e),null),Bt===null)throw Error(r(349));u||(ga&127)!==0||Fo(n,e,a)}return a}function Fo(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=ft.updateQueue,e===null?(e=Xi(),ft.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function Io(t,e,a,n){e.value=a,e.getSnapshot=n,ef(e)&&af(t)}function tf(t,e,a){return a(function(){ef(e)&&af(t)})}function ef(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ce(t,a)}catch{return!0}}function af(t){var e=rn(t,2);e!==null&&Te(e,t,2)}function Vs(t){var e=ye();if(typeof t=="function"){var a=t;if(t=a(),yn){Ra(!0);try{a()}finally{Ra(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:t},e}function nf(t,e,a,n){return t.baseState=a,qs(t,kt,typeof n=="function"?n:ya)}function P0(t,e,a,n,l){if($i(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};U.T!==null?a(!0):u.isTransition=!1,n(u),a=e.pending,a===null?(u.next=e.pending=u,lf(e,u)):(u.next=a.next,e.pending=a.next=u)}}function lf(t,e){var a=e.action,n=e.payload,l=t.state;if(e.isTransition){var u=U.T,o={};U.T=o;try{var h=a(l,n),v=U.S;v!==null&&v(o,h),uf(t,e,h)}catch(R){Gs(t,e,R)}finally{u!==null&&o.types!==null&&(u.types=o.types),U.T=u}}else try{u=a(l,n),uf(t,e,u)}catch(R){Gs(t,e,R)}}function uf(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){sf(t,e,n)},function(n){return Gs(t,e,n)}):sf(t,e,a)}function sf(t,e,a){e.status="fulfilled",e.value=a,rf(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,lf(t,a)))}function Gs(t,e,a){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=a,rf(e),e=e.next;while(e!==n)}t.action=null}function rf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function cf(t,e){return e}function of(t,e){if(wt){var a=Bt.formState;if(a!==null){t:{var n=ft;if(wt){if(Yt){e:{for(var l=Yt,u=Xe;l.nodeType!==8;){if(!u){l=null;break e}if(l=Ze(l.nextSibling),l===null){l=null;break e}}u=l.data,l=u==="F!"||u==="F"?l:null}if(l){Yt=Ze(l.nextSibling),n=l.data==="F!";break t}}Ua(n)}n=!1}n&&(e=a[0])}}return a=ye(),a.memoizedState=a.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cf,lastRenderedState:e},a.queue=n,a=Rf.bind(null,ft,n),n.dispatch=a,n=Vs(!1),u=$s.bind(null,ft,!1,n.queue),n=ye(),l={state:e,dispatch:null,action:t,pending:null},n.queue=l,a=P0.bind(null,ft,l,u,a),l.dispatch=a,n.memoizedState=t,[e,a,!1]}function ff(t){var e=Ft();return df(e,kt,t)}function df(t,e,a){if(e=qs(t,e,cf)[0],t=Zi(ya)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=kl(e)}catch(o){throw o===Gn?ji:o}else n=e;e=Ft();var l=e.queue,u=l.dispatch;return a!==e.memoizedState&&(ft.flags|=2048,Kn(9,{destroy:void 0},W0.bind(null,l,a),null)),[n,u,t]}function W0(t,e){t.action=e}function hf(t){var e=Ft(),a=kt;if(a!==null)return df(e,a,t);Ft(),e=e.memoizedState,a=Ft();var n=a.queue.dispatch;return a.memoizedState=t,[e,n,!1]}function Kn(t,e,a,n){return t={tag:t,create:a,deps:n,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Xi(),ft.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(n=a.next,a.next=t,t.next=n,e.lastEffect=t),t}function mf(){return Ft().memoizedState}function Ji(t,e,a,n){var l=ye();ft.flags|=t,l.memoizedState=Kn(1|e,{destroy:void 0},a,n===void 0?null:n)}function Ki(t,e,a,n){var l=Ft();n=n===void 0?null:n;var u=l.memoizedState.inst;kt!==null&&n!==null&&Us(n,kt.memoizedState.deps)?l.memoizedState=Kn(e,u,a,n):(ft.flags|=t,l.memoizedState=Kn(1|e,u,a,n))}function pf(t,e){Ji(8390656,8,t,e)}function Xs(t,e){Ki(2048,8,t,e)}function F0(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Xi(),ft.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function gf(t){var e=Ft().memoizedState;return F0({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function yf(t,e){return Ki(4,2,t,e)}function vf(t,e){return Ki(4,4,t,e)}function bf(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Sf(t,e,a){a=a!=null?a.concat([t]):null,Ki(4,4,bf.bind(null,e,t),a)}function Qs(){}function wf(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;return e!==null&&Us(e,n[1])?n[0]:(a.memoizedState=[t,e],t)}function Ef(t,e){var a=Ft();e=e===void 0?null:e;var n=a.memoizedState;if(e!==null&&Us(e,n[1]))return n[0];if(n=t(),yn){Ra(!0);try{t()}finally{Ra(!1)}}return a.memoizedState=[n,e],n}function Zs(t,e,a){return a===void 0||(ga&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=xd(),ft.lanes|=t,Ga|=t,a)}function xf(t,e,a,n){return Ce(a,e)?a:Qn.current!==null?(t=Zs(t,a,n),Ce(t,e)||(ee=!0),t):(ga&42)===0||(ga&1073741824)!==0&&(vt&261930)===0?(ee=!0,t.memoizedState=a):(t=xd(),ft.lanes|=t,Ga|=t,e)}function Af(t,e,a,n,l){var u=T.p;T.p=u!==0&&8>u?u:8;var o=U.T,h={};U.T=h,$s(t,!1,e,a);try{var v=l(),R=U.S;if(R!==null&&R(h,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var j=J0(v,n);jl(t,e,j,je(t))}else jl(t,e,n,je(t))}catch(H){jl(t,e,{then:function(){},status:"rejected",reason:H},je())}finally{T.p=u,o!==null&&h.types!==null&&(o.types=h.types),U.T=o}}function I0(){}function Js(t,e,a,n){if(t.tag!==5)throw Error(r(476));var l=_f(t).queue;Af(t,l,e,P,a===null?I0:function(){return Tf(t),a(n)})}function _f(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:P},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ya,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Tf(t){var e=_f(t);e.next===null&&(e=t.alternate.memoizedState),jl(t,e.next.queue,{},je())}function Ks(){return fe(Il)}function Mf(){return Ft().memoizedState}function Df(){return Ft().memoizedState}function tp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=je();t=La(a);var n=Ba(e,t,a);n!==null&&(Te(n,e,a),zl(n,e,a)),e={cache:xs()},t.payload=e;return}e=e.return}}function ep(t,e,a){var n=je();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$i(t)?Cf(e,a):(a=ds(t,e,a,n),a!==null&&(Te(a,t,n),zf(a,e,n)))}function Rf(t,e,a){var n=je();jl(t,e,a,n)}function jl(t,e,a,n){var l={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($i(t))Cf(e,l);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var o=e.lastRenderedState,h=u(o,a);if(l.hasEagerState=!0,l.eagerState=h,Ce(h,o))return Ri(t,e,l,0),Bt===null&&Di(),!1}catch{}finally{}if(a=ds(t,e,l,n),a!==null)return Te(a,t,n),zf(a,e,n),!0}return!1}function $s(t,e,a,n){if(n={lane:2,revertLane:Mr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},$i(t)){if(e)throw Error(r(479))}else e=ds(t,a,n,2),e!==null&&Te(e,t,2)}function $i(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Cf(t,e){Zn=Vi=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function zf(t,e,a){if((a&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,a|=n,e.lanes=a,Uc(t,a)}}var Ll={readContext:fe,use:Qi,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t};Ll.useEffectEvent=$t;var Of={readContext:fe,use:Qi,useCallback:function(t,e){return ye().memoizedState=[t,e===void 0?null:e],t},useContext:fe,useEffect:pf,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Ji(4194308,4,bf.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Ji(4194308,4,t,e)},useInsertionEffect:function(t,e){Ji(4,2,t,e)},useMemo:function(t,e){var a=ye();e=e===void 0?null:e;var n=t();if(yn){Ra(!0);try{t()}finally{Ra(!1)}}return a.memoizedState=[n,e],n},useReducer:function(t,e,a){var n=ye();if(a!==void 0){var l=a(e);if(yn){Ra(!0);try{a(e)}finally{Ra(!1)}}}else l=e;return n.memoizedState=n.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},n.queue=t,t=t.dispatch=ep.bind(null,ft,t),[n.memoizedState,t]},useRef:function(t){var e=ye();return t={current:t},e.memoizedState=t},useState:function(t){t=Vs(t);var e=t.queue,a=Rf.bind(null,ft,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Qs,useDeferredValue:function(t,e){var a=ye();return Zs(a,t,e)},useTransition:function(){var t=Vs(!1);return t=Af.bind(null,ft,t.queue,!0,!1),ye().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var n=ft,l=ye();if(wt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(vt&127)!==0||Fo(n,e,a)}l.memoizedState=a;var u={value:a,getSnapshot:e};return l.queue=u,pf(tf.bind(null,n,u,t),[t]),n.flags|=2048,Kn(9,{destroy:void 0},Io.bind(null,n,u,a,e),null),a},useId:function(){var t=ye(),e=Bt.identifierPrefix;if(wt){var a=ua,n=ia;a=(n&~(1<<32-Re(n)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Gi++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=K0++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ks,useFormState:of,useActionState:of,useOptimistic:function(t){var e=ye();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=$s.bind(null,ft,!0,a),a.dispatch=e,[t,e]},useMemoCache:Hs,useCacheRefresh:function(){return ye().memoizedState=tp.bind(null,ft)},useEffectEvent:function(t){var e=ye(),a={impl:t};return e.memoizedState=a,function(){if((Mt&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Ps={readContext:fe,use:Qi,useCallback:wf,useContext:fe,useEffect:Xs,useImperativeHandle:Sf,useInsertionEffect:yf,useLayoutEffect:vf,useMemo:Ef,useReducer:Zi,useRef:mf,useState:function(){return Zi(ya)},useDebugValue:Qs,useDeferredValue:function(t,e){var a=Ft();return xf(a,kt.memoizedState,t,e)},useTransition:function(){var t=Zi(ya)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:Wo,useId:Mf,useHostTransitionStatus:Ks,useFormState:ff,useActionState:ff,useOptimistic:function(t,e){var a=Ft();return nf(a,kt,t,e)},useMemoCache:Hs,useCacheRefresh:Df};Ps.useEffectEvent=gf;var Nf={readContext:fe,use:Qi,useCallback:wf,useContext:fe,useEffect:Xs,useImperativeHandle:Sf,useInsertionEffect:yf,useLayoutEffect:vf,useMemo:Ef,useReducer:Ys,useRef:mf,useState:function(){return Ys(ya)},useDebugValue:Qs,useDeferredValue:function(t,e){var a=Ft();return kt===null?Zs(a,t,e):xf(a,kt.memoizedState,t,e)},useTransition:function(){var t=Ys(ya)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:Wo,useId:Mf,useHostTransitionStatus:Ks,useFormState:hf,useActionState:hf,useOptimistic:function(t,e){var a=Ft();return kt!==null?nf(a,kt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Hs,useCacheRefresh:Df};Nf.useEffectEvent=gf;function Ws(t,e,a,n){e=t.memoizedState,a=a(n,e),a=a==null?e:A({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Fs={enqueueSetState:function(t,e,a){t=t._reactInternals;var n=je(),l=La(n);l.payload=e,a!=null&&(l.callback=a),e=Ba(t,l,n),e!==null&&(Te(e,t,n),zl(e,t,n))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var n=je(),l=La(n);l.tag=1,l.payload=e,a!=null&&(l.callback=a),e=Ba(t,l,n),e!==null&&(Te(e,t,n),zl(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=je(),n=La(a);n.tag=2,e!=null&&(n.callback=e),e=Ba(t,n,a),e!==null&&(Te(e,t,a),zl(e,t,a))}};function Uf(t,e,a,n,l,u,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,o):e.prototype&&e.prototype.isPureReactComponent?!xl(a,n)||!xl(l,u):!0}function kf(t,e,a,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,n),e.state!==t&&Fs.enqueueReplaceState(e,e.state,null)}function vn(t,e){var a=e;if("ref"in e){a={};for(var n in e)n!=="ref"&&(a[n]=e[n])}if(t=t.defaultProps){a===e&&(a=A({},a));for(var l in t)a[l]===void 0&&(a[l]=t[l])}return a}function jf(t){Mi(t)}function Lf(t){console.error(t)}function Bf(t){Mi(t)}function Pi(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Hf(t,e,a){try{var n=t.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Is(t,e,a){return a=La(a),a.tag=3,a.payload={element:null},a.callback=function(){Pi(t,e)},a}function qf(t){return t=La(t),t.tag=3,t}function Yf(t,e,a,n){var l=a.type.getDerivedStateFromError;if(typeof l=="function"){var u=n.value;t.payload=function(){return l(u)},t.callback=function(){Hf(e,a,n)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Hf(e,a,n),typeof l!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var h=n.stack;this.componentDidCatch(n.value,{componentStack:h!==null?h:""})})}function ap(t,e,a,n,l){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=a.alternate,e!==null&&qn(e,a,l,!0),a=Oe.current,a!==null){switch(a.tag){case 31:case 13:return Qe===null?ru():a.alternate===null&&Pt===0&&(Pt=3),a.flags&=-257,a.flags|=65536,a.lanes=l,n===Li?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([n]):e.add(n),Ar(t,n,l)),!1;case 22:return a.flags|=65536,n===Li?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([n]):a.add(n)),Ar(t,n,l)),!1}throw Error(r(435,a.tag))}return Ar(t,n,l),ru(),!1}if(wt)return e=Oe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,n!==vs&&(t=Error(r(422),{cause:n}),Tl(Ye(t,a)))):(n!==vs&&(e=Error(r(423),{cause:n}),Tl(Ye(e,a))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,n=Ye(n,a),l=Is(t.stateNode,n,l),Rs(t,l),Pt!==4&&(Pt=2)),!1;var u=Error(r(520),{cause:n});if(u=Ye(u,a),Ql===null?Ql=[u]:Ql.push(u),Pt!==4&&(Pt=2),e===null)return!0;n=Ye(n,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=l&-l,a.lanes|=t,t=Is(a.stateNode,n,t),Rs(a,t),!1;case 1:if(e=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Xa===null||!Xa.has(u))))return a.flags|=65536,l&=-l,a.lanes|=l,l=qf(l),Yf(l,t,a,n),Rs(a,l),!1}a=a.return}while(a!==null);return!1}var tr=Error(r(461)),ee=!1;function de(t,e,a,n){e.child=t===null?Xo(e,null,a,n):gn(e,t.child,a,n)}function Vf(t,e,a,n,l){a=a.render;var u=e.ref;if("ref"in n){var o={};for(var h in n)h!=="ref"&&(o[h]=n[h])}else o=n;return dn(e),n=ks(t,e,a,o,u,l),h=js(),t!==null&&!ee?(Ls(t,e,l),va(t,e,l)):(wt&&h&&gs(e),e.flags|=1,de(t,e,n,l),e.child)}function Gf(t,e,a,n,l){if(t===null){var u=a.type;return typeof u=="function"&&!hs(u)&&u.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=u,Xf(t,e,u,n,l)):(t=zi(a.type,null,n,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!rr(t,l)){var o=u.memoizedProps;if(a=a.compare,a=a!==null?a:xl,a(o,n)&&t.ref===e.ref)return va(t,e,l)}return e.flags|=1,t=da(u,n),t.ref=e.ref,t.return=e,e.child=t}function Xf(t,e,a,n,l){if(t!==null){var u=t.memoizedProps;if(xl(u,n)&&t.ref===e.ref)if(ee=!1,e.pendingProps=n=u,rr(t,l))(t.flags&131072)!==0&&(ee=!0);else return e.lanes=t.lanes,va(t,e,l)}return er(t,e,a,n,l)}function Qf(t,e,a,n){var l=n.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,t!==null){for(n=e.child=t.child,l=0;n!==null;)l=l|n.lanes|n.childLanes,n=n.sibling;n=l&~u}else n=0,e.child=null;return Zf(t,e,u,a,n)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ki(e,u!==null?u.cachePool:null),u!==null?Jo(e,u):zs(),Ko(e);else return n=e.lanes=536870912,Zf(t,e,u!==null?u.baseLanes|a:a,a,n)}else u!==null?(ki(e,u.cachePool),Jo(e,u),qa(),e.memoizedState=null):(t!==null&&ki(e,null),zs(),qa());return de(t,e,l,a),e.child}function Bl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Zf(t,e,a,n,l){var u=_s();return u=u===null?null:{parent:It._currentValue,pool:u},e.memoizedState={baseLanes:a,cachePool:u},t!==null&&ki(e,null),zs(),Ko(e),t!==null&&qn(t,e,n,!0),e.childLanes=l,null}function Wi(t,e){return e=Ii({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Jf(t,e,a){return gn(e,t.child,null,a),t=Wi(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function np(t,e,a){var n=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(wt){if(n.mode==="hidden")return t=Wi(e,n),e.lanes=536870912,Bl(null,t);if(Ns(e),(t=Yt)?(t=ih(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Oa!==null?{id:ia,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=Ro(t),a.return=e,e.child=a,oe=e,Yt=null)):t=null,t===null)throw Ua(e);return e.lanes=536870912,null}return Wi(e,n)}var u=t.memoizedState;if(u!==null){var o=u.dehydrated;if(Ns(e),l)if(e.flags&256)e.flags&=-257,e=Jf(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(ee||qn(t,e,a,!1),l=(a&t.childLanes)!==0,ee||l){if(n=Bt,n!==null&&(o=kc(n,a),o!==0&&o!==u.retryLane))throw u.retryLane=o,rn(t,o),Te(n,t,o),tr;ru(),e=Jf(t,e,a)}else t=u.treeContext,Yt=Ze(o.nextSibling),oe=e,wt=!0,Na=null,Xe=!1,t!==null&&Oo(e,t),e=Wi(e,n),e.flags|=4096;return e}return t=da(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Fi(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function er(t,e,a,n,l){return dn(e),a=ks(t,e,a,n,void 0,l),n=js(),t!==null&&!ee?(Ls(t,e,l),va(t,e,l)):(wt&&n&&gs(e),e.flags|=1,de(t,e,a,l),e.child)}function Kf(t,e,a,n,l,u){return dn(e),e.updateQueue=null,a=Po(e,n,a,l),$o(t),n=js(),t!==null&&!ee?(Ls(t,e,u),va(t,e,u)):(wt&&n&&gs(e),e.flags|=1,de(t,e,a,u),e.child)}function $f(t,e,a,n,l){if(dn(e),e.stateNode===null){var u=jn,o=a.contextType;typeof o=="object"&&o!==null&&(u=fe(o)),u=new a(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Fs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},Ms(e),o=a.contextType,u.context=typeof o=="object"&&o!==null?fe(o):jn,u.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ws(e,a,o,n),u.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&Fs.enqueueReplaceState(u,u.state,null),Nl(e,n,u,l),Ol(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var h=e.memoizedProps,v=vn(a,h);u.props=v;var R=u.context,j=a.contextType;o=jn,typeof j=="object"&&j!==null&&(o=fe(j));var H=a.getDerivedStateFromProps;j=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,j||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||R!==o)&&kf(e,u,n,o),ja=!1;var C=e.memoizedState;u.state=C,Nl(e,n,u,l),Ol(),R=e.memoizedState,h||C!==R||ja?(typeof H=="function"&&(Ws(e,a,H,n),R=e.memoizedState),(v=ja||Uf(e,a,v,n,C,R,o))?(j||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=R),u.props=n,u.state=R,u.context=o,n=v):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,Ds(t,e),o=e.memoizedProps,j=vn(a,o),u.props=j,H=e.pendingProps,C=u.context,R=a.contextType,v=jn,typeof R=="object"&&R!==null&&(v=fe(R)),h=a.getDerivedStateFromProps,(R=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==H||C!==v)&&kf(e,u,n,v),ja=!1,C=e.memoizedState,u.state=C,Nl(e,n,u,l),Ol();var z=e.memoizedState;o!==H||C!==z||ja||t!==null&&t.dependencies!==null&&Ni(t.dependencies)?(typeof h=="function"&&(Ws(e,a,h,n),z=e.memoizedState),(j=ja||Uf(e,a,j,n,C,z,v)||t!==null&&t.dependencies!==null&&Ni(t.dependencies))?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,z,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,z,v)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=z),u.props=n,u.state=z,u.context=v,n=j):(typeof u.componentDidUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Fi(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=gn(e,t.child,null,l),e.child=gn(e,null,a,l)):de(t,e,a,l),e.memoizedState=u.state,t=e.child):t=va(t,e,l),t}function Pf(t,e,a,n){return on(),e.flags|=256,de(t,e,a,n),e.child}var ar={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nr(t){return{baseLanes:t,cachePool:Bo()}}function lr(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=ke),t}function Wf(t,e,a){var n=e.pendingProps,l=!1,u=(e.flags&128)!==0,o;if((o=u)||(o=t!==null&&t.memoizedState===null?!1:(Wt.current&2)!==0),o&&(l=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(wt){if(l?Ha(e):qa(),(t=Yt)?(t=ih(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Oa!==null?{id:ia,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=Ro(t),a.return=e,e.child=a,oe=e,Yt=null)):t=null,t===null)throw Ua(e);return qr(t)?e.lanes=32:e.lanes=536870912,null}var h=n.children;return n=n.fallback,l?(qa(),l=e.mode,h=Ii({mode:"hidden",children:h},l),n=cn(n,l,a,null),h.return=e,n.return=e,h.sibling=n,e.child=h,n=e.child,n.memoizedState=nr(a),n.childLanes=lr(t,o,a),e.memoizedState=ar,Bl(null,n)):(Ha(e),ir(e,h))}var v=t.memoizedState;if(v!==null&&(h=v.dehydrated,h!==null)){if(u)e.flags&256?(Ha(e),e.flags&=-257,e=ur(t,e,a)):e.memoizedState!==null?(qa(),e.child=t.child,e.flags|=128,e=null):(qa(),h=n.fallback,l=e.mode,n=Ii({mode:"visible",children:n.children},l),h=cn(h,l,a,null),h.flags|=2,n.return=e,h.return=e,n.sibling=h,e.child=n,gn(e,t.child,null,a),n=e.child,n.memoizedState=nr(a),n.childLanes=lr(t,o,a),e.memoizedState=ar,e=Bl(null,n));else if(Ha(e),qr(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var R=o.dgst;o=R,n=Error(r(419)),n.stack="",n.digest=o,Tl({value:n,source:null,stack:null}),e=ur(t,e,a)}else if(ee||qn(t,e,a,!1),o=(a&t.childLanes)!==0,ee||o){if(o=Bt,o!==null&&(n=kc(o,a),n!==0&&n!==v.retryLane))throw v.retryLane=n,rn(t,n),Te(o,t,n),tr;Hr(h)||ru(),e=ur(t,e,a)}else Hr(h)?(e.flags|=192,e.child=t.child,e=null):(t=v.treeContext,Yt=Ze(h.nextSibling),oe=e,wt=!0,Na=null,Xe=!1,t!==null&&Oo(e,t),e=ir(e,n.children),e.flags|=4096);return e}return l?(qa(),h=n.fallback,l=e.mode,v=t.child,R=v.sibling,n=da(v,{mode:"hidden",children:n.children}),n.subtreeFlags=v.subtreeFlags&65011712,R!==null?h=da(R,h):(h=cn(h,l,a,null),h.flags|=2),h.return=e,n.return=e,n.sibling=h,e.child=n,Bl(null,n),n=e.child,h=t.child.memoizedState,h===null?h=nr(a):(l=h.cachePool,l!==null?(v=It._currentValue,l=l.parent!==v?{parent:v,pool:v}:l):l=Bo(),h={baseLanes:h.baseLanes|a,cachePool:l}),n.memoizedState=h,n.childLanes=lr(t,o,a),e.memoizedState=ar,Bl(t.child,n)):(Ha(e),a=t.child,t=a.sibling,a=da(a,{mode:"visible",children:n.children}),a.return=e,a.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=a,e.memoizedState=null,a)}function ir(t,e){return e=Ii({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ii(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function ur(t,e,a){return gn(e,t.child,null,a),t=ir(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Ff(t,e,a){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ws(t.return,e,a)}function sr(t,e,a,n,l,u){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:l,treeForkCount:u}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=a,o.tailMode=l,o.treeForkCount=u)}function If(t,e,a){var n=e.pendingProps,l=n.revealOrder,u=n.tail;n=n.children;var o=Wt.current,h=(o&2)!==0;if(h?(o=o&1|2,e.flags|=128):o&=1,Z(Wt,o),de(t,e,n,a),n=wt?_l:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ff(t,a,e);else if(t.tag===19)Ff(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"forwards":for(a=e.child,l=null;a!==null;)t=a.alternate,t!==null&&Yi(t)===null&&(l=a),a=a.sibling;a=l,a===null?(l=e.child,e.child=null):(l=a.sibling,a.sibling=null),sr(e,!1,l,a,u,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&Yi(t)===null){e.child=l;break}t=l.sibling,l.sibling=a,a=l,l=t}sr(e,!0,a,null,u,n);break;case"together":sr(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function va(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Ga|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(qn(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=da(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=da(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function rr(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ni(t)))}function lp(t,e,a){switch(e.tag){case 3:Y(e,e.stateNode.containerInfo),ka(e,It,t.memoizedState.cache),on();break;case 27:case 5:st(e);break;case 4:Y(e,e.stateNode.containerInfo);break;case 10:ka(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ns(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Ha(e),e.flags|=128,null):(a&e.child.childLanes)!==0?Wf(t,e,a):(Ha(e),t=va(t,e,a),t!==null?t.sibling:null);Ha(e);break;case 19:var l=(t.flags&128)!==0;if(n=(a&e.childLanes)!==0,n||(qn(t,e,a,!1),n=(a&e.childLanes)!==0),l){if(n)return If(t,e,a);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Z(Wt,Wt.current),n)break;return null;case 22:return e.lanes=0,Qf(t,e,a,e.pendingProps);case 24:ka(e,It,t.memoizedState.cache)}return va(t,e,a)}function td(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)ee=!0;else{if(!rr(t,a)&&(e.flags&128)===0)return ee=!1,lp(t,e,a);ee=(t.flags&131072)!==0}else ee=!1,wt&&(e.flags&1048576)!==0&&zo(e,_l,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=mn(e.elementType),e.type=t,typeof t=="function")hs(t)?(n=vn(t,n),e.tag=1,e=$f(null,e,t,n,a)):(e.tag=0,e=er(null,e,t,n,a));else{if(t!=null){var l=t.$$typeof;if(l===K){e.tag=11,e=Vf(null,e,t,n,a);break t}else if(l===Q){e.tag=14,e=Gf(null,e,t,n,a);break t}}throw e=pe(t)||t,Error(r(306,e,""))}}return e;case 0:return er(t,e,e.type,e.pendingProps,a);case 1:return n=e.type,l=vn(n,e.pendingProps),$f(t,e,n,l,a);case 3:t:{if(Y(e,e.stateNode.containerInfo),t===null)throw Error(r(387));n=e.pendingProps;var u=e.memoizedState;l=u.element,Ds(t,e),Nl(e,n,null,a);var o=e.memoizedState;if(n=o.cache,ka(e,It,n),n!==u.cache&&Es(e,[It],a,!0),Ol(),n=o.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Pf(t,e,n,a);break t}else if(n!==l){l=Ye(Error(r(424)),e),Tl(l),e=Pf(t,e,n,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Yt=Ze(t.firstChild),oe=e,wt=!0,Na=null,Xe=!0,a=Xo(e,null,n,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(on(),n===l){e=va(t,e,a);break t}de(t,e,n,a)}e=e.child}return e;case 26:return Fi(t,e),t===null?(a=fh(e.type,null,e.pendingProps,null))?e.memoizedState=a:wt||(a=e.type,t=e.pendingProps,n=pu(ht.current).createElement(a),n[ce]=e,n[Se]=t,he(n,a,t),ue(n),e.stateNode=n):e.memoizedState=fh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return st(e),t===null&&wt&&(n=e.stateNode=rh(e.type,e.pendingProps,ht.current),oe=e,Xe=!0,l=Yt,Ka(e.type)?(Yr=l,Yt=Ze(n.firstChild)):Yt=l),de(t,e,e.pendingProps.children,a),Fi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&wt&&((l=n=Yt)&&(n=Up(n,e.type,e.pendingProps,Xe),n!==null?(e.stateNode=n,oe=e,Yt=Ze(n.firstChild),Xe=!1,l=!0):l=!1),l||Ua(e)),st(e),l=e.type,u=e.pendingProps,o=t!==null?t.memoizedProps:null,n=u.children,jr(l,u)?n=null:o!==null&&jr(l,o)&&(e.flags|=32),e.memoizedState!==null&&(l=ks(t,e,$0,null,null,a),Il._currentValue=l),Fi(t,e),de(t,e,n,a),e.child;case 6:return t===null&&wt&&((t=a=Yt)&&(a=kp(a,e.pendingProps,Xe),a!==null?(e.stateNode=a,oe=e,Yt=null,t=!0):t=!1),t||Ua(e)),null;case 13:return Wf(t,e,a);case 4:return Y(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=gn(e,null,n,a):de(t,e,n,a),e.child;case 11:return Vf(t,e,e.type,e.pendingProps,a);case 7:return de(t,e,e.pendingProps,a),e.child;case 8:return de(t,e,e.pendingProps.children,a),e.child;case 12:return de(t,e,e.pendingProps.children,a),e.child;case 10:return n=e.pendingProps,ka(e,e.type,n.value),de(t,e,n.children,a),e.child;case 9:return l=e.type._context,n=e.pendingProps.children,dn(e),l=fe(l),n=n(l),e.flags|=1,de(t,e,n,a),e.child;case 14:return Gf(t,e,e.type,e.pendingProps,a);case 15:return Xf(t,e,e.type,e.pendingProps,a);case 19:return If(t,e,a);case 31:return np(t,e,a);case 22:return Qf(t,e,a,e.pendingProps);case 24:return dn(e),n=fe(It),t===null?(l=_s(),l===null&&(l=Bt,u=xs(),l.pooledCache=u,u.refCount++,u!==null&&(l.pooledCacheLanes|=a),l=u),e.memoizedState={parent:n,cache:l},Ms(e),ka(e,It,l)):((t.lanes&a)!==0&&(Ds(t,e),Nl(e,null,null,a),Ol()),l=t.memoizedState,u=e.memoizedState,l.parent!==n?(l={parent:n,cache:n},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),ka(e,It,n)):(n=u.cache,ka(e,It,n),n!==l.cache&&Es(e,[It],a,!0))),de(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function ba(t){t.flags|=4}function cr(t,e,a,n,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(Md())t.flags|=8192;else throw pn=Li,Ts}else t.flags&=-16777217}function ed(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!gh(e))if(Md())t.flags|=8192;else throw pn=Li,Ts}function tu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Oc():536870912,t.lanes|=e,Fn|=e)}function Hl(t,e){if(!wt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,n=0;if(e)for(var l=t.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags&65011712,n|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)a|=l.lanes|l.childLanes,n|=l.subtreeFlags,n|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=n,t.childLanes=a,e}function ip(t,e,a){var n=e.pendingProps;switch(ys(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vt(e),null;case 1:return Vt(e),null;case 3:return a=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),pa(It),W(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Hn(e)?ba(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,bs())),Vt(e),null;case 26:var l=e.type,u=e.memoizedState;return t===null?(ba(e),u!==null?(Vt(e),ed(e,u)):(Vt(e),cr(e,l,null,n,a))):u?u!==t.memoizedState?(ba(e),Vt(e),ed(e,u)):(Vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&ba(e),Vt(e),cr(e,l,t,n,a)),null;case 27:if(lt(e),a=ht.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ba(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}t=I.current,Hn(e)?No(e):(t=rh(l,n,a),e.stateNode=t,ba(e))}return Vt(e),null;case 5:if(lt(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&ba(e);else{if(!n){if(e.stateNode===null)throw Error(r(166));return Vt(e),null}if(u=I.current,Hn(e))No(e);else{var o=pu(ht.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?o.createElement(l,{is:n.is}):o.createElement(l)}}u[ce]=e,u[Se]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=u;t:switch(he(u,l,n),l){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&ba(e)}}return Vt(e),cr(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&ba(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(r(166));if(t=ht.current,Hn(e)){if(t=e.stateNode,a=e.memoizedProps,n=null,l=oe,l!==null)switch(l.tag){case 27:case 5:n=l.memoizedProps}t[ce]=e,t=!!(t.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Wd(t.nodeValue,a)),t||Ua(e,!0)}else t=pu(t).createTextNode(n),t[ce]=e,e.stateNode=t}return Vt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(n=Hn(e),a!==null){if(t===null){if(!n)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ce]=e}else on(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),t=!1}else a=bs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Vt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=Hn(e),n!==null&&n.dehydrated!==null){if(t===null){if(!l)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l[ce]=e}else on(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Vt(e),l=!1}else l=bs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(e),(e.flags&128)!==0?(e.lanes=a,e):(a=n!==null,t=t!==null&&t.memoizedState!==null,a&&(n=e.child,l=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(l=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==l&&(n.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),tu(e,e.updateQueue),Vt(e),null);case 4:return W(),t===null&&zr(e.stateNode.containerInfo),Vt(e),null;case 10:return pa(e.type),Vt(e),null;case 19:if(q(Wt),n=e.memoizedState,n===null)return Vt(e),null;if(l=(e.flags&128)!==0,u=n.rendering,u===null)if(l)Hl(n,!1);else{if(Pt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Yi(t),u!==null){for(e.flags|=128,Hl(n,!1),t=u.updateQueue,e.updateQueue=t,tu(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Do(a,t),a=a.sibling;return Z(Wt,Wt.current&1|2),wt&&ha(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&qt()>iu&&(e.flags|=128,l=!0,Hl(n,!1),e.lanes=4194304)}else{if(!l)if(t=Yi(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,tu(e,t),Hl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!u.alternate&&!wt)return Vt(e),null}else 2*qt()-n.renderingStartTime>iu&&a!==536870912&&(e.flags|=128,l=!0,Hl(n,!1),e.lanes=4194304);n.isBackwards?(u.sibling=e.child,e.child=u):(t=n.last,t!==null?t.sibling=u:e.child=u,n.last=u)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=qt(),t.sibling=null,a=Wt.current,Z(Wt,l?a&1|2:a&1),wt&&ha(e,n.treeForkCount),t):(Vt(e),null);case 22:case 23:return Ne(e),Os(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(a&536870912)!==0&&(e.flags&128)===0&&(Vt(e),e.subtreeFlags&6&&(e.flags|=8192)):Vt(e),a=e.updateQueue,a!==null&&tu(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==a&&(e.flags|=2048),t!==null&&q(hn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),pa(It),Vt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function up(t,e){switch(ys(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pa(It),W(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return lt(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(r(340));on()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));on()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Wt),null;case 4:return W(),null;case 10:return pa(e.type),null;case 22:case 23:return Ne(e),Os(),t!==null&&q(hn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return pa(It),null;case 25:return null;default:return null}}function ad(t,e){switch(ys(e),e.tag){case 3:pa(It),W();break;case 26:case 27:case 5:lt(e);break;case 4:W();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:q(Wt);break;case 10:pa(e.type);break;case 22:case 23:Ne(e),Os(),t!==null&&q(hn);break;case 24:pa(It)}}function ql(t,e){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var l=n.next;a=l;do{if((a.tag&t)===t){n=void 0;var u=a.create,o=a.inst;n=u(),o.destroy=n}a=a.next}while(a!==l)}}catch(h){Nt(e,e.return,h)}}function Ya(t,e,a){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){var o=n.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,l=e;var v=a,R=h;try{R()}catch(j){Nt(l,v,j)}}}n=n.next}while(n!==u)}}catch(j){Nt(e,e.return,j)}}function nd(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{Zo(e,a)}catch(n){Nt(t,t.return,n)}}}function ld(t,e,a){a.props=vn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(n){Nt(t,e,n)}}function Yl(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof a=="function"?t.refCleanup=a(n):a.current=n}}catch(l){Nt(t,e,l)}}function sa(t,e){var a=t.ref,n=t.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(l){Nt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(l){Nt(t,e,l)}else a.current=null}function id(t){var e=t.type,a=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break t;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(l){Nt(t,t.return,l)}}function or(t,e,a){try{var n=t.stateNode;Dp(n,t.type,a,e),n[Se]=e}catch(l){Nt(t,t.return,l)}}function ud(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ka(t.type)||t.tag===4}function fr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ud(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ka(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function dr(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=oa));else if(n!==4&&(n===27&&Ka(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(dr(t,e,a),t=t.sibling;t!==null;)dr(t,e,a),t=t.sibling}function eu(t,e,a){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(n!==4&&(n===27&&Ka(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(eu(t,e,a),t=t.sibling;t!==null;)eu(t,e,a),t=t.sibling}function sd(t){var e=t.stateNode,a=t.memoizedProps;try{for(var n=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);he(e,n,a),e[ce]=t,e[Se]=a}catch(u){Nt(t,t.return,u)}}var Sa=!1,ae=!1,hr=!1,rd=typeof WeakSet=="function"?WeakSet:Set,se=null;function sp(t,e){if(t=t.containerInfo,Ur=Eu,t=bo(t),us(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var l=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break t}var o=0,h=-1,v=-1,R=0,j=0,H=t,C=null;e:for(;;){for(var z;H!==a||l!==0&&H.nodeType!==3||(h=o+l),H!==u||n!==0&&H.nodeType!==3||(v=o+n),H.nodeType===3&&(o+=H.nodeValue.length),(z=H.firstChild)!==null;)C=H,H=z;for(;;){if(H===t)break e;if(C===a&&++R===l&&(h=o),C===u&&++j===n&&(v=o),(z=H.nextSibling)!==null)break;H=C,C=H.parentNode}H=z}a=h===-1||v===-1?null:{start:h,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(kr={focusedElem:t,selectionRange:a},Eu=!1,se=e;se!==null;)if(e=se,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,se=t;else for(;se!==null;){switch(e=se,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)l=t[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,a=e,l=u.memoizedProps,u=u.memoizedState,n=a.stateNode;try{var F=vn(a.type,l);t=n.getSnapshotBeforeUpdate(F,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(it){Nt(a,a.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Br(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Br(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,se=t;break}se=e.return}}function cd(t,e,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Ea(t,a),n&4&&ql(5,a);break;case 1:if(Ea(t,a),n&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(o){Nt(a,a.return,o)}else{var l=vn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Nt(a,a.return,o)}}n&64&&nd(a),n&512&&Yl(a,a.return);break;case 3:if(Ea(t,a),n&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Zo(t,e)}catch(o){Nt(a,a.return,o)}}break;case 27:e===null&&n&4&&sd(a);case 26:case 5:Ea(t,a),e===null&&n&4&&id(a),n&512&&Yl(a,a.return);break;case 12:Ea(t,a);break;case 31:Ea(t,a),n&4&&dd(t,a);break;case 13:Ea(t,a),n&4&&hd(t,a),n&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=gp.bind(null,a),jp(t,a))));break;case 22:if(n=a.memoizedState!==null||Sa,!n){e=e!==null&&e.memoizedState!==null||ae,l=Sa;var u=ae;Sa=n,(ae=e)&&!u?xa(t,a,(a.subtreeFlags&8772)!==0):Ea(t,a),Sa=l,ae=u}break;case 30:break;default:Ea(t,a)}}function od(t){var e=t.alternate;e!==null&&(t.alternate=null,od(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Gu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Gt=null,Ee=!1;function wa(t,e,a){for(a=a.child;a!==null;)fd(t,e,a),a=a.sibling}function fd(t,e,a){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(fl,a)}catch{}switch(a.tag){case 26:ae||sa(a,e),wa(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ae||sa(a,e);var n=Gt,l=Ee;Ka(a.type)&&(Gt=a.stateNode,Ee=!1),wa(t,e,a),Pl(a.stateNode),Gt=n,Ee=l;break;case 5:ae||sa(a,e);case 6:if(n=Gt,l=Ee,Gt=null,wa(t,e,a),Gt=n,Ee=l,Gt!==null)if(Ee)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode)}catch(u){Nt(a,e,u)}else try{Gt.removeChild(a.stateNode)}catch(u){Nt(a,e,u)}break;case 18:Gt!==null&&(Ee?(t=Gt,nh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ul(t)):nh(Gt,a.stateNode));break;case 4:n=Gt,l=Ee,Gt=a.stateNode.containerInfo,Ee=!0,wa(t,e,a),Gt=n,Ee=l;break;case 0:case 11:case 14:case 15:Ya(2,a,e),ae||Ya(4,a,e),wa(t,e,a);break;case 1:ae||(sa(a,e),n=a.stateNode,typeof n.componentWillUnmount=="function"&&ld(a,e,n)),wa(t,e,a);break;case 21:wa(t,e,a);break;case 22:ae=(n=ae)||a.memoizedState!==null,wa(t,e,a),ae=n;break;default:wa(t,e,a)}}function dd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ul(t)}catch(a){Nt(e,e.return,a)}}}function hd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ul(t)}catch(a){Nt(e,e.return,a)}}function rp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new rd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new rd),e;default:throw Error(r(435,t.tag))}}function au(t,e){var a=rp(t);e.forEach(function(n){if(!a.has(n)){a.add(n);var l=yp.bind(null,t,n);n.then(l,l)}})}function xe(t,e){var a=e.deletions;if(a!==null)for(var n=0;n<a.length;n++){var l=a[n],u=t,o=e,h=o;t:for(;h!==null;){switch(h.tag){case 27:if(Ka(h.type)){Gt=h.stateNode,Ee=!1;break t}break;case 5:Gt=h.stateNode,Ee=!1;break t;case 3:case 4:Gt=h.stateNode.containerInfo,Ee=!0;break t}h=h.return}if(Gt===null)throw Error(r(160));fd(u,o,l),Gt=null,Ee=!1,u=l.alternate,u!==null&&(u.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)md(e,t),e=e.sibling}var We=null;function md(t,e){var a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:xe(e,t),Ae(t),n&4&&(Ya(3,t,t.return),ql(3,t),Ya(5,t,t.return));break;case 1:xe(e,t),Ae(t),n&512&&(ae||a===null||sa(a,a.return)),n&64&&Sa&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var l=We;if(xe(e,t),Ae(t),n&512&&(ae||a===null||sa(a,a.return)),n&4){var u=a!==null?a.memoizedState:null;if(n=t.memoizedState,a===null)if(n===null)if(t.stateNode===null){t:{n=t.type,a=t.memoizedProps,l=l.ownerDocument||l;e:switch(n){case"title":u=l.getElementsByTagName("title")[0],(!u||u[ml]||u[ce]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=l.createElement(n),l.head.insertBefore(u,l.querySelector("head > title"))),he(u,n,a),u[ce]=t,ue(u),n=u;break t;case"link":var o=mh("link","href",l).get(n+(a.href||""));if(o){for(var h=0;h<o.length;h++)if(u=o[h],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(h,1);break e}}u=l.createElement(n),he(u,n,a),l.head.appendChild(u);break;case"meta":if(o=mh("meta","content",l).get(n+(a.content||""))){for(h=0;h<o.length;h++)if(u=o[h],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(h,1);break e}}u=l.createElement(n),he(u,n,a),l.head.appendChild(u);break;default:throw Error(r(468,n))}u[ce]=t,ue(u),n=u}t.stateNode=n}else ph(l,t.type,t.stateNode);else t.stateNode=hh(l,n,t.memoizedProps);else u!==n?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,n===null?ph(l,t.type,t.stateNode):hh(l,n,t.memoizedProps)):n===null&&t.stateNode!==null&&or(t,t.memoizedProps,a.memoizedProps)}break;case 27:xe(e,t),Ae(t),n&512&&(ae||a===null||sa(a,a.return)),a!==null&&n&4&&or(t,t.memoizedProps,a.memoizedProps);break;case 5:if(xe(e,t),Ae(t),n&512&&(ae||a===null||sa(a,a.return)),t.flags&32){l=t.stateNode;try{Rn(l,"")}catch(F){Nt(t,t.return,F)}}n&4&&t.stateNode!=null&&(l=t.memoizedProps,or(t,l,a!==null?a.memoizedProps:l)),n&1024&&(hr=!0);break;case 6:if(xe(e,t),Ae(t),n&4){if(t.stateNode===null)throw Error(r(162));n=t.memoizedProps,a=t.stateNode;try{a.nodeValue=n}catch(F){Nt(t,t.return,F)}}break;case 3:if(vu=null,l=We,We=gu(e.containerInfo),xe(e,t),We=l,Ae(t),n&4&&a!==null&&a.memoizedState.isDehydrated)try{ul(e.containerInfo)}catch(F){Nt(t,t.return,F)}hr&&(hr=!1,pd(t));break;case 4:n=We,We=gu(t.stateNode.containerInfo),xe(e,t),Ae(t),We=n;break;case 12:xe(e,t),Ae(t);break;case 31:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,au(t,n)));break;case 13:xe(e,t),Ae(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(lu=qt()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,au(t,n)));break;case 22:l=t.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,R=Sa,j=ae;if(Sa=R||l,ae=j||v,xe(e,t),ae=j,Sa=R,Ae(t),n&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(a===null||v||Sa||ae||bn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){v=a=e;try{if(u=v.stateNode,l)o=u.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=v.stateNode;var H=v.memoizedProps.style,C=H!=null&&H.hasOwnProperty("display")?H.display:null;h.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(F){Nt(v,v.return,F)}}}else if(e.tag===6){if(a===null){v=e;try{v.stateNode.nodeValue=l?"":v.memoizedProps}catch(F){Nt(v,v.return,F)}}}else if(e.tag===18){if(a===null){v=e;try{var z=v.stateNode;l?lh(z,!0):lh(v.stateNode,!1)}catch(F){Nt(v,v.return,F)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,au(t,a))));break;case 19:xe(e,t),Ae(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,au(t,n)));break;case 30:break;case 21:break;default:xe(e,t),Ae(t)}}function Ae(t){var e=t.flags;if(e&2){try{for(var a,n=t.return;n!==null;){if(ud(n)){a=n;break}n=n.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var l=a.stateNode,u=fr(t);eu(t,u,l);break;case 5:var o=a.stateNode;a.flags&32&&(Rn(o,""),a.flags&=-33);var h=fr(t);eu(t,h,o);break;case 3:case 4:var v=a.stateNode.containerInfo,R=fr(t);dr(t,R,v);break;default:throw Error(r(161))}}catch(j){Nt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;pd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ea(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)cd(t,e.alternate,e),e=e.sibling}function bn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ya(4,e,e.return),bn(e);break;case 1:sa(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&ld(e,e.return,a),bn(e);break;case 27:Pl(e.stateNode);case 26:case 5:sa(e,e.return),bn(e);break;case 22:e.memoizedState===null&&bn(e);break;case 30:bn(e);break;default:bn(e)}t=t.sibling}}function xa(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,l=t,u=e,o=u.flags;switch(u.tag){case 0:case 11:case 15:xa(l,u,a),ql(4,u);break;case 1:if(xa(l,u,a),n=u,l=n.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(R){Nt(n,n.return,R)}if(n=u,l=n.updateQueue,l!==null){var h=n.stateNode;try{var v=l.shared.hiddenCallbacks;if(v!==null)for(l.shared.hiddenCallbacks=null,l=0;l<v.length;l++)Qo(v[l],h)}catch(R){Nt(n,n.return,R)}}a&&o&64&&nd(u),Yl(u,u.return);break;case 27:sd(u);case 26:case 5:xa(l,u,a),a&&n===null&&o&4&&id(u),Yl(u,u.return);break;case 12:xa(l,u,a);break;case 31:xa(l,u,a),a&&o&4&&dd(l,u);break;case 13:xa(l,u,a),a&&o&4&&hd(l,u);break;case 22:u.memoizedState===null&&xa(l,u,a),Yl(u,u.return);break;case 30:break;default:xa(l,u,a)}e=e.sibling}}function mr(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Ml(a))}function pr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ml(t))}function Fe(t,e,a,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gd(t,e,a,n),e=e.sibling}function gd(t,e,a,n){var l=e.flags;switch(e.tag){case 0:case 11:case 15:Fe(t,e,a,n),l&2048&&ql(9,e);break;case 1:Fe(t,e,a,n);break;case 3:Fe(t,e,a,n),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ml(t)));break;case 12:if(l&2048){Fe(t,e,a,n),t=e.stateNode;try{var u=e.memoizedProps,o=u.id,h=u.onPostCommit;typeof h=="function"&&h(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(v){Nt(e,e.return,v)}}else Fe(t,e,a,n);break;case 31:Fe(t,e,a,n);break;case 13:Fe(t,e,a,n);break;case 23:break;case 22:u=e.stateNode,o=e.alternate,e.memoizedState!==null?u._visibility&2?Fe(t,e,a,n):Vl(t,e):u._visibility&2?Fe(t,e,a,n):(u._visibility|=2,$n(t,e,a,n,(e.subtreeFlags&10256)!==0||!1)),l&2048&&mr(o,e);break;case 24:Fe(t,e,a,n),l&2048&&pr(e.alternate,e);break;default:Fe(t,e,a,n)}}function $n(t,e,a,n,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,o=e,h=a,v=n,R=o.flags;switch(o.tag){case 0:case 11:case 15:$n(u,o,h,v,l),ql(8,o);break;case 23:break;case 22:var j=o.stateNode;o.memoizedState!==null?j._visibility&2?$n(u,o,h,v,l):Vl(u,o):(j._visibility|=2,$n(u,o,h,v,l)),l&&R&2048&&mr(o.alternate,o);break;case 24:$n(u,o,h,v,l),l&&R&2048&&pr(o.alternate,o);break;default:$n(u,o,h,v,l)}e=e.sibling}}function Vl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,n=e,l=n.flags;switch(n.tag){case 22:Vl(a,n),l&2048&&mr(n.alternate,n);break;case 24:Vl(a,n),l&2048&&pr(n.alternate,n);break;default:Vl(a,n)}e=e.sibling}}var Gl=8192;function Pn(t,e,a){if(t.subtreeFlags&Gl)for(t=t.child;t!==null;)yd(t,e,a),t=t.sibling}function yd(t,e,a){switch(t.tag){case 26:Pn(t,e,a),t.flags&Gl&&t.memoizedState!==null&&Kp(a,We,t.memoizedState,t.memoizedProps);break;case 5:Pn(t,e,a);break;case 3:case 4:var n=We;We=gu(t.stateNode.containerInfo),Pn(t,e,a),We=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Gl,Gl=16777216,Pn(t,e,a),Gl=n):Pn(t,e,a));break;default:Pn(t,e,a)}}function vd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Xl(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,Sd(n,t)}vd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bd(t),t=t.sibling}function bd(t){switch(t.tag){case 0:case 11:case 15:Xl(t),t.flags&2048&&Ya(9,t,t.return);break;case 3:Xl(t);break;case 12:Xl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,nu(t)):Xl(t);break;default:Xl(t)}}function nu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var n=e[a];se=n,Sd(n,t)}vd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ya(8,e,e.return),nu(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,nu(e));break;default:nu(e)}t=t.sibling}}function Sd(t,e){for(;se!==null;){var a=se;switch(a.tag){case 0:case 11:case 15:Ya(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Ml(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,se=n;else t:for(a=t;se!==null;){n=se;var l=n.sibling,u=n.return;if(od(n),n===a){se=null;break t}if(l!==null){l.return=u,se=l;break t}se=u}}}var cp={getCacheForType:function(t){var e=fe(It),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return fe(It).controller.signal}},op=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Bt=null,gt=null,vt=0,Ot=0,Ue=null,Va=!1,Wn=!1,gr=!1,Aa=0,Pt=0,Ga=0,Sn=0,yr=0,ke=0,Fn=0,Ql=null,_e=null,vr=!1,lu=0,wd=0,iu=1/0,uu=null,Xa=null,ne=0,Qa=null,In=null,_a=0,br=0,Sr=null,Ed=null,Zl=0,wr=null;function je(){return(Mt&2)!==0&&vt!==0?vt&-vt:U.T!==null?Mr():jc()}function xd(){if(ke===0)if((vt&536870912)===0||wt){var t=mi;mi<<=1,(mi&3932160)===0&&(mi=262144),ke=t}else ke=536870912;return t=Oe.current,t!==null&&(t.flags|=32),ke}function Te(t,e,a){(t===Bt&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(tl(t,0),Za(t,vt,ke,!1)),hl(t,a),((Mt&2)===0||t!==Bt)&&(t===Bt&&((Mt&2)===0&&(Sn|=a),Pt===4&&Za(t,vt,ke,!1)),ra(t))}function Ad(t,e,a){if((Mt&6)!==0)throw Error(r(327));var n=!a&&(e&127)===0&&(e&t.expiredLanes)===0||dl(t,e),l=n?hp(t,e):xr(t,e,!0),u=n;do{if(l===0){Wn&&!n&&Za(t,e,0,!1);break}else{if(a=t.current.alternate,u&&!fp(a)){l=xr(t,e,!1),u=!1;continue}if(l===2){if(u=e,t.errorRecoveryDisabledLanes&u)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var h=t;l=Ql;var v=h.current.memoizedState.isDehydrated;if(v&&(tl(h,o).flags|=256),o=xr(h,o,!1),o!==2){if(gr&&!v){h.errorRecoveryDisabledLanes|=u,Sn|=u,l=4;break t}u=_e,_e=l,u!==null&&(_e===null?_e=u:_e.push.apply(_e,u))}l=o}if(u=!1,l!==2)continue}}if(l===1){tl(t,0),Za(t,e,0,!0);break}t:{switch(n=t,u=l,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Za(n,e,ke,!Va);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(l=lu+300-qt(),10<l)){if(Za(n,e,ke,!Va),gi(n,0,!0)!==0)break t;_a=e,n.timeoutHandle=eh(_d.bind(null,n,a,_e,uu,vr,e,ke,Sn,Fn,Va,u,"Throttled",-0,0),l);break t}_d(n,a,_e,uu,vr,e,ke,Sn,Fn,Va,u,null,-0,0)}}break}while(!0);ra(t)}function _d(t,e,a,n,l,u,o,h,v,R,j,H,C,z){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oa},yd(e,u,H);var F=(u&62914560)===u?lu-qt():(u&4194048)===u?wd-qt():0;if(F=$p(H,F),F!==null){_a=u,t.cancelPendingCommit=F(Nd.bind(null,t,e,u,a,n,l,o,h,v,j,H,null,C,z)),Za(t,u,o,!R);return}}Nd(t,e,u,a,n,l,o,h,v)}function fp(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var l=a[n],u=l.getSnapshot;l=l.value;try{if(!Ce(u(),l))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Za(t,e,a,n){e&=~yr,e&=~Sn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var l=e;0<l;){var u=31-Re(l),o=1<<u;n[u]=-1,l&=~o}a!==0&&Nc(t,a,e)}function su(){return(Mt&6)===0?(Jl(0),!1):!0}function Er(){if(gt!==null){if(Ot===0)var t=gt.return;else t=gt,ma=fn=null,Bs(t),Xn=null,Rl=0,t=gt;for(;t!==null;)ad(t.alternate,t),t=t.return;gt=null}}function tl(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,zp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),_a=0,Er(),Bt=t,gt=a=da(t.current,null),vt=e,Ot=0,Ue=null,Va=!1,Wn=dl(t,e),gr=!1,Fn=ke=yr=Sn=Ga=Pt=0,_e=Ql=null,vr=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var l=31-Re(n),u=1<<l;e|=t[l],n&=~u}return Aa=e,Di(),a}function Td(t,e){ft=null,U.H=Ll,e===Gn||e===ji?(e=Yo(),Ot=3):e===Ts?(e=Yo(),Ot=4):Ot=e===tr?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,gt===null&&(Pt=1,Pi(t,Ye(e,t.current)))}function Md(){var t=Oe.current;return t===null?!0:(vt&4194048)===vt?Qe===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Qe:!1}function Dd(){var t=U.H;return U.H=Ll,t===null?Ll:t}function Rd(){var t=U.A;return U.A=cp,t}function ru(){Pt=4,Va||(vt&4194048)!==vt&&Oe.current!==null||(Wn=!0),(Ga&134217727)===0&&(Sn&134217727)===0||Bt===null||Za(Bt,vt,ke,!1)}function xr(t,e,a){var n=Mt;Mt|=2;var l=Dd(),u=Rd();(Bt!==t||vt!==e)&&(uu=null,tl(t,e)),e=!1;var o=Pt;t:do try{if(Ot!==0&>!==null){var h=gt,v=Ue;switch(Ot){case 8:Er(),o=6;break t;case 3:case 2:case 9:case 6:Oe.current===null&&(e=!0);var R=Ot;if(Ot=0,Ue=null,el(t,h,v,R),a&&Wn){o=0;break t}break;default:R=Ot,Ot=0,Ue=null,el(t,h,v,R)}}dp(),o=Pt;break}catch(j){Td(t,j)}while(!0);return e&&t.shellSuspendCounter++,ma=fn=null,Mt=n,U.H=l,U.A=u,gt===null&&(Bt=null,vt=0,Di()),o}function dp(){for(;gt!==null;)Cd(gt)}function hp(t,e){var a=Mt;Mt|=2;var n=Dd(),l=Rd();Bt!==t||vt!==e?(uu=null,iu=qt()+500,tl(t,e)):Wn=dl(t,e);t:do try{if(Ot!==0&>!==null){e=gt;var u=Ue;e:switch(Ot){case 1:Ot=0,Ue=null,el(t,e,u,1);break;case 2:case 9:if(Ho(u)){Ot=0,Ue=null,zd(e);break}e=function(){Ot!==2&&Ot!==9||Bt!==t||(Ot=7),ra(t)},u.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:Ho(u)?(Ot=0,Ue=null,zd(e)):(Ot=0,Ue=null,el(t,e,u,7));break;case 5:var o=null;switch(gt.tag){case 26:o=gt.memoizedState;case 5:case 27:var h=gt;if(o?gh(o):h.stateNode.complete){Ot=0,Ue=null;var v=h.sibling;if(v!==null)gt=v;else{var R=h.return;R!==null?(gt=R,cu(R)):gt=null}break e}}Ot=0,Ue=null,el(t,e,u,5);break;case 6:Ot=0,Ue=null,el(t,e,u,6);break;case 8:Er(),Pt=6;break t;default:throw Error(r(462))}}mp();break}catch(j){Td(t,j)}while(!0);return ma=fn=null,U.H=n,U.A=l,Mt=a,gt!==null?0:(Bt=null,vt=0,Di(),Pt)}function mp(){for(;gt!==null&&!ge();)Cd(gt)}function Cd(t){var e=td(t.alternate,t,Aa);t.memoizedProps=t.pendingProps,e===null?cu(t):gt=e}function zd(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Kf(a,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=Kf(a,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:Bs(e);default:ad(a,e),e=gt=Do(e,Aa),e=td(a,e,Aa)}t.memoizedProps=t.pendingProps,e===null?cu(t):gt=e}function el(t,e,a,n){ma=fn=null,Bs(e),Xn=null,Rl=0;var l=e.return;try{if(ap(t,l,e,a,vt)){Pt=1,Pi(t,Ye(a,t.current)),gt=null;return}}catch(u){if(l!==null)throw gt=l,u;Pt=1,Pi(t,Ye(a,t.current)),gt=null;return}e.flags&32768?(wt||n===1?t=!0:Wn||(vt&536870912)!==0?t=!1:(Va=t=!0,(n===2||n===9||n===3||n===6)&&(n=Oe.current,n!==null&&n.tag===13&&(n.flags|=16384))),Od(e,t)):cu(e)}function cu(t){var e=t;do{if((e.flags&32768)!==0){Od(e,Va);return}t=e.return;var a=ip(e.alternate,e,Aa);if(a!==null){gt=a;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Pt===0&&(Pt=5)}function Od(t,e){do{var a=up(t.alternate,t);if(a!==null){a.flags&=32767,gt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=a}while(t!==null);Pt=6,gt=null}function Nd(t,e,a,n,l,u,o,h,v){t.cancelPendingCommit=null;do ou();while(ne!==0);if((Mt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=fs,Jm(t,a,u,o,h,v),t===Bt&&(gt=Bt=null,vt=0),In=e,Qa=t,_a=a,br=u,Sr=l,Ed=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,vp(di,function(){return Bd(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null,l=T.p,T.p=2,o=Mt,Mt|=4;try{sp(t,e,a)}finally{Mt=o,T.p=l,U.T=n}}ne=1,Ud(),kd(),jd()}}function Ud(){if(ne===1){ne=0;var t=Qa,e=In,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null;var n=T.p;T.p=2;var l=Mt;Mt|=4;try{md(e,t);var u=kr,o=bo(t.containerInfo),h=u.focusedElem,v=u.selectionRange;if(o!==h&&h&&h.ownerDocument&&vo(h.ownerDocument.documentElement,h)){if(v!==null&&us(h)){var R=v.start,j=v.end;if(j===void 0&&(j=R),"selectionStart"in h)h.selectionStart=R,h.selectionEnd=Math.min(j,h.value.length);else{var H=h.ownerDocument||document,C=H&&H.defaultView||window;if(C.getSelection){var z=C.getSelection(),F=h.textContent.length,it=Math.min(v.start,F),Lt=v.end===void 0?it:Math.min(v.end,F);!z.extend&&it>Lt&&(o=Lt,Lt=it,it=o);var _=yo(h,it),S=yo(h,Lt);if(_&&S&&(z.rangeCount!==1||z.anchorNode!==_.node||z.anchorOffset!==_.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var D=H.createRange();D.setStart(_.node,_.offset),z.removeAllRanges(),it>Lt?(z.addRange(D),z.extend(S.node,S.offset)):(D.setEnd(S.node,S.offset),z.addRange(D))}}}}for(H=[],z=h;z=z.parentNode;)z.nodeType===1&&H.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<H.length;h++){var B=H[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Eu=!!Ur,kr=Ur=null}finally{Mt=l,T.p=n,U.T=a}}t.current=e,ne=2}}function kd(){if(ne===2){ne=0;var t=Qa,e=In,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=U.T,U.T=null;var n=T.p;T.p=2;var l=Mt;Mt|=4;try{cd(t,e.alternate,e)}finally{Mt=l,T.p=n,U.T=a}}ne=3}}function jd(){if(ne===4||ne===3){ne=0,ie();var t=Qa,e=In,a=_a,n=Ed;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ne=5:(ne=0,In=Qa=null,Ld(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(Xa=null),Yu(a),e=e.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(fl,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=U.T,l=T.p,T.p=2,U.T=null;try{for(var u=t.onRecoverableError,o=0;o<n.length;o++){var h=n[o];u(h.value,{componentStack:h.stack})}}finally{U.T=e,T.p=l}}(_a&3)!==0&&ou(),ra(t),l=t.pendingLanes,(a&261930)!==0&&(l&42)!==0?t===wr?Zl++:(Zl=0,wr=t):Zl=0,Jl(0)}}function Ld(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ml(e)))}function ou(){return Ud(),kd(),jd(),Bd()}function Bd(){if(ne!==5)return!1;var t=Qa,e=br;br=0;var a=Yu(_a),n=U.T,l=T.p;try{T.p=32>a?32:a,U.T=null,a=Sr,Sr=null;var u=Qa,o=_a;if(ne=0,In=Qa=null,_a=0,(Mt&6)!==0)throw Error(r(331));var h=Mt;if(Mt|=4,bd(u.current),gd(u,u.current,o,a),Mt=h,Jl(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(fl,u)}catch{}return!0}finally{T.p=l,U.T=n,Ld(t,e)}}function Hd(t,e,a){e=Ye(a,e),e=Is(t.stateNode,e,2),t=Ba(t,e,2),t!==null&&(hl(t,2),ra(t))}function Nt(t,e,a){if(t.tag===3)Hd(t,t,a);else for(;e!==null;){if(e.tag===3){Hd(e,t,a);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Xa===null||!Xa.has(n))){t=Ye(a,t),a=qf(2),n=Ba(e,a,2),n!==null&&(Yf(a,n,e,t),hl(n,2),ra(n));break}}e=e.return}}function Ar(t,e,a){var n=t.pingCache;if(n===null){n=t.pingCache=new op;var l=new Set;n.set(e,l)}else l=n.get(e),l===void 0&&(l=new Set,n.set(e,l));l.has(a)||(gr=!0,l.add(a),t=pp.bind(null,t,e,a),e.then(t,t))}function pp(t,e,a){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(vt&a)===a&&(Pt===4||Pt===3&&(vt&62914560)===vt&&300>qt()-lu?(Mt&2)===0&&tl(t,0):yr|=a,Fn===vt&&(Fn=0)),ra(t)}function qd(t,e){e===0&&(e=Oc()),t=rn(t,e),t!==null&&(hl(t,e),ra(t))}function gp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),qd(t,a)}function yp(t,e){var a=0;switch(t.tag){case 31:case 13:var n=t.stateNode,l=t.memoizedState;l!==null&&(a=l.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(r(314))}n!==null&&n.delete(e),qd(t,a)}function vp(t,e){return Kt(t,e)}var fu=null,al=null,_r=!1,du=!1,Tr=!1,Ja=0;function ra(t){t!==al&&t.next===null&&(al===null?fu=al=t:al=al.next=t),du=!0,_r||(_r=!0,Sp())}function Jl(t,e){if(!Tr&&du){Tr=!0;do for(var a=!1,n=fu;n!==null;){if(t!==0){var l=n.pendingLanes;if(l===0)var u=0;else{var o=n.suspendedLanes,h=n.pingedLanes;u=(1<<31-Re(42|t)+1)-1,u&=l&~(o&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Xd(n,u))}else u=vt,u=gi(n,n===Bt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||dl(n,u)||(a=!0,Xd(n,u));n=n.next}while(a);Tr=!1}}function bp(){Yd()}function Yd(){du=_r=!1;var t=0;Ja!==0&&Cp()&&(t=Ja);for(var e=qt(),a=null,n=fu;n!==null;){var l=n.next,u=Vd(n,e);u===0?(n.next=null,a===null?fu=l:a.next=l,l===null&&(al=a)):(a=n,(t!==0||(u&3)!==0)&&(du=!0)),n=l}ne!==0&&ne!==5||Jl(t),Ja!==0&&(Ja=0)}function Vd(t,e){for(var a=t.suspendedLanes,n=t.pingedLanes,l=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var o=31-Re(u),h=1<<o,v=l[o];v===-1?((h&a)===0||(h&n)!==0)&&(l[o]=Zm(h,e)):v<=e&&(t.expiredLanes|=h),u&=~h}if(e=Bt,a=vt,a=gi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,a===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Me(n),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||dl(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(n!==null&&Me(n),Yu(a)){case 2:case 8:a=Cc;break;case 32:a=di;break;case 268435456:a=zc;break;default:a=di}return n=Gd.bind(null,t),a=Kt(a,n),t.callbackPriority=e,t.callbackNode=a,e}return n!==null&&n!==null&&Me(n),t.callbackPriority=2,t.callbackNode=null,2}function Gd(t,e){if(ne!==0&&ne!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(ou()&&t.callbackNode!==a)return null;var n=vt;return n=gi(t,t===Bt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Ad(t,n,e),Vd(t,qt()),t.callbackNode!=null&&t.callbackNode===a?Gd.bind(null,t):null)}function Xd(t,e){if(ou())return null;Ad(t,e,!0)}function Sp(){Op(function(){(Mt&6)!==0?Kt(la,bp):Yd()})}function Mr(){if(Ja===0){var t=Yn;t===0&&(t=hi,hi<<=1,(hi&261888)===0&&(hi=256)),Ja=t}return Ja}function Qd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Si(""+t)}function Zd(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function wp(t,e,a,n,l){if(e==="submit"&&a&&a.stateNode===l){var u=Qd((l[Se]||null).action),o=n.submitter;o&&(e=(e=o[Se]||null)?Qd(e.formAction):o.getAttribute("formAction"),e!==null&&(u=e,o=null));var h=new Ai("action","action",null,n,l);t.push({event:h,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Ja!==0){var v=o?Zd(l,o):new FormData(l);Js(a,{pending:!0,data:v,method:l.method,action:u},null,v)}}else typeof u=="function"&&(h.preventDefault(),v=o?Zd(l,o):new FormData(l),Js(a,{pending:!0,data:v,method:l.method,action:u},u,v))},currentTarget:l}]})}}for(var Dr=0;Dr<os.length;Dr++){var Rr=os[Dr],Ep=Rr.toLowerCase(),xp=Rr[0].toUpperCase()+Rr.slice(1);Pe(Ep,"on"+xp)}Pe(Eo,"onAnimationEnd"),Pe(xo,"onAnimationIteration"),Pe(Ao,"onAnimationStart"),Pe("dblclick","onDoubleClick"),Pe("focusin","onFocus"),Pe("focusout","onBlur"),Pe(H0,"onTransitionRun"),Pe(q0,"onTransitionStart"),Pe(Y0,"onTransitionCancel"),Pe(_o,"onTransitionEnd"),Mn("onMouseEnter",["mouseout","mouseover"]),Mn("onMouseLeave",["mouseout","mouseover"]),Mn("onPointerEnter",["pointerout","pointerover"]),Mn("onPointerLeave",["pointerout","pointerover"]),nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),nn("onBeforeInput",["compositionend","keypress","textInput","paste"]),nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="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(" "),Ap=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function Jd(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var n=t[a],l=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var o=n.length-1;0<=o;o--){var h=n[o],v=h.instance,R=h.currentTarget;if(h=h.listener,v!==u&&l.isPropagationStopped())break t;u=h,l.currentTarget=R;try{u(l)}catch(j){Mi(j)}l.currentTarget=null,u=v}else for(o=0;o<n.length;o++){if(h=n[o],v=h.instance,R=h.currentTarget,h=h.listener,v!==u&&l.isPropagationStopped())break t;u=h,l.currentTarget=R;try{u(l)}catch(j){Mi(j)}l.currentTarget=null,u=v}}}}function yt(t,e){var a=e[Vu];a===void 0&&(a=e[Vu]=new Set);var n=t+"__bubble";a.has(n)||(Kd(e,t,2,!1),a.add(n))}function Cr(t,e,a){var n=0;e&&(n|=4),Kd(a,t,n,e)}var hu="_reactListening"+Math.random().toString(36).slice(2);function zr(t){if(!t[hu]){t[hu]=!0,Hc.forEach(function(a){a!=="selectionchange"&&(Ap.has(a)||Cr(a,!1,t),Cr(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[hu]||(e[hu]=!0,Cr("selectionchange",!1,e))}}function Kd(t,e,a,n){switch(xh(e)){case 2:var l=Fp;break;case 8:l=Ip;break;default:l=Zr}a=l.bind(null,e,a,t),l=void 0,!Wu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),n?l!==void 0?t.addEventListener(e,a,{capture:!0,passive:l}):t.addEventListener(e,a,!0):l!==void 0?t.addEventListener(e,a,{passive:l}):t.addEventListener(e,a,!1)}function Or(t,e,a,n,l){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var h=n.stateNode.containerInfo;if(h===l)break;if(o===4)for(o=n.return;o!==null;){var v=o.tag;if((v===3||v===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;h!==null;){if(o=An(h),o===null)return;if(v=o.tag,v===5||v===6||v===26||v===27){n=u=o;continue t}h=h.parentNode}}n=n.return}Wc(function(){var R=u,j=$u(a),H=[];t:{var C=To.get(t);if(C!==void 0){var z=Ai,F=t;switch(t){case"keypress":if(Ei(a)===0)break t;case"keydown":case"keyup":z=y0;break;case"focusin":F="focus",z=es;break;case"focusout":F="blur",z=es;break;case"beforeblur":case"afterblur":z=es;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=to;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=i0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=S0;break;case Eo:case xo:case Ao:z=r0;break;case _o:z=E0;break;case"scroll":case"scrollend":z=n0;break;case"wheel":z=A0;break;case"copy":case"cut":case"paste":z=o0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=ao;break;case"toggle":case"beforetoggle":z=T0}var it=(e&4)!==0,Lt=!it&&(t==="scroll"||t==="scrollend"),_=it?C!==null?C+"Capture":null:C;it=[];for(var S=R,D;S!==null;){var B=S;if(D=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||D===null||_===null||(B=gl(S,_),B!=null&&it.push($l(S,B,D))),Lt)break;S=S.return}0<it.length&&(C=new z(C,F,null,a,j),H.push({event:C,listeners:it}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&a!==Ku&&(F=a.relatedTarget||a.fromElement)&&(An(F)||F[xn]))break t;if((z||C)&&(C=j.window===j?j:(C=j.ownerDocument)?C.defaultView||C.parentWindow:window,z?(F=a.relatedTarget||a.toElement,z=R,F=F?An(F):null,F!==null&&(Lt=d(F),it=F.tag,F!==Lt||it!==5&&it!==27&&it!==6)&&(F=null)):(z=null,F=R),z!==F)){if(it=to,B="onMouseLeave",_="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(it=ao,B="onPointerLeave",_="onPointerEnter",S="pointer"),Lt=z==null?C:pl(z),D=F==null?C:pl(F),C=new it(B,S+"leave",z,a,j),C.target=Lt,C.relatedTarget=D,B=null,An(j)===R&&(it=new it(_,S+"enter",F,a,j),it.target=D,it.relatedTarget=Lt,B=it),Lt=B,z&&F)e:{for(it=_p,_=z,S=F,D=0,B=_;B;B=it(B))D++;B=0;for(var at=S;at;at=it(at))B++;for(;0<D-B;)_=it(_),D--;for(;0<B-D;)S=it(S),B--;for(;D--;){if(_===S||S!==null&&_===S.alternate){it=_;break e}_=it(_),S=it(S)}it=null}else it=null;z!==null&&$d(H,C,z,it,!1),F!==null&&Lt!==null&&$d(H,Lt,F,it,!0)}}t:{if(C=R?pl(R):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var At=oo;else if(ro(C))if(fo)At=j0;else{At=U0;var et=N0}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?R&&Ju(R.elementType)&&(At=oo):At=k0;if(At&&(At=At(t,R))){co(H,At,a,j);break t}et&&et(t,C,R),t==="focusout"&&R&&C.type==="number"&&R.memoizedProps.value!=null&&Zu(C,"number",C.value)}switch(et=R?pl(R):window,t){case"focusin":(ro(et)||et.contentEditable==="true")&&(Nn=et,ss=R,Al=null);break;case"focusout":Al=ss=Nn=null;break;case"mousedown":rs=!0;break;case"contextmenu":case"mouseup":case"dragend":rs=!1,So(H,a,j);break;case"selectionchange":if(B0)break;case"keydown":case"keyup":So(H,a,j)}var dt;if(ns)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else On?uo(t,a)&&(bt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(bt="onCompositionStart");bt&&(no&&a.locale!=="ko"&&(On||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&On&&(dt=Fc()):(za=j,Fu="value"in za?za.value:za.textContent,On=!0)),et=mu(R,bt),0<et.length&&(bt=new eo(bt,t,null,a,j),H.push({event:bt,listeners:et}),dt?bt.data=dt:(dt=so(a),dt!==null&&(bt.data=dt)))),(dt=D0?R0(t,a):C0(t,a))&&(bt=mu(R,"onBeforeInput"),0<bt.length&&(et=new eo("onBeforeInput","beforeinput",null,a,j),H.push({event:et,listeners:bt}),et.data=dt)),wp(H,t,R,a,j)}Jd(H,e)})}function $l(t,e,a){return{instance:t,listener:e,currentTarget:a}}function mu(t,e){for(var a=e+"Capture",n=[];t!==null;){var l=t,u=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||u===null||(l=gl(t,a),l!=null&&n.unshift($l(t,l,u)),l=gl(t,e),l!=null&&n.push($l(t,l,u))),t.tag===3)return n;t=t.return}return[]}function _p(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function $d(t,e,a,n,l){for(var u=e._reactName,o=[];a!==null&&a!==n;){var h=a,v=h.alternate,R=h.stateNode;if(h=h.tag,v!==null&&v===n)break;h!==5&&h!==26&&h!==27||R===null||(v=R,l?(R=gl(a,u),R!=null&&o.unshift($l(a,R,v))):l||(R=gl(a,u),R!=null&&o.push($l(a,R,v)))),a=a.return}o.length!==0&&t.push({event:e,listeners:o})}var Tp=/\r\n?/g,Mp=/\u0000|\uFFFD/g;function Pd(t){return(typeof t=="string"?t:""+t).replace(Tp,`
`).replace(Mp,"")}function Wd(t,e){return e=Pd(e),Pd(t)===e}function jt(t,e,a,n,l,u){switch(a){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||Rn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&Rn(t,""+n);break;case"className":vi(t,"class",n);break;case"tabIndex":vi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(t,a,n);break;case"style":$c(t,n,u);break;case"data":if(e!=="object"){vi(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Si(""+n),t.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(a==="formAction"?(e!=="input"&&jt(t,e,"name",l.name,l,null),jt(t,e,"formEncType",l.formEncType,l,null),jt(t,e,"formMethod",l.formMethod,l,null),jt(t,e,"formTarget",l.formTarget,l,null)):(jt(t,e,"encType",l.encType,l,null),jt(t,e,"method",l.method,l,null),jt(t,e,"target",l.target,l,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(a);break}n=Si(""+n),t.setAttribute(a,n);break;case"onClick":n!=null&&(t.onclick=oa);break;case"onScroll":n!=null&&yt("scroll",t);break;case"onScrollEnd":n!=null&&yt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}a=Si(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""+n):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":n===!0?t.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(a,n):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(a,n):t.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(a):t.setAttribute(a,n);break;case"popover":yt("beforetoggle",t),yt("toggle",t),yi(t,"popover",n);break;case"xlinkActuate":ca(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ca(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ca(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ca(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ca(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ca(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ca(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ca(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ca(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":yi(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=e0.get(a)||a,yi(t,a,n))}}function Nr(t,e,a,n,l,u){switch(a){case"style":$c(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(r(61));if(a=n.__html,a!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof n=="string"?Rn(t,n):(typeof n=="number"||typeof n=="bigint")&&Rn(t,""+n);break;case"onScroll":n!=null&&yt("scroll",t);break;case"onScrollEnd":n!=null&&yt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=oa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qc.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),e=a.slice(2,l?a.length-7:void 0),u=t[Se]||null,u=u!=null?u[a]:null,typeof u=="function"&&t.removeEventListener(e,u,l),typeof n=="function")){typeof u!="function"&&u!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,n,l);break t}a in t?t[a]=n:n===!0?t.setAttribute(a,""):yi(t,a,n)}}}function he(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yt("error",t),yt("load",t);var n=!1,l=!1,u;for(u in a)if(a.hasOwnProperty(u)){var o=a[u];if(o!=null)switch(u){case"src":n=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,u,o,a,null)}}l&&jt(t,e,"srcSet",a.srcSet,a,null),n&&jt(t,e,"src",a.src,a,null);return;case"input":yt("invalid",t);var h=u=o=l=null,v=null,R=null;for(n in a)if(a.hasOwnProperty(n)){var j=a[n];if(j!=null)switch(n){case"name":l=j;break;case"type":o=j;break;case"checked":v=j;break;case"defaultChecked":R=j;break;case"value":u=j;break;case"defaultValue":h=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:jt(t,e,n,j,a,null)}}Qc(t,u,h,v,R,o,l,!1);return;case"select":yt("invalid",t),n=o=u=null;for(l in a)if(a.hasOwnProperty(l)&&(h=a[l],h!=null))switch(l){case"value":u=h;break;case"defaultValue":o=h;break;case"multiple":n=h;default:jt(t,e,l,h,a,null)}e=u,a=o,t.multiple=!!n,e!=null?Dn(t,!!n,e,!1):a!=null&&Dn(t,!!n,a,!0);return;case"textarea":yt("invalid",t),u=l=n=null;for(o in a)if(a.hasOwnProperty(o)&&(h=a[o],h!=null))switch(o){case"value":n=h;break;case"defaultValue":l=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:jt(t,e,o,h,a,null)}Jc(t,n,l,u);return;case"option":for(v in a)if(a.hasOwnProperty(v)&&(n=a[v],n!=null))switch(v){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:jt(t,e,v,n,a,null)}return;case"dialog":yt("beforetoggle",t),yt("toggle",t),yt("cancel",t),yt("close",t);break;case"iframe":case"object":yt("load",t);break;case"video":case"audio":for(n=0;n<Kl.length;n++)yt(Kl[n],t);break;case"image":yt("error",t),yt("load",t);break;case"details":yt("toggle",t);break;case"embed":case"source":case"link":yt("error",t),yt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in a)if(a.hasOwnProperty(R)&&(n=a[R],n!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,R,n,a,null)}return;default:if(Ju(e)){for(j in a)a.hasOwnProperty(j)&&(n=a[j],n!==void 0&&Nr(t,e,j,n,a,void 0));return}}for(h in a)a.hasOwnProperty(h)&&(n=a[h],n!=null&&jt(t,e,h,n,a,null))}function Dp(t,e,a,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,u=null,o=null,h=null,v=null,R=null,j=null;for(z in a){var H=a[z];if(a.hasOwnProperty(z)&&H!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":v=H;default:n.hasOwnProperty(z)||jt(t,e,z,null,n,H)}}for(var C in n){var z=n[C];if(H=a[C],n.hasOwnProperty(C)&&(z!=null||H!=null))switch(C){case"type":u=z;break;case"name":l=z;break;case"checked":R=z;break;case"defaultChecked":j=z;break;case"value":o=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==H&&jt(t,e,C,z,n,H)}}Qu(t,o,h,v,R,j,u,l);return;case"select":z=o=h=C=null;for(u in a)if(v=a[u],a.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":z=v;default:n.hasOwnProperty(u)||jt(t,e,u,null,n,v)}for(l in n)if(u=n[l],v=a[l],n.hasOwnProperty(l)&&(u!=null||v!=null))switch(l){case"value":C=u;break;case"defaultValue":h=u;break;case"multiple":o=u;default:u!==v&&jt(t,e,l,u,n,v)}e=h,a=o,n=z,C!=null?Dn(t,!!a,C,!1):!!n!=!!a&&(e!=null?Dn(t,!!a,e,!0):Dn(t,!!a,a?[]:"",!1));return;case"textarea":z=C=null;for(h in a)if(l=a[h],a.hasOwnProperty(h)&&l!=null&&!n.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:jt(t,e,h,null,n,l)}for(o in n)if(l=n[o],u=a[o],n.hasOwnProperty(o)&&(l!=null||u!=null))switch(o){case"value":C=l;break;case"defaultValue":z=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(r(91));break;default:l!==u&&jt(t,e,o,l,n,u)}Zc(t,C,z);return;case"option":for(var F in a)if(C=a[F],a.hasOwnProperty(F)&&C!=null&&!n.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:jt(t,e,F,null,n,C)}for(v in n)if(C=n[v],z=a[v],n.hasOwnProperty(v)&&C!==z&&(C!=null||z!=null))switch(v){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:jt(t,e,v,C,n,z)}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 it in a)C=a[it],a.hasOwnProperty(it)&&C!=null&&!n.hasOwnProperty(it)&&jt(t,e,it,null,n,C);for(R in n)if(C=n[R],z=a[R],n.hasOwnProperty(R)&&C!==z&&(C!=null||z!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,e));break;default:jt(t,e,R,C,n,z)}return;default:if(Ju(e)){for(var Lt in a)C=a[Lt],a.hasOwnProperty(Lt)&&C!==void 0&&!n.hasOwnProperty(Lt)&&Nr(t,e,Lt,void 0,n,C);for(j in n)C=n[j],z=a[j],!n.hasOwnProperty(j)||C===z||C===void 0&&z===void 0||Nr(t,e,j,C,n,z);return}}for(var _ in a)C=a[_],a.hasOwnProperty(_)&&C!=null&&!n.hasOwnProperty(_)&&jt(t,e,_,null,n,C);for(H in n)C=n[H],z=a[H],!n.hasOwnProperty(H)||C===z||C==null&&z==null||jt(t,e,H,C,n,z)}function Fd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var l=a[n],u=l.transferSize,o=l.initiatorType,h=l.duration;if(u&&h&&Fd(o)){for(o=0,h=l.responseEnd,n+=1;n<a.length;n++){var v=a[n],R=v.startTime;if(R>h)break;var j=v.transferSize,H=v.initiatorType;j&&Fd(H)&&(v=v.responseEnd,o+=j*(v<h?1:(h-R)/(v-R)))}if(--n,e+=8*(u+o)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ur=null,kr=null;function pu(t){return t.nodeType===9?t:t.ownerDocument}function Id(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function th(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function jr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Lr=null;function Cp(){var t=window.event;return t&&t.type==="popstate"?t===Lr?!1:(Lr=t,!0):(Lr=null,!1)}var eh=typeof setTimeout=="function"?setTimeout:void 0,zp=typeof clearTimeout=="function"?clearTimeout:void 0,ah=typeof Promise=="function"?Promise:void 0,Op=typeof queueMicrotask=="function"?queueMicrotask:typeof ah<"u"?function(t){return ah.resolve(null).then(t).catch(Np)}:eh;function Np(t){setTimeout(function(){throw t})}function Ka(t){return t==="head"}function nh(t,e){var a=e,n=0;do{var l=a.nextSibling;if(t.removeChild(a),l&&l.nodeType===8)if(a=l.data,a==="/$"||a==="/&"){if(n===0){t.removeChild(l),ul(e);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Pl(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,Pl(a);for(var u=a.firstChild;u;){var o=u.nextSibling,h=u.nodeName;u[ml]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=o}}else a==="body"&&Pl(t.ownerDocument.body);a=l}while(a);ul(e)}function lh(t,e){var a=t;t=0;do{var n=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=n}while(a)}function Br(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Br(a),Gu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Up(t,e,a,n){for(;t.nodeType===1;){var l=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[ml])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function kp(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ze(t.nextSibling),t===null))return null;return t}function ih(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function Hr(t){return t.data==="$?"||t.data==="$~"}function qr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jp(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var n=function(){e(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Yr=null;function uh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Ze(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function sh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function rh(t,e,a){switch(e=pu(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Pl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Gu(t)}var Je=new Map,ch=new Set;function gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ta=T.d;T.d={f:Lp,r:Bp,D:Hp,C:qp,L:Yp,m:Vp,X:Xp,S:Gp,M:Qp};function Lp(){var t=Ta.f(),e=su();return t||e}function Bp(t){var e=_n(t);e!==null&&e.tag===5&&e.type==="form"?Tf(e):Ta.r(t)}var nl=typeof document>"u"?null:document;function oh(t,e,a){var n=nl;if(n&&typeof e=="string"&&e){var l=He(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof a=="string"&&(l+='[crossorigin="'+a+'"]'),ch.has(l)||(ch.add(l),t={rel:t,crossOrigin:a,href:e},n.querySelector(l)===null&&(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function Hp(t){Ta.D(t),oh("dns-prefetch",t,null)}function qp(t,e){Ta.C(t,e),oh("preconnect",t,e)}function Yp(t,e,a){Ta.L(t,e,a);var n=nl;if(n&&t&&e){var l='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&a&&a.imageSrcSet?(l+='[imagesrcset="'+He(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(l+='[imagesizes="'+He(a.imageSizes)+'"]')):l+='[href="'+He(t)+'"]';var u=l;switch(e){case"style":u=ll(t);break;case"script":u=il(t)}Je.has(u)||(t=A({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Je.set(u,t),n.querySelector(l)!==null||e==="style"&&n.querySelector(Wl(u))||e==="script"&&n.querySelector(Fl(u))||(e=n.createElement("link"),he(e,"link",t),ue(e),n.head.appendChild(e)))}}function Vp(t,e){Ta.m(t,e);var a=nl;if(a&&t){var n=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+He(n)+'"][href="'+He(t)+'"]',u=l;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=il(t)}if(!Je.has(u)&&(t=A({rel:"modulepreload",href:t},e),Je.set(u,t),a.querySelector(l)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fl(u)))return}n=a.createElement("link"),he(n,"link",t),ue(n),a.head.appendChild(n)}}}function Gp(t,e,a){Ta.S(t,e,a);var n=nl;if(n&&t){var l=Tn(n).hoistableStyles,u=ll(t);e=e||"default";var o=l.get(u);if(!o){var h={loading:0,preload:null};if(o=n.querySelector(Wl(u)))h.loading=5;else{t=A({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Je.get(u))&&Vr(t,a);var v=o=n.createElement("link");ue(v),he(v,"link",t),v._p=new Promise(function(R,j){v.onload=R,v.onerror=j}),v.addEventListener("load",function(){h.loading|=1}),v.addEventListener("error",function(){h.loading|=2}),h.loading|=4,yu(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:h},l.set(u,o)}}}function Xp(t,e){Ta.X(t,e);var a=nl;if(a&&t){var n=Tn(a).hoistableScripts,l=il(t),u=n.get(l);u||(u=a.querySelector(Fl(l)),u||(t=A({src:t,async:!0},e),(e=Je.get(l))&&Gr(t,e),u=a.createElement("script"),ue(u),he(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(l,u))}}function Qp(t,e){Ta.M(t,e);var a=nl;if(a&&t){var n=Tn(a).hoistableScripts,l=il(t),u=n.get(l);u||(u=a.querySelector(Fl(l)),u||(t=A({src:t,async:!0,type:"module"},e),(e=Je.get(l))&&Gr(t,e),u=a.createElement("script"),ue(u),he(u,"link",t),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(l,u))}}function fh(t,e,a,n){var l=(l=ht.current)?gu(l):null;if(!l)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=ll(a.href),a=Tn(l).hoistableStyles,n=a.get(e),n||(n={type:"style",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ll(a.href);var u=Tn(l).hoistableStyles,o=u.get(t);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,o),(u=l.querySelector(Wl(t)))&&!u._p&&(o.instance=u,o.state.loading=5),Je.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Je.set(t,a),u||Zp(l,t,a,o.state))),e&&n===null)throw Error(r(528,""));return o}if(e&&n!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=il(a),a=Tn(l).hoistableScripts,n=a.get(e),n||(n={type:"script",instance:null,count:0,state:null},a.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ll(t){return'href="'+He(t)+'"'}function Wl(t){return'link[rel="stylesheet"]['+t+"]"}function dh(t){return A({},t,{"data-precedence":t.precedence,precedence:null})}function Zp(t,e,a,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),he(e,"link",a),ue(e),t.head.appendChild(e))}function il(t){return'[src="'+He(t)+'"]'}function Fl(t){return"script[async]"+t}function hh(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+He(a.href)+'"]');if(n)return e.instance=n,ue(n),n;var l=A({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),ue(n),he(n,"style",l),yu(n,a.precedence,t),e.instance=n;case"stylesheet":l=ll(a.href);var u=t.querySelector(Wl(l));if(u)return e.state.loading|=4,e.instance=u,ue(u),u;n=dh(a),(l=Je.get(l))&&Vr(n,l),u=(t.ownerDocument||t).createElement("link"),ue(u);var o=u;return o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),he(u,"link",n),e.state.loading|=4,yu(u,a.precedence,t),e.instance=u;case"script":return u=il(a.src),(l=t.querySelector(Fl(u)))?(e.instance=l,ue(l),l):(n=a,(l=Je.get(u))&&(n=A({},a),Gr(n,l)),t=t.ownerDocument||t,l=t.createElement("script"),ue(l),he(l,"link",n),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,yu(n,a.precedence,t));return e.instance}function yu(t,e,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=n.length?n[n.length-1]:null,u=l,o=0;o<n.length;o++){var h=n[o];if(h.dataset.precedence===e)u=h;else if(u!==l)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Vr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Gr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var vu=null;function mh(t,e,a){if(vu===null){var n=new Map,l=vu=new Map;l.set(a,n)}else l=vu,n=l.get(a),n||(n=new Map,l.set(a,n));if(n.has(t))return n;for(n.set(t,null),a=a.getElementsByTagName(t),l=0;l<a.length;l++){var u=a[l];if(!(u[ml]||u[ce]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(e)||"";o=t+o;var h=n.get(o);h?h.push(u):n.set(o,[u])}}return n}function ph(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Jp(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function gh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Kp(t,e,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=ll(n.href),u=e.querySelector(Wl(l));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=bu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=u,ue(u);return}u=e.ownerDocument||e,n=dh(n),(l=Je.get(l))&&Vr(n,l),u=u.createElement("link"),ue(u);var o=u;o._p=new Promise(function(h,v){o.onload=h,o.onerror=v}),he(u,"link",n),a.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=bu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Xr=0;function $p(t,e){return t.stylesheets&&t.count===0&&wu(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var n=setTimeout(function(){if(t.stylesheets&&wu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Xr===0&&(Xr=62500*Rp());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&wu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Xr?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(l)}}:null}function bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Su=null;function wu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Su=new Map,e.forEach(Pp,t),Su=null,bu.call(t))}function Pp(t,e){if(!(e.state.loading&4)){var a=Su.get(t);if(a)var n=a.get(null);else{a=new Map,Su.set(t,a);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<l.length;u++){var o=l[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),n=o)}n&&a.set(null,n)}l=e.instance,o=l.getAttribute("data-precedence"),u=a.get(o)||n,u===n&&a.set(null,l),a.set(o,l),this.count++,n=bu.bind(this),l.addEventListener("load",n),l.addEventListener("error",n),u?u.parentNode.insertBefore(l,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var Il={$$typeof:p,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Wp(t,e,a,n,l,u,o,h,v){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.hiddenUpdates=Hu(null),this.identifierPrefix=n,this.onUncaughtError=l,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function yh(t,e,a,n,l,u,o,h,v,R,j,H){return t=new Wp(t,e,a,o,v,R,j,H,h),e=1,u===!0&&(e|=24),u=ze(3,null,null,e),t.current=u,u.stateNode=t,e=xs(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:a,cache:e},Ms(u),t}function vh(t){return t?(t=jn,t):jn}function bh(t,e,a,n,l,u){l=vh(l),n.context===null?n.context=l:n.pendingContext=l,n=La(e),n.payload={element:a},u=u===void 0?null:u,u!==null&&(n.callback=u),a=Ba(t,n,e),a!==null&&(Te(a,t,e),zl(a,t,e))}function Sh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Qr(t,e){Sh(t,e),(t=t.alternate)&&Sh(t,e)}function wh(t){if(t.tag===13||t.tag===31){var e=rn(t,67108864);e!==null&&Te(e,t,67108864),Qr(t,67108864)}}function Eh(t){if(t.tag===13||t.tag===31){var e=je();e=qu(e);var a=rn(t,e);a!==null&&Te(a,t,e),Qr(t,e)}}var Eu=!0;function Fp(t,e,a,n){var l=U.T;U.T=null;var u=T.p;try{T.p=2,Zr(t,e,a,n)}finally{T.p=u,U.T=l}}function Ip(t,e,a,n){var l=U.T;U.T=null;var u=T.p;try{T.p=8,Zr(t,e,a,n)}finally{T.p=u,U.T=l}}function Zr(t,e,a,n){if(Eu){var l=Jr(n);if(l===null)Or(t,e,n,xu,a),Ah(t,n);else if(eg(l,t,e,a,n))n.stopPropagation();else if(Ah(t,n),e&4&&-1<tg.indexOf(t)){for(;l!==null;){var u=_n(l);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=an(u.pendingLanes);if(o!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var v=1<<31-Re(o);h.entanglements[1]|=v,o&=~v}ra(u),(Mt&6)===0&&(iu=qt()+500,Jl(0))}}break;case 31:case 13:h=rn(u,2),h!==null&&Te(h,u,2),su(),Qr(u,2)}if(u=Jr(n),u===null&&Or(t,e,n,xu,a),u===l)break;l=u}l!==null&&n.stopPropagation()}else Or(t,e,n,null,a)}}function Jr(t){return t=$u(t),Kr(t)}var xu=null;function Kr(t){if(xu=null,t=An(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=g(e),t!==null)return t;t=null}else if(a===31){if(t=b(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return xu=t,null}function xh(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(na()){case la:return 2;case Cc:return 8;case di:case qm:return 32;case zc:return 268435456;default:return 32}default:return 32}}var $r=!1,$a=null,Pa=null,Wa=null,ti=new Map,ei=new Map,Fa=[],tg="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 Ah(t,e){switch(t){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Pa=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":ti.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(e.pointerId)}}function ai(t,e,a,n,l,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:a,eventSystemFlags:n,nativeEvent:u,targetContainers:[l]},e!==null&&(e=_n(e),e!==null&&wh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function eg(t,e,a,n,l){switch(e){case"focusin":return $a=ai($a,t,e,a,n,l),!0;case"dragenter":return Pa=ai(Pa,t,e,a,n,l),!0;case"mouseover":return Wa=ai(Wa,t,e,a,n,l),!0;case"pointerover":var u=l.pointerId;return ti.set(u,ai(ti.get(u)||null,t,e,a,n,l)),!0;case"gotpointercapture":return u=l.pointerId,ei.set(u,ai(ei.get(u)||null,t,e,a,n,l)),!0}return!1}function _h(t){var e=An(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=g(a),e!==null){t.blockedOn=e,Lc(t.priority,function(){Eh(a)});return}}else if(e===31){if(e=b(a),e!==null){t.blockedOn=e,Lc(t.priority,function(){Eh(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Au(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Jr(t.nativeEvent);if(a===null){a=t.nativeEvent;var n=new a.constructor(a.type,a);Ku=n,a.target.dispatchEvent(n),Ku=null}else return e=_n(a),e!==null&&wh(e),t.blockedOn=a,!1;e.shift()}return!0}function Th(t,e,a){Au(t)&&a.delete(e)}function ag(){$r=!1,$a!==null&&Au($a)&&($a=null),Pa!==null&&Au(Pa)&&(Pa=null),Wa!==null&&Au(Wa)&&(Wa=null),ti.forEach(Th),ei.forEach(Th)}function _u(t,e){t.blockedOn===e&&(t.blockedOn=null,$r||($r=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,ag)))}var Tu=null;function Mh(t){Tu!==t&&(Tu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Tu===t&&(Tu=null);for(var e=0;e<t.length;e+=3){var a=t[e],n=t[e+1],l=t[e+2];if(typeof n!="function"){if(Kr(n||a)===null)continue;break}var u=_n(a);u!==null&&(t.splice(e,3),e-=3,Js(u,{pending:!0,data:l,method:a.method,action:n},n,l))}}))}function ul(t){function e(v){return _u(v,t)}$a!==null&&_u($a,t),Pa!==null&&_u(Pa,t),Wa!==null&&_u(Wa,t),ti.forEach(e),ei.forEach(e);for(var a=0;a<Fa.length;a++){var n=Fa[a];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Fa.length&&(a=Fa[0],a.blockedOn===null);)_h(a),a.blockedOn===null&&Fa.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var l=a[n],u=a[n+1],o=l[Se]||null;if(typeof u=="function")o||Mh(a);else if(o){var h=null;if(u&&u.hasAttribute("formAction")){if(l=u,o=u[Se]||null)h=o.formAction;else if(Kr(l)!==null)continue}else h=o.action;typeof h=="function"?a[n+1]=h:(a.splice(n,3),n-=3),Mh(a)}}}function Dh(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function Pr(t){this._internalRoot=t}Mu.prototype.render=Pr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,n=je();bh(a,n,t,e,null,null)},Mu.prototype.unmount=Pr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bh(t.current,2,null,t,null,null),su(),e[xn]=null}};function Mu(t){this._internalRoot=t}Mu.prototype.unstable_scheduleHydration=function(t){if(t){var e=jc();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Fa.length&&e!==0&&e<Fa[a].priority;a++);Fa.splice(a,0,t),a===0&&_h(t)}};var Rh=i.version;if(Rh!=="19.2.7")throw Error(r(527,Rh,"19.2.7"));T.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=m(e),t=t!==null?M(t):null,t=t===null?null:t.stateNode,t};var ng={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Du=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Du.isDisabled&&Du.supportsFiber)try{fl=Du.inject(ng),De=Du}catch{}}return li.createRoot=function(t,e){if(!f(t))throw Error(r(299));var a=!1,n="",l=jf,u=Lf,o=Bf;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=yh(t,1,!1,null,null,a,n,null,l,u,o,Dh),t[xn]=e.current,zr(t),new Pr(e)},li.hydrateRoot=function(t,e,a){if(!f(t))throw Error(r(299));var n=!1,l="",u=jf,o=Lf,h=Bf,v=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),e=yh(t,1,!0,e,a??null,n,l,v,u,o,h,Dh),e.context=vh(null),a=e.current,n=je(),n=qu(n),l=La(n),l.callback=null,Ba(a,l,n),a=n,e.current.lanes=a,hl(e,a),ra(e),t[xn]=e.current,zr(t),new Mu(e)},li.version="19.2.7",li}var Yh;function yg(){if(Yh)return Ir.exports;Yh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Ir.exports=gg(),Ir.exports}var vg=yg();/**
* react-router v7.17.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Vh="popstate";function Gh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function bg(s={}){function i(r,f){var m;let d=(m=f.state)==null?void 0:m.masked,{pathname:g,search:b,hash:y}=d||r.location;return oc("",{pathname:g,search:b,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default",d?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,f){return typeof f=="string"?f:ri(f)}return wg(i,c,null,s)}function Xt(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Ke(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Sg(){return Math.random().toString(36).substring(2,10)}function Xh(s,i){return{usr:s.state,key:s.key,idx:i,masked:s.mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function oc(s,i,c=null,r,f){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?sl(i):i,state:c,key:i&&i.key||r||Sg(),mask:f}}function ri({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function sl(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function wg(s,i,c,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,g=f.history,b="POP",y=null,m=M();m==null&&(m=0,g.replaceState({...g.state,idx:m},""));function M(){return(g.state||{idx:null}).idx}function A(){b="POP";let L=M(),O=L==null?null:L-m;m=L,y&&y({action:b,location:X.location,delta:O})}function k(L,O){b="PUSH";let N=Gh(L)?L:oc(X.location,L,O);m=M()+1;let p=Xh(N,m),K=X.createHref(N.mask||N);try{g.pushState(p,"",K)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;f.location.assign(K)}d&&y&&y({action:b,location:X.location,delta:1})}function $(L,O){b="REPLACE";let N=Gh(L)?L:oc(X.location,L,O);m=M();let p=Xh(N,m),K=X.createHref(N.mask||N);g.replaceState(p,"",K),d&&y&&y({action:b,location:X.location,delta:0})}function J(L){return Eg(f,L)}let X={get action(){return b},get location(){return s(f,g)},listen(L){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(Vh,A),y=L,()=>{f.removeEventListener(Vh,A),y=null}},createHref(L){return i(f,L)},createURL:J,encodeLocation(L){let O=J(L);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:k,replace:$,go(L){return g.go(L)}};return X}function Eg(s,i,c=!1){let r="http://localhost";s&&(r=s.location.origin!=="null"?s.location.origin:s.location.href),Xt(r,"No window.location.(origin|href) available to create URL");let f=typeof i=="string"?i:ri(i);return f=f.replace(/ $/,"%20"),!c&&f.startsWith("//")&&(f=r+f),new URL(f,r)}function hm(s,i,c="/"){return xg(s,i,c,!1)}function xg(s,i,c,r,f){let d=typeof i=="string"?sl(i):i,g=Ma(d.pathname||"/",c);if(g==null)return null;let b=Ag(s),y=null,m=jg(g);for(let M=0;y==null&&M<b.length;++M)y=Ug(b[M],m,r);return y}function Ag(s){let i=mm(s);return _g(i),i}function mm(s,i=[],c=[],r="",f=!1){let d=(g,b,y=f,m)=>{let M={relativePath:m===void 0?g.path||"":m,caseSensitive:g.caseSensitive===!0,childrenIndex:b,route:g};if(M.relativePath.startsWith("/")){if(!M.relativePath.startsWith(r)&&y)return;Xt(M.relativePath.startsWith(r),`Absolute route path "${M.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),M.relativePath=M.relativePath.slice(r.length)}let A=ta([r,M.relativePath]),k=c.concat(M);g.children&&g.children.length>0&&(Xt(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),mm(g.children,i,k,A,y)),!(g.path==null&&!g.index)&&i.push({path:A,score:Og(A,g.index),routesMeta:k})};return s.forEach((g,b)=>{var y;if(g.path===""||!((y=g.path)!=null&&y.includes("?")))d(g,b);else for(let m of pm(g.path))d(g,b,!0,m)}),i}function pm(s){let i=s.split("/");if(i.length===0)return[];let[c,...r]=i,f=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let g=pm(r.join("/")),b=[];return b.push(...g.map(y=>y===""?d:[d,y].join("/"))),f&&b.push(...g),b.map(y=>s.startsWith("/")&&y===""?"/":y)}function _g(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:Ng(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var Tg=/^:[\w-]+$/,Mg=3,Dg=2,Rg=1,Cg=10,zg=-2,Qh=s=>s==="*";function Og(s,i){let c=s.split("/"),r=c.length;return c.some(Qh)&&(r+=zg),i&&(r+=Dg),c.filter(f=>!Qh(f)).reduce((f,d)=>f+(Tg.test(d)?Mg:d===""?Rg:Cg),r)}function Ng(s,i){return s.length===i.length&&s.slice(0,-1).every((r,f)=>r===i[f])?s[s.length-1]-i[i.length-1]:0}function Ug(s,i,c=!1){let{routesMeta:r}=s,f={},d="/",g=[];for(let b=0;b<r.length;++b){let y=r[b],m=b===r.length-1,M=d==="/"?i:i.slice(d.length)||"/",A=Nu({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},M),k=y.route;if(!A&&m&&c&&!r[r.length-1].route.index&&(A=Nu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},M)),!A)return null;Object.assign(f,A.params),g.push({params:f,pathname:ta([d,A.pathname]),pathnameBase:qg(ta([d,A.pathnameBase])),route:k}),A.pathnameBase!=="/"&&(d=ta([d,A.pathnameBase]))}return g}function Nu(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=kg(s.path,s.caseSensitive,s.end),f=i.match(c);if(!f)return null;let d=f[0],g=d.replace(/(.)\/+$/,"$1"),b=f.slice(1);return{params:r.reduce((m,{paramName:M,isOptional:A},k)=>{if(M==="*"){let J=b[k]||"";g=d.slice(0,d.length-J.length).replace(/(.)\/+$/,"$1")}const $=b[k];return A&&!$?m[M]=void 0:m[M]=($||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:g,pattern:s}}function kg(s,i=!1,c=!0){Ke(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],f="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,b,y,m,M)=>{if(r.push({paramName:b,isOptional:y!=null}),y){let A=M.charAt(m+g.length);return A&&A!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),f+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":s!==""&&s!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),r]}function jg(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Ke(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function Ma(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var Lg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Bg(s,i="/"){let{pathname:c,search:r="",hash:f=""}=typeof s=="string"?sl(s):s,d;return c?(c=gm(c),c.startsWith("/")?d=Zh(c.substring(1),"/"):d=Zh(c,i)):d=i,{pathname:d,search:Yg(r),hash:Vg(f)}}function Zh(s,i){let c=Uu(i).split("/");return s.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function nc(s,i,c,r){return`Cannot include a '${s}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hg(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function vc(s){let i=Hg(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function ku(s,i,c,r=!1){let f;typeof s=="string"?f=sl(s):(f={...s},Xt(!f.pathname||!f.pathname.includes("?"),nc("?","pathname","search",f)),Xt(!f.pathname||!f.pathname.includes("#"),nc("#","pathname","hash",f)),Xt(!f.search||!f.search.includes("#"),nc("#","search","hash",f)));let d=s===""||f.pathname==="",g=d?"/":f.pathname,b;if(g==null)b=c;else{let A=i.length-1;if(!r&&g.startsWith("..")){let k=g.split("/");for(;k[0]==="..";)k.shift(),A-=1;f.pathname=k.join("/")}b=A>=0?i[A]:"/"}let y=Bg(f,b),m=g&&g!=="/"&&g.endsWith("/"),M=(d||g===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(m||M)&&(y.pathname+="/"),y}var gm=s=>s.replace(/\/\/+/g,"/"),ta=s=>gm(s.join("/")),Uu=s=>s.replace(/\/+$/,""),qg=s=>Uu(s).replace(/^\/*/,"/"),Yg=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Vg=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Gg=class{constructor(s,i,c,r=!1){this.status=s,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Xg(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Qg(s){let i=s.map(c=>c.route.path).filter(Boolean);return ta(i)||"/"}var ym=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vm(s,i){let c=s;if(typeof c!="string"||!Lg.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,f=!1;if(ym)try{let d=new URL(window.location.href),g=c.startsWith("//")?new URL(d.protocol+c):new URL(c),b=Ma(g.pathname,i);g.origin===d.origin&&b!=null?c=b+g.search+g.hash:f=!0}catch{Ke(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bm=["POST","PUT","PATCH","DELETE"];new Set(bm);var Zg=["GET",...bm];new Set(Zg);var rl=E.createContext(null);rl.displayName="DataRouter";var ju=E.createContext(null);ju.displayName="DataRouterState";var Sm=E.createContext(!1);function Jg(){return E.useContext(Sm)}var wm=E.createContext({isTransitioning:!1});wm.displayName="ViewTransition";var Kg=E.createContext(new Map);Kg.displayName="Fetchers";var $g=E.createContext(null);$g.displayName="Await";var Le=E.createContext(null);Le.displayName="Navigation";var oi=E.createContext(null);oi.displayName="Location";var $e=E.createContext({outlet:null,matches:[],isDataRoute:!1});$e.displayName="Route";var bc=E.createContext(null);bc.displayName="RouteError";var Em="REACT_ROUTER_ERROR",Pg="REDIRECT",Wg="ROUTE_ERROR_RESPONSE";function Fg(s){if(s.startsWith(`${Em}:${Pg}:{`))try{let i=JSON.parse(s.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Ig(s){if(s.startsWith(`${Em}:${Wg}:{`))try{let i=JSON.parse(s.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Gg(i.status,i.statusText,i.data)}catch{}}function ty(s,{relative:i}={}){Xt(cl(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=E.useContext(Le),{hash:f,pathname:d,search:g}=fi(s,{relative:i}),b=d;return c!=="/"&&(b=d==="/"?c:ta([c,d])),r.createHref({pathname:b,search:g,hash:f})}function cl(){return E.useContext(oi)!=null}function aa(){return Xt(cl(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(oi).location}var xm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Am(s){E.useContext(Le).static||E.useLayoutEffect(s)}function ol(){let{isDataRoute:s}=E.useContext($e);return s?gy():ey()}function ey(){Xt(cl(),"useNavigate() may be used only in the context of a <Router> component.");let s=E.useContext(rl),{basename:i,navigator:c}=E.useContext(Le),{matches:r}=E.useContext($e),{pathname:f}=aa(),d=JSON.stringify(vc(r)),g=E.useRef(!1);return Am(()=>{g.current=!0}),E.useCallback((y,m={})=>{if(Ke(g.current,xm),!g.current)return;if(typeof y=="number"){c.go(y);return}let M=ku(y,JSON.parse(d),f,m.relative==="path");s==null&&i!=="/"&&(M.pathname=M.pathname==="/"?i:ta([i,M.pathname])),(m.replace?c.replace:c.push)(M,m.state,m)},[i,c,d,f,s])}var ay=E.createContext(null);function ny(s){let i=E.useContext($e).outlet;return E.useMemo(()=>i&&E.createElement(ay.Provider,{value:s},i),[i,s])}function ly(){let{matches:s}=E.useContext($e),i=s[s.length-1];return(i==null?void 0:i.params)??{}}function fi(s,{relative:i}={}){let{matches:c}=E.useContext($e),{pathname:r}=aa(),f=JSON.stringify(vc(c));return E.useMemo(()=>ku(s,JSON.parse(f),r,i==="path"),[s,f,r,i])}function iy(s,i){return _m(s,i)}function _m(s,i,c){var L;Xt(cl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(Le),{matches:f}=E.useContext($e),d=f[f.length-1],g=d?d.params:{},b=d?d.pathname:"/",y=d?d.pathnameBase:"/",m=d&&d.route;{let O=m&&m.path||"";Mm(b,!m||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${b}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let M=aa(),A;if(i){let O=typeof i=="string"?sl(i):i;Xt(y==="/"||((L=O.pathname)==null?void 0:L.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${O.pathname}" was given in the \`location\` prop.`),A=O}else A=M;let k=A.pathname||"/",$=k;if(y!=="/"){let O=y.replace(/^\//,"").split("/");$="/"+k.replace(/^\//,"").split("/").slice(O.length).join("/")}let J=c&&c.state.matches.length?c.state.matches.map(O=>Object.assign(O,{route:c.manifest[O.route.id]||O.route})):hm(s,{pathname:$});Ke(m||J!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Ke(J==null||J[J.length-1].route.element!==void 0||J[J.length-1].route.Component!==void 0||J[J.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=oy(J&&J.map(O=>Object.assign({},O,{params:Object.assign({},g,O.params),pathname:ta([y,r.encodeLocation?r.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?y:ta([y,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),f,c);return i&&X?E.createElement(oi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...A},navigationType:"POP"}},X):X}function uy(){let s=py(),i=Xg(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},g=null;return console.error("Error handled by React Router default ErrorBoundary:",s),g=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:d},"ErrorBoundary")," or"," ",E.createElement("code",{style:d},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),c?E.createElement("pre",{style:f},c):null,g)}var sy=E.createElement(uy,null),Tm=class extends E.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=Ig(s.digest);c&&(s=c)}let i=s!==void 0?E.createElement($e.Provider,{value:this.props.routeContext},E.createElement(bc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?E.createElement(ry,{error:s},i):i}};Tm.contextType=Sm;var lc=new WeakMap;function ry({children:s,error:i}){let{basename:c}=E.useContext(Le);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Fg(i.digest);if(r){let f=lc.get(i);if(f)throw f;let d=vm(r.location,c);if(ym&&!lc.get(i))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw lc.set(i,g),g}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function cy({routeContext:s,match:i,children:c}){let r=E.useContext(rl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement($e.Provider,{value:s},c)}function oy(s,i=[],c){let r=c==null?void 0:c.state;if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let f=s,d=r==null?void 0:r.errors;if(d!=null){let M=f.findIndex(A=>A.route.id&&(d==null?void 0:d[A.route.id])!==void 0);Xt(M>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,M+1))}let g=!1,b=-1;if(c&&r){g=r.renderFallback;for(let M=0;M<f.length;M++){let A=f[M];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(b=M),A.route.id){let{loaderData:k,errors:$}=r,J=A.route.loader&&!k.hasOwnProperty(A.route.id)&&(!$||$[A.route.id]===void 0);if(A.route.lazy||J){c.isStatic&&(g=!0),b>=0?f=f.slice(0,b+1):f=[f[0]];break}}}}let y=c==null?void 0:c.onError,m=r&&y?(M,A)=>{var k,$;y(M,{location:r.location,params:(($=(k=r.matches)==null?void 0:k[0])==null?void 0:$.params)??{},pattern:Qg(r.matches),errorInfo:A})}:void 0;return f.reduceRight((M,A,k)=>{let $,J=!1,X=null,L=null;r&&($=d&&A.route.id?d[A.route.id]:void 0,X=A.route.errorElement||sy,g&&(b<0&&k===0?(Mm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),J=!0,L=null):b===k&&(J=!0,L=A.route.hydrateFallbackElement||null)));let O=i.concat(f.slice(0,k+1)),N=()=>{let p;return $?p=X:J?p=L:A.route.Component?p=E.createElement(A.route.Component,null):A.route.element?p=A.route.element:p=M,E.createElement(cy,{match:A,routeContext:{outlet:M,matches:O,isDataRoute:r!=null},children:p})};return r&&(A.route.ErrorBoundary||A.route.errorElement||k===0)?E.createElement(Tm,{location:r.location,revalidation:r.revalidation,component:X,error:$,children:N(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:m}):N()},null)}function Sc(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fy(s){let i=E.useContext(rl);return Xt(i,Sc(s)),i}function dy(s){let i=E.useContext(ju);return Xt(i,Sc(s)),i}function hy(s){let i=E.useContext($e);return Xt(i,Sc(s)),i}function wc(s){let i=hy(s),c=i.matches[i.matches.length-1];return Xt(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function my(){return wc("useRouteId")}function py(){var r;let s=E.useContext(bc),i=dy("useRouteError"),c=wc("useRouteError");return s!==void 0?s:(r=i.errors)==null?void 0:r[c]}function gy(){let{router:s}=fy("useNavigate"),i=wc("useNavigate"),c=E.useRef(!1);return Am(()=>{c.current=!0}),E.useCallback(async(f,d={})=>{Ke(c.current,xm),c.current&&(typeof f=="number"?await s.navigate(f):await s.navigate(f,{fromRouteId:i,...d}))},[s,i])}var Jh={};function Mm(s,i,c){!i&&!Jh[s]&&(Jh[s]=!0,Ke(!1,c))}E.memo(yy);function yy({routes:s,manifest:i,future:c,state:r,isStatic:f,onError:d}){return _m(s,void 0,{manifest:i,state:r,isStatic:f,onError:d})}function wn({to:s,replace:i,state:c,relative:r}){Xt(cl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=E.useContext(Le);Ke(!f,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=E.useContext($e),{pathname:g}=aa(),b=ol(),y=ku(s,vc(d),g,r==="path"),m=JSON.stringify(y);return E.useEffect(()=>{b(JSON.parse(m),{replace:i,state:c,relative:r})},[b,m,r,i,c]),null}function vy(s){return ny(s.context)}function Tt(s){Xt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function by({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:f,static:d=!1,useTransitions:g}){Xt(!cl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=s.replace(/^\/*/,"/"),y=E.useMemo(()=>({basename:b,navigator:f,static:d,useTransitions:g,future:{}}),[b,f,d,g]);typeof c=="string"&&(c=sl(c));let{pathname:m="/",search:M="",hash:A="",state:k=null,key:$="default",mask:J}=c,X=E.useMemo(()=>{let L=Ma(m,b);return L==null?null:{location:{pathname:L,search:M,hash:A,state:k,key:$,mask:J},navigationType:r}},[b,m,M,A,k,$,r,J]);return Ke(X!=null,`<Router basename="${b}"> is not able to match the URL "${m}${M}${A}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:E.createElement(Le.Provider,{value:y},E.createElement(oi.Provider,{children:i,value:X}))}function Sy({children:s,location:i}){return iy(fc(s),i)}function fc(s,i=[]){let c=[];return E.Children.forEach(s,(r,f)=>{if(!E.isValidElement(r))return;let d=[...i,f];if(r.type===E.Fragment){c.push.apply(c,fc(r.props.children,d));return}Xt(r.type===Tt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let g={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(g.children=fc(r.props.children,d)),c.push(g)}),c}var zu="get",Ou="application/x-www-form-urlencoded";function Lu(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function wy(s){return Lu(s)&&s.tagName.toLowerCase()==="button"}function Ey(s){return Lu(s)&&s.tagName.toLowerCase()==="form"}function xy(s){return Lu(s)&&s.tagName.toLowerCase()==="input"}function Ay(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function _y(s,i){return s.button===0&&(!i||i==="_self")&&!Ay(s)}function dc(s=""){return new URLSearchParams(typeof s=="string"||Array.isArray(s)||s instanceof URLSearchParams?s:Object.keys(s).reduce((i,c)=>{let r=s[c];return i.concat(Array.isArray(r)?r.map(f=>[c,f]):[[c,r]])},[]))}function Ty(s,i){let c=dc(s);return i&&i.forEach((r,f)=>{c.has(f)||i.getAll(f).forEach(d=>{c.append(f,d)})}),c}var Ru=null;function My(){if(Ru===null)try{new FormData(document.createElement("form"),0),Ru=!1}catch{Ru=!0}return Ru}var Dy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ic(s){return s!=null&&!Dy.has(s)?(Ke(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ou}"`),null):s}function Ry(s,i){let c,r,f,d,g;if(Ey(s)){let b=s.getAttribute("action");r=b?Ma(b,i):null,c=s.getAttribute("method")||zu,f=ic(s.getAttribute("enctype"))||Ou,d=new FormData(s)}else if(wy(s)||xy(s)&&(s.type==="submit"||s.type==="image")){let b=s.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||b.getAttribute("action");if(r=y?Ma(y,i):null,c=s.getAttribute("formmethod")||b.getAttribute("method")||zu,f=ic(s.getAttribute("formenctype"))||ic(b.getAttribute("enctype"))||Ou,d=new FormData(b,s),!My()){let{name:m,type:M,value:A}=s;if(M==="image"){let k=m?`${m}.`:"";d.append(`${k}x`,"0"),d.append(`${k}y`,"0")}else m&&d.append(m,A)}}else{if(Lu(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=zu,r=null,f=Ou,g=s}return d&&f==="text/plain"&&(g=d,d=void 0),{action:r,method:c.toLowerCase(),encType:f,formData:d,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ec(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Dm(s,i,c,r){let f=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:i&&Ma(f.pathname,i)==="/"?f.pathname=`${Uu(i)}/_root.${r}`:f.pathname=`${Uu(f.pathname)}.${r}`,f}async function Cy(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function zy(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function Oy(s,i,c){let r=await Promise.all(s.map(async f=>{let d=i.routes[f.route.id];if(d){let g=await Cy(d,c);return g.links?g.links():[]}return[]}));return jy(r.flat(1).filter(zy).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Kh(s,i,c,r,f,d){let g=(y,m)=>c[m]?y.route.id!==c[m].route.id:!0,b=(y,m)=>{var M;return c[m].pathname!==y.pathname||((M=c[m].route.path)==null?void 0:M.endsWith("*"))&&c[m].params["*"]!==y.params["*"]};return d==="assets"?i.filter((y,m)=>g(y,m)||b(y,m)):d==="data"?i.filter((y,m)=>{var A;let M=r.routes[y.route.id];if(!M||!M.hasLoader)return!1;if(g(y,m)||b(y,m))return!0;if(y.route.shouldRevalidate){let k=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((A=c[0])==null?void 0:A.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof k=="boolean")return k}return!0}):[]}function Ny(s,i,{includeHydrateFallback:c}={}){return Uy(s.map(r=>{let f=i.routes[r.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function Uy(s){return[...new Set(s)]}function ky(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function jy(s,i){let c=new Set;return new Set(i),s.reduce((r,f)=>{let d=JSON.stringify(ky(f));return c.has(d)||(c.add(d),r.push({key:d,link:f})),r},[])}function xc(){let s=E.useContext(rl);return Ec(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function Ly(){let s=E.useContext(ju);return Ec(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Ac=E.createContext(void 0);Ac.displayName="FrameworkContext";function _c(){let s=E.useContext(Ac);return Ec(s,"You must render this element inside a <HydratedRouter> element"),s}function By(s,i){let c=E.useContext(Ac),[r,f]=E.useState(!1),[d,g]=E.useState(!1),{onFocus:b,onBlur:y,onMouseEnter:m,onMouseLeave:M,onTouchStart:A}=i,k=E.useRef(null);E.useEffect(()=>{if(s==="render"&&g(!0),s==="viewport"){let X=O=>{O.forEach(N=>{g(N.isIntersecting)})},L=new IntersectionObserver(X,{threshold:.5});return k.current&&L.observe(k.current),()=>{L.disconnect()}}},[s]),E.useEffect(()=>{if(r){let X=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(X)}}},[r]);let $=()=>{f(!0)},J=()=>{f(!1),g(!1)};return c?s!=="intent"?[d,k,{}]:[d,k,{onFocus:ii(b,$),onBlur:ii(y,J),onMouseEnter:ii(m,$),onMouseLeave:ii(M,J),onTouchStart:ii(A,$)}]:[!1,k,{}]}function ii(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function Hy({page:s,...i}){let c=Jg(),{router:r}=xc(),f=E.useMemo(()=>hm(r.routes,s,r.basename),[r.routes,s,r.basename]);return f?c?E.createElement(Yy,{page:s,matches:f,...i}):E.createElement(Vy,{page:s,matches:f,...i}):null}function qy(s){let{manifest:i,routeModules:c}=_c(),[r,f]=E.useState([]);return E.useEffect(()=>{let d=!1;return Oy(s,i,c).then(g=>{d||f(g)}),()=>{d=!0}},[s,i,c]),r}function Yy({page:s,matches:i,...c}){let r=aa(),{future:f}=_c(),{basename:d}=xc(),g=E.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let b=Dm(s,d,f.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let M of i)typeof M.route.shouldRevalidate=="function"?y=!0:m.push(M.route.id);return y&&m.length>0&&b.searchParams.set("_routes",m.join(",")),[b.pathname+b.search]},[d,f.v8_trailingSlashAwareDataRequests,s,r,i]);return E.createElement(E.Fragment,null,g.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...c})))}function Vy({page:s,matches:i,...c}){let r=aa(),{future:f,manifest:d,routeModules:g}=_c(),{basename:b}=xc(),{loaderData:y,matches:m}=Ly(),M=E.useMemo(()=>Kh(s,i,m,d,r,"data"),[s,i,m,d,r]),A=E.useMemo(()=>Kh(s,i,m,d,r,"assets"),[s,i,m,d,r]),k=E.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let X=new Set,L=!1;if(i.forEach(N=>{var K;let p=d.routes[N.route.id];!p||!p.hasLoader||(!M.some(G=>G.route.id===N.route.id)&&N.route.id in y&&((K=g[N.route.id])!=null&&K.shouldRevalidate)||p.hasClientLoader?L=!0:X.add(N.route.id))}),X.size===0)return[];let O=Dm(s,b,f.v8_trailingSlashAwareDataRequests,"data");return L&&X.size>0&&O.searchParams.set("_routes",i.filter(N=>X.has(N.route.id)).map(N=>N.route.id).join(",")),[O.pathname+O.search]},[b,f.v8_trailingSlashAwareDataRequests,y,r,d,M,i,s,g]),$=E.useMemo(()=>Ny(A,d),[A,d]),J=qy(A);return E.createElement(E.Fragment,null,k.map(X=>E.createElement("link",{key:X,rel:"prefetch",as:"fetch",href:X,...c})),$.map(X=>E.createElement("link",{key:X,rel:"modulepreload",href:X,...c})),J.map(({key:X,link:L})=>E.createElement("link",{key:X,nonce:c.nonce,...L,crossOrigin:L.crossOrigin??c.crossOrigin})))}function Gy(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var Xy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xy&&(window.__reactRouterVersion="7.17.0")}catch{}function Qy({basename:s,children:i,useTransitions:c,window:r}){let f=E.useRef();f.current==null&&(f.current=bg({window:r,v5Compat:!0}));let d=f.current,[g,b]=E.useState({action:d.action,location:d.location}),y=E.useCallback(m=>{c===!1?b(m):E.startTransition(()=>b(m))},[c]);return E.useLayoutEffect(()=>d.listen(y),[d,y]),E.createElement(by,{basename:s,children:i,location:g.location,navigationType:g.action,navigator:d,useTransitions:c})}var Rm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tc=E.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:f,reloadDocument:d,replace:g,mask:b,state:y,target:m,to:M,preventScrollReset:A,viewTransition:k,defaultShouldRevalidate:$,...J},X){let{basename:L,navigator:O,useTransitions:N}=E.useContext(Le),p=typeof M=="string"&&Rm.test(M),K=vm(M,L);M=K.to;let G=ty(M,{relative:f}),tt=aa(),Q=null;if(b){let Ht=ku(b,[],tt.mask?tt.mask.pathname:"/",!0);L!=="/"&&(Ht.pathname=Ht.pathname==="/"?L:ta([L,Ht.pathname])),Q=O.createHref(Ht)}let[Et,Qt,re]=By(r,J),le=$y(M,{replace:g,mask:b,state:y,target:m,preventScrollReset:A,relative:f,viewTransition:k,defaultShouldRevalidate:$,useTransitions:N});function Ut(Ht){i&&i(Ht),Ht.defaultPrevented||le(Ht)}let ve=!(K.isExternal||d),pe=E.createElement("a",{...J,...re,href:(ve?Q:void 0)||K.absoluteURL||G,onClick:ve?Ut:i,ref:Gy(X,Qt),target:m,"data-discover":!p&&c==="render"?"true":void 0});return Et&&!p?E.createElement(E.Fragment,null,pe,E.createElement(Hy,{page:G})):pe});Tc.displayName="Link";var Zy=E.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:f=!1,style:d,to:g,viewTransition:b,children:y,...m},M){let A=fi(g,{relative:m.relative}),k=aa(),$=E.useContext(ju),{navigator:J,basename:X}=E.useContext(Le),L=$!=null&&tv(A)&&b===!0,O=J.encodeLocation?J.encodeLocation(A).pathname:A.pathname,N=k.pathname,p=$&&$.navigation&&$.navigation.location?$.navigation.location.pathname:null;c||(N=N.toLowerCase(),p=p?p.toLowerCase():null,O=O.toLowerCase()),p&&X&&(p=Ma(p,X)||p);const K=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let G=N===O||!f&&N.startsWith(O)&&N.charAt(K)==="/",tt=p!=null&&(p===O||!f&&p.startsWith(O)&&p.charAt(O.length)==="/"),Q={isActive:G,isPending:tt,isTransitioning:L},Et=G?i:void 0,Qt;typeof r=="function"?Qt=r(Q):Qt=[r,G?"active":null,tt?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(Q):d;return E.createElement(Tc,{...m,"aria-current":Et,className:Qt,ref:M,style:re,to:g,viewTransition:b},typeof y=="function"?y(Q):y)});Zy.displayName="NavLink";var Jy=E.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:f,state:d,method:g=zu,action:b,onSubmit:y,relative:m,preventScrollReset:M,viewTransition:A,defaultShouldRevalidate:k,...$},J)=>{let{useTransitions:X}=E.useContext(Le),L=Fy(),O=Iy(b,{relative:m}),N=g.toLowerCase()==="get"?"get":"post",p=typeof b=="string"&&Rm.test(b),K=G=>{if(y&&y(G),G.defaultPrevented)return;G.preventDefault();let tt=G.nativeEvent.submitter,Q=(tt==null?void 0:tt.getAttribute("formmethod"))||g,Et=()=>L(tt||G.currentTarget,{fetcherKey:i,method:Q,navigate:c,replace:f,state:d,relative:m,preventScrollReset:M,viewTransition:A,defaultShouldRevalidate:k});X&&c!==!1?E.startTransition(()=>Et()):Et()};return E.createElement("form",{ref:J,method:N,action:O,onSubmit:r?y:K,...$,"data-discover":!p&&s==="render"?"true":void 0})});Jy.displayName="Form";function Ky(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cm(s){let i=E.useContext(rl);return Xt(i,Ky(s)),i}function $y(s,{target:i,replace:c,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y,useTransitions:m}={}){let M=ol(),A=aa(),k=fi(s,{relative:g});return E.useCallback($=>{if(_y($,i)){$.preventDefault();let J=c!==void 0?c:ri(A)===ri(k),X=()=>M(s,{replace:J,mask:r,state:f,preventScrollReset:d,relative:g,viewTransition:b,defaultShouldRevalidate:y});m?E.startTransition(()=>X()):X()}},[A,M,k,c,r,f,i,s,d,g,b,y,m])}function W1(s){Ke(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=E.useRef(dc(s)),c=E.useRef(!1),r=aa(),f=E.useMemo(()=>Ty(r.search,c.current?null:i.current),[r.search]),d=ol(),g=E.useCallback((b,y)=>{const m=dc(typeof b=="function"?b(new URLSearchParams(f)):b);c.current=!0,d("?"+m,y)},[d,f]);return[f,g]}var Py=0,Wy=()=>`__${String(++Py)}__`;function Fy(){let{router:s}=Cm("useSubmit"),{basename:i}=E.useContext(Le),c=my(),r=s.fetch,f=s.navigate;return E.useCallback(async(d,g={})=>{let{action:b,method:y,encType:m,formData:M,body:A}=Ry(d,i);if(g.navigate===!1){let k=g.fetcherKey||Wy();await r(k,c,g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:M,body:A,formMethod:g.method||y,formEncType:g.encType||m,flushSync:g.flushSync})}else await f(g.action||b,{defaultShouldRevalidate:g.defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:M,body:A,formMethod:g.method||y,formEncType:g.encType||m,replace:g.replace,state:g.state,fromRouteId:c,flushSync:g.flushSync,viewTransition:g.viewTransition})},[r,f,i,c])}function Iy(s,{relative:i}={}){let{basename:c}=E.useContext(Le),r=E.useContext($e);Xt(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d={...fi(s||".",{relative:i})},g=aa();if(s==null){d.search=g.search;let b=new URLSearchParams(d.search),y=b.getAll("index");if(y.some(M=>M==="")){b.delete("index"),y.filter(A=>A).forEach(A=>b.append("index",A));let M=b.toString();d.search=M?`?${M}`:""}}return(!s||s===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:ta([c,d.pathname])),ri(d)}function tv(s,{relative:i}={}){let c=E.useContext(wm);Xt(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Cm("useViewTransitionState"),f=fi(s,{relative:i});if(!c.isTransitioning)return!1;let d=Ma(c.currentLocation.pathname,r)||c.currentLocation.pathname,g=Ma(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Nu(f.pathname,g)!=null||Nu(f.pathname,d)!=null}const ev={storage:{publicUrl:()=>"#"},auth:{restore:()=>{},onAuthStateChange:()=>()=>{},adoptAnonIdentity:()=>"",whenTokenReady:()=>Promise.resolve()},flags:{get:()=>{},isEnabled:()=>!1,variant:()=>"",all:()=>({}),subscribe:()=>()=>{},keys:()=>[],setCookieOverride:()=>{},clearCookieOverride:()=>{}},log:{debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},db:{get:()=>Promise.resolve(null),set:()=>Promise.resolve(),on:()=>()=>{},onChild:()=>()=>{},connect:()=>Promise.resolve(),disconnect:()=>{}}},av=new Set(["auth","storage","leads","log","flags","db"]);function nv(){return new Proxy({},{get:(s,i)=>av.has(i)?new Proxy({},{get:(c,r)=>{var f;return((f=ev[i])==null?void 0:f[r])??(()=>Promise.resolve(null))}}):()=>{}})}const pt=typeof window<"u"&&window.Bodify?window.Bodify:nv(),F1=Object.freeze(Object.defineProperty({__proto__:null,Bodify:pt},Symbol.toStringTag,{value:"Module"}));function lv(s){const i=s.split("/"),c=[];for(let r=i.length-1;r>0;r--)c.push(i.slice(0,r).join("/"));return c}class iv{constructor(){this.maxAge=10080*60*1e3,this.maxMemoryEntries=500,this.dbName="boddb-cache",this.enabled=!0}}class uv{constructor(i,c){this.memory=new Map,this.subscribedPaths=new Set,this.idb=null,this._vfs=null,this._vfsUnsub=null,this.options={...new iv,...c},this.client=i}async init(){this.options.enabled&&(this.idb=await this.openIDB(),await this.sweepExpired())}openIDB(){return new Promise(i=>{try{if(typeof indexedDB>"u"){i(null);return}const c=indexedDB.open(this.options.dbName,1);c.onupgradeneeded=()=>{const r=c.result;r&&!r.objectStoreNames.contains("entries")&&r.createObjectStore("entries",{keyPath:"path"})},c.onsuccess=()=>i(c.result??null),c.onerror=()=>i(null),c.onblocked=()=>i(null)}catch{i(null)}})}async sweepExpired(){if(!this.idb)return;const i=Date.now()-this.options.maxAge,f=this.idb.transaction("entries","readwrite").objectStore("entries").openCursor();return new Promise(d=>{f.onsuccess=()=>{const g=f.result;if(!g){d();return}g.value.cachedAt<i&&g.delete(),g.continue()},f.onerror=()=>d()})}async get(i){if(!this.options.enabled)return this.client.get(i);const c=this.memory.get(i);if(c&&this.subscribedPaths.has(i))return c.data;if(c)return this.revalidate(i),c.data;const r=await this.idbGet(i);if(r&&Date.now()-r.cachedAt<this.options.maxAge)return this.memSet(i,r),this.revalidate(i),r.data;const f=await this.client.getSnapshot(i),d={path:i,data:f.val(),updatedAt:f.updatedAt??Date.now(),cachedAt:Date.now()};return this.memSet(i,d),this.idbSet(d),d.data}revalidate(i){this.client.getSnapshot(i).then(c=>{const r={path:i,data:c.val(),updatedAt:c.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,r),this.idbSet(r)}).catch(()=>{})}on(i,c){this.subscribedPaths.add(i);const r=this.client.on(i,f=>{const d={path:i,data:f.val(),updatedAt:f.updatedAt??Date.now(),cachedAt:Date.now()};this.memSet(i,d),this.idbSet(d),c(f)});return()=>{r(),this.subscribedPaths.delete(i)}}onChild(i,c,r){this.subscribedPaths.add(i);const f=this.client.onChild(i,d=>{const g=this.memory.get(i);if(g&&g.data&&typeof g.data=="object"&&!Array.isArray(g.data)){const b={...g.data};d.type==="removed"?delete b[d.key]:b[d.key]=d.val();const y={path:i,data:b,updatedAt:Date.now(),cachedAt:Date.now()};this.memSet(i,y),this.idbSet(y)}c(d)},r);return()=>{f(),this.subscribedPaths.delete(i)}}connect(){return this.client.connect()}disconnect(){var i,c;(c=(i=this.client).disconnect)==null||c.call(i)}get serverInfo(){return this.client.serverInfo}onWelcome(i){return this.client.onWelcome(i)}async push(i,c,r){return await this.client.push(i,c,r)}query(i){return this.client.query(i)}async set(i,c,r){await this.client.set(i,c,r),this.invalidatePath(i)}async update(i,c,r){await this.client.update(i,c,r),this.invalidatePath(i)}async updateMulti(i){await this.client.updateMulti(i);for(const c of Object.keys(i))this.invalidatePath(c)}async delete(i){await this.client.delete(i),this.invalidatePath(i)}invalidatePath(i){this.invalidate(i);for(const c of lv(i))this.invalidate(c)}invalidate(i){this.memory.delete(i),this.idbDelete(i)}async warmup(i){if(!this.idb)return;const c=Date.now()-this.options.maxAge,f=this.idb.transaction("entries","readonly").objectStore("entries"),d=i.map(g=>new Promise(b=>{const y=f.get(g);y.onsuccess=()=>{const m=y.result;m&&m.cachedAt>=c&&this.memSet(g,m),b()},y.onerror=()=>b()}));await Promise.all(d)}vfs(){return this._vfs||(this._vfs=new sv(this.client.vfs(),this.options.maxAge,this.idb),this._vfsUnsub=this.client.onChild("_vfs",()=>{var i;(i=this._vfs)==null||i.clear()})),this._vfs}close(){var i,c;this._vfsUnsub&&(this._vfsUnsub(),this._vfsUnsub=null),(i=this._vfs)==null||i.clear(),this._vfs=null,this.memory.clear(),this.subscribedPaths.clear(),(c=this.idb)==null||c.close(),this.idb=null}memSet(i,c){for(this.memory.delete(i),this.memory.set(i,c);this.memory.size>this.options.maxMemoryEntries;){const r=this.memory.keys().next().value;if(r!==void 0)this.memory.delete(r);else break}}idbGet(i){if(!this.idb)return Promise.resolve(null);const r=this.idb.transaction("entries","readonly").objectStore("entries").get(i);return new Promise(f=>{r.onsuccess=()=>f(r.result??null),r.onerror=()=>f(null)})}idbSet(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put(i)}catch{}}idbDelete(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").delete(i)}catch{}}}class sv{constructor(i,c,r=null){this.raw=i,this.maxAge=c,this.idb=r,this.listCache=new Map,this.statCache=new Map,this._stats={hits:0,misses:0,invalidations:0,pushClears:0}}async stat(i){const c=this.statCache.get(i);if(c&&Date.now()-c.cachedAt<this.maxAge)return this._stats.hits++,this.raw.stat(i).then(d=>{this.statCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),c.data;const r=await this.idbGetVfs(`vfs:stat:${i}`);if(r&&Date.now()-r.cachedAt<this.maxAge)return this._stats.hits++,this.statCache.set(i,r),this.raw.stat(i).then(d=>{this.statCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),r.data;this._stats.misses++;const f=await this.raw.stat(i);return this.statCache.set(i,{data:f,cachedAt:Date.now()}),this.idbSetVfs(`vfs:stat:${i}`,{data:f,cachedAt:Date.now()}),f}async list(i){const c=this.listCache.get(i);if(c&&Date.now()-c.cachedAt<this.maxAge)return this._stats.hits++,this.raw.list(i).then(d=>{this.listCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),c.data;const r=await this.idbGetVfs(`vfs:list:${i}`);if(r&&Date.now()-r.cachedAt<this.maxAge)return this._stats.hits++,this.listCache.set(i,r),this.raw.list(i).then(d=>{this.listCache.set(i,{data:d,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:d,cachedAt:Date.now()})}).catch(()=>{}),r.data;this._stats.misses++;const f=await this.raw.list(i);return this.listCache.set(i,{data:f,cachedAt:Date.now()}),this.idbSetVfs(`vfs:list:${i}`,{data:f,cachedAt:Date.now()}),f}async tree(i,c){return this.raw.tree(i,c)}async upload(i,c,r){const f=await this.raw.upload(i,c,r);return this.invalidatePath(i),f}async delete(i){await this.raw.delete(i),this.invalidatePath(i)}async mkdir(i){const c=await this.raw.mkdir(i);return this.invalidatePath(i),this.listCache.delete(i),this.idbDeleteVfs(`vfs:list:${i}`),c}async move(i,c){const r=await this.raw.move(i,c);return this.invalidatePath(i),this.invalidatePath(c),r}async download(i){return this.raw.download(i)}invalidatePath(i){this._stats.invalidations++,this.statCache.delete(i),this.idbDeleteVfs(`vfs:stat:${i}`);const c=i.includes("/")?i.slice(0,i.lastIndexOf("/")):"";this.listCache.delete(c),this.idbDeleteVfs(`vfs:list:${c}`)}clear(){this._stats.pushClears++,this.listCache.clear(),this.statCache.clear(),this.idbClearVfs()}get stats(){const i=this._stats.hits+this._stats.misses;return{...this._stats,total:i,hitRate:i?Math.round(this._stats.hits/i*100)+"%":"n/a",listCacheSize:this.listCache.size,statCacheSize:this.statCache.size}}idbGetVfs(i){if(!this.idb)return Promise.resolve(null);try{const r=this.idb.transaction("entries","readonly").objectStore("entries").get(i);return new Promise(f=>{r.onsuccess=()=>{const d=r.result;f(d?{data:d.data,cachedAt:d.cachedAt}:null)},r.onerror=()=>f(null)})}catch{return Promise.resolve(null)}}idbSetVfs(i,c){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").put({path:i,data:c.data,cachedAt:c.cachedAt,updatedAt:Date.now()})}catch{}}idbDeleteVfs(i){if(this.idb)try{this.idb.transaction("entries","readwrite").objectStore("entries").delete(i)}catch{}}idbClearVfs(){if(this.idb)try{const r=this.idb.transaction("entries","readwrite").objectStore("entries").openCursor();r.onsuccess=()=>{const f=r.result;f&&(typeof f.key=="string"&&f.key.startsWith("vfs:")&&f.delete(),f.continue())}}catch{}}}const rv="DEBUG";function $h(s){try{const i=localStorage.getItem(rv)??"";return i==="*"||i.split(",").includes(s)}catch{return!1}}function cv(s){const i=`[${s}]`;return{debug:(...c)=>{$h(s)&&console.debug(i,...c)},verbose:(...c)=>{$h(s)&&console.debug(i,...c)},info:(...c)=>console.info(i,...c),warn:(...c)=>console.warn(i,...c),error:(...c)=>console.error(i,...c)}}const Bu={forComponent:s=>cv(s)},Mc=Bu.forComponent("bod");var dm;const zm=(dm=window.Bodify)==null?void 0:dm.db;zm||Mc.error("Bodify SDK not loaded (window.Bodify is undefined) — /_bodify/sdk.js failed to load; BodDB is unavailable.");const ea=new uv(zm);ea.init();if(typeof window<"u"){const s=()=>{typeof document<"u"&&document.visibilityState==="hidden"||ea.connect().catch(i=>Mc.warn("wake-reconnect failed",i))};window.addEventListener("online",s),window.addEventListener("focus",s),document.addEventListener("visibilitychange",s)}async function en(){var r,f,d;const s=ea.client;if(!s)return;const i=((r=pt==null?void 0:pt.auth)==null?void 0:r._token)??null,c=g=>Promise.race([g,new Promise((b,y)=>setTimeout(()=>y(new Error("reauthWs timeout")),3e3))]);try{if(!s.connected)return;i?await c(s._send("auth",{token:i})):((f=s.disconnect)==null||f.call(s),await((d=s.connect)==null?void 0:d.call(s)))}catch(g){Mc.warn("reauthWs failed",g)}}localStorage.getItem("BOD_WS_RECORD")&&(window.bod=ea,window.bodWs=ea.client);const ov=Object.freeze(Object.defineProperty({__proto__:null,client:ea,reauthWs:en},Symbol.toStringTag,{value:"Module"}));function fv(){const s=navigator.userAgent;return/FBAN|FBAV|FB_IAB|FBIOS/.test(s)?"fb":/Instagram/i.test(s)?"ig":"none"}let Ph=!1;function uc(){try{performance.mark("para:auth-resolved")}catch{}}function dv(){var f;const s=performance.getEntriesByType("resource"),i=d=>d.replace(/^https?:\/\/[^/]+/,"").split("?")[0].slice(-60),c=d=>{const g=s.filter(d).sort((b,y)=>y.duration-b.duration)[0];return g?{start:Math.round(g.startTime),dur:Math.round(g.duration)}:void 0},r=(f=performance.getEntriesByName("para:auth-resolved")[0])==null?void 0:f.startTime;return{authResolved:r!=null?Math.round(r):-1,resourceCount:s.length,me:c(d=>d.name.includes("/auth/me")),sdk:c(d=>d.name.includes("/_bodify/sdk.js")),entry:c(d=>/\/assets\/index-|\/src\/main\.tsx/.test(d.name)),slowest:s.slice().sort((d,g)=>g.duration-d.duration).slice(0,3).map(d=>({n:i(d.name),start:Math.round(d.startTime),dur:Math.round(d.duration)}))}}function hv(){var s;if(!Ph){Ph=!0;try{const i=performance.getEntriesByType("navigation")[0],c=(s=performance.getEntriesByType("paint").find(d=>d.name==="first-contentful-paint"))==null?void 0:s.startTime;let r=null;try{r=localStorage.getItem("para-funnel")}catch{}const f={ttfb:Math.round((i==null?void 0:i.responseStart)??-1),domInteractive:Math.round((i==null?void 0:i.domInteractive)??-1),fcp:c!=null?Math.round(c):-1,appMounted:Math.round(performance.now()),slowBoot:performance.now()>=5e3,webview:fv(),path:location.pathname,...dv(),...r?{funnel:r}:{}};pt.event("boot_timing",f)}catch{}}}const Om=E.createContext(null);function Wh(){const s="para_dau_date",i=new Date,c=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;localStorage.getItem(s)!==c&&(localStorage.setItem(s,c),pt.event("session_active"))}function mv({children:s}){const[i,c]=E.useState(null),[r,f]=E.useState(null),[d,g]=E.useState(!0);E.useEffect(()=>{const O=window.Bodify;if(!(O!=null&&O.auth)){uc(),g(!1);return}return O.auth.getUser().then(N=>{N&&(c(N),pt.analytics.identify(N.id,{email:N.email,name:N.name}),Wh(),en()),uc(),g(!1)}).catch(()=>{uc(),g(!1)}),O.auth.onAuthStateChange((N,p)=>{c(N),f(p),en(),N&&(pt.analytics.identify(N.id,{email:N.email,name:N.name}),Wh())})},[]);const b=async(O,N,p)=>{const K=await pt.auth.signUp({email:O,password:N,name:p});K!=null&&K.emailVerificationRequired?f(K.user):K!=null&&K.user&&c(K.user)},y=async(O,N)=>{const p=await pt.auth.signIn({email:O,password:N});p!=null&&p.emailVerificationRequired?f(p.user):p!=null&&p.user&&c(p.user)},m=async O=>{const N=await pt.auth.verifyEmail(O);N!=null&&N.user&&(c(N.user),f(null))},M=async()=>{await pt.auth.resendVerification()},A=async()=>{await pt.auth.signOut(),c(null),f(null)},k=async()=>{var G,tt;const O=await pt.auth.getUser().catch(()=>null);if(O)return c(O),en(),O;const N=(G=pt==null?void 0:pt.auth)==null?void 0:G._token;if(N)try{const Q=(tt=JSON.parse(atob(N.split(".")[1])))==null?void 0:tt.sub;if(Q){const Et=i&&i.id===Q?i:{id:Q,isAnonymous:!1};return c(Et),en(),Et}}catch{}const K={id:pt.auth.adoptAnonIdentity(),isAnonymous:!0};return c(K),(async()=>{try{const Q=await pt.auth.signInAnonymously();c(Q.user),await en()}catch(Q){console.error("[auth] anon token sign failed:",Q)}})(),K},$=async(O,N)=>{const p=await pt.auth.linkEmail(O,N);return c(p),await en(),p},J=async O=>{const N=await pt.auth.attachEmail(O);return c(N),await en(),N},X=async O=>pt.auth.startPhoneSignIn(O),L=async(O,N)=>{const p=await pt.auth.linkPhone(O,N);return c(p),p};return w.jsx(Om.Provider,{value:{user:i,pendingVerification:r,loading:d,signUp:b,signIn:y,verifyEmail:m,resendVerification:M,signOut:A,ensureAnonymousSession:k,linkEmail:$,attachEmail:J,startPhoneSignIn:X,linkPhone:L},children:s})}const En=()=>E.useContext(Om),Nm=E.createContext({theme:"system",resolved:"dark",setTheme:()=>{}});function pv(){const s=new Date().getHours();return s<7||s>=19?"dark":"light"}function ci(){return pv()}function Fh(s){return s==="system"?ci():s}function Ih(s){document.documentElement.classList.toggle("dark",s==="dark")}function tm(s){const i=localStorage.getItem(s);if(!i)return"system";if(i==="light"||i==="dark"||i==="system")return i==="system"?"system":(localStorage.setItem(s,JSON.stringify({theme:i,setUnder:ci()})),i);try{const c=JSON.parse(i);return!["light","dark","system"].includes(c.theme)||c.theme==="system"?"system":c.setUnder&&ci()!==c.setUnder?(localStorage.removeItem(s),"system"):c.theme}catch{return"system"}}function gv(s,i){if(i==="system"){localStorage.removeItem(s);return}localStorage.setItem(s,JSON.stringify({theme:i,setUnder:ci()}))}function yv({children:s,storageKey:i="theme",defaultTheme:c="system"}){const[r,f]=E.useState(()=>{const y=tm(i);return y!=="system"?y:c}),[d,g]=E.useState(()=>Fh(r)),b=E.useCallback(y=>{gv(i,y),f(y)},[i]);return E.useEffect(()=>{const y=Fh(r);g(y),Ih(y)},[r]),E.useEffect(()=>{const y=()=>{const M=tm(i);if(M!==r){f(M);return}if(r==="system"){const A=ci();g(A),Ih(A)}};document.addEventListener("visibilitychange",y),window.addEventListener("focus",y);const m=setInterval(y,5*6e4);return()=>{document.removeEventListener("visibilitychange",y),window.removeEventListener("focus",y),clearInterval(m)}},[r,i]),w.jsx(Nm.Provider,{value:{theme:r,resolved:d,setTheme:b},children:s})}const vv=()=>E.useContext(Nm),bv=200,em=new Map,Cu=new Map;function hc(s,i,c){s.delete(i),s.set(i,c),s.size>bv&&s.delete(s.keys().next().value)}function Sv(s,i,c){const r=i?em.get(i):void 0,[f,d]=E.useState(r??null),[g,b]=E.useState(r===void 0);return E.useEffect(()=>{let m=!0;const M=s.on(i,A=>{if(m){const k=A.val();d(k),b(!1),i&&hc(em,i,k)}},void 0);return()=>{m=!1,M()}},[s,i,!1]),{data:f,loading:g}}function I1(s,i){const c=i?Cu.get(i):void 0,[r,f]=E.useState(c?new Map(c):new Map),[d,g]=E.useState(!c);return E.useEffect(()=>{let b=!0;const y=i?Cu.get(i):void 0;if(g(!y),f(y?new Map(y):new Map),!i){g(!1);return}const m=()=>s.get(i).then(k=>{if(b){if(k&&typeof k=="object"&&!Array.isArray(k)){const $=new Map(Object.entries(k));f(J=>{const X=new Map($);for(const[L,O]of J)X.has(L)||X.set(L,O);return hc(Cu,i,X),X})}g(!1)}});let M=null;m().catch(()=>{M=setTimeout(()=>{b&&m().catch(()=>{b&&g(!1)})},500)});const A=s.onChild(i,k=>{b&&(g(!1),f($=>{const J=new Map($);return k.type==="removed"?J.delete(k.key):J.set(k.key,k.val()),hc(Cu,i,J),J}))},{deep:!0});return()=>{b=!1,A(),M&&clearTimeout(M)}},[s,i]),{children:r,loading:d}}function Rt(s,i=2,c=350){return E.lazy(async()=>{let r;for(let f=0;f<=i;f++)try{return await s()}catch(d){if(r=d,f===i)break;await new Promise(g=>setTimeout(g,c*(f+1)))}throw r})}function Um(){return typeof window>"u"?!1:location.protocol==="app:"||location.protocol==="file:"||location.hostname==="appwrap.local"}const am="para:native";function Dc(){var s;if(typeof window>"u")return!1;if((s=window.__APPWRAP__)!=null&&s.native||Um())return!0;try{return new URLSearchParams(window.location.search).get("native")==="1"?(sessionStorage.setItem(am,"1"),!0):sessionStorage.getItem(am)==="1"}catch{return new URLSearchParams(window.location.search).get("native")==="1"}}class wv extends E.Component{constructor(){super(...arguments);Ch(this,"state",{failed:!1})}static getDerivedStateFromError(c){const r=String((c==null?void 0:c.message)??c??"");return{failed:/import|module script|Loading chunk|dynamically imported|Failed to fetch/i.test(r)}}render(){return this.state.failed?w.jsxs("div",{id:"boot-splash",children:[w.jsx("div",{className:"bs-brand",children:"Para"}),w.jsx("button",{onClick:()=>location.reload(),className:"mt-6 rounded-full px-5 py-2 text-body",style:{background:"var(--color-accent, #10b981)",color:"#fff",border:"none"},children:"Tap to reload"})]}):this.props.children}}const Ev=[{sign:"Capricorn",startMonth:1,startDay:1,endMonth:1,endDay:19,element:"Earth",modality:"Cardinal",ruler:"Saturn",range:"Dec 22 – Jan 19"},{sign:"Aquarius",startMonth:1,startDay:20,endMonth:2,endDay:18,element:"Air",modality:"Fixed",ruler:"Uranus",range:"Jan 20 – Feb 18"},{sign:"Pisces",startMonth:2,startDay:19,endMonth:3,endDay:20,element:"Water",modality:"Mutable",ruler:"Neptune",range:"Feb 19 – Mar 20"},{sign:"Aries",startMonth:3,startDay:21,endMonth:4,endDay:19,element:"Fire",modality:"Cardinal",ruler:"Mars",range:"Mar 21 – Apr 19"},{sign:"Taurus",startMonth:4,startDay:20,endMonth:5,endDay:20,element:"Earth",modality:"Fixed",ruler:"Venus",range:"Apr 20 – May 20"},{sign:"Gemini",startMonth:5,startDay:21,endMonth:6,endDay:20,element:"Air",modality:"Mutable",ruler:"Mercury",range:"May 21 – Jun 20"},{sign:"Cancer",startMonth:6,startDay:21,endMonth:7,endDay:22,element:"Water",modality:"Cardinal",ruler:"Moon",range:"Jun 21 – Jul 22"},{sign:"Leo",startMonth:7,startDay:23,endMonth:8,endDay:22,element:"Fire",modality:"Fixed",ruler:"Sun",range:"Jul 23 – Aug 22"},{sign:"Virgo",startMonth:8,startDay:23,endMonth:9,endDay:22,element:"Earth",modality:"Mutable",ruler:"Mercury",range:"Aug 23 – Sep 22"},{sign:"Libra",startMonth:9,startDay:23,endMonth:10,endDay:22,element:"Air",modality:"Cardinal",ruler:"Venus",range:"Sep 23 – Oct 22"},{sign:"Scorpio",startMonth:10,startDay:23,endMonth:11,endDay:21,element:"Water",modality:"Fixed",ruler:"Pluto",range:"Oct 23 – Nov 21"},{sign:"Sagittarius",startMonth:11,startDay:22,endMonth:12,endDay:21,element:"Fire",modality:"Mutable",ruler:"Jupiter",range:"Nov 22 – Dec 21"},{sign:"Capricorn",startMonth:12,startDay:22,endMonth:12,endDay:31,element:"Earth",modality:"Cardinal",ruler:"Saturn",range:"Dec 22 – Jan 19"}],xv=["Rat","Ox","Tiger","Rabbit","Dragon","Snake","Horse","Goat","Monkey","Rooster","Dog","Pig"],Av=["Wood","Fire","Earth","Metal","Water"],_v=["Garnet","Amethyst","Aquamarine","Diamond","Emerald","Pearl","Ruby","Peridot","Sapphire","Opal","Topaz","Tanzanite"];function km(s,i){return Ev.find(r=>r.startMonth===r.endMonth?s===r.startMonth&&i>=r.startDay&&i<=r.endDay:s===r.startMonth?i>=r.startDay:s===r.endMonth?i<=r.endDay:!1)}function Tv(s,i,c){let r;return s===c.startMonth?r=i-c.startDay:s===c.endMonth?r=new Date(2e3,c.startMonth,0).getDate()-c.startDay+i:r=new Date(2e3,c.startMonth,0).getDate()-c.startDay+new Date(2e3,s-1,0).getDate()+i,r<10?1:r<20?2:3}function Mv(s){const i=s-1924,c=(i%12+12)%12,r=Math.floor((i%10+10)%10/2);return{animal:xv[c],element:Av[r]}}function Dv(s){let c=[...s.replace(/-/g,"")].reduce((r,f)=>r+Number(f),0);for(;c>9&&c!==11&&c!==22&&c!==33;)c=[...String(c)].reduce((r,f)=>r+Number(f),0);return c}function Rv(s){return s>=3&&s<=5?"Spring":s>=6&&s<=8?"Summer":s>=9&&s<=11?"Autumn":"Winter"}function Cv(s){if(!(s!=null&&s.trim()))return null;const i=new Date(s+"T00:00:00"),c=i.getMonth()+1,r=i.getDate();return isNaN(c)||isNaN(r)?null:km(c,r).sign}function t2(s){if(!(s!=null&&s.trim()))return null;const i=s.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!i)return null;const c=Number(i[1]),r=Number(i[2]),f=Number(i[3]),d=new Date(c,r-1,f);if(d.getFullYear()!==c||d.getMonth()!==r-1||d.getDate()!==f)return null;const g=km(r,f);return{zodiac:{sign:g.sign,element:g.element,modality:g.modality,rulingPlanet:g.ruler,decan:Tv(r,f,g),dateRange:g.range},chineseZodiac:Mv(c),numerology:{lifePath:Dv(s)},birthstone:_v[r-1],season:Rv(r)}}function zv(){var i;if(typeof window>"u")return!1;const s=window.__APPWRAP__;return s&&(s.reduceMotion||s.isEmulator)?!0:((i=window.matchMedia)==null?void 0:i.call(window,"(prefers-reduced-motion: reduce)").matches)??!1}const Ov={Aries:{stars:[[.28,.52,1],[.38,.44,.8],[.52,.38,.6],[.68,.41,.9],[.73,.44,.5]],lines:[[0,1],[1,2],[2,3],[3,4]]},Taurus:{stars:[[.22,.58,1],[.33,.47,.7],[.43,.39,.9],[.54,.34,.8],[.61,.28,.6],[.48,.52,.5],[.63,.46,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[2,5],[5,6]]},Gemini:{stars:[[.33,.23,1],[.34,.38,.7],[.36,.54,.6],[.37,.68,.5],[.58,.22,.9],[.59,.39,.7],[.61,.53,.6],[.62,.69,.5]],lines:[[0,1],[1,2],[2,3],[4,5],[5,6],[6,7],[1,5],[2,6]]},Cancer:{stars:[[.33,.43,.7],[.44,.33,1],[.56,.44,.8],[.51,.57,.6],[.62,.31,.5]],lines:[[0,1],[1,2],[2,3],[1,4]]},Leo:{stars:[[.23,.53,.7],[.29,.36,1],[.39,.28,.9],[.51,.34,.8],[.57,.46,.6],[.67,.51,.5],[.56,.62,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[4,6],[6,0]]},Virgo:{stars:[[.28,.28,1],[.34,.41,.7],[.44,.51,.8],[.56,.44,.9],[.62,.56,.6],[.67,.38,.5],[.51,.62,.7],[.39,.61,.6]],lines:[[0,1],[1,2],[2,3],[3,4],[3,5],[2,6],[6,7],[7,1]]},Libra:{stars:[[.31,.32,.8],[.48,.27,1],[.66,.34,.7],[.38,.56,.9],[.62,.58,.6],[.5,.48,.5]],lines:[[0,1],[1,2],[0,3],[2,4],[3,5],[5,4]]},Scorpio:{stars:[[.18,.44,1],[.27,.38,.8],[.38,.41,.7],[.48,.46,.9],[.54,.52,.6],[.59,.57,.7],[.66,.61,.5],[.72,.56,.8],[.74,.47,.6]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8]]},Sagittarius:{stars:[[.33,.57,.7],[.39,.44,1],[.49,.33,.9],[.56,.44,.6],[.62,.56,.7],[.48,.51,.8],[.43,.63,.5],[.54,.27,.6]],lines:[[0,1],[1,2],[2,7],[1,5],[5,3],[3,4],[5,6]]},Capricorn:{stars:[[.28,.42,.8],[.38,.34,1],[.49,.37,.7],[.61,.43,.9],[.67,.52,.6],[.56,.57,.7],[.44,.51,.5]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,2]]},Aquarius:{stars:[[.18,.41,.6],[.28,.37,1],[.39,.43,.8],[.49,.37,.7],[.59,.43,.9],[.66,.51,.6],[.72,.57,.5]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6]]},Pisces:{stars:[[.23,.47,.7],[.29,.36,1],[.38,.29,.8],[.49,.34,.6],[.56,.44,.9],[.61,.52,.7],[.56,.58,.5],[.44,.57,.6],[.34,.51,.7]],lines:[[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],[6,7],[7,8],[8,0]]}};function Nv(s,i){let c=i;const r=()=>(c=c*16807%2147483647,c/2147483647),f=["#fff","#fff","#fff","#fff","#ccd6ff","#d4e0ff","#fff4e0","#ffe8c8","#ffd6d6"];return Array.from({length:s},()=>{const d=r()<.5?0:r()<.6?1:2,g=r()<.015,b=g||r()<.2,y=r(),m=r(),M=y-.5,A=m-.5;return{angle:Math.atan2(A,M),dist:Math.sqrt(M*M+A*A),r:g?2+r()*1:b?1.3+r()*1.2:d===0?.4+r()*.4:d===1?.6+r()*.6:1+r()*.8,phase:r()*Math.PI*2,speed:g?.1+r()*.3:.3+r()*1.2,color:f[Math.floor(r()*f.length)],layer:d,baseAlpha:b?.85+r()*.15:.45+r()*.45,shimmer:g}})}function Uv(s,i){let c=i;const r=()=>(c=c*16807%2147483647,c/2147483647);return Array.from({length:s},()=>({x:r(),y:r(),speed:.003+r()*.008,alpha:.3+r()*.4}))}function kv(s,i){let c=i;const r=()=>(c=c*16807%2147483647,c/2147483647);return Array.from({length:s},()=>({x:.05+r()*.9,y:.05+r()*.7,r:120+r()*220,hue:r()<.4?160+r()*40:r()<.7?270+r()*50:30+r()*20,phase:r()*Math.PI*2,speed:.1+r()*.25}))}const jv={Fire:{r:255,g:120,b:50},Earth:{r:120,g:180,b:80},Air:{r:140,g:170,b:255},Water:{r:80,g:140,b:220}},Lv={Garnet:"#9b2335",Amethyst:"#9966cc",Aquamarine:"#7fffd4",Diamond:"#e8e8e8",Emerald:"#50c878",Pearl:"#eae0c8",Ruby:"#e0115f",Peridot:"#b4c424",Sapphire:"#0f52ba",Opal:"#a8c3bc",Topaz:"#ffc87c",Tanzanite:"#5a4fcf"},Bv={Sun:1,Moon:.7,Mercury:.35,Venus:.5,Mars:.45,Jupiter:.85,Saturn:.75,Uranus:.55,Neptune:.55,Pluto:.3};function Hv({date:s,intensity:i,nebulaOpacity:c,showConstellation:r=!1,artifact:f="none",cosmic:d=null,darkMode:g=!0}){const b=E.useRef(null),y=E.useRef(0),m=E.useRef(!0),M=E.useRef(s),A=E.useRef({rotation:0,targetRotation:0,angVel:0,mouseX:0,mouseY:0,tMouseX:0,tMouseY:0,curI:0,curArtifact:0,sign:null,cAlpha:0,lineProgress:0,labelAlpha:0,prevSign:null,prevAlpha:0,planetAlpha:0,elementTintAlpha:0,shootingStars:[],nextShootAt:2e3,pulsars:[],nextPulsarAt:8e3,births:[],nextBirthAt:15e3,auroraPhase:0,t:0}),k=typeof window<"u"&&window.innerWidth<640,$=E.useMemo(()=>Nv(k?600:1200,42),[k]),J=E.useMemo(()=>kv(k?6:10,77),[k]),X=E.useMemo(()=>Uv(k?300:600,99),[k]);E.useEffect(()=>{const O=A.current,N=(G,tt)=>{O.tMouseX=(G/window.innerWidth-.5)*2,O.tMouseY=(tt/window.innerHeight-.5)*2},p=G=>N(G.clientX,G.clientY),K=G=>{G.touches[0]&&N(G.touches[0].clientX,G.touches[0].clientY)};return window.addEventListener("mousemove",p,{passive:!0}),window.addEventListener("touchmove",K,{passive:!0}),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("touchmove",K)}},[]),E.useEffect(()=>{const O=A.current,N=M.current,p=s;if(M.current=p,p&&N!==p){const[G,tt,Q]=(N||"2000-01-01").split("-").map(Number),[Et,Qt,re]=p.split("-").map(Number);if(!isNaN(Et)&&!isNaN(Qt)&&!isNaN(re)){const le=Et-(isNaN(G)?Et:G),Ut=Qt-(isNaN(tt)?Qt:tt),ve=re-(isNaN(Q)?re:Q),Ht=!N||N===""?.8:ve*.12+Ut*.4+le*1.5;O.angVel+=Ht,O.angVel=Math.max(-5,Math.min(5,O.angVel)),O.targetRotation+=Ht*.6}}const K=Cv(p);K!==O.sign&&(O.prevSign=O.sign,O.prevAlpha=O.cAlpha,O.sign=K,O.cAlpha=0,O.lineProgress=0,O.labelAlpha=0)},[s]);const L=E.useCallback(O=>{const N=b.current;if(!N)return;const p=N.getContext("2d");if(!p)return;const K=Math.min(window.devicePixelRatio||1,2),G=N.clientWidth,tt=N.clientHeight;(N.width!==G*K||N.height!==tt*K)&&(N.width=G*K,N.height=tt*K),p.setTransform(K,0,0,K,0,0),p.clearRect(0,0,G,tt);const Q=g,Et=Q?"255,255,255":"0,0,0",Qt=Q?"#fff":"#000",re=Q?"220,240,255":"30,30,60",le=Q?"255,240,220":"180,140,60",Ut=Q?[255,250,235,255,220,180,200,170,130]:[210,170,60,190,145,50,160,120,40],ve=Q?"255,230,200":"170,130,50",pe=Q?"210,255,235":"5,80,50",Ht=Q?{}:{"#fff":"#222","#ccd6ff":"#1a2040","#d4e0ff":"#102030","#fff4e0":"#3a2800","#ffe8c8":"#402000","#ffd6d6":"#401010"},U=V=>Ht[V]||V,T=A.current,P=1/60;T.t+=P;const rt=T.t;T.curI+=(i-T.curI)*.04;const nt=T.curI,x=f==="none"?0:1;T.curArtifact+=(x-T.curArtifact)*.06,T.mouseX+=(T.tMouseX-T.mouseX)*.04,T.mouseY+=(T.tMouseY-T.mouseY)*.04,T.targetRotation+=P*.015,T.rotation+=(T.targetRotation-T.rotation)*.05;const q=Math.abs(T.angVel);T.angVel*=.95,q<5e-4&&(T.angVel=0);const Z=Math.min(1,q*.8),I=G*.5,ct=tt*.5;if(T.sign&&r?(T.cAlpha=Math.min(1,T.cAlpha+P*1.5),T.lineProgress=Math.min(1,T.lineProgress+P*.8),T.labelAlpha=Math.min(1,T.labelAlpha+P*.6)):r||(T.cAlpha=Math.max(0,T.cAlpha-P*2)),T.prevSign&&(T.prevAlpha=Math.max(0,T.prevAlpha-P*2.5),T.prevAlpha<=0&&(T.prevSign=null)),T.nextShootAt-=P*1e3,T.nextShootAt<=0&&nt>.15&&(T.shootingStars.push({x:Math.random()*G,y:Math.random()*tt*.5,angle:Math.PI*.1+Math.random()*Math.PI*.3,speed:400+Math.random()*500,life:0,maxLife:.3+Math.random()*.35,len:80+Math.random()*150}),T.nextShootAt=3e3+Math.random()*7e3),T.curArtifact>.005&&f==="nebula"){const V=c??nt*.25;for(const Y of J){const W=Y.x*G+Math.sin(rt*Y.speed+Y.phase)*50,st=Y.y*tt+Math.cos(rt*Y.speed*.7+Y.phase)*35,lt=.5+.5*Math.sin(rt*Y.speed*.4+Y.phase),ut=Y.r*(.8+lt*.5),Ct=T.curArtifact*V*(.5+lt*.5);p.globalAlpha=1;const mt=p.createRadialGradient(W,st,0,W,st,ut);mt.addColorStop(0,`hsla(${Y.hue}, 80%, 55%, ${Ct})`),mt.addColorStop(.3,`hsla(${Y.hue}, 70%, 45%, ${Ct*.5})`),mt.addColorStop(.7,`hsla(${Y.hue}, 60%, 35%, ${Ct*.15})`),mt.addColorStop(1,`hsla(${Y.hue}, 50%, 30%, 0)`),p.fillStyle=mt,p.beginPath(),p.arc(W,st,ut,0,Math.PI*2),p.fill()}}if(T.curArtifact>.005&&f==="stardust"){const V=G*.5+Math.sin(rt*.15)*35,Y=tt*.32+Math.cos(rt*.12)*25,W=.6+.4*Math.sin(rt*.35),st=T.curArtifact*nt,lt=180+W*80,ut=p.createRadialGradient(V,Y,0,V,Y,lt);ut.addColorStop(0,`rgba(16, 185, 129, ${st*.25*W})`),ut.addColorStop(.2,`rgba(16, 185, 129, ${st*.12})`),ut.addColorStop(.5,`rgba(80, 100, 220, ${st*.06})`),ut.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=1,p.fillStyle=ut,p.beginPath(),p.arc(V,Y,lt,0,Math.PI*2),p.fill();const Ct=p.createRadialGradient(V,Y,0,V,Y,40);Ct.addColorStop(0,Q?`rgba(200, 255, 230, ${st*.4})`:`rgba(5, 80, 40, ${st*.4})`),Ct.addColorStop(.5,`rgba(16, 185, 129, ${st*.15})`),Ct.addColorStop(1,"rgba(16, 185, 129, 0)"),p.fillStyle=Ct,p.beginPath(),p.arc(V,Y,40,0,Math.PI*2),p.fill();for(let mt=0;mt<8;mt++){const xt=rt*.08+mt/8*Math.PI*2,Zt=80+40*Math.sin(rt*.4+mt*1.3),zt=V+Math.cos(xt)*Zt,Jt=Y+Math.sin(xt)*Zt,be=p.createLinearGradient(V,Y,zt,Jt);be.addColorStop(0,`rgba(16,185,129,${st*.15})`),be.addColorStop(1,"rgba(16,185,129,0)"),p.strokeStyle=be,p.lineWidth=2.5,p.globalAlpha=1,p.beginPath(),p.moveTo(V,Y),p.lineTo(zt,Jt),p.stroke()}}if(nt>.1){p.fillStyle=Qt;for(const V of X)V.y-=V.speed*P,V.x+=Math.sin(rt*.3+V.y*5)*3e-4,V.y<-.01&&(V.y=1.01,V.x=Math.random()),p.globalAlpha=V.alpha*nt*.7,p.fillRect(V.x*G,V.y*tt,1,1)}if(nt>.15){T.auroraPhase+=P*.08,p.save(),p.globalCompositeOperation=Q?"screen":"multiply";const V=[{hue:160,y:.18,amp:40,freq:1.2,alpha:.04},{hue:270,y:.25,amp:30,freq:.9,alpha:.03},{hue:190,y:.15,amp:50,freq:1.5,alpha:.025}];for(const Y of V){const W=Y.y*tt;p.beginPath(),p.moveTo(0,W);for(let lt=0;lt<=G;lt+=8){const ut=W+Math.sin(lt*Y.freq*.005+T.auroraPhase+Y.hue)*Y.amp+Math.sin(lt*.003+T.auroraPhase*1.7)*Y.amp*.5;p.lineTo(lt,ut)}p.lineTo(G,0),p.lineTo(0,0),p.closePath();const st=p.createLinearGradient(0,W-60,0,W+80);st.addColorStop(0,"rgba(0,0,0,0)"),st.addColorStop(.4,`hsla(${Y.hue},60%,50%,${Y.alpha*nt})`),st.addColorStop(.6,`hsla(${Y.hue},60%,40%,${Y.alpha*nt*.6})`),st.addColorStop(1,"rgba(0,0,0,0)"),p.fillStyle=st,p.fill()}p.restore()}for(const V of $){const Y=V.layer===0?.3:V.layer===1?.65:1,W=V.angle+T.rotation*Y,st=Math.sqrt(G*G+tt*tt)*.75,lt=I+Math.cos(W)*V.dist*st+T.mouseX*25*Y,ut=ct+Math.sin(W)*V.dist*st+T.mouseY*15*Y;if(lt<-60||lt>G+60||ut<-60||ut>tt+60)continue;const mt=V.baseAlpha*(.3+.5*(.5+.35*Math.sin(rt*V.speed+V.phase)+.15*Math.sin(rt*V.speed*2.7+V.phase*1.4)))*nt;if(!(mt<.008)){if(Z>.02&&nt>.2){const xt=T.angVel*V.dist*st*Y,Zt=Math.max(-80,Math.min(80,xt));if(Math.abs(Zt)>1.5){const zt=-Math.sin(W),Jt=Math.cos(W);p.beginPath(),p.moveTo(lt-zt*Zt*.5,ut-Jt*Zt*.5),p.lineTo(lt+zt*Zt*.5,ut+Jt*Zt*.5),p.lineWidth=V.r*1.8,p.strokeStyle=U(V.color),p.globalAlpha=mt*.3,p.stroke()}}if(p.globalAlpha=mt,p.fillStyle=U(V.color),p.beginPath(),p.arc(lt,ut,V.r,0,Math.PI*2),p.fill(),V.shimmer&&mt>.1){const xt=.5+.5*Math.sin(rt*V.speed*.7+V.phase),Zt=V.r*(8+xt*6),zt=p.createRadialGradient(lt,ut,0,lt,ut,Zt);zt.addColorStop(0,U(V.color)),zt.addColorStop(.15,U(V.color)),zt.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=mt*.25*xt,p.fillStyle=zt,p.beginPath(),p.arc(lt,ut,Zt,0,Math.PI*2),p.fill();const Jt=V.r*(4+xt*3);p.globalAlpha=mt*.4*xt,p.strokeStyle=U(V.color),p.lineWidth=.8,p.beginPath(),p.moveTo(lt-Jt,ut),p.lineTo(lt+Jt,ut),p.moveTo(lt,ut-Jt),p.lineTo(lt,ut+Jt),p.stroke()}}}for(let V=T.shootingStars.length-1;V>=0;V--){const Y=T.shootingStars[V];if(Y.life+=P,Y.life>Y.maxLife){T.shootingStars.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W<.2?W/.2:1-(W-.2)/.8,lt=Y.x+Math.cos(Y.angle)*Y.speed*Y.life,ut=Y.y+Math.sin(Y.angle)*Y.speed*Y.life,Ct=lt-Math.cos(Y.angle)*Y.len*st,mt=ut-Math.sin(Y.angle)*Y.len*st,xt=p.createLinearGradient(Ct,mt,lt,ut);xt.addColorStop(0,`rgba(${Et},0)`),xt.addColorStop(.6,`rgba(${Et},${st*.3*nt})`),xt.addColorStop(1,`rgba(${Et},${st*.9*nt})`),p.strokeStyle=xt,p.lineWidth=1.8,p.globalAlpha=1,p.beginPath(),p.moveTo(Ct,mt),p.lineTo(lt,ut),p.stroke(),p.fillStyle=`rgba(${Et},${st*nt})`,p.beginPath(),p.arc(lt,ut,2,0,Math.PI*2),p.fill()}T.nextPulsarAt-=P*1e3,T.nextPulsarAt<=0&&nt>.2&&T.pulsars.length<2&&(T.pulsars.push({x:Math.random()*G,y:Math.random()*tt,life:0,maxLife:2.5+Math.random()*1.5}),T.nextPulsarAt=6e3+Math.random()*1e4);for(let V=T.pulsars.length-1;V>=0;V--){const Y=T.pulsars[V];if(Y.life+=P,Y.life>Y.maxLife){T.pulsars.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W*60,lt=W<.1?W/.1:1-(W-.1)/.9;if(p.strokeStyle=`rgba(${re},${lt*.3*nt})`,p.lineWidth=1.5*(1-W),p.globalAlpha=1,p.beginPath(),p.arc(Y.x,Y.y,st,0,Math.PI*2),p.stroke(),W<.3){const ut=(1-W/.3)*.6*nt;p.fillStyle=`rgba(${re},${ut})`,p.beginPath(),p.arc(Y.x,Y.y,2,0,Math.PI*2),p.fill()}}if(T.nextBirthAt-=P*1e3,T.nextBirthAt<=0&&nt>.2&&T.births.length<1){const V=Q?["#fff","#ccd6ff","#fff4e0","#ffe8c8"]:["#000","#1a2040","#3a2800","#402000"];T.births.push({x:G*.1+Math.random()*G*.8,y:tt*.1+Math.random()*tt*.6,life:0,maxLife:2+Math.random()*1,color:V[Math.floor(Math.random()*V.length)]}),T.nextBirthAt=18e3+Math.random()*15e3}for(let V=T.births.length-1;V>=0;V--){const Y=T.births[V];if(Y.life+=P,Y.life>Y.maxLife){T.births.splice(V,1);continue}const W=Y.life/Y.maxLife,st=W<.15?W/.15:1,lt=W<.3?1:1-(W-.3)/.7,ut=st*20,Ct=p.createRadialGradient(Y.x,Y.y,0,Y.x,Y.y,ut);Ct.addColorStop(0,Y.color),Ct.addColorStop(.3,Y.color),Ct.addColorStop(1,"rgba(0,0,0,0)"),p.globalAlpha=lt*.4*nt,p.fillStyle=Ct,p.beginPath(),p.arc(Y.x,Y.y,ut,0,Math.PI*2),p.fill();const mt=1+st*2*lt;if(p.globalAlpha=lt*.9*nt,p.fillStyle=Qt,p.beginPath(),p.arc(Y.x,Y.y,mt,0,Math.PI*2),p.fill(),W<.3){const xt=st*15*lt;p.strokeStyle=Y.color,p.lineWidth=.6,p.globalAlpha=lt*.5*nt,p.beginPath(),p.moveTo(Y.x-xt,Y.y),p.lineTo(Y.x+xt,Y.y),p.moveTo(Y.x,Y.y-xt),p.lineTo(Y.x,Y.y+xt),p.stroke()}}if(p.globalAlpha=1,d&&r?(T.planetAlpha=Math.min(1,T.planetAlpha+P*.8),T.elementTintAlpha=Math.min(1,T.elementTintAlpha+P*.6)):(T.planetAlpha=Math.max(0,T.planetAlpha-P*1.5),T.elementTintAlpha=Math.max(0,T.elementTintAlpha-P*1.5)),d&&T.elementTintAlpha>.01){const V=jv[d.zodiac.element];if(V){const zt=T.elementTintAlpha*nt*.12,Jt=p.createRadialGradient(G*.5,tt*.72,0,G*.5,tt*.72,tt*.7);Jt.addColorStop(0,`rgba(${V.r},${V.g},${V.b},${zt})`),Jt.addColorStop(.5,`rgba(${V.r},${V.g},${V.b},${zt*.3})`),Jt.addColorStop(1,"rgba(0,0,0,0)"),p.fillStyle=Jt,p.beginPath(),p.arc(G*.5,tt*.72,tt*.7,0,Math.PI*2),p.fill()}const W=5+(Bv[d.zodiac.rulingPlanet]||.5)*8,st=W*5,lt=G*.73+Math.sin(rt*.1)*8,ut=tt*.68+Math.cos(rt*.08)*6,Ct=T.planetAlpha*(Q?nt:Math.max(nt,.7)),mt=p.createRadialGradient(lt,ut,0,lt,ut,st);mt.addColorStop(0,`rgba(${le},${Ct*.08})`),mt.addColorStop(.3,`rgba(${le},${Ct*.03})`),mt.addColorStop(1,`rgba(${le},0)`),p.fillStyle=mt,p.globalAlpha=1,p.beginPath(),p.arc(lt,ut,st,0,Math.PI*2),p.fill();const xt=p.createRadialGradient(lt-W*.2,ut-W*.2,0,lt,ut,W);xt.addColorStop(0,`rgba(${Ut[0]},${Ut[1]},${Ut[2]},${Ct*.5})`),xt.addColorStop(.7,`rgba(${Ut[3]},${Ut[4]},${Ut[5]},${Ct*.25})`),xt.addColorStop(1,`rgba(${Ut[6]},${Ut[7]},${Ut[8]},${Ct*.1})`),p.fillStyle=xt,p.beginPath(),p.arc(lt,ut,W,0,Math.PI*2),p.fill(),d.zodiac.rulingPlanet==="Saturn"&&(p.strokeStyle=`rgba(${ve},${Ct*.2})`,p.lineWidth=1,p.beginPath(),p.ellipse(lt,ut,W*2.2,W*.5,-.2,0,Math.PI*2),p.stroke());const Zt=Lv[d.birthstone];if(Zt)for(let zt=0;zt<8;zt++){const Jt=G*.25+zt*.07*G+Math.sin(rt*.25+zt*1.1)*25,be=tt*.65+Math.cos(rt*.2+zt*.9)*30+zt%3*15,Kt=T.elementTintAlpha*nt*.3*(.4+.6*Math.sin(rt*.4+zt*2));p.fillStyle=Zt,p.globalAlpha=Kt,p.beginPath(),p.arc(Jt,be,1.5+zt%3*.5,0,Math.PI*2),p.fill()}p.globalAlpha=1}const ht=(V,Y,W)=>{const st=Ov[V];if(!st||Y<=0)return;const lt=T.rotation*.65,ut=G*.5+T.mouseX*25*.65,Ct=tt*.72+T.mouseY*15*.65,mt=Math.min(G*.45,tt*.22),xt=st.stars.map(([Kt,Me])=>{const ge=(Kt-.5)*mt,ie=(Me-.42)*mt,qt=Math.cos(lt*.15),na=Math.sin(lt*.15);return[ut+ge*qt-ie*na,Ct+ge*na+ie*qt]}),Zt=st.lines.length,zt=Math.floor(W*Zt),Jt=W*Zt-zt,be=Q?1:3;p.strokeStyle=`rgba(16,185,129,${Y*.3*nt*be})`,p.lineWidth=Q?1:1.5,p.shadowColor=`rgba(16,185,129,${Y*.5*be})`,p.shadowBlur=6,p.beginPath();for(let Kt=0;Kt<=zt&&Kt<Zt;Kt++){const[Me,ge]=st.lines[Kt],[ie,qt]=xt[Me],[na,la]=xt[ge];p.moveTo(ie,qt),p.lineTo(Kt<zt?na:ie+(na-ie)*Jt,Kt<zt?la:qt+(la-qt)*Jt)}p.stroke(),p.shadowBlur=0;for(let Kt=0;Kt<st.stars.length;Kt++){const[,,Me]=st.stars[Kt],[ge,ie]=xt[Kt],qt=Y*Me*Math.min(1,W*Zt/Math.max(1,Kt))*nt;if(qt<=0)continue;const na=5+Me*5,la=p.createRadialGradient(ge,ie,0,ge,ie,na);la.addColorStop(0,`rgba(16,185,129,${qt*.7*be})`),la.addColorStop(.4,`rgba(16,185,129,${qt*.2*be})`),la.addColorStop(1,"rgba(16,185,129,0)"),p.fillStyle=la,p.globalAlpha=1,p.beginPath(),p.arc(ge,ie,na,0,Math.PI*2),p.fill(),p.fillStyle=`rgba(${pe},${qt})`,p.beginPath(),p.arc(ge,ie,1.2+Me*1.3,0,Math.PI*2),p.fill()}if(V===T.sign&&T.labelAlpha>0){const Kt=Math.max(13,Math.min(16,G*.035)),Me=Math.max(10,Math.min(12,G*.025)),ge=Math.max(...xt.map(ie=>ie[1]));if(p.textAlign="center",p.globalAlpha=T.labelAlpha*(Q?.5:1),p.fillStyle=Q?"#34d399":"#047857",p.font=`500 ${Kt}px -apple-system, Inter, system-ui, sans-serif`,p.letterSpacing="3px",p.fillText(V.toUpperCase(),ut,ge+24),p.letterSpacing="0px",d&&T.labelAlpha>.4){const ie=(T.labelAlpha-.4)/.6;p.font=`400 ${Me}px -apple-system, Inter, system-ui, sans-serif`,p.letterSpacing="1.5px",p.globalAlpha=ie*(Q?.6:1),p.fillStyle=Q?"#a1a1aa":"#71717a",p.fillText(`${d.zodiac.element} · ${d.zodiac.rulingPlanet}`,ut,ge+42),p.globalAlpha=ie*(Q?.45:.85),p.fillStyle=Q?"#a1a1aa":"#71717a",p.fillText(`${d.chineseZodiac.element} ${d.chineseZodiac.animal} · Path ${d.numerology.lifePath}`,ut,ge+58),p.letterSpacing="0px"}p.globalAlpha=1}};T.prevSign&&ht(T.prevSign,T.prevAlpha,1),T.sign&&T.cAlpha>0&&ht(T.sign,T.cAlpha,T.lineProgress),m.current&&(y.current=requestAnimationFrame(L))},[$,J,X,i,c,r,f,d,g]);return E.useEffect(()=>{if(zv()){m.current=!1,requestAnimationFrame(L);return}const O=()=>{const N=!document.hidden;N!==m.current&&(m.current=N,cancelAnimationFrame(y.current),N&&(y.current=requestAnimationFrame(L)))};return m.current=!document.hidden,m.current&&(y.current=requestAnimationFrame(L)),document.addEventListener("visibilitychange",O),()=>{cancelAnimationFrame(y.current),document.removeEventListener("visibilitychange",O)}},[L]),w.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none z-0","aria-hidden":"true",children:[w.jsx("canvas",{ref:b,className:"absolute inset-0 w-full h-full"}),w.jsx("div",{className:"absolute inset-x-0 bottom-0 h-1/4",style:{background:"linear-gradient(to top, var(--color-bg) 0%, transparent 100%)"}}),w.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse 140% 90% at 50% 10%, transparent 50%, var(--color-bg) 100%)"}})]})}const qv={date:"",intensity:.5,nebulaOpacity:.05,artifact:"nebula",cosmic:null},jm=E.createContext(()=>{}),e2=()=>E.useContext(jm);function Yv(){const[s,i]=E.useState(qv),c=E.useCallback(f=>i(d=>({...d,...f})),[]),{resolved:r}=vv();return w.jsx(jm.Provider,{value:c,children:w.jsxs("div",{className:"relative min-h-screen",children:[w.jsx(Hv,{...s,darkMode:r==="dark"}),w.jsx("div",{className:"relative z-10",children:w.jsx(vy,{})})]})})}function Lm(s){const[i,c]=E.useState(()=>pt.flags.get(s));return E.useEffect(()=>pt.flags.subscribe(f=>{(!f||f===s)&&c(pt.flags.get(s))}),[s]),i}const nm=1;class St extends Error{constructor(i,c){super(c),this.code=i,this.name="KitError"}}class Vv{constructor(){this.kind="appwrap",this.pending=new Map,this.listeners=new Map,this.seq=0}detect(){var i,c;return typeof window<"u"&&(!!((c=(i=window.webkit)==null?void 0:i.messageHandlers)!=null&&c.appwrap)||!!window.appwrapNative)}async handshake(i){return this.installDeliver(),this.request("app.handshake",void 0,i)}invoke(i,c,r){return this.request(i,c,(r==null?void 0:r.timeoutMs)??1e4)}on(i,c){let r=this.listeners.get(i);return r||this.listeners.set(i,r=new Set),r.add(c),()=>r.delete(c)}request(i,c,r){const f=`k${++this.seq}`,d={v:1,id:f,kind:"request",method:i,params:c};return new Promise((g,b)=>{const y=setTimeout(()=>{this.pending.delete(f),b(new St("TIMEOUT",`${i} timed out after ${r}ms`))},r);this.pending.set(f,{resolve:m=>{clearTimeout(y),g(m)},reject:m=>{clearTimeout(y),b(m)}}),this.post(d)})}post(i){var r,f;const c=JSON.stringify(i);if((f=(r=window.webkit)==null?void 0:r.messageHandlers)!=null&&f.appwrap)window.webkit.messageHandlers.appwrap.postMessage(c);else if(window.appwrapNative)window.appwrapNative.postMessage(c);else{const d=this.pending.get(i.id);this.pending.delete(i.id),d==null||d.reject(new St("NOT_READY","No native transport present"))}}installDeliver(){window.__appwrapDeliver||(window.__appwrapDeliver=i=>{var r;let c;try{c=JSON.parse(i)}catch{return}c.kind==="response"?this.handleResponse(c):c.kind==="event"&&((r=this.listeners.get(c.event))==null||r.forEach(f=>f(c.payload)))})}handleResponse(i){const c=this.pending.get(i.id);c&&(this.pending.delete(i.id),i.error?c.reject(new St(i.error.code,i.error.message)):c.resolve(i.result))}}function Gv(s){const i=atob(s),c=new Uint8Array(i.length);for(let r=0;r<i.length;r++)c[r]=i.charCodeAt(r);return c.buffer}function Xv(s){switch(s){case"portrait-upside-down":return"portrait-secondary";case"landscape-left":return"landscape-primary";case"landscape-right":return"landscape-secondary";default:return s}}class Qv{constructor(){this.kind="web",this.toastEl=null,this.wakeLock=null,this.listeners=new Map,this.geoWatchId=null,this.motionHandler=null}detect(){return typeof window<"u"}async handshake(){var r,f;const i=navigator,c={haptics:"vibrate"in navigator?"web":"none",share:"share"in navigator?"web":"none",shareFiles:typeof i.canShare=="function"?"web":"none",orientation:screen!=null&&screen.orientation?"web":"none",storage:"web",secureStorage:"none",toast:"web",statusBar:"none",device:"web",clipboard:navigator.clipboard?"web":"none",notifications:"Notification"in window?"web":"none",biometrics:"none",geo:"geolocation"in navigator?"web":"none",photos:"web",network:"web",screen:"wakeLock"in i?"web":"none",dialogs:"web",reviews:"none",themeColor:"web",motion:typeof DeviceMotionEvent<"u"?"web":"none",contacts:(r=i.contacts)!=null&&r.select?"web":"none",calendar:"none",camera:"web",media:(f=navigator.mediaDevices)!=null&&f.getUserMedia?"web":"none",app:"web",browser:"web",billing:"none",push:"none"};return{protocol:1,platform:"web",app:{id:location.hostname,name:document.title||location.hostname,version:"0.0.0"},capabilities:c}}async invoke(i,c){var f,d,g,b,y,m,M,A,k,$,J,X;const r=c??{};switch(i){case"haptics.impact":(f=navigator.vibrate)==null||f.call(navigator,10);return;case"haptics.notify":(d=navigator.vibrate)==null||d.call(navigator,r.type==="error"?[40,60,40]:[20,40,20]);return;case"share.share":if(!navigator.share)throw new St("UNSUPPORTED","Web Share API unavailable");await navigator.share({title:r.title,text:r.text,url:r.url}).catch(L=>{if(L.name!=="AbortError")throw new St("NATIVE_ERROR",L.message)});return;case"share.files":{const O={files:(r.files??[]).map(N=>new File([Gv(N.base64)],N.name,{type:N.mimeType})),title:r.title,text:r.text};if(!((g=navigator.canShare)!=null&&g.call(navigator,O)))throw new St("UNSUPPORTED","Sharing files is unavailable here");await navigator.share(O).catch(N=>{if(N.name!=="AbortError")throw new St("NATIVE_ERROR",N.message)});return}case"storage.get":return JSON.parse(localStorage.getItem(`kit:${r.key}`)??"null");case"storage.set":localStorage.setItem(`kit:${r.key}`,JSON.stringify(r.value??null));return;case"storage.remove":localStorage.removeItem(`kit:${r.key}`);return;case"storage.clear":for(const L of Object.keys(localStorage))L.startsWith("kit:")&&localStorage.removeItem(L);return;case"storage.secure.get":case"storage.secure.set":case"storage.secure.remove":throw new St("UNSUPPORTED","No secure storage on web");case"toast.show":this.showToast(String(r.message??""),r.duration==="long"?3500:2e3);return;case"ui.statusBar.setStyle":return;case"ui.safeArea":return this.readSafeArea();case"ui.brightness.get":case"ui.brightness.set":throw new St("UNSUPPORTED","No brightness control on web");case"ui.keepAwake":{const L=navigator.wakeLock;if(!L)throw new St("UNSUPPORTED","Wake Lock API unavailable");r.on?this.wakeLock=await L.request("screen"):(await((b=this.wakeLock)==null?void 0:b.release()),this.wakeLock=null);return}case"ui.alert":window.alert([r.title,r.message].filter(Boolean).join(`
`));return;case"ui.confirm":return window.confirm([r.title,r.message].filter(Boolean).join(`
`));case"ui.action":return this.showActionSheet(r.title,r.options??[],r.cancel??"Cancel");case"ui.setBackgroundColor":{let L=document.querySelector('meta[name="theme-color"]');L||(L=document.createElement("meta"),L.name="theme-color",document.head.appendChild(L)),L.content=String(r.color??"");return}case"screen.orientation.lock":{const L=screen==null?void 0:screen.orientation;if(!(L!=null&&L.lock))throw new St("UNSUPPORTED","Screen orientation lock unavailable");await L.lock(Xv(String(r.orientation))).catch(O=>{throw new St("UNSUPPORTED",O.message||"Lock rejected (fullscreen may be required)")});return}case"screen.orientation.unlock":(m=(y=screen==null?void 0:screen.orientation)==null?void 0:y.unlock)==null||m.call(y);return;case"screen.orientation.current":return(((M=screen==null?void 0:screen.orientation)==null?void 0:M.type)??"").startsWith("landscape")?"landscape":"portrait";case"reviews.requestReview":throw new St("UNSUPPORTED","No in-app review prompt on web");case"device.info":{const L=await((A=navigator.getBattery)==null?void 0:A.call(navigator).catch(()=>null));return{model:navigator.userAgent.replace(/^Mozilla\/\d+\.\d+\s*/,"").slice(0,64),os:"web",osVersion:navigator.platform??"",language:navigator.language,battery:L?{level:L.level,charging:L.charging}:void 0}}case"clipboard.copy":if(!navigator.clipboard)throw new St("UNSUPPORTED","Clipboard API unavailable");await navigator.clipboard.writeText(String(r.text??""));return;case"clipboard.read":if(!((k=navigator.clipboard)!=null&&k.readText))throw new St("UNSUPPORTED","Clipboard read unavailable");return await navigator.clipboard.readText().catch(L=>{throw new St("DENIED",L.message)});case"notifications.requestPermission":if(!("Notification"in window))throw new St("UNSUPPORTED","Notifications unavailable");return await Notification.requestPermission();case"notifications.schedule":{if(Notification.permission!=="granted")throw new St("DENIED","Permission not granted");const L=(r.delaySec??1)*1e3;return setTimeout(()=>new Notification(r.title,{body:r.body}),L),{id:r.id??Date.now()%1e5}}case"notifications.pending":return 0;case"notifications.setBadge":{const L=($=navigator.setAppBadge)==null?void 0:$.bind(navigator);if(!L)throw new St("UNSUPPORTED","Badging API unavailable");await L(r.count);return}case"notifications.clear":return;case"biometrics.available":return{available:!1,type:"none"};case"biometrics.authenticate":throw new St("UNSUPPORTED","No biometrics on web");case"geo.current":return new Promise((L,O)=>{navigator.geolocation.getCurrentPosition(N=>L({lat:N.coords.latitude,lng:N.coords.longitude,accuracy:N.coords.accuracy}),N=>O(new St(N.code===1?"DENIED":"NATIVE_ERROR",N.message)),{timeout:1e4})});case"geo.watch.start":this.geoWatchId===null&&(this.geoWatchId=navigator.geolocation.watchPosition(L=>this.emit("geo.position",{lat:L.coords.latitude,lng:L.coords.longitude,accuracy:L.coords.accuracy}),L=>console.warn("[native-kit] geo.watch error",L.message)));return;case"geo.watch.stop":this.geoWatchId!==null&&(navigator.geolocation.clearWatch(this.geoWatchId),this.geoWatchId=null);return;case"motion.start":{if(typeof DeviceMotionEvent>"u")throw new St("UNSUPPORTED","No motion sensors on this browser");const L=DeviceMotionEvent.requestPermission;if(L&&await L().catch(N=>{throw new St("DENIED",N.message)})!=="granted")throw new St("DENIED","Motion permission not granted");if(!this.motionHandler){let O=0;this.motionHandler=N=>{const p=performance.now();if(p-O<100)return;O=p;const K=N.accelerationIncludingGravity,G=N.rotationRate;this.emit("motion.data",{ax:(K==null?void 0:K.x)??0,ay:(K==null?void 0:K.y)??0,az:(K==null?void 0:K.z)??0,rx:(G==null?void 0:G.alpha)??void 0,ry:(G==null?void 0:G.beta)??void 0,rz:(G==null?void 0:G.gamma)??void 0})},window.addEventListener("devicemotion",this.motionHandler)}return}case"motion.stop":this.motionHandler&&(window.removeEventListener("devicemotion",this.motionHandler),this.motionHandler=null);return;case"contacts.pick":{if(!((J=navigator.contacts)==null?void 0:J.select))throw new St("UNSUPPORTED","Contact Picker API unavailable");const O=await navigator.contacts.select(["name","tel","email"]).catch(p=>{throw new St("DENIED",p.message)}),N=O==null?void 0:O[0];return N?{picked:!0,name:(X=N.name)==null?void 0:X[0],phones:N.tel,emails:N.email}:{picked:!1}}case"calendar.createEvent":throw new St("UNSUPPORTED","No calendar access on web");case"photos.pick":return this.pickImageFile(!1,!!r.dataUrl,r.maxSize);case"camera.capture":return this.pickImageFile(!0,!!r.dataUrl,r.maxSize);case"media.configureAudio":return;case"network.status":{const L=navigator.connection;return{online:navigator.onLine,type:(L==null?void 0:L.type)??(navigator.onLine?"unknown":"none")}}case"app.openUrl":case"browser.open":{if(!window.open(String(r.url??""),"_blank","noopener"))throw new St("DENIED","Popup blocked");return}case"app.openSettings":throw new St("UNSUPPORTED","No app settings page on web");case"billing.products":case"billing.purchase":case"billing.restore":case"billing.entitlements":case"billing.manageSubscriptions":throw new St("UNSUPPORTED","No in-app purchases on web — use a web checkout");case"push.requestPermission":case"push.register":case"push.unregister":throw new St("UNSUPPORTED","No native remote push on web — use Web Push (VAPID) in your app, or run inside the appwrap shell");default:throw new St("UNSUPPORTED",`Unknown method: ${i}`)}}on(i,c){if(i==="network.change"){const f=()=>c({online:navigator.onLine,type:navigator.onLine?"unknown":"none"});return window.addEventListener("online",f),window.addEventListener("offline",f),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",f)}}if(i==="screen.orientation.change"){const f=screen==null?void 0:screen.orientation;if(!f)return()=>{};const d=()=>c(String(f.type??"").startsWith("landscape")?"landscape":"portrait");return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}if(i==="app.pause"||i==="app.resume"){const f=()=>{const d=document.visibilityState==="hidden";i==="app.pause"===d&&c(void 0)};return document.addEventListener("visibilitychange",f),()=>document.removeEventListener("visibilitychange",f)}let r=this.listeners.get(i);return r||(r=new Set,this.listeners.set(i,r)),r.add(c),()=>r.delete(c)}emit(i,c){var r;(r=this.listeners.get(i))==null||r.forEach(f=>f(c))}pickImageFile(i,c=!1,r=1024){return new Promise(f=>{const d=document.createElement("input");d.type="file",d.accept="image/*",i&&d.setAttribute("capture","environment"),d.onchange=()=>{var y;const g=(y=d.files)==null?void 0:y[0];if(!g)return f({picked:!1});const b=new Image;b.onload=()=>{var M;const m={picked:!0,width:b.naturalWidth,height:b.naturalHeight};if(c){const A=Math.min(1,r/Math.max(b.naturalWidth,b.naturalHeight)),k=document.createElement("canvas");k.width=Math.round(b.naturalWidth*A),k.height=Math.round(b.naturalHeight*A),(M=k.getContext("2d"))==null||M.drawImage(b,0,0,k.width,k.height),m.dataUrl=k.toDataURL("image/jpeg",.85)}URL.revokeObjectURL(b.src),f(m)},b.onerror=()=>f({picked:!0}),b.src=URL.createObjectURL(g)},d.oncancel=()=>f({picked:!1}),d.click()})}showActionSheet(i,c,r){return new Promise(f=>{const d=document.createElement("div");d.style.cssText="position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:99999;display:flex;align-items:flex-end";const g=document.createElement("div");g.style.cssText="width:100%;background:#1c1c22;color:#fff;border-radius:16px 16px 0 0;padding:12px;font:15px system-ui;display:flex;flex-direction:column;gap:6px";const b=m=>{d.remove(),f(m)};if(i){const m=document.createElement("div");m.textContent=i,m.style.cssText="text-align:center;opacity:.6;font-size:13px;padding:4px",g.appendChild(m)}const y=(m,M)=>{const A=document.createElement("button");A.textContent=m,A.style.cssText="background:#2a2a32;color:inherit;border:0;border-radius:10px;padding:12px;font:inherit;cursor:pointer",A.onclick=M,g.appendChild(A)};c.forEach((m,M)=>y(m,()=>b(M))),y(r,()=>b(null)),d.onclick=m=>{m.target===d&&b(null)},d.appendChild(g),document.body.appendChild(d)})}readSafeArea(){const i=document.createElement("div");i.style.cssText="position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)",document.body.appendChild(i);const c=getComputedStyle(i),r={top:parseFloat(c.paddingTop)||0,right:parseFloat(c.paddingRight)||0,bottom:parseFloat(c.paddingBottom)||0,left:parseFloat(c.paddingLeft)||0};return i.remove(),r}showToast(i,c){var f;(f=this.toastEl)==null||f.remove();const r=document.createElement("div");r.textContent=i,r.style.cssText="position:fixed;bottom:48px;left:50%;transform:translateX(-50%);background:rgba(20,20,24,.92);color:#fff;padding:10px 18px;border-radius:20px;font:14px/1.3 system-ui;z-index:99999;max-width:80vw;text-align:center;box-shadow:0 4px 16px rgba(0,0,0,.25)",document.body.appendChild(r),this.toastEl=r,setTimeout(()=>{r.remove(),this.toastEl===r&&(this.toastEl=null)},c)}}class Zv{constructor(i){this.kit=i}get capability(){return this.kit.capability("app")}openUrl(i){return this.kit.invoke("app.openUrl",{url:i})}openSettings(){return this.kit.invoke("app.openSettings")}}class Jv{constructor(i){this.readNative=i}async validate(i){return[{productId:i.productId,active:!0,purchasedAt:Date.now()}]}entitlements(){return this.readNative()}}class Kv{constructor(i){this.kit=i,this.validator=new Jv(()=>this.nativeEntitlements())}get capability(){return this.kit.is.native?this.kit.capability("billing"):this.webProvider?"web":"none"}configure(i){i.validator&&(this.validator=i.validator),i.webProvider&&(this.webProvider=i.webProvider)}webProviderOrThrow(){if(!this.webProvider)throw new St("UNSUPPORTED","No web billing provider configured. On the web, wire one: kit.billing.configure({ webProvider: new HttpBillingProvider({ baseUrl: '/api/billing' }) })");return this.webProvider}async products(i){return await this.kit.ready(),this.kit.is.web?this.webProviderOrThrow().products(i):this.kit.invoke("billing.products",{ids:i})}async purchase(i){if(await this.kit.ready(),this.kit.is.web){const r=await this.webProviderOrThrow().purchase(i);return{receipt:{platform:"web",productId:i,raw:null},entitlements:r}}const c=await this.kit.invoke("billing.purchase",{productId:i},{timeoutMs:12e4});return{receipt:c,entitlements:await this.validator.validate(c)}}async restore(){if(await this.kit.ready(),this.kit.is.web){const r=this.webProviderOrThrow();return(r.restore??r.entitlements).call(r)}const i=await this.kit.invoke("billing.restore",void 0,{timeoutMs:6e4}),c=[];for(const r of i)c.push(...await this.validator.validate(r));return c}async entitlements(){return await this.kit.ready(),this.kit.is.web?this.webProviderOrThrow().entitlements():this.validator.entitlements()}async manageSubscriptions(){if(await this.kit.ready(),this.kit.is.web){const i=this.webProviderOrThrow();if(!i.manageSubscriptions)throw new St("UNSUPPORTED","This web billing provider has no subscription-management portal");return i.manageSubscriptions()}return this.kit.invoke("billing.manageSubscriptions")}onTransaction(i){return this.kit.on("billing.transaction",c=>i(c))}nativeEntitlements(){return this.kit.invoke("billing.entitlements")}}class $v{constructor(i){this.kit=i}get capability(){return this.kit.capability("biometrics")}available(){return this.kit.invoke("biometrics.available")}authenticate(i){return this.kit.invoke("biometrics.authenticate",{reason:i},{timeoutMs:6e4})}}class Pv{constructor(i){this.kit=i}get capability(){return this.kit.capability("browser")}open(i,c={}){return this.kit.invoke("browser.open",{url:i,...c})}}class Wv{constructor(i){this.kit=i}get capability(){return this.kit.capability("calendar")}createEvent(i){return this.kit.invoke("calendar.createEvent",i,{timeoutMs:12e4})}}class Fv{constructor(i){this.kit=i}get capability(){return this.kit.capability("clipboard")}copy(i){return this.kit.invoke("clipboard.copy",{text:i})}read(){return this.kit.invoke("clipboard.read")}}class Iv{constructor(i){this.kit=i}get capability(){return this.kit.capability("contacts")}pick(){return this.kit.invoke("contacts.pick",void 0,{timeoutMs:12e4})}}class tb{constructor(i){this.kit=i}get capability(){return this.kit.capability("device")}info(){return this.kit.invoke("device.info")}}class eb{constructor(i){this.kit=i}get capability(){return this.kit.capability("geo")}current(){return this.kit.invoke("geo.current",void 0,{timeoutMs:6e4})}async watch(i){const c=this.kit.on("geo.position",f=>i(f));try{await this.kit.invoke("geo.watch.start",void 0,{timeoutMs:6e4})}catch(f){throw c(),f}let r=!1;return()=>{r||(r=!0,c(),this.kit.invoke("geo.watch.stop").catch(f=>console.warn("[native-kit] geo.watch.stop failed",f)))}}}class ab{constructor(i){this.kit=i}get capability(){return this.kit.capability("haptics")}impact(i="medium"){return this.kit.invoke("haptics.impact",{style:i})}notify(i){return this.kit.invoke("haptics.notify",{type:i})}}class nb{constructor(i){this.kit=i}onPause(i){return this.kit.on("app.pause",()=>i())}onResume(i){return this.kit.on("app.resume",()=>i())}onDeepLink(i){return this.kit.on("deeplink.open",c=>i(c.url))}}class lb{constructor(i){this.kit=i}get capability(){return this.kit.capability("media")}get available(){var i;return typeof navigator<"u"&&!!((i=navigator.mediaDevices)!=null&&i.getUserMedia)}ensurePermission(i){return this.capability!=="native"?Promise.resolve({}):this.kit.invoke("media.ensurePermission",i)}async getUserMedia(i){if(!this.available)throw Object.assign(new Error("getUserMedia unavailable (insecure context?)"),{code:"UNSUPPORTED"});return await this.ensurePermission({audio:!!i.audio,video:!!i.video}).catch(()=>{}),navigator.mediaDevices.getUserMedia(i)}async devices(){var c;return(c=navigator.mediaDevices)!=null&&c.enumerateDevices?(await navigator.mediaDevices.enumerateDevices()).map(r=>({kind:r.kind,label:r.label,deviceId:r.deviceId})):[]}configureAudio(i="playback"){return this.capability!=="native"?Promise.resolve():this.kit.invoke("media.configureAudio",{mode:i})}stop(i){i==null||i.getTracks().forEach(c=>c.stop())}}class ib{constructor(i){this.kit=i}get capability(){return this.kit.capability("motion")}async watch(i){const c=this.kit.on("motion.data",f=>i(f));try{await this.kit.invoke("motion.start")}catch(f){throw c(),f}let r=!1;return()=>{r||(r=!0,c(),this.kit.invoke("motion.stop").catch(f=>console.warn("[native-kit] motion.stop failed",f)))}}}class ub{constructor(i){this.kit=i}get capability(){return this.kit.capability("network")}status(){return this.kit.invoke("network.status")}onChange(i){return this.kit.on("network.change",c=>i(c))}}class sb{constructor(i){this.kit=i}get capability(){return this.kit.capability("notifications")}requestPermission(){return this.kit.invoke("notifications.requestPermission",void 0,{timeoutMs:6e4})}schedule(i){return this.kit.invoke("notifications.schedule",i)}pending(){return this.kit.invoke("notifications.pending")}setBadge(i){return this.kit.invoke("notifications.setBadge",{count:i})}clear(){return this.kit.invoke("notifications.clear")}}class rb{constructor(i){this.kit=i}get capability(){return this.kit.capability("photos")}get cameraCapability(){return this.kit.capability("camera")}pick(i){return this.kit.invoke("photos.pick",i,{timeoutMs:12e4})}capture(i){return this.kit.invoke("camera.capture",i,{timeoutMs:12e4})}}class cb{constructor(i){this.kit=i}get capability(){return this.kit.is.native?this.kit.capability("push"):"none"}requestPermission(){return this.kit.invoke("push.requestPermission",void 0,{timeoutMs:6e4})}register(){return this.kit.invoke("push.register",void 0,{timeoutMs:3e4})}unregister(){return this.kit.invoke("push.unregister")}onMessage(i){return this.kit.on("push.message",c=>i(c))}onTap(i){return this.kit.on("push.tap",c=>i(c))}}class ob{constructor(i){this.kit=i}get capability(){return this.kit.capability("reviews")}requestReview(){return this.kit.invoke("reviews.requestReview")}}class fb{constructor(i){this.orientation=new db(i)}}class db{constructor(i){this.kit=i}get capability(){return this.kit.capability("orientation")}lock(i){return this.kit.invoke("screen.orientation.lock",{orientation:i})}unlock(){return this.kit.invoke("screen.orientation.unlock")}current(){return this.kit.invoke("screen.orientation.current")}onChange(i){return this.kit.on("screen.orientation.change",c=>i(c))}}class hb{constructor(i){this.kit=i}get capability(){return this.kit.capability("share")}get filesCapability(){return this.kit.capability("shareFiles")}share(i){return this.kit.invoke("share.share",i)}files(i,c){return this.kit.invoke("share.files",{files:i,...c})}}class mb{constructor(i){this.kit=i}get capability(){return this.kit.capability("secureStorage")}get(i){return this.kit.invoke("storage.secure.get",{key:i})}set(i,c){return this.kit.invoke("storage.secure.set",{key:i,value:c})}remove(i){return this.kit.invoke("storage.secure.remove",{key:i})}}class pb{constructor(i){this.kit=i,this.secure=new mb(i)}get capability(){return this.kit.capability("storage")}get(i){return this.kit.invoke("storage.get",{key:i})}set(i,c){return this.kit.invoke("storage.set",{key:i,value:c})}remove(i){return this.kit.invoke("storage.remove",{key:i})}clear(){return this.kit.invoke("storage.clear")}}class gb{constructor(i){this.kit=i}get capability(){return this.kit.capability("toast")}show(i,c="short"){return this.kit.invoke("toast.show",{message:i,duration:c})}}function yb(s){const i=s.trim().replace("#",""),c=i.length===3?i.split("").map(g=>g+g).join(""):i;if(c.length<6)return!1;const r=parseInt(c.slice(0,2),16),f=parseInt(c.slice(2,4),16),d=parseInt(c.slice(4,6),16);return(.299*r+.587*f+.114*d)/255>.6}class vb{constructor(i){this.kit=i}get statusBarCapability(){return this.kit.capability("statusBar")}get screenCapability(){return this.kit.capability("screen")}get dialogsCapability(){return this.kit.capability("dialogs")}get themeColorCapability(){return this.kit.capability("themeColor")}setStatusBarStyle(i){return this.kit.invoke("ui.statusBar.setStyle",{style:i})}safeArea(){return this.kit.invoke("ui.safeArea")}getBrightness(){return this.kit.invoke("ui.brightness.get")}setBrightness(i){return this.kit.invoke("ui.brightness.set",{level:i})}keepAwake(i){return this.kit.invoke("ui.keepAwake",{on:i})}alert(i){return this.kit.invoke("ui.alert",i,{timeoutMs:12e4})}confirm(i){return this.kit.invoke("ui.confirm",i,{timeoutMs:12e4})}action(i){return this.kit.invoke("ui.action",i,{timeoutMs:12e4})}setBackgroundColor(i){return this.kit.invoke("ui.setBackgroundColor",{color:i})}syncThemeColor(){if(this.themeColorCapability!=="native")return()=>{};const i=()=>{const r=document.querySelector('meta[name="theme-color"]');r!=null&&r.content&&(this.setBackgroundColor(r.content).catch(f=>console.warn("[native-kit] setBackgroundColor failed",f)),this.setStatusBarStyle(yb(r.content)?"dark":"light").catch(()=>{}))};i();const c=new MutationObserver(i);return c.observe(document.head,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["content"]}),()=>c.disconnect()}}class bb{constructor(){this.adapters=[new Vv,new Qv],this.handshakeTimeoutMs=3e3}}class Sb{constructor(i){this.haptics=new ab(this),this.share=new hb(this),this.screen=new fb(this),this.storage=new pb(this),this.toast=new gb(this),this.ui=new vb(this),this.device=new tb(this),this.clipboard=new Fv(this),this.notifications=new sb(this),this.push=new cb(this),this.biometrics=new $v(this),this.geo=new eb(this),this.photos=new rb(this),this.network=new ub(this),this.lifecycle=new nb(this),this.reviews=new ob(this),this.motion=new ib(this),this.media=new lb(this),this.contacts=new Iv(this),this.calendar=new Wv(this),this.app=new Zv(this),this.browser=new Pv(this),this.billing=new Kv(this),this.handshakeInfo=null,this.adapter=null,this.readyPromise=null,this.options={...new bb,...i}}ready(){return this.readyPromise||(this.readyPromise=(async()=>{const i=this.options.adapters.find(r=>r.detect());if(!i)throw new St("NOT_READY","No adapter detected this environment");this.adapter=i;const c=await i.handshake(this.options.handshakeTimeoutMs);if(c.protocol!==nm)throw new St("UNSUPPORTED",`Shell protocol v${c.protocol} ≠ kit protocol v${nm} — the native wrapper is out of date. Re-run \`appwrap init\` to regenerate it.`);return this.handshakeInfo=c,this.handshakeInfo})()),this.readyPromise}get is(){var i,c;return{native:((i=this.adapter)==null?void 0:i.kind)==="appwrap",web:((c=this.adapter)==null?void 0:c.kind)==="web"}}get platform(){var i;return((i=this.handshakeInfo)==null?void 0:i.platform)??"web"}capability(i){var c;return((c=this.handshakeInfo)==null?void 0:c.capabilities[i])??"none"}async invoke(i,c,r){return this.adapter||await this.ready(),this.adapter.invoke(i,c,r)}on(i,c){if(!this.adapter){let r=null,f=!1;return this.ready().then(()=>{f||(r=this.adapter.on(i,c))}).catch(()=>{}),()=>{f=!0,r==null||r()}}return this.adapter.on(i,c)}}const wb=new Sb,Eb=Bu.forComponent("DeepLinks");function xb(s){try{const i=new URL(s);return i.protocol==="http:"||i.protocol==="https:"?`${i.pathname}${i.search}${i.hash}`||"/":`${i.hostname?`/${i.hostname}`:""}${i.pathname}${i.search}${i.hash}`||"/"}catch{return null}}function Ab(){const s=ol();E.useEffect(()=>wb.lifecycle.onDeepLink(c=>{const r=xb(c);Eb.info("deep link",c,"→",r),r&&s(r)}),[s])}/**
* @license lucide-react v0.577.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=(...s)=>s.filter((i,c,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===c).join(" ").trim();/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _b=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tb=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,c,r)=>r?r.toUpperCase():c.toLowerCase());/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lm=s=>{const i=Tb(s);return i.charAt(0).toUpperCase()+i.slice(1)};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Mb={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.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Db=s=>{for(const i in s)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rb=E.forwardRef(({color:s="currentColor",size:i=24,strokeWidth:c=2,absoluteStrokeWidth:r,className:f="",children:d,iconNode:g,...b},y)=>E.createElement("svg",{ref:y,...Mb,width:i,height:i,stroke:s,strokeWidth:r?Number(c)*24/Number(i):c,className:Bm("lucide",f),...!d&&!Db(b)&&{"aria-hidden":"true"},...b},[...g.map(([m,M])=>E.createElement(m,M)),...Array.isArray(d)?d:[d]]));/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Da=(s,i)=>{const c=E.forwardRef(({className:r,...f},d)=>E.createElement(Rb,{ref:d,iconNode:i,className:Bm(`lucide-${_b(lm(s))}`,`lucide-${s}`,r),...f}));return c.displayName=lm(s),c};/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cb=[["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"}]],im=Da("bell",Cb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zb=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],Ob=Da("brain",zb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ub=Da("chevron-down",Nb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kb=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],jb=Da("download",kb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lb=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Bb=Da("mail",Lb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hb=[["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"}]],qb=Da("refresh-cw",Hb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Vb=Da("shield",Yb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gb=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Xb=Da("smartphone",Gb);/**
* @license lucide-react v0.577.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hm=Da("x",Qb),Ie=Bu.forComponent("PWA");function sc(s){if(Um()){Ie.debug("Baked native bundle — skipping deploy watch (reload cannot pull a newer build)");return}let i="0.81.22";ea.on("_meta/buildId",c=>{const r=c.val(),f=r==null?void 0:r.version;!f||f===i||(Ie.info("Deploy detected:",i,"→",f,r==null?void 0:r.sha),i=f,window.dispatchEvent(new Event("sw-update-available")),s&&s.update().catch(()=>{}))})}async function Zb(){if(!("serviceWorker"in navigator))return sc(null),null;try{const s=await navigator.serviceWorker.register("/sw.js",{scope:"/",updateViaCache:"none"});sc(s),s.addEventListener("updatefound",()=>{const r=s.installing;r&&r.addEventListener("statechange",()=>{r.state==="installed"&&navigator.serviceWorker.controller&&(Ie.info("New version available"),window.dispatchEvent(new Event("sw-update-available")))})});const i=!!navigator.serviceWorker.controller;let c=!1;return navigator.serviceWorker.addEventListener("controllerchange",()=>{c||!i||(c=!0,window.location.reload())}),s}catch(s){return Ie.error("Registration failed:",s),sc(null),null}}function mc(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0}function Jb(){return"BJbImCE9AHcqUcia8T2874gKINQDB4aPyNZgAg0fEuS5GrAgCOIuYeGbLGI5aBhPKmuG64SHDW-XtBJXE7B2-Xw"}async function Kb(){return"Notification"in window?Notification.permission==="granted"?"granted":Notification.requestPermission():"denied"}async function $b(s){Ie.debug("subscribeToPush called, key:",(s==null?void 0:s.slice(0,20))+"...");const i=await navigator.serviceWorker.ready;if(!i.pushManager)return Ie.error("No pushManager on registration"),null;try{let c=await i.pushManager.getSubscription();if(Ie.debug("existing subscription:",c?"yes":"none"),!c){Ie.debug("creating new subscription...");const r=Pb(s);Ie.debug("appServerKey length:",r.length),c=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:r}),Ie.debug("subscribed! endpoint:",c.endpoint.slice(0,60))}return{endpoint:c.endpoint,keys:{p256dh:um(c.getKey("p256dh")),auth:um(c.getKey("auth"))}}}catch(c){return Ie.error("Push subscription failed:",c),null}}function Pb(s){const i="=".repeat((4-s.length%4)%4),c=(s+i).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(c),f=new Uint8Array(r.length);for(let d=0;d<r.length;++d)f[d]=r.charCodeAt(d);return f}function um(s){const i=new Uint8Array(s);let c="";for(let r=0;r<i.byteLength;r++)c+=String.fromCharCode(i[r]);return window.btoa(c)}function Wb(){const{user:s}=En(),[i,c]=E.useState(null),[r,f]=E.useState(!1);E.useEffect(()=>{if(!s||mc()||localStorage.getItem("pwa-install-dismissed")==="true"||!localStorage.getItem("para-has-returned"))return;const m=k=>{k.preventDefault(),c(k),f(!0)};window.addEventListener("beforeinstallprompt",m);const M=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent);let A;return M&&(A=setTimeout(()=>f(!0),5e3)),()=>{window.removeEventListener("beforeinstallprompt",m),clearTimeout(A)}},[s]);const d=async()=>{if(i)try{await i.prompt();const{outcome:m}=await i.userChoice;m==="accepted"&&f(!1),c(null)}catch{}},g=()=>{f(!1),localStorage.setItem("pwa-install-dismissed","true")};if(!s||!r||mc())return null;const b=/iPhone|iPad|iPod/i.test(navigator.userAgent),y=/Android/i.test(navigator.userAgent);return w.jsxs("div",{className:"fixed bottom-20 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:[w.jsx("button",{onClick:g,className:"absolute top-2 right-2 text-muted hover:text-text",children:w.jsx(Hm,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex items-start gap-3",children:[w.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:w.jsx(Xb,{className:"w-5 h-5 text-accent"})}),w.jsxs("div",{className:"flex-1 space-y-2",children:[w.jsx("h3",{className:"font-semibold text-micro",children:"Install Para"}),i?w.jsxs(w.Fragment,{children:[w.jsx("p",{className:"text-micro text-muted",children:"Add Para to your home screen for quick access."}),w.jsxs("button",{onClick:d,className:"w-full mt-2 flex items-center justify-center gap-2 px-3 py-2 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors",children:[w.jsx(jb,{className:"w-4 h-4"}),"Install App"]})]}):b?w.jsxs("div",{className:"text-micro text-muted space-y-1",children:[w.jsx("p",{children:"To install on iOS:"}),w.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[w.jsx("li",{children:"Tap the Share button"}),w.jsx("li",{children:'Tap "Add to Home Screen"'}),w.jsx("li",{children:'Tap "Add"'})]})]}):y?w.jsxs("div",{className:"text-micro text-muted space-y-1",children:[w.jsx("p",{children:"To install on Android:"}),w.jsxs("ol",{className:"list-decimal list-inside space-y-0.5 pl-1",children:[w.jsx("li",{children:"Tap the menu button (⋮)"}),w.jsx("li",{children:'Tap "Install app"'})]})]}):w.jsx("p",{className:"text-micro text-muted",children:"Visit on your mobile device to install."})]})]})]})}const tn=Bu.forComponent("PushPrompt");function Fb(){const{user:s}=En(),[i,c]=E.useState(!1),[r,f]=E.useState(!1);E.useEffect(()=>{if(!s||!mc()||localStorage.getItem("push-prompt-dismissed")==="true"||!("Notification"in window)||!("PushManager"in window))return;if(Notification.permission==="granted"){navigator.serviceWorker.ready.then(async y=>{await y.pushManager.getSubscription()||c(!0)});return}if(Notification.permission==="denied")return;const b=setTimeout(()=>c(!0),3e3);return()=>clearTimeout(b)},[s]);const d=async()=>{if(s){f(!0);try{tn.debug("requesting permission...");const b=await Kb();if(tn.debug("permission:",b),b!=="granted"){c(!1),localStorage.setItem("push-prompt-dismissed","true");return}const y=Jb();tn.debug("VAPID key:",y?y.slice(0,20)+"...":"NOT SET"),tn.debug("subscribing to push...");const m=await $b(y);if(tn.debug("subscription:",m?"ok":"null"),!m)return;tn.debug("saving subscription to DB..."),await ea.set(`users/${s.id}/pushSubscription`,m),tn.debug("done!"),c(!1)}catch(b){tn.error("failed:",b)}finally{f(!1)}}},g=()=>{c(!1),localStorage.setItem("push-prompt-dismissed","true")};return i?w.jsxs("div",{className:"fixed bottom-20 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:[w.jsx("button",{onClick:g,className:"absolute top-2 right-2 text-muted hover:text-text",children:w.jsx(Hm,{className:"w-4 h-4"})}),w.jsxs("div",{className:"flex items-start gap-3",children:[w.jsx("div",{className:"p-2 rounded-lg bg-accent/20",children:w.jsx(im,{className:"w-5 h-5 text-accent"})}),w.jsxs("div",{className:"flex-1 space-y-2",children:[w.jsx("h3",{className:"font-semibold text-micro",children:"Enable Notifications"}),w.jsx("p",{className:"text-micro text-muted",children:"Get notified when Para replies, even when the app is in the background."}),w.jsxs("button",{onClick:d,disabled:r,className:"w-full mt-2 flex items-center justify-center gap-2 px-3 py-2 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors disabled:opacity-50",children:[w.jsx(im,{className:"w-4 h-4"}),r?"Enabling...":"Enable Notifications"]})]})]})]}):null}function Ib(){const[s,i]=E.useState(!1);return E.useEffect(()=>{var r;const c=()=>i(!0);return window.addEventListener("sw-update-available",c),(r=navigator.serviceWorker)==null||r.getRegistration().then(f=>{f!=null&&f.waiting&&c()}),()=>window.removeEventListener("sw-update-available",c)},[]),s?w.jsx("div",{className:"fixed top-4 left-4 right-4 md:left-auto md:right-4 md:max-w-sm bg-surface/95 border border-border rounded-xl shadow-2xl p-4 backdrop-blur-sm z-50 animate-[slideUp_0.3s_ease-out]",children:w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx(qb,{className:"w-5 h-5 text-accent shrink-0"}),w.jsx("p",{className:"text-micro flex-1",children:"A new version is available."}),w.jsx("button",{onClick:async()=>{var r;const c=await((r=navigator.serviceWorker)==null?void 0:r.getRegistration());c!=null&&c.waiting?c.waiting.postMessage({type:"SKIP_WAITING"}):window.location.reload()},className:"px-3 py-1.5 text-micro font-medium rounded-lg bg-accent text-white hover:bg-accent-hover transition-colors shrink-0",children:"Reload"})]})}):null}const sm=[{id:"A",headline:"Give out an email that fights back",subtitle:"Agent proxy email for busy founders"},{id:"B",headline:"Your inbox has a bouncer now",subtitle:"An AI that screens, qualifies, and replies for you"},{id:"C",headline:"Cold outreach is AI now. Your reply should be too.",subtitle:"Put an AI between you and your inbox"},{id:"D",headline:"Your AI finally has an email address",subtitle:"you@para.li — people email it, your Para handles the rest"},{id:"E",headline:"Never give out your real email again",subtitle:"you@para.li screens strangers so your inbox stays clean"}],t1=["para","paraai","parali","para_ai","para_li","bod","bodee","bodify","system","official","verified","staff","team","moderator","mod","assistant","bot","ai","me","you","self","everyone","everybody","anyone","someone","nobody","anon","anonymous","guest","user"],e1=["_domainkey","about","aboutus","abuse","access","account","accounts","activate","activities","activity","add","address","adm","admin","administration","administrator","ads","adstxt","adult","advertise","advertising","aes128ctr","aes128gcm","aes192ctr","aes256ctr","aes256gcm","affiliate","affiliates","ajax","alert","alerts","all","alpha","amp","analysis","analytics","android","anon","anonymous","api","app","appadstxt","apps","archive","archives","article","asc","asct","asset","assets","atom","auth","authentication","authorize","autoconfig","autodiscover","avatar","backup","balancermanager","banner","banners","bbs","beta","billing","billings","bin","blog","blogs","board","book","bookmark","bookmarks","bot","bots","broadcasthost","bug","business","buy","cache","cadastro","calendar","call","campaign","cancel","captcha","career","careers","cart","cas","categories","category","cdn","cgi","cgibin","chacha20poly1305","change","changelog","channel","channels","chart","chat","check","checking","checkout","clear","client","cliente","clients","close","cloud","cms","code","codereview","com","comercial","comment","comments","communities","community","company","compare","compose","compras","config","configuration","connect","contact","contact_us","contactus","contest","contribute","cookies","copy","copyright","corp","count","cpanel","create","crossdomainxml","css","curve25519sha256","customer","customers","customize","dashboard","data","deals","debug","default","delete","demo","desc","design","designer","destroy","dev","devel","developer","developers","diagram","diary","dict","dictionary","die","dir","direct_messages","directory","disconnect","discuss","dist","dns","dns0","dns1","dns2","dns3","dns4","doc","docs","documentation","domain","download","downloads","downvote","draft","drop","ecdhsha2nistp256","ecdhsha2nistp384","ecdhsha2nistp521","ecommerce","edit","editor","edu","education","email","employment","empty","end","enterprise","entries","entry","error","errors","eval","event","events","everyone","example","exception","exit","explore","export","extensions","false","family","faq","faqs","faviconico","favorite","favorites","feature","features","feed","feedback","feeds","file","files","filter","first","flash","fleet","fleets","flog","follow","follower","followers","following","fonts","forgot","forgotpassword","form","forms","forum","forums","founder","free","friend","friends","ftp","gadget","gadgets","game","games","get","ghost","gift","gifts","gist","git","graph","graphql","group","groups","guest","guests","guidelines","guides","head","header","help","hide","hmacsha","hmacsha1","hmacsha1etm","hmacsha2256","hmacsha2256etm","hmacsha2512","hmacsha2512etm","home","homepage","host","hosting","hostmaster","hostname","howto","hpg","htaccess","html","htpasswd","http","httpd","https","humanstxt","iamges","icon","icons","idea","ideas","image","images","imap","img","import","index","indice","info","information","inquiry","insert","intranet","investors","invitations","invite","invites","invoice","ipad","iphone","irc","isatap","issue","issues","item","items","java","javascript","job","jobs","join","json","jump","keybasetxt","knowledgebase","language","languages","last","ldapstatus","learn","legal","license","licensing","like","limit","link","links","linux","list","lists","live","load","local","localdomain","localhost","lock","log","log_in","log_out","login","logout","logs","lostpassword","mac","mail","mail0","mail1","mail2","mail3","mail4","mail5","mail6","mail7","mail8","mail9","mailer","mailerdaemon","mailing","maintenance","manager","manual","map","maps","marketing","marketplace","master","media","member","members","message","messages","messenger","metrics","microblog","microblogs","mine","mis","mob","mobile","moderator","modify","more","movie","movies","mp3","msg","msn","music","musicas","mx1","mysql","name","named","nan","navi","navigation","net","network","new","news","newsletter","newsletters","next","nick","nickname","nil","nobody","noc","none","noreply","notes","noticias","notification","notifications","notify","ns0","ns1","ns10","ns2","ns3","ns4","ns5","ns6","ns7","ns8","ns9","null","oauth","oauth2","oauth_clients","offer","offers","official","old","online","openid","operator","order","orders","organization","organizations","overview","owa","owner","owners","page","pager","pages","panel","partners","passwd","password","pay","payment","payments","perl","phone","photo","photoalbum","photos","php","phpmyadmin","phppgadmin","phpredisadmin","pic","pics","ping","pixel","plan","plans","plugin","plugins","policies","policy","pop","pop3","popular","portal","portfolio","post","postfix","postmaster","posts","poweruser","preferences","premium","press","previous","price","pricing","print","privacy","privacy_policy","privacypolicy","private","prod","product","production","products","profile","profiles","project","projects","promo","pub","public","purchase","purpose","put","python","query","quota","random","ranking","read","readme","recent","recruit","recruitment","redirect","reduce","refund","refunds","register","registration","release","remove","replies","reply","report","reports","repositories","repository","req","request","requestpassword","requests","reset","resetpassword","response","return","returns","review","reviews","robotstxt","roc","root","rootuser","rsasha22","rsasha2512","rss","ruby","rule","rules","sag","sale","sales","sample","samples","save","school","script","scripts","sdk","search","secure","security","select","self","send","server","serverinfo","serverstatus","service","services","session","sessions","setting","settings","setup","share","shift","shop","show","sign_in","sign_up","signin","signout","signup","site","sitemap","sites","smartphone","smtp","soporte","sort","source","spec","special","sql","src","ssh","sshrsa","ssl","ssladmin","ssladministrator","sslwebmaster","staff","stage","staging","start","stat","state","static","statistics","stats","status","store","stores","stories","style","styleguide","styles","stylesheet","stylesheets","subdomain","subscribe","subscriptions","sudo","super","superuser","suporte","support","survey","svn","swf","sync","sys","sysadmin","sysadministrator","system","tablet","tablets","tag","tags","talk","task","tasks","team","teams","tech","telnet","term","terms","terms_of_service","termsofservice","termsofuse","test","test1","test2","test3","teste","testimonials","testing","tests","theme","themes","thread","threads","tmp","today","todo","tool","tools","top","topic","topics","tos","tour","training","translate","translations","trending","trends","trial","true","tutorial","tux","umac128","umac128etm","umac64","umac64etm","undef","undefined","unfollow","unlike","unsubscribe","update","upgrade","upload","uploads","url","usage","usenet","user","username","users","usuario","uucp","var","vendas","ver","verify","version","video","videos","view","visitor","void","vote","vpn","watch","weather","web","webhook","webhooks","webmail","webmaster","website","websites","welcome","wellknown","widget","widgets","wiki","win","windows","word","work","works","workshop","wpad","write","wws","www","www1","www2","www3","www4","www5","www6","www7","wwwdata","wwws","wwww","xfn","xml","xmpp","xpg","xxx","yaml","year","yml","you","yourdomain","yourname","yoursite","yourusername","zlib0"],a1=["google","apple","microsoft","amazon","meta","facebook","instagram","whatsapp","messenger","threads","tiktok","twitter","youtube","snapchat","pinterest","reddit","discord","slack","zoom","linkedin","github","gitlab","bitbucket","dropbox","notion","figma","adobe","atlassian","jira","confluence","salesforce","oracle","ibm","intel","nvidia","amd","cisco","samsung","sony","lg","huawei","xiaomi","netflix","spotify","hulu","disney","disneyplus","hbo","hbomax","primevideo","twitch","vimeo","openai","chatgpt","anthropic","claude","gemini","bard","copilot","perplexity","mistral","deepmind","xai","grok","midjourney","stability","runway","huggingface","paypal","venmo","cashapp","stripe","square","wise","revolut","robinhood","coinbase","binance","kraken","bitcoin","ethereum","solana","tether","usdc","metamask","ledger","visa","mastercard","amex","americanexpress","chase","citibank","bankofamerica","wellsfargo","goldmansachs","jpmorgan","ebay","etsy","walmart","target","costco","bestbuy","ikea","homedepot","shopify","alibaba","aliexpress","wish","temu","shein","nike","adidas","puma","reebok","underarmour","lululemon","zara","hm","uniqlo","gucci","prada","louisvuitton","chanel","hermes","rolex","cocacola","pepsi","nestle","starbucks","mcdonalds","burgerking","kfc","subway","dominos","pizzahut","chipotle","tacobell","wendys","dunkin","redbull","heineken","budweiser","guinness","uber","lyft","doordash","grubhub","instacart","airbnb","booking","expedia","tripadvisor","kayak","tesla","spacex","boeing","airbus","toyota","ford","gm","chevrolet","bmw","mercedes","mercedesbenz","audi","volkswagen","porsche","honda","hyundai","kia","nissan","volvo","ferrari","lamborghini","verizon","att","tmobile","sprint","comcast","xfinity","spectrum","vodafone","orange","telefonica","cnn","bbc","nytimes","washingtonpost","wsj","reuters","ap","bloomberg","forbes","fortune","economist","wired","techcrunch","verge","arstechnica","engadget","foxnews","msnbc","aljazeera","gov","whitehouse","congress","senate","fbi","cia","nsa","dod","irs","usps","nasa","noaa","cdc","nih","fda","epa","sec","doj","dhs","ice","tsa","un","nato","who","imf","worldbank","europa","harvard","mit","stanford","yale","princeton","oxford","cambridge","berkeley","cmu","caltech","stackoverflow","npm","pypi","dockerhub","cloudflare","akamai","fastly","digitalocean","linode","heroku","vercel","netlify","render","fly","supabase","firebase","aws","gcp","azure"],n1=["afghanistan","albania","algeria","americansamoa","andorra","angola","anguilla","antarctica","antiguaandbarbuda","argentina","armenia","aruba","australia","austria","azerbaijan","bahamas","bahrain","bangladesh","barbados","belarus","belgium","belize","benin","bermuda","bhutan","bolivia","bosniaandherzegovina","botswana","bouvetisland","brazil","britishvirginislands","brunei","bulgaria","burkinafaso","burundi","cambodia","cameroon","canada","capeverde","caribbeannetherlands","caymanislands","chad","chile","china","christmasisland","cocoskeelingislands","colombia","comoros","cookislands","costarica","croatia","cuba","curaao","cyprus","czechia","czechrepublic","denmark","djibouti","dominica","dominicanrepublic","drcongo","ecuador","egypt","elsalvador","england","equatorialguinea","eritrea","estonia","eswatini","ethiopia","falklandislands","faroeislands","fiji","finland","france","frenchguiana","frenchpolynesia","gabon","gambia","georgia","germany","ghana","gibraltar","greatbritain","greece","greenland","grenada","guadeloupe","guam","guatemala","guernsey","guinea","guineabissau","guyana","haiti","holland","honduras","hongkong","hungary","iceland","india","indonesia","iran","iraq","ireland","isleofman","israel","italy","ivorycoast","jamaica","japan","jersey","jordan","kazakhstan","kenya","kiribati","kosovo","kuwait","kyrgyzstan","landislands","laos","latvia","lebanon","lesotho","liberia","libya","liechtenstein","lithuania","luxembourg","macau","macedonia","madagascar","malawi","malaysia","maldives","mali","malta","marshallislands","martinique","mauritania","mauritius","mayotte","mexico","micronesia","moldova","monaco","mongolia","montenegro","montserrat","morocco","mozambique","myanmar","namibia","nauru","nepal","netherlands","newcaledonia","newzealand","nicaragua","niger","nigeria","niue","norfolkisland","northernireland","northkorea","northmacedonia","norway","oman","pakistan","palau","palestine","panama","papuanewguinea","paraguay","peru","philippines","pitcairnislands","poland","portugal","puertorico","qatar","republicofthecongo","romania","runion","russia","rwanda","saintbarthlemy","saintkittsandnevis","saintlucia","saintmartin","samoa","sanmarino","saudiarabia","scotland","senegal","serbia","seychelles","sierraleone","singapore","sintmaarten","slovakia","slovenia","solomonislands","somalia","sotomandprncipe","southafrica","southgeorgia","southkorea","southsudan","spain","srilanka","sudan","suriname","svalbardandjanmayen","sweden","switzerland","syria","taiwan","tajikistan","tanzania","thailand","timorleste","togo","tokelau","tonga","trinidadandtobago","tunisia","turkey","turkiye","turkmenistan","tuvalu","uganda","ukraine","unitedarabemirates","unitedkingdom","unitedstates","uruguay","uzbekistan","vanuatu","vaticancity","venezuela","vietnam","wales","wallisandfutuna","westernsahara","yemen","zambia","zimbabwe","usa","u_s_a","u_s","america","uk","u_k","britain","uae","u_a_e","ussr","eu","nato","asean","european_union","statesofamerica"],l1=["liv","livshitz","elya"],i1=new Set([...t1,...e1,...a1,...n1,...l1]);function u1(s){return s.toLowerCase().replace(/\./g,"")}function s1(s){return i1.has(u1(s))}function r1({variant:s,ctaLabel:i="Claim your handle"}){const c=ol(),[r,f]=E.useState(""),[d,g]=E.useState(""),[b,y]=E.useState("idle"),[m,M]=E.useState(""),[A,k]=E.useState(!1),$=E.useRef(null),J=E.useRef({handle:!1,email:!1}),X=E.useCallback(N=>{J.current[N]||(J.current[N]=!0,pt.event(`lp_${N}_focus`,{variant:s}))},[s]),L=N=>{const p=N.toLowerCase().replace(/[^a-z0-9_.]/g,"");f(p);const K=p.replace(/\./g,"");if($.current&&clearTimeout($.current),!K){y("idle");return}if(!/^[a-z0-9_]{3,20}$/.test(K)){y("invalid");return}if(s1(K)){y("reserved");return}y("checking"),$.current=setTimeout(async()=>{try{const tt=await ea.get(`_handle_avail/${K}`)?"taken":"available";tt==="taken"&&pt.event("lp_handle_taken",{handle:K,variant:s}),y(tt)}catch{y("available")}},400)},O=async N=>{if(N.preventDefault(),!(b!=="available"||!d)){M(""),k(!0),pt.event("lp_claim_attempt",{handle:r,variant:s}),pt.metric("lp_claim_attempt",1,{variant:s});try{pt.leads.collect({email:d,name:r,source:`lp-${s}`,meta:{handle:r,variant:s}}).catch(()=>{});const p=r.replace(/\./g,""),K=`claim_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,6)}`;await ea.set(`_handle_claims/${K}`,{handle:p,email:d,variant:s,ts:Date.now()}),c(`/claiming/${p}?claim=${K}`)}catch(p){pt.event("lp_claim_error",{handle:r,variant:s,error:p.message}),M(p.message??"Failed to claim handle")}finally{k(!1)}}};return w.jsxs("form",{onSubmit:O,className:"space-y-4",children:[w.jsxs("div",{children:[w.jsxs("div",{className:"flex items-center bg-bg border border-border rounded-lg overflow-hidden focus-within:border-accent",children:[w.jsx("input",{type:"text",placeholder:"yourname",value:r,onChange:N=>L(N.target.value),onFocus:()=>X("handle"),maxLength:20,autoFocus:!0,className:"flex-1 px-3 py-3 bg-transparent text-text text-body text-right focus:outline-none"}),w.jsx("span",{className:"pr-3 text-muted text-body",children:"@para.li"})]}),w.jsxs("div",{className:"h-5 mt-1 text-micro text-left pl-1",children:[b==="checking"&&w.jsx("span",{className:"text-muted",children:"Checking..."}),b==="available"&&w.jsxs("span",{className:"text-green-400",children:["@",r," is yours"]}),b==="taken"&&w.jsxs("span",{className:"text-danger",children:["@",r," is taken"]}),b==="reserved"&&w.jsxs("span",{className:"text-danger",children:["@",r," is reserved"]}),b==="invalid"&&r&&w.jsx("span",{className:"text-danger",children:"3-20 chars: letters, numbers, underscore"})]})]}),w.jsx("input",{type:"email",inputMode:"email",placeholder:"Your email",value:d,onChange:N=>g(N.target.value),onFocus:()=>X("email"),required:!0,autoComplete:"email",className:"w-full px-3 py-3 bg-bg border border-border rounded-lg text-text text-body focus:outline-none focus:border-accent"}),w.jsx("button",{type:"submit",disabled:b!=="available"||!d||A,className:"w-full py-3 bg-accent hover:bg-accent-hover text-bg font-semibold rounded-lg text-body transition-colors disabled:opacity-40",children:A?"Claiming...":i}),m&&w.jsx("p",{className:"text-danger text-micro text-center",children:m})]})}function c1(){const s=Lm("lp-variant"),i=(s==null?void 0:s.toUpperCase())??"A",c=sm.find(r=>r.id===i)??sm[0];return E.useEffect(()=>{pt.event("lp_view",{variant:c.id}),pt.metric("lp_load_ms",performance.now(),{unit:"ms",variant:c.id})},[c.id]),w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"relative min-h-screen flex items-center justify-center px-4",children:[w.jsxs("div",{className:"relative z-10 text-center space-y-8 w-full max-w-md",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsx("h1",{className:"text-hero font-bold text-text tracking-tight text-balance",children:c.headline}),w.jsx("p",{className:"text-body text-muted",children:c.subtitle})]}),w.jsx(r1,{variant:c.id})]}),w.jsx(Tc,{to:"/chat-auth",onClick:()=>pt.event("lp_signin_click",{variant:c.id}),className:"absolute bottom-14 left-1/2 -translate-x-1/2 text-micro text-muted hover:text-text no-underline",children:"Already have an account? Sign in"}),w.jsx("button",{onClick:()=>{var r;pt.event("lp_scroll_how",{variant:c.id}),(r=document.getElementById("how-it-works"))==null||r.scrollIntoView({behavior:"smooth"})},className:"absolute bottom-4 left-1/2 -translate-x-1/2 text-muted/50 hover:text-muted animate-bounce","aria-label":"Scroll down",children:w.jsx(Ub,{size:20})}),!1]}),w.jsx("section",{id:"how-it-works",className:"relative py-24 px-4 bg-surface/80 backdrop-blur-sm border-t border-border",children:w.jsxs("div",{className:"max-w-3xl mx-auto",children:[w.jsx("p",{className:"text-micro font-medium text-accent text-center tracking-widest uppercase mb-3",children:"How it works"}),w.jsx("h2",{className:"text-title font-bold text-text text-center mb-16",children:"Three steps. No setup."}),w.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-10 sm:gap-6",children:o1.map((r,f)=>w.jsxs("div",{className:"relative bg-bg rounded-xl border border-border p-6 text-center space-y-4",children:[w.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 w-7 h-7 rounded-full bg-accent text-bg text-micro font-bold flex items-center justify-center",children:f+1}),w.jsx("div",{className:"w-12 h-12 mx-auto rounded-lg bg-accent/10 flex items-center justify-center mt-2",children:w.jsx(r.icon,{size:24,className:"text-accent"})}),w.jsx("h3",{className:"text-body font-semibold text-text",children:r.title}),w.jsx("p",{className:"text-body text-text-secondary",children:r.desc})]},r.title))})]})})]})}const o1=[{icon:Bb,title:"Claim your handle",desc:"Pick your @para.li email. It's yours — forever."},{icon:Ob,title:"Your AI learns your style",desc:"Reply once and your Para picks up your tone, priorities, and boundaries."},{icon:Vb,title:"It handles the rest",desc:"Para screens strangers, replies on your behalf, and only pings you when it matters."}],f1=Rt(()=>Dt(()=>import("./Auth-DBVEKWIz.js"),__vite__mapDeps([0,1])).then(s=>({default:s.ChatAuthPage}))),d1=Rt(()=>Dt(()=>import("./Onboard-BZ8fFrgb.js"),__vite__mapDeps([2,0,1,3,4,5])).then(s=>({default:s.OnboardPage}))),h1=Rt(()=>Dt(()=>import("./Creating-D_bYBjGc.js"),[]).then(s=>({default:s.CreatingPage}))),m1=Rt(()=>Dt(()=>import("./MainLayout-DhuCSS-i.js"),__vite__mapDeps([6,7,8,9,10])).then(s=>({default:s.MainLayout}))),p1=Rt(()=>Dt(()=>import("./ChatList-DoeoDP9Y.js"),__vite__mapDeps([11,7,8,12])).then(s=>({default:s.ChatList}))),g1=Rt(()=>Dt(()=>import("./ChatView-Yl7-eIuk.js"),__vite__mapDeps([13,14,7,15,16,17,18,1,19,20,21])).then(s=>({default:s.ChatView}))),y1=Rt(()=>Dt(()=>import("./Discover-9qW_1Xi_.js"),__vite__mapDeps([22,23,18,12,24,8,19])).then(s=>({default:s.DiscoverView}))),v1=Rt(()=>Dt(()=>import("./Inbox-d8tMrsir.js"),__vite__mapDeps([25,16,17,9,26])).then(s=>({default:s.InboxListView}))),b1=Rt(()=>Dt(()=>import("./InboxDetail-DRS-rDxV.js"),__vite__mapDeps([27,16,17,1,26,5,28,19,21,20])).then(s=>({default:s.InboxDetailView}))),S1=Rt(()=>Dt(()=>import("./TopicDetail-BTlASBVJ.js"),__vite__mapDeps([29,23,15,4,24])).then(s=>({default:s.TopicDetailView}))),w1=Rt(()=>Dt(()=>import("./Notifications-C_24_0Nh.js"),__vite__mapDeps([30,15,24,8])).then(s=>({default:s.NotificationsView}))),E1=Rt(()=>Dt(()=>import("./Settings-DBbF8ZVt.js"),__vite__mapDeps([31,32,7,18])).then(s=>({default:s.SettingsView}))),x1=Rt(()=>Dt(()=>import("./NotificationTest-BkEWVujq.js"),__vite__mapDeps([33,1,21,19,28])).then(s=>({default:s.NotificationTestPage}))),A1=Rt(()=>Dt(()=>import("./Share-DZacasDd.js"),[]).then(s=>({default:s.SharePage}))),_1=Rt(()=>Dt(()=>import("./Claiming-CGFoAWEn.js"),__vite__mapDeps([34,17])).then(s=>({default:s.ClaimingPage}))),T1=Rt(()=>Dt(()=>import("./Signin-CqQpiUtx.js"),__vite__mapDeps([35,17])).then(s=>({default:s.SigninPage}))),M1=Rt(()=>Dt(()=>import("./Demo-BD2x3E7I.js"),__vite__mapDeps([36,37,38,39,19,40,32])).then(s=>({default:s.DemoPage}))),D1=Rt(()=>Dt(()=>import("./DemoOnboarding-BadQBgOH.js"),__vite__mapDeps([41,38,39,19,1,42])).then(s=>({default:s.DemoOnboardingPage}))),R1=Rt(()=>Dt(()=>import("./JobChannel-CVhdwQ4_.js"),__vite__mapDeps([43,44,45,7,15,14,1,3,8,21,46,47,48])).then(s=>({default:s.JobChannel}))),C1=Rt(()=>Dt(()=>import("./JobChannel-CVhdwQ4_.js"),__vite__mapDeps([43,44,45,7,15,14,1,3,8,21,46,47,48])).then(s=>({default:s.JobLauncher}))),z1=Rt(()=>Dt(()=>import("./AdminTrace-DR4qHMKb.js"),__vite__mapDeps([49,8,1,5])).then(s=>({default:s.AdminTraceView}))),O1=Rt(()=>Dt(()=>import("./AdminReports-BRjRmUie.js"),__vite__mapDeps([50,10])).then(s=>({default:s.AdminReportsView}))),N1=Rt(()=>Dt(()=>import("./InChatFunnel-jNPX-BV_.js"),__vite__mapDeps([51,37,38,39,19,52,44,45,7,15,14,1,3,8,21,46,53,32,40,47,48])).then(s=>({default:s.InChatFunnelPage}))),U1=Rt(()=>Dt(()=>import("./ConversationChannel-DiN3BLo6.js"),__vite__mapDeps([45,7,15,44,14,1,3,8,21])).then(s=>({default:s.ConversationChannel}))),k1=Rt(()=>Dt(()=>import("./Baby-D4M7c65e.js"),__vite__mapDeps([54,48])).then(s=>({default:s.BabyPage}))),j1=Rt(()=>Dt(()=>import("./BabyIntake-BX6-2A4S.js"),__vite__mapDeps([55,37,38,39,19,52,44,53,32,40,47,48])).then(s=>({default:s.BabyIntakePage}))),L1=Rt(()=>Dt(()=>import("./BabyQuiz-sia1YjYR.js"),__vite__mapDeps([56,38,52,44,47,32,40,48])).then(s=>({default:s.BabyQuizPage}))),B1=Rt(()=>Dt(()=>import("./Legal-BSGLDS5o.js"),[]).then(s=>({default:s.PrivacyPage}))),H1=Rt(()=>Dt(()=>import("./Legal-BSGLDS5o.js"),[]).then(s=>({default:s.TermsPage}))),q1=Rt(()=>Dt(()=>import("./Legal-BSGLDS5o.js"),[]).then(s=>({default:s.DataDeletionPage})));function Y1(){const{conversationId:s}=ly(),{user:i}=En(),c=ol();return s!=null&&s.startsWith("conv_sleep_")?Dc()?w.jsx(wn,{to:"/chat",replace:!0}):w.jsx(R1,{convId:s}):i&&(s!=null&&s.startsWith(`conv_${i.id}_`))&&!s.slice(`conv_${i.id}_`.length).includes("_")?w.jsx(V1,{convId:s,onBack:()=>c("/chat")}):w.jsx(g1,{})}function V1({convId:s,onBack:i}){var d;const{user:c}=En(),{data:r}=Sv(ea,c?`users/${c.id}/profile`:""),f=(d=r==null?void 0:r.name)==null?void 0:d.trim();return w.jsx(U1,{convId:s,title:"Para",subtitle:"your Para",ownerName:f||"Your",openSubtitle:f?`${f}'s Para`:"Your Para",enableVoice:!0,onBack:i})}function rc({children:s}){const{user:i,pendingVerification:c,loading:r}=En();return r?w.jsx(Rc,{}):c||!i?w.jsx(wn,{to:"/chat-auth",replace:!0}):w.jsx(w.Fragment,{children:s})}function cc({children:s}){return Lm("sleep-consumer-funnel")===!1?w.jsx(wn,{to:"/",replace:!0}):w.jsx(w.Fragment,{children:s})}function ui({children:s}){return Dc()?w.jsx(wn,{to:"/",replace:!0}):w.jsx(w.Fragment,{children:s})}function Rc(){return w.jsxs("div",{id:"boot-splash",children:[w.jsx("div",{className:"bs-brand",children:"Para"}),w.jsx("div",{className:"bs-spin"})]})}function G1(){const{loading:s}=En();return E.useEffect(()=>{s||hv()},[s]),null}function X1(){const{user:s,loading:i}=En();return i?w.jsx(Rc,{}):s?w.jsx(wn,{to:"/chat",replace:!0}):Dc()?w.jsx(wn,{to:"/chat-auth",replace:!0}):w.jsx(c1,{})}function Q1(){return Ab(),w.jsxs(w.Fragment,{children:[w.jsx(Ib,{}),w.jsx(Wb,{}),w.jsx(Fb,{}),w.jsx(wv,{children:w.jsxs(E.Suspense,{fallback:w.jsx(Rc,{}),children:[w.jsxs(Sy,{children:[w.jsxs(Tt,{element:w.jsx(Yv,{}),children:[w.jsx(Tt,{index:!0,element:w.jsx(X1,{})}),w.jsx(Tt,{path:"/claiming/:handle",element:w.jsx(_1,{})}),w.jsx(Tt,{path:"/signin",element:w.jsx(T1,{})}),w.jsx(Tt,{path:"/chat-auth",element:w.jsx(f1,{})}),w.jsx(Tt,{path:"/onboard",element:w.jsx(d1,{})}),w.jsx(Tt,{path:"/chat/:handle/:jobId",element:w.jsx(ui,{children:w.jsx(N1,{})})}),w.jsx(Tt,{path:"/baby",element:w.jsx(ui,{children:w.jsx(cc,{children:w.jsx(k1,{})})})}),w.jsx(Tt,{path:"/baby/intake",element:w.jsx(ui,{children:w.jsx(cc,{children:w.jsx(j1,{})})})}),w.jsx(Tt,{path:"/baby/quiz",element:w.jsx(ui,{children:w.jsx(cc,{children:w.jsx(L1,{})})})}),w.jsx(Tt,{path:"/privacy",element:w.jsx(B1,{})}),w.jsx(Tt,{path:"/terms",element:w.jsx(H1,{})}),w.jsx(Tt,{path:"/data-deletion",element:w.jsx(q1,{})})]}),w.jsx(Tt,{path:"/share",element:w.jsx(rc,{children:w.jsx(A1,{})})}),w.jsx(Tt,{path:"/onboard/creating",element:w.jsx(rc,{children:w.jsx(h1,{})})}),w.jsxs(Tt,{element:w.jsx(rc,{children:w.jsx(m1,{})}),children:[w.jsx(Tt,{path:"/chat",element:w.jsx(p1,{})}),w.jsx(Tt,{path:"/chat/:conversationId",element:w.jsx(Y1,{})}),w.jsx(Tt,{path:"/job/:jobId",element:w.jsx(ui,{children:w.jsx(C1,{})})}),w.jsx(Tt,{path:"/discover",element:w.jsx(y1,{})}),w.jsx(Tt,{path:"/inbox",element:w.jsx(v1,{})}),w.jsx(Tt,{path:"/inbox/:emailId",element:w.jsx(b1,{})}),w.jsx(Tt,{path:"/t/:topic",element:w.jsx(S1,{})}),w.jsx(Tt,{path:"/notifications",element:w.jsx(w1,{})}),w.jsx(Tt,{path:"/settings",element:w.jsx(E1,{})}),w.jsx(Tt,{path:"/settings/notifications",element:w.jsx(x1,{})}),w.jsx(Tt,{path:"/admin/trace",element:w.jsx(z1,{})}),w.jsx(Tt,{path:"/admin/reports",element:w.jsx(O1,{})})]}),w.jsx(Tt,{path:"/demo-chat-kit",element:w.jsx(M1,{})}),w.jsx(Tt,{path:"/demo-onboarding",element:w.jsx(D1,{})}),w.jsx(Tt,{path:"*",element:w.jsx(wn,{to:"/",replace:!0})})]}),w.jsx(G1,{})]})})]})}const pc="para_attribution",Z1=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","ref","fbclid","ttclid","gclid"];function a2(){try{const s=localStorage.getItem(pc);if(s){const r=JSON.parse(s);return rm(r),r}const i=new URLSearchParams(window.location.search),c={};for(const r of Z1){const f=i.get(r);f&&(c[r]=f.slice(0,120))}return c.landing=window.location.pathname,c.landed_at=Date.now(),localStorage.setItem(pc,JSON.stringify(c)),rm(c),c}catch{return{}}}function rm(s){try{pt.analytics.register(s)}catch{}}function J1(){try{const s=localStorage.getItem(pc);if(s)return JSON.parse(s)}catch{}return{}}let gc="init",cm=!1;const om=new Set;function n2(s){gc=s}function l2(s,i={}){si(s,{kind:"stall",...i})}function K1(){try{if(window.matchMedia("(pointer: coarse)").matches||navigator.maxTouchPoints>0)return"mobile"}catch{}return"desktop"}function fm(s){var i;if(s instanceof Error){const c=(i=s.stack)==null?void 0:i.split(`
`).map(r=>r.trim()).find(r=>r.startsWith("at "));return{name:s.name,message:s.message||s.name||"Error",frame:c==null?void 0:c.slice(0,160)}}if(typeof s=="string")return{message:s};if(s&&typeof s=="object"){const c=s,r=typeof c.message=="string"?c.message:(()=>{try{return JSON.stringify(c).slice(0,200)}catch{return String(s)}})();return{name:typeof c.name=="string"?c.name:void 0,message:r}}return{message:String(s)}}function si(s,i={}){try{const c=window.location.pathname,r=`${c}|${gc}|${i.name??""}|${s}|${i.at??""}`.slice(0,240);if(om.has(r))return;om.add(r),pt.event("client_error",{msg:String(s).slice(0,300),route:c,step:gc,device:K1(),...i,...J1()})}catch{}}function $1(){cm||typeof window>"u"||(cm=!0,window.addEventListener("error",s=>{var r;if(!s.error&&s.target&&s.target!==window){const f=s.target,d=f.src||f.href||"";if(d){si(`resource load failed: ${d}`.slice(0,200),{kind:"resource",name:(r=f.tagName)==null?void 0:r.toLowerCase(),src:d.slice(0,160)});return}}if(!s.error&&(!s.message||s.message==="Script error.")){si("Script error (cross-origin — detail blocked; add crossorigin+CORS to see it)",{kind:"cross-origin",src:(s.filename||"").slice(0,160)});return}const i=fm(s.error??s.message),c=s.filename?`${s.filename.split("/").pop()}:${s.lineno??0}:${s.colno??0}`:void 0;si(i.message,{kind:"error",name:i.name,at:c,frame:i.frame,src:(s.filename||"").slice(0,160)})},!0),window.addEventListener("unhandledrejection",s=>{const i=s.reason;if((i==null?void 0:i.name)==="AbortError")return;const c=fm(i);si(c.message,{kind:"rejection",name:c.name,frame:c.frame})}))}$1();window.addEventListener("vite:preloadError",s=>{const i="chunk-reload-at";let c=0;try{c=Number(sessionStorage.getItem(i)??0)}catch{}if(!(Date.now()-c<3e4)){s.preventDefault();try{sessionStorage.setItem(i,String(Date.now()))}catch{}window.location.reload()}});Zb();"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",s=>{var i,c;((i=s.data)==null?void 0:i.type)==="NAVIGATE"&&s.data.url&&(window.location.href=s.data.url),((c=s.data)==null?void 0:c.type)==="MARK_READ"&&s.data.nid&&Dt(async()=>{const{client:r}=await Promise.resolve().then(()=>ov);return{client:r}},void 0).then(({client:r})=>{const f=localStorage.getItem("bodify_auth_token");if(f)try{const g=JSON.parse(atob(f.split(".")[1])).sub;if(!g)return;r.get(`users/${g}/notifications/${s.data.nid}`).then(b=>{b&&!b.read&&r.set(`users/${g}/notifications/${s.data.nid}`,{...b,read:!0})})}catch{}})});vg.createRoot(document.getElementById("root")).render(w.jsx(E.StrictMode,{children:w.jsx(Qy,{children:w.jsx(yv,{children:w.jsx(mv,{children:w.jsx(Q1,{})})})})}));export{l2 as A,pt as B,Ub as C,F1 as D,Tc as L,Bb as M,wn as N,vy as O,qb as R,Xb as S,Hm as X,Dt as _,ol as a,e2 as b,Da as c,ea as d,Lm as e,Sv as f,t2 as g,I1 as h,Dc as i,w as j,im as k,Zy as l,Bu as m,ly as n,W1 as o,vv as p,wb as q,E as r,mc as s,$b as t,En as u,Jb as v,J1 as w,a2 as x,pg as y,n2 as z};