const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DAspQu9G.js","./index-CNHTL47a.js"])))=>i.map(i=>d[i]);
(function(){const v=document.createElement("link").relList;if(v&&v.supports&&v.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))s(j);new MutationObserver(j=>{for(const O of j)if(O.type==="childList")for(const U of O.addedNodes)U.tagName==="LINK"&&U.rel==="modulepreload"&&s(U)}).observe(document,{childList:!0,subtree:!0});function m(j){const O={};return j.integrity&&(O.integrity=j.integrity),j.referrerPolicy&&(O.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?O.credentials="include":j.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function s(j){if(j.ep)return;j.ep=!0;const O=m(j);fetch(j.href,O)}})();function Pd(f){return f&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f}var xf={exports:{}},ju={};/**
 * @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 Yd;function Nv(){if(Yd)return ju;Yd=1;var f=Symbol.for("react.transitional.element"),v=Symbol.for("react.fragment");function m(s,j,O){var U=null;if(O!==void 0&&(U=""+O),j.key!==void 0&&(U=""+j.key),"key"in j){O={};for(var $ in j)$!=="key"&&(O[$]=j[$])}else O=j;return j=O.ref,{$$typeof:f,type:s,key:U,ref:j!==void 0?j:null,props:O}}return ju.Fragment=v,ju.jsx=m,ju.jsxs=m,ju}var Gd;function Cv(){return Gd||(Gd=1,xf.exports=Nv()),xf.exports}var o=Cv(),_f={exports:{}},V={};/**
 * @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 Xd;function Uv(){if(Xd)return V;Xd=1;var f=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),U=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),L=Symbol.iterator;function jl(h){return h===null||typeof h!="object"?null:(h=L&&h[L]||h["@@iterator"],typeof h=="function"?h:null)}var hl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gl=Object.assign,ql={};function wl(h,_,C){this.props=h,this.context=_,this.refs=ql,this.updater=C||hl}wl.prototype.isReactComponent={},wl.prototype.setState=function(h,_){if(typeof h!="object"&&typeof h!="function"&&h!=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,h,_,"setState")},wl.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function Ut(){}Ut.prototype=wl.prototype;function El(h,_,C){this.props=h,this.context=_,this.refs=ql,this.updater=C||hl}var $l=El.prototype=new Ut;$l.constructor=El,gl($l,wl.prototype),$l.isPureReactComponent=!0;var Y=Array.isArray;function bl(){}var W={H:null,A:null,T:null,S:null},Kl=Object.prototype.hasOwnProperty;function nt(h,_,C){var H=C.ref;return{$$typeof:f,type:h,key:_,ref:H!==void 0?H:null,props:C}}function zl(h,_){return nt(h.type,_,h.props)}function Yl(h){return typeof h=="object"&&h!==null&&h.$$typeof===f}function Rl(h){var _={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(C){return _[C]})}var Oe=/\/+/g;function Yt(h,_){return typeof h=="object"&&h!==null&&h.key!=null?Rl(""+h.key):_.toString(36)}function jt(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(bl,bl):(h.status="pending",h.then(function(_){h.status==="pending"&&(h.status="fulfilled",h.value=_)},function(_){h.status==="pending"&&(h.status="rejected",h.reason=_)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function T(h,_,C,H,w){var k=typeof h;(k==="undefined"||k==="boolean")&&(h=null);var nl=!1;if(h===null)nl=!0;else switch(k){case"bigint":case"string":case"number":nl=!0;break;case"object":switch(h.$$typeof){case f:case v:nl=!0;break;case X:return nl=h._init,T(nl(h._payload),_,C,H,w)}}if(nl)return w=w(h),nl=H===""?"."+Yt(h,0):H,Y(w)?(C="",nl!=null&&(C=nl.replace(Oe,"$&/")+"/"),T(w,_,C,"",function(Ha){return Ha})):w!=null&&(Yl(w)&&(w=zl(w,C+(w.key==null||h&&h.key===w.key?"":(""+w.key).replace(Oe,"$&/")+"/")+nl)),_.push(w)),1;nl=0;var Wl=H===""?".":H+":";if(Y(h))for(var Ml=0;Ml<h.length;Ml++)H=h[Ml],k=Wl+Yt(H,Ml),nl+=T(H,_,C,k,w);else if(Ml=jl(h),typeof Ml=="function")for(h=Ml.call(h),Ml=0;!(H=h.next()).done;)H=H.value,k=Wl+Yt(H,Ml++),nl+=T(H,_,C,k,w);else if(k==="object"){if(typeof h.then=="function")return T(jt(h),_,C,H,w);throw _=String(h),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.")}return nl}function N(h,_,C){if(h==null)return h;var H=[],w=0;return T(h,H,"","",function(k){return _.call(C,k,w++)}),H}function Q(h){if(h._status===-1){var _=h._result;_=_(),_.then(function(C){(h._status===0||h._status===-1)&&(h._status=1,h._result=C)},function(C){(h._status===0||h._status===-1)&&(h._status=2,h._result=C)}),h._status===-1&&(h._status=0,h._result=_)}if(h._status===1)return h._result.default;throw h._result}var fl=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var _=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(_))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},dl={map:N,forEach:function(h,_,C){N(h,function(){_.apply(this,arguments)},C)},count:function(h){var _=0;return N(h,function(){_++}),_},toArray:function(h){return N(h,function(_){return _})||[]},only:function(h){if(!Yl(h))throw Error("React.Children.only expected to receive a single React element child.");return h}};return V.Activity=M,V.Children=dl,V.Component=wl,V.Fragment=m,V.Profiler=j,V.PureComponent=El,V.StrictMode=s,V.Suspense=D,V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,V.__COMPILER_RUNTIME={__proto__:null,c:function(h){return W.H.useMemoCache(h)}},V.cache=function(h){return function(){return h.apply(null,arguments)}},V.cacheSignal=function(){return null},V.cloneElement=function(h,_,C){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var H=gl({},h.props),w=h.key;if(_!=null)for(k in _.key!==void 0&&(w=""+_.key),_)!Kl.call(_,k)||k==="key"||k==="__self"||k==="__source"||k==="ref"&&_.ref===void 0||(H[k]=_[k]);var k=arguments.length-2;if(k===1)H.children=C;else if(1<k){for(var nl=Array(k),Wl=0;Wl<k;Wl++)nl[Wl]=arguments[Wl+2];H.children=nl}return nt(h.type,w,H)},V.createContext=function(h){return h={$$typeof:U,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:O,_context:h},h},V.createElement=function(h,_,C){var H,w={},k=null;if(_!=null)for(H in _.key!==void 0&&(k=""+_.key),_)Kl.call(_,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(w[H]=_[H]);var nl=arguments.length-2;if(nl===1)w.children=C;else if(1<nl){for(var Wl=Array(nl),Ml=0;Ml<nl;Ml++)Wl[Ml]=arguments[Ml+2];w.children=Wl}if(h&&h.defaultProps)for(H in nl=h.defaultProps,nl)w[H]===void 0&&(w[H]=nl[H]);return nt(h,k,w)},V.createRef=function(){return{current:null}},V.forwardRef=function(h){return{$$typeof:$,render:h}},V.isValidElement=Yl,V.lazy=function(h){return{$$typeof:X,_payload:{_status:-1,_result:h},_init:Q}},V.memo=function(h,_){return{$$typeof:z,type:h,compare:_===void 0?null:_}},V.startTransition=function(h){var _=W.T,C={};W.T=C;try{var H=h(),w=W.S;w!==null&&w(C,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(bl,fl)}catch(k){fl(k)}finally{_!==null&&C.types!==null&&(_.types=C.types),W.T=_}},V.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},V.use=function(h){return W.H.use(h)},V.useActionState=function(h,_,C){return W.H.useActionState(h,_,C)},V.useCallback=function(h,_){return W.H.useCallback(h,_)},V.useContext=function(h){return W.H.useContext(h)},V.useDebugValue=function(){},V.useDeferredValue=function(h,_){return W.H.useDeferredValue(h,_)},V.useEffect=function(h,_){return W.H.useEffect(h,_)},V.useEffectEvent=function(h){return W.H.useEffectEvent(h)},V.useId=function(){return W.H.useId()},V.useImperativeHandle=function(h,_,C){return W.H.useImperativeHandle(h,_,C)},V.useInsertionEffect=function(h,_){return W.H.useInsertionEffect(h,_)},V.useLayoutEffect=function(h,_){return W.H.useLayoutEffect(h,_)},V.useMemo=function(h,_){return W.H.useMemo(h,_)},V.useOptimistic=function(h,_){return W.H.useOptimistic(h,_)},V.useReducer=function(h,_,C){return W.H.useReducer(h,_,C)},V.useRef=function(h){return W.H.useRef(h)},V.useState=function(h){return W.H.useState(h)},V.useSyncExternalStore=function(h,_,C){return W.H.useSyncExternalStore(h,_,C)},V.useTransition=function(){return W.H.useTransition()},V.version="19.2.8",V}var Qd;function Rf(){return Qd||(Qd=1,_f.exports=Uv()),_f.exports}var yt=Rf();const Rv=Pd(yt);var jf={exports:{}},Ou={},Of={exports:{}},Df={};/**
 * @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 Ld;function Hv(){return Ld||(Ld=1,(function(f){function v(T,N){var Q=T.length;T.push(N);l:for(;0<Q;){var fl=Q-1>>>1,dl=T[fl];if(0<j(dl,N))T[fl]=N,T[Q]=dl,Q=fl;else break l}}function m(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var N=T[0],Q=T.pop();if(Q!==N){T[0]=Q;l:for(var fl=0,dl=T.length,h=dl>>>1;fl<h;){var _=2*(fl+1)-1,C=T[_],H=_+1,w=T[H];if(0>j(C,Q))H<dl&&0>j(w,C)?(T[fl]=w,T[H]=Q,fl=H):(T[fl]=C,T[_]=Q,fl=_);else if(H<dl&&0>j(w,Q))T[fl]=w,T[H]=Q,fl=H;else break l}}return N}function j(T,N){var Q=T.sortIndex-N.sortIndex;return Q!==0?Q:T.id-N.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;f.unstable_now=function(){return O.now()}}else{var U=Date,$=U.now();f.unstable_now=function(){return U.now()-$}}var D=[],z=[],X=1,M=null,L=3,jl=!1,hl=!1,gl=!1,ql=!1,wl=typeof setTimeout=="function"?setTimeout:null,Ut=typeof clearTimeout=="function"?clearTimeout:null,El=typeof setImmediate<"u"?setImmediate:null;function $l(T){for(var N=m(z);N!==null;){if(N.callback===null)s(z);else if(N.startTime<=T)s(z),N.sortIndex=N.expirationTime,v(D,N);else break;N=m(z)}}function Y(T){if(gl=!1,$l(T),!hl)if(m(D)!==null)hl=!0,bl||(bl=!0,Rl());else{var N=m(z);N!==null&&jt(Y,N.startTime-T)}}var bl=!1,W=-1,Kl=5,nt=-1;function zl(){return ql?!0:!(f.unstable_now()-nt<Kl)}function Yl(){if(ql=!1,bl){var T=f.unstable_now();nt=T;var N=!0;try{l:{hl=!1,gl&&(gl=!1,Ut(W),W=-1),jl=!0;var Q=L;try{t:{for($l(T),M=m(D);M!==null&&!(M.expirationTime>T&&zl());){var fl=M.callback;if(typeof fl=="function"){M.callback=null,L=M.priorityLevel;var dl=fl(M.expirationTime<=T);if(T=f.unstable_now(),typeof dl=="function"){M.callback=dl,$l(T),N=!0;break t}M===m(D)&&s(D),$l(T)}else s(D);M=m(D)}if(M!==null)N=!0;else{var h=m(z);h!==null&&jt(Y,h.startTime-T),N=!1}}break l}finally{M=null,L=Q,jl=!1}N=void 0}}finally{N?Rl():bl=!1}}}var Rl;if(typeof El=="function")Rl=function(){El(Yl)};else if(typeof MessageChannel<"u"){var Oe=new MessageChannel,Yt=Oe.port2;Oe.port1.onmessage=Yl,Rl=function(){Yt.postMessage(null)}}else Rl=function(){wl(Yl,0)};function jt(T,N){W=wl(function(){T(f.unstable_now())},N)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(T){T.callback=null},f.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Kl=0<T?Math.floor(1e3/T):5},f.unstable_getCurrentPriorityLevel=function(){return L},f.unstable_next=function(T){switch(L){case 1:case 2:case 3:var N=3;break;default:N=L}var Q=L;L=N;try{return T()}finally{L=Q}},f.unstable_requestPaint=function(){ql=!0},f.unstable_runWithPriority=function(T,N){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Q=L;L=T;try{return N()}finally{L=Q}},f.unstable_scheduleCallback=function(T,N,Q){var fl=f.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?fl+Q:fl):Q=fl,T){case 1:var dl=-1;break;case 2:dl=250;break;case 5:dl=1073741823;break;case 4:dl=1e4;break;default:dl=5e3}return dl=Q+dl,T={id:X++,callback:N,priorityLevel:T,startTime:Q,expirationTime:dl,sortIndex:-1},Q>fl?(T.sortIndex=Q,v(z,T),m(D)===null&&T===m(z)&&(gl?(Ut(W),W=-1):gl=!0,jt(Y,Q-fl))):(T.sortIndex=dl,v(D,T),hl||jl||(hl=!0,bl||(bl=!0,Rl()))),T},f.unstable_shouldYield=zl,f.unstable_wrapCallback=function(T){var N=L;return function(){var Q=L;L=N;try{return T.apply(this,arguments)}finally{L=Q}}}})(Df)),Df}var Vd;function Bv(){return Vd||(Vd=1,Of.exports=Hv()),Of.exports}var Nf={exports:{}},Jl={};/**
 * @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 Zd;function qv(){if(Zd)return Jl;Zd=1;var f=Rf();function v(D){var z="https://react.dev/errors/"+D;if(1<arguments.length){z+="?args[]="+encodeURIComponent(arguments[1]);for(var X=2;X<arguments.length;X++)z+="&args[]="+encodeURIComponent(arguments[X])}return"Minified React error #"+D+"; visit "+z+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(){}var s={d:{f:m,r:function(){throw Error(v(522))},D:m,C:m,L:m,m,X:m,S:m,M:m},p:0,findDOMNode:null},j=Symbol.for("react.portal");function O(D,z,X){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:M==null?null:""+M,children:D,containerInfo:z,implementation:X}}var U=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function $(D,z){if(D==="font")return"";if(typeof z=="string")return z==="use-credentials"?z:""}return Jl.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Jl.createPortal=function(D,z){var X=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!z||z.nodeType!==1&&z.nodeType!==9&&z.nodeType!==11)throw Error(v(299));return O(D,z,null,X)},Jl.flushSync=function(D){var z=U.T,X=s.p;try{if(U.T=null,s.p=2,D)return D()}finally{U.T=z,s.p=X,s.d.f()}},Jl.preconnect=function(D,z){typeof D=="string"&&(z?(z=z.crossOrigin,z=typeof z=="string"?z==="use-credentials"?z:"":void 0):z=null,s.d.C(D,z))},Jl.prefetchDNS=function(D){typeof D=="string"&&s.d.D(D)},Jl.preinit=function(D,z){if(typeof D=="string"&&z&&typeof z.as=="string"){var X=z.as,M=$(X,z.crossOrigin),L=typeof z.integrity=="string"?z.integrity:void 0,jl=typeof z.fetchPriority=="string"?z.fetchPriority:void 0;X==="style"?s.d.S(D,typeof z.precedence=="string"?z.precedence:void 0,{crossOrigin:M,integrity:L,fetchPriority:jl}):X==="script"&&s.d.X(D,{crossOrigin:M,integrity:L,fetchPriority:jl,nonce:typeof z.nonce=="string"?z.nonce:void 0})}},Jl.preinitModule=function(D,z){if(typeof D=="string")if(typeof z=="object"&&z!==null){if(z.as==null||z.as==="script"){var X=$(z.as,z.crossOrigin);s.d.M(D,{crossOrigin:X,integrity:typeof z.integrity=="string"?z.integrity:void 0,nonce:typeof z.nonce=="string"?z.nonce:void 0})}}else z==null&&s.d.M(D)},Jl.preload=function(D,z){if(typeof D=="string"&&typeof z=="object"&&z!==null&&typeof z.as=="string"){var X=z.as,M=$(X,z.crossOrigin);s.d.L(D,X,{crossOrigin:M,integrity:typeof z.integrity=="string"?z.integrity:void 0,nonce:typeof z.nonce=="string"?z.nonce:void 0,type:typeof z.type=="string"?z.type:void 0,fetchPriority:typeof z.fetchPriority=="string"?z.fetchPriority:void 0,referrerPolicy:typeof z.referrerPolicy=="string"?z.referrerPolicy:void 0,imageSrcSet:typeof z.imageSrcSet=="string"?z.imageSrcSet:void 0,imageSizes:typeof z.imageSizes=="string"?z.imageSizes:void 0,media:typeof z.media=="string"?z.media:void 0})}},Jl.preloadModule=function(D,z){if(typeof D=="string")if(z){var X=$(z.as,z.crossOrigin);s.d.m(D,{as:typeof z.as=="string"&&z.as!=="script"?z.as:void 0,crossOrigin:X,integrity:typeof z.integrity=="string"?z.integrity:void 0})}else s.d.m(D)},Jl.requestFormReset=function(D){s.d.r(D)},Jl.unstable_batchedUpdates=function(D,z){return D(z)},Jl.useFormState=function(D,z,X){return U.H.useFormState(D,z,X)},Jl.useFormStatus=function(){return U.H.useHostTransitionStatus()},Jl.version="19.2.8",Jl}var wd;function Yv(){if(wd)return Nf.exports;wd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(v){console.error(v)}}return f(),Nf.exports=qv(),Nf.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 Kd;function Gv(){if(Kd)return Ou;Kd=1;var f=Bv(),v=Rf(),m=Yv();function s(l){var t="https://react.dev/errors/"+l;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)t+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+l+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function j(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function O(l){var t=l,e=l;if(l.alternate)for(;t.return;)t=t.return;else{l=t;do t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;while(l)}return t.tag===3?e:null}function U(l){if(l.tag===13){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function $(l){if(l.tag===31){var t=l.memoizedState;if(t===null&&(l=l.alternate,l!==null&&(t=l.memoizedState)),t!==null)return t.dehydrated}return null}function D(l){if(O(l)!==l)throw Error(s(188))}function z(l){var t=l.alternate;if(!t){if(t=O(l),t===null)throw Error(s(188));return t!==l?null:l}for(var e=l,a=t;;){var u=e.return;if(u===null)break;var n=u.alternate;if(n===null){if(a=u.return,a!==null){e=a;continue}break}if(u.child===n.child){for(n=u.child;n;){if(n===e)return D(u),l;if(n===a)return D(u),t;n=n.sibling}throw Error(s(188))}if(e.return!==a.return)e=u,a=n;else{for(var i=!1,c=u.child;c;){if(c===e){i=!0,e=u,a=n;break}if(c===a){i=!0,a=u,e=n;break}c=c.sibling}if(!i){for(c=n.child;c;){if(c===e){i=!0,e=n,a=u;break}if(c===a){i=!0,a=n,e=u;break}c=c.sibling}if(!i)throw Error(s(189))}}if(e.alternate!==a)throw Error(s(190))}if(e.tag!==3)throw Error(s(188));return e.stateNode.current===e?l:t}function X(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l;for(l=l.child;l!==null;){if(t=X(l),t!==null)return t;l=l.sibling}return null}var M=Object.assign,L=Symbol.for("react.element"),jl=Symbol.for("react.transitional.element"),hl=Symbol.for("react.portal"),gl=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),wl=Symbol.for("react.profiler"),Ut=Symbol.for("react.consumer"),El=Symbol.for("react.context"),$l=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),bl=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),Kl=Symbol.for("react.lazy"),nt=Symbol.for("react.activity"),zl=Symbol.for("react.memo_cache_sentinel"),Yl=Symbol.iterator;function Rl(l){return l===null||typeof l!="object"?null:(l=Yl&&l[Yl]||l["@@iterator"],typeof l=="function"?l:null)}var Oe=Symbol.for("react.client.reference");function Yt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===Oe?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case gl:return"Fragment";case wl:return"Profiler";case ql:return"StrictMode";case Y:return"Suspense";case bl:return"SuspenseList";case nt:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case hl:return"Portal";case El:return l.displayName||"Context";case Ut:return(l._context.displayName||"Context")+".Consumer";case $l:var t=l.render;return l=l.displayName,l||(l=t.displayName||t.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case W:return t=l.displayName||null,t!==null?t:Yt(l.type)||"Memo";case Kl:t=l._payload,l=l._init;try{return Yt(l(t))}catch{}}return null}var jt=Array.isArray,T=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},fl=[],dl=-1;function h(l){return{current:l}}function _(l){0>dl||(l.current=fl[dl],fl[dl]=null,dl--)}function C(l,t){dl++,fl[dl]=l.current,l.current=t}var H=h(null),w=h(null),k=h(null),nl=h(null);function Wl(l,t){switch(C(k,t),C(w,l),C(H,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?cd(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=cd(t),l=fd(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}_(H),C(H,l)}function Ml(){_(H),_(w),_(k)}function Ha(l){l.memoizedState!==null&&C(nl,l);var t=H.current,e=fd(t,l.type);t!==e&&(C(w,l),C(H,e))}function Cu(l){w.current===l&&(_(H),_(w)),nl.current===l&&(_(nl),Eu._currentValue=Q)}var ci,Bf;function De(l){if(ci===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ci=t&&t[1]||"",Bf=-1<e.stack.indexOf(`
    at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ci+l+Bf}var fi=!1;function si(l,t){if(!l||fi)return"";fi=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(p){var b=p}Reflect.construct(l,[],x)}else{try{x.call()}catch(p){b=p}l.call(x.prototype)}}else{try{throw Error()}catch(p){b=p}(x=l())&&typeof x.catch=="function"&&x.catch(function(){})}}catch(p){if(p&&b&&typeof p.stack=="string")return[p.stack,b.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var n=a.DetermineComponentFrameRoot(),i=n[0],c=n[1];if(i&&c){var r=i.split(`
`),S=c.split(`
`);for(u=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;u<S.length&&!S[u].includes("DetermineComponentFrameRoot");)u++;if(a===r.length||u===S.length)for(a=r.length-1,u=S.length-1;1<=a&&0<=u&&r[a]!==S[u];)u--;for(;1<=a&&0<=u;a--,u--)if(r[a]!==S[u]){if(a!==1||u!==1)do if(a--,u--,0>u||r[a]!==S[u]){var A=`
`+r[a].replace(" at new "," at ");return l.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",l.displayName)),A}while(1<=a&&0<=u);break}}}finally{fi=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?De(e):""}function fm(l,t){switch(l.tag){case 26:case 27:case 5:return De(l.type);case 16:return De("Lazy");case 13:return l.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return si(l.type,!1);case 11:return si(l.type.render,!1);case 1:return si(l.type,!0);case 31:return De("Activity");default:return""}}function qf(l){try{var t="",e=null;do t+=fm(l,e),e=l,l=l.return;while(l);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var ri=Object.prototype.hasOwnProperty,oi=f.unstable_scheduleCallback,di=f.unstable_cancelCallback,sm=f.unstable_shouldYield,rm=f.unstable_requestPaint,it=f.unstable_now,om=f.unstable_getCurrentPriorityLevel,Yf=f.unstable_ImmediatePriority,Gf=f.unstable_UserBlockingPriority,Uu=f.unstable_NormalPriority,dm=f.unstable_LowPriority,Xf=f.unstable_IdlePriority,mm=f.log,hm=f.unstable_setDisableYieldValue,Ba=null,ct=null;function ae(l){if(typeof mm=="function"&&hm(l),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Ba,l)}catch{}}var ft=Math.clz32?Math.clz32:gm,vm=Math.log,ym=Math.LN2;function gm(l){return l>>>=0,l===0?32:31-(vm(l)/ym|0)|0}var Ru=256,Hu=262144,Bu=4194304;function Ne(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&261888;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function qu(l,t,e){var a=l.pendingLanes;if(a===0)return 0;var u=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=a&134217727;return c!==0?(a=c&~n,a!==0?u=Ne(a):(i&=c,i!==0?u=Ne(i):e||(e=c&~l,e!==0&&(u=Ne(e))))):(c=a&~n,c!==0?u=Ne(c):i!==0?u=Ne(i):e||(e=a&~l,e!==0&&(u=Ne(e)))),u===0?0:t!==0&&t!==u&&(t&n)===0&&(n=u&-u,e=t&-t,n>=e||n===32&&(e&4194048)!==0)?t:u}function qa(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function Sm(l,t){switch(l){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qf(){var l=Bu;return Bu<<=1,(Bu&62914560)===0&&(Bu=4194304),l}function mi(l){for(var t=[],e=0;31>e;e++)t.push(l);return t}function Ya(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function bm(l,t,e,a,u,n){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,r=l.expirationTimes,S=l.hiddenUpdates;for(e=i&~e;0<e;){var A=31-ft(e),x=1<<A;c[A]=0,r[A]=-1;var b=S[A];if(b!==null)for(S[A]=null,A=0;A<b.length;A++){var p=b[A];p!==null&&(p.lane&=-536870913)}e&=~x}a!==0&&Lf(l,a,0),n!==0&&u===0&&l.tag!==0&&(l.suspendedLanes|=n&~(i&~t))}function Lf(l,t,e){l.pendingLanes|=t,l.suspendedLanes&=~t;var a=31-ft(t);l.entangledLanes|=t,l.entanglements[a]=l.entanglements[a]|1073741824|e&261930}function Vf(l,t){var e=l.entangledLanes|=t;for(l=l.entanglements;e;){var a=31-ft(e),u=1<<a;u&t|l[a]&t&&(l[a]|=t),e&=~u}}function Zf(l,t){var e=t&-t;return e=(e&42)!==0?1:hi(e),(e&(l.suspendedLanes|t))!==0?0:e}function hi(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=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:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function vi(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function wf(){var l=N.p;return l!==0?l:(l=window.event,l===void 0?32:Nd(l.type))}function Kf(l,t){var e=N.p;try{return N.p=l,t()}finally{N.p=e}}var ue=Math.random().toString(36).slice(2),Gl="__reactFiber$"+ue,Fl="__reactProps$"+ue,ke="__reactContainer$"+ue,yi="__reactEvents$"+ue,pm="__reactListeners$"+ue,zm="__reactHandles$"+ue,Jf="__reactResources$"+ue,Ga="__reactMarker$"+ue;function gi(l){delete l[Gl],delete l[Fl],delete l[yi],delete l[pm],delete l[zm]}function Fe(l){var t=l[Gl];if(t)return t;for(var e=l.parentNode;e;){if(t=e[ke]||e[Gl]){if(e=t.alternate,t.child!==null||e!==null&&e.child!==null)for(l=vd(l);l!==null;){if(e=l[Gl])return e;l=vd(l)}return t}l=e,e=l.parentNode}return null}function Pe(l){if(l=l[Gl]||l[ke]){var t=l.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return l}return null}function Xa(l){var t=l.tag;if(t===5||t===26||t===27||t===6)return l.stateNode;throw Error(s(33))}function Ie(l){var t=l[Jf];return t||(t=l[Jf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Hl(l){l[Ga]=!0}var $f=new Set,Wf={};function Ce(l,t){la(l,t),la(l+"Capture",t)}function la(l,t){for(Wf[l]=t,l=0;l<t.length;l++)$f.add(t[l])}var Am=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]*$"),kf={},Ff={};function Tm(l){return ri.call(Ff,l)?!0:ri.call(kf,l)?!1:Am.test(l)?Ff[l]=!0:(kf[l]=!0,!1)}function Yu(l,t,e){if(Tm(t))if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":l.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){l.removeAttribute(t);return}}l.setAttribute(t,""+e)}}function Gu(l,t,e){if(e===null)l.removeAttribute(t);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(t);return}l.setAttribute(t,""+e)}}function Gt(l,t,e,a){if(a===null)l.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(e);return}l.setAttributeNS(t,e,""+a)}}function gt(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Pf(l){var t=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Em(l,t,e){var a=Object.getOwnPropertyDescriptor(l.constructor.prototype,t);if(!l.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,n=a.set;return Object.defineProperty(l,t,{configurable:!0,get:function(){return u.call(this)},set:function(i){e=""+i,n.call(this,i)}}),Object.defineProperty(l,t,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){l._valueTracker=null,delete l[t]}}}}function Si(l){if(!l._valueTracker){var t=Pf(l)?"checked":"value";l._valueTracker=Em(l,t,""+l[t])}}function If(l){if(!l)return!1;var t=l._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return l&&(a=Pf(l)?l.checked?"true":"false":l.value),l=a,l!==e?(t.setValue(l),!0):!1}function Xu(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Mm=/[\n"\\]/g;function St(l){return l.replace(Mm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function bi(l,t,e,a,u,n,i,c){l.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?l.type=i:l.removeAttribute("type"),t!=null?i==="number"?(t===0&&l.value===""||l.value!=t)&&(l.value=""+gt(t)):l.value!==""+gt(t)&&(l.value=""+gt(t)):i!=="submit"&&i!=="reset"||l.removeAttribute("value"),t!=null?pi(l,i,gt(t)):e!=null?pi(l,i,gt(e)):a!=null&&l.removeAttribute("value"),u==null&&n!=null&&(l.defaultChecked=!!n),u!=null&&(l.checked=u&&typeof u!="function"&&typeof u!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?l.name=""+gt(c):l.removeAttribute("name")}function ls(l,t,e,a,u,n,i,c){if(n!=null&&typeof n!="function"&&typeof n!="symbol"&&typeof n!="boolean"&&(l.type=n),t!=null||e!=null){if(!(n!=="submit"&&n!=="reset"||t!=null)){Si(l);return}e=e!=null?""+gt(e):"",t=t!=null?""+gt(t):e,c||t===l.value||(l.value=t),l.defaultValue=t}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,l.checked=c?l.checked:!!a,l.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(l.name=i),Si(l)}function pi(l,t,e){t==="number"&&Xu(l.ownerDocument)===l||l.defaultValue===""+e||(l.defaultValue=""+e)}function ta(l,t,e,a){if(l=l.options,t){t={};for(var u=0;u<e.length;u++)t["$"+e[u]]=!0;for(e=0;e<l.length;e++)u=t.hasOwnProperty("$"+l[e].value),l[e].selected!==u&&(l[e].selected=u),u&&a&&(l[e].defaultSelected=!0)}else{for(e=""+gt(e),t=null,u=0;u<l.length;u++){if(l[u].value===e){l[u].selected=!0,a&&(l[u].defaultSelected=!0);return}t!==null||l[u].disabled||(t=l[u])}t!==null&&(t.selected=!0)}}function ts(l,t,e){if(t!=null&&(t=""+gt(t),t!==l.value&&(l.value=t),e==null)){l.defaultValue!==t&&(l.defaultValue=t);return}l.defaultValue=e!=null?""+gt(e):""}function es(l,t,e,a){if(t==null){if(a!=null){if(e!=null)throw Error(s(92));if(jt(a)){if(1<a.length)throw Error(s(93));a=a[0]}e=a}e==null&&(e=""),t=e}e=gt(t),l.defaultValue=e,a=l.textContent,a===e&&a!==""&&a!==null&&(l.value=a),Si(l)}function ea(l,t){if(t){var e=l.firstChild;if(e&&e===l.lastChild&&e.nodeType===3){e.nodeValue=t;return}}l.textContent=t}var xm=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 as(l,t,e){var a=t.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?l.setProperty(t,""):t==="float"?l.cssFloat="":l[t]="":a?l.setProperty(t,e):typeof e!="number"||e===0||xm.has(t)?t==="float"?l.cssFloat=e:l[t]=(""+e).trim():l[t]=e+"px"}function us(l,t,e){if(t!=null&&typeof t!="object")throw Error(s(62));if(l=l.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="");for(var u in t)a=t[u],t.hasOwnProperty(u)&&e[u]!==a&&as(l,u,a)}else for(var n in t)t.hasOwnProperty(n)&&as(l,n,t[n])}function zi(l){if(l.indexOf("-")===-1)return!1;switch(l){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 _m=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"]]),jm=/^[\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 Qu(l){return jm.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function Xt(){}var Ai=null;function Ti(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var aa=null,ua=null;function ns(l){var t=Pe(l);if(t&&(l=t.stateNode)){var e=l[Fl]||null;l:switch(l=t.stateNode,t.type){case"input":if(bi(l,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),t=e.name,e.type==="radio"&&t!=null){for(e=l;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+St(""+t)+'"][type="radio"]'),t=0;t<e.length;t++){var a=e[t];if(a!==l&&a.form===l.form){var u=a[Fl]||null;if(!u)throw Error(s(90));bi(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<e.length;t++)a=e[t],a.form===l.form&&If(a)}break l;case"textarea":ts(l,e.value,e.defaultValue);break l;case"select":t=e.value,t!=null&&ta(l,!!e.multiple,t,!1)}}}var Ei=!1;function is(l,t,e){if(Ei)return l(t,e);Ei=!0;try{var a=l(t);return a}finally{if(Ei=!1,(aa!==null||ua!==null)&&(On(),aa&&(t=aa,l=ua,ua=aa=null,ns(t),l)))for(t=0;t<l.length;t++)ns(l[t])}}function Qa(l,t){var e=l.stateNode;if(e===null)return null;var a=e[Fl]||null;if(a===null)return null;e=a[t];l:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(l=l.type,a=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!a;break l;default:l=!1}if(l)return null;if(e&&typeof e!="function")throw Error(s(231,t,typeof e));return e}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mi=!1;if(Qt)try{var La={};Object.defineProperty(La,"passive",{get:function(){Mi=!0}}),window.addEventListener("test",La,La),window.removeEventListener("test",La,La)}catch{Mi=!1}var ne=null,xi=null,Lu=null;function cs(){if(Lu)return Lu;var l,t=xi,e=t.length,a,u="value"in ne?ne.value:ne.textContent,n=u.length;for(l=0;l<e&&t[l]===u[l];l++);var i=e-l;for(a=1;a<=i&&t[e-a]===u[n-a];a++);return Lu=u.slice(l,1<a?1-a:void 0)}function Vu(l){var t=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&t===13&&(l=13)):l=t,l===10&&(l=13),32<=l||l===13?l:0}function Zu(){return!0}function fs(){return!1}function Pl(l){function t(e,a,u,n,i){this._reactName=e,this._targetInst=u,this.type=a,this.nativeEvent=n,this.target=i,this.currentTarget=null;for(var c in l)l.hasOwnProperty(c)&&(e=l[c],this[c]=e?e(n):n[c]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Zu:fs,this.isPropagationStopped=fs,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Zu)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Zu)},persist:function(){},isPersistent:Zu}),t}var Ue={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=Pl(Ue),Va=M({},Ue,{view:0,detail:0}),Om=Pl(Va),_i,ji,Za,Ku=M({},Va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Di,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==Za&&(Za&&l.type==="mousemove"?(_i=l.screenX-Za.screenX,ji=l.screenY-Za.screenY):ji=_i=0,Za=l),_i)},movementY:function(l){return"movementY"in l?l.movementY:ji}}),ss=Pl(Ku),Dm=M({},Ku,{dataTransfer:0}),Nm=Pl(Dm),Cm=M({},Va,{relatedTarget:0}),Oi=Pl(Cm),Um=M({},Ue,{animationName:0,elapsedTime:0,pseudoElement:0}),Rm=Pl(Um),Hm=M({},Ue,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Bm=Pl(Hm),qm=M({},Ue,{data:0}),rs=Pl(qm),Ym={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gm={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"},Xm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qm(l){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(l):(l=Xm[l])?!!t[l]:!1}function Di(){return Qm}var Lm=M({},Va,{key:function(l){if(l.key){var t=Ym[l.key]||l.key;if(t!=="Unidentified")return t}return l.type==="keypress"?(l=Vu(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?Gm[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Di,charCode:function(l){return l.type==="keypress"?Vu(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Vu(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Vm=Pl(Lm),Zm=M({},Ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),os=Pl(Zm),wm=M({},Va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Di}),Km=Pl(wm),Jm=M({},Ue,{propertyName:0,elapsedTime:0,pseudoElement:0}),$m=Pl(Jm),Wm=M({},Ku,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),km=Pl(Wm),Fm=M({},Ue,{newState:0,oldState:0}),Pm=Pl(Fm),Im=[9,13,27,32],Ni=Qt&&"CompositionEvent"in window,wa=null;Qt&&"documentMode"in document&&(wa=document.documentMode);var lh=Qt&&"TextEvent"in window&&!wa,ds=Qt&&(!Ni||wa&&8<wa&&11>=wa),ms=" ",hs=!1;function vs(l,t){switch(l){case"keyup":return Im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ys(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var na=!1;function th(l,t){switch(l){case"compositionend":return ys(t);case"keypress":return t.which!==32?null:(hs=!0,ms);case"textInput":return l=t.data,l===ms&&hs?null:l;default:return null}}function eh(l,t){if(na)return l==="compositionend"||!Ni&&vs(l,t)?(l=cs(),Lu=xi=ne=null,na=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ds&&t.locale!=="ko"?null:t.data;default:return null}}var ah={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 gs(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t==="input"?!!ah[l.type]:t==="textarea"}function Ss(l,t,e,a){aa?ua?ua.push(a):ua=[a]:aa=a,t=Bn(t,"onChange"),0<t.length&&(e=new wu("onChange","change",null,e,a),l.push({event:e,listeners:t}))}var Ka=null,Ja=null;function uh(l){td(l,0)}function Ju(l){var t=Xa(l);if(If(t))return l}function bs(l,t){if(l==="change")return t}var ps=!1;if(Qt){var Ci;if(Qt){var Ui="oninput"in document;if(!Ui){var zs=document.createElement("div");zs.setAttribute("oninput","return;"),Ui=typeof zs.oninput=="function"}Ci=Ui}else Ci=!1;ps=Ci&&(!document.documentMode||9<document.documentMode)}function As(){Ka&&(Ka.detachEvent("onpropertychange",Ts),Ja=Ka=null)}function Ts(l){if(l.propertyName==="value"&&Ju(Ja)){var t=[];Ss(t,Ja,l,Ti(l)),is(uh,t)}}function nh(l,t,e){l==="focusin"?(As(),Ka=t,Ja=e,Ka.attachEvent("onpropertychange",Ts)):l==="focusout"&&As()}function ih(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ju(Ja)}function ch(l,t){if(l==="click")return Ju(t)}function fh(l,t){if(l==="input"||l==="change")return Ju(t)}function sh(l,t){return l===t&&(l!==0||1/l===1/t)||l!==l&&t!==t}var st=typeof Object.is=="function"?Object.is:sh;function $a(l,t){if(st(l,t))return!0;if(typeof l!="object"||l===null||typeof t!="object"||t===null)return!1;var e=Object.keys(l),a=Object.keys(t);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var u=e[a];if(!ri.call(t,u)||!st(l[u],t[u]))return!1}return!0}function Es(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Ms(l,t){var e=Es(l);l=0;for(var a;e;){if(e.nodeType===3){if(a=l+e.textContent.length,l<=t&&a>=t)return{node:e,offset:t-l};l=a}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=Es(e)}}function xs(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?xs(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function _s(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=Xu(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=Xu(l.document)}return t}function Ri(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var rh=Qt&&"documentMode"in document&&11>=document.documentMode,ia=null,Hi=null,Wa=null,Bi=!1;function js(l,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Bi||ia==null||ia!==Xu(a)||(a=ia,"selectionStart"in a&&Ri(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Wa&&$a(Wa,a)||(Wa=a,a=Bn(Hi,"onSelect"),0<a.length&&(t=new wu("onSelect","select",null,t,e),l.push({event:t,listeners:a}),t.target=ia)))}function Re(l,t){var e={};return e[l.toLowerCase()]=t.toLowerCase(),e["Webkit"+l]="webkit"+t,e["Moz"+l]="moz"+t,e}var ca={animationend:Re("Animation","AnimationEnd"),animationiteration:Re("Animation","AnimationIteration"),animationstart:Re("Animation","AnimationStart"),transitionrun:Re("Transition","TransitionRun"),transitionstart:Re("Transition","TransitionStart"),transitioncancel:Re("Transition","TransitionCancel"),transitionend:Re("Transition","TransitionEnd")},qi={},Os={};Qt&&(Os=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);function He(l){if(qi[l])return qi[l];if(!ca[l])return l;var t=ca[l],e;for(e in t)if(t.hasOwnProperty(e)&&e in Os)return qi[l]=t[e];return l}var Ds=He("animationend"),Ns=He("animationiteration"),Cs=He("animationstart"),oh=He("transitionrun"),dh=He("transitionstart"),mh=He("transitioncancel"),Us=He("transitionend"),Rs=new Map,Yi="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(" ");Yi.push("scrollEnd");function Ot(l,t){Rs.set(l,t),Ce(t,[l])}var $u=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},bt=[],fa=0,Gi=0;function Wu(){for(var l=fa,t=Gi=fa=0;t<l;){var e=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var u=bt[t];bt[t++]=null;var n=bt[t];if(bt[t++]=null,a!==null&&u!==null){var i=a.pending;i===null?u.next=u:(u.next=i.next,i.next=u),a.pending=u}n!==0&&Hs(e,u,n)}}function ku(l,t,e,a){bt[fa++]=l,bt[fa++]=t,bt[fa++]=e,bt[fa++]=a,Gi|=a,l.lanes|=a,l=l.alternate,l!==null&&(l.lanes|=a)}function Xi(l,t,e,a){return ku(l,t,e,a),Fu(l)}function Be(l,t){return ku(l,null,null,t),Fu(l)}function Hs(l,t,e){l.lanes|=e;var a=l.alternate;a!==null&&(a.lanes|=e);for(var u=!1,n=l.return;n!==null;)n.childLanes|=e,a=n.alternate,a!==null&&(a.childLanes|=e),n.tag===22&&(l=n.stateNode,l===null||l._visibility&1||(u=!0)),l=n,n=n.return;return l.tag===3?(n=l.stateNode,u&&t!==null&&(u=31-ft(e),l=n.hiddenUpdates,a=l[u],a===null?l[u]=[t]:a.push(t),t.lane=e|536870912),n):null}function Fu(l){if(50<gu)throw gu=0,Wc=null,Error(s(185));for(var t=l.return;t!==null;)l=t,t=l.return;return l.tag===3?l.stateNode:null}var sa={};function hh(l,t,e,a){this.tag=l,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rt(l,t,e,a){return new hh(l,t,e,a)}function Qi(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Lt(l,t){var e=l.alternate;return e===null?(e=rt(l.tag,t,l.key,l.mode),e.elementType=l.elementType,e.type=l.type,e.stateNode=l.stateNode,e.alternate=l,l.alternate=e):(e.pendingProps=t,e.type=l.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=l.flags&65011712,e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=l.sibling,e.index=l.index,e.ref=l.ref,e.refCleanup=l.refCleanup,e}function Bs(l,t){l.flags&=65011714;var e=l.alternate;return e===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,l.type=e.type,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l}function Pu(l,t,e,a,u,n){var i=0;if(a=l,typeof l=="function")Qi(l)&&(i=1);else if(typeof l=="string")i=bv(l,e,H.current)?26:l==="html"||l==="head"||l==="body"?27:5;else l:switch(l){case nt:return l=rt(31,e,t,u),l.elementType=nt,l.lanes=n,l;case gl:return qe(e.children,u,n,t);case ql:i=8,u|=24;break;case wl:return l=rt(12,e,t,u|2),l.elementType=wl,l.lanes=n,l;case Y:return l=rt(13,e,t,u),l.elementType=Y,l.lanes=n,l;case bl:return l=rt(19,e,t,u),l.elementType=bl,l.lanes=n,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case El:i=10;break l;case Ut:i=9;break l;case $l:i=11;break l;case W:i=14;break l;case Kl:i=16,a=null;break l}i=29,e=Error(s(130,l===null?"null":typeof l,"")),a=null}return t=rt(i,e,t,u),t.elementType=l,t.type=a,t.lanes=n,t}function qe(l,t,e,a){return l=rt(7,l,a,t),l.lanes=e,l}function Li(l,t,e){return l=rt(6,l,null,t),l.lanes=e,l}function qs(l){var t=rt(18,null,null,0);return t.stateNode=l,t}function Vi(l,t,e){return t=rt(4,l.children!==null?l.children:[],l.key,t),t.lanes=e,t.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},t}var Ys=new WeakMap;function pt(l,t){if(typeof l=="object"&&l!==null){var e=Ys.get(l);return e!==void 0?e:(t={value:l,source:t,stack:qf(t)},Ys.set(l,t),t)}return{value:l,source:t,stack:qf(t)}}var ra=[],oa=0,Iu=null,ka=0,zt=[],At=0,ie=null,Rt=1,Ht="";function Vt(l,t){ra[oa++]=ka,ra[oa++]=Iu,Iu=l,ka=t}function Gs(l,t,e){zt[At++]=Rt,zt[At++]=Ht,zt[At++]=ie,ie=l;var a=Rt;l=Ht;var u=32-ft(a)-1;a&=~(1<<u),e+=1;var n=32-ft(t)+u;if(30<n){var i=u-u%5;n=(a&(1<<i)-1).toString(32),a>>=i,u-=i,Rt=1<<32-ft(t)+u|e<<u|a,Ht=n+l}else Rt=1<<n|e<<u|a,Ht=l}function Zi(l){l.return!==null&&(Vt(l,1),Gs(l,1,0))}function wi(l){for(;l===Iu;)Iu=ra[--oa],ra[oa]=null,ka=ra[--oa],ra[oa]=null;for(;l===ie;)ie=zt[--At],zt[At]=null,Ht=zt[--At],zt[At]=null,Rt=zt[--At],zt[At]=null}function Xs(l,t){zt[At++]=Rt,zt[At++]=Ht,zt[At++]=ie,Rt=t.id,Ht=t.overflow,ie=l}var Xl=null,vl=null,tl=!1,ce=null,Tt=!1,Ki=Error(s(519));function fe(l){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fa(pt(t,l)),Ki}function Qs(l){var t=l.stateNode,e=l.type,a=l.memoizedProps;switch(t[Gl]=l,t[Fl]=a,e){case"dialog":P("cancel",t),P("close",t);break;case"iframe":case"object":case"embed":P("load",t);break;case"video":case"audio":for(e=0;e<bu.length;e++)P(bu[e],t);break;case"source":P("error",t);break;case"img":case"image":case"link":P("error",t),P("load",t);break;case"details":P("toggle",t);break;case"input":P("invalid",t),ls(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":P("invalid",t);break;case"textarea":P("invalid",t),es(t,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||t.textContent===""+e||a.suppressHydrationWarning===!0||nd(t.textContent,e)?(a.popover!=null&&(P("beforetoggle",t),P("toggle",t)),a.onScroll!=null&&P("scroll",t),a.onScrollEnd!=null&&P("scrollend",t),a.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||fe(l,!0)}function Ls(l){for(Xl=l.return;Xl;)switch(Xl.tag){case 5:case 31:case 13:Tt=!1;return;case 27:case 3:Tt=!0;return;default:Xl=Xl.return}}function da(l){if(l!==Xl)return!1;if(!tl)return Ls(l),tl=!0,!1;var t=l.tag,e;if((e=t!==3&&t!==27)&&((e=t===5)&&(e=l.type,e=!(e!=="form"&&e!=="button")||of(l.type,l.memoizedProps)),e=!e),e&&vl&&fe(l),Ls(l),t===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));vl=hd(l)}else if(t===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(317));vl=hd(l)}else t===27?(t=vl,Ae(l.type)?(l=yf,yf=null,vl=l):vl=t):vl=Xl?Mt(l.stateNode.nextSibling):null;return!0}function Ye(){vl=Xl=null,tl=!1}function Ji(){var l=ce;return l!==null&&(et===null?et=l:et.push.apply(et,l),ce=null),l}function Fa(l){ce===null?ce=[l]:ce.push(l)}var $i=h(null),Ge=null,Zt=null;function se(l,t,e){C($i,t._currentValue),t._currentValue=e}function wt(l){l._currentValue=$i.current,_($i)}function Wi(l,t,e){for(;l!==null;){var a=l.alternate;if((l.childLanes&t)!==t?(l.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),l===e)break;l=l.return}}function ki(l,t,e,a){var u=l.child;for(u!==null&&(u.return=l);u!==null;){var n=u.dependencies;if(n!==null){var i=u.child;n=n.firstContext;l:for(;n!==null;){var c=n;n=u;for(var r=0;r<t.length;r++)if(c.context===t[r]){n.lanes|=e,c=n.alternate,c!==null&&(c.lanes|=e),Wi(n.return,e,l),a||(i=null);break l}n=c.next}}else if(u.tag===18){if(i=u.return,i===null)throw Error(s(341));i.lanes|=e,n=i.alternate,n!==null&&(n.lanes|=e),Wi(i,e,l),i=null}else i=u.child;if(i!==null)i.return=u;else for(i=u;i!==null;){if(i===l){i=null;break}if(u=i.sibling,u!==null){u.return=i.return,i=u;break}i=i.return}u=i}}function ma(l,t,e,a){l=null;for(var u=t,n=!1;u!==null;){if(!n){if((u.flags&524288)!==0)n=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var i=u.alternate;if(i===null)throw Error(s(387));if(i=i.memoizedProps,i!==null){var c=u.type;st(u.pendingProps.value,i.value)||(l!==null?l.push(c):l=[c])}}else if(u===nl.current){if(i=u.alternate,i===null)throw Error(s(387));i.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(l!==null?l.push(Eu):l=[Eu])}u=u.return}l!==null&&ki(t,l,e,a),t.flags|=262144}function ln(l){for(l=l.firstContext;l!==null;){if(!st(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Xe(l){Ge=l,Zt=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Ql(l){return Vs(Ge,l)}function tn(l,t){return Ge===null&&Xe(l),Vs(l,t)}function Vs(l,t){var e=t._currentValue;if(t={context:t,memoizedValue:e,next:null},Zt===null){if(l===null)throw Error(s(308));Zt=t,l.dependencies={lanes:0,firstContext:t},l.flags|=524288}else Zt=Zt.next=t;return e}var vh=typeof AbortController<"u"?AbortController:function(){var l=[],t=this.signal={aborted:!1,addEventListener:function(e,a){l.push(a)}};this.abort=function(){t.aborted=!0,l.forEach(function(e){return e()})}},yh=f.unstable_scheduleCallback,gh=f.unstable_NormalPriority,Ol={$$typeof:El,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fi(){return{controller:new vh,data:new Map,refCount:0}}function Pa(l){l.refCount--,l.refCount===0&&yh(gh,function(){l.controller.abort()})}var Ia=null,Pi=0,ha=0,va=null;function Sh(l,t){if(Ia===null){var e=Ia=[];Pi=0,ha=tf(),va={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Pi++,t.then(Zs,Zs),t}function Zs(){if(--Pi===0&&Ia!==null){va!==null&&(va.status="fulfilled");var l=Ia;Ia=null,ha=0,va=null;for(var t=0;t<l.length;t++)(0,l[t])()}}function bh(l,t){var e=[],a={status:"pending",value:null,reason:null,then:function(u){e.push(u)}};return l.then(function(){a.status="fulfilled",a.value=t;for(var u=0;u<e.length;u++)(0,e[u])(t)},function(u){for(a.status="rejected",a.reason=u,u=0;u<e.length;u++)(0,e[u])(void 0)}),a}var ws=T.S;T.S=function(l,t){Oo=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Sh(l,t),ws!==null&&ws(l,t)};var Qe=h(null);function Ii(){var l=Qe.current;return l!==null?l:ml.pooledCache}function en(l,t){t===null?C(Qe,Qe.current):C(Qe,t.pool)}function Ks(){var l=Ii();return l===null?null:{parent:Ol._currentValue,pool:l}}var ya=Error(s(460)),lc=Error(s(474)),an=Error(s(542)),un={then:function(){}};function Js(l){return l=l.status,l==="fulfilled"||l==="rejected"}function $s(l,t,e){switch(e=l[e],e===void 0?l.push(t):e!==t&&(t.then(Xt,Xt),t=e),t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,ks(l),l;default:if(typeof t.status=="string")t.then(Xt,Xt);else{if(l=ml,l!==null&&100<l.shellSuspendCounter)throw Error(s(482));l=t,l.status="pending",l.then(function(a){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=a}},function(a){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw l=t.reason,ks(l),l}throw Ve=t,ya}}function Le(l){try{var t=l._init;return t(l._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Ve=e,ya):e}}var Ve=null;function Ws(){if(Ve===null)throw Error(s(459));var l=Ve;return Ve=null,l}function ks(l){if(l===ya||l===an)throw Error(s(483))}var ga=null,lu=0;function nn(l){var t=lu;return lu+=1,ga===null&&(ga=[]),$s(ga,l,t)}function tu(l,t){t=t.props.ref,l.ref=t!==void 0?t:null}function cn(l,t){throw t.$$typeof===L?Error(s(525)):(l=Object.prototype.toString.call(t),Error(s(31,l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)))}function Fs(l){function t(y,d){if(l){var g=y.deletions;g===null?(y.deletions=[d],y.flags|=16):g.push(d)}}function e(y,d){if(!l)return null;for(;d!==null;)t(y,d),d=d.sibling;return null}function a(y){for(var d=new Map;y!==null;)y.key!==null?d.set(y.key,y):d.set(y.index,y),y=y.sibling;return d}function u(y,d){return y=Lt(y,d),y.index=0,y.sibling=null,y}function n(y,d,g){return y.index=g,l?(g=y.alternate,g!==null?(g=g.index,g<d?(y.flags|=67108866,d):g):(y.flags|=67108866,d)):(y.flags|=1048576,d)}function i(y){return l&&y.alternate===null&&(y.flags|=67108866),y}function c(y,d,g,E){return d===null||d.tag!==6?(d=Li(g,y.mode,E),d.return=y,d):(d=u(d,g),d.return=y,d)}function r(y,d,g,E){var q=g.type;return q===gl?A(y,d,g.props.children,E,g.key):d!==null&&(d.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Kl&&Le(q)===d.type)?(d=u(d,g.props),tu(d,g),d.return=y,d):(d=Pu(g.type,g.key,g.props,null,y.mode,E),tu(d,g),d.return=y,d)}function S(y,d,g,E){return d===null||d.tag!==4||d.stateNode.containerInfo!==g.containerInfo||d.stateNode.implementation!==g.implementation?(d=Vi(g,y.mode,E),d.return=y,d):(d=u(d,g.children||[]),d.return=y,d)}function A(y,d,g,E,q){return d===null||d.tag!==7?(d=qe(g,y.mode,E,q),d.return=y,d):(d=u(d,g),d.return=y,d)}function x(y,d,g){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Li(""+d,y.mode,g),d.return=y,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case jl:return g=Pu(d.type,d.key,d.props,null,y.mode,g),tu(g,d),g.return=y,g;case hl:return d=Vi(d,y.mode,g),d.return=y,d;case Kl:return d=Le(d),x(y,d,g)}if(jt(d)||Rl(d))return d=qe(d,y.mode,g,null),d.return=y,d;if(typeof d.then=="function")return x(y,nn(d),g);if(d.$$typeof===El)return x(y,tn(y,d),g);cn(y,d)}return null}function b(y,d,g,E){var q=d!==null?d.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return q!==null?null:c(y,d,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case jl:return g.key===q?r(y,d,g,E):null;case hl:return g.key===q?S(y,d,g,E):null;case Kl:return g=Le(g),b(y,d,g,E)}if(jt(g)||Rl(g))return q!==null?null:A(y,d,g,E,null);if(typeof g.then=="function")return b(y,d,nn(g),E);if(g.$$typeof===El)return b(y,d,tn(y,g),E);cn(y,g)}return null}function p(y,d,g,E,q){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return y=y.get(g)||null,c(d,y,""+E,q);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case jl:return y=y.get(E.key===null?g:E.key)||null,r(d,y,E,q);case hl:return y=y.get(E.key===null?g:E.key)||null,S(d,y,E,q);case Kl:return E=Le(E),p(y,d,g,E,q)}if(jt(E)||Rl(E))return y=y.get(g)||null,A(d,y,E,q,null);if(typeof E.then=="function")return p(y,d,g,nn(E),q);if(E.$$typeof===El)return p(y,d,g,tn(d,E),q);cn(d,E)}return null}function R(y,d,g,E){for(var q=null,el=null,B=d,J=d=0,ll=null;B!==null&&J<g.length;J++){B.index>J?(ll=B,B=null):ll=B.sibling;var al=b(y,B,g[J],E);if(al===null){B===null&&(B=ll);break}l&&B&&al.alternate===null&&t(y,B),d=n(al,d,J),el===null?q=al:el.sibling=al,el=al,B=ll}if(J===g.length)return e(y,B),tl&&Vt(y,J),q;if(B===null){for(;J<g.length;J++)B=x(y,g[J],E),B!==null&&(d=n(B,d,J),el===null?q=B:el.sibling=B,el=B);return tl&&Vt(y,J),q}for(B=a(B);J<g.length;J++)ll=p(B,y,J,g[J],E),ll!==null&&(l&&ll.alternate!==null&&B.delete(ll.key===null?J:ll.key),d=n(ll,d,J),el===null?q=ll:el.sibling=ll,el=ll);return l&&B.forEach(function(_e){return t(y,_e)}),tl&&Vt(y,J),q}function G(y,d,g,E){if(g==null)throw Error(s(151));for(var q=null,el=null,B=d,J=d=0,ll=null,al=g.next();B!==null&&!al.done;J++,al=g.next()){B.index>J?(ll=B,B=null):ll=B.sibling;var _e=b(y,B,al.value,E);if(_e===null){B===null&&(B=ll);break}l&&B&&_e.alternate===null&&t(y,B),d=n(_e,d,J),el===null?q=_e:el.sibling=_e,el=_e,B=ll}if(al.done)return e(y,B),tl&&Vt(y,J),q;if(B===null){for(;!al.done;J++,al=g.next())al=x(y,al.value,E),al!==null&&(d=n(al,d,J),el===null?q=al:el.sibling=al,el=al);return tl&&Vt(y,J),q}for(B=a(B);!al.done;J++,al=g.next())al=p(B,y,J,al.value,E),al!==null&&(l&&al.alternate!==null&&B.delete(al.key===null?J:al.key),d=n(al,d,J),el===null?q=al:el.sibling=al,el=al);return l&&B.forEach(function(Dv){return t(y,Dv)}),tl&&Vt(y,J),q}function ol(y,d,g,E){if(typeof g=="object"&&g!==null&&g.type===gl&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case jl:l:{for(var q=g.key;d!==null;){if(d.key===q){if(q=g.type,q===gl){if(d.tag===7){e(y,d.sibling),E=u(d,g.props.children),E.return=y,y=E;break l}}else if(d.elementType===q||typeof q=="object"&&q!==null&&q.$$typeof===Kl&&Le(q)===d.type){e(y,d.sibling),E=u(d,g.props),tu(E,g),E.return=y,y=E;break l}e(y,d);break}else t(y,d);d=d.sibling}g.type===gl?(E=qe(g.props.children,y.mode,E,g.key),E.return=y,y=E):(E=Pu(g.type,g.key,g.props,null,y.mode,E),tu(E,g),E.return=y,y=E)}return i(y);case hl:l:{for(q=g.key;d!==null;){if(d.key===q)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){e(y,d.sibling),E=u(d,g.children||[]),E.return=y,y=E;break l}else{e(y,d);break}else t(y,d);d=d.sibling}E=Vi(g,y.mode,E),E.return=y,y=E}return i(y);case Kl:return g=Le(g),ol(y,d,g,E)}if(jt(g))return R(y,d,g,E);if(Rl(g)){if(q=Rl(g),typeof q!="function")throw Error(s(150));return g=q.call(g),G(y,d,g,E)}if(typeof g.then=="function")return ol(y,d,nn(g),E);if(g.$$typeof===El)return ol(y,d,tn(y,g),E);cn(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,d!==null&&d.tag===6?(e(y,d.sibling),E=u(d,g),E.return=y,y=E):(e(y,d),E=Li(g,y.mode,E),E.return=y,y=E),i(y)):e(y,d)}return function(y,d,g,E){try{lu=0;var q=ol(y,d,g,E);return ga=null,q}catch(B){if(B===ya||B===an)throw B;var el=rt(29,B,null,y.mode);return el.lanes=E,el.return=y,el}finally{}}}var Ze=Fs(!0),Ps=Fs(!1),re=!1;function tc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ec(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function oe(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function de(l,t,e){var a=l.updateQueue;if(a===null)return null;if(a=a.shared,(ul&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,t=Fu(l),Hs(l,null,e),t}return ku(l,a,t,e),Fu(l)}function eu(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Vf(l,e)}}function ac(l,t){var e=l.updateQueue,a=l.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var u=null,n=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};n===null?u=n=i:n=n.next=i,e=e.next}while(e!==null);n===null?u=n=t:n=n.next=t}else u=n=t;e={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:n,shared:a.shared,callbacks:a.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var uc=!1;function au(){if(uc){var l=va;if(l!==null)throw l}}function uu(l,t,e,a){uc=!1;var u=l.updateQueue;re=!1;var n=u.firstBaseUpdate,i=u.lastBaseUpdate,c=u.shared.pending;if(c!==null){u.shared.pending=null;var r=c,S=r.next;r.next=null,i===null?n=S:i.next=S,i=r;var A=l.alternate;A!==null&&(A=A.updateQueue,c=A.lastBaseUpdate,c!==i&&(c===null?A.firstBaseUpdate=S:c.next=S,A.lastBaseUpdate=r))}if(n!==null){var x=u.baseState;i=0,A=S=r=null,c=n;do{var b=c.lane&-536870913,p=b!==c.lane;if(p?(I&b)===b:(a&b)===b){b!==0&&b===ha&&(uc=!0),A!==null&&(A=A.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var R=l,G=c;b=t;var ol=e;switch(G.tag){case 1:if(R=G.payload,typeof R=="function"){x=R.call(ol,x,b);break l}x=R;break l;case 3:R.flags=R.flags&-65537|128;case 0:if(R=G.payload,b=typeof R=="function"?R.call(ol,x,b):R,b==null)break l;x=M({},x,b);break l;case 2:re=!0}}b=c.callback,b!==null&&(l.flags|=64,p&&(l.flags|=8192),p=u.callbacks,p===null?u.callbacks=[b]:p.push(b))}else p={lane:b,tag:c.tag,payload:c.payload,callback:c.callback,next:null},A===null?(S=A=p,r=x):A=A.next=p,i|=b;if(c=c.next,c===null){if(c=u.shared.pending,c===null)break;p=c,c=p.next,p.next=null,u.lastBaseUpdate=p,u.shared.pending=null}}while(!0);A===null&&(r=x),u.baseState=r,u.firstBaseUpdate=S,u.lastBaseUpdate=A,n===null&&(u.shared.lanes=0),ge|=i,l.lanes=i,l.memoizedState=x}}function Is(l,t){if(typeof l!="function")throw Error(s(191,l));l.call(t)}function lr(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;l<e.length;l++)Is(e[l],t)}var Sa=h(null),fn=h(0);function tr(l,t){l=le,C(fn,l),C(Sa,t),le=l|t.baseLanes}function nc(){C(fn,le),C(Sa,Sa.current)}function ic(){le=fn.current,_(Sa),_(fn)}var ot=h(null),Et=null;function me(l){var t=l.alternate;C(xl,xl.current&1),C(ot,l),Et===null&&(t===null||Sa.current!==null||t.memoizedState!==null)&&(Et=l)}function cc(l){C(xl,xl.current),C(ot,l),Et===null&&(Et=l)}function er(l){l.tag===22?(C(xl,xl.current),C(ot,l),Et===null&&(Et=l)):he()}function he(){C(xl,xl.current),C(ot,ot.current)}function dt(l){_(ot),Et===l&&(Et=null),_(xl)}var xl=h(0);function sn(l){for(var t=l;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||hf(e)||vf(e)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kt=0,K=null,sl=null,Dl=null,rn=!1,ba=!1,we=!1,on=0,nu=0,pa=null,ph=0;function Al(){throw Error(s(321))}function fc(l,t){if(t===null)return!1;for(var e=0;e<t.length&&e<l.length;e++)if(!st(l[e],t[e]))return!1;return!0}function sc(l,t,e,a,u,n){return Kt=n,K=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=l===null||l.memoizedState===null?Gr:Ec,we=!1,n=e(a,u),we=!1,ba&&(n=ur(t,e,a,u)),ar(l),n}function ar(l){T.H=fu;var t=sl!==null&&sl.next!==null;if(Kt=0,Dl=sl=K=null,rn=!1,nu=0,pa=null,t)throw Error(s(300));l===null||Nl||(l=l.dependencies,l!==null&&ln(l)&&(Nl=!0))}function ur(l,t,e,a){K=l;var u=0;do{if(ba&&(pa=null),nu=0,ba=!1,25<=u)throw Error(s(301));if(u+=1,Dl=sl=null,l.updateQueue!=null){var n=l.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}T.H=Xr,n=t(e,a)}while(ba);return n}function zh(){var l=T.H,t=l.useState()[0];return t=typeof t.then=="function"?iu(t):t,l=l.useState()[0],(sl!==null?sl.memoizedState:null)!==l&&(K.flags|=1024),t}function rc(){var l=on!==0;return on=0,l}function oc(l,t,e){t.updateQueue=l.updateQueue,t.flags&=-2053,l.lanes&=~e}function dc(l){if(rn){for(l=l.memoizedState;l!==null;){var t=l.queue;t!==null&&(t.pending=null),l=l.next}rn=!1}Kt=0,Dl=sl=K=null,ba=!1,nu=on=0,pa=null}function kl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dl===null?K.memoizedState=Dl=l:Dl=Dl.next=l,Dl}function _l(){if(sl===null){var l=K.alternate;l=l!==null?l.memoizedState:null}else l=sl.next;var t=Dl===null?K.memoizedState:Dl.next;if(t!==null)Dl=t,sl=l;else{if(l===null)throw K.alternate===null?Error(s(467)):Error(s(310));sl=l,l={memoizedState:sl.memoizedState,baseState:sl.baseState,baseQueue:sl.baseQueue,queue:sl.queue,next:null},Dl===null?K.memoizedState=Dl=l:Dl=Dl.next=l}return Dl}function dn(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function iu(l){var t=nu;return nu+=1,pa===null&&(pa=[]),l=$s(pa,l,t),t=K,(Dl===null?t.memoizedState:Dl.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?Gr:Ec),l}function mn(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return iu(l);if(l.$$typeof===El)return Ql(l)}throw Error(s(438,String(l)))}function mc(l){var t=null,e=K.updateQueue;if(e!==null&&(t=e.memoCache),t==null){var a=K.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),e===null&&(e=dn(),K.updateQueue=e),e.memoCache=t,e=t.data[t.index],e===void 0)for(e=t.data[t.index]=Array(l),a=0;a<l;a++)e[a]=zl;return t.index++,e}function Jt(l,t){return typeof t=="function"?t(l):t}function hn(l){var t=_l();return hc(t,sl,l)}function hc(l,t,e){var a=l.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var u=l.baseQueue,n=a.pending;if(n!==null){if(u!==null){var i=u.next;u.next=n.next,n.next=i}t.baseQueue=u=n,a.pending=null}if(n=l.baseState,u===null)l.memoizedState=n;else{t=u.next;var c=i=null,r=null,S=t,A=!1;do{var x=S.lane&-536870913;if(x!==S.lane?(I&x)===x:(Kt&x)===x){var b=S.revertLane;if(b===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),x===ha&&(A=!0);else if((Kt&b)===b){S=S.next,b===ha&&(A=!0);continue}else x={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},r===null?(c=r=x,i=n):r=r.next=x,K.lanes|=b,ge|=b;x=S.action,we&&e(n,x),n=S.hasEagerState?S.eagerState:e(n,x)}else b={lane:x,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},r===null?(c=r=b,i=n):r=r.next=b,K.lanes|=x,ge|=x;S=S.next}while(S!==null&&S!==t);if(r===null?i=n:r.next=c,!st(n,l.memoizedState)&&(Nl=!0,A&&(e=va,e!==null)))throw e;l.memoizedState=n,l.baseState=i,l.baseQueue=r,a.lastRenderedState=n}return u===null&&(a.lanes=0),[l.memoizedState,a.dispatch]}function vc(l){var t=_l(),e=t.queue;if(e===null)throw Error(s(311));e.lastRenderedReducer=l;var a=e.dispatch,u=e.pending,n=t.memoizedState;if(u!==null){e.pending=null;var i=u=u.next;do n=l(n,i.action),i=i.next;while(i!==u);st(n,t.memoizedState)||(Nl=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),e.lastRenderedState=n}return[n,a]}function nr(l,t,e){var a=K,u=_l(),n=tl;if(n){if(e===void 0)throw Error(s(407));e=e()}else e=t();var i=!st((sl||u).memoizedState,e);if(i&&(u.memoizedState=e,Nl=!0),u=u.queue,Sc(fr.bind(null,a,u,l),[l]),u.getSnapshot!==t||i||Dl!==null&&Dl.memoizedState.tag&1){if(a.flags|=2048,za(9,{destroy:void 0},cr.bind(null,a,u,e,t),null),ml===null)throw Error(s(349));n||(Kt&127)!==0||ir(a,t,e)}return e}function ir(l,t,e){l.flags|=16384,l={getSnapshot:t,value:e},t=K.updateQueue,t===null?(t=dn(),K.updateQueue=t,t.stores=[l]):(e=t.stores,e===null?t.stores=[l]:e.push(l))}function cr(l,t,e,a){t.value=e,t.getSnapshot=a,sr(t)&&rr(l)}function fr(l,t,e){return e(function(){sr(t)&&rr(l)})}function sr(l){var t=l.getSnapshot;l=l.value;try{var e=t();return!st(l,e)}catch{return!0}}function rr(l){var t=Be(l,2);t!==null&&at(t,l,2)}function yc(l){var t=kl();if(typeof l=="function"){var e=l;if(l=e(),we){ae(!0);try{e()}finally{ae(!1)}}}return t.memoizedState=t.baseState=l,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},t}function or(l,t,e,a){return l.baseState=e,hc(l,sl,typeof a=="function"?a:Jt)}function Ah(l,t,e,a,u){if(gn(l))throw Error(s(485));if(l=t.action,l!==null){var n={payload:u,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){n.listeners.push(i)}};T.T!==null?e(!0):n.isTransition=!1,a(n),e=t.pending,e===null?(n.next=t.pending=n,dr(t,n)):(n.next=e.next,t.pending=e.next=n)}}function dr(l,t){var e=t.action,a=t.payload,u=l.state;if(t.isTransition){var n=T.T,i={};T.T=i;try{var c=e(u,a),r=T.S;r!==null&&r(i,c),mr(l,t,c)}catch(S){gc(l,t,S)}finally{n!==null&&i.types!==null&&(n.types=i.types),T.T=n}}else try{n=e(u,a),mr(l,t,n)}catch(S){gc(l,t,S)}}function mr(l,t,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){hr(l,t,a)},function(a){return gc(l,t,a)}):hr(l,t,e)}function hr(l,t,e){t.status="fulfilled",t.value=e,vr(t),l.state=e,t=l.pending,t!==null&&(e=t.next,e===t?l.pending=null:(e=e.next,t.next=e,dr(l,e)))}function gc(l,t,e){var a=l.pending;if(l.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=e,vr(t),t=t.next;while(t!==a)}l.action=null}function vr(l){l=l.listeners;for(var t=0;t<l.length;t++)(0,l[t])()}function yr(l,t){return t}function gr(l,t){if(tl){var e=ml.formState;if(e!==null){l:{var a=K;if(tl){if(vl){t:{for(var u=vl,n=Tt;u.nodeType!==8;){if(!n){u=null;break t}if(u=Mt(u.nextSibling),u===null){u=null;break t}}n=u.data,u=n==="F!"||n==="F"?u:null}if(u){vl=Mt(u.nextSibling),a=u.data==="F!";break l}}fe(a)}a=!1}a&&(t=e[0])}}return e=kl(),e.memoizedState=e.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:t},e.queue=a,e=Br.bind(null,K,a),a.dispatch=e,a=yc(!1),n=Tc.bind(null,K,!1,a.queue),a=kl(),u={state:t,dispatch:null,action:l,pending:null},a.queue=u,e=Ah.bind(null,K,u,n,e),u.dispatch=e,a.memoizedState=l,[t,e,!1]}function Sr(l){var t=_l();return br(t,sl,l)}function br(l,t,e){if(t=hc(l,t,yr)[0],l=hn(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=iu(t)}catch(i){throw i===ya?an:i}else a=t;t=_l();var u=t.queue,n=u.dispatch;return e!==t.memoizedState&&(K.flags|=2048,za(9,{destroy:void 0},Th.bind(null,u,e),null)),[a,n,l]}function Th(l,t){l.action=t}function pr(l){var t=_l(),e=sl;if(e!==null)return br(t,e,l);_l(),t=t.memoizedState,e=_l();var a=e.queue.dispatch;return e.memoizedState=l,[t,a,!1]}function za(l,t,e,a){return l={tag:l,create:e,deps:a,inst:t,next:null},t=K.updateQueue,t===null&&(t=dn(),K.updateQueue=t),e=t.lastEffect,e===null?t.lastEffect=l.next=l:(a=e.next,e.next=l,l.next=a,t.lastEffect=l),l}function zr(){return _l().memoizedState}function vn(l,t,e,a){var u=kl();K.flags|=l,u.memoizedState=za(1|t,{destroy:void 0},e,a===void 0?null:a)}function yn(l,t,e,a){var u=_l();a=a===void 0?null:a;var n=u.memoizedState.inst;sl!==null&&a!==null&&fc(a,sl.memoizedState.deps)?u.memoizedState=za(t,n,e,a):(K.flags|=l,u.memoizedState=za(1|t,n,e,a))}function Ar(l,t){vn(8390656,8,l,t)}function Sc(l,t){yn(2048,8,l,t)}function Eh(l){K.flags|=4;var t=K.updateQueue;if(t===null)t=dn(),K.updateQueue=t,t.events=[l];else{var e=t.events;e===null?t.events=[l]:e.push(l)}}function Tr(l){var t=_l().memoizedState;return Eh({ref:t,nextImpl:l}),function(){if((ul&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Er(l,t){return yn(4,2,l,t)}function Mr(l,t){return yn(4,4,l,t)}function xr(l,t){if(typeof t=="function"){l=l();var e=t(l);return function(){typeof e=="function"?e():t(null)}}if(t!=null)return l=l(),t.current=l,function(){t.current=null}}function _r(l,t,e){e=e!=null?e.concat([l]):null,yn(4,4,xr.bind(null,t,l),e)}function bc(){}function jr(l,t){var e=_l();t=t===void 0?null:t;var a=e.memoizedState;return t!==null&&fc(t,a[1])?a[0]:(e.memoizedState=[l,t],l)}function Or(l,t){var e=_l();t=t===void 0?null:t;var a=e.memoizedState;if(t!==null&&fc(t,a[1]))return a[0];if(a=l(),we){ae(!0);try{l()}finally{ae(!1)}}return e.memoizedState=[a,t],a}function pc(l,t,e){return e===void 0||(Kt&1073741824)!==0&&(I&261930)===0?l.memoizedState=t:(l.memoizedState=e,l=No(),K.lanes|=l,ge|=l,e)}function Dr(l,t,e,a){return st(e,t)?e:Sa.current!==null?(l=pc(l,e,a),st(l,t)||(Nl=!0),l):(Kt&42)===0||(Kt&1073741824)!==0&&(I&261930)===0?(Nl=!0,l.memoizedState=e):(l=No(),K.lanes|=l,ge|=l,t)}function Nr(l,t,e,a,u){var n=N.p;N.p=n!==0&&8>n?n:8;var i=T.T,c={};T.T=c,Tc(l,!1,t,e);try{var r=u(),S=T.S;if(S!==null&&S(c,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var A=bh(r,a);cu(l,t,A,vt(l))}else cu(l,t,a,vt(l))}catch(x){cu(l,t,{then:function(){},status:"rejected",reason:x},vt())}finally{N.p=n,i!==null&&c.types!==null&&(i.types=c.types),T.T=i}}function Mh(){}function zc(l,t,e,a){if(l.tag!==5)throw Error(s(476));var u=Cr(l).queue;Nr(l,u,t,Q,e===null?Mh:function(){return Ur(l),e(a)})}function Cr(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:Q},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Ur(l){var t=Cr(l);t.next===null&&(t=l.alternate.memoizedState),cu(l,t.next.queue,{},vt())}function Ac(){return Ql(Eu)}function Rr(){return _l().memoizedState}function Hr(){return _l().memoizedState}function xh(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=vt();l=oe(e);var a=de(t,l,e);a!==null&&(at(a,t,e),eu(a,t,e)),t={cache:Fi()},l.payload=t;return}t=t.return}}function _h(l,t,e){var a=vt();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},gn(l)?qr(t,e):(e=Xi(l,t,e,a),e!==null&&(at(e,l,a),Yr(e,t,a)))}function Br(l,t,e){var a=vt();cu(l,t,e,a)}function cu(l,t,e,a){var u={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(gn(l))qr(t,u);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,e);if(u.hasEagerState=!0,u.eagerState=c,st(c,i))return ku(l,t,u,0),ml===null&&Wu(),!1}catch{}finally{}if(e=Xi(l,t,u,a),e!==null)return at(e,l,a),Yr(e,t,a),!0}return!1}function Tc(l,t,e,a){if(a={lane:2,revertLane:tf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},gn(l)){if(t)throw Error(s(479))}else t=Xi(l,e,a,2),t!==null&&at(t,l,2)}function gn(l){var t=l.alternate;return l===K||t!==null&&t===K}function qr(l,t){ba=rn=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function Yr(l,t,e){if((e&4194048)!==0){var a=t.lanes;a&=l.pendingLanes,e|=a,t.lanes=e,Vf(l,e)}}var fu={readContext:Ql,use:mn,useCallback:Al,useContext:Al,useEffect:Al,useImperativeHandle:Al,useLayoutEffect:Al,useInsertionEffect:Al,useMemo:Al,useReducer:Al,useRef:Al,useState:Al,useDebugValue:Al,useDeferredValue:Al,useTransition:Al,useSyncExternalStore:Al,useId:Al,useHostTransitionStatus:Al,useFormState:Al,useActionState:Al,useOptimistic:Al,useMemoCache:Al,useCacheRefresh:Al};fu.useEffectEvent=Al;var Gr={readContext:Ql,use:mn,useCallback:function(l,t){return kl().memoizedState=[l,t===void 0?null:t],l},useContext:Ql,useEffect:Ar,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,vn(4194308,4,xr.bind(null,t,l),e)},useLayoutEffect:function(l,t){return vn(4194308,4,l,t)},useInsertionEffect:function(l,t){vn(4,2,l,t)},useMemo:function(l,t){var e=kl();t=t===void 0?null:t;var a=l();if(we){ae(!0);try{l()}finally{ae(!1)}}return e.memoizedState=[a,t],a},useReducer:function(l,t,e){var a=kl();if(e!==void 0){var u=e(t);if(we){ae(!0);try{e(t)}finally{ae(!1)}}}else u=t;return a.memoizedState=a.baseState=u,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},a.queue=l,l=l.dispatch=_h.bind(null,K,l),[a.memoizedState,l]},useRef:function(l){var t=kl();return l={current:l},t.memoizedState=l},useState:function(l){l=yc(l);var t=l.queue,e=Br.bind(null,K,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:bc,useDeferredValue:function(l,t){var e=kl();return pc(e,l,t)},useTransition:function(){var l=yc(!1);return l=Nr.bind(null,K,l.queue,!0,!1),kl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var a=K,u=kl();if(tl){if(e===void 0)throw Error(s(407));e=e()}else{if(e=t(),ml===null)throw Error(s(349));(I&127)!==0||ir(a,t,e)}u.memoizedState=e;var n={value:e,getSnapshot:t};return u.queue=n,Ar(fr.bind(null,a,n,l),[l]),a.flags|=2048,za(9,{destroy:void 0},cr.bind(null,a,n,e,t),null),e},useId:function(){var l=kl(),t=ml.identifierPrefix;if(tl){var e=Ht,a=Rt;e=(a&~(1<<32-ft(a)-1)).toString(32)+e,t="_"+t+"R_"+e,e=on++,0<e&&(t+="H"+e.toString(32)),t+="_"}else e=ph++,t="_"+t+"r_"+e.toString(32)+"_";return l.memoizedState=t},useHostTransitionStatus:Ac,useFormState:gr,useActionState:gr,useOptimistic:function(l){var t=kl();t.memoizedState=t.baseState=l;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=e,t=Tc.bind(null,K,!0,e),e.dispatch=t,[l,t]},useMemoCache:mc,useCacheRefresh:function(){return kl().memoizedState=xh.bind(null,K)},useEffectEvent:function(l){var t=kl(),e={impl:l};return t.memoizedState=e,function(){if((ul&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}},Ec={readContext:Ql,use:mn,useCallback:jr,useContext:Ql,useEffect:Sc,useImperativeHandle:_r,useInsertionEffect:Er,useLayoutEffect:Mr,useMemo:Or,useReducer:hn,useRef:zr,useState:function(){return hn(Jt)},useDebugValue:bc,useDeferredValue:function(l,t){var e=_l();return Dr(e,sl.memoizedState,l,t)},useTransition:function(){var l=hn(Jt)[0],t=_l().memoizedState;return[typeof l=="boolean"?l:iu(l),t]},useSyncExternalStore:nr,useId:Rr,useHostTransitionStatus:Ac,useFormState:Sr,useActionState:Sr,useOptimistic:function(l,t){var e=_l();return or(e,sl,l,t)},useMemoCache:mc,useCacheRefresh:Hr};Ec.useEffectEvent=Tr;var Xr={readContext:Ql,use:mn,useCallback:jr,useContext:Ql,useEffect:Sc,useImperativeHandle:_r,useInsertionEffect:Er,useLayoutEffect:Mr,useMemo:Or,useReducer:vc,useRef:zr,useState:function(){return vc(Jt)},useDebugValue:bc,useDeferredValue:function(l,t){var e=_l();return sl===null?pc(e,l,t):Dr(e,sl.memoizedState,l,t)},useTransition:function(){var l=vc(Jt)[0],t=_l().memoizedState;return[typeof l=="boolean"?l:iu(l),t]},useSyncExternalStore:nr,useId:Rr,useHostTransitionStatus:Ac,useFormState:pr,useActionState:pr,useOptimistic:function(l,t){var e=_l();return sl!==null?or(e,sl,l,t):(e.baseState=l,[l,e.queue.dispatch])},useMemoCache:mc,useCacheRefresh:Hr};Xr.useEffectEvent=Tr;function Mc(l,t,e,a){t=l.memoizedState,e=e(a,t),e=e==null?t:M({},t,e),l.memoizedState=e,l.lanes===0&&(l.updateQueue.baseState=e)}var xc={enqueueSetState:function(l,t,e){l=l._reactInternals;var a=vt(),u=oe(a);u.payload=t,e!=null&&(u.callback=e),t=de(l,u,a),t!==null&&(at(t,l,a),eu(t,l,a))},enqueueReplaceState:function(l,t,e){l=l._reactInternals;var a=vt(),u=oe(a);u.tag=1,u.payload=t,e!=null&&(u.callback=e),t=de(l,u,a),t!==null&&(at(t,l,a),eu(t,l,a))},enqueueForceUpdate:function(l,t){l=l._reactInternals;var e=vt(),a=oe(e);a.tag=2,t!=null&&(a.callback=t),t=de(l,a,e),t!==null&&(at(t,l,e),eu(t,l,e))}};function Qr(l,t,e,a,u,n,i){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(a,n,i):t.prototype&&t.prototype.isPureReactComponent?!$a(e,a)||!$a(u,n):!0}function Lr(l,t,e,a){l=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(e,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(e,a),t.state!==l&&xc.enqueueReplaceState(t,t.state,null)}function Ke(l,t){var e=t;if("ref"in t){e={};for(var a in t)a!=="ref"&&(e[a]=t[a])}if(l=l.defaultProps){e===t&&(e=M({},e));for(var u in l)e[u]===void 0&&(e[u]=l[u])}return e}function Vr(l){$u(l)}function Zr(l){console.error(l)}function wr(l){$u(l)}function Sn(l,t){try{var e=l.onUncaughtError;e(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Kr(l,t,e){try{var a=l.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function _c(l,t,e){return e=oe(e),e.tag=3,e.payload={element:null},e.callback=function(){Sn(l,t)},e}function Jr(l){return l=oe(l),l.tag=3,l}function $r(l,t,e,a){var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var n=a.value;l.payload=function(){return u(n)},l.callback=function(){Kr(t,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(l.callback=function(){Kr(t,e,a),typeof u!="function"&&(Se===null?Se=new Set([this]):Se.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function jh(l,t,e,a,u){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=e.alternate,t!==null&&ma(t,e,u,!0),e=ot.current,e!==null){switch(e.tag){case 31:case 13:return Et===null?Dn():e.alternate===null&&Tl===0&&(Tl=3),e.flags&=-257,e.flags|=65536,e.lanes=u,a===un?e.flags|=16384:(t=e.updateQueue,t===null?e.updateQueue=new Set([a]):t.add(a),Pc(l,a,u)),!1;case 22:return e.flags|=65536,a===un?e.flags|=16384:(t=e.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=t):(e=t.retryQueue,e===null?t.retryQueue=new Set([a]):e.add(a)),Pc(l,a,u)),!1}throw Error(s(435,e.tag))}return Pc(l,a,u),Dn(),!1}if(tl)return t=ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,a!==Ki&&(l=Error(s(422),{cause:a}),Fa(pt(l,e)))):(a!==Ki&&(t=Error(s(423),{cause:a}),Fa(pt(t,e))),l=l.current.alternate,l.flags|=65536,u&=-u,l.lanes|=u,a=pt(a,e),u=_c(l.stateNode,a,u),ac(l,u),Tl!==4&&(Tl=2)),!1;var n=Error(s(520),{cause:a});if(n=pt(n,e),yu===null?yu=[n]:yu.push(n),Tl!==4&&(Tl=2),t===null)return!0;a=pt(a,e),e=t;do{switch(e.tag){case 3:return e.flags|=65536,l=u&-u,e.lanes|=l,l=_c(e.stateNode,a,l),ac(e,l),!1;case 1:if(t=e.type,n=e.stateNode,(e.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||n!==null&&typeof n.componentDidCatch=="function"&&(Se===null||!Se.has(n))))return e.flags|=65536,u&=-u,e.lanes|=u,u=Jr(u),$r(u,l,e,a),ac(e,u),!1}e=e.return}while(e!==null);return!1}var jc=Error(s(461)),Nl=!1;function Ll(l,t,e,a){t.child=l===null?Ps(t,null,e,a):Ze(t,l.child,e,a)}function Wr(l,t,e,a,u){e=e.render;var n=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Xe(t),a=sc(l,t,e,i,n,u),c=rc(),l!==null&&!Nl?(oc(l,t,u),$t(l,t,u)):(tl&&c&&Zi(t),t.flags|=1,Ll(l,t,a,u),t.child)}function kr(l,t,e,a,u){if(l===null){var n=e.type;return typeof n=="function"&&!Qi(n)&&n.defaultProps===void 0&&e.compare===null?(t.tag=15,t.type=n,Fr(l,t,n,a,u)):(l=Pu(e.type,null,a,t,t.mode,u),l.ref=t.ref,l.return=t,t.child=l)}if(n=l.child,!Bc(l,u)){var i=n.memoizedProps;if(e=e.compare,e=e!==null?e:$a,e(i,a)&&l.ref===t.ref)return $t(l,t,u)}return t.flags|=1,l=Lt(n,a),l.ref=t.ref,l.return=t,t.child=l}function Fr(l,t,e,a,u){if(l!==null){var n=l.memoizedProps;if($a(n,a)&&l.ref===t.ref)if(Nl=!1,t.pendingProps=a=n,Bc(l,u))(l.flags&131072)!==0&&(Nl=!0);else return t.lanes=l.lanes,$t(l,t,u)}return Oc(l,t,e,a,u)}function Pr(l,t,e,a){var u=a.children,n=l!==null?l.memoizedState:null;if(l===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|e:e,l!==null){for(a=t.child=l.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~n}else a=0,t.child=null;return Ir(l,t,n,e,a)}if((e&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},l!==null&&en(t,n!==null?n.cachePool:null),n!==null?tr(t,n):nc(),er(t);else return a=t.lanes=536870912,Ir(l,t,n!==null?n.baseLanes|e:e,e,a)}else n!==null?(en(t,n.cachePool),tr(t,n),he(),t.memoizedState=null):(l!==null&&en(t,null),nc(),he());return Ll(l,t,u,e),t.child}function su(l,t){return l!==null&&l.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Ir(l,t,e,a,u){var n=Ii();return n=n===null?null:{parent:Ol._currentValue,pool:n},t.memoizedState={baseLanes:e,cachePool:n},l!==null&&en(t,null),nc(),er(t),l!==null&&ma(l,t,a,!0),t.childLanes=u,null}function bn(l,t){return t=zn({mode:t.mode,children:t.children},l.mode),t.ref=l.ref,l.child=t,t.return=l,t}function lo(l,t,e){return Ze(t,l.child,null,e),l=bn(t,t.pendingProps),l.flags|=2,dt(t),t.memoizedState=null,l}function Oh(l,t,e){var a=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,l===null){if(tl){if(a.mode==="hidden")return l=bn(t,a),t.lanes=536870912,su(null,l);if(cc(t),(l=vl)?(l=md(l,Tt),l=l!==null&&l.data==="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:ie!==null?{id:Rt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},e=qs(l),e.return=t,t.child=e,Xl=t,vl=null)):l=null,l===null)throw fe(t);return t.lanes=536870912,null}return bn(t,a)}var n=l.memoizedState;if(n!==null){var i=n.dehydrated;if(cc(t),u)if(t.flags&256)t.flags&=-257,t=lo(l,t,e);else if(t.memoizedState!==null)t.child=l.child,t.flags|=128,t=null;else throw Error(s(558));else if(Nl||ma(l,t,e,!1),u=(e&l.childLanes)!==0,Nl||u){if(a=ml,a!==null&&(i=Zf(a,e),i!==0&&i!==n.retryLane))throw n.retryLane=i,Be(l,i),at(a,l,i),jc;Dn(),t=lo(l,t,e)}else l=n.treeContext,vl=Mt(i.nextSibling),Xl=t,tl=!0,ce=null,Tt=!1,l!==null&&Xs(t,l),t=bn(t,a),t.flags|=4096;return t}return l=Lt(l.child,{mode:a.mode,children:a.children}),l.ref=t.ref,t.child=l,l.return=t,l}function pn(l,t){var e=t.ref;if(e===null)l!==null&&l.ref!==null&&(t.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(s(284));(l===null||l.ref!==e)&&(t.flags|=4194816)}}function Oc(l,t,e,a,u){return Xe(t),e=sc(l,t,e,a,void 0,u),a=rc(),l!==null&&!Nl?(oc(l,t,u),$t(l,t,u)):(tl&&a&&Zi(t),t.flags|=1,Ll(l,t,e,u),t.child)}function to(l,t,e,a,u,n){return Xe(t),t.updateQueue=null,e=ur(t,a,e,u),ar(l),a=rc(),l!==null&&!Nl?(oc(l,t,n),$t(l,t,n)):(tl&&a&&Zi(t),t.flags|=1,Ll(l,t,e,n),t.child)}function eo(l,t,e,a,u){if(Xe(t),t.stateNode===null){var n=sa,i=e.contextType;typeof i=="object"&&i!==null&&(n=Ql(i)),n=new e(a,n),t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=xc,t.stateNode=n,n._reactInternals=t,n=t.stateNode,n.props=a,n.state=t.memoizedState,n.refs={},tc(t),i=e.contextType,n.context=typeof i=="object"&&i!==null?Ql(i):sa,n.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Mc(t,e,i,a),n.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(i=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),i!==n.state&&xc.enqueueReplaceState(n,n.state,null),uu(t,a,n,u),au(),n.state=t.memoizedState),typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(l===null){n=t.stateNode;var c=t.memoizedProps,r=Ke(e,c);n.props=r;var S=n.context,A=e.contextType;i=sa,typeof A=="object"&&A!==null&&(i=Ql(A));var x=e.getDerivedStateFromProps;A=typeof x=="function"||typeof n.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,A||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(c||S!==i)&&Lr(t,n,a,i),re=!1;var b=t.memoizedState;n.state=b,uu(t,a,n,u),au(),S=t.memoizedState,c||b!==S||re?(typeof x=="function"&&(Mc(t,e,x,a),S=t.memoizedState),(r=re||Qr(t,e,r,a,b,S,i))?(A||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount=="function"&&(t.flags|=4194308)):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),n.props=a,n.state=S,n.context=i,a=r):(typeof n.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{n=t.stateNode,ec(l,t),i=t.memoizedProps,A=Ke(e,i),n.props=A,x=t.pendingProps,b=n.context,S=e.contextType,r=sa,typeof S=="object"&&S!==null&&(r=Ql(S)),c=e.getDerivedStateFromProps,(S=typeof c=="function"||typeof n.getSnapshotBeforeUpdate=="function")||typeof n.UNSAFE_componentWillReceiveProps!="function"&&typeof n.componentWillReceiveProps!="function"||(i!==x||b!==r)&&Lr(t,n,a,r),re=!1,b=t.memoizedState,n.state=b,uu(t,a,n,u),au();var p=t.memoizedState;i!==x||b!==p||re||l!==null&&l.dependencies!==null&&ln(l.dependencies)?(typeof c=="function"&&(Mc(t,e,c,a),p=t.memoizedState),(A=re||Qr(t,e,A,a,b,p,r)||l!==null&&l.dependencies!==null&&ln(l.dependencies))?(S||typeof n.UNSAFE_componentWillUpdate!="function"&&typeof n.componentWillUpdate!="function"||(typeof n.componentWillUpdate=="function"&&n.componentWillUpdate(a,p,r),typeof n.UNSAFE_componentWillUpdate=="function"&&n.UNSAFE_componentWillUpdate(a,p,r)),typeof n.componentDidUpdate=="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),n.props=a,n.state=p,n.context=r,a=A):(typeof n.componentDidUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!="function"||i===l.memoizedProps&&b===l.memoizedState||(t.flags|=1024),a=!1)}return n=a,pn(l,t),a=(t.flags&128)!==0,n||a?(n=t.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:n.render(),t.flags|=1,l!==null&&a?(t.child=Ze(t,l.child,null,u),t.child=Ze(t,null,e,u)):Ll(l,t,e,u),t.memoizedState=n.state,l=t.child):l=$t(l,t,u),l}function ao(l,t,e,a){return Ye(),t.flags|=256,Ll(l,t,e,a),t.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nc(l){return{baseLanes:l,cachePool:Ks()}}function Cc(l,t,e){return l=l!==null?l.childLanes&~e:0,t&&(l|=ht),l}function uo(l,t,e){var a=t.pendingProps,u=!1,n=(t.flags&128)!==0,i;if((i=n)||(i=l!==null&&l.memoizedState===null?!1:(xl.current&2)!==0),i&&(u=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,l===null){if(tl){if(u?me(t):he(),(l=vl)?(l=md(l,Tt),l=l!==null&&l.data!=="&"?l:null,l!==null&&(t.memoizedState={dehydrated:l,treeContext:ie!==null?{id:Rt,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},e=qs(l),e.return=t,t.child=e,Xl=t,vl=null)):l=null,l===null)throw fe(t);return vf(l)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,u?(he(),u=t.mode,c=zn({mode:"hidden",children:c},u),a=qe(a,u,e,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=Nc(e),a.childLanes=Cc(l,i,e),t.memoizedState=Dc,su(null,a)):(me(t),Uc(t,c))}var r=l.memoizedState;if(r!==null&&(c=r.dehydrated,c!==null)){if(n)t.flags&256?(me(t),t.flags&=-257,t=Rc(l,t,e)):t.memoizedState!==null?(he(),t.child=l.child,t.flags|=128,t=null):(he(),c=a.fallback,u=t.mode,a=zn({mode:"visible",children:a.children},u),c=qe(c,u,e,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,Ze(t,l.child,null,e),a=t.child,a.memoizedState=Nc(e),a.childLanes=Cc(l,i,e),t.memoizedState=Dc,t=su(null,a));else if(me(t),vf(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var S=i.dgst;i=S,a=Error(s(419)),a.stack="",a.digest=i,Fa({value:a,source:null,stack:null}),t=Rc(l,t,e)}else if(Nl||ma(l,t,e,!1),i=(e&l.childLanes)!==0,Nl||i){if(i=ml,i!==null&&(a=Zf(i,e),a!==0&&a!==r.retryLane))throw r.retryLane=a,Be(l,a),at(i,l,a),jc;hf(c)||Dn(),t=Rc(l,t,e)}else hf(c)?(t.flags|=192,t.child=l.child,t=null):(l=r.treeContext,vl=Mt(c.nextSibling),Xl=t,tl=!0,ce=null,Tt=!1,l!==null&&Xs(t,l),t=Uc(t,a.children),t.flags|=4096);return t}return u?(he(),c=a.fallback,u=t.mode,r=l.child,S=r.sibling,a=Lt(r,{mode:"hidden",children:a.children}),a.subtreeFlags=r.subtreeFlags&65011712,S!==null?c=Lt(S,c):(c=qe(c,u,e,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,su(null,a),a=t.child,c=l.child.memoizedState,c===null?c=Nc(e):(u=c.cachePool,u!==null?(r=Ol._currentValue,u=u.parent!==r?{parent:r,pool:r}:u):u=Ks(),c={baseLanes:c.baseLanes|e,cachePool:u}),a.memoizedState=c,a.childLanes=Cc(l,i,e),t.memoizedState=Dc,su(l.child,a)):(me(t),e=l.child,l=e.sibling,e=Lt(e,{mode:"visible",children:a.children}),e.return=t,e.sibling=null,l!==null&&(i=t.deletions,i===null?(t.deletions=[l],t.flags|=16):i.push(l)),t.child=e,t.memoizedState=null,e)}function Uc(l,t){return t=zn({mode:"visible",children:t},l.mode),t.return=l,l.child=t}function zn(l,t){return l=rt(22,l,null,t),l.lanes=0,l}function Rc(l,t,e){return Ze(t,l.child,null,e),l=Uc(t,t.pendingProps.children),l.flags|=2,t.memoizedState=null,l}function no(l,t,e){l.lanes|=t;var a=l.alternate;a!==null&&(a.lanes|=t),Wi(l.return,t,e)}function Hc(l,t,e,a,u,n){var i=l.memoizedState;i===null?l.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:u,treeForkCount:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=u,i.treeForkCount=n)}function io(l,t,e){var a=t.pendingProps,u=a.revealOrder,n=a.tail;a=a.children;var i=xl.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,C(xl,i),Ll(l,t,a,e),a=tl?ka:0,!c&&l!==null&&(l.flags&128)!==0)l:for(l=t.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&no(l,e,t);else if(l.tag===19)no(l,e,t);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break l;for(;l.sibling===null;){if(l.return===null||l.return===t)break l;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(u){case"forwards":for(e=t.child,u=null;e!==null;)l=e.alternate,l!==null&&sn(l)===null&&(u=e),e=e.sibling;e=u,e===null?(u=t.child,t.child=null):(u=e.sibling,e.sibling=null),Hc(t,!1,u,e,n,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,u=t.child,t.child=null;u!==null;){if(l=u.alternate,l!==null&&sn(l)===null){t.child=u;break}l=u.sibling,u.sibling=e,e=u,u=l}Hc(t,!0,e,null,n,a);break;case"together":Hc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function $t(l,t,e){if(l!==null&&(t.dependencies=l.dependencies),ge|=t.lanes,(e&t.childLanes)===0)if(l!==null){if(ma(l,t,e,!1),(e&t.childLanes)===0)return null}else return null;if(l!==null&&t.child!==l.child)throw Error(s(153));if(t.child!==null){for(l=t.child,e=Lt(l,l.pendingProps),t.child=e,e.return=t;l.sibling!==null;)l=l.sibling,e=e.sibling=Lt(l,l.pendingProps),e.return=t;e.sibling=null}return t.child}function Bc(l,t){return(l.lanes&t)!==0?!0:(l=l.dependencies,!!(l!==null&&ln(l)))}function Dh(l,t,e){switch(t.tag){case 3:Wl(t,t.stateNode.containerInfo),se(t,Ol,l.memoizedState.cache),Ye();break;case 27:case 5:Ha(t);break;case 4:Wl(t,t.stateNode.containerInfo);break;case 10:se(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(me(t),t.flags|=128,null):(e&t.child.childLanes)!==0?uo(l,t,e):(me(t),l=$t(l,t,e),l!==null?l.sibling:null);me(t);break;case 19:var u=(l.flags&128)!==0;if(a=(e&t.childLanes)!==0,a||(ma(l,t,e,!1),a=(e&t.childLanes)!==0),u){if(a)return io(l,t,e);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),C(xl,xl.current),a)break;return null;case 22:return t.lanes=0,Pr(l,t,e,t.pendingProps);case 24:se(t,Ol,l.memoizedState.cache)}return $t(l,t,e)}function co(l,t,e){if(l!==null)if(l.memoizedProps!==t.pendingProps)Nl=!0;else{if(!Bc(l,e)&&(t.flags&128)===0)return Nl=!1,Dh(l,t,e);Nl=(l.flags&131072)!==0}else Nl=!1,tl&&(t.flags&1048576)!==0&&Gs(t,ka,t.index);switch(t.lanes=0,t.tag){case 16:l:{var a=t.pendingProps;if(l=Le(t.elementType),t.type=l,typeof l=="function")Qi(l)?(a=Ke(l,a),t.tag=1,t=eo(null,t,l,a,e)):(t.tag=0,t=Oc(null,t,l,a,e));else{if(l!=null){var u=l.$$typeof;if(u===$l){t.tag=11,t=Wr(null,t,l,a,e);break l}else if(u===W){t.tag=14,t=kr(null,t,l,a,e);break l}}throw t=Yt(l)||l,Error(s(306,t,""))}}return t;case 0:return Oc(l,t,t.type,t.pendingProps,e);case 1:return a=t.type,u=Ke(a,t.pendingProps),eo(l,t,a,u,e);case 3:l:{if(Wl(t,t.stateNode.containerInfo),l===null)throw Error(s(387));a=t.pendingProps;var n=t.memoizedState;u=n.element,ec(l,t),uu(t,a,null,e);var i=t.memoizedState;if(a=i.cache,se(t,Ol,a),a!==n.cache&&ki(t,[Ol],e,!0),au(),a=i.element,n.isDehydrated)if(n={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=ao(l,t,a,e);break l}else if(a!==u){u=pt(Error(s(424)),t),Fa(u),t=ao(l,t,a,e);break l}else{switch(l=t.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(vl=Mt(l.firstChild),Xl=t,tl=!0,ce=null,Tt=!0,e=Ps(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ye(),a===u){t=$t(l,t,e);break l}Ll(l,t,a,e)}t=t.child}return t;case 26:return pn(l,t),l===null?(e=bd(t.type,null,t.pendingProps,null))?t.memoizedState=e:tl||(e=t.type,l=t.pendingProps,a=qn(k.current).createElement(e),a[Gl]=t,a[Fl]=l,Vl(a,e,l),Hl(a),t.stateNode=a):t.memoizedState=bd(t.type,l.memoizedProps,t.pendingProps,l.memoizedState),null;case 27:return Ha(t),l===null&&tl&&(a=t.stateNode=yd(t.type,t.pendingProps,k.current),Xl=t,Tt=!0,u=vl,Ae(t.type)?(yf=u,vl=Mt(a.firstChild)):vl=u),Ll(l,t,t.pendingProps.children,e),pn(l,t),l===null&&(t.flags|=4194304),t.child;case 5:return l===null&&tl&&((u=a=vl)&&(a=iv(a,t.type,t.pendingProps,Tt),a!==null?(t.stateNode=a,Xl=t,vl=Mt(a.firstChild),Tt=!1,u=!0):u=!1),u||fe(t)),Ha(t),u=t.type,n=t.pendingProps,i=l!==null?l.memoizedProps:null,a=n.children,of(u,n)?a=null:i!==null&&of(u,i)&&(t.flags|=32),t.memoizedState!==null&&(u=sc(l,t,zh,null,null,e),Eu._currentValue=u),pn(l,t),Ll(l,t,a,e),t.child;case 6:return l===null&&tl&&((l=e=vl)&&(e=cv(e,t.pendingProps,Tt),e!==null?(t.stateNode=e,Xl=t,vl=null,l=!0):l=!1),l||fe(t)),null;case 13:return uo(l,t,e);case 4:return Wl(t,t.stateNode.containerInfo),a=t.pendingProps,l===null?t.child=Ze(t,null,a,e):Ll(l,t,a,e),t.child;case 11:return Wr(l,t,t.type,t.pendingProps,e);case 7:return Ll(l,t,t.pendingProps,e),t.child;case 8:return Ll(l,t,t.pendingProps.children,e),t.child;case 12:return Ll(l,t,t.pendingProps.children,e),t.child;case 10:return a=t.pendingProps,se(t,t.type,a.value),Ll(l,t,a.children,e),t.child;case 9:return u=t.type._context,a=t.pendingProps.children,Xe(t),u=Ql(u),a=a(u),t.flags|=1,Ll(l,t,a,e),t.child;case 14:return kr(l,t,t.type,t.pendingProps,e);case 15:return Fr(l,t,t.type,t.pendingProps,e);case 19:return io(l,t,e);case 31:return Oh(l,t,e);case 22:return Pr(l,t,e,t.pendingProps);case 24:return Xe(t),a=Ql(Ol),l===null?(u=Ii(),u===null&&(u=ml,n=Fi(),u.pooledCache=n,n.refCount++,n!==null&&(u.pooledCacheLanes|=e),u=n),t.memoizedState={parent:a,cache:u},tc(t),se(t,Ol,u)):((l.lanes&e)!==0&&(ec(l,t),uu(t,null,null,e),au()),u=l.memoizedState,n=t.memoizedState,u.parent!==a?(u={parent:a,cache:a},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),se(t,Ol,a)):(a=n.cache,se(t,Ol,a),a!==u.cache&&ki(t,[Ol],e,!0))),Ll(l,t,t.pendingProps.children,e),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Wt(l){l.flags|=4}function qc(l,t,e,a,u){if((t=(l.mode&32)!==0)&&(t=!1),t){if(l.flags|=16777216,(u&335544128)===u)if(l.stateNode.complete)l.flags|=8192;else if(Ho())l.flags|=8192;else throw Ve=un,lc}else l.flags&=-16777217}function fo(l,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!Ed(t))if(Ho())l.flags|=8192;else throw Ve=un,lc}function An(l,t){t!==null&&(l.flags|=4),l.flags&16384&&(t=l.tag!==22?Qf():536870912,l.lanes|=t,Ma|=t)}function ru(l,t){if(!tl)switch(l.tailMode){case"hidden":t=l.tail;for(var e=null;t!==null;)t.alternate!==null&&(e=t),t=t.sibling;e===null?l.tail=null:e.sibling=null;break;case"collapsed":e=l.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t||l.tail===null?l.tail=null:l.tail.sibling=null:a.sibling=null}}function yl(l){var t=l.alternate!==null&&l.alternate.child===l.child,e=0,a=0;if(t)for(var u=l.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=l,u=u.sibling;else for(u=l.child;u!==null;)e|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=l,u=u.sibling;return l.subtreeFlags|=a,l.childLanes=e,t}function Nh(l,t,e){var a=t.pendingProps;switch(wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yl(t),null;case 1:return yl(t),null;case 3:return e=t.stateNode,a=null,l!==null&&(a=l.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),wt(Ol),Ml(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(l===null||l.child===null)&&(da(t)?Wt(t):l===null||l.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ji())),yl(t),null;case 26:var u=t.type,n=t.memoizedState;return l===null?(Wt(t),n!==null?(yl(t),fo(t,n)):(yl(t),qc(t,u,null,a,e))):n?n!==l.memoizedState?(Wt(t),yl(t),fo(t,n)):(yl(t),t.flags&=-16777217):(l=l.memoizedProps,l!==a&&Wt(t),yl(t),qc(t,u,l,a,e)),null;case 27:if(Cu(t),e=k.current,u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return yl(t),null}l=H.current,da(t)?Qs(t):(l=yd(u,a,e),t.stateNode=l,Wt(t))}return yl(t),null;case 5:if(Cu(t),u=t.type,l!==null&&t.stateNode!=null)l.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return yl(t),null}if(n=H.current,da(t))Qs(t);else{var i=qn(k.current);switch(n){case 1:n=i.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:n=i.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":n=i.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":n=i.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":n=i.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?n.multiple=!0:a.size&&(n.size=a.size);break;default:n=typeof a.is=="string"?i.createElement(u,{is:a.is}):i.createElement(u)}}n[Gl]=t,n[Fl]=a;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;l:switch(Vl(n,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break l;case"img":a=!0;break l;default:a=!1}a&&Wt(t)}}return yl(t),qc(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==a&&Wt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(l=k.current,da(t)){if(l=t.stateNode,e=t.memoizedProps,a=null,u=Xl,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}l[Gl]=t,l=!!(l.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||nd(l.nodeValue,e)),l||fe(t,!0)}else l=qn(l).createTextNode(a),l[Gl]=t,t.stateNode=l}return yl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(a=da(t),e!==null){if(l===null){if(!a)throw Error(s(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(s(557));l[Gl]=t}else Ye(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yl(t),l=!1}else e=Ji(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(dt(t),t):(dt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return yl(t),null;case 13:if(a=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(u=da(t),a!==null&&a.dehydrated!==null){if(l===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Gl]=t}else Ye(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yl(t),u=!1}else u=Ji(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(dt(t),t):(dt(t),null)}return dt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=a!==null,l=l!==null&&l.memoizedState!==null,e&&(a=t.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==u&&(a.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),An(t,t.updateQueue),yl(t),null);case 4:return Ml(),l===null&&nf(t.stateNode.containerInfo),yl(t),null;case 10:return wt(t.type),yl(t),null;case 19:if(_(xl),a=t.memoizedState,a===null)return yl(t),null;if(u=(t.flags&128)!==0,n=a.rendering,n===null)if(u)ru(a,!1);else{if(Tl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=sn(l),n!==null){for(t.flags|=128,ru(a,!1),l=n.updateQueue,t.updateQueue=l,An(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Bs(e,l),e=e.sibling;return C(xl,xl.current&1|2),tl&&Vt(t,a.treeForkCount),t.child}l=l.sibling}a.tail!==null&&it()>_n&&(t.flags|=128,u=!0,ru(a,!1),t.lanes=4194304)}else{if(!u)if(l=sn(n),l!==null){if(t.flags|=128,u=!0,l=l.updateQueue,t.updateQueue=l,An(t,l),ru(a,!0),a.tail===null&&a.tailMode==="hidden"&&!n.alternate&&!tl)return yl(t),null}else 2*it()-a.renderingStartTime>_n&&e!==536870912&&(t.flags|=128,u=!0,ru(a,!1),t.lanes=4194304);a.isBackwards?(n.sibling=t.child,t.child=n):(l=a.last,l!==null?l.sibling=n:t.child=n,a.last=n)}return a.tail!==null?(l=a.tail,a.rendering=l,a.tail=l.sibling,a.renderingStartTime=it(),l.sibling=null,e=xl.current,C(xl,u?e&1|2:e&1),tl&&Vt(t,a.treeForkCount),l):(yl(t),null);case 22:case 23:return dt(t),ic(),a=t.memoizedState!==null,l!==null?l.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(e&536870912)!==0&&(t.flags&128)===0&&(yl(t),t.subtreeFlags&6&&(t.flags|=8192)):yl(t),e=t.updateQueue,e!==null&&An(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==e&&(t.flags|=2048),l!==null&&_(Qe),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),wt(Ol),yl(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ch(l,t){switch(wi(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return wt(Ol),Ml(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return Cu(t),null;case 31:if(t.memoizedState!==null){if(dt(t),t.alternate===null)throw Error(s(340));Ye()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(dt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ye()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return _(xl),null;case 4:return Ml(),null;case 10:return wt(t.type),null;case 22:case 23:return dt(t),ic(),l!==null&&_(Qe),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return wt(Ol),null;case 25:return null;default:return null}}function so(l,t){switch(wi(t),t.tag){case 3:wt(Ol),Ml();break;case 26:case 27:case 5:Cu(t);break;case 4:Ml();break;case 31:t.memoizedState!==null&&dt(t);break;case 13:dt(t);break;case 19:_(xl);break;case 10:wt(t.type);break;case 22:case 23:dt(t),ic(),l!==null&&_(Qe);break;case 24:wt(Ol)}}function ou(l,t){try{var e=t.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var u=a.next;e=u;do{if((e.tag&l)===l){a=void 0;var n=e.create,i=e.inst;a=n(),i.destroy=a}e=e.next}while(e!==u)}}catch(c){cl(t,t.return,c)}}function ve(l,t,e){try{var a=t.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var n=u.next;a=n;do{if((a.tag&l)===l){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,u=t;var r=e,S=c;try{S()}catch(A){cl(u,r,A)}}}a=a.next}while(a!==n)}}catch(A){cl(t,t.return,A)}}function ro(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{lr(t,e)}catch(a){cl(l,l.return,a)}}}function oo(l,t,e){e.props=Ke(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(a){cl(l,t,a)}}function du(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var a=l.stateNode;break;case 30:a=l.stateNode;break;default:a=l.stateNode}typeof e=="function"?l.refCleanup=e(a):e.current=a}}catch(u){cl(l,t,u)}}function Bt(l,t){var e=l.ref,a=l.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(u){cl(l,t,u)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(u){cl(l,t,u)}else e.current=null}function mo(l){var t=l.type,e=l.memoizedProps,a=l.stateNode;try{l:switch(t){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break l;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(u){cl(l,l.return,u)}}function Yc(l,t,e){try{var a=l.stateNode;lv(a,l.type,e,t),a[Fl]=t}catch(u){cl(l,l.return,u)}}function ho(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Ae(l.type)||l.tag===4}function Gc(l){l:for(;;){for(;l.sibling===null;){if(l.return===null||ho(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Ae(l.type)||l.flags&2||l.child===null||l.tag===4)continue l;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function Xc(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(l,t):(t=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.appendChild(l),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Xt));else if(a!==4&&(a===27&&Ae(l.type)&&(e=l.stateNode,t=null),l=l.child,l!==null))for(Xc(l,t,e),l=l.sibling;l!==null;)Xc(l,t,e),l=l.sibling}function Tn(l,t,e){var a=l.tag;if(a===5||a===6)l=l.stateNode,t?e.insertBefore(l,t):e.appendChild(l);else if(a!==4&&(a===27&&Ae(l.type)&&(e=l.stateNode),l=l.child,l!==null))for(Tn(l,t,e),l=l.sibling;l!==null;)Tn(l,t,e),l=l.sibling}function vo(l){var t=l.stateNode,e=l.memoizedProps;try{for(var a=l.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Vl(t,a,e),t[Gl]=l,t[Fl]=e}catch(n){cl(l,l.return,n)}}var kt=!1,Cl=!1,Qc=!1,yo=typeof WeakSet=="function"?WeakSet:Set,Bl=null;function Uh(l,t){if(l=l.containerInfo,sf=Zn,l=_s(l),Ri(l)){if("selectionStart"in l)var e={start:l.selectionStart,end:l.selectionEnd};else l:{e=(e=l.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var u=a.anchorOffset,n=a.focusNode;a=a.focusOffset;try{e.nodeType,n.nodeType}catch{e=null;break l}var i=0,c=-1,r=-1,S=0,A=0,x=l,b=null;t:for(;;){for(var p;x!==e||u!==0&&x.nodeType!==3||(c=i+u),x!==n||a!==0&&x.nodeType!==3||(r=i+a),x.nodeType===3&&(i+=x.nodeValue.length),(p=x.firstChild)!==null;)b=x,x=p;for(;;){if(x===l)break t;if(b===e&&++S===u&&(c=i),b===n&&++A===a&&(r=i),(p=x.nextSibling)!==null)break;x=b,b=x.parentNode}x=p}e=c===-1||r===-1?null:{start:c,end:r}}else e=null}e=e||{start:0,end:0}}else e=null;for(rf={focusedElem:l,selectionRange:e},Zn=!1,Bl=t;Bl!==null;)if(t=Bl,l=t.child,(t.subtreeFlags&1028)!==0&&l!==null)l.return=t,Bl=l;else for(;Bl!==null;){switch(t=Bl,n=t.alternate,l=t.flags,t.tag){case 0:if((l&4)!==0&&(l=t.updateQueue,l=l!==null?l.events:null,l!==null))for(e=0;e<l.length;e++)u=l[e],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((l&1024)!==0&&n!==null){l=void 0,e=t,u=n.memoizedProps,n=n.memoizedState,a=e.stateNode;try{var R=Ke(e.type,u);l=a.getSnapshotBeforeUpdate(R,n),a.__reactInternalSnapshotBeforeUpdate=l}catch(G){cl(e,e.return,G)}}break;case 3:if((l&1024)!==0){if(l=t.stateNode.containerInfo,e=l.nodeType,e===9)mf(l);else if(e===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":mf(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(s(163))}if(l=t.sibling,l!==null){l.return=t.return,Bl=l;break}Bl=t.return}}function go(l,t,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Pt(l,e),a&4&&ou(5,e);break;case 1:if(Pt(l,e),a&4)if(l=e.stateNode,t===null)try{l.componentDidMount()}catch(i){cl(e,e.return,i)}else{var u=Ke(e.type,t.memoizedProps);t=t.memoizedState;try{l.componentDidUpdate(u,t,l.__reactInternalSnapshotBeforeUpdate)}catch(i){cl(e,e.return,i)}}a&64&&ro(e),a&512&&du(e,e.return);break;case 3:if(Pt(l,e),a&64&&(l=e.updateQueue,l!==null)){if(t=null,e.child!==null)switch(e.child.tag){case 27:case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}try{lr(l,t)}catch(i){cl(e,e.return,i)}}break;case 27:t===null&&a&4&&vo(e);case 26:case 5:Pt(l,e),t===null&&a&4&&mo(e),a&512&&du(e,e.return);break;case 12:Pt(l,e);break;case 31:Pt(l,e),a&4&&po(l,e);break;case 13:Pt(l,e),a&4&&zo(l,e),a&64&&(l=e.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(e=Lh.bind(null,e),fv(l,e))));break;case 22:if(a=e.memoizedState!==null||kt,!a){t=t!==null&&t.memoizedState!==null||Cl,u=kt;var n=Cl;kt=a,(Cl=t)&&!n?It(l,e,(e.subtreeFlags&8772)!==0):Pt(l,e),kt=u,Cl=n}break;case 30:break;default:Pt(l,e)}}function So(l){var t=l.alternate;t!==null&&(l.alternate=null,So(t)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(t=l.stateNode,t!==null&&gi(t)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var Sl=null,Il=!1;function Ft(l,t,e){for(e=e.child;e!==null;)bo(l,t,e),e=e.sibling}function bo(l,t,e){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ba,e)}catch{}switch(e.tag){case 26:Cl||Bt(e,t),Ft(l,t,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Cl||Bt(e,t);var a=Sl,u=Il;Ae(e.type)&&(Sl=e.stateNode,Il=!1),Ft(l,t,e),zu(e.stateNode),Sl=a,Il=u;break;case 5:Cl||Bt(e,t);case 6:if(a=Sl,u=Il,Sl=null,Ft(l,t,e),Sl=a,Il=u,Sl!==null)if(Il)try{(Sl.nodeType===9?Sl.body:Sl.nodeName==="HTML"?Sl.ownerDocument.body:Sl).removeChild(e.stateNode)}catch(n){cl(e,t,n)}else try{Sl.removeChild(e.stateNode)}catch(n){cl(e,t,n)}break;case 18:Sl!==null&&(Il?(l=Sl,od(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.stateNode),Ua(l)):od(Sl,e.stateNode));break;case 4:a=Sl,u=Il,Sl=e.stateNode.containerInfo,Il=!0,Ft(l,t,e),Sl=a,Il=u;break;case 0:case 11:case 14:case 15:ve(2,e,t),Cl||ve(4,e,t),Ft(l,t,e);break;case 1:Cl||(Bt(e,t),a=e.stateNode,typeof a.componentWillUnmount=="function"&&oo(e,t,a)),Ft(l,t,e);break;case 21:Ft(l,t,e);break;case 22:Cl=(a=Cl)||e.memoizedState!==null,Ft(l,t,e),Cl=a;break;default:Ft(l,t,e)}}function po(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{Ua(l)}catch(e){cl(t,t.return,e)}}}function zo(l,t){if(t.memoizedState===null&&(l=t.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Ua(l)}catch(e){cl(t,t.return,e)}}function Rh(l){switch(l.tag){case 31:case 13:case 19:var t=l.stateNode;return t===null&&(t=l.stateNode=new yo),t;case 22:return l=l.stateNode,t=l._retryCache,t===null&&(t=l._retryCache=new yo),t;default:throw Error(s(435,l.tag))}}function En(l,t){var e=Rh(l);t.forEach(function(a){if(!e.has(a)){e.add(a);var u=Vh.bind(null,l,a);a.then(u,u)}})}function lt(l,t){var e=t.deletions;if(e!==null)for(var a=0;a<e.length;a++){var u=e[a],n=l,i=t,c=i;l:for(;c!==null;){switch(c.tag){case 27:if(Ae(c.type)){Sl=c.stateNode,Il=!1;break l}break;case 5:Sl=c.stateNode,Il=!1;break l;case 3:case 4:Sl=c.stateNode.containerInfo,Il=!0;break l}c=c.return}if(Sl===null)throw Error(s(160));bo(n,i,u),Sl=null,Il=!1,n=u.alternate,n!==null&&(n.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ao(t,l),t=t.sibling}var Dt=null;function Ao(l,t){var e=l.alternate,a=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:lt(t,l),tt(l),a&4&&(ve(3,l,l.return),ou(3,l),ve(5,l,l.return));break;case 1:lt(t,l),tt(l),a&512&&(Cl||e===null||Bt(e,e.return)),a&64&&kt&&(l=l.updateQueue,l!==null&&(a=l.callbacks,a!==null&&(e=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var u=Dt;if(lt(t,l),tt(l),a&512&&(Cl||e===null||Bt(e,e.return)),a&4){var n=e!==null?e.memoizedState:null;if(a=l.memoizedState,e===null)if(a===null)if(l.stateNode===null){l:{a=l.type,e=l.memoizedProps,u=u.ownerDocument||u;t:switch(a){case"title":n=u.getElementsByTagName("title")[0],(!n||n[Ga]||n[Gl]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=u.createElement(a),u.head.insertBefore(n,u.querySelector("head > title"))),Vl(n,a,e),n[Gl]=l,Hl(n),a=n;break l;case"link":var i=Ad("link","href",u).get(a+(e.href||""));if(i){for(var c=0;c<i.length;c++)if(n=i[c],n.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&n.getAttribute("rel")===(e.rel==null?null:e.rel)&&n.getAttribute("title")===(e.title==null?null:e.title)&&n.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(c,1);break t}}n=u.createElement(a),Vl(n,a,e),u.head.appendChild(n);break;case"meta":if(i=Ad("meta","content",u).get(a+(e.content||""))){for(c=0;c<i.length;c++)if(n=i[c],n.getAttribute("content")===(e.content==null?null:""+e.content)&&n.getAttribute("name")===(e.name==null?null:e.name)&&n.getAttribute("property")===(e.property==null?null:e.property)&&n.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&n.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(c,1);break t}}n=u.createElement(a),Vl(n,a,e),u.head.appendChild(n);break;default:throw Error(s(468,a))}n[Gl]=l,Hl(n),a=n}l.stateNode=a}else Td(u,l.type,l.stateNode);else l.stateNode=zd(u,a,l.memoizedProps);else n!==a?(n===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):n.count--,a===null?Td(u,l.type,l.stateNode):zd(u,a,l.memoizedProps)):a===null&&l.stateNode!==null&&Yc(l,l.memoizedProps,e.memoizedProps)}break;case 27:lt(t,l),tt(l),a&512&&(Cl||e===null||Bt(e,e.return)),e!==null&&a&4&&Yc(l,l.memoizedProps,e.memoizedProps);break;case 5:if(lt(t,l),tt(l),a&512&&(Cl||e===null||Bt(e,e.return)),l.flags&32){u=l.stateNode;try{ea(u,"")}catch(R){cl(l,l.return,R)}}a&4&&l.stateNode!=null&&(u=l.memoizedProps,Yc(l,u,e!==null?e.memoizedProps:u)),a&1024&&(Qc=!0);break;case 6:if(lt(t,l),tt(l),a&4){if(l.stateNode===null)throw Error(s(162));a=l.memoizedProps,e=l.stateNode;try{e.nodeValue=a}catch(R){cl(l,l.return,R)}}break;case 3:if(Xn=null,u=Dt,Dt=Yn(t.containerInfo),lt(t,l),Dt=u,tt(l),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Ua(t.containerInfo)}catch(R){cl(l,l.return,R)}Qc&&(Qc=!1,To(l));break;case 4:a=Dt,Dt=Yn(l.stateNode.containerInfo),lt(t,l),tt(l),Dt=a;break;case 12:lt(t,l),tt(l);break;case 31:lt(t,l),tt(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,En(l,a)));break;case 13:lt(t,l),tt(l),l.child.flags&8192&&l.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(xn=it()),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,En(l,a)));break;case 22:u=l.memoizedState!==null;var r=e!==null&&e.memoizedState!==null,S=kt,A=Cl;if(kt=S||u,Cl=A||r,lt(t,l),Cl=A,kt=S,tt(l),a&8192)l:for(t=l.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(e===null||r||kt||Cl||Je(l)),e=null,t=l;;){if(t.tag===5||t.tag===26){if(e===null){r=e=t;try{if(n=r.stateNode,u)i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=r.stateNode;var x=r.memoizedProps.style,b=x!=null&&x.hasOwnProperty("display")?x.display:null;c.style.display=b==null||typeof b=="boolean"?"":(""+b).trim()}}catch(R){cl(r,r.return,R)}}}else if(t.tag===6){if(e===null){r=t;try{r.stateNode.nodeValue=u?"":r.memoizedProps}catch(R){cl(r,r.return,R)}}}else if(t.tag===18){if(e===null){r=t;try{var p=r.stateNode;u?dd(p,!0):dd(r.stateNode,!1)}catch(R){cl(r,r.return,R)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===l)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break l;for(;t.sibling===null;){if(t.return===null||t.return===l)break l;e===t&&(e=null),t=t.return}e===t&&(e=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=l.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,En(l,e))));break;case 19:lt(t,l),tt(l),a&4&&(a=l.updateQueue,a!==null&&(l.updateQueue=null,En(l,a)));break;case 30:break;case 21:break;default:lt(t,l),tt(l)}}function tt(l){var t=l.flags;if(t&2){try{for(var e,a=l.return;a!==null;){if(ho(a)){e=a;break}a=a.return}if(e==null)throw Error(s(160));switch(e.tag){case 27:var u=e.stateNode,n=Gc(l);Tn(l,n,u);break;case 5:var i=e.stateNode;e.flags&32&&(ea(i,""),e.flags&=-33);var c=Gc(l);Tn(l,c,i);break;case 3:case 4:var r=e.stateNode.containerInfo,S=Gc(l);Xc(l,S,r);break;default:throw Error(s(161))}}catch(A){cl(l,l.return,A)}l.flags&=-3}t&4096&&(l.flags&=-4097)}function To(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var t=l;To(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),l=l.sibling}}function Pt(l,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)go(l,t.alternate,t),t=t.sibling}function Je(l){for(l=l.child;l!==null;){var t=l;switch(t.tag){case 0:case 11:case 14:case 15:ve(4,t,t.return),Je(t);break;case 1:Bt(t,t.return);var e=t.stateNode;typeof e.componentWillUnmount=="function"&&oo(t,t.return,e),Je(t);break;case 27:zu(t.stateNode);case 26:case 5:Bt(t,t.return),Je(t);break;case 22:t.memoizedState===null&&Je(t);break;case 30:Je(t);break;default:Je(t)}l=l.sibling}}function It(l,t,e){for(e=e&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,u=l,n=t,i=n.flags;switch(n.tag){case 0:case 11:case 15:It(u,n,e),ou(4,n);break;case 1:if(It(u,n,e),a=n,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(S){cl(a,a.return,S)}if(a=n,u=a.updateQueue,u!==null){var c=a.stateNode;try{var r=u.shared.hiddenCallbacks;if(r!==null)for(u.shared.hiddenCallbacks=null,u=0;u<r.length;u++)Is(r[u],c)}catch(S){cl(a,a.return,S)}}e&&i&64&&ro(n),du(n,n.return);break;case 27:vo(n);case 26:case 5:It(u,n,e),e&&a===null&&i&4&&mo(n),du(n,n.return);break;case 12:It(u,n,e);break;case 31:It(u,n,e),e&&i&4&&po(u,n);break;case 13:It(u,n,e),e&&i&4&&zo(u,n);break;case 22:n.memoizedState===null&&It(u,n,e),du(n,n.return);break;case 30:break;default:It(u,n,e)}t=t.sibling}}function Lc(l,t){var e=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==e&&(l!=null&&l.refCount++,e!=null&&Pa(e))}function Vc(l,t){l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Pa(l))}function Nt(l,t,e,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Eo(l,t,e,a),t=t.sibling}function Eo(l,t,e,a){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Nt(l,t,e,a),u&2048&&ou(9,t);break;case 1:Nt(l,t,e,a);break;case 3:Nt(l,t,e,a),u&2048&&(l=null,t.alternate!==null&&(l=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==l&&(t.refCount++,l!=null&&Pa(l)));break;case 12:if(u&2048){Nt(l,t,e,a),l=t.stateNode;try{var n=t.memoizedProps,i=n.id,c=n.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(r){cl(t,t.return,r)}}else Nt(l,t,e,a);break;case 31:Nt(l,t,e,a);break;case 13:Nt(l,t,e,a);break;case 23:break;case 22:n=t.stateNode,i=t.alternate,t.memoizedState!==null?n._visibility&2?Nt(l,t,e,a):mu(l,t):n._visibility&2?Nt(l,t,e,a):(n._visibility|=2,Aa(l,t,e,a,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Lc(i,t);break;case 24:Nt(l,t,e,a),u&2048&&Vc(t.alternate,t);break;default:Nt(l,t,e,a)}}function Aa(l,t,e,a,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var n=l,i=t,c=e,r=a,S=i.flags;switch(i.tag){case 0:case 11:case 15:Aa(n,i,c,r,u),ou(8,i);break;case 23:break;case 22:var A=i.stateNode;i.memoizedState!==null?A._visibility&2?Aa(n,i,c,r,u):mu(n,i):(A._visibility|=2,Aa(n,i,c,r,u)),u&&S&2048&&Lc(i.alternate,i);break;case 24:Aa(n,i,c,r,u),u&&S&2048&&Vc(i.alternate,i);break;default:Aa(n,i,c,r,u)}t=t.sibling}}function mu(l,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var e=l,a=t,u=a.flags;switch(a.tag){case 22:mu(e,a),u&2048&&Lc(a.alternate,a);break;case 24:mu(e,a),u&2048&&Vc(a.alternate,a);break;default:mu(e,a)}t=t.sibling}}var hu=8192;function Ta(l,t,e){if(l.subtreeFlags&hu)for(l=l.child;l!==null;)Mo(l,t,e),l=l.sibling}function Mo(l,t,e){switch(l.tag){case 26:Ta(l,t,e),l.flags&hu&&l.memoizedState!==null&&pv(e,Dt,l.memoizedState,l.memoizedProps);break;case 5:Ta(l,t,e);break;case 3:case 4:var a=Dt;Dt=Yn(l.stateNode.containerInfo),Ta(l,t,e),Dt=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=hu,hu=16777216,Ta(l,t,e),hu=a):Ta(l,t,e));break;default:Ta(l,t,e)}}function xo(l){var t=l.alternate;if(t!==null&&(l=t.child,l!==null)){t.child=null;do t=l.sibling,l.sibling=null,l=t;while(l!==null)}}function vu(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Bl=a,jo(a,l)}xo(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)_o(l),l=l.sibling}function _o(l){switch(l.tag){case 0:case 11:case 15:vu(l),l.flags&2048&&ve(9,l,l.return);break;case 3:vu(l);break;case 12:vu(l);break;case 22:var t=l.stateNode;l.memoizedState!==null&&t._visibility&2&&(l.return===null||l.return.tag!==13)?(t._visibility&=-3,Mn(l)):vu(l);break;default:vu(l)}}function Mn(l){var t=l.deletions;if((l.flags&16)!==0){if(t!==null)for(var e=0;e<t.length;e++){var a=t[e];Bl=a,jo(a,l)}xo(l)}for(l=l.child;l!==null;){switch(t=l,t.tag){case 0:case 11:case 15:ve(8,t,t.return),Mn(t);break;case 22:e=t.stateNode,e._visibility&2&&(e._visibility&=-3,Mn(t));break;default:Mn(t)}l=l.sibling}}function jo(l,t){for(;Bl!==null;){var e=Bl;switch(e.tag){case 0:case 11:case 15:ve(8,e,t);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Pa(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Bl=a;else l:for(e=l;Bl!==null;){a=Bl;var u=a.sibling,n=a.return;if(So(a),a===e){Bl=null;break l}if(u!==null){u.return=n,Bl=u;break l}Bl=n}}}var Hh={getCacheForType:function(l){var t=Ql(Ol),e=t.data.get(l);return e===void 0&&(e=l(),t.data.set(l,e)),e},cacheSignal:function(){return Ql(Ol).controller.signal}},Bh=typeof WeakMap=="function"?WeakMap:Map,ul=0,ml=null,F=null,I=0,il=0,mt=null,ye=!1,Ea=!1,Zc=!1,le=0,Tl=0,ge=0,$e=0,wc=0,ht=0,Ma=0,yu=null,et=null,Kc=!1,xn=0,Oo=0,_n=1/0,jn=null,Se=null,Ul=0,be=null,xa=null,te=0,Jc=0,$c=null,Do=null,gu=0,Wc=null;function vt(){return(ul&2)!==0&&I!==0?I&-I:T.T!==null?tf():wf()}function No(){if(ht===0)if((I&536870912)===0||tl){var l=Hu;Hu<<=1,(Hu&3932160)===0&&(Hu=262144),ht=l}else ht=536870912;return l=ot.current,l!==null&&(l.flags|=32),ht}function at(l,t,e){(l===ml&&(il===2||il===9)||l.cancelPendingCommit!==null)&&(_a(l,0),pe(l,I,ht,!1)),Ya(l,e),((ul&2)===0||l!==ml)&&(l===ml&&((ul&2)===0&&($e|=e),Tl===4&&pe(l,I,ht,!1)),qt(l))}function Co(l,t,e){if((ul&6)!==0)throw Error(s(327));var a=!e&&(t&127)===0&&(t&l.expiredLanes)===0||qa(l,t),u=a?Gh(l,t):Fc(l,t,!0),n=a;do{if(u===0){Ea&&!a&&pe(l,t,0,!1);break}else{if(e=l.current.alternate,n&&!qh(e)){u=Fc(l,t,!1),n=!1;continue}if(u===2){if(n=t,l.errorRecoveryDisabledLanes&n)var i=0;else i=l.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;l:{var c=l;u=yu;var r=c.current.memoizedState.isDehydrated;if(r&&(_a(c,i).flags|=256),i=Fc(c,i,!1),i!==2){if(Zc&&!r){c.errorRecoveryDisabledLanes|=n,$e|=n,u=4;break l}n=et,et=u,n!==null&&(et===null?et=n:et.push.apply(et,n))}u=i}if(n=!1,u!==2)continue}}if(u===1){_a(l,0),pe(l,t,0,!0);break}l:{switch(a=l,n=u,n){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:pe(a,t,ht,!ye);break l;case 2:et=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=xn+300-it(),10<u)){if(pe(a,t,ht,!ye),qu(a,0,!0)!==0)break l;te=t,a.timeoutHandle=sd(Uo.bind(null,a,e,et,jn,Kc,t,ht,$e,Ma,ye,n,"Throttled",-0,0),u);break l}Uo(a,e,et,jn,Kc,t,ht,$e,Ma,ye,n,null,-0,0)}}break}while(!0);qt(l)}function Uo(l,t,e,a,u,n,i,c,r,S,A,x,b,p){if(l.timeoutHandle=-1,x=t.subtreeFlags,x&8192||(x&16785408)===16785408){x={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},Mo(t,n,x);var R=(n&62914560)===n?xn-it():(n&4194048)===n?Oo-it():0;if(R=zv(x,R),R!==null){te=n,l.cancelPendingCommit=R(Qo.bind(null,l,t,n,e,a,u,i,c,r,A,x,null,b,p)),pe(l,n,i,!S);return}}Qo(l,t,n,e,a,u,i,c,r)}function qh(l){for(var t=l;;){var e=t.tag;if((e===0||e===11||e===15)&&t.flags&16384&&(e=t.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var u=e[a],n=u.getSnapshot;u=u.value;try{if(!st(n(),u))return!1}catch{return!1}}if(e=t.child,t.subtreeFlags&16384&&e!==null)e.return=t,t=e;else{if(t===l)break;for(;t.sibling===null;){if(t.return===null||t.return===l)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function pe(l,t,e,a){t&=~wc,t&=~$e,l.suspendedLanes|=t,l.pingedLanes&=~t,a&&(l.warmLanes|=t),a=l.expirationTimes;for(var u=t;0<u;){var n=31-ft(u),i=1<<n;a[n]=-1,u&=~i}e!==0&&Lf(l,e,t)}function On(){return(ul&6)===0?(Su(0),!1):!0}function kc(){if(F!==null){if(il===0)var l=F.return;else l=F,Zt=Ge=null,dc(l),ga=null,lu=0,l=F;for(;l!==null;)so(l.alternate,l),l=l.return;F=null}}function _a(l,t){var e=l.timeoutHandle;e!==-1&&(l.timeoutHandle=-1,av(e)),e=l.cancelPendingCommit,e!==null&&(l.cancelPendingCommit=null,e()),te=0,kc(),ml=l,F=e=Lt(l.current,null),I=t,il=0,mt=null,ye=!1,Ea=qa(l,t),Zc=!1,Ma=ht=wc=$e=ge=Tl=0,et=yu=null,Kc=!1,(t&8)!==0&&(t|=t&32);var a=l.entangledLanes;if(a!==0)for(l=l.entanglements,a&=t;0<a;){var u=31-ft(a),n=1<<u;t|=l[u],a&=~n}return le=t,Wu(),e}function Ro(l,t){K=null,T.H=fu,t===ya||t===an?(t=Ws(),il=3):t===lc?(t=Ws(),il=4):il=t===jc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mt=t,F===null&&(Tl=1,Sn(l,pt(t,l.current)))}function Ho(){var l=ot.current;return l===null?!0:(I&4194048)===I?Et===null:(I&62914560)===I||(I&536870912)!==0?l===Et:!1}function Bo(){var l=T.H;return T.H=fu,l===null?fu:l}function qo(){var l=T.A;return T.A=Hh,l}function Dn(){Tl=4,ye||(I&4194048)!==I&&ot.current!==null||(Ea=!0),(ge&134217727)===0&&($e&134217727)===0||ml===null||pe(ml,I,ht,!1)}function Fc(l,t,e){var a=ul;ul|=2;var u=Bo(),n=qo();(ml!==l||I!==t)&&(jn=null,_a(l,t)),t=!1;var i=Tl;l:do try{if(il!==0&&F!==null){var c=F,r=mt;switch(il){case 8:kc(),i=6;break l;case 3:case 2:case 9:case 6:ot.current===null&&(t=!0);var S=il;if(il=0,mt=null,ja(l,c,r,S),e&&Ea){i=0;break l}break;default:S=il,il=0,mt=null,ja(l,c,r,S)}}Yh(),i=Tl;break}catch(A){Ro(l,A)}while(!0);return t&&l.shellSuspendCounter++,Zt=Ge=null,ul=a,T.H=u,T.A=n,F===null&&(ml=null,I=0,Wu()),i}function Yh(){for(;F!==null;)Yo(F)}function Gh(l,t){var e=ul;ul|=2;var a=Bo(),u=qo();ml!==l||I!==t?(jn=null,_n=it()+500,_a(l,t)):Ea=qa(l,t);l:do try{if(il!==0&&F!==null){t=F;var n=mt;t:switch(il){case 1:il=0,mt=null,ja(l,t,n,1);break;case 2:case 9:if(Js(n)){il=0,mt=null,Go(t);break}t=function(){il!==2&&il!==9||ml!==l||(il=7),qt(l)},n.then(t,t);break l;case 3:il=7;break l;case 4:il=5;break l;case 7:Js(n)?(il=0,mt=null,Go(t)):(il=0,mt=null,ja(l,t,n,7));break;case 5:var i=null;switch(F.tag){case 26:i=F.memoizedState;case 5:case 27:var c=F;if(i?Ed(i):c.stateNode.complete){il=0,mt=null;var r=c.sibling;if(r!==null)F=r;else{var S=c.return;S!==null?(F=S,Nn(S)):F=null}break t}}il=0,mt=null,ja(l,t,n,5);break;case 6:il=0,mt=null,ja(l,t,n,6);break;case 8:kc(),Tl=6;break l;default:throw Error(s(462))}}Xh();break}catch(A){Ro(l,A)}while(!0);return Zt=Ge=null,T.H=a,T.A=u,ul=e,F!==null?0:(ml=null,I=0,Wu(),Tl)}function Xh(){for(;F!==null&&!sm();)Yo(F)}function Yo(l){var t=co(l.alternate,l,le);l.memoizedProps=l.pendingProps,t===null?Nn(l):F=t}function Go(l){var t=l,e=t.alternate;switch(t.tag){case 15:case 0:t=to(e,t,t.pendingProps,t.type,void 0,I);break;case 11:t=to(e,t,t.pendingProps,t.type.render,t.ref,I);break;case 5:dc(t);default:so(e,t),t=F=Bs(t,le),t=co(e,t,le)}l.memoizedProps=l.pendingProps,t===null?Nn(l):F=t}function ja(l,t,e,a){Zt=Ge=null,dc(t),ga=null,lu=0;var u=t.return;try{if(jh(l,u,t,e,I)){Tl=1,Sn(l,pt(e,l.current)),F=null;return}}catch(n){if(u!==null)throw F=u,n;Tl=1,Sn(l,pt(e,l.current)),F=null;return}t.flags&32768?(tl||a===1?l=!0:Ea||(I&536870912)!==0?l=!1:(ye=l=!0,(a===2||a===9||a===3||a===6)&&(a=ot.current,a!==null&&a.tag===13&&(a.flags|=16384))),Xo(t,l)):Nn(t)}function Nn(l){var t=l;do{if((t.flags&32768)!==0){Xo(t,ye);return}l=t.return;var e=Nh(t.alternate,t,le);if(e!==null){F=e;return}if(t=t.sibling,t!==null){F=t;return}F=t=l}while(t!==null);Tl===0&&(Tl=5)}function Xo(l,t){do{var e=Ch(l.alternate,l);if(e!==null){e.flags&=32767,F=e;return}if(e=l.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!t&&(l=l.sibling,l!==null)){F=l;return}F=l=e}while(l!==null);Tl=6,F=null}function Qo(l,t,e,a,u,n,i,c,r){l.cancelPendingCommit=null;do Cn();while(Ul!==0);if((ul&6)!==0)throw Error(s(327));if(t!==null){if(t===l.current)throw Error(s(177));if(n=t.lanes|t.childLanes,n|=Gi,bm(l,e,n,i,c,r),l===ml&&(F=ml=null,I=0),xa=t,be=l,te=e,Jc=n,$c=u,Do=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Zh(Uu,function(){return Ko(),null})):(l.callbackNode=null,l.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null,u=N.p,N.p=2,i=ul,ul|=4;try{Uh(l,t,e)}finally{ul=i,N.p=u,T.T=a}}Ul=1,Lo(),Vo(),Zo()}}function Lo(){if(Ul===1){Ul=0;var l=be,t=xa,e=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||e){e=T.T,T.T=null;var a=N.p;N.p=2;var u=ul;ul|=4;try{Ao(t,l);var n=rf,i=_s(l.containerInfo),c=n.focusedElem,r=n.selectionRange;if(i!==c&&c&&c.ownerDocument&&xs(c.ownerDocument.documentElement,c)){if(r!==null&&Ri(c)){var S=r.start,A=r.end;if(A===void 0&&(A=S),"selectionStart"in c)c.selectionStart=S,c.selectionEnd=Math.min(A,c.value.length);else{var x=c.ownerDocument||document,b=x&&x.defaultView||window;if(b.getSelection){var p=b.getSelection(),R=c.textContent.length,G=Math.min(r.start,R),ol=r.end===void 0?G:Math.min(r.end,R);!p.extend&&G>ol&&(i=ol,ol=G,G=i);var y=Ms(c,G),d=Ms(c,ol);if(y&&d&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==d.node||p.focusOffset!==d.offset)){var g=x.createRange();g.setStart(y.node,y.offset),p.removeAllRanges(),G>ol?(p.addRange(g),p.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),p.addRange(g))}}}}for(x=[],p=c;p=p.parentNode;)p.nodeType===1&&x.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<x.length;c++){var E=x[c];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Zn=!!sf,rf=sf=null}finally{ul=u,N.p=a,T.T=e}}l.current=t,Ul=2}}function Vo(){if(Ul===2){Ul=0;var l=be,t=xa,e=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||e){e=T.T,T.T=null;var a=N.p;N.p=2;var u=ul;ul|=4;try{go(l,t.alternate,t)}finally{ul=u,N.p=a,T.T=e}}Ul=3}}function Zo(){if(Ul===4||Ul===3){Ul=0,rm();var l=be,t=xa,e=te,a=Do;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ul=5:(Ul=0,xa=be=null,wo(l,l.pendingLanes));var u=l.pendingLanes;if(u===0&&(Se=null),vi(e),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ba,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=T.T,u=N.p,N.p=2,T.T=null;try{for(var n=l.onRecoverableError,i=0;i<a.length;i++){var c=a[i];n(c.value,{componentStack:c.stack})}}finally{T.T=t,N.p=u}}(te&3)!==0&&Cn(),qt(l),u=l.pendingLanes,(e&261930)!==0&&(u&42)!==0?l===Wc?gu++:(gu=0,Wc=l):gu=0,Su(0)}}function wo(l,t){(l.pooledCacheLanes&=t)===0&&(t=l.pooledCache,t!=null&&(l.pooledCache=null,Pa(t)))}function Cn(){return Lo(),Vo(),Zo(),Ko()}function Ko(){if(Ul!==5)return!1;var l=be,t=Jc;Jc=0;var e=vi(te),a=T.T,u=N.p;try{N.p=32>e?32:e,T.T=null,e=$c,$c=null;var n=be,i=te;if(Ul=0,xa=be=null,te=0,(ul&6)!==0)throw Error(s(331));var c=ul;if(ul|=4,_o(n.current),Eo(n,n.current,i,e),ul=c,Su(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ba,n)}catch{}return!0}finally{N.p=u,T.T=a,wo(l,t)}}function Jo(l,t,e){t=pt(e,t),t=_c(l.stateNode,t,2),l=de(l,t,2),l!==null&&(Ya(l,2),qt(l))}function cl(l,t,e){if(l.tag===3)Jo(l,l,e);else for(;t!==null;){if(t.tag===3){Jo(t,l,e);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Se===null||!Se.has(a))){l=pt(e,l),e=Jr(2),a=de(t,e,2),a!==null&&($r(e,a,t,l),Ya(a,2),qt(a));break}}t=t.return}}function Pc(l,t,e){var a=l.pingCache;if(a===null){a=l.pingCache=new Bh;var u=new Set;a.set(t,u)}else u=a.get(t),u===void 0&&(u=new Set,a.set(t,u));u.has(e)||(Zc=!0,u.add(e),l=Qh.bind(null,l,t,e),t.then(l,l))}function Qh(l,t,e){var a=l.pingCache;a!==null&&a.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,ml===l&&(I&e)===e&&(Tl===4||Tl===3&&(I&62914560)===I&&300>it()-xn?(ul&2)===0&&_a(l,0):wc|=e,Ma===I&&(Ma=0)),qt(l)}function $o(l,t){t===0&&(t=Qf()),l=Be(l,t),l!==null&&(Ya(l,t),qt(l))}function Lh(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),$o(l,e)}function Vh(l,t){var e=0;switch(l.tag){case 31:case 13:var a=l.stateNode,u=l.memoizedState;u!==null&&(e=u.retryLane);break;case 19:a=l.stateNode;break;case 22:a=l.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),$o(l,e)}function Zh(l,t){return oi(l,t)}var Un=null,Oa=null,Ic=!1,Rn=!1,lf=!1,ze=0;function qt(l){l!==Oa&&l.next===null&&(Oa===null?Un=Oa=l:Oa=Oa.next=l),Rn=!0,Ic||(Ic=!0,Kh())}function Su(l,t){if(!lf&&Rn){lf=!0;do for(var e=!1,a=Un;a!==null;){if(l!==0){var u=a.pendingLanes;if(u===0)var n=0;else{var i=a.suspendedLanes,c=a.pingedLanes;n=(1<<31-ft(42|l)+1)-1,n&=u&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(e=!0,Po(a,n))}else n=I,n=qu(a,a===ml?n:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(n&3)===0||qa(a,n)||(e=!0,Po(a,n));a=a.next}while(e);lf=!1}}function wh(){Wo()}function Wo(){Rn=Ic=!1;var l=0;ze!==0&&ev()&&(l=ze);for(var t=it(),e=null,a=Un;a!==null;){var u=a.next,n=ko(a,t);n===0?(a.next=null,e===null?Un=u:e.next=u,u===null&&(Oa=e)):(e=a,(l!==0||(n&3)!==0)&&(Rn=!0)),a=u}Ul!==0&&Ul!==5||Su(l),ze!==0&&(ze=0)}function ko(l,t){for(var e=l.suspendedLanes,a=l.pingedLanes,u=l.expirationTimes,n=l.pendingLanes&-62914561;0<n;){var i=31-ft(n),c=1<<i,r=u[i];r===-1?((c&e)===0||(c&a)!==0)&&(u[i]=Sm(c,t)):r<=t&&(l.expiredLanes|=c),n&=~c}if(t=ml,e=I,e=qu(l,l===t?e:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a=l.callbackNode,e===0||l===t&&(il===2||il===9)||l.cancelPendingCommit!==null)return a!==null&&a!==null&&di(a),l.callbackNode=null,l.callbackPriority=0;if((e&3)===0||qa(l,e)){if(t=e&-e,t===l.callbackPriority)return t;switch(a!==null&&di(a),vi(e)){case 2:case 8:e=Gf;break;case 32:e=Uu;break;case 268435456:e=Xf;break;default:e=Uu}return a=Fo.bind(null,l),e=oi(e,a),l.callbackPriority=t,l.callbackNode=e,t}return a!==null&&a!==null&&di(a),l.callbackPriority=2,l.callbackNode=null,2}function Fo(l,t){if(Ul!==0&&Ul!==5)return l.callbackNode=null,l.callbackPriority=0,null;var e=l.callbackNode;if(Cn()&&l.callbackNode!==e)return null;var a=I;return a=qu(l,l===ml?a:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),a===0?null:(Co(l,a,t),ko(l,it()),l.callbackNode!=null&&l.callbackNode===e?Fo.bind(null,l):null)}function Po(l,t){if(Cn())return null;Co(l,t,!0)}function Kh(){uv(function(){(ul&6)!==0?oi(Yf,wh):Wo()})}function tf(){if(ze===0){var l=ha;l===0&&(l=Ru,Ru<<=1,(Ru&261888)===0&&(Ru=256)),ze=l}return ze}function Io(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:Qu(""+l)}function ld(l,t){var e=t.ownerDocument.createElement("input");return e.name=t.name,e.value=t.value,l.id&&e.setAttribute("form",l.id),t.parentNode.insertBefore(e,t),l=new FormData(l),e.parentNode.removeChild(e),l}function Jh(l,t,e,a,u){if(t==="submit"&&e&&e.stateNode===u){var n=Io((u[Fl]||null).action),i=a.submitter;i&&(t=(t=i[Fl]||null)?Io(t.formAction):i.getAttribute("formAction"),t!==null&&(n=t,i=null));var c=new wu("action","action",null,a,u);l.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ze!==0){var r=i?ld(u,i):new FormData(u);zc(e,{pending:!0,data:r,method:u.method,action:n},null,r)}}else typeof n=="function"&&(c.preventDefault(),r=i?ld(u,i):new FormData(u),zc(e,{pending:!0,data:r,method:u.method,action:n},n,r))},currentTarget:u}]})}}for(var ef=0;ef<Yi.length;ef++){var af=Yi[ef],$h=af.toLowerCase(),Wh=af[0].toUpperCase()+af.slice(1);Ot($h,"on"+Wh)}Ot(Ds,"onAnimationEnd"),Ot(Ns,"onAnimationIteration"),Ot(Cs,"onAnimationStart"),Ot("dblclick","onDoubleClick"),Ot("focusin","onFocus"),Ot("focusout","onBlur"),Ot(oh,"onTransitionRun"),Ot(dh,"onTransitionStart"),Ot(mh,"onTransitionCancel"),Ot(Us,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Ce("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ce("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ce("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ce("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ce("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ce("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bu="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(" "),kh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bu));function td(l,t){t=(t&4)!==0;for(var e=0;e<l.length;e++){var a=l[e],u=a.event;a=a.listeners;l:{var n=void 0;if(t)for(var i=a.length-1;0<=i;i--){var c=a[i],r=c.instance,S=c.currentTarget;if(c=c.listener,r!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=S;try{n(u)}catch(A){$u(A)}u.currentTarget=null,n=r}else for(i=0;i<a.length;i++){if(c=a[i],r=c.instance,S=c.currentTarget,c=c.listener,r!==n&&u.isPropagationStopped())break l;n=c,u.currentTarget=S;try{n(u)}catch(A){$u(A)}u.currentTarget=null,n=r}}}}function P(l,t){var e=t[yi];e===void 0&&(e=t[yi]=new Set);var a=l+"__bubble";e.has(a)||(ed(t,l,2,!1),e.add(a))}function uf(l,t,e){var a=0;t&&(a|=4),ed(e,l,a,t)}var Hn="_reactListening"+Math.random().toString(36).slice(2);function nf(l){if(!l[Hn]){l[Hn]=!0,$f.forEach(function(e){e!=="selectionchange"&&(kh.has(e)||uf(e,!1,l),uf(e,!0,l))});var t=l.nodeType===9?l:l.ownerDocument;t===null||t[Hn]||(t[Hn]=!0,uf("selectionchange",!1,t))}}function ed(l,t,e,a){switch(Nd(t)){case 2:var u=Ev;break;case 8:u=Mv;break;default:u=zf}e=u.bind(null,t,e,l),u=void 0,!Mi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),a?u!==void 0?l.addEventListener(t,e,{capture:!0,passive:u}):l.addEventListener(t,e,!0):u!==void 0?l.addEventListener(t,e,{passive:u}):l.addEventListener(t,e,!1)}function cf(l,t,e,a,u){var n=a;if((t&1)===0&&(t&2)===0&&a!==null)l:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===u)break;if(i===4)for(i=a.return;i!==null;){var r=i.tag;if((r===3||r===4)&&i.stateNode.containerInfo===u)return;i=i.return}for(;c!==null;){if(i=Fe(c),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){a=n=i;continue l}c=c.parentNode}}a=a.return}is(function(){var S=n,A=Ti(e),x=[];l:{var b=Rs.get(l);if(b!==void 0){var p=wu,R=l;switch(l){case"keypress":if(Vu(e)===0)break l;case"keydown":case"keyup":p=Vm;break;case"focusin":R="focus",p=Oi;break;case"focusout":R="blur",p=Oi;break;case"beforeblur":case"afterblur":p=Oi;break;case"click":if(e.button===2)break l;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=ss;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Nm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Km;break;case Ds:case Ns:case Cs:p=Rm;break;case Us:p=$m;break;case"scroll":case"scrollend":p=Om;break;case"wheel":p=km;break;case"copy":case"cut":case"paste":p=Bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=os;break;case"toggle":case"beforetoggle":p=Pm}var G=(t&4)!==0,ol=!G&&(l==="scroll"||l==="scrollend"),y=G?b!==null?b+"Capture":null:b;G=[];for(var d=S,g;d!==null;){var E=d;if(g=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||g===null||y===null||(E=Qa(d,y),E!=null&&G.push(pu(d,E,g))),ol)break;d=d.return}0<G.length&&(b=new p(b,R,null,e,A),x.push({event:b,listeners:G}))}}if((t&7)===0){l:{if(b=l==="mouseover"||l==="pointerover",p=l==="mouseout"||l==="pointerout",b&&e!==Ai&&(R=e.relatedTarget||e.fromElement)&&(Fe(R)||R[ke]))break l;if((p||b)&&(b=A.window===A?A:(b=A.ownerDocument)?b.defaultView||b.parentWindow:window,p?(R=e.relatedTarget||e.toElement,p=S,R=R?Fe(R):null,R!==null&&(ol=O(R),G=R.tag,R!==ol||G!==5&&G!==27&&G!==6)&&(R=null)):(p=null,R=S),p!==R)){if(G=ss,E="onMouseLeave",y="onMouseEnter",d="mouse",(l==="pointerout"||l==="pointerover")&&(G=os,E="onPointerLeave",y="onPointerEnter",d="pointer"),ol=p==null?b:Xa(p),g=R==null?b:Xa(R),b=new G(E,d+"leave",p,e,A),b.target=ol,b.relatedTarget=g,E=null,Fe(A)===S&&(G=new G(y,d+"enter",R,e,A),G.target=g,G.relatedTarget=ol,E=G),ol=E,p&&R)t:{for(G=Fh,y=p,d=R,g=0,E=y;E;E=G(E))g++;E=0;for(var q=d;q;q=G(q))E++;for(;0<g-E;)y=G(y),g--;for(;0<E-g;)d=G(d),E--;for(;g--;){if(y===d||d!==null&&y===d.alternate){G=y;break t}y=G(y),d=G(d)}G=null}else G=null;p!==null&&ad(x,b,p,G,!1),R!==null&&ol!==null&&ad(x,ol,R,G,!0)}}l:{if(b=S?Xa(S):window,p=b.nodeName&&b.nodeName.toLowerCase(),p==="select"||p==="input"&&b.type==="file")var el=bs;else if(gs(b))if(ps)el=fh;else{el=ih;var B=nh}else p=b.nodeName,!p||p.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?S&&zi(S.elementType)&&(el=bs):el=ch;if(el&&(el=el(l,S))){Ss(x,el,e,A);break l}B&&B(l,b,S),l==="focusout"&&S&&b.type==="number"&&S.memoizedProps.value!=null&&pi(b,"number",b.value)}switch(B=S?Xa(S):window,l){case"focusin":(gs(B)||B.contentEditable==="true")&&(ia=B,Hi=S,Wa=null);break;case"focusout":Wa=Hi=ia=null;break;case"mousedown":Bi=!0;break;case"contextmenu":case"mouseup":case"dragend":Bi=!1,js(x,e,A);break;case"selectionchange":if(rh)break;case"keydown":case"keyup":js(x,e,A)}var J;if(Ni)l:{switch(l){case"compositionstart":var ll="onCompositionStart";break l;case"compositionend":ll="onCompositionEnd";break l;case"compositionupdate":ll="onCompositionUpdate";break l}ll=void 0}else na?vs(l,e)&&(ll="onCompositionEnd"):l==="keydown"&&e.keyCode===229&&(ll="onCompositionStart");ll&&(ds&&e.locale!=="ko"&&(na||ll!=="onCompositionStart"?ll==="onCompositionEnd"&&na&&(J=cs()):(ne=A,xi="value"in ne?ne.value:ne.textContent,na=!0)),B=Bn(S,ll),0<B.length&&(ll=new rs(ll,l,null,e,A),x.push({event:ll,listeners:B}),J?ll.data=J:(J=ys(e),J!==null&&(ll.data=J)))),(J=lh?th(l,e):eh(l,e))&&(ll=Bn(S,"onBeforeInput"),0<ll.length&&(B=new rs("onBeforeInput","beforeinput",null,e,A),x.push({event:B,listeners:ll}),B.data=J)),Jh(x,l,S,e,A)}td(x,t)})}function pu(l,t,e){return{instance:l,listener:t,currentTarget:e}}function Bn(l,t){for(var e=t+"Capture",a=[];l!==null;){var u=l,n=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||n===null||(u=Qa(l,e),u!=null&&a.unshift(pu(l,u,n)),u=Qa(l,t),u!=null&&a.push(pu(l,u,n))),l.tag===3)return a;l=l.return}return[]}function Fh(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function ad(l,t,e,a,u){for(var n=t._reactName,i=[];e!==null&&e!==a;){var c=e,r=c.alternate,S=c.stateNode;if(c=c.tag,r!==null&&r===a)break;c!==5&&c!==26&&c!==27||S===null||(r=S,u?(S=Qa(e,n),S!=null&&i.unshift(pu(e,S,r))):u||(S=Qa(e,n),S!=null&&i.push(pu(e,S,r)))),e=e.return}i.length!==0&&l.push({event:t,listeners:i})}var Ph=/\r\n?/g,Ih=/\u0000|\uFFFD/g;function ud(l){return(typeof l=="string"?l:""+l).replace(Ph,`
`).replace(Ih,"")}function nd(l,t){return t=ud(t),ud(l)===t}function rl(l,t,e,a,u,n){switch(e){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ea(l,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ea(l,""+a);break;case"className":Gu(l,"class",a);break;case"tabIndex":Gu(l,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Gu(l,e,a);break;case"style":us(l,a,n);break;case"data":if(t!=="object"){Gu(l,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||e!=="href")){l.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Qu(""+a),l.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){l.setAttribute(e,"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 n=="function"&&(e==="formAction"?(t!=="input"&&rl(l,t,"name",u.name,u,null),rl(l,t,"formEncType",u.formEncType,u,null),rl(l,t,"formMethod",u.formMethod,u,null),rl(l,t,"formTarget",u.formTarget,u,null)):(rl(l,t,"encType",u.encType,u,null),rl(l,t,"method",u.method,u,null),rl(l,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){l.removeAttribute(e);break}a=Qu(""+a),l.setAttribute(e,a);break;case"onClick":a!=null&&(l.onclick=Xt);break;case"onScroll":a!=null&&P("scroll",l);break;case"onScrollEnd":a!=null&&P("scrollend",l);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(s(60));l.innerHTML=e}}break;case"multiple":l.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":l.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){l.removeAttribute("xlink:href");break}e=Qu(""+a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""+a):l.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,""):l.removeAttribute(e);break;case"capture":case"download":a===!0?l.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?l.setAttribute(e,a):l.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?l.setAttribute(e,a):l.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?l.removeAttribute(e):l.setAttribute(e,a);break;case"popover":P("beforetoggle",l),P("toggle",l),Yu(l,"popover",a);break;case"xlinkActuate":Gt(l,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Gt(l,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Gt(l,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Gt(l,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Gt(l,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Gt(l,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Gt(l,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Gt(l,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Gt(l,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Yu(l,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=_m.get(e)||e,Yu(l,e,a))}}function ff(l,t,e,a,u,n){switch(e){case"style":us(l,a,n);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(e=a.__html,e!=null){if(u.children!=null)throw Error(s(60));l.innerHTML=e}}break;case"children":typeof a=="string"?ea(l,a):(typeof a=="number"||typeof a=="bigint")&&ea(l,""+a);break;case"onScroll":a!=null&&P("scroll",l);break;case"onScrollEnd":a!=null&&P("scrollend",l);break;case"onClick":a!=null&&(l.onclick=Xt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wf.hasOwnProperty(e))l:{if(e[0]==="o"&&e[1]==="n"&&(u=e.endsWith("Capture"),t=e.slice(2,u?e.length-7:void 0),n=l[Fl]||null,n=n!=null?n[e]:null,typeof n=="function"&&l.removeEventListener(t,n,u),typeof a=="function")){typeof n!="function"&&n!==null&&(e in l?l[e]=null:l.hasAttribute(e)&&l.removeAttribute(e)),l.addEventListener(t,a,u);break l}e in l?l[e]=a:a===!0?l.setAttribute(e,""):Yu(l,e,a)}}}function Vl(l,t,e){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":P("error",l),P("load",l);var a=!1,u=!1,n;for(n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i!=null)switch(n){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:rl(l,t,n,i,e,null)}}u&&rl(l,t,"srcSet",e.srcSet,e,null),a&&rl(l,t,"src",e.src,e,null);return;case"input":P("invalid",l);var c=n=i=u=null,r=null,S=null;for(a in e)if(e.hasOwnProperty(a)){var A=e[a];if(A!=null)switch(a){case"name":u=A;break;case"type":i=A;break;case"checked":r=A;break;case"defaultChecked":S=A;break;case"value":n=A;break;case"defaultValue":c=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,t));break;default:rl(l,t,a,A,e,null)}}ls(l,n,c,r,S,i,u,!1);return;case"select":P("invalid",l),a=i=n=null;for(u in e)if(e.hasOwnProperty(u)&&(c=e[u],c!=null))switch(u){case"value":n=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:rl(l,t,u,c,e,null)}t=n,e=i,l.multiple=!!a,t!=null?ta(l,!!a,t,!1):e!=null&&ta(l,!!a,e,!0);return;case"textarea":P("invalid",l),n=u=a=null;for(i in e)if(e.hasOwnProperty(i)&&(c=e[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":u=c;break;case"children":n=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(s(91));break;default:rl(l,t,i,c,e,null)}es(l,a,u,n);return;case"option":for(r in e)if(e.hasOwnProperty(r)&&(a=e[r],a!=null))switch(r){case"selected":l.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:rl(l,t,r,a,e,null)}return;case"dialog":P("beforetoggle",l),P("toggle",l),P("cancel",l),P("close",l);break;case"iframe":case"object":P("load",l);break;case"video":case"audio":for(a=0;a<bu.length;a++)P(bu[a],l);break;case"image":P("error",l),P("load",l);break;case"details":P("toggle",l);break;case"embed":case"source":case"link":P("error",l),P("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in e)if(e.hasOwnProperty(S)&&(a=e[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:rl(l,t,S,a,e,null)}return;default:if(zi(t)){for(A in e)e.hasOwnProperty(A)&&(a=e[A],a!==void 0&&ff(l,t,A,a,e,void 0));return}}for(c in e)e.hasOwnProperty(c)&&(a=e[c],a!=null&&rl(l,t,c,a,e,null))}function lv(l,t,e,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,n=null,i=null,c=null,r=null,S=null,A=null;for(p in e){var x=e[p];if(e.hasOwnProperty(p)&&x!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":r=x;default:a.hasOwnProperty(p)||rl(l,t,p,null,a,x)}}for(var b in a){var p=a[b];if(x=e[b],a.hasOwnProperty(b)&&(p!=null||x!=null))switch(b){case"type":n=p;break;case"name":u=p;break;case"checked":S=p;break;case"defaultChecked":A=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(137,t));break;default:p!==x&&rl(l,t,b,p,a,x)}}bi(l,i,c,r,S,A,n,u);return;case"select":p=i=c=b=null;for(n in e)if(r=e[n],e.hasOwnProperty(n)&&r!=null)switch(n){case"value":break;case"multiple":p=r;default:a.hasOwnProperty(n)||rl(l,t,n,null,a,r)}for(u in a)if(n=a[u],r=e[u],a.hasOwnProperty(u)&&(n!=null||r!=null))switch(u){case"value":b=n;break;case"defaultValue":c=n;break;case"multiple":i=n;default:n!==r&&rl(l,t,u,n,a,r)}t=c,e=i,a=p,b!=null?ta(l,!!e,b,!1):!!a!=!!e&&(t!=null?ta(l,!!e,t,!0):ta(l,!!e,e?[]:"",!1));return;case"textarea":p=b=null;for(c in e)if(u=e[c],e.hasOwnProperty(c)&&u!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:rl(l,t,c,null,a,u)}for(i in a)if(u=a[i],n=e[i],a.hasOwnProperty(i)&&(u!=null||n!=null))switch(i){case"value":b=u;break;case"defaultValue":p=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==n&&rl(l,t,i,u,a,n)}ts(l,b,p);return;case"option":for(var R in e)if(b=e[R],e.hasOwnProperty(R)&&b!=null&&!a.hasOwnProperty(R))switch(R){case"selected":l.selected=!1;break;default:rl(l,t,R,null,a,b)}for(r in a)if(b=a[r],p=e[r],a.hasOwnProperty(r)&&b!==p&&(b!=null||p!=null))switch(r){case"selected":l.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:rl(l,t,r,b,a,p)}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 G in e)b=e[G],e.hasOwnProperty(G)&&b!=null&&!a.hasOwnProperty(G)&&rl(l,t,G,null,a,b);for(S in a)if(b=a[S],p=e[S],a.hasOwnProperty(S)&&b!==p&&(b!=null||p!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(137,t));break;default:rl(l,t,S,b,a,p)}return;default:if(zi(t)){for(var ol in e)b=e[ol],e.hasOwnProperty(ol)&&b!==void 0&&!a.hasOwnProperty(ol)&&ff(l,t,ol,void 0,a,b);for(A in a)b=a[A],p=e[A],!a.hasOwnProperty(A)||b===p||b===void 0&&p===void 0||ff(l,t,A,b,a,p);return}}for(var y in e)b=e[y],e.hasOwnProperty(y)&&b!=null&&!a.hasOwnProperty(y)&&rl(l,t,y,null,a,b);for(x in a)b=a[x],p=e[x],!a.hasOwnProperty(x)||b===p||b==null&&p==null||rl(l,t,x,b,a,p)}function id(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tv(){if(typeof performance.getEntriesByType=="function"){for(var l=0,t=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var u=e[a],n=u.transferSize,i=u.initiatorType,c=u.duration;if(n&&c&&id(i)){for(i=0,c=u.responseEnd,a+=1;a<e.length;a++){var r=e[a],S=r.startTime;if(S>c)break;var A=r.transferSize,x=r.initiatorType;A&&id(x)&&(r=r.responseEnd,i+=A*(r<c?1:(c-S)/(r-S)))}if(--a,t+=8*(n+i)/(u.duration/1e3),l++,10<l)break}}if(0<l)return t/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var sf=null,rf=null;function qn(l){return l.nodeType===9?l:l.ownerDocument}function cd(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fd(l,t){if(l===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&t==="foreignObject"?0:l}function of(l,t){return l==="textarea"||l==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var df=null;function ev(){var l=window.event;return l&&l.type==="popstate"?l===df?!1:(df=l,!0):(df=null,!1)}var sd=typeof setTimeout=="function"?setTimeout:void 0,av=typeof clearTimeout=="function"?clearTimeout:void 0,rd=typeof Promise=="function"?Promise:void 0,uv=typeof queueMicrotask=="function"?queueMicrotask:typeof rd<"u"?function(l){return rd.resolve(null).then(l).catch(nv)}:sd;function nv(l){setTimeout(function(){throw l})}function Ae(l){return l==="head"}function od(l,t){var e=t,a=0;do{var u=e.nextSibling;if(l.removeChild(e),u&&u.nodeType===8)if(e=u.data,e==="/$"||e==="/&"){if(a===0){l.removeChild(u),Ua(t);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")zu(l.ownerDocument.documentElement);else if(e==="head"){e=l.ownerDocument.head,zu(e);for(var n=e.firstChild;n;){var i=n.nextSibling,c=n.nodeName;n[Ga]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&n.rel.toLowerCase()==="stylesheet"||e.removeChild(n),n=i}}else e==="body"&&zu(l.ownerDocument.body);e=u}while(e);Ua(t)}function dd(l,t){var e=l;l=0;do{var a=e.nextSibling;if(e.nodeType===1?t?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(t?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(l===0)break;l--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||l++;e=a}while(e)}function mf(l){var t=l.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var e=t;switch(t=t.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":mf(e),gi(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}l.removeChild(e)}}function iv(l,t,e,a){for(;l.nodeType===1;){var u=e;if(l.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(a){if(!l[Ga])switch(t){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(n=l.getAttribute("rel"),n==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(n!==u.rel||l.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||l.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||l.getAttribute("title")!==(u.title==null?null:u.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(n=l.getAttribute("src"),(n!==(u.src==null?null:u.src)||l.getAttribute("type")!==(u.type==null?null:u.type)||l.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&n&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(t==="input"&&l.type==="hidden"){var n=u.name==null?null:""+u.name;if(u.type==="hidden"&&l.getAttribute("name")===n)return l}else return l;if(l=Mt(l.nextSibling),l===null)break}return null}function cv(l,t,e){if(t==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!e||(l=Mt(l.nextSibling),l===null))return null;return l}function md(l,t){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!t||(l=Mt(l.nextSibling),l===null))return null;return l}function hf(l){return l.data==="$?"||l.data==="$~"}function vf(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function fv(l,t){var e=l.ownerDocument;if(l.data==="$~")l._reactRetry=t;else if(l.data!=="$?"||e.readyState!=="loading")t();else{var a=function(){t(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),l._reactRetry=a}}function Mt(l){for(;l!=null;l=l.nextSibling){var t=l.nodeType;if(t===1||t===3)break;if(t===8){if(t=l.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return l}var yf=null;function hd(l){l=l.nextSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="/$"||e==="/&"){if(t===0)return Mt(l.nextSibling);t--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||t++}l=l.nextSibling}return null}function vd(l){l=l.previousSibling;for(var t=0;l;){if(l.nodeType===8){var e=l.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(t===0)return l;t--}else e!=="/$"&&e!=="/&"||t++}l=l.previousSibling}return null}function yd(l,t,e){switch(t=qn(e),l){case"html":if(l=t.documentElement,!l)throw Error(s(452));return l;case"head":if(l=t.head,!l)throw Error(s(453));return l;case"body":if(l=t.body,!l)throw Error(s(454));return l;default:throw Error(s(451))}}function zu(l){for(var t=l.attributes;t.length;)l.removeAttributeNode(t[0]);gi(l)}var xt=new Map,gd=new Set;function Yn(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var ee=N.d;N.d={f:sv,r:rv,D:ov,C:dv,L:mv,m:hv,X:yv,S:vv,M:gv};function sv(){var l=ee.f(),t=On();return l||t}function rv(l){var t=Pe(l);t!==null&&t.tag===5&&t.type==="form"?Ur(t):ee.r(l)}var Da=typeof document>"u"?null:document;function Sd(l,t,e){var a=Da;if(a&&typeof t=="string"&&t){var u=St(t);u='link[rel="'+l+'"][href="'+u+'"]',typeof e=="string"&&(u+='[crossorigin="'+e+'"]'),gd.has(u)||(gd.add(u),l={rel:l,crossOrigin:e,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),Vl(t,"link",l),Hl(t),a.head.appendChild(t)))}}function ov(l){ee.D(l),Sd("dns-prefetch",l,null)}function dv(l,t){ee.C(l,t),Sd("preconnect",l,t)}function mv(l,t,e){ee.L(l,t,e);var a=Da;if(a&&l&&t){var u='link[rel="preload"][as="'+St(t)+'"]';t==="image"&&e&&e.imageSrcSet?(u+='[imagesrcset="'+St(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(u+='[imagesizes="'+St(e.imageSizes)+'"]')):u+='[href="'+St(l)+'"]';var n=u;switch(t){case"style":n=Na(l);break;case"script":n=Ca(l)}xt.has(n)||(l=M({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),xt.set(n,l),a.querySelector(u)!==null||t==="style"&&a.querySelector(Au(n))||t==="script"&&a.querySelector(Tu(n))||(t=a.createElement("link"),Vl(t,"link",l),Hl(t),a.head.appendChild(t)))}}function hv(l,t){ee.m(l,t);var e=Da;if(e&&l){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+St(a)+'"][href="'+St(l)+'"]',n=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Ca(l)}if(!xt.has(n)&&(l=M({rel:"modulepreload",href:l},t),xt.set(n,l),e.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(Tu(n)))return}a=e.createElement("link"),Vl(a,"link",l),Hl(a),e.head.appendChild(a)}}}function vv(l,t,e){ee.S(l,t,e);var a=Da;if(a&&l){var u=Ie(a).hoistableStyles,n=Na(l);t=t||"default";var i=u.get(n);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(Au(n)))c.loading=5;else{l=M({rel:"stylesheet",href:l,"data-precedence":t},e),(e=xt.get(n))&&gf(l,e);var r=i=a.createElement("link");Hl(r),Vl(r,"link",l),r._p=new Promise(function(S,A){r.onload=S,r.onerror=A}),r.addEventListener("load",function(){c.loading|=1}),r.addEventListener("error",function(){c.loading|=2}),c.loading|=4,Gn(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},u.set(n,i)}}}function yv(l,t){ee.X(l,t);var e=Da;if(e&&l){var a=Ie(e).hoistableScripts,u=Ca(l),n=a.get(u);n||(n=e.querySelector(Tu(u)),n||(l=M({src:l,async:!0},t),(t=xt.get(u))&&Sf(l,t),n=e.createElement("script"),Hl(n),Vl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function gv(l,t){ee.M(l,t);var e=Da;if(e&&l){var a=Ie(e).hoistableScripts,u=Ca(l),n=a.get(u);n||(n=e.querySelector(Tu(u)),n||(l=M({src:l,async:!0,type:"module"},t),(t=xt.get(u))&&Sf(l,t),n=e.createElement("script"),Hl(n),Vl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},a.set(u,n))}}function bd(l,t,e,a){var u=(u=k.current)?Yn(u):null;if(!u)throw Error(s(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(t=Na(e.href),e=Ie(u).hoistableStyles,a=e.get(t),a||(a={type:"style",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=Na(e.href);var n=Ie(u).hoistableStyles,i=n.get(l);if(i||(u=u.ownerDocument||u,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=u.querySelector(Au(l)))&&!n._p&&(i.instance=n,i.state.loading=5),xt.has(l)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},xt.set(l,e),n||Sv(u,l,e,i.state))),t&&a===null)throw Error(s(528,""));return i}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ca(e),e=Ie(u).hoistableScripts,a=e.get(t),a||(a={type:"script",instance:null,count:0,state:null},e.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,l))}}function Na(l){return'href="'+St(l)+'"'}function Au(l){return'link[rel="stylesheet"]['+l+"]"}function pd(l){return M({},l,{"data-precedence":l.precedence,precedence:null})}function Sv(l,t,e,a){l.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=l.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Vl(t,"link",e),Hl(t),l.head.appendChild(t))}function Ca(l){return'[src="'+St(l)+'"]'}function Tu(l){return"script[async]"+l}function zd(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var a=l.querySelector('style[data-href~="'+St(e.href)+'"]');if(a)return t.instance=a,Hl(a),a;var u=M({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(l.ownerDocument||l).createElement("style"),Hl(a),Vl(a,"style",u),Gn(a,e.precedence,l),t.instance=a;case"stylesheet":u=Na(e.href);var n=l.querySelector(Au(u));if(n)return t.state.loading|=4,t.instance=n,Hl(n),n;a=pd(e),(u=xt.get(u))&&gf(a,u),n=(l.ownerDocument||l).createElement("link"),Hl(n);var i=n;return i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Vl(n,"link",a),t.state.loading|=4,Gn(n,e.precedence,l),t.instance=n;case"script":return n=Ca(e.src),(u=l.querySelector(Tu(n)))?(t.instance=u,Hl(u),u):(a=e,(u=xt.get(n))&&(a=M({},e),Sf(a,u)),l=l.ownerDocument||l,u=l.createElement("script"),Hl(u),Vl(u,"link",a),l.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Gn(a,e.precedence,l));return t.instance}function Gn(l,t,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,n=u,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===t)n=c;else if(n!==u)break}n?n.parentNode.insertBefore(l,n.nextSibling):(t=e.nodeType===9?e.head:e,t.insertBefore(l,t.firstChild))}function gf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.title==null&&(l.title=t.title)}function Sf(l,t){l.crossOrigin==null&&(l.crossOrigin=t.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=t.referrerPolicy),l.integrity==null&&(l.integrity=t.integrity)}var Xn=null;function Ad(l,t,e){if(Xn===null){var a=new Map,u=Xn=new Map;u.set(e,a)}else u=Xn,a=u.get(e),a||(a=new Map,u.set(e,a));if(a.has(l))return a;for(a.set(l,null),e=e.getElementsByTagName(l),u=0;u<e.length;u++){var n=e[u];if(!(n[Ga]||n[Gl]||l==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!=="http://www.w3.org/2000/svg"){var i=n.getAttribute(t)||"";i=l+i;var c=a.get(i);c?c.push(n):a.set(i,[n])}}return a}function Td(l,t,e){l=l.ownerDocument||l,l.head.insertBefore(e,t==="title"?l.querySelector("head > title"):null)}function bv(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ed(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function pv(l,t,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var u=Na(a.href),n=t.querySelector(Au(u));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Qn.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=n,Hl(n);return}n=t.ownerDocument||t,a=pd(a),(u=xt.get(u))&&gf(a,u),n=n.createElement("link"),Hl(n);var i=n;i._p=new Promise(function(c,r){i.onload=c,i.onerror=r}),Vl(n,"link",a),e.instance=n}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=Qn.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var bf=0;function zv(l,t){return l.stylesheets&&l.count===0&&Vn(l,l.stylesheets),0<l.count||0<l.imgCount?function(e){var a=setTimeout(function(){if(l.stylesheets&&Vn(l,l.stylesheets),l.unsuspend){var n=l.unsuspend;l.unsuspend=null,n()}},6e4+t);0<l.imgBytes&&bf===0&&(bf=62500*tv());var u=setTimeout(function(){if(l.waitingForImages=!1,l.count===0&&(l.stylesheets&&Vn(l,l.stylesheets),l.unsuspend)){var n=l.unsuspend;l.unsuspend=null,n()}},(l.imgBytes>bf?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Qn(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vn(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Ln=null;function Vn(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Ln=new Map,t.forEach(Av,l),Ln=null,Qn.call(l))}function Av(l,t){if(!(t.state.loading&4)){var e=Ln.get(l);if(e)var a=e.get(null);else{e=new Map,Ln.set(l,e);for(var u=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<u.length;n++){var i=u[n];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}u=t.instance,i=u.getAttribute("data-precedence"),n=e.get(i)||a,n===a&&e.set(null,u),e.set(i,u),this.count++,a=Qn.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),n?n.parentNode.insertBefore(u,n.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(u,l.firstChild)),t.state.loading|=4}}var Eu={$$typeof:El,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function Tv(l,t,e,a,u,n,i,c,r){this.tag=1,this.containerInfo=l,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=mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mi(0),this.hiddenUpdates=mi(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=n,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function Md(l,t,e,a,u,n,i,c,r,S,A,x){return l=new Tv(l,t,e,i,r,S,A,x,c),t=1,n===!0&&(t|=24),n=rt(3,null,null,t),l.current=n,n.stateNode=l,t=Fi(),t.refCount++,l.pooledCache=t,t.refCount++,n.memoizedState={element:a,isDehydrated:e,cache:t},tc(n),l}function xd(l){return l?(l=sa,l):sa}function _d(l,t,e,a,u,n){u=xd(u),a.context===null?a.context=u:a.pendingContext=u,a=oe(t),a.payload={element:e},n=n===void 0?null:n,n!==null&&(a.callback=n),e=de(l,a,t),e!==null&&(at(e,l,t),eu(e,l,t))}function jd(l,t){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var e=l.retryLane;l.retryLane=e!==0&&e<t?e:t}}function pf(l,t){jd(l,t),(l=l.alternate)&&jd(l,t)}function Od(l){if(l.tag===13||l.tag===31){var t=Be(l,67108864);t!==null&&at(t,l,67108864),pf(l,67108864)}}function Dd(l){if(l.tag===13||l.tag===31){var t=vt();t=hi(t);var e=Be(l,t);e!==null&&at(e,l,t),pf(l,t)}}var Zn=!0;function Ev(l,t,e,a){var u=T.T;T.T=null;var n=N.p;try{N.p=2,zf(l,t,e,a)}finally{N.p=n,T.T=u}}function Mv(l,t,e,a){var u=T.T;T.T=null;var n=N.p;try{N.p=8,zf(l,t,e,a)}finally{N.p=n,T.T=u}}function zf(l,t,e,a){if(Zn){var u=Af(a);if(u===null)cf(l,t,a,wn,e),Cd(l,a);else if(_v(u,l,t,e,a))a.stopPropagation();else if(Cd(l,a),t&4&&-1<xv.indexOf(l)){for(;u!==null;){var n=Pe(u);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var i=Ne(n.pendingLanes);if(i!==0){var c=n;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var r=1<<31-ft(i);c.entanglements[1]|=r,i&=~r}qt(n),(ul&6)===0&&(_n=it()+500,Su(0))}}break;case 31:case 13:c=Be(n,2),c!==null&&at(c,n,2),On(),pf(n,2)}if(n=Af(a),n===null&&cf(l,t,a,wn,e),n===u)break;u=n}u!==null&&a.stopPropagation()}else cf(l,t,a,null,e)}}function Af(l){return l=Ti(l),Tf(l)}var wn=null;function Tf(l){if(wn=null,l=Fe(l),l!==null){var t=O(l);if(t===null)l=null;else{var e=t.tag;if(e===13){if(l=U(t),l!==null)return l;l=null}else if(e===31){if(l=$(t),l!==null)return l;l=null}else if(e===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;l=null}else t!==l&&(l=null)}}return wn=l,null}function Nd(l){switch(l){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(om()){case Yf:return 2;case Gf:return 8;case Uu:case dm:return 32;case Xf:return 268435456;default:return 32}default:return 32}}var Ef=!1,Te=null,Ee=null,Me=null,Mu=new Map,xu=new Map,xe=[],xv="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 Cd(l,t){switch(l){case"focusin":case"focusout":Te=null;break;case"dragenter":case"dragleave":Ee=null;break;case"mouseover":case"mouseout":Me=null;break;case"pointerover":case"pointerout":Mu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xu.delete(t.pointerId)}}function _u(l,t,e,a,u,n){return l===null||l.nativeEvent!==n?(l={blockedOn:t,domEventName:e,eventSystemFlags:a,nativeEvent:n,targetContainers:[u]},t!==null&&(t=Pe(t),t!==null&&Od(t)),l):(l.eventSystemFlags|=a,t=l.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),l)}function _v(l,t,e,a,u){switch(t){case"focusin":return Te=_u(Te,l,t,e,a,u),!0;case"dragenter":return Ee=_u(Ee,l,t,e,a,u),!0;case"mouseover":return Me=_u(Me,l,t,e,a,u),!0;case"pointerover":var n=u.pointerId;return Mu.set(n,_u(Mu.get(n)||null,l,t,e,a,u)),!0;case"gotpointercapture":return n=u.pointerId,xu.set(n,_u(xu.get(n)||null,l,t,e,a,u)),!0}return!1}function Ud(l){var t=Fe(l.target);if(t!==null){var e=O(t);if(e!==null){if(t=e.tag,t===13){if(t=U(e),t!==null){l.blockedOn=t,Kf(l.priority,function(){Dd(e)});return}}else if(t===31){if(t=$(e),t!==null){l.blockedOn=t,Kf(l.priority,function(){Dd(e)});return}}else if(t===3&&e.stateNode.current.memoizedState.isDehydrated){l.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Kn(l){if(l.blockedOn!==null)return!1;for(var t=l.targetContainers;0<t.length;){var e=Af(l.nativeEvent);if(e===null){e=l.nativeEvent;var a=new e.constructor(e.type,e);Ai=a,e.target.dispatchEvent(a),Ai=null}else return t=Pe(e),t!==null&&Od(t),l.blockedOn=e,!1;t.shift()}return!0}function Rd(l,t,e){Kn(l)&&e.delete(t)}function jv(){Ef=!1,Te!==null&&Kn(Te)&&(Te=null),Ee!==null&&Kn(Ee)&&(Ee=null),Me!==null&&Kn(Me)&&(Me=null),Mu.forEach(Rd),xu.forEach(Rd)}function Jn(l,t){l.blockedOn===t&&(l.blockedOn=null,Ef||(Ef=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,jv)))}var $n=null;function Hd(l){$n!==l&&($n=l,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){$n===l&&($n=null);for(var t=0;t<l.length;t+=3){var e=l[t],a=l[t+1],u=l[t+2];if(typeof a!="function"){if(Tf(a||e)===null)continue;break}var n=Pe(e);n!==null&&(l.splice(t,3),t-=3,zc(n,{pending:!0,data:u,method:e.method,action:a},a,u))}}))}function Ua(l){function t(r){return Jn(r,l)}Te!==null&&Jn(Te,l),Ee!==null&&Jn(Ee,l),Me!==null&&Jn(Me,l),Mu.forEach(t),xu.forEach(t);for(var e=0;e<xe.length;e++){var a=xe[e];a.blockedOn===l&&(a.blockedOn=null)}for(;0<xe.length&&(e=xe[0],e.blockedOn===null);)Ud(e),e.blockedOn===null&&xe.shift();if(e=(l.ownerDocument||l).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var u=e[a],n=e[a+1],i=u[Fl]||null;if(typeof n=="function")i||Hd(e);else if(i){var c=null;if(n&&n.hasAttribute("formAction")){if(u=n,i=n[Fl]||null)c=i.formAction;else if(Tf(u)!==null)continue}else c=i.action;typeof c=="function"?e[a+1]=c:(e.splice(a,3),a-=3),Hd(e)}}}function Bd(){function l(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(i){return u=i})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",l),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Mf(l){this._internalRoot=l}Wn.prototype.render=Mf.prototype.render=function(l){var t=this._internalRoot;if(t===null)throw Error(s(409));var e=t.current,a=vt();_d(e,a,l,t,null,null)},Wn.prototype.unmount=Mf.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var t=l.containerInfo;_d(l.current,2,null,l,null,null),On(),t[ke]=null}};function Wn(l){this._internalRoot=l}Wn.prototype.unstable_scheduleHydration=function(l){if(l){var t=wf();l={blockedOn:null,target:l,priority:t};for(var e=0;e<xe.length&&t!==0&&t<xe[e].priority;e++);xe.splice(e,0,l),e===0&&Ud(l)}};var qd=v.version;if(qd!=="19.2.8")throw Error(s(527,qd,"19.2.8"));N.findDOMNode=function(l){var t=l._reactInternals;if(t===void 0)throw typeof l.render=="function"?Error(s(188)):(l=Object.keys(l).join(","),Error(s(268,l)));return l=z(t),l=l!==null?X(l):null,l=l===null?null:l.stateNode,l};var Ov={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kn.isDisabled&&kn.supportsFiber)try{Ba=kn.inject(Ov),ct=kn}catch{}}return Ou.createRoot=function(l,t){if(!j(l))throw Error(s(299));var e=!1,a="",u=Vr,n=Zr,i=wr;return t!=null&&(t.unstable_strictMode===!0&&(e=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Md(l,1,!1,null,null,e,a,null,u,n,i,Bd),l[ke]=t.current,nf(l),new Mf(t)},Ou.hydrateRoot=function(l,t,e){if(!j(l))throw Error(s(299));var a=!1,u="",n=Vr,i=Zr,c=wr,r=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(c=e.onRecoverableError),e.formState!==void 0&&(r=e.formState)),t=Md(l,1,!0,t,e??null,a,u,r,n,i,c,Bd),t.context=xd(null),e=t.current,a=vt(),a=hi(a),u=oe(a),u.callback=null,de(e,u,a),e=a,t.current.lanes=e,Ya(t,e),qt(t),l[ke]=t.current,nf(l),new Wn(t)},Ou.version="19.2.8",Ou}var Jd;function Xv(){if(Jd)return jf.exports;Jd=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(v){console.error(v)}}return f(),jf.exports=Gv(),jf.exports}var Qv=Xv();const Lv=Pd(Qv),$d="",ni={customers:[],products:[],orders:[],inventory:[],templates:[],currentProject:null,marketingDraft:{listingTitle:"",shortDescription:"",socialPost:"",productionNote:""},lastSavedAt:new Date().toISOString()},Vv="modulepreload",Zv=function(f,v){return new URL(f,v).href},Wd={},Cf=function(v,m,s){let j=Promise.resolve();if(m&&m.length>0){let U=function(X){return Promise.all(X.map(M=>Promise.resolve(M).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};const $=document.getElementsByTagName("link"),D=document.querySelector("meta[property=csp-nonce]"),z=(D==null?void 0:D.nonce)||(D==null?void 0:D.getAttribute("nonce"));j=U(m.map(X=>{if(X=Zv(X,s),X in Wd)return;Wd[X]=!0;const M=X.endsWith(".css"),L=M?'[rel="stylesheet"]':"";if(!!s)for(let gl=$.length-1;gl>=0;gl--){const ql=$[gl];if(ql.href===X&&(!M||ql.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${X}"]${L}`))return;const hl=document.createElement("link");if(hl.rel=M?"stylesheet":Vv,M||(hl.as="script"),hl.crossOrigin="",hl.href=X,z&&hl.setAttribute("nonce",z),document.head.appendChild(hl),M)return new Promise((gl,ql)=>{hl.addEventListener("load",gl),hl.addEventListener("error",()=>ql(new Error(`Unable to preload CSS for ${X}`)))})}))}function O(U){const $=new Event("vite:preloadError",{cancelable:!0});if($.payload=U,window.dispatchEvent($),!$.defaultPrevented)throw U}return j.then(U=>{for(const $ of U||[])$.status==="rejected"&&O($.reason);return v().catch(O)})},Fn=11.5,Pn=11.5,wv="Cricut is a trademark of Cricut, Inc. ProjectCraft Pro is not affiliated with, sponsored by, authorized by, or endorsed by Cricut, Inc.",Kv="© 2026 ProjectCraft Pro. All rights reserved.";function Z(f){return Number(f.toFixed(4)).toString()}function je(f){return f.replaceAll("&","&amp;").replaceAll('"',"&quot;").replaceAll("'","&apos;").replaceAll("<","&lt;").replaceAll(">","&gt;")}function Id(f){const v=f.trim().match(/^(.*?)(\.[a-z0-9]{2,8})$/i),m=(v==null?void 0:v[1])??f,s=(v==null?void 0:v[2])??"";return`${m.trim().replace(/[^a-z0-9]+/gi,"-").replace(/^-+|-+$/g,"").slice(0,80)||"projectcraft-pro-export"}${s.toLowerCase()}`}function lm(){var f,v;return typeof window<"u"&&!!((v=(f=window.Capacitor)==null?void 0:f.isNativePlatform)!=null&&v.call(f))}function Jv(f){return f.toLowerCase().endsWith(".svg")?"image/svg+xml":f.toLowerCase().endsWith(".txt")?"text/plain":"application/octet-stream"}async function $v(f,v){if(!lm())return!1;try{const[{registerPlugin:m},{Share:s}]=await Promise.all([Cf(()=>import("./index-CNHTL47a.js"),[],import.meta.url),Cf(()=>import("./index-DAspQu9G.js"),__vite__mapDeps([0,1]),import.meta.url)]),O=await m("CraftLaunchFiles").saveTextFile({fileName:f,contents:v,mimeType:Jv(f)});return(await s.canShare()).value&&O.uri&&await s.share({title:f,text:`Exported from ProjectCraft Pro: ${f}`,files:[O.uri],dialogTitle:"Share ProjectCraft export"}),!0}catch(m){console.warn("Native mobile export failed; falling back to mobile share text.",m);try{const{Share:s}=await Cf(async()=>{const{Share:O}=await import("./index-DAspQu9G.js");return{Share:O}},__vite__mapDeps([0,1]),import.meta.url);if((await s.canShare()).value)return await s.share({title:f,text:v,dialogTitle:"Share ProjectCraft export"}),!0}catch(s){console.warn("Mobile share fallback failed.",s)}return!1}}const tm={black:"#111111",white:"#FFFFFF",red:"#D71920",blue:"#1F5EAE",green:"#16824A",yellow:"#F2C230",orange:"#E87722",purple:"#6F42C1",pink:"#D84C8B",gray:"#667085",grey:"#667085",brown:"#8A5A32",gold:"#C89B2C",silver:"#B8C0C8",clear:"#D9EEF7"};function Wv(f){return f.replace(/^create\s+(?:a|an|the)?\s*/i,"").replace(/^design\s+(?:a|an|the)?\s*/i,"").replace(/^build\s+(?:a|an|the)?\s*/i,"").replace(/[.:]+$/g,"").trim()}function kv(f){const v=f.split(/\r?\n/).map(s=>s.trim()).find(s=>s.length>0&&!/^(finished size|overall design|layout requirements|requirements|material|style|section\s+[a-z])/i.test(s));return(Wv(v??"Custom Cricut Project")||"Custom Cricut Project").slice(0,72)}function In(f,v){return!Number.isFinite(f)||f<=0?v:Math.min(Math.max(f,1),144)}function Fv(f){const v=f.replace(/[×]/g,"x"),m=v.match(/(\d+(?:\.\d+)?)\s*(?:inches|inch|in|\")?\s*(?:wide|w)\b[\s\S]{0,80}?(\d+(?:\.\d+)?)\s*(?:inches|inch|in|\")?\s*(?:tall|high|h)\b/i);if(m)return{width:In(Number(m[1]),12),height:In(Number(m[2]),12)};const s=v.match(/(\d+(?:\.\d+)?)\s*(?:inches|inch|in|\")?\s*x\s*(\d+(?:\.\d+)?)\s*(?:inches|inch|in|\")?/i);return s?{width:In(Number(s[1]),12),height:In(Number(s[2]),12)}:{width:12,height:12}}function Pv(f){return f==="grey"?"Gray":f.charAt(0).toUpperCase()+f.slice(1)}function Iv(f){return tm[f.toLowerCase()]??"#111111"}function ly(f){const v=f.replace("#",""),m=parseInt(v.slice(0,2),16),s=parseInt(v.slice(2,4),16),j=parseInt(v.slice(4,6),16);return(.299*m+.587*s+.114*j)/255>.6?"#111111":"#FFFFFF"}function ty(f){const v=f.toLowerCase(),m=Object.keys(tm).filter(j=>new RegExp(`\\b${j}\\b`,"i").test(v)),s=m.filter((j,O)=>m.indexOf(j)===O&&!(j==="grey"&&m.includes("gray")));return s.length>0?s.slice(0,8):["black"]}function ey(f,v){const m=ty(f),s=Math.max(v.width-1,1),j=Math.max(v.height-1,1),O=Math.max(1,j/m.length);return m.map((U,$)=>{const D=Pv(U),z=new RegExp(`(optional[\\s\\S]{0,48}${U}|${U}[\\s\\S]{0,48}optional)`,"i"),X=Math.max(Math.min(O-.25,j),1);return{id:`${U}-cut-layer-${$+1}`,name:`${D} Cut Layer${z.test(f)?" - optional":""}`,colorName:D,material:`${D} vinyl, stencil vinyl, cardstock, acrylic, or confirmed craft material`,x:.5,y:.5+$*O,width:s,height:X,optional:z.test(f),notes:"Layer inferred from the pasted prompt. Confirm exact art, fonts, and material before final cutting."}})}function em(f){const v=Id(f.id).replace(/[^a-z0-9_-]+/gi,"_"),m=Iv(f.colorName),s=ly(m),j=f.name.replace(/\s+-\s+optional$/i,""),O=Math.max(.28,Math.min(f.height*.34,f.width/Math.max(j.length*.62,1),1.15)),U=f.y+f.height/2+O/3;return`
  <g id="${je(v)}" data-name="${je(f.name)}" data-material="${je(f.material)}">
    <rect x="${Z(f.x)}" y="${Z(f.y)}" width="${Z(f.width)}" height="${Z(f.height)}" rx="0.08" fill="${m}" opacity="${f.optional?"0.78":"1"}" />
    <text x="${Z(f.x+f.width/2)}" y="${Z(U)}" font-family="Arial Black, Helvetica Neue, Arial, sans-serif" font-size="${Z(O)}" font-weight="900" text-anchor="middle" fill="${s}">${je(j)}</text>
  </g>`}function ay(f,v){const m=Math.max(.25,Math.min(.5,Math.min(f,v)/18)),s=Math.max(f-1-m,m),j=Math.max(v-1-m,m);return`
  <g id="registration_marks" data-name="Registration Marks" data-cut-role="alignment">
    <rect id="registration_top_left" x="1" y="1" width="${Z(m)}" height="${Z(m)}" fill="#111111" />
    <rect id="registration_top_right" x="${Z(s)}" y="1" width="${Z(m)}" height="${Z(m)}" fill="#111111" />
    <rect id="registration_center" x="${Z(f/2-m/2)}" y="${Z(v/2-m/2)}" width="${Z(m)}" height="${Z(m)}" fill="#111111" />
    <rect id="registration_bottom_left" x="1" y="${Z(j)}" width="${Z(m)}" height="${Z(m)}" fill="#111111" />
    <rect id="registration_bottom_right" x="${Z(s)}" y="${Z(j)}" width="${Z(m)}" height="${Z(m)}" fill="#111111" />
  </g>`}function uy(f,v,m){return`<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="${Z(v.width)}in" height="${Z(v.height)}in" viewBox="0 0 ${Z(v.width)} ${Z(v.height)}" data-grid-size="1in" data-cricut-mat="Maker 4" data-source="ProjectCraft Pro" data-copyright="© 2026 ProjectCraft Pro. All rights reserved.">
  <title>${je(f)}</title>
  <metadata>Layered clean cut-template SVG generated from a pasted project prompt. No photos, textures, filters, scripts, raster images, backgrounds, or lighting effects.</metadata>
${ay(v.width,v.height)}
${m.map(em).join(`
`)}
</svg>
`}function ny(f,v,m){return`<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="${Z(m.width)}in" height="${Z(m.height)}in" viewBox="${Z(m.x)} ${Z(m.y)} ${Z(m.width)} ${Z(m.height)}" data-source="ProjectCraft Pro tiled panel" data-copyright="© 2026 ProjectCraft Pro. All rights reserved.">
  <title>${je(f)} - ${je(m.id)}</title>
  <metadata>Tile panel ${je(m.id)}. Original origin: x ${Z(m.x)} in, y ${Z(m.y)} in.</metadata>
${em(v)}
</svg>
`}function iy(f,v){const m=Math.ceil(v.width/Fn),s=Math.ceil(v.height/Pn),j=[];for(let O=1;O<=m;O+=1)for(let U=1;U<=s;U+=1){const $=Math.min(Fn,v.width-(O-1)*Fn),D=Math.min(Pn,v.height-(U-1)*Pn),z={id:`${v.id}-C${String(O).padStart(2,"0")}-R${String(U).padStart(2,"0")}`,layerName:v.name,column:O,row:U,x:v.x+(O-1)*Fn,y:v.y+(U-1)*Pn,width:$,height:D};j.push({...z,svg:ny(f,v,z)})}return j}function cy(f){const v=kv(f),m=Fv(f),s=ey(f,m),j=s.flatMap(U=>iy(v,U)),O=s.map(U=>`- ${U.name}: ${Z(U.width)} in x ${Z(U.height)} in, ${U.material}.`).join(`
`);return{title:v,width:m.width,height:m.height,prompt:f,projectPlan:`Project Plan
Title: ${v}
Finished size: ${Z(m.width)} inches x ${Z(m.height)} inches
Grid: 1-inch layout grid
Output: layered SVG-style Cricut cut template

Inferred cut layers:
${O}

Cricut setup:
- Cut each color or material as a separate layer.
- Use tiled panels when a layer exceeds the selected mat size.
- Keep registration squares until installation alignment is complete.
- Review the generated geometry before production cutting.`,assemblyGuide:`Assembly Guide
1. Confirm the final bounding size and material choice.
2. Cut one material/color layer at a time.
3. Keep registration marks attached until adjacent tiles line up.
4. Test-fit panels before applying permanent vinyl, paint, or adhesive.
5. Remove registration marks only after the full layout is aligned.`,layers:s,panels:j,svg:uy(v,m,s)}}function fy(f){return cy(f)}function ei(f,v,m="text/plain"){var $;const s=new Blob([v],{type:m}),j=URL.createObjectURL(s),O=Id(f);if($v(O,v).then(D=>{D&&URL.revokeObjectURL(j)}),lm())return;if(typeof chrome<"u"&&(($=chrome.downloads)!=null&&$.download)){chrome.downloads.download({url:j,filename:O,saveAs:!1},()=>{window.setTimeout(()=>URL.revokeObjectURL(j),1e3)});return}const U=document.createElement("a");U.href=j,U.download=O,document.body.appendChild(U),U.click(),U.remove(),URL.revokeObjectURL(j)}function sy(f){const v=f.panels.map(m=>`- ${m.id}.svg: ${m.layerName}, column ${m.column}, row ${m.row}, ${Z(m.width)} in x ${Z(m.height)} in`).join(`
`);return`Cricut Handoff
Project: ${f.title}
Finished size: ${Z(f.width)} in x ${Z(f.height)} in
Generated by ProjectCraft Pro.
${Kv}

${wv}

Recommended workflow:
1. Upload the master SVG only as a reference.
2. For cutting the real wall sign, upload tiled panel SVGs one at a time by layer.
3. Use On Mat and 12 in x 12 in material size.
4. Keep registration marks until installation is aligned.

Panel files:
${v}
`}const We="craftlaunch-studio-extension-state-v1",Du="craftlaunch-studio-desktop-state-v1",Nu="craftlaunch-studio-windows-state-v1";function ry(f){return{...f,lastSavedAt:new Date().toISOString()}}function Hf(){var f;return typeof chrome<"u"&&!!((f=chrome.storage)!=null&&f.local)}function oy(f){return new Promise(v=>{chrome.storage.local.get(f,m=>{v(m)})})}function dy(f){return new Promise((v,m)=>{chrome.storage.local.set({[We]:f},()=>{const s=chrome.runtime.lastError;if(s){m(new Error(s.message));return}v()})})}function my(f){return new Promise(v=>{chrome.storage.local.remove(f,()=>v())})}async function hy(){if(Hf()){const v=await oy([We,Du,Nu]);return v[We]??v[Du]??v[Nu]??ni}const f=window.localStorage.getItem(We)??window.localStorage.getItem(Du)??window.localStorage.getItem(Nu);return f?JSON.parse(f):ni}async function vy(f){const v=ry(f);return Hf()?(await dy(v),v):(window.localStorage.setItem(We,JSON.stringify(v)),v)}function yy(){return Hf()&&my([We,Du,Nu]),window.localStorage.removeItem(We),window.localStorage.removeItem(Du),window.localStorage.removeItem(Nu),ni}const kd=[{id:"dashboard",label:"Dashboard",icon:"DB"},{id:"projectBuilder",label:"AI Project Builder",icon:"AI"},{id:"cricutExport",label:"Cricut Export",icon:"CX"},{id:"materialsDeals",label:"Materials & Deals",icon:"MD"},{id:"customers",label:"Customers",icon:"CU"},{id:"orders",label:"Orders",icon:"OR"},{id:"products",label:"Products",icon:"PR"},{id:"templates",label:"Templates",icon:"TP"},{id:"inventory",label:"Inventory",icon:"IN"},{id:"pricing",label:"Pricing",icon:"PC"},{id:"marketing",label:"Marketing",icon:"MK"},{id:"license",label:"License",icon:"LC"},{id:"release",label:"Mobile Release",icon:"MOB"}],gy=["Plan","SVG","Panels","Assembly"],Sy="© 2026 ProjectCraft Pro. All rights reserved.",by="Cricut is a trademark of Cricut, Inc. ProjectCraft Pro is not affiliated with, sponsored by, authorized by, or endorsed by Cricut, Inc.",am="Prices and availability may change. Confirm the final price with the retailer before purchasing.",um="Retailer and product names are trademarks of their respective owners. ProjectCraft Pro is not affiliated with, sponsored by, authorized by, or endorsed by any listed retailer unless a written partnership is separately disclosed.",nm="Affiliate disclosure: ProjectCraft Pro may earn a commission from qualifying purchases when affiliate links are used. Affiliate links are optional and disabled until approved accounts are configured.",im="Material recommendations use approved product feeds or manual catalog entries that you add. Placeholder prices and retailer placeholders are not bundled in production builds.",py=["Materials","Where to Buy","Price Comparison","Shopping List","Project Cost","Alternatives","Sale Alerts","Admin Catalog"],Uf=[];function pl(f){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(f)}function ii(f){return new Intl.NumberFormat("en-US",{maximumFractionDigits:1}).format(f)}function Ct(f){return f.salePrice??f.regularPrice}function zy(f){return f.width*f.length}function ai(f){return`Price last checked: ${f.lastChecked}`}function Ay(f){if(!f)return 432;const v=f.layers.reduce((m,s)=>m+s.width*s.height,0);return Math.max(v*1.15,f.width*f.height*.35)}function Ty(f){const v=`${(f==null?void 0:f.prompt)??""} ${(f==null?void 0:f.layers.map(m=>m.material).join(" "))??""}`.toLowerCase();return v.includes("shirt")||v.includes("apparel")||v.includes("htv")||v.includes("heat transfer")?"Heat Transfer Vinyl":v.includes("stencil")||v.includes("painted")||v.includes("wood")||v.includes("mdf")?"Stencil Vinyl":"Permanent Vinyl"}function Ey(f){const v=Ty(f),m=Uf.filter(j=>j.category===v),s=v==="Heat Transfer Vinyl"?[]:Uf.filter(j=>j.category==="Transfer Tape");return[...m,...s].sort((j,O)=>Ct(j)-Ct(O))}function ui(f,v){return Math.max(1,Math.ceil(v/Math.max(zy(f),1)))}function My(f,v,m){const s=(f==null?void 0:f.title)??"ProjectCraft Pro material project",j=v.map(O=>{const U=ui(O,m);return`- ${U} x ${O.name} (${O.color}) from ${O.retailer}: ${pl(Ct(O)*U)} - ${ai(O)}`});return[`ProjectCraft Pro Shopping List: ${s}`,am,im,um,nm,"",...j.length>0?j:["No approved catalog products are available yet. Add manual catalog entries or connect approved product feeds before purchasing materials."]].join(`
`)}function xy(){var $l;const[f,v]=yt.useState("dashboard"),[m,s]=yt.useState(ni),[j,O]=yt.useState($d),[U,$]=yt.useState("Plan"),[D,z]=yt.useState("Loading local workspace..."),[X,M]=yt.useState(!1);yt.useEffect(()=>{let Y=!0;return hy().then(bl=>{Y&&(s(bl),bl.currentProject&&O(bl.currentProject.prompt),z("Mobile workspace ready."))}).catch(()=>{Y&&z("Starting with a clean workspace because saved data could not be loaded.")}),()=>{Y=!1}},[]);const L=yt.useMemo(()=>{const Y=m.orders.reduce((zl,Yl)=>zl+Yl.total,0),bl=m.orders.reduce((zl,Yl)=>zl+Yl.paid,0),W=new Map(m.products.map(zl=>[zl.id,zl])),Kl=m.orders.reduce((zl,Yl)=>{const Rl=W.get(Yl.productId);return Rl?zl+Rl.materialCost*Yl.quantity+Rl.laborMinutes/60*32:zl},0),nt=Y-Kl;return{revenue:Y,paid:bl,outstanding:Y-bl,profit:nt,margin:Y>0?nt/Y*100:0,activeOrders:m.orders.filter(zl=>zl.status!=="Delivered").length,lowStock:m.inventory.filter(zl=>zl.onHand-zl.reserved<=zl.reorderPoint).length}},[m]);async function jl(Y,bl){M(!0),s(Y);const W=await vy(Y);s(W),z(bl),M(!1)}function hl(){if(!j.trim()){z("Paste a project prompt before building.");return}const Y=fy(j);jl({...m,currentProject:Y},`Built ${Y.title} with ${Y.panels.length} tiled panels.`),$("Plan"),v("projectBuilder")}function gl(Y){ei(`${Y.title}.svg`,Y.svg,"image/svg+xml"),z("Downloaded master SVG. Use it as a reference before cutting tiled panels.")}function ql(Y){ei(`${Y.title} Cricut Handoff.txt`,sy(Y)),z("Downloaded Cricut handoff manifest.")}function wl(Y){ei(`${Y.id}.svg`,Y.svg,"image/svg+xml"),z(`Downloaded ${Y.id}.svg.`)}function Ut(Y){jl({...m,marketingDraft:{listingTitle:`${Y.title} - layered wall display`,shortDescription:`A ${Y.width} in x ${Y.height} in layered SVG wall sign with labeled Cricut panels and registration guidance.`,socialPost:"A blank wall can become a clean branded focal point with a layered Cricut-ready wall logo package.",productionNote:`Cut ${Y.panels.length} tiled panels by layer, keep registration squares in place, and install from the bridge baseline upward.`}},"Marketing draft updated from the current Cricut project.")}const El=m.currentProject;return o.jsxs("div",{className:"app-shell",children:[o.jsxs("aside",{className:"sidebar",children:[o.jsxs("div",{className:"brand-block",children:[o.jsx("img",{className:"brand-mark",src:"/icons/icon-128.png",alt:""}),o.jsxs("div",{children:[o.jsx("h1",{children:"ProjectCraft Pro"}),o.jsx("p",{children:"Plan. Cut. Create. Profit."})]})]}),o.jsx("nav",{className:"nav-list","aria-label":"Main sections",children:kd.map(Y=>o.jsxs("button",{className:f===Y.id?"nav-item active":"nav-item",onClick:()=>v(Y.id),type:"button",title:Y.label,children:[o.jsx("span",{className:"material-symbol",children:Y.icon}),o.jsx("span",{children:Y.label})]},Y.id))}),o.jsxs("div",{className:"legal-footnote",children:[o.jsx("strong",{children:"ProjectCraft Pro"}),o.jsx("span",{children:Sy})]})]}),o.jsxs("main",{className:"workspace",children:[o.jsxs("header",{className:"topbar",children:[o.jsxs("div",{children:[o.jsx("p",{className:"eyebrow",children:"Mobile app port"}),o.jsx("h2",{children:($l=kd.find(Y=>Y.id===f))==null?void 0:$l.label})]}),o.jsxs("div",{className:"topbar-actions",children:[o.jsx("span",{className:X?"save-chip saving":"save-chip",children:X?"Saving":`Saved ${new Date(m.lastSavedAt).toLocaleTimeString([],{hour:"numeric",minute:"2-digit"})}`}),o.jsx("button",{className:"ghost-button",type:"button",onClick:()=>{const Y=yy();O($d),jl(Y,"Workspace cleared.")},children:"Clear Workspace"})]})]}),o.jsx("section",{className:"status-strip",children:D}),f==="dashboard"&&o.jsx(_y,{state:m,totals:L,openProjectBuilder:()=>v("projectBuilder")}),f==="projectBuilder"&&o.jsx(jy,{prompt:j,setPrompt:O,project:El,projectTab:U,setProjectTab:$,buildProject:hl,downloadMaster:gl,downloadManifest:ql,downloadPanel:wl}),f==="cricutExport"&&o.jsx(Oy,{project:El,downloadMaster:gl,downloadManifest:ql,downloadPanel:wl,openBuilder:()=>v("projectBuilder")}),f==="materialsDeals"&&o.jsx(Dy,{project:El,inventory:m.inventory}),f==="customers"&&o.jsx(Ny,{state:m}),f==="orders"&&o.jsx(Cy,{state:m}),f==="products"&&o.jsx(Uy,{state:m}),f==="templates"&&o.jsx(Ry,{state:m}),f==="inventory"&&o.jsx(Hy,{state:m}),f==="pricing"&&o.jsx(By,{state:m}),f==="marketing"&&o.jsx(qy,{state:m,project:El,updateFromProject:Ut}),f==="license"&&o.jsx(Yy,{}),f==="release"&&o.jsx(Gy,{})]})]})}function _y({state:f,totals:v,openProjectBuilder:m}){return o.jsxs("div",{className:"view-stack",children:[o.jsxs("div",{className:"metric-grid",children:[o.jsx(ut,{title:"Revenue",value:pl(v.revenue),detail:"Open pipeline"}),o.jsx(ut,{title:"Gross Profit",value:pl(v.profit),detail:`${ii(v.margin)}% margin`}),o.jsx(ut,{title:"Outstanding",value:pl(v.outstanding),detail:"Unpaid balance"}),o.jsx(ut,{title:"Active Orders",value:String(v.activeOrders),detail:`${v.lowStock} low stock alerts`})]}),o.jsxs("div",{className:"split-grid",children:[o.jsx(Zl,{title:"Production Board",action:o.jsx("button",{type:"button",onClick:m,children:"Build Project"}),children:f.orders.length===0?o.jsx(Ra,{text:"No orders yet."}):o.jsx("div",{className:"timeline-list",children:f.orders.map(s=>o.jsxs("div",{className:"timeline-row",children:[o.jsx("span",{className:`status-dot ${s.status.toLowerCase().replaceAll(" ","-")}`}),o.jsxs("div",{children:[o.jsx("strong",{children:s.orderNumber}),o.jsxs("p",{children:[s.status," - Due ",s.dueDate]})]}),o.jsx("b",{children:pl(s.total)})]},s.id))})}),o.jsx(Zl,{title:"Most Profitable Products",children:f.products.length===0?o.jsx(Ra,{text:"No products yet."}):o.jsx("div",{className:"product-profit-list",children:[...f.products].sort((s,j)=>j.targetMargin-s.targetMargin).map(s=>o.jsxs("div",{className:"profit-row",children:[o.jsx("span",{children:s.name}),o.jsxs("strong",{children:[ii(s.targetMargin),"%"]})]},s.id))})})]})]})}function jy({prompt:f,setPrompt:v,project:m,projectTab:s,setProjectTab:j,buildProject:O,downloadMaster:U,downloadManifest:$,downloadPanel:D}){return o.jsxs("div",{className:"builder-layout",children:[o.jsxs(Zl,{title:"Paste Prompt",children:[o.jsx("textarea",{className:"prompt-box",value:f,onChange:z=>v(z.target.value),placeholder:"Paste a customer project prompt, SVG brief, or Cricut cut-template request."}),o.jsx("div",{className:"button-row",children:o.jsx("button",{type:"button",className:"primary-button",onClick:O,children:"Build Local Project"})})]}),o.jsxs(Zl,{title:m?m.title:"No Project Built",action:m?o.jsxs("div",{className:"button-row compact",children:[o.jsx("button",{type:"button",onClick:()=>$(m),children:"Manifest"}),o.jsx("button",{type:"button",onClick:()=>U(m),children:"Master SVG"})]}):null,children:[!m&&o.jsx(Ra,{text:"Paste a Cricut project prompt and build the local mobile project packet."}),m&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:"project-summary",children:[o.jsx(ut,{title:"Finished Size",value:`${m.width} in x ${m.height} in`,detail:"Wall display"}),o.jsx(ut,{title:"Layers",value:String(m.layers.length),detail:"Separate colors"}),o.jsx(ut,{title:"Panels",value:String(m.panels.length),detail:"12 in mat workflow"})]}),o.jsx("div",{className:"tabs",children:gy.map(z=>o.jsx("button",{className:s===z?"tab active":"tab",onClick:()=>j(z),type:"button",children:z},z))}),s==="Plan"&&o.jsx("pre",{className:"output-block",children:m.projectPlan}),s==="SVG"&&o.jsx("div",{className:"svg-preview-wrap",children:o.jsx("div",{className:"svg-preview",dangerouslySetInnerHTML:{__html:m.svg}})}),s==="Panels"&&o.jsx(cm,{panels:m.panels.slice(0,12),downloadPanel:D}),s==="Assembly"&&o.jsx("pre",{className:"output-block",children:m.assemblyGuide})]})]})]})}function Oy({project:f,downloadMaster:v,downloadManifest:m,downloadPanel:s,openBuilder:j}){return f?o.jsxs("div",{className:"view-stack",children:[o.jsxs(Zl,{title:"Cricut Handoff",action:o.jsxs("div",{className:"button-row compact",children:[o.jsx("button",{type:"button",onClick:()=>m(f),children:"Download Manifest"}),o.jsx("button",{type:"button",onClick:()=>v(f),children:"Download Master SVG"})]}),children:[o.jsxs("div",{className:"warning-box",children:["Use the master SVG as a reference. For the real full-size wall sign, upload and cut tiled panel SVGs one at a time by layer.",o.jsx("p",{className:"disclaimer-text",children:by})]}),o.jsx("div",{className:"layer-grid",children:f.layers.map(O=>o.jsxs("div",{className:"layer-card",children:[o.jsx("strong",{children:O.name}),o.jsx("p",{children:O.material}),o.jsxs("span",{children:[O.width," in x ",O.height," in"]})]},O.id))})]}),o.jsx(Zl,{title:`Tiled Panels (${f.panels.length})`,children:o.jsx(cm,{panels:f.panels,downloadPanel:s})})]}):o.jsxs(Zl,{title:"Cricut Export Center",children:[o.jsx(Ra,{text:"Build a project first, then export master and tile SVG files for Cricut Design Space."}),o.jsx("button",{type:"button",onClick:j,children:"Open Project Builder"})]})}function Dy({project:f,inventory:v}){const[m,s]=yt.useState("Materials"),j=yt.useMemo(()=>Ey(f),[f]),O=yt.useMemo(()=>Ay(f),[f]),U=yt.useMemo(()=>[...Uf].sort((M,L)=>Ct(M)-Ct(L)),[]),$=j.reduce((M,L)=>M+Ct(L)*ui(L,O),0),D=j.reduce((M,L)=>{const jl=ui(L,O);return M+Math.max(L.regularPrice-Ct(L),0)*jl},0),z=v.filter(M=>M.onHand-M.reserved<=M.reorderPoint);function X(){ei("ProjectCraft-Pro-Shopping-List.txt",My(f,j,O),"text/plain")}return o.jsx("div",{className:"view-stack",children:o.jsxs(Zl,{title:"Material Recommendations",action:o.jsx("button",{type:"button",onClick:X,children:"Export Shopping List"}),children:[o.jsxs("div",{className:"warning-box",children:[am,o.jsx("p",{className:"disclaimer-text",children:im}),o.jsx("p",{className:"disclaimer-text",children:um})]}),o.jsx("div",{className:"deal-tabs",role:"tablist","aria-label":"Material shopping sections",children:py.map(M=>o.jsx("button",{className:m===M?"tab active":"tab",onClick:()=>s(M),type:"button",children:M},M))}),m==="Materials"&&(j.length===0?o.jsx(Ra,{text:"No material catalog products yet. Add approved product feeds or manual catalog entries before showing material recommendations."}):o.jsx("div",{className:"deal-card-grid",children:j.map(M=>o.jsxs("div",{className:"deal-card",children:[o.jsxs("div",{className:"deal-card-header",children:[o.jsx("strong",{children:M.name}),o.jsx("span",{children:pl(Ct(M))})]}),o.jsx("p",{children:M.notes}),o.jsxs("div",{className:"badge-row",children:[o.jsx("span",{className:"badge",children:M.category}),o.jsx("span",{className:"badge",children:M.color}),o.jsx("span",{className:"badge",children:M.quality}),o.jsx("span",{className:"badge warning",children:M.dataSource})]}),o.jsx("small",{className:"freshness-note",children:ai(M)})]},M.id))})),m==="Where to Buy"&&o.jsx(_t,{headers:["Retailer","Product","Availability","Source","Action"],rows:j.map(M=>[M.retailer,M.name,M.inventory,M.dataSource,M.productUrl?"Open retailer site":"Add retailer URL"])}),m==="Price Comparison"&&o.jsx(_t,{headers:["Product","Retailer","Regular","Current","Savings","Freshness"],rows:U.map(M=>[M.name,M.retailer,pl(M.regularPrice),pl(Ct(M)),M.salePrice?pl(M.regularPrice-M.salePrice):"-",ai(M)])}),m==="Shopping List"&&o.jsxs("div",{className:"view-stack",children:[o.jsx(_t,{headers:["Item","Qty","Estimate","Retailer","Notes"],rows:j.map(M=>{const L=ui(M,O);return[`${M.name} - ${M.color}`,String(L),pl(Ct(M)*L),M.retailer,ai(M)]})}),o.jsx("div",{className:"warning-box",children:nm})]}),m==="Project Cost"&&o.jsxs("div",{className:"metric-grid",children:[o.jsx(ut,{title:"Material Area",value:`${ii(O)} sq in`,detail:"Includes waste allowance"}),o.jsx(ut,{title:"Estimated Cost",value:pl($),detail:"Approved catalog pricing"}),o.jsx(ut,{title:"Sale Savings",value:pl(D),detail:"Only when sale price is entered"}),o.jsx(ut,{title:"Local Alerts",value:String(z.length),detail:"From current inventory records"})]}),m==="Alternatives"&&(U.length===0?o.jsx(Ra,{text:"No catalog alternatives yet. Add approved materials in Admin Catalog to compare options."}):o.jsx("div",{className:"deal-card-grid",children:U.slice(0,6).map(M=>o.jsxs("div",{className:"deal-card",children:[o.jsxs("div",{className:"deal-card-header",children:[o.jsxs("strong",{children:[M.quality," Alternative"]}),o.jsx("span",{children:pl(Ct(M))})]}),o.jsxs("p",{children:[M.name," from ",M.retailer,". ",M.compatibility]}),o.jsxs("div",{className:"badge-row",children:[o.jsx("span",{className:"badge",children:M.category}),o.jsx("span",{className:"badge",children:M.inventory})]})]},M.id))})),m==="Sale Alerts"&&o.jsx(_t,{headers:["Rule","Status","Privacy"],rows:[["Target savings threshold","Ready for user preference","Stored locally"],["Preferred retailers","Ready for admin catalog","No login or retailer account stored"],["ZIP prefix for nearby stores","Optional","Do not store full address"],["Live notifications","Pending","Requires approved API/feed and notification permission"]]}),m==="Admin Catalog"&&o.jsx(_t,{headers:["Catalog Area","Current Status","Commercial Requirement"],rows:[["Retailer adapters","No placeholder adapters bundled","Add approved retailer APIs or product feeds"],["Manual prices","Supported in native app","Review timestamp and source before publish"],["Affiliate links","Disclosure prepared","Configure approved affiliate accounts before enabling"],["Scraping","Not used","Use written retailer permission, API, feed, or manual entry"]]})]})})}function Ny({state:f}){return o.jsx(Zl,{title:"Customers",children:o.jsx(_t,{headers:["Name","Company","Tags","Lifetime Value"],rows:f.customers.map(v=>[v.name,v.company,v.tags.join(", "),pl(v.lifetimeValue)])})})}function Cy({state:f}){const v=new Map(f.customers.map(m=>[m.id,m.name]));return o.jsx(Zl,{title:"Orders",children:o.jsx(_t,{headers:["Order","Customer","Status","Due","Total","Paid"],rows:f.orders.map(m=>[m.orderNumber,v.get(m.customerId)??"Unknown",m.status,m.dueDate,pl(m.total),pl(m.paid)])})})}function Uy({state:f}){return o.jsx(Zl,{title:"Products",children:o.jsx(_t,{headers:["Product","Category","Material","Labor","Retail","Margin"],rows:f.products.map(v=>[v.name,v.category,pl(v.materialCost),`${v.laborMinutes} min`,pl(v.retailPrice),`${v.targetMargin}%`])})})}function Ry({state:f}){return o.jsx(Zl,{title:"Template Library",children:o.jsx(_t,{headers:["Template","Category","Skill","Price","Margin"],rows:f.templates.map(v=>[v.name,v.category,v.skill,pl(v.price),`${v.margin}%`])})})}function Hy({state:f}){return o.jsx(Zl,{title:"Inventory",children:o.jsx(_t,{headers:["Material","Supplier","Color","Available","Reorder","Unit Cost"],rows:f.inventory.map(v=>[v.name,v.supplier,v.color,String(v.onHand-v.reserved),String(v.reorderPoint),pl(v.unitCost)])})})}function By({state:f}){const v=f.products.map(m=>{const s=m.laborMinutes/60*32,j=m.materialCost+s,O=m.retailPrice-j,U=m.retailPrice>0?O/m.retailPrice*100:0;return[m.name,pl(j),pl(m.retailPrice),pl(O),`${ii(U)}%`]});return o.jsx(Zl,{title:"Pricing and Profit",children:o.jsx(_t,{headers:["Product","Est. Cost","Retail","Gross Profit","Gross Margin"],rows:v})})}function qy({state:f,project:v,updateFromProject:m}){return o.jsx(Zl,{title:"Marketing Studio",action:v?o.jsx("button",{type:"button",onClick:()=>m(v),children:"Draft From Project"}):null,children:o.jsxs("div",{className:"copy-grid",children:[o.jsx(li,{label:"Listing Title",value:f.marketingDraft.listingTitle}),o.jsx(li,{label:"Short Description",value:f.marketingDraft.shortDescription}),o.jsx(li,{label:"Social Post",value:f.marketingDraft.socialPost}),o.jsx(li,{label:"Production Note",value:f.marketingDraft.productionNote})]})})}function Yy(){return o.jsxs(Zl,{title:"License and Activation",children:[o.jsxs("div",{className:"release-grid",children:[o.jsx(ut,{title:"Product",value:"ProjectCraft Pro",detail:"$499 license"}),o.jsx(ut,{title:"Activation",value:"Required",detail:"License service pending"}),o.jsx(ut,{title:"Offline Grace",value:"7 days",detail:"License backend required"})]}),o.jsx("div",{className:"warning-box",children:"This mobile app port preserves the same commercial boundary as the Mac preview: data stays viewable/exportable, but customer license activation requires the secure licensing service."})]})}function Gy(){return o.jsx(Zl,{title:"Mobile Store Release Readiness",children:o.jsx(_t,{headers:["Area","Status","Next Step"],rows:[["Native wrappers","Added","Open iOS in Xcode and Android in Android Studio"],["Local persistence","Added","Uses device WebView storage"],["Cricut export","Added","Saves SVG/text files and opens native share sheet when available"],["Apple App Store","Pending","Archive, sign, TestFlight, and App Review"],["Google Play","Pending","Build signed AAB, internal test, and Play review"],["Legal/release QA","Pending","Complete store privacy, screenshots, age rating, and policy forms"]]})})}function Zl({title:f,action:v,children:m}){return o.jsxs("section",{className:"panel",children:[o.jsxs("div",{className:"panel-header",children:[o.jsx("h3",{children:f}),v]}),m]})}function ut({title:f,value:v,detail:m}){return o.jsxs("div",{className:"metric-card",children:[o.jsx("span",{children:f}),o.jsx("strong",{children:v}),o.jsx("p",{children:m})]})}function _t({headers:f,rows:v,emptyText:m="No records yet."}){return o.jsx("div",{className:"table-wrap",children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsx("tr",{children:f.map(s=>o.jsx("th",{children:s},s))})}),o.jsx("tbody",{children:v.length===0?o.jsx("tr",{children:o.jsx("td",{className:"empty-table-cell",colSpan:f.length,children:m})}):v.map((s,j)=>o.jsx("tr",{children:s.map((O,U)=>o.jsx("td",{children:O},`${O}-${U}`))},`${s[0]}-${j}`))})]})})}function cm({panels:f,downloadPanel:v}){return o.jsx("div",{className:"table-wrap",children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Panel"}),o.jsx("th",{children:"Layer"}),o.jsx("th",{children:"Grid"}),o.jsx("th",{children:"Size"}),o.jsx("th",{children:"File"})]})}),o.jsx("tbody",{children:f.map(m=>o.jsxs("tr",{children:[o.jsx("td",{children:m.id}),o.jsx("td",{children:m.layerName}),o.jsxs("td",{children:["C",m.column," R",m.row]}),o.jsxs("td",{children:[m.width," in x ",m.height," in"]}),o.jsx("td",{children:o.jsx("button",{type:"button",onClick:()=>v(m),children:"Download"})})]},m.id))})]})})}function Ra({text:f}){return o.jsx("div",{className:"empty-state",children:f})}function li({label:f,value:v}){return o.jsxs("div",{className:"copy-block",children:[o.jsx("span",{children:f}),o.jsx("p",{children:v||"Not drafted yet."})]})}Lv.createRoot(document.getElementById("root")).render(o.jsx(Rv.StrictMode,{children:o.jsx(xy,{})}));var ti,Fd;const Xy=((Fd=(ti=window.Capacitor)==null?void 0:ti.isNativePlatform)==null?void 0:Fd.call(ti))??!1;!Xy&&"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("./sw.js")});export{Cf as _};
